PageSourceSearch

https://diariodecuba.net/cp/javascript/vendors.js?1789727109

js diariodecuba.net collected 2026-09-25 19:36:33 UTC 3,628,368 bytes, 51 lines download raw bytes

vendor: 15,434 bytes, line 1
1(globalThis.webpackChunkPlesk=globalThis.webpackChunkPlesk||[]).push([["vendors"],[,,,,,,,(e,t,n)=>{"use strict";var r=n(8),o=n(64).includes,i=n(12),a=n(73),s=i(function(){return!Array(1).includes()}),l=i(function(){return[,1].includes(void 0,1)});r({target:"Array",proto:!0,forced:s||l},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},(e,t,n)=>{"use strict";var r=n(9),o=n(10).f,i=n(48),a=n(52),s=n(42),l=n(60),c=n(72);e.exports=function(e,t){var n,u,d,f,p,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):r[h]&&r[h].prototype)for(u in t){if(f=t[u],d=e.dontCallGetSet?(p=o(n,u))&&p.value:n[u],!c(m?u:h+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,u,f,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,n)=>{"use strict";var r=n(11),o=n(13),i=n(15),a=n(16),s=n(17),l=n(23),c=n(43),u=n(46),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},(e,t,n)=>{"use strict";var r=n(12);e.exports=!r(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,n)=>{"use strict";var r=n(14),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},(e,t,n)=>{"use strict";var r=n(12);e.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,n)=>{"use strict";var r=n(18),o=n(21);e.exports=function(e){return r(o(e))}},(e,t,n)=>{"use strict";var r=n(19),o=n(12),i=n(20),a=Object,s=r("".split);e.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(e){return"String"===i(e)?s(e,""):a(e)}:a},(e,t,n)=>{"use strict";var r=n(14),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);e.exports=r?a:function(e){return function(){return i.apply(e,arguments)}}},(e,t,n)=>{"use strict";var r=n(19),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},(e,t,n)=>{"use strict";var r=n(22),o=TypeError;e.exports=function(e){if(r(e))throw new o("Can't call method on "+e);return e}},e=>{"use strict";e.exports=function(e){return null==e}},(e,t,n)=>{"use strict";var r=n(24),o=n(27);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},(e,t,n)=>{"use strict";var r=n(13),o=n(25),i=n(27),a=n(34),s=n(37),l=n(38),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,l=a(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!o(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},(e,t,n)=>{"use strict";var r=n(26);e.exports=function(e){return"object"==typeof e?null!==e:r(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,n)=>{"use strict";var r=n(28),o=n(26),i=n(29),a=n(30),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},(e,t,n)=>{"use strict";var r=n(9),o=n(26);e.exports=function(e,t){return arguments.length<2?(n=r[e],o(n)?n:void 0):r[e]&&r[e][t];var n}},(e,t,n)=>{"use strict";var r=n(19);e.exports=r({}.isPrototypeOf)},(e,t,n)=>{"use strict";var r=n(31);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,n)=>{"use strict";var r=n(32),o=n(12),i=n(9).String;e.exports=!!Object.getOwnPropertySymbols&&!o(function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},(e,t,n)=>{"use strict";var r,o,i=n(9),a=n(33),s=i.process,l=i.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},(e,t,n)=>{"use strict";var r=n(9).navigator,o=r&&r.userAgent;e.exports=o?String(o):""},(e,t,n)=>{"use strict";var r=n(35),o=n(22);e.exports=function(e,t){var n=e[t];return o(n)?void 0:r(n)}},(e,t,n)=>{"use strict";var r=n(26),o=n(36),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(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,n)=>{"use strict";var r=n(13),o=n(26),i=n(25),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},(e,t,n)=>{"use strict";var r=n(9),o=n(39),i=n(43),a=n(45),s=n(31),l=n(30),c=r.Symbol,u=o("wks"),d=l?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(u[e]=s&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},(e,t,n)=>{"use strict";var r=n(40);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},(e,t,n)=>{"use strict";var r=n(41),o=n(9),i=n(42),a="__core-js_shared__",s=e.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.49.0",mode:r?"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.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{"use strict";e.exports=!1},(e,t,n)=>{"use strict";var r=n(9),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},(e,t,n)=>{"use strict";var r=n(19),o=n(44),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},(e,t,n)=>{"use strict";var r=n(21),o=Object;e.exports=function(e){return o(r(e))}},(e,t,n)=>{"use strict";var r=n(19),o=0,i=Math.random(),a=r(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},(e,t,n)=>{"use strict";var r=n(11),o=n(12),i=n(47);e.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},(e,t,n)=>{"use strict";var r=n(9),o=n(25),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},(e,t,n)=>{"use strict";var r=n(11),o=n(49),i=n(16);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},(e,t,n)=>{"use strict";var r=n(11),o=n(46),i=n(50),a=n(51),s=n(23),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=u(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},(e,t,n)=>{"use strict";var r=n(11),o=n(12);e.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,n)=>{"use strict";var r=n(25),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(o(e)+" is not an object")}},(e,t,n)=>{"use strict";var r=n(26),o=n(49),i=n(53),a=n(42);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&i(n,c,s),s.global)l?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},(e,t,n)=>{"use strict";var r=n(19),o=n(12),i=n(26),a=n(43),s=n(11),l=n(54).CONFIGURABLE,c=n(55),u=n(56),d=u.enforce,f=u.get,p=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),y=r([].join),v=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return a(r,"source")||(r.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_(function(){return i(this)&&f(this).source||c(this)},"toString")},(e,t,n)=>{"use strict";var r=n(11),o=n(43),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),l=s&&"something"===function(){}.name,c=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},(e,t,n)=>{"use strict";var r=n(19),o=n(26),i=n(40),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},(e,t,n)=>{"use strict";var r,o,i,a=n(57),s=n(9),l=n(25),c=n(48),u=n(43),d=n(40),f=n(58),p=n(59),h="Object already initialized",m=s.TypeError,g=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new g);y.get=y.get,y.has=y.has,y.set=y.set,r=function(e,t){if(y.has(e))throw new m(h);return t.facade=e,y.set(e,t),t},o=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var v=f("state");p[v]=!0,r=function(e,t){if(u(e,v))throw new m(h);return t.facade=e,c(e,v,t),t},o=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},(e,t,n)=>{"use strict";var r=n(9),o=n(26),i=r.WeakMap;e.exports=o(i)&&/native code/.test(String(i))},(e,t,n)=>{"use strict";var r=n(39),o=n(45),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},e=>{"use strict";e.exports={}},(e,t,n)=>{"use strict";var r=n(43),o=n(61),i=n(10),a=n(49);e.exports=function(e,t,n){for(var s=o(t),l=a.f,c=i.f,u=0;u<s.length;u++){var d=s[u];r(e,d)||n&&r(n,d)||l(e,d,c(t,d))}}},(e,t,n)=>{"use strict";var r=n(28),o=n(19),i=n(62),a=n(71),s=n(51),l=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?l(t,n(e)):t}},(e,t,n)=>{"use strict";var r=n(63),o=n(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},(e,t,n)=>{"use strict";var r=n(19),o=n(43),i=n(17),a=n(64).indexOf,s=n(59),l=r([].push);e.exports=function(e,t){var n,r=i(e),c=0,u=[];for(n in r)!o(s,n)&&o(r,n)&&l(u,n);for(;t.length>c;)o(r,n=t[c++])&&(~a(u,n)||l(u,n));return u}},(e,t,n)=>{"use strict";var r=n(17),o=n(65),i=n(68),a=function(e){return function(t,n,a){var s=r(t),l=i(s);if(0===l)return!e&&-1;var c,u=o(a,l);if(e&&n!=n){for(;l>u;)if((c=s[u++])!=c)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},(e,t,n)=>{"use strict";var r=n(66),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},(e,t,n)=>{"use strict";var r=n(67);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},(e,t,n)=>{"use strict";var r=n(69);e.exports=function(e){return r(e.length)}},(e,t,n)=>{"use strict";var r=n(66),o=Math.min;e.exports=function(e){var t=r(e);return t>0?o(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,n)=>{"use strict";var r=n(12),o=n(26),i=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n===u||n!==c&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},(e,t,n)=>{"use strict";var r=n(38),o=n(74),i=n(49).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},(e,t,n)=>{"use strict";var r,o=n(51),i=n(75),a=n(70),s=n(59),l=n(77),c=n(47),u=n(58),d="prototype",f="script",p=u("IE_PROTO"),h=function(){},m=function(e){return"<"+f+">"+e+"</"+f+">"},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;y="undefined"!=typeof document?document.domain&&r?g(r):(t=c("iframe"),n="java"+f+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(r);for(var o=a.length;o--;)delete y[d][a[o]];return y()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(h[d]=o(e),n=new h,h[d]=null,n[p]=e):n=y(),void 0===t?n:i.f(n,t)}},(e,t,n)=>{"use strict";var r=n(11),o=n(50),i=n(49),a=n(51),s=n(17),l=n(76);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=l(t),c=o.length,u=0;c>u;)i.f(e,n=o[u++],r[n]);return e}},(e,t,n)=>{"use strict";var r=n(63),o=n(70);e.exports=Object.keys||function(e){return r(e,o)}},(e,t,n)=>{"use strict";var r=n(28);e.exports=r("document","documentElement")},(e,t,n)=>{"use strict";var r=n(11),o=n(79),i=n(80),a=n(81);r&&!i.correct&&(o(RegExp.prototype,"flags",{configurable:!0,get:a}),i.correct=!0)},(e,t,n)=>{"use strict";var r=n(53),o=n(49);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}},(e,t,n)=>{"use strict";var r=n(9),o=n(12),i=r.RegExp,a=!o(function(){var e=!0;try{i(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in e&&(a.hasIndices="d"),a)o(s,a[s]);return Object.getOwnPropertyDescriptor(i.prototype,"flags").get.call(t)!==r||n!==r});e.exports={correct:a}},(e,t,n)=>{"use strict";var r=n(51);e.exports=function(){var e=r(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,n)=>{"use strict";n(83),n(93)},(e,t,n)=>{"use strict";var r=n(8),o=n(9),i=n(84).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},(e,t,n)=>{"use strict";var r,o,i,a,s=n(9),l=n(85),c=n(86),u=n(26),d=n(43),f=n(12),p=n(77),h=n(88),m=n(47),g=n(89),y=n(90),v=n(91),b=s.setImmediate,_=s.clearImmediate,w=s.process,S=s.Dispatch,E=s.Function,k=s.MessageChannel,T=s.String,x=0,O={},C="onreadystatechange";f(function(){r=s.location});var P=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},A=function(e){return function(){P(e)}},I=function(e){P(e.data)},R=function(e){s.postMessage(T(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){g(arguments.length,1);
1var t=u(e)?e:E(e),n=h(arguments,1);return O[++x]=function(){l(t,void 0,n)},o(x),x},_=function(e){delete O[e]},v?o=function(e){w.nextTick(A(e))}:S&&S.now?o=function(e){S.now(A(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=I,o=c(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(R)?(o=R,s.addEventListener("message",I,!1)):o=C in m("script")?function(e){p.appendChild(m("script"))[C]=function(){p.removeChild(this),P(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:_}},(e,t,n)=>{"use strict";var r=n(14),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},(e,t,n)=>{"use strict";var r=n(87),o=n(35),i=n(14),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},(e,t,n)=>{"use strict";var r=n(20),o=n(19);e.exports=function(e){if("Function"===r(e))return o(e)}},(e,t,n)=>{"use strict";var r=n(19);e.exports=r([].slice)},e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},(e,t,n)=>{"use strict";var r=n(33);e.exports=/ipad|iphone|ipod/i.test(r)&&/applewebkit/i.test(r)},(e,t,n)=>{"use strict";var r=n(92);e.exports="NODE"===r},(e,t,n)=>{"use strict";var r=n(9),o=n(33),i=n(20),a=function(e){return o.slice(0,e.length)===e};e.exports=a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"},(e,t,n)=>{"use strict";var r=n(8),o=n(9),i=n(84).set,a=n(94),s=o.setImmediate?a(i,!1):i;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==s},{setImmediate:s})},(e,t,n)=>{"use strict";var r,o=n(9),i=n(85),a=n(26),s=n(92),l=n(33),c=n(88),u=n(89),d=o.Function,f=/MSIE .\./.test(l)||"BUN"===s&&((r=o.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return f?function(r,o){var s=u(arguments.length,1)>n,l=a(r)?r:d(r),f=s?c(arguments,n):[],p=s?function(){i(l,this,f)}:l;return t?e(p,o):e(p)}:e}},,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(100);function o(e,t,n){return(t=(0,r.default)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(101),o=n(102);function i(e){var t=(0,o.default)(e,"string");return"symbol"==(0,r.default)(t)?t:t+""}},(e,t,n)=>{"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)}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(101);function o(e,t){if("object"!=(0,r.default)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.default)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{ErrorCode:()=>i,FormatError:()=>a,IntlMessageFormat:()=>m,InvalidValueError:()=>s,InvalidValueTypeError:()=>l,MissingValueError:()=>c,PART_TYPE:()=>u,default:()=>g,formatToParts:()=>f,isFormatXMLElementFn:()=>d});var r=n(108),o=n(109);let i=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,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},s=class extends a{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join('", "')}"`,"INVALID_VALUE",r)}},l=class extends a{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",n)}}
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 d(e){return"function"==typeof e}function f(e,t,n,r,i,u,p){if(1===e.length&&(0,o.isLiteralElement)(e[0]))return[{type:0,value:e[0].value}];const h=[];for(const m of e){if((0,o.isLiteralElement)(m)){h.push({type:0,value:m.value});continue}if((0,o.isPoundElement)(m)){"number"==typeof u&&h.push({type:0,value:n.getNumberFormat(t).format(u)});continue}const{value:e}=m;if(!i||!(e in i))throw new c(e,p);let g=i[e];if((0,o.isArgumentElement)(m))g&&"string"!=typeof g&&"number"!=typeof g&&"bigint"!=typeof g||(g="string"==typeof g||"number"==typeof g||"bigint"==typeof g?String(g):""),h.push({type:"string"==typeof g?0:1,value:g});else{if((0,o.isDateElement)(m)){const e="string"==typeof m.style?r.date[m.style]:(0,o.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:void 0;h.push({type:0,value:n.getDateTimeFormat(t,e).format(g)});continue}if((0,o.isTimeElement)(m)){const e="string"==typeof m.style?r.time[m.style]:(0,o.isDateTimeSkeleton)(m.style)?m.style.parsedOptions:r.time.medium;h.push({type:0,value:n.getDateTimeFormat(t,e).format(g)});continue}if((0,o.isNumberElement)(m)){const e="string"==typeof m.style?r.number[m.style]:(0,o.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}h.push({type:0,value:n.getNumberFormat(t,e).format(g)});continue}if((0,o.isTagElement)(m)){const{children:e,value:o}=m,a=i[o];if(!d(a))throw new l(o,"function",p);let s=a(f(e,t,n,r,i,u).map(e=>e.value));Array.isArray(s)||(s=[s]),h.push(...s.map(e=>({type:"string"==typeof e?0:1,value:e})))}if((0,o.isSelectElement)(m)){const e=g,o=(Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0)||m.options.other;if(!o)throw new s(m.value,g,Object.keys(m.options),p);h.push(...f(o.value,t,n,r,i));continue}if((0,o.isPluralElement)(m)){const e=`=${g}`;let o=Object.prototype.hasOwnProperty.call(m.options,e)?m.options[e]:void 0;if(!o){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",p);const e="bigint"==typeof g?Number(g):g,r=n.getPluralRules(t,{type:m.pluralType}).select(e-(m.offset||0));o=(Object.prototype.hasOwnProperty.call(m.options,r)?m.options[r]:void 0)||m.options.other}if(!o)throw new s(m.value,g,Object.keys(m.options),p);const l="bigint"==typeof g?Number(g):g;h.push(...f(o.value,t,n,r,i,l-(m.offset||0)));continue}}}return(m=h).length<2?m:m.reduce((e,t)=>{const n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e},[]);var m}function p(e,t){return t?Object.keys(e).reduce((n,r)=>{var o,i;return n[r]=(o=e[r],(i=t[r])?{...o,...i,...Object.keys(o).reduce((e,t)=>(e[t]={...o[t],...i[t]},e),{})}:o),n},{...e}):e}function h(e){return{create:()=>({get:t=>e[t],set(t,n){e[t]=n}})}}
1var m=class e{constructor(t,n=e.defaultLocale,o,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{const t=this.formatToParts(e);if(1===t.length)return t[0].value;const n=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 n.length<=1?n[0]||"":n},this.formatToParts=e=>f(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=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...n}=i||{};this.ast=e.__parse(t,{...n,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=p(e.formats,o),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:(0,r.memoize)((...e)=>new Intl.NumberFormat(...e),{cache:h(e.number),strategy:r.strategies.variadic}),getDateTimeFormat:(0,r.memoize)((...e)=>new Intl.DateTimeFormat(...e),{cache:h(e.dateTime),strategy:r.strategies.variadic}),getPluralRules:(0,r.memoize)((...e)=>new Intl.PluralRules(...e),{cache:h(e.pluralRules),strategy:r.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=o.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,n)=>{"use strict";function r(e,t){const n=t&&t.cache?t.cache:u,r=t&&t.serializer?t.serializer:l;return(t&&t.strategy?t.strategy:s)(e,{cache:n,serializer:r})}function o(e,t,n,r){const o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:n(r);var i;let a=t.get(o);return void 0===a&&(a=e.call(this,r),t.set(o,a)),a}function i(e,t,n){const r=Array.prototype.slice.call(arguments,3),o=n(r);let i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function a(e,t,n,r,o){return n.bind(t,e,r,o)}function s(e,t){return a(e,this,1===e.length?o:i,t.cache.create(),t.serializer)}n.r(t),n.d(t,{memoize:()=>r,strategies:()=>d});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}},d={variadic:function(e,t){return a(e,this,i,t.cache.create(),t.serializer)},monadic:function(e,t){return a(e,this,o,t.cache.create(),t.serializer)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SKELETON_TYPE:()=>a,TYPE:()=>i,_Parser:()=>U,createLiteralElement:()=>v,createNumberElement:()=>b,isArgumentElement:()=>l,isDateElement:()=>u,isDateTimeSkeleton:()=>y,isLiteralElement:()=>s,isNumberElement:()=>c,isNumberSkeleton:()=>g,isPluralElement:()=>p,isPoundElement:()=>h,isSelectElement:()=>f,isStructurallySame:()=>F,isTagElement:()=>m,isTimeElement:()=>d,parse:()=>z});var r=n(110);let o=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_
1NUMBER_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}({}),i=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 d(e){return 4===e.type}function f(e){return 5===e.type}function p(e){return 6===e.type}function h(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 v(e){return{type:0,value:e}}function b(e,t){return{type:2,value:e,style:t}}const _=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,w={"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 S(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 n=e.language;let r;return"root"!==n&&(r=e.maximize().region),(w[r||""]||w[n||""]||w[`${n}-001`]||w["001"])[0]}const E=new RegExp(`^${_.source}*`),k=new RegExp(`${_.source}*$`);function T(e,t){return{start:e,end:t}}const x=!!Object.fromEntries,O=!!String.prototype.trimStart,C=!!String.prototype.trimEnd,P=x?Object.fromEntries:function(e){const t={};for(const[n,r]of e)t[n]=r;return t},A=O?function(e){return e.trimStart()}:function(e){return e.replace(E,"")},I=C?function(e){return e.trimEnd()}:function(e){return e.replace(k,"")},R=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");var j=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,n=1;for(let r=0;r<e.length;){const o=e.charCodeAt(r);switch(o){case 35:case 39:case 60:case 123:case 125:return null}if(10===o)t++,n=1,r++;else if(n++,o>=55296&&o<=56319&&r+1<e.length){const t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}(this.message);if(e){const t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:T(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){const o=this.char();if(123===o){const t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(26,T(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&M(this.peek()||0)){const n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{const n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}else{const e=this.clonePosition();this.bump(),r.push({type:7,location:T(e,this.clonePosition())})}}}return{val:r,err:null}}parseTag(e,t){const n=this.clonePosition();this.bump();const r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${r}/>`,location:T(n,this.clonePosition())},err:null};if(this.bumpIf(">")){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!M(this.char()))return this.error(23,T(a,this.clonePosition()));const e=this.clonePosition();return r!==this.parseTagName()?this.error(26,T(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:r,children:i,location:T(n,this.clonePosition())},err:null}:this.error(23,T(a,this.clonePosition())))}return this.error(27,T(n,this.clonePosition()))}return this.error(23,T(n,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&D(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const n=this.clonePosition();let r="";for(;;){const n=this.tryParseQuote(t);if(n){r+=n;continue}const o=this.tryParseUnquoted(e,t);if(o){r+=o;continue}const i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}return{val:{type:0,value:r,location:T(n,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(),"'";
1case 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 n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){const n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,T(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(2,T(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,T(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,T(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:T(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,T(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,T(n,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),n=(r=this.message,o=t,R.lastIndex=o,R.exec(r)[1]??"");var r,o;const i=t+n.length;return this.bumpTo(i),{value:n,location:T(e,this.clonePosition())}}parseArgumentOptions(e,t,n,o){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(4,T(i,s));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();const t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;const r=I(n.val);if(0===r.length)return this.error(6,T(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:T(t,this.clonePosition())}}const t=this.tryParseArgumentClose(o);if(t.err)return t;const i=T(o,this.clonePosition());if(e&&e.style.startsWith("::")){let t=A(e.style.slice(2));if("number"===a){const r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(0===t.length)return this.error(10,i);let o=t;this.locale&&(o=function(e,t){let n="";for(let r=0;r<e.length;r++){const o=e.charAt(r);if("j"===o){let i=0;for(;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;let a=1+(1&i),s=i<2?1:3+(i>>1),l="a",c=S(t);for("H"!=c&&"k"!=c||(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else n+="J"===o?"H":o}return n}(t,this.locale));return{val:{type:"date"===a?3:4,value:n,location:i,style:{type:1,pattern:o,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?(0,r.parseDateTimeSkeleton)(o):{}}},err:null}}}return{val:{type:"number"===a?2:"date"===a?3:4,value:n,location:i,style:e?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const r=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,T(r,{...r}));this.bumpSpace();let i=this.parseIdentifierIfPossible(),s=0;if("select"!==a&&"offset"===i.value){if(!this.bumpIf(":"))return this.error(13,T(this.clonePosition(),this.clonePosition()));this.bumpSpace();const e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),i=this.parseIdentifierIfPossible(),s=e.val}const l=this.tryParsePluralOrSelectOptions(e,a,t,i);if(l.err)return l;const c=this.tryParseArgumentClose(o);if(c.err)return c;const u=T(o,this.clonePosition());return"select"===a?{val:{type:5,value:n,options:P(l.val),location:u},err:null}:{val:{type:6,value:n,options:P(l.val),offset:s,pluralType:"plural"===a?"cardinal":"ordinal",location:u},err:null}}default:return this.error(5,T(i,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(1,T(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,T(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 n=[];try{n=(0,r.parseNumberSkeletonFromString)(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?(0,r.parseNumberSkeleton)(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let o=!1;const i=[],a=new Set;let{value:s,location:l}=r;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=T(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&&(o=!0),this.bumpSpace();const r=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?17:18,T(this.clonePosition(),this.clonePosition()));const c=this.parseMessage(e+1,t,n);if(c.err)return c;const u=this.tryParseArgumentClose(r);if(u.err)return u;i.push([s,{value:c.val,location:T(r,this.clonePosition())}]),a.add(s),this.bumpSpace(),({value:s,location:l}=this.parseIdentifierIfPossible())}return 0===i.length?this.error("select"===t?15:16,T(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(22,T(this.clonePosition(),this.clonePosition())):{val:i,err:null}}tryParseDecimalInteger(e,t){let n=1;const r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);let o=!1,i=0;for(;!this.isEOF();){const e=this.char();if(!(e>=48&&e<=57))break;o=!0,i=10*i+(e-48),this.bump()}const a=T(r,this.clonePosition());return o?(i*=n,Number.isSafeInteger(i)?{val:i,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(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!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()&&N(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 D(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 N(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function L(e,t=new Map){e.forEach(e=>{if(l(e)||u(e)||d(e)||c(e))if(t.has(e.value)){const n=t.get(e.value);if(n!==e.type&&6!==n&&5!==n)throw new Error(`Variable ${e.value} has conflicting types`)}else t.set(e.value,e.type);(p(e)||f(e))&&(t.set(e.value,e.type),Object.keys(e.options).forEach(n=>{L(e.options[n].value,t)})),m(e)&&(t.set(e.value,e.type),L(e.children,t))})}function F(e,t){const n=new Map,r=new Map;return L(e,n),L(t,r),n.size!==r.size?{success:!1,error:new Error(`Different number of variables: [${Array.from(n.keys()).join(", ")}] vs [${Array.from(r.keys()).join(", ")}]`)}:Array.from(n.entries()).reduce((e,[t,n])=>{if(!e.success)return e;const o=r.get(t);return null==o?{success:!1,error:new Error(`Missing variable ${t} in message`)}:o!==n?{success:!1,error:new Error(`Variable ${t} has conflicting types: ${i[n]} vs ${i[o]}`)}:e},{success:!0})}function B(e){e.forEach(e=>{if(delete e.location,f(e)||p(e))for(const t in e.options)delete e.options[t].location,B(e.options[t].value);else c(e)&&g(e.style)||(u(e)||d(e))&&y(e.style)?delete e.style.location:m(e)&&B(e.children)})}function z(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const n=new j(e,t).parse();if(n.err){const e=SyntaxError(o[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||B(n.val),n.val}const U=j},(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseDateTimeSkeleton:()=>o,parseNumberSkeleton:()=>g,parseNumberSkeletonFromString:()=>a});const r=/(?:[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 o(e){const t={};return e.replace(r,e=>{const n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 i=/[\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(i).filter(e=>e.length>0),n=[];for(const e of t){let t=e.split("/");if(0===t.length)throw new Error("Invalid number skeleton");const[r,...o]=t;
vendor: 4,187 bytes, line 1
1for(const e of o)if(0===e.length)throw new Error("Invalid number skeleton");n.push({stem:r,options:o})}return n}function s(e){return e.replace(/^(.*?)-/,"")}const l=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,c=/^(@+)?(\+|#+)?[rs]?$/g,u=/(\*)(0+)|(#+)(0+)|(0+)/g,d=/^(0+)$/;function f(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,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),t}function p(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 h(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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!d.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function m(e){const t=p(e);return t||{}}function g(e){let t={};for(const n of e){switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.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(n.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;case"scientific":t={...t,notation:"scientific",...n.options.reduce((e,t)=>({...e,...m(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...n.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(n.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(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(u,function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)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(d.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(l.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(l,function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""});const e=n.options[0];
1"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...f(e)});continue}if(c.test(n.stem)){t={...t,...f(n.stem)};continue}const e=p(n.stem);e&&(t={...t,...e});const r=h(n.stem);r&&(t={...t,...r})}return t}},,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Firehose:()=>v});var r=n(114),o=n(115),i=n(179),a=n(180),s=n(181),l=n(182),c=n(183),u=n(184),d=n(185),f=n(186),p=n(187),h=n(188),m=n(189),g=n(190);const y={CreateDeliveryStreamCommand:o.CreateDeliveryStreamCommand,DeleteDeliveryStreamCommand:i.DeleteDeliveryStreamCommand,DescribeDeliveryStreamCommand:a.DescribeDeliveryStreamCommand,ListDeliveryStreamsCommand:s.ListDeliveryStreamsCommand,ListTagsForDeliveryStreamCommand:l.ListTagsForDeliveryStreamCommand,PutRecordCommand:u.PutRecordCommand,PutRecordBatchCommand:c.PutRecordBatchCommand,StartDeliveryStreamEncryptionCommand:d.StartDeliveryStreamEncryptionCommand,StopDeliveryStreamEncryptionCommand:f.StopDeliveryStreamEncryptionCommand,TagDeliveryStreamCommand:p.TagDeliveryStreamCommand,UntagDeliveryStreamCommand:h.UntagDeliveryStreamCommand,UpdateDestinationCommand:m.UpdateDestinationCommand};class v extends g.FirehoseClient{}(0,r.createAggregatedClient)(y,v)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createAggregatedClient:()=>r});const r=(e,t,n)=>{for(const[n,r]of Object.entries(e)){const e=async function(e,t,n){const o=new r(e);if("function"==typeof t)this.send(o,t);else{if("function"!=typeof n)return this.send(o,t);if("object"!=typeof t)throw new Error("Expected http options but got "+typeof t);this.send(o,t||{},n)}},o=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[o]=e}const{paginators:r={},waiters:o={}}=n??{};for(const[e,n]of Object.entries(r))void 0===t.prototype[e]&&(t.prototype[e]=function(e={},t,...r){return n({...t,client:this},e,...r)});for(const[e,n]of Object.entries(o))void 0===t.prototype[e]&&(t.prototype[e]=async function(e={},t,...r){let o=t;return"number"==typeof t&&(o={maxWaitTime:t}),n({...o,client:this},e,...r)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,CreateDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","CreateDeliveryStream",{}).n("FirehoseClient","CreateDeliveryStreamCommand").sc(a.CreateDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Command:()=>a});var r=n(117),o=n(118),i=n(119);class a{middlewareStack=(0,o.constructStack)();schema;static classBuilder(){return new s}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:u,CommandCtor:d}){for(const r of o.bind(this)(d,e,t,n))this.middlewareStack.use(r);const f=e.concat(this.middlewareStack),{logger:p}=t,h={logger:p,clientName:i,commandName:a,inputFilterSensitiveLog:s,outputFilterSensitiveLog:l,[r.SMITHY_CONTEXT_KEY]:{commandInstance:this,...c},...u},{requestHandler:m}=t;let g=n??{};return c.eventStream&&(g={isEventStream:!0,...g}),f.resolve(e=>m.handle(e.request,g),h)}}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,n={}){return this._smithyContext={service:e,operation:t,...n},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(n,r,o){const a=e._operationSchema,s=a?.[4]??a?.input,l=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,r,o,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._
vendor: 8,679 bytes, line 1
1commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?i.schemaLogFilter.bind(null,s):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?i.schemaLogFilter.bind(null,l):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SMITHY_CONTEXT_KEY:()=>r});const r="__smithy_context"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{constructStack:()=>i});const r=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const e of t)n.push(e);return n},o=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,i=()=>{let e=[],t=[],n=!1;const l=new Set,c=n=>(e.forEach(e=>{n.add(e.middleware,{...e})}),t.forEach(e=>{n.addRelativeTo(e.middleware,{...e})}),n.identifyOnResolve?.(f.identifyOnResolve()),n),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},d=(n=!1)=>{const i=[],l=[],c={};e.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(t.name,t.aliases))c[e]=t;i.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const e of r(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(n)return;throw new Error(`${e.toMiddleware} is not found when adding ${o(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}});var d;return(d=i,d.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),[])},f={add:(t,n={})=>{const{name:i,override:a,aliases:s}=n,c={step:"initialize",priority:"normal",middleware:t,...n},u=r(i,s);if(u.length>0){if(u.some(e=>l.has(e))){if(!a)throw new Error(`Duplicate middleware name '${o(i,s)}'`);for(const t of u){const n=e.findIndex(e=>e.name===t||e.aliases?.some(e=>e===t));if(-1===n)continue;const r=e[n];if(r.step!==c.step||c.priority!==r.priority)throw new Error(`"${o(r.name,r.aliases)}" middleware with ${r.priority} priority in ${r.step} step cannot be overridden by "${o(i,s)}" middleware with ${c.priority} priority in ${c.step} step.`);e.splice(n,1)}}for(const e of u)l.add(e)}e.push(c)},addRelativeTo:(e,n)=>{const{name:i,override:a,aliases:s}=n,c={middleware:e,...n},u=r(i,s);if(u.length>0){if(u.some(e=>l.has(e))){if(!a)throw new Error(`Duplicate middleware name '${o(i,s)}'`);for(const e of u){const n=t.findIndex(t=>t.name===e||t.aliases?.some(t=>t===e));if(-1===n)continue;const r=t[n];if(r.toMiddleware!==c.toMiddleware||r.relation!==c.relation)throw new Error(`"${o(r.name,r.aliases)}" middleware ${r.relation} "${r.toMiddleware}" middleware cannot be overridden by "${o(i,s)}" middleware ${c.relation} "${c.toMiddleware}" middleware.`);t.splice(n,1)}}for(const e of u)l.add(e)}t.push(c)},clone:()=>c(i()),use:e=>{e.applyToStack(f)},remove:n=>"string"==typeof n?(n=>{let o=!1;const i=e=>{const t=r(e.name,e.aliases);if(t.includes(n)){o=!0;for(const e of t)l.delete(e);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(n):(n=>{let o=!1;const i=e=>{if(e.middleware===n){o=!0;for(const t of r(e.name,e.aliases))l.delete(t);return!1}return!0};return e=e.filter(i),t=t.filter(i),o})(n),removeByTag:n=>{let o=!1;const i=e=>{const{tags:t,name:i,aliases:a}=e;if(t&&t.includes(n)){const e=r(i,a);for(const t of e)l.delete(t);return o=!0,!1}return!0};return e=e.filter(i),t=t.filter(i),o},concat:e=>{const t=c(i());return t.use(e),t.identifyOnResolve(n||t.identifyOnResolve()||(e.identifyOnResolve?.()??!1)),t},applyToStack:c,identify:()=>d(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return o(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(n=e),n),resolve:(e,t)=>{for(const n of d().map(e=>e.middleware).reverse())e=n(e,t);return n&&console.log(f.identify()),e}};return f},a={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},s={high:3,normal:2,low:1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{schemaLogFilter:()=>i});var r=n(120);const o="***SensitiveInformation***";function i(e,t){if(null==t)return t;const n=r.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive)return o;if(n.isListSchema()){if(!!n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isMapSchema()){if(!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive)return o}else if(n.isStructSchema()&&"object"==typeof t){const e=t,r={};for(const[t,o]of n.structIterator())null!=e[t]&&(r[t]=i(o,e[t]));return r}return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{NormalizedSchema:()=>c,isStaticSchema:()=>f,simpleSchemaCacheN:()=>s,simpleSchemaCacheS:()=>l});var r=n(121),o=n(122);const i=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 n=[];let i=e,a=e;for(this._isMemberSchema=!1;d(i);)n.push(i[1]),i=i[0],a=(0,r.deref)(i),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,(0,o.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,r.deref)(a),f(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 n=(0,r.deref)(e);if(n instanceof c)return n;if(d(n)){const[t,r]=n;if(t instanceof c)return Object.assign(t.getMergedTraits(),(0,o.translateTraits)(r)),t;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const i=new c(n);return t?e[a]=i:"string"==typeof n?l[n]=i:"number"==typeof n?s[n]=i:i}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,o.translateTraits)(this.memberTraits)}getOwnTraits(){return(0,o.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 n=this.getSchema();return u([e?15:n[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,n,r]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],o="number"==typeof e?63&e:e&&"object"==typeof e&&(n||r)?e[3+e[0]]:t?15:void 0;if(null!=o)return u([o,0],n?"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 n=t[4].indexOf(e),r=t[5][n];return u(d(r)?r:[r,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,n]of this.structIterator())e[t]=n}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 n=e[i];if(n&&t===n.length)yield*n;else{n=Array(t);for(let r=0;r<t;++r){const t=e[4][r],o=u([e[5][r],0],t);yield n[r]=[t,o]}e[i]=n}}}function u(e,t){if(e instanceof c)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new c(e,t)}const d=e=>Array.isArray(e)&&2===e.length,f=e=>Array.isArray(e)&&e.length>=5},(e,t,n)=>{"use strict";n.r(t),n.d(t,{deref:()=>r});const r=e=>"function"==typeof e?e():e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{traitsCache:()=>r,translateTraits:()=>o});const r=[];function o(e){if("object"==typeof e)return e;if(r[e|=0])return r[e];const t={};let n=0;for(const r of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>n++&1)&&(t[r]=1);return r[e]=t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BinaryDecisionDiagram:()=>c.BinaryDecisionDiagram,EndpointCache:()=>u.EndpointCache,EndpointError:()=>g.EndpointError,customEndpointFunctions:()=>h.customEndpointFunctions,decideEndpoint:()=>d.decideEndpoint,endpointMiddleware:()=>_,endpointMiddlewareOptions:()=>a.endpointMiddlewareOptions,getEndpointFromInstructions:()=>v,getEndpointPlugin:()=>w,isIpAddress:()=>f.isIpAddress,isValidHostLabel:()=>p.isValidHostLabel,middlewareEndpointToEndpointV1:()=>l.toEndpointV1,resolveEndpoint:()=>m.resolveEndpoint,resolveEndpointConfig:()=>b,resolveEndpointRequiredConfig:()=>y.resolveEndpointRequiredConfig,resolveParams:()=>o.resolveParams,toEndpointV1:()=>l.toEndpointV1});var r=n(124),o=n(125),i=n(131),a=n(133),s=n(134),l=n(128),c=n(136),u=n(137),d=n(138),f=n(156),p=n(151),h=n(144),m=n(166),g=n(171),y=n(172);const v=(0,o.bindGetEndpointFromInstructions)(r.getEndpointFromConfig),b=(0,s.bindResolveEndpointConfig)(r.getEndpointFromConfig),_=(0,i.bindEndpointMiddleware)(r.getEndpointFromConfig),w=(0,a.bindGetEndpointPlugin)(r.getEndpointFromConfig)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEndpointFromConfig:()=>r});const r=async e=>{}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindGetEndpointFromInstructions:()=>a,resolveParams:()=>s});var r=n(126),o=n(127),i=n(128);function a(e){return async(t,n,r,o)=>{if(!r.isCustomEndpoint){let t;t=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await e(r.serviceId),t&&(r.endpoint=()=>Promise.resolve((0,i.toEndpointV1)(t)),r.isCustomEndpoint=!0)}const a=await s(t,n,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");const l=r.endpointProvider(a,o);if(r.isCustomEndpoint&&r.endpoint){const e=await r.endpoint();if(e?.headers){l.headers??={};for(const[t,n]of Object.entries(e.headers))l.headers[t]=Array.isArray(n)?n:[n]}}return l}}const s=async(e,t,n)=>{const i={},a=t?.getEndpointParameterInstructions?.()||{};for(const[t,r]of Object.entries(a))switch(r.type){case"staticContextParams":i[t]=r.value;break;case"contextParams":i[t]=e[r.name];break;case"clientContextParams":case"builtInParams":i[t]=await(0,o.createConfigValueProvider)(r.name,t,n,"builtInParams"!==r.type)();break;case"operationContextParams":i[t]=r.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(r))}return 0===Object.keys(a).length&&Object.assign(i,n),"s3"===String(n.serviceId).toLowerCase()&&await(0,r.resolveParamsForS3)(i),i}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DOT_PATTERN:()=>s,S3_HOSTNAME_PATTERN:()=>l,isArnBucketName:()=>u,isDnsCompatibleBucketName:()=>c,resolveParamsForS3:()=>r});const r=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},o=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,i=/(\d+\.){3}\d+/,a=/\.\./,s=/\./,l=/^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./,c=e=>o.test(e)&&!i.test(e)&&!a.test(e),u=e=>{const[t,n,r,,,o]=e.split(":"),i="arn"===t&&e.split(":").length>=6,a=Boolean(i&&n&&r&&o);if(i&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createConfigValueProvider:()=>r});const r=(e,t,n,r=!1)=>{const o=async()=>{let o;if(r){const r=n.clientContextParams,i=r?.[e];o=i??n[e]??n[t]}else o=n[e]??n[t];return"function"==typeof o?o():o};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.credentialScope??e?.CredentialScope}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof n.credentials?await n.credentials():n.credentials;return e?.accountId??e?.AccountId}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===n.isCustomEndpoint)return;const e=await o();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:n,port:r,path:o}=e;return`${t}//${n}${r?":"+r:""}${o}`}}return e}:o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{toEndpointV1:()=>o});var r=n(129);const o=e=>{if("object"==typeof e){if("url"in e){const t=(0,r.parseUrl)(e.url);if(e.headers){t.headers={};for(const n in e.headers)t.headers[n.toLowerCase()]=e.headers[n].join(", ")}return t}return e}return(0,r.parseUrl)(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseUrl:()=>o});var r=n(130);const o=e=>{if("string"==typeof e)return o(new URL(e));const{hostname:t,pathname:n,port:i,protocol:a,search:s}=e;let l;return s&&(l=(0,r.parseQueryString)(s)),{hostname:t,port:i?parseInt(i):void 0,protocol:a,path:n,query:l}}},(e,t,n)=>{"use strict";function r(e){const t={};if(e=e.replace(/^\?/,""))for(const n of e.split("&")){let[e,r=null]=n.split("=");e=decodeURIComponent(e),r&&(r=decodeURIComponent(r)),e in t?Array.isArray(t[e])?t[e].push(r):t[e]=[t[e],r]:t[e]=r}return t}n.r(t),n.d(t,{parseQueryString:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindEndpointMiddleware:()=>i});var r=n(132),o=n(125);function i(e){const t=(0,o.bindGetEndpointFromInstructions)(e);return({config:e,instructions:n})=>(o,i)=>async a=>{e.isCustomEndpoint&&function(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}(i,"ENDPOINT_OVERRIDE","N");const s=await t(a.input,{getEndpointParameterInstructions:()=>n},{...e},i);i.endpointV2=s,i.authSchemes=s.properties?.authSchemes;const l=i.authSchemes?.[0];if(l){i.signing_region=l.signingRegion,i.signing_service=l.signingName;const e=(0,r.getSmithyContext)(i),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 o({...a})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSmithyContext:()=>o});var r=n(117);const o=e=>e[r.SMITHY_CONTEXT_KEY]||(e[r.SMITHY_CONTEXT_KEY]={})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindGetEndpointPlugin:()=>i,endpointMiddlewareOptions:()=>o});var r=n(131);const o={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"};function i(e){const t=(0,r.bindEndpointMiddleware)(e);return(e,n)=>({applyToStack:r=>{r.addRelativeTo(t({config:e,instructions:n}),o)}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindResolveEndpointConfig:()=>i});var r=n(135),o=n(128);function i(e){return t=>{const n=t.tls??!0,{endpoint:i,useDualstackEndpoint:a,useFipsEndpoint:s}=t,l=null!=i?async()=>(0,o.toEndpointV1)(await(0,r.normalizeProvider)(i)()):void 0,c=!!i,u=Object.assign(t,{endpoint:l,tls:n,isCustomEndpoint:c,useDualstackEndpoint:(0,r.normalizeProvider)(a??!1),useFipsEndpoint:(0,r.normalizeProvider)(s??!1)});let d;return u.serviceConfiguredEndpoint=async()=>(t.serviceId&&!d&&(d=e(t.serviceId)),d),u}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeProvider:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BinaryDecisionDiagram:()=>r});class r{nodes;root;conditions;results;constructor(e,t,n,r){this.nodes=e,this.root=t,this.conditions=n,this.results=r}static from(e,t,n,o){return new r(e,t,n,o)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EndpointCache:()=>r});class r{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const n=this.hash(e);if(!1===n)return t();if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:n,done:r}=e.next();if(this.data.delete(n),r||++t>10)break}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(0===n.length)return!1;for(const r of n){const n=String(e[r]??"");if(n.includes("|;"))return!1;t+=n+"|;"}return t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{decideEndpoint:()=>u});var r=n(139),o=n(140),i=n(143),a=n(163),s=n(164),l=n(165);const c=1e8,u=(e,t)=>
1{const{nodes:n,root:u,results:d,conditions:f}=e;let p=u;const h={},m={referenceRecord:h,endpointParams:t.endpointParams,logger:t.logger};for(;1!==p&&-1!==p&&p<c;){const e=3*(Math.abs(p)-1),[t,r,i]=[n[e],n[e+1],n[e+2]],[a,s,l]=f[t],c=(0,o.evaluateCondition)({fn:a,assign:l,argv:s},m);if(c.toAssign){const{name:e,value:t}=c.toAssign;h[e]=t}p=p>=0===c.result?r:i}if(p>=c){const e=d[p-c];if(-1===e[0]){const[,t]=e;throw new r.EndpointError((0,i.evaluateExpression)(t,"Error",m))}const[t,n,o]=e;return{url:(0,l.getEndpointUrl)(t,m),properties:(0,s.getEndpointProperties)(n,m),headers:(0,a.getEndpointHeaders)(o??{},m)}}throw new r.EndpointError("No matching endpoint.")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EndpointError:()=>r});class r extends Error{constructor(e){super(e),this.name="EndpointError"}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateCondition:()=>s});var r=n(141),o=n(142),i=n(139),a=n(143);const s=(e,t)=>{const{assign:n}=e;if(n&&n in t.referenceRecord)throw new i.EndpointError(`'${n}' is already defined in Reference Record.`);const s=(0,a.callFunction)(e,t);t.logger?.debug?.(`${r.debugId} evaluateCondition: ${(0,o.toDebugString)(e)} = ${(0,o.toDebugString)(s)}`);const l=""===s||!!s;return null!=n?{result:l,toAssign:{name:n,value:s}}:{result:l}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{debugId:()=>r});const r="endpoints"},(e,t,n)=>{"use strict";function r(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${r(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(r).join(", ")})`:JSON.stringify(e,null,2)}n.r(t),n.d(t,{toDebugString:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{callFunction:()=>c,evaluateExpression:()=>l,group:()=>u});var r=n(139),o=n(144),i=n(145),a=n(161),s=n(162);const l=(e,t,n)=>{if("string"==typeof e)return(0,a.evaluateTemplate)(e,n);if(e.fn)return u.callFunction(e,n);if(e.ref)return(0,s.getReferenceValue)(e,n);throw new r.EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)},c=({fn:e,argv:t},n)=>{const r=Array(t.length);for(let e=0;e<r.length;++e){const o=t[e];r[e]="boolean"==typeof o||"number"==typeof o?o:u.evaluateExpression(o,"arg",n)}const a=e.indexOf(".");if(-1!==a){const t=o.customEndpointFunctions[e.slice(0,a)],n=t?.[e.slice(a+1)];if("function"==typeof n)return n(...r)}const s=i.endpointFunctions[e];if("function"==typeof s)return s(...r);throw new Error(`function ${e} not loaded in endpointFunctions.`)},u={evaluateExpression:l,callFunction:c}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{customEndpointFunctions:()=>r});const r={}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{endpointFunctions:()=>m});var r=n(146),o=n(147),i=n(148),a=n(150),s=n(151),l=n(152),c=n(153),u=n(154),d=n(157),f=n(158),p=n(159),h=n(160);const m={booleanEquals:r.booleanEquals,coalesce:o.coalesce,getAttr:i.getAttr,isSet:a.isSet,isValidHostLabel:s.isValidHostLabel,ite:l.ite,not:c.not,parseURL:u.parseURL,split:d.split,stringEquals:f.stringEquals,substring:p.substring,uriEncode:h.uriEncode}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{booleanEquals:()=>r});const r=(e,t)=>e===t},(e,t,n)=>{"use strict";function r(...e){for(const t of e)if(null!=t)return t}n.r(t),n.d(t,{coalesce:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAttr:()=>i});var r=n(139),o=n(149);const i=(e,t)=>(0,o.getAttrPathList)(t).reduce((n,o)=>{if("object"!=typeof n)throw new r.EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(n)){const e=parseInt(o);return n[e<0?n.length+e:e]}return n[o]},e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAttrPathList:()=>o});var r=n(139);const o=e=>{const t=e.split("."),n=[];for(const o of t){const t=o.indexOf("[");if(-1!==t){if(o.indexOf("]")!==o.length-1)throw new r.EndpointError(`Path: '${e}' does not end with ']'`);const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new r.EndpointError(`Invalid array index: '${i}' in path: '${e}'`);0!==t&&n.push(o.slice(0,t)),n.push(i)}else n.push(o)}return n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isSet:()=>r});const r=e=>null!=e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isValidHostLabel:()=>o});const r=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),o=(e,t=!1)=>
1{if(!t)return r.test(e);const n=e.split(".");for(const e of n)if(!o(e))return!1;return!0}},(e,t,n)=>{"use strict";function r(e,t,n){return e?t:n}n.r(t),n.d(t,{ite:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{not:()=>r});const r=e=>!e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseURL:()=>a});var r=n(155),o=n(156);const i={[r.EndpointURLScheme.HTTP]:80,[r.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:n,protocol:r="",path:o="",query:i={}}=e,a=new URL(`${r}//${t}${n?`:${n}`:""}${o}`);return a.search=Object.entries(i).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 n=t.href,{host:a,hostname:s,pathname:l,protocol:c,search:u}=t;if(u)return null;const d=c.slice(0,-1);if(!Object.values(r.EndpointURLScheme).includes(d))return null;const f=(0,o.isIpAddress)(s);return{scheme:d,authority:`${a}${n.includes(`${a}:${i[d]}`)||"string"==typeof e&&e.includes(`${a}:${i[d]}`)?`:${i[d]}`:""}`,path:l,normalizedPath:l.endsWith("/")?l:`${l}/`,isIp:f}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{EndpointURLScheme:()=>r}),function(e){e.HTTP="http",e.HTTPS="https"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isIpAddress:()=>o});const r=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}$"),o=e=>r.test(e)||e.startsWith("[")&&e.endsWith("]")},(e,t,n)=>{"use strict";function r(e,t,n){if(1===n)return[e];if(""===e)return[""];const r=e.split(t);return 0===n?r:r.slice(0,n-1).concat(r.slice(1).join(t))}n.r(t),n.d(t,{split:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{stringEquals:()=>r});const r=(e,t)=>e===t},(e,t,n)=>{"use strict";n.r(t),n.d(t,{substring:()=>r});const r=(e,t,n,r)=>null==e||t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{uriEncode:()=>r});const r=e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateTemplate:()=>o});var r=n(148);const o=(e,t)=>{const n=[],{referenceRecord:o,endpointParams:i}=t;let a=0;for(;a<e.length;){const t=e.indexOf("{",a);if(-1===t){n.push(e.slice(a));break}n.push(e.slice(a,t));const s=e.indexOf("}",t);if(-1===s){n.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[s+1]&&(n.push(e.slice(t+1,s)),a=s+2);const l=e.substring(t+1,s);if(l.includes("#")){const[e,t]=l.split("#");n.push((0,r.getAttr)(o[e]??i[e],t))}else n.push(o[l]??i[l]);a=s+1}return n.join("")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getReferenceValue:()=>r});const r=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEndpointHeaders:()=>i});var r=n(139),o=n(143);const i=(e,t)=>Object.entries(e??{}).reduce((e,[n,i])=>(e[n]=i.map(e=>{const i=(0,o.evaluateExpression)(e,"Header value entry",t);if("string"!=typeof i)throw new r.EndpointError(`Header '${n}' value '${i}' is not a string`);return i}),e),{})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEndpointProperties:()=>i,getEndpointProperty:()=>a,group:()=>s});var r=n(139),o=n(161);const i=(e,t)=>Object.entries(e).reduce((e,[n,r])=>(e[n]=s.getEndpointProperty(r,t),e),{}),a=(e,t)=>{if(Array.isArray(e))return e.map(e=>a(e,t));switch(typeof e){case"string":return(0,o.evaluateTemplate)(e,t);case"object":if(null===e)throw new r.EndpointError(`Unexpected endpoint property: ${e}`);return s.getEndpointProperties(e,t);case"boolean":return e;default:throw new r.EndpointError("Unexpected endpoint property type: "+typeof e)}},s={getEndpointProperty:a,getEndpointProperties:i}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEndpointUrl:()=>i});var r=n(139),o=n(143);const i=(e,t)=>{const n=(0,o.evaluateExpression)(e,"Endpoint URL",t);if("string"==typeof n)try{return new URL(n)}catch(e){throw console.error(`Failed to construct URL with ${n}`,e),e}throw new r.EndpointError("Endpoint URL must be a string, got "+typeof n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveEndpoint:()=>s});var r=n(141),o=n(142),i=n(139),a=n(167);const s=(e,t)=>{const{endpointParams:n,logger:s}
1=t,{parameters:l,rules:c}=e;t.logger?.debug?.(`${r.debugId} Initial EndpointParams: ${(0,o.toDebugString)(n)}`);for(const e in l){const t=l[e],r=n[e];if(null!=r||null==t.default){if(t.required&&null==r)throw new i.EndpointError(`Missing required parameter: '${e}'`)}else n[e]=t.default}const u=(0,a.evaluateRules)(c,{endpointParams:n,logger:s,referenceRecord:{}});return t.logger?.debug?.(`${r.debugId} Resolved endpoint: ${(0,o.toDebugString)(u)}`),u}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateRules:()=>s,evaluateTreeRule:()=>l,group:()=>c});var r=n(139),o=n(168),i=n(169),a=n(170);const s=(e,t)=>{for(const n of e)if("endpoint"===n.type){const e=(0,i.evaluateEndpointRule)(n,t);if(e)return e}else if("error"===n.type)(0,a.evaluateErrorRule)(n,t);else{if("tree"!==n.type)throw new r.EndpointError(`Unknown endpoint rule: ${n}`);{const e=c.evaluateTreeRule(n,t);if(e)return e}}throw new r.EndpointError("Rules evaluation failed")},l=(e,t)=>{const{conditions:n,rules:r}=e,{result:i,referenceRecord:a}=(0,o.evaluateConditions)(n,t);if(!i)return;const s=a?{...t,referenceRecord:{...t.referenceRecord,...a}}:t;return c.evaluateRules(r,s)},c={evaluateRules:s,evaluateTreeRule:l}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateConditions:()=>a});var r=n(141),o=n(142),i=n(140);const a=(e=[],t)=>{const n={},a={...t,referenceRecord:{...t.referenceRecord}};let s=!1;for(const l of e){const{result:e,toAssign:c}=(0,i.evaluateCondition)(l,a);if(!e)return{result:e};c&&(s=!0,n[c.name]=c.value,a.referenceRecord[c.name]=c.value,t.logger?.debug?.(`${r.debugId} assign: ${c.name} := ${(0,o.toDebugString)(c.value)}`))}return s?{result:!0,referenceRecord:n}:{result:!0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateEndpointRule:()=>c});var r=n(141),o=n(142),i=n(168),a=n(163),s=n(164),l=n(165);const c=(e,t)=>{const{conditions:n,endpoint:c}=e,{result:u,referenceRecord:d}=(0,i.evaluateConditions)(n,t);if(!u)return;const f=d?{...t,referenceRecord:{...t.referenceRecord,...d}}:t,{url:p,properties:h,headers:m}=c;t.logger?.debug?.(`${r.debugId} Resolving endpoint from template: ${(0,o.toDebugString)(c)}`);const g={url:(0,l.getEndpointUrl)(p,f)};return null!=m&&(g.headers=(0,a.getEndpointHeaders)(m,f)),null!=h&&(g.properties=(0,s.getEndpointProperties)(h,f)),g}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{evaluateErrorRule:()=>a});var r=n(139),o=n(168),i=n(143);const a=(e,t)=>{const{conditions:n,error:a}=e,{result:s,referenceRecord:l}=(0,o.evaluateConditions)(n,t);if(!s)return;const c=l?{...t,referenceRecord:{...t.referenceRecord,...l}}:t;throw new r.EndpointError((0,i.evaluateExpression)(a,"Error",c))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EndpointError:()=>r.EndpointError});var r=n(139)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveEndpointRequiredConfig:()=>r});const r=e=>{const{endpoint:t}=e;return void 0===t&&(e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{commonParams:()=>o,resolveClientEndpointParameters:()=>r});const r=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"firehose"}),o={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AmazonOpenSearchServerlessBufferingHints$:()=>Mn,AmazonOpenSearchServerlessDestinationConfiguration$:()=>Dn,AmazonOpenSearchServerlessDestinationDescription$:()=>Nn,AmazonOpenSearchServerlessDestinationUpdate$:()=>Ln,AmazonOpenSearchServerlessRetryOptions$:()=>Fn,AmazonopensearchserviceBufferingHints$:()=>Bn,AmazonopensearchserviceDestinationConfiguration$:()=>zn,AmazonopensearchserviceDestinationDescription$:()=>Un,AmazonopensearchserviceDestinationUpdate$:()=>Hn,AmazonopensearchserviceRetryOptions$:()=>Vn,AuthenticationConfiguration$:()=>qn,BufferingHints$:()=>Gn,CatalogConfiguration$:()=>Wn,CloudWatchLoggingOptions$:()=>$n,ConcurrentModificationException$:()=>ln,CopyCommand$:()=>Yn,CreateDeliveryStream$:()=>di,CreateDeliveryStreamInput$:()=>Kn,CreateDeliveryStreamOutput$:()=>Jn,DataFormatConversionConfiguration$:()=>ir,DatabaseColumnList$:()=>Qn,DatabaseList$:()=>Xn,DatabaseSnapshotInfo$:()=>Zn,DatabaseSourceAuthenticationConfiguration$:()=>er,DatabaseSourceConfiguration$:()=>tr,DatabaseSourceDescription$:()=>nr,DatabaseSourceVPCConfiguration$:()=>rr,DatabaseTableList$:()=>or,DeleteDeliveryStream$:()=>fi,DeleteDeliveryStreamInput$:()=>ar,DeleteDeliveryStreamOutput$:()=>sr,DeliveryStreamDescription$:()=>lr,DeliveryStreamEncryptionConfiguration$:()=>cr,DeliveryStreamEncryptionConfigurationInput$:()=>ur,DescribeDeliveryStream$:()=>pi,DescribeDeliveryStreamInput$:()=>dr,DescribeDeliveryStreamOutput$:()=>fr,Deserializer$:()=>pr,DestinationDescription$:()=>hr,DestinationTableConfiguration$:()=>mr,DirectPutSourceConfiguration$:()=>gr,DirectPutSourceDescription$:()=>yr,DocumentIdOptions$:()=>vr,DynamicPartitioningConfiguration$:()=>br,ElasticsearchBufferingHints$:()=>_r,ElasticsearchDestinationConfiguration$:()=>wr,ElasticsearchDestinationDescription$:()=>Sr,ElasticsearchDestinationUpdate$:()=>Er,ElasticsearchRetryOptions$:()=>kr,EncryptionConfiguration$:()=>Tr,ExtendedS3DestinationConfiguration$:()=>xr,ExtendedS3DestinationDescription$:()=>Or,ExtendedS3DestinationUpdate$:()=>Cr,FailureDescription$:()=>Pr,FirehoseServiceException$:()=>an,HiveJsonSerDe$:()=>Ar,HttpEndpointBufferingHints$:()=>Ir,HttpEndpointCommonAttribute$:()=>Rr,HttpEndpointConfiguration$:()=>jr,HttpEndpointDescription$:()=>Mr,HttpEndpointDestinationConfiguration$:()=>Dr,HttpEndpointDestinationDescription$:()=>Nr,HttpEndpointDestinationUpdate$:()=>Lr,HttpEndpointRequestConfiguration$:()=>Fr,HttpEndpointRetryOptions$:()=>Br,IcebergDestinationConfiguration$:()=>zr,IcebergDestinationDescription$:()=>Ur,IcebergDestinationUpdate$:()=>Hr,InputFormatConfiguration$:()=>Vr,InvalidArgumentException$:()=>cn,InvalidKMSResourceException$:()=>un,InvalidSourceException$:()=>dn,KMSEncryptionConfig$:()=>Wr,KinesisStreamSourceConfiguration$:()=>qr,KinesisStreamSourceDescription$:()=>Gr,LimitExceededException$:()=>fn,ListDeliveryStreams$:()=>hi,ListDeliveryStreamsInput$:()=>$r,ListDeliveryStreamsOutput$:()=>Yr,ListTagsForDeliveryStream$:()=>mi,ListTagsForDeliveryStreamInput$:()=>Kr,ListTagsForDeliveryStreamOutput$:()=>Jr,MSKSourceConfiguration$:()=>Qr,MSKSourceDescription$:()=>Xr,OpenXJsonSerDe$:()=>Zr,OrcSerDe$:()=>eo,OutputFormatConfiguration$:()=>to,ParquetSerDe$:()=>no,PartitionField$:()=>ro,PartitionSpec$:()=>oo,ProcessingConfiguration$:()=>io,Processor$:()=>ao,ProcessorParameter$:()=>so,PutRecord$:()=>gi,PutRecordBatch$:()=>yi,PutRecordBatchInput$:()=>lo,PutRecordBatchOutput$:()=>co,PutRecordBatchResponseEntry$:()=>uo,PutRecordInput$:()=>fo,PutRecordOutput$:()=>po,RedshiftDestinationConfiguration$:()=>
1mo,RedshiftDestinationDescription$:()=>go,RedshiftDestinationUpdate$:()=>yo,RedshiftRetryOptions$:()=>vo,ResourceInUseException$:()=>pn,ResourceNotFoundException$:()=>hn,RetryOptions$:()=>bo,S3DestinationConfiguration$:()=>_o,S3DestinationDescription$:()=>wo,S3DestinationUpdate$:()=>So,SchemaConfiguration$:()=>Eo,SchemaEvolutionConfiguration$:()=>ko,SecretsManagerConfiguration$:()=>To,Serializer$:()=>xo,ServiceUnavailableException$:()=>mn,SnowflakeBufferingHints$:()=>Oo,SnowflakeDestinationConfiguration$:()=>Co,SnowflakeDestinationDescription$:()=>Po,SnowflakeDestinationUpdate$:()=>Ao,SnowflakeRetryOptions$:()=>Io,SnowflakeRoleConfiguration$:()=>Ro,SnowflakeVpcConfiguration$:()=>jo,SourceDescription$:()=>Mo,SplunkBufferingHints$:()=>Do,SplunkDestinationConfiguration$:()=>No,SplunkDestinationDescription$:()=>Lo,SplunkDestinationUpdate$:()=>Fo,SplunkRetryOptions$:()=>Bo,StartDeliveryStreamEncryption$:()=>vi,StartDeliveryStreamEncryptionInput$:()=>zo,StartDeliveryStreamEncryptionOutput$:()=>Uo,StopDeliveryStreamEncryption$:()=>bi,StopDeliveryStreamEncryptionInput$:()=>Ho,StopDeliveryStreamEncryptionOutput$:()=>Vo,TableCreationConfiguration$:()=>qo,Tag$:()=>Go,TagDeliveryStream$:()=>_i,TagDeliveryStreamInput$:()=>Wo,TagDeliveryStreamOutput$:()=>$o,UntagDeliveryStream$:()=>wi,UntagDeliveryStreamInput$:()=>Yo,UntagDeliveryStreamOutput$:()=>Ko,UpdateDestination$:()=>Si,UpdateDestinationInput$:()=>Jo,UpdateDestinationOutput$:()=>Qo,VpcConfiguration$:()=>Xo,VpcConfigurationDescription$:()=>Zo,_Record$:()=>ho,errorTypeRegistries:()=>gn});var r=n(175),o=n(176),i=n(177);const a="AuthenticationConfiguration",s="AmazonopensearchserviceDestinationConfiguration",l="AmazonopensearchserviceDestinationDescription",c="AmazonopensearchserviceDestinationUpdate",u="AppendOnly",d="AmazonOpenSearchServerlessDestinationConfiguration",f="AmazonOpenSearchServerlessDestinationDescription",p="AmazonOpenSearchServerlessDestinationUpdate",h="AccountUrl",m="BucketARN",g="BufferingHints",y="BlockSizeBytes",v="CatalogConfiguration",b="ContentColumnName",_="CopyCommand",w="CollectionEndpoint",S="ClusterEndpoint",E="CompressionFormat",k="ClusterJDBCURL",T="CustomTimeZone",x="CloudWatchLoggingOptions",O="Columns",C="Compression",P="Databases",A="DomainARN",I="DataFormatConversionConfiguration",R="DestinationId",j="DocumentIdOptions",M="DurationInSeconds",D="DataLoadingOption",N="DynamicPartitioningConfiguration",L="DirectPutSourceConfiguration",F="DirectPutSourceDescription",B="DatabaseSourceAuthenticationConfiguration",z="DeliveryStreamARN",U="DatabaseSourceConfiguration",H="DatabaseSourceDescription",V="DeliveryStreamDescription",q="DeliveryStreamEncryptionConfiguration",G="DeliveryStreamEncryptionConfigurationInput",W="DeliveryStreamName",$="DeliveryStreamType",Y="DeliveryStartTimestamp",K="DatabaseSourceVPCConfiguration",J="DestinationTableConfigurationList",Q="Database",X="Deserializer",Z="Enabled",ee="EncryptionConfiguration",te="EndpointConfiguration",ne="ElasticsearchDestinationConfiguration",re="ElasticsearchDestinationDescription",oe="ElasticsearchDestinationUpdate",ie="ErrorOutputPrefix",ae="ExtendedS3DestinationConfiguration",se="ExtendedS3DestinationDescription",le="ExtendedS3DestinationUpdate",ce="Endpoint",ue="Encrypted",de="Exclude",fe="FailureDescription",pe="FileExtension",he="HECAcknowledgmentTimeoutInSeconds",me="HECEndpoint",ge="HECEndpointType",ye="HECToken",ve="HttpEndpointDestinationConfiguration",be="HttpEndpointDestinationDescription",_e="HttpEndpointDestinationUpdate",we="HiveJsonSerDe",Se="Include",Ee="IcebergDestinationConfiguration",ke="IcebergDestinationDescription",Te="IcebergDestinationUpdate",xe="InputFormatConfiguration",Oe="IntervalInSeconds",Ce="IndexName",Pe="IndexRotationPeriod",Ae="KeyARN",Ie="KMSEncryptionConfig",Re="KeyPassphrase",je="KinesisStreamARN",Me="KinesisStreamSourceConfiguration",De="KinesisStreamSourceDescription",Ne="KeyType",Le="Limit",Fe="MetaDataColumnName",Be="MSKClusterARN",ze="MSKSourceConfiguration",Ue="MSKSourceDescription",He="Name",Ve="OutputFormatConfiguration",qe="OrcSerDe",Ge="OpenXJsonSerDe",We="Password",$e="ProcessingConfiguration",Ye="PrivateKey",Ke="PartitionSpec",Je="ParquetSerDe",Qe="Port",Xe="Prefix",Ze="RoleARN",et="RequestConfiguration",tt="Reds
1hiftDestinationConfiguration",nt="RedshiftDestinationDescription",rt="RedshiftDestinationUpdate",ot="ReadFromTimestamp",it="RecordId",at="RetryOptions",st="Record",lt="Status",ct="S3BackupConfiguration",ut="S3BackupDescription",dt="S3BackupMode",ft="S3BackupUpdate",pt="S3Configuration",ht="SchemaConfiguration",mt="S3DestinationConfiguration",gt="SnowflakeDestinationConfiguration",yt="SplunkDestinationConfiguration",vt="S3DestinationDescription",bt="SnowflakeDestinationDescription",_t="SplunkDestinationDescription",wt="S3DestinationUpdate",St="SnowflakeDestinationUpdate",Et="SplunkDestinationUpdate",kt="SchemaEvolutionConfiguration",Tt="SecurityGroupIds",xt="SizeInMBs",Ot="SubnetIds",Ct="SurrogateKeys",Pt="SecretsManagerConfiguration",At="SnowflakeRole",It="SnowflakeRoleConfiguration",Rt="SSLMode",jt="S3Update",Mt="SnowflakeVpcConfiguration",Dt="SnapshotWatermarkTable",Nt="Schema",Lt="Serializer",Ft="Tags",Bt="TableCreationConfiguration",zt="ThroughputHintInMBs",Ut="TypeName",Ht="TopicName",Vt="Table",qt="Tables",Gt="Type",Wt="Username",$t="User",Yt="VpcConfiguration",Kt="VpcConfigurationDescription",Jt="VersionId",Qt="client",Xt="code",Zt="error",en="httpError",tn="message",nn="smithy.ts.sdk.synthetic.com.amazonaws.firehose",rn="com.amazonaws.firehose",on=r.TypeRegistry.for(nn);var an=[-3,nn,"FirehoseServiceException",0,[],[]];on.registerError(an,i.FirehoseServiceException);const sn=r.TypeRegistry.for(rn);var ln=[-3,rn,"ConcurrentModificationException",{[Zt]:Qt},[tn],[0]];sn.registerError(ln,o.ConcurrentModificationException);var cn=[-3,rn,"InvalidArgumentException",{[Zt]:Qt},[tn],[0]];sn.registerError(cn,o.InvalidArgumentException);var un=[-3,rn,"InvalidKMSResourceException",{[Zt]:Qt},[Xt,tn],[0,0]];sn.registerError(un,o.InvalidKMSResourceException);var dn=[-3,rn,"InvalidSourceException",{[Zt]:Qt},[Xt,tn],[0,0]];sn.registerError(dn,o.InvalidSourceException);var fn=[-3,rn,"LimitExceededException",{[Zt]:Qt},[tn],[0]];sn.registerError(fn,o.LimitExceededException);var pn=[-3,rn,"ResourceInUseException",{[Zt]:Qt},[tn],[0]];sn.registerError(pn,o.ResourceInUseException);var hn=[-3,rn,"ResourceNotFoundException",{[Zt]:Qt},[tn],[0]];sn.registerError(hn,o.ResourceNotFoundException);var mn=[-3,rn,"ServiceUnavailableException",{[Zt]:"server",[en]:503},[tn],[0]];sn.registerError(mn,o.ServiceUnavailableException);const gn=[on,sn];var yn=[0,rn,"HttpEndpointAccessKey",8,0],vn=[0,rn,"HttpEndpointAttributeName",8,0],bn=[0,rn,"HttpEndpointAttributeValue",8,0],_n=[0,rn,"HttpEndpointUrl",8,0],wn=[0,rn,We,8,0],Sn=[0,rn,"SnowflakeAccountUrl",8,0],En=[0,rn,"SnowflakeContentColumnName",8,0],kn=[0,rn,"SnowflakeDatabase",8,0],Tn=[0,rn,"SnowflakeKeyPassphrase",8,0],xn=[0,rn,"SnowflakeMetaDataColumnName",8,0],On=[0,rn,"SnowflakePrivateKey",8,0],Cn=[0,rn,"SnowflakePrivateLinkVpceId",8,0],Pn=[0,rn,At,8,0],An=[0,rn,"SnowflakeSchema",8,0],In=[0,rn,"SnowflakeTable",8,0],Rn=[0,rn,"SnowflakeUser",8,0],jn=[0,rn,Wt,8,0],Mn=[3,rn,"AmazonOpenSearchServerlessBufferingHints",0,[Oe,xt],[1,1]],Dn=[3,rn,d,0,[Ze,Ce,pt,w,g,at,dt,$e,x,Yt],[0,0,()=>_o,0,()=>Mn,()=>Fn,0,()=>io,()=>$n,()=>Xo],3],Nn=[3,rn,f,0,[Ze,w,Ce,g,at,dt,vt,$e,x,Kt],[0,0,0,()=>Mn,()=>Fn,0,()=>wo,()=>io,()=>$n,()=>Zo]],Ln=[3,rn,p,0,[Ze,w,Ce,g,at,jt,$e,x],[0,0,0,()=>Mn,()=>Fn,()=>So,()=>io,()=>$n]],Fn=[3,rn,"AmazonOpenSearchServerlessRetryOptions",0,[M],[1]],Bn=[3,rn,"AmazonopensearchserviceBufferingHints",0,[Oe,xt],[1,1]],zn=[3,rn,s,0,[Ze,Ce,pt,A,S,Ut,Pe,g,at,dt,$e,x,Yt,j],[0,0,()=>_o,0,0,0,0,()=>Bn,()=>Vn,0,()=>io,()=>$n,()=>Xo,()=>vr],3],Un=[3,rn,l,0,[Ze,A,S,Ce,Ut,Pe,g,at,dt,vt,$e,x,Kt,j],[0,0,0,0,0,0,()=>Bn,()=>Vn,0,()=>wo,()=>io,()=>$n,()=>Zo,()=>vr]],Hn=[3,rn,c,0,[Ze,A,S,Ce,Ut,Pe,g,at,jt,$e,x,j],[0,0,0,0,0,0,()=>Bn,()=>Vn,()=>So,()=>io,()=>$n,()=>vr]],Vn=[3,rn,"AmazonopensearchserviceRetryOptions",0,[M],[1]],qn=[3,rn,a,0,[Ze,"Connectivity"],[0,0],2],Gn=[3,rn,g,0,[xt,Oe],[1,1]],Wn=[3,rn,v,0,["CatalogARN","WarehouseLocation"],[0,0]],$n=[3,rn,x,0,[Z,"LogGroupName","LogStreamName"],[2,0,0]],Yn=[3,rn,_,0,["DataTableName","DataTableColumns","CopyOptions"],[0,0,0],1],Kn=[3,rn,"CreateDeliveryStreamInput",0,[W,$,L,Me,G,mt,ae,tt,ne,s,yt,ve,Ft,d,ze,gt,Ee,U],[0,0,()=>gr,()=>qr,()=>ur,()=>_o,()=>xr,[()=>mo,0],()=>wr,()=>zn,()=>No,[()=>Dr,0],()=>ui,()=>Dn,()=>Qr,[()=>Co,0],()=>zr,()=>tr],1],Jn=[3,rn,"CreateDeliveryStreamOutput",0,[z],[0]],Qn=[3,rn,"DatabaseColumnList",0,[Se,de],[64,64]],Xn=[3,rn,"DatabaseList",0,[Se,de],[64,64]],Zn=[3,rn,"DatabaseSnapshotInfo",0,["Id",Vt,"RequestTimestamp","RequestedBy",lt,fe],[0,0,4,0,0,()=>
1Pr],5],er=[3,rn,B,0,[Pt],[()=>To],1],tr=[3,rn,U,0,[Gt,ce,Qe,P,qt,Dt,B,K,Rt,O,Ct],[0,0,1,()=>Xn,()=>or,0,()=>er,()=>rr,0,()=>Qn,64],8],nr=[3,rn,H,0,[Gt,ce,Qe,Rt,P,qt,O,Ct,Dt,"SnapshotInfo",B,K],[0,0,1,0,()=>Xn,()=>or,()=>Qn,64,0,()=>ei,()=>er,()=>rr]],rr=[3,rn,K,0,["VpcEndpointServiceName"],[0],1],or=[3,rn,"DatabaseTableList",0,[Se,de],[64,64]],ir=[3,rn,I,0,[ht,xe,Ve,Z],[()=>Eo,()=>Vr,()=>to,2]],ar=[3,rn,"DeleteDeliveryStreamInput",0,[W,"AllowForceDelete"],[0,2],1],sr=[3,rn,"DeleteDeliveryStreamOutput",0,[],[]],lr=[3,rn,V,0,[W,z,"DeliveryStreamStatus",$,Jt,"Destinations","HasMoreDestinations",fe,q,"CreateTimestamp","LastUpdateTimestamp","Source"],[0,0,0,0,0,[()=>ti,0],2,()=>Pr,()=>cr,4,4,()=>Mo],7],cr=[3,rn,q,0,[Ae,Ne,lt,fe],[0,0,0,()=>Pr]],ur=[3,rn,G,0,[Ne,Ae],[0,0],1],dr=[3,rn,"DescribeDeliveryStreamInput",0,[W,Le,"ExclusiveStartDestinationId"],[0,1,0],1],fr=[3,rn,"DescribeDeliveryStreamOutput",0,[V],[[()=>lr,0]],1],pr=[3,rn,X,0,[Ge,we],[()=>Zr,()=>Ar]],hr=[3,rn,"DestinationDescription",0,[R,vt,se,nt,re,l,_t,be,bt,f,ke],[0,()=>wo,()=>Or,[()=>go,0],()=>Sr,()=>Un,()=>Lo,[()=>Nr,0],[()=>Po,0],()=>Nn,()=>Ur],1],mr=[3,rn,"DestinationTableConfiguration",0,["DestinationTableName","DestinationDatabaseName","UniqueKeys",Ke,"S3ErrorOutputPrefix"],[0,0,64,()=>oo,0],2],gr=[3,rn,L,0,[zt],[1],1],yr=[3,rn,F,0,[zt],[1]],vr=[3,rn,j,0,["DefaultDocumentIdFormat"],[0],1],br=[3,rn,N,0,[at,Z],[()=>bo,2]],_r=[3,rn,"ElasticsearchBufferingHints",0,[Oe,xt],[1,1]],wr=[3,rn,ne,0,[Ze,Ce,pt,A,S,Ut,Pe,g,at,dt,$e,x,Yt,j],[0,0,()=>_o,0,0,0,0,()=>_r,()=>kr,0,()=>io,()=>$n,()=>Xo,()=>vr],3],Sr=[3,rn,re,0,[Ze,A,S,Ce,Ut,Pe,g,at,dt,vt,$e,x,Kt,j],[0,0,0,0,0,0,()=>_r,()=>kr,0,()=>wo,()=>io,()=>$n,()=>Zo,()=>vr]],Er=[3,rn,oe,0,[Ze,A,S,Ce,Ut,Pe,g,at,jt,$e,x,j],[0,0,0,0,0,0,()=>_r,()=>kr,()=>So,()=>io,()=>$n,()=>vr]],kr=[3,rn,"ElasticsearchRetryOptions",0,[M],[1]],Tr=[3,rn,ee,0,["NoEncryptionConfig",Ie],[0,()=>Wr]],xr=[3,rn,ae,0,[Ze,m,Xe,ie,g,E,ee,x,$e,dt,ct,I,N,pe,T],[0,0,0,0,()=>Gn,0,()=>Tr,()=>$n,()=>io,0,()=>_o,()=>ir,()=>br,0,0],2],Or=[3,rn,se,0,[Ze,m,g,E,ee,Xe,ie,x,$e,dt,ut,I,N,pe,T],[0,0,()=>Gn,0,()=>Tr,0,0,()=>$n,()=>io,0,()=>wo,()=>ir,()=>br,0,0],5],Cr=[3,rn,le,0,[Ze,m,Xe,ie,g,E,ee,x,$e,dt,ft,I,N,pe,T],[0,0,0,0,()=>Gn,0,()=>Tr,()=>$n,()=>io,0,()=>So,()=>ir,()=>br,0,0]],Pr=[3,rn,fe,0,[Gt,"Details"],[0,0],2],Ar=[3,rn,we,0,["TimestampFormats"],[64]],Ir=[3,rn,"HttpEndpointBufferingHints",0,[xt,Oe],[1,1]],Rr=[3,rn,"HttpEndpointCommonAttribute",0,["AttributeName","AttributeValue"],[[()=>vn,0],[()=>bn,0]],2],jr=[3,rn,"HttpEndpointConfiguration",0,["Url",He,"AccessKey"],[[()=>_n,0],0,[()=>yn,0]],1],Mr=[3,rn,"HttpEndpointDescription",0,["Url",He],[[()=>_n,0],0]],Dr=[3,rn,ve,0,[te,pt,g,x,et,$e,Ze,at,dt,Pt],[[()=>jr,0],()=>_o,()=>Ir,()=>$n,[()=>Fr,0],()=>io,0,()=>Br,0,()=>To],2],Nr=[3,rn,be,0,[te,g,x,et,$e,Ze,at,dt,vt,Pt],[[()=>Mr,0],()=>Ir,()=>$n,[()=>Fr,0],()=>io,0,()=>Br,0,()=>wo,()=>To]],Lr=[3,rn,_e,0,[te,g,x,et,$e,Ze,at,dt,jt,Pt],[[()=>jr,0],()=>Ir,()=>$n,[()=>Fr,0],()=>io,0,()=>Br,0,()=>So,()=>To]],Fr=[3,rn,"HttpEndpointRequestConfiguration",0,["ContentEncoding","CommonAttributes"],[0,[()=>ri,0]]],Br=[3,rn,"HttpEndpointRetryOptions",0,[M],[1]],zr=[3,rn,Ee,0,[Ze,v,pt,J,kt,Bt,g,x,$e,dt,at,u],[0,()=>Wn,()=>_o,()=>ni,()=>ko,()=>qo,()=>Gn,()=>$n,()=>io,0,()=>bo,2],3],Ur=[3,rn,ke,0,[J,kt,Bt,g,x,$e,dt,at,Ze,u,v,vt],[()=>ni,()=>ko,()=>qo,()=>Gn,()=>$n,()=>io,0,()=>bo,0,2,()=>Wn,()=>wo]],Hr=[3,rn,Te,0,[J,kt,Bt,g,x,$e,dt,at,Ze,u,v,pt],[()=>ni,()=>ko,()=>qo,()=>Gn,()=>$n,()=>io,0,()=>bo,0,2,()=>Wn,()=>_o]],Vr=[3,rn,xe,0,[X],[()=>pr]],qr=[3,rn,Me,0,[je,Ze],[0,0],2],Gr=[3,rn,De,0,[je,Ze,Y],[0,0,4]],Wr=[3,rn,Ie,0,["AWSKMSKeyARN"],[0],1],$r=[3,rn,"ListDeliveryStreamsInput",0,[Le,$,"ExclusiveStartDeliveryStreamName"],[1,0,0]],Yr=[3,rn,"ListDeliveryStreamsOutput",0,["DeliveryStreamNames","HasMoreDeliveryStreams"],[64,2],2],Kr=[3,rn,"ListTagsForDeliveryStreamInput",0,[W,"ExclusiveStartTagKey",Le],[0,0,1],1],Jr=[3,rn,"ListTagsForDeliveryStreamOutput",0,[Ft,"HasMoreTags"],[()=>oi,2],2],Qr=[3,rn,ze,0,[Be,Ht,a,ot],[0,0,()=>qn,4],3],Xr=[3,rn,Ue,0,[Be,Ht,a,Y,ot],[0,0,()=>qn,4,4]],Zr=[3,rn,Ge,0,["ConvertDotsInJsonKeysToUnderscores","CaseInsensitive","ColumnToJsonKeyMappings"],[2,2,128]],eo=[3,rn,qe,0,["StripeSizeBytes",y,"RowIndexStride","EnablePadding","PaddingTolerance",C,"BloomFilterColumns","BloomFilterFalsePositiveProbability","DictionaryKeyThreshold","FormatVersion"],[1,1,1,2,1,0,64,1,1,0]],to=[3,rn,Ve,0,[Lt],[()=>xo]],no=[3,rn,Je,0,[y,"PageSizeBytes",C,"EnableDictionaryCompression","MaxPaddingBytes","WriterVersion"],[1,1,0,2,1,0]],ro=[3,rn,"PartitionField",0,["SourceName"],[0],1],oo=[3,rn,Ke,0,["Identity"],[()=>ii]],io=[3,rn,$e,0,[Z,"Processors"],[2,()=>ai]],ao=[3,rn,"Processor",0,[Gt,"Parameters"],[0,()=>
1si],1],so=[3,rn,"ProcessorParameter",0,["ParameterName","ParameterValue"],[0,0],2],lo=[3,rn,"PutRecordBatchInput",0,[W,"Records"],[0,()=>li],2],co=[3,rn,"PutRecordBatchOutput",0,["FailedPutCount","RequestResponses",ue],[1,()=>ci,2],2],uo=[3,rn,"PutRecordBatchResponseEntry",0,[it,"ErrorCode","ErrorMessage"],[0,0,0]],fo=[3,rn,"PutRecordInput",0,[W,st],[0,()=>ho],2],po=[3,rn,"PutRecordOutput",0,[it,ue],[0,2],1],ho=[3,rn,st,0,["Data"],[21],1],mo=[3,rn,tt,0,[Ze,k,_,pt,Wt,We,at,$e,dt,ct,x,Pt],[0,0,()=>Yn,()=>_o,[()=>jn,0],[()=>wn,0],()=>vo,()=>io,0,()=>_o,()=>$n,()=>To],4],go=[3,rn,nt,0,[Ze,k,_,vt,Wt,at,$e,dt,ut,x,Pt],[0,0,()=>Yn,()=>wo,[()=>jn,0],()=>vo,()=>io,0,()=>wo,()=>$n,()=>To],4],yo=[3,rn,rt,0,[Ze,k,_,Wt,We,at,jt,$e,dt,ft,x,Pt],[0,0,()=>Yn,[()=>jn,0],[()=>wn,0],()=>vo,()=>So,()=>io,0,()=>So,()=>$n,()=>To]],vo=[3,rn,"RedshiftRetryOptions",0,[M],[1]],bo=[3,rn,at,0,[M],[1]],_o=[3,rn,mt,0,[Ze,m,Xe,ie,g,E,ee,x],[0,0,0,0,()=>Gn,0,()=>Tr,()=>$n],2],wo=[3,rn,vt,0,[Ze,m,g,E,ee,Xe,ie,x],[0,0,()=>Gn,0,()=>Tr,0,0,()=>$n],5],So=[3,rn,wt,0,[Ze,m,Xe,ie,g,E,ee,x],[0,0,0,0,()=>Gn,0,()=>Tr,()=>$n]],Eo=[3,rn,ht,0,[Ze,"CatalogId","DatabaseName","TableName","Region",Jt],[0,0,0,0,0,0]],ko=[3,rn,kt,0,[Z],[2],1],To=[3,rn,Pt,0,[Z,"SecretARN",Ze],[2,0,0],1],xo=[3,rn,Lt,0,[Je,qe],[()=>no,()=>eo]],Oo=[3,rn,"SnowflakeBufferingHints",0,[xt,Oe],[1,1]],Co=[3,rn,gt,0,[h,Q,Nt,Vt,Ze,pt,Ye,Re,$t,It,D,Fe,b,Mt,x,$e,at,dt,Pt,g],[[()=>Sn,0],[()=>kn,0],[()=>An,0],[()=>In,0],0,()=>_o,[()=>On,0],[()=>Tn,0],[()=>Rn,0],[()=>Ro,0],0,[()=>xn,0],[()=>En,0],[()=>jo,0],()=>$n,()=>io,()=>Io,0,()=>To,()=>Oo],6],Po=[3,rn,bt,0,[h,$t,Q,Nt,Vt,It,D,Fe,b,Mt,x,$e,Ze,at,dt,vt,Pt,g],[[()=>Sn,0],[()=>Rn,0],[()=>kn,0],[()=>An,0],[()=>In,0],[()=>Ro,0],0,[()=>xn,0],[()=>En,0],[()=>jo,0],()=>$n,()=>io,0,()=>Io,0,()=>wo,()=>To,()=>Oo]],Ao=[3,rn,St,0,[h,Ye,Re,$t,Q,Nt,Vt,It,D,Fe,b,x,$e,Ze,at,dt,jt,Pt,g],[[()=>Sn,0],[()=>On,0],[()=>Tn,0],[()=>Rn,0],[()=>kn,0],[()=>An,0],[()=>In,0],[()=>Ro,0],0,[()=>xn,0],[()=>En,0],()=>$n,()=>io,0,()=>Io,0,()=>So,()=>To,()=>Oo]],Io=[3,rn,"SnowflakeRetryOptions",0,[M],[1]],Ro=[3,rn,It,0,[Z,At],[2,[()=>Pn,0]]],jo=[3,rn,Mt,0,["PrivateLinkVpceId"],[[()=>Cn,0]],1],Mo=[3,rn,"SourceDescription",0,[F,De,Ue,H],[()=>yr,()=>Gr,()=>Xr,()=>nr]],Do=[3,rn,"SplunkBufferingHints",0,[Oe,xt],[1,1]],No=[3,rn,yt,0,[me,ge,pt,ye,he,at,dt,$e,x,g,Pt],[0,0,()=>_o,0,1,()=>Bo,0,()=>io,()=>$n,()=>Do,()=>To],3],Lo=[3,rn,_t,0,[me,ge,ye,he,at,dt,vt,$e,x,g,Pt],[0,0,0,1,()=>Bo,0,()=>wo,()=>io,()=>$n,()=>Do,()=>To]],Fo=[3,rn,Et,0,[me,ge,ye,he,at,dt,jt,$e,x,g,Pt],[0,0,0,1,()=>Bo,0,()=>So,()=>io,()=>$n,()=>Do,()=>To]],Bo=[3,rn,"SplunkRetryOptions",0,[M],[1]],zo=[3,rn,"StartDeliveryStreamEncryptionInput",0,[W,G],[0,()=>ur],1],Uo=[3,rn,"StartDeliveryStreamEncryptionOutput",0,[],[]],Ho=[3,rn,"StopDeliveryStreamEncryptionInput",0,[W],[0],1],Vo=[3,rn,"StopDeliveryStreamEncryptionOutput",0,[],[]],qo=[3,rn,Bt,0,[Z],[2],1],Go=[3,rn,"Tag",0,["Key","Value"],[0,0],1],Wo=[3,rn,"TagDeliveryStreamInput",0,[W,Ft],[0,()=>ui],2],$o=[3,rn,"TagDeliveryStreamOutput",0,[],[]],Yo=[3,rn,"UntagDeliveryStreamInput",0,[W,"TagKeys"],[0,64],2],Ko=[3,rn,"UntagDeliveryStreamOutput",0,[],[]],Jo=[3,rn,"UpdateDestinationInput",0,[W,"CurrentDeliveryStreamVersionId",R,wt,le,rt,oe,c,Et,_e,p,St,Te],[0,0,0,()=>So,()=>Cr,[()=>yo,0],()=>Er,()=>Hn,()=>Fo,[()=>Lr,0],()=>Ln,[()=>Ao,0],()=>Hr],3],Qo=[3,rn,"UpdateDestinationOutput",0,[],[]],Xo=[3,rn,Yt,0,[Ot,Ze,Tt],[64,0,64],3],Zo=[3,rn,Kt,0,[Ot,Ze,Tt,"VpcId"],[64,0,64,0],4],ei=[1,rn,"DatabaseSnapshotInfoList",0,()=>Zn],ti=[1,rn,"DestinationDescriptionList",0,[()=>hr,0]],ni=[1,rn,J,0,()=>mr],ri=[1,rn,"HttpEndpointCommonAttributesList",0,[()=>Rr,0]],oi=[1,rn,"ListTagsForDeliveryStreamOutputTagList",0,()=>Go],ii=[1,rn,"PartitionFields",0,()=>ro],ai=[1,rn,"ProcessorList",0,()=>ao],si=[1,rn,"ProcessorParameterList",0,()=>so],li=[1,rn,"PutRecordBatchRequestEntryList",0,()=>ho],ci=[1,rn,"PutRecordBatchResponseEntryList",0,()=>uo],ui=[1,rn,"TagDeliveryStreamInputTagList",0,()=>Go],di=[9,rn,"CreateDeliveryStream",0,()=>Kn,()=>Jn],fi=[9,rn,"DeleteDeliveryStream",0,()=>ar,()=>sr],pi=[9,rn,"DescribeDeliveryStream",0,()=>dr,()=>fr],hi=[9,rn,"ListDeliveryStreams",0,()=>$r,()=>Yr],mi=[9,rn,"ListTagsForDeliveryStream",0,()=>Kr,()=>Jr],gi=[9,rn,"PutRecord",0,()=>fo,()=>po],yi=[9,rn,"PutRecordBatch",0,()=>lo,()=>co],vi=[9,rn,"StartDeliveryStreamEncryption",0,()=>zo,()=>Uo],bi=[9,rn,"StopDeliveryStreamEncryption",0,()=>Ho,()=>Vo],_i=[9,rn,"TagDeliveryStream",0,()=>Wo,()=>$o],wi=[9,rn,"UntagDeliveryStream",0,()=>Yo,()=>Ko],Si=[9,rn,"UpdateDestination",0,()=>
1Jo,()=>Qo]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TypeRegistry:()=>r});class r{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e,this.schemas=t,this.exceptions=n}static for(e){return r.registries.has(e)||r.registries.set(e,new r(e)),r.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,r]of e.schemas)t.has(n)||t.set(n,r);for(const[t,r]of e.exceptions)n.has(t)||n.set(t,r)}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,r.for(n.split("#")[0])])e.schemas.set(n,t)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){if(!e.includes("#")){const t="#"+e,n=[];for(const[e,r]of this.schemas.entries())e.endsWith(t)&&n.push(r);if(1===n.length)return n[0]}throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e,o=n[1];for(const e of[this,r.for(o)])e.schemas.set(o+"#"+n[2],n),e.exceptions.set(n,t)}getErrorCtor(e){const t=e;if(this.exceptions.has(t))return this.exceptions.get(t);return r.for(t[1]).exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,n]=e,r=t+"#"+n;if(r.startsWith("smithy.ts.sdk.synthetic.")&&r.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,n)=>{"use strict";n.r(t),n.d(t,{ConcurrentModificationException:()=>o,InvalidArgumentException:()=>i,InvalidKMSResourceException:()=>a,InvalidSourceException:()=>u,LimitExceededException:()=>s,ResourceInUseException:()=>l,ResourceNotFoundException:()=>c,ServiceUnavailableException:()=>d});var r=n(177);class o extends r.FirehoseServiceException{name="ConcurrentModificationException";$fault="client";constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),Object.setPrototypeOf(this,o.prototype)}}class i extends r.FirehoseServiceException{name="InvalidArgumentException";$fault="client";constructor(e){super({name:"InvalidArgumentException",$fault:"client",...e}),Object.setPrototypeOf(this,i.prototype)}}class a extends r.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 r.FirehoseServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),Object.setPrototypeOf(this,s.prototype)}}class l extends r.FirehoseServiceException{name="ResourceInUseException";$fault="client";constructor(e){super({name:"ResourceInUseException",$fault:"client",...e}),Object.setPrototypeOf(this,l.prototype)}}class c extends r.FirehoseServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),Object.setPrototypeOf(this,c.prototype)}}class u extends r.FirehoseServiceException{name="InvalidSourceException";$fault="client";code;constructor(e){super({name:"InvalidSourceException",$fault:"client",...e}),Object.setPrototypeOf(this,u.prototype),this.code=e.code}}class d extends r.FirehoseServiceException{name="ServiceUnavailableException";$fault="server";constructor(e){super({name:"ServiceUnavailableException",$fault:"server",...e}),Object.setPrototypeOf(this,d.prototype)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FirehoseServiceException:()=>o,__ServiceException:()=>r.ServiceException});var r=n(178);class o extends r.ServiceException{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServiceException:()=>r,decorateServiceException:()=>o});class r 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 r.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===r?r.isInstance(e):!!r.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const o=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,n])=>{null!=e[t]&&""!==e[t]||(e[t]=n)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,DeleteDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstru
1ctions())]}).s("Firehose_20150804","DeleteDeliveryStream",{}).n("FirehoseClient","DeleteDeliveryStreamCommand").sc(a.DeleteDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,DescribeDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","DescribeDeliveryStream",{}).n("FirehoseClient","DescribeDeliveryStreamCommand").sc(a.DescribeDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,ListDeliveryStreamsCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","ListDeliveryStreams",{}).n("FirehoseClient","ListDeliveryStreamsCommand").sc(a.ListDeliveryStreams$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,ListTagsForDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","ListTagsForDeliveryStream",{}).n("FirehoseClient","ListTagsForDeliveryStreamCommand").sc(a.ListTagsForDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,PutRecordBatchCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","PutRecordBatch",{}).n("FirehoseClient","PutRecordBatchCommand").sc(a.PutRecordBatch$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,PutRecordCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","PutRecord",{}).n("FirehoseClient","PutRecordCommand").sc(a.PutRecord$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,StartDeliveryStreamEncryptionCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","StartDeliveryStreamEncryption",{}).n("FirehoseClient","StartDeliveryStreamEncryptionCommand").sc(a.StartDeliveryStreamEncryption$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,StopDeliveryStreamEncryptionCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","StopDeliveryStreamEncryption",{}).n("FirehoseClient","StopDeliveryStreamEncryptionCommand").sc(a.StopDeliveryStreamEncryption$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,TagDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","TagDeliveryStream",{}).n("FirehoseClient","TagDeliveryStreamCommand").sc(a.TagDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,UntagDeliveryStreamCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstructions())]}).s("Firehose_20150804","UntagDeliveryStream",{}).n("FirehoseClient","UntagDeliveryStreamCommand").sc(a.UntagDeliveryStream$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{$Command:()=>r.Command,UpdateDestinationCommand:()=>s});var r=n(116),o=n(123),i=n(173),a=n(174);class s extends(r.Command.classBuilder().ep(i.commonParams).m(function(e,t,n,r){return[(0,o.getEndpointPlugin)(n,e.getEndpointParameterInstru
1ctions())]}).s("Firehose_20150804","UpdateDestination",{}).n("FirehoseClient","UpdateDestinationCommand").sc(a.UpdateDestination$).build()){}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FirehoseClient:()=>S,__Client:()=>d.Client});var r=n(191),o=n(193),i=n(194),a=n(195),s=n(197),l=n(206),c=n(207),u=n(210),d=n(212),f=n(213),p=n(123),h=n(217),m=n(218),g=n(273),y=n(275),v=n(279),b=n(173),_=n(296),w=n(376);class S extends d.Client{config;constructor(...[e]){const t=(0,_.getRuntimeConfig)(e||{});super(t),this.initConfig=t;const n=(0,b.resolveClientEndpointParameters)(t),d=(0,a.resolveUserAgentConfig)(n),S=(0,g.resolveRetryConfig)(d),E=(0,f.resolveRegionConfig)(S),k=(0,r.resolveHostHeaderConfig)(E),T=(0,p.resolveEndpointConfig)(k),x=(0,v.resolveHttpAuthSchemeConfig)(T),O=(0,w.resolveRuntimeExtensions)(x,e?.extensions||[]);this.config=O,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,h.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,r.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,o.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,i.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,c.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:v.defaultFirehoseHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new l.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use((0,u.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHostHeaderPlugin:()=>s,hostHeaderMiddleware:()=>i,hostHeaderMiddlewareOptions:()=>a,resolveHostHeaderConfig:()=>o});var r=n(192);function o(e){return e}const i=e=>t=>async n=>{if(!r.HttpRequest.isInstance(n.request))return t(n);const{request:o}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let e=o.hostname;null!=o.port&&(e+=`:${o.port}`),o.headers.host=e}return t(n)},a={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},s=e=>({applyToStack:t=>{t.add(i(e),a)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpRequest:()=>r});class r{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 r({...e,headers:{...e.headers}});var n;return t.query&&(t.query=(n=t.query,Object.keys(n).reduce((e,t)=>{const r=n[t];return{...e,[t]:Array.isArray(r)?[...r]:r}},{}))),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 r.clone(this)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getLoggerPlugin:()=>i,loggerMiddleware:()=>r,loggerMiddlewareOptions:()=>o});const r=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:o,commandName:i,logger:a,dynamoDbDocumentClientOptions:s={}}=t,{overrideInputFilterSensitiveLog:l,overrideOutputFilterSensitiveLog:c}=s,u=l??t.inputFilterSensitiveLog,d=c??t.outputFilterSensitiveLog,{$metadata:f,...p}=r.output;return a?.info?.({clientName:o,commandName:i,input:u(n.input),output:d(p),metadata:f}),r}catch(e){const{clientName:r,commandName:o,logger:i,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:s}=a,l=s??t.inputFilterSensitiveLog;throw i?.error?.({clientName:r,commandName:o,input:l(n.input),error:e,metadata:e.$metadata}),e}},o={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},i=e=>({applyToStack:e=>{e.add(r(),o)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRecursionDetectionPlugin:()=>r});const r=e=>({applyToStack:e=>{}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_UA_APP_ID:()=>o,resolveUserAgentConfig:()=>i});var r=n(196);const o=void 0;function i(e){const t=(0,r.normalizeProvider)(e.userAgentAppId??o),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:"string"==typeof n?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(n)){const t="NoOpLogger"!==e.logger?.constructor?.name&&e.logger?e.logger:console;"string"!=typeof n?t?.warn("userAgentAppId must be a string or undefined."):n.length>50&&t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return n}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeProvider:()=>r});const r=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getUserAgentMiddlewareOptions:()=>u,getUserAgentPlugin:()=>d,userAgentMiddleware:()=>l});var r=n(192),o=n(198),i=n(200),a=n(204),s=n(205);const l=e=>(t,n)=>async l=>{const{request:u}=l;if(!r.HttpRequest.isInstance(u))return t(l);const{headers:d}=u,f=n?.userAgent?.map(c)||[],p=(await e.defaultUserAgentProvider()).map(c);await(0,i.checkFeatures)(n,e,l);const h=n;p.push(`m/${(0,s.encodeFeatures)(Object.assign({},n.__smithy_context?.features,h.__aws_sdk_context?.features))}`);const m=e?.customUserAgent?.map(c)||[],g=await e.userAgentAppId();g&&p.push(c(["app",`${g}`]));const y=(0,o.getUserAgentPrefix)(),v=(y?[y]:[]).concat([...p,...f,...m]).join(a.SPACE),b=[...p.filter(e=>e.startsWith("aws-sdk-")),...m].join(a.SPACE);return"browser"!==e.runtime?(b&&(d[a.X_AMZ_USER_AGENT]=d[a.X_AMZ_USER_AGENT]?`${d[a.USER_AGENT]} ${b}`:b),d[a.USER_AGENT]=v):d[a.X_AMZ_USER_AGENT]=v,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),n=e[1]?.replace(a.UA_VALUE_ESCAPE_REGEX,a.UA_ESCAPE_CHAR),r=t.indexOf(a.UA_NAME_SEPARATOR),o=t.substring(0,r);let i=t.substring(r+1);return"api"===o&&(i=i.toLowerCase()),[o,i,n].filter(e=>e&&e.length>
10).reduce((e,t,n)=>{switch(n){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},d=e=>({applyToStack:t=>{t.add(l(e),u)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getUserAgentPrefix:()=>c,partition:()=>a,setPartitionInfo:()=>s,useDefaultPartitionInfo:()=>l});var r=n(199);let o=r.partitionsInfo,i="";const a=e=>{const{partitions:t}=o;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,o]of Object.entries(t))if(n===e)return{...r,...o}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const n=t.find(e=>"aws"===e.id);if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},s=(e,t="")=>{o=e,i=t},l=()=>{s(r.partitionsInfo,"")},c=()=>i},(e,t,n)=>{"use strict";n.r(t),n.d(t,{partitionsInfo:()=>r});const r={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!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,n)=>{"use strict";n.r(t),n.d(t,{checkFeatures:()=>a});var r=n(201),o=n(202);const i=/\d{12}\.ddb/;async function a(e,t,n){const a=n.request;if("rpc-v2-cbor"===a?.headers?.["smithy-protocol"]&&(0,o.setFeature)(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const n=await t.retryStrategy();if("string"==typeof n.mode)switch(n.mode){case r.RETRY_MODES.ADAPTIVE:(0,o.setFeature)(e,"RETRY_MODE_ADAPTIVE","F");break;case r.RETRY_MODES.STANDARD:(0,o.setFeature)(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){const n=e.endpointV2;switch(String(n?.url?.hostname).match(i)&&(0,o.setFeature)(e,"ACCOUNT_ID_ENDPOINT","O"),await(t.accountIdEndpointMode?.())){case"disabled":(0,o.setFeature)(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":(0,o.setFeature)(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":(0,o.setFeature)(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const t=s;t.accountId&&(0,o.setFeature)(e,"RESOLVED_ACCOUNT_ID","T");for(const[n,r]of Object.entries(t.$source??{}))(0,o.setFeature)(e,n,r)}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{DEFAULT_MAX_ATTEMPTS:()=>o,DEFAULT_RETRY_MODE:()=>i,RETRY_MODES:()=>r}),function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"}(r||(r={}));const o=3,i=r.STANDARD},(e,t,n)=>{"use strict";n.r(t),n.d(t,{setFeature:()=>o});var r=n(203);function o(e,t,n){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]=n}r.Retry.v2026||="object"==typeof process&&"true"===process.env?.AWS_NEW_RETRIES_202
16},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Retry:()=>r});class r{static v2026="undefined"!=typeof process&&"true"===process.env?.SMITHY_NEW_RETRIES_2026;static delay(){return r.v2026?50:100}static throttlingDelay(){return r.v2026?1e3:500}static cost(){return r.v2026?14:5}static throttlingCost(){return r.v2026?5:10}static modifiedCostType(){return r.v2026?"THROTTLING":"TRANSIENT"}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SPACE:()=>i,UA_ESCAPE_CHAR:()=>c,UA_NAME_ESCAPE_REGEX:()=>s,UA_NAME_SEPARATOR:()=>a,UA_VALUE_ESCAPE_REGEX:()=>l,USER_AGENT:()=>r,X_AMZ_USER_AGENT:()=>o});const r="user-agent",o="x-amz-user-agent",i=" ",a="/",s=/[^!$%&'*+\-.^_`|~\w]/g,l=/[^!$%&'*+\-.^_`|~\w#]/g,c="-"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{encodeFeatures:()=>o});const r=1024;function o(e){let t="";for(const n in e){const o=e[n];if(!(t.length+o.length+1<=r))break;t.length?t+=","+o:t+=o}return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultIdentityProviderConfig:()=>r});class r{authSchemes=new Map;constructor(e){for(const t in e){const n=e[t];void 0!==n&&this.authSchemes.set(t,n)}}getIdentityProvider(e){return this.authSchemes.get(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHttpAuthSchemeEndpointRuleSetPlugin:()=>i,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>o});var r=n(208);const o={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},i=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:i=>{i.addRelativeTo((0,r.httpAuthSchemeMiddleware)(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),o)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{httpAuthSchemeMiddleware:()=>i});var r=n(132),o=n(209);const i=(e,t)=>(n,i)=>async a=>{const s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,i,a.input)),l=e.authSchemePreference?await e.authSchemePreference():[],c=(0,o.resolveAuthOptions)(s,l),u=function(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}(e.httpAuthSchemes),d=(0,r.getSmithyContext)(i),f=[];for(const n of c){const r=u.get(n.schemeId);if(!r){f.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const o=r.identityProvider(await t.identityProviderConfigProvider(e));if(!o){f.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:a={},signingProperties:s={}}=n.propertiesExtractor?.(e,i)||{};n.identityProperties=Object.assign(n.identityProperties||{},a),n.signingProperties=Object.assign(n.signingProperties||{},s),d.selectedHttpAuthScheme={httpAuthOption:n,identity:await o(n.identityProperties),signer:r.signer};break}if(!d.selectedHttpAuthScheme)throw new Error(f.join("\n"));return n(a)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveAuthOptions:()=>r});const r=(e,t)=>{if(!t||0===t.length)return e;const n=[];for(const r of t)for(const t of e){t.schemeId.split("#")[1]===r&&n.push(t)}for(const t of e)n.find(({schemeId:e})=>e===t.schemeId)||n.push(t);return n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHttpSigningPlugin:()=>i,httpSigningMiddlewareOptions:()=>o});var r=n(211);const o={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},i=e=>({applyToStack:t=>{t.addRelativeTo((0,r.httpSigningMiddleware)(e),o)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{httpSigningMiddleware:()=>s});var r=n(192),o=n(132);const i=e=>e=>{throw e},a=(e,t)=>{},s=e=>(e,t)=>async n=>{if(!r.HttpRequest.isInstance(n.request))return e(n);const s=(0,o.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,d=await e({...n,request:await u.sign(n.request,c,l)}).catch((u.errorHandler||i)(l));return(u.successHandler||a)(d.response,l),d}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Client:()=>o});var r=n(118);class o{config;middlewareStack=(0,r.constructStack)();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;n&&"function"==typeof t&&(e.protocol=new t(n))}send(e,t,n){const r="function"!=typeof t?t:void 0,o="function"==typeof t?t:n;let i;if(void 0===r&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?i=t.get(e.constructor):(i=e.resolveMiddleware(this.middlewareStack,this.config,r),t.set(e.constructor,i))}else delete this.handlers,i=e.resolveMiddleware(this.middlewareStack,this.config,r);
1if(!o)return i(e).then(e=>e.output);i(e).then(e=>o(null,e.output),e=>o(e)).catch(()=>{})}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveRegionConfig:()=>a});var r=n(214),o=n(215),i=n(216);const a=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e="function"==typeof t?await t():t,n=(0,o.getRealRegion)(e);return(0,r.checkRegion)(n),n},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!(0,i.isFipsRegion)(e)||("function"!=typeof n?Promise.resolve(!!n):n())}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{checkRegion:()=>i});var r=n(151);const o=new Set,i=(e,t=r.isValidHostLabel)=>{if(o.has(e)||t(e))o.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,n)=>{"use strict";n.r(t),n.d(t,{getRealRegion:()=>o});var r=n(216);const o=e=>(0,r.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isFipsRegion:()=>r});const r=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips"))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{contentLengthMiddleware:()=>i,contentLengthMiddlewareOptions:()=>a,getContentLengthPlugin:()=>s});var r=n(192);const o="content-length";function i(e){return t=>async n=>{const i=n.request;if(r.HttpRequest.isInstance(i)){const{body:t,headers:n}=i;
1if(t&&-1===Object.keys(n).map(e=>e.toLowerCase()).indexOf(o))try{const n=e(t);i.headers={...i.headers,[o]:String(n)}}catch(e){}}return t({...n,request:i})}}const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},s=e=>({applyToStack:t=>{t.add(i(e.bodyLengthChecker),a)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AdaptiveRetryStrategy:()=>a.AdaptiveRetryStrategy,CONFIG_MAX_ATTEMPTS:()=>S,CONFIG_RETRY_MODE:()=>T,ConfiguredRetryStrategy:()=>s.ConfiguredRetryStrategy,DEFAULT_MAX_ATTEMPTS:()=>u.DEFAULT_MAX_ATTEMPTS,DEFAULT_RETRY_DELAY_BASE:()=>d.DEFAULT_RETRY_DELAY_BASE,DEFAULT_RETRY_MODE:()=>u.DEFAULT_RETRY_MODE,DefaultRateLimiter:()=>l.DefaultRateLimiter,DeprecatedAdaptiveRetryStrategy:()=>p.AdaptiveRetryStrategy,DeprecatedStandardRetryStrategy:()=>h.StandardRetryStrategy,ENV_MAX_ATTEMPTS:()=>w,ENV_RETRY_MODE:()=>k,INITIAL_RETRY_TOKENS:()=>d.INITIAL_RETRY_TOKENS,INVOCATION_ID_HEADER:()=>d.INVOCATION_ID_HEADER,MAXIMUM_RETRY_DELAY:()=>d.MAXIMUM_RETRY_DELAY,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>E,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>x,NO_RETRY_INCREMENT:()=>d.NO_RETRY_INCREMENT,REQUEST_HEADER:()=>d.REQUEST_HEADER,RETRY_COST:()=>d.RETRY_COST,RETRY_MODES:()=>u.RETRY_MODES,Retry:()=>f.Retry,StandardRetryStrategy:()=>c.StandardRetryStrategy,THROTTLING_RETRY_DELAY_BASE:()=>d.THROTTLING_RETRY_DELAY_BASE,TIMEOUT_RETRY_COST:()=>d.TIMEOUT_RETRY_COST,defaultDelayDecider:()=>m.defaultDelayDecider,defaultRetryDecider:()=>g.defaultRetryDecider,getOmitRetryHeadersPlugin:()=>v.getOmitRetryHeadersPlugin,getRetryAfterHint:()=>b.getRetryAfterHint,getRetryPlugin:()=>C,isBrowserNetworkError:()=>i.isBrowserNetworkError,isClockSkewCorrectedError:()=>i.isClockSkewCorrectedError,isClockSkewError:()=>i.isClockSkewError,isNodeJsHttp2TransientError:()=>i.isNodeJsHttp2TransientError,isRetryableByTrait:()=>i.isRetryableByTrait,isServerError:()=>i.isServerError,isThrottlingError:()=>i.isThrottlingError,isTransientError:()=>i.isTransientError,omitRetryHeadersMiddleware:()=>v.omitRetryHeadersMiddleware,omitRetryHeadersMiddlewareOptions:()=>v.omitRetryHeadersMiddlewareOptions,resolveRetryConfig:()=>y.resolveRetryConfig,retryMiddleware:()=>O,retryMiddlewareOptions:()=>o.retryMiddlewareOptions});var r=n(219),o=n(220),i=n(257),a=n(262),s=n(267),l=n(263),c=n(264),u=n(201),d=n(259),f=n(203),p=n(268),h=n(269),m=n(271),g=n(272),y=n(273),v=n(274),b=n(260);const _=Symbol.for("node-only"),w=_,S=_,E=_,k=_,T=_,x=_,O=(0,o.bindRetryMiddleware)(r.isStreamingPayload),C=(0,o.bindGetRetryPlugin)(r.isStreamingPayload)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isStreamingPayload:()=>r});const r=e=>e?.body instanceof ReadableStream},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindGetRetryPlugin:()=>g,bindRetryMiddleware:()=>u,retryMiddlewareOptions:()=>m});var r=n(221),o=n(192),i=n(222),a=n(257),s=n(259),l=n(260),c=n(261);function u(e){return t=>(n,a)=>async l=>{let u=await t.retryStrategy();const h=await t.maxAttempts();if(!f(u))return u?.mode&&(a.userAgent=[...a.userAgent||[],["cfg/retry-mode",u.mode]]),u.retry(n,l);{let f=await u.acquireInitialRetryToken((a.partition_id??"")+(a.__retryLongPoll?":longpoll":"")),m=new Error,g=0,y=0;const{request:v}=l,b=o.HttpRequest.isInstance(v);for(b&&(v.headers[s.INVOCATION_ID_HEADER]=(0,i.v4)());;)try{b&&(v.headers[s.REQUEST_HEADER]=`attempt=${g+1}; max=${h}`);const{response:e,output:t}=await n(l);return u.recordSuccess(f),t.$metadata.attempts=g+1,t.$metadata.totalRetryDelay=y,{response:e,output:t}}catch(n){const o=p(n,t.logger);if(m=(0,c.asSdkError)(n),b&&e(v))throw(a.logger instanceof r.NoOpLogger?console:a.logger)?.warn("An error was encountered in a non-retryable streaming request."),m;try{f=await u.refreshRetryTokenForRetry(f,o)}catch(e){throw m.$metadata||(m.$metadata={}),m.$metadata.attempts=g+1,m.$metadata.totalRetryDelay=y,m}g=f.getRetryCount();const i=f.getRetryDelay();y+=(f?.$retryLog?.acquisitionDelay??0)+i,i>0&&await d(i)}}}}const d=e=>new Promise(t=>setTimeout(t,e)),f=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,p=(e,t)=>{const n={error:e,errorType:h(e)}
1,r=(0,l.parseRetryAfterHeader)(e.$response,t);return r&&(n.retryAfterHint=r),n},h=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:n=>{n.add(t(e),m)}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{NoOpLogger:()=>r});class r{trace(){}debug(){}info(){}warn(){}error(){}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChecksumStream:()=>T.ChecksumStream,Hash:()=>N,LazyJsonString:()=>d.LazyJsonString,NumericValue:()=>y.NumericValue,Uint8ArrayBlobAdapter:()=>L,_parseEpochTimestamp:()=>h._parseEpochTimestamp,_parseRfc3339DateTimeWithOffset:()=>h._parseRfc3339DateTimeWithOffset,_parseRfc7231DateTime:()=>h._parseRfc7231DateTime,calculateBodyLength:()=>b.calculateBodyLength,copyDocumentWithTransform:()=>c.copyDocumentWithTransform,createBufferedReadable:()=>O.createBufferedReadable,createChecksumStream:()=>x.createChecksumStream,dateToUtcString:()=>u.dateToUtcString,deserializerMiddleware:()=>S.deserializerMiddleware,deserializerMiddlewareOption:()=>E.deserializerMiddlewareOption,expectBoolean:()=>f.expectBoolean,expectByte:()=>f.expectByte,expectFloat32:()=>f.expectFloat32,expectInt:()=>f.expectInt,expectInt32:()=>f.expectInt32,expectLong:()=>f.expectLong,expectNonNull:()=>f.expectNonNull,expectNumber:()=>f.expectNumber,expectObject:()=>f.expectObject,expectShort:()=>f.expectShort,expectString:()=>f.expectString,expectUnion:()=>f.expectUnion,fromArrayBuffer:()=>M,fromBase64:()=>r.fromBase64,fromHex:()=>v.fromHex,fromString:()=>D,fromUtf8:()=>a.fromUtf8,generateIdempotencyToken:()=>B,getAwsChunkedEncodingStream:()=>C.getAwsChunkedEncodingStream,getSerdePlugin:()=>E.getSerdePlugin,handleFloat:()=>f.handleFloat,headStream:()=>P.headStream,isArrayBuffer:()=>w.isArrayBuffer,isBlob:()=>R.isBlob,isReadableStream:()=>R.isReadableStream,limitedParseDouble:()=>f.limitedParseDouble,limitedParseFloat:()=>f.limitedParseFloat,limitedParseFloat32:()=>f.limitedParseFloat32,logger:()=>f.logger,nv:()=>y.nv,parseBoolean:()=>f.parseBoolean,parseEpochTimestamp:()=>u.parseEpochTimestamp,parseRfc3339DateTime:()=>u.parseRfc3339DateTime,parseRfc3339DateTimeWithOffset:()=>u.parseRfc3339DateTimeWithOffset,parseRfc7231DateTime:()=>u.parseRfc7231DateTime,quoteHeader:()=>p.quoteHeader,sdkStreamMixin:()=>A.sdkStreamMixin,serializerMiddleware:()=>k.serializerMiddleware,serializerMiddlewareOption:()=>E.serializerMiddlewareOption,splitEvery:()=>m.splitEvery,splitHeader:()=>g.splitHeader,splitStream:()=>I.splitStream,strictParseByte:()=>f.strictParseByte,strictParseDouble:()=>f.strictParseDouble,strictParseFloat:()=>f.strictParseFloat,strictParseFloat32:()=>f.strictParseFloat32,strictParseInt:()=>f.strictParseInt,strictParseInt32:()=>f.strictParseInt32,strictParseLong:()=>f.strictParseLong,strictParseShort:()=>f.strictParseShort,toBase64:()=>o.toBase64,toHex:()=>v.toHex,toUint8Array:()=>_.toUint8Array,toUtf8:()=>s.toUtf8,v4:()=>F});var r=n(223),o=n(225),i=n(227),a=n(226),s=n(228),l=n(229),c=n(230),u=n(231),d=n(233),f=n(232),p=n(234),h=n(235),m=n(236),g=n(237),y=n(238),v=n(239),b=n(240),_=n(241),w=n(242),S=n(243),E=n(245),k=n(246),T=n(247),x=n(248),O=n(250),C=n(252),P=n(253),A=n(254),I=n(256),R=n(249);const j=Symbol.for("node-only"),M=j,D=j,N=j;class L extends((0,i.bindUint8ArrayBlobAdapter)(s.toUtf8,a.fromUtf8,o.toBase64,r.fromBase64)){}const F=(0,l.bindV4)(e=>crypto.getRandomValues(e)),B=F},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromBase64:()=>o});var r=n(224);const o=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const n=new ArrayBuffer(t),o=new DataView(n);for(let t=0;t<e.length;t+=4){let n=0,i=0;for(let o=t,a=t+3;o<=a;o++)if("="!==e[o]){if(!(e[o]in r.alphabetByEncoding))throw new TypeError(`Invalid character ${e[o]} in base64 string.`);n|=r.alphabetByEncoding[e[o]]<<(a-o)*r.bitsPerLetter,i+=r.bitsPerLetter}else n>>=r.bitsPerLetter;const a=t/4*3;n>>=i%r.bitsPerByte;const s=Math.floor(i/r.bitsPerByte);for(let e=0;e<s;e++){const t=(s-e-1)*r.bitsPerByte;o.setUint8(a+e,(n&255<<t)>>t)}}return new Uint8Array(n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{alphabetByEncoding:()=>o,alphabetByValue:()=>i,bitsPerByte:()=>s,bitsPerLetter:()=>a,maxLetterValue:()=>l});const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",o=Object.entries(r).reduce((e,[t,n])=>(e[n]=Number(t),e),{}),i=r.split(""),a=6,s=8,l=63},(e,t,n)=>{"use strict";n.r(t),n.d(t,{toBase64:()=>i});var r=n(226),o=n(224);function i(e){let t;t="string"==typeof e?(0,r.fromUtf8)(e):e;const n="object"==typeof t&&"number"==typeof t.length,i="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!n&&!i)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 n=0,r=0;for(let i=e,a=Math.min(e+3,t.length);i<a;i++)n|=t[i]<<(a-i-1)*o.bitsPerByte,r+=o.bitsPerByte;const i=Math.ceil(r/o.bitsPerLetter);n<<=i*o.bitsPerLetter-r;for(let e=1;e<=i;e++){const t=(i-e)*o.bitsPerLetter;a+=o.alphabetByValue[(n&o.maxLetterValue<<t)>>t]}a+="==".slice(0,4-i)}return a}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r});const r=e=>(new TextEncoder).encode(e)},(e,t,n)=>{"use strict";function r(e,t,n,r){return class o extends Uint8Array{static fromString(e,n="utf-8"){if("string"==typeof e)return"base64"===n?o.mutate(r(e)):o.mutate(t(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,o.prototype),e}transformToString(t="utf-8"){return"base64"===t?n(this):e(this)}}}n.r(t),n.d(t,{bindUint8ArrayBlobAdapter:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{toUtf8:()=>r});const r=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,n)=>{"use strict";n.r(t),n.d(t,{bindV4:()=>o});const r=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function o(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,r[t[0]]+r[t[1]]+r[t[2]]+r[t[3]]+"-"+r[t[4]]+r[t[5]]+"-"+r[t[6]]+r[t[7]]+"-"+r[t[8]]+r[t[9]]+"-"+r[t[10]]+r[t[11]]+r[t[12]]+r[t[13]]+r[t[14]]+r[t[15]]}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{copyDocumentWithTransform:()=>r});const r=(e,t,n=e=>e)=>e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{dateToUtcString:()=>a,parseEpochTimestamp:()=>m,parseRfc3339DateTime:()=>l,parseRfc3339DateTimeWithOffset:()=>u,parseRfc7231DateTime:()=>h});var r=n(232);const o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function a(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),a=e.getUTCDate(),s=e.getUTCHours(),l=e.getUTCMinutes(),c=e.getUTCSeconds(),u=a<10?`0${a}`:`${a}`,d=s<10?`0${s}`:`${s}`,f=l<10?`0${l}`:`${l}`,p=c<10?`0${c}`:`${c}`;return`${o[r]}, ${u} ${i[n]} ${t} ${d}:${f}:${p} 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[n,o,i,a,l,c,u,d]=t,f=(0,r.strictParseShort)(x(o)),p=E(i,"month",1,12),h=E(a,"day",1,31);return g(f,p,h,{hours:l,minutes:c,seconds:u,fractionalMilliseconds:d})},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[n,o,i,a,s,l,u,d,f]=t,p=(0,r.strictParseShort)(x(o)),h=E(i,"month",1,12),m=E(a,"day",1,31),y=g(p,h,m,{hours:s,minutes:l,seconds:u,fractionalMilliseconds:d});return"Z"!=f.toUpperCase()&&y.setTime(y.getTime()-T(f)),y},d=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$/),f=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$/),p=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})$/),h=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=d.exec(e);if(t){const[e,n,o,i,a,s,l,c]=t;return g((0,r.strictParseShort)(x(i)),b(o),E(n,"day",1,31),{hours:a,minutes:s,seconds:l,fractionalMilliseconds:c})}if(t=f.exec(e),t){const[e,n,r,o,i,a,s,l]=t;return v(g(y(o),b(r),E(n,"day",1,31),{hours:i,minutes:a,seconds:s,fractionalMilliseconds:l}))}if(t=p.exec(e),t){const[e,n,o,i,a,s,l,c]=t;return g((0,r.strictParseShort)(x(c)),b(n),E(o.trimLeft(),"day",1,31),{hours:i,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,r.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,n,r)=>{const o=t-1;return w(e,o,n),new Date(Date.UTC(e,o,n,E(r.hours,"hour",0,23),E(r.minutes,"minute",0,59),E(r.seconds,"seconds",0,60),
1k(r.fractionalMilliseconds)))},y=e=>{const t=(new Date).getUTCFullYear(),n=100*Math.floor(t/100)+(0,r.strictParseShort)(x(e));return n<t?n+100:n},v=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,b=e=>{const t=i.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],w=(e,t,n)=>{let r=_[t];if(1===t&&S(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${i[t]} in ${e}: ${n}`)},S=e=>e%4==0&&(e%100!=0||e%400==0),E=(e,t,n,o)=>{const i=(0,r.strictParseByte)(x(e));if(i<n||i>o)throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`);return i},k=e=>null==e?0:1e3*(0,r.strictParseFloat32)("0."+e),T=e=>{const t=e[0];let n=1;if("+"==t)n=1;else{if("-"!=t)throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);n=-1}return n*(60*Number(e.substring(1,3))+Number(e.substring(4,6)))*60*1e3},x=e=>{let t=0;for(;t<e.length-1&&"0"===e.charAt(t);)t++;return 0===t?e:e.slice(t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{expectBoolean:()=>o,expectByte:()=>f,expectFloat32:()=>s,expectInt:()=>c,expectInt32:()=>u,expectLong:()=>l,expectNonNull:()=>m,expectNumber:()=>i,expectObject:()=>g,expectShort:()=>d,expectString:()=>y,expectUnion:()=>v,handleFloat:()=>T,limitedParseDouble:()=>k,limitedParseFloat:()=>x,limitedParseFloat32:()=>O,logger:()=>D,parseBoolean:()=>r,strictParseByte:()=>j,strictParseDouble:()=>b,strictParseFloat:()=>_,strictParseFloat32:()=>w,strictParseInt:()=>A,strictParseInt32:()=>I,strictParseLong:()=>P,strictParseShort:()=>R});const r=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},o=e=>{if(null!=e){if("number"==typeof e){if(0!==e&&1!==e||D.warn(M(`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||D.warn(M(`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}`)}},i=e=>{if(null!=e){if("string"==typeof e){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&D.warn(M(`Expected number but observed string: ${e}`)),t}if("number"==typeof e)return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},a=Math.ceil(2**127*(2-2**-23)),s=e=>{const t=i(e);if(void 0!==t&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>a)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},l=e=>{if(null!=e){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},c=l,u=e=>p(e,32),d=e=>p(e,16),f=e=>p(e,8),p=(e,t)=>{const n=l(e);if(void 0!==n&&h(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},h=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},m=(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},g=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}`)},y=e=>{if(null!=e){if("string"==typeof e)return e;if(["boolean","number","bigint"].includes(typeof e))return D.warn(M(`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=g(e),n=[];for(const e in t)null!=t[e]&&n.push(e);if(0===n.length)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},b=e=>i("string"==typeof e?E(e):e),_=b,w=e=>s("string"==typeof e?E(e):e),S=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,E=e=>{const t=e.match(S);if(null===t||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},k=e=>"string"==typeof e?C(e):i(e),T=k,x=k,O=e=>"string"==typeof e?C(e):s(e),C=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}`)}},P=e=>l("string"==typeof e?E(e):e),A=P,I=e=>u("string"==typeof e?E(e):e),R=e=>
1d("string"==typeof e?E(e):e),j=e=>f("string"==typeof e?E(e):e),M=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter(e=>!e.includes("stackTraceWarning")).join("\n"),D={warn:console.warn}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LazyJsonString:()=>r});const r=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};r.from=e=>e&&"object"==typeof e&&(e instanceof r||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?r(String(e)):r(JSON.stringify(e)),r.fromObject=r.from},(e,t,n)=>{"use strict";function r(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}n.r(t),n.d(t,{quoteHeader:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_parseEpochTimestamp:()=>p,_parseRfc3339DateTimeWithOffset:()=>h,_parseRfc7231DateTime:()=>m});const r="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",o="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",i="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",a="(\\d?\\d)",s="(\\d{4})",l=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),c=new RegExp(`^${r}, ${a} ${o} ${s} ${i} GMT$`),u=new RegExp(`^${r}, ${a}-${o}-(\\d\\d) ${i} GMT$`),d=new RegExp(`^${r} ${o} ( [1-9]|\\d\\d) ${i} ${s}$`),f=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],p=e=>{if(null==e)return;let t=NaN;if("number"==typeof e)t=e;else if("string"==typeof e){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else"object"==typeof e&&1===e.tag&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(1e3*t))},h=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC3339 timestamps must be strings");const t=l.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,n,r,o,i,a,s,,c,u]=t;g(r,1,12),g(o,1,31),g(i,0,23),g(a,0,59),g(s,0,60);const d=new Date(Date.UTC(Number(n),Number(r)-1,Number(o),Number(i),Number(a),Number(s),Number(c)?Math.round(1e3*parseFloat(`0.${c}`)):0));if(d.setUTCFullYear(Number(n)),"Z"!=u.toUpperCase()){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],r="-"===e?1:-1;d.setTime(d.getTime()+r*(60*Number(t)*60*1e3+60*Number(n)*1e3))}return d},m=e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC7231 timestamps must be strings.");let t,n,r,o,i,a,s,l;if((l=c.exec(e))?[,t,n,r,o,i,a,s]=l:(l=u.exec(e))?([,t,n,r,o,i,a,s]=l,r=(Number(r)+1900).toString()):(l=d.exec(e))&&([,n,t,o,i,a,s,r]=l),r&&a){const e=Date.UTC(Number(r),f.indexOf(n),Number(t),Number(o),Number(i),Number(a),s?Math.round(1e3*parseFloat(`0.${s}`)):0);g(t,1,31),g(o,0,23),g(i,0,59),g(a,0,60);const l=new Date(e);return l.setUTCFullYear(Number(r)),l}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function g(e,t,n){const r=Number(e);if(r<t||r>n)throw new Error(`Value ${r} out of range [${t}, ${n}]`)}},(e,t,n)=>{"use strict";function r(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");const r=e.split(t);if(1===n)return r;const o=[];let i="";for(let e=0;e<r.length;e++)""===i?i=r[e]:i+=t+r[e],(e+1)%n===0&&(o.push(i),i="");return""!==i&&o.push(i),o}n.r(t),n.d(t,{splitEvery:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{splitHeader:()=>r});const r=e=>{const t=e.length,n=[];let r,o=!1,i=0;for(let a=0;a<t;++a){const t=e[a];switch(t){case'"':"\\"!==r&&(o=!o);break;case",":o||(n.push(e.slice(i,a)),i=a+1)}r=t}return n.push(e.slice(i)),n.map(e=>{const t=(e=e.trim()).length;return t<2?e:('"'===e[0]&&'"'===e[t-1]&&(e=e.slice(1,t-1)),e.replace(/\\"/g,'"'))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{NumericValue:()=>o,nv:()=>i});const r=/^-?\d*(\.\d+)?$/;class o{string;type;constructor(e,t){if(this.string=e,this.type=t,!r.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return o.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&r.test(t.string)}}function i(e){return new o(String(e),"bigDecimal")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromHex:()=>i,toHex:()=>a});const r={},o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),r[e]=t,o[t]=e}function i(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 n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(!(r in o))throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`);t[n/2]=o[r]}return t}function a(e){let t="";for(let n=0;n<e.byteLength;n++)t+=r[e[n]];return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateBodyLength:()=>o});const r="function"==typeof TextEncoder?new TextEncoder:null,o=e=>{if("string"==typeof e){if(r)return r.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}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,n)=>{"use strict";n.r(t),n.d(t,{toUint8Array:()=>o});var r=n(226);const o=e=>"string"==typeof e?(0,r.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isArrayBuffer:()=>r});const r=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{deserializerMiddleware:()=>o});var r=n(244);const o=(e,t)=>(n,o)=>async a=>{const{response:s}=await n(a);try{return{response:s,output:await t(s,e)}}catch(e){if(Object.defineProperty(e,"$response",{value:s,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){o.logger&&"NoOpLogger"!==o.logger?.constructor?.name?o.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(r.HttpResponse.isInstance(s)){const{headers:t={}}=s,n=Object.entries(t);e.$metadata={httpStatusCode:s.statusCode,requestId:i(/^x-[\w-]+-request-?id$/,n),extendedRequestId:i(/^x-[\w-]+-id-2$/,n),cfId:i(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}},i=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpResponse:()=>r});class r{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,n)=>{"use strict";n.r(t),n.d(t,{deserializerMiddlewareOption:()=>i,getSerdePlugin:()=>s,serializerMiddlewareOption:()=>a});var r=n(243),o=n(246);const i={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},a={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function s(e,t,n){return{applyToStack:s=>{s.add((0,r.deserializerMiddleware)(e,n),i),s.add((0,o.serializerMiddleware)(e,t),a)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{serializerMiddleware:()=>o});var r=n(128);const o=(e,t)=>(n,o)=>async i=>{const a=e,s=o.endpointV2?async()=>(0,r.toEndpointV1)(o.endpointV2):a.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const l=await t(i.input,{...e,endpoint:s});return n({...i,request:l})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ChecksumStream:()=>o});const r="function"==typeof ReadableStream?ReadableStream:function(){};class o extends r{}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createChecksumStream:()=>a});var r=n(225),o=n(249),i=n(247);const a=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:a,base64Encoder:s})=>{if(!(0,o.isReadableStream)(n))throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);const l=s??r.toBase64;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const c=new TransformStream({start(){},async transform(e,n){t.update(e),n.enqueue(e)},async flush(n){const r=await t.digest(),o=l(r);if(e!==o){const t=new Error(`Checksum mismatch: expected "${e}" but received "${o}" in response header "${a}".`);n.error(t)}else n.terminate()}});n.pipeThrough(c);const u=c.readable;return Object.setPrototypeOf(u,i.ChecksumStream.prototype),u}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isBlob:()=>o,isReadableStream:()=>r});const r=e=>"function"==typeof ReadableStream&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),o=e=>"function"==typeof Blob&&(e?.constructor?.name===Blob.name||e instanceof Blob)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createBufferedReadable:()=>i,createBufferedReadableStream:()=>o,flush:()=>s,merge:()=>a,modeOf:()=>c,sizeOf:()=>l});var r=n(251);function o(e,t,n){const o=e.getReader();let i=!1,u=0;const d=["",new r.ByteArrayCollector(e=>new Uint8Array(e))];let f=-1;const p=async e=>{const{value:r,done:h}=await o.read(),m=r;if(h){if(-1!==f){const t=s(d,f);l(t)>0&&e.enqueue(t)}e.close()}else{const r=c(m,!1);if(f!==r&&(f>=0&&e.enqueue(s(d,f)),f=r),-1===f)return void e.enqueue(m);const o=l(m);u+=o;const h=l(d[f]);if(o>=t&&0===h)e.enqueue(m);else{const r=a(d,f,m);!i&&u>2*t&&(i=!0,n?.warn(`@smithy/util-stream - stream chunk size ${o} is below threshold of ${t}, automatically buffering.`)),r>=t?e.enqueue(s(d,f)):await p(e)}}};return new ReadableStream({pull:p})}const i=o;function a(e,t,n){switch(t){case 0:return e[0]+=n,l(e[0]);case 1:case 2:return e[t].push(n),l(e[t])}}function s(e,t){switch(t){case 0:const n=e[0];return e[0]="",n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function l(e){return e?.byteLength??e?.length??0}function c(e,t=!0){return t&&"undefined"!=typeof Buffer&&e instanceof Buffer?2:e instanceof Uint8Array?1:"string"==typeof e?0:-1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ByteArrayCollector:()=>r});class r{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n<this.byteArrays.length;++n){const r=this.byteArrays[n];e.set(r,t),t+=r.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAwsChunkedEncodingStream:()=>r});const r=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:o,checksumLocationName:i,streamHasher:a}=t,s=void 0!==n&&void 0!==r&&void 0!==o&&void 0!==i&&void 0!==a,l=s?a(o,e):void 0,c=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:o}=await c.read();if(o){if(e.enqueue("0\r\n"),s){const t=n(await l);e.enqueue(`${i}:${t}\r\n`),e.enqueue("\r\n")}e.close()}else e.enqueue(`${(r(t)||0).toString(16)}\r\n${t}\r\n`)}})}},(e,t,n)=>{"use strict";async function r(e,t){let n=0;const r=[],o=e.getReader();let i=!1;for(;!i;){const{done:e,value:a}=await o.read();if(a&&(r.push(a),n+=a?.byteLength??0),n>=t)break;
1i=e}o.releaseLock();const a=new Uint8Array(Math.min(t,n));let s=0;for(const e of r){if(e.byteLength>a.byteLength-s){a.set(e.subarray(0,a.byteLength-s),s);break}a.set(e,s),s+=e.length}return a}n.r(t),n.d(t,{headStream:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{sdkStreamMixin:()=>c});var r=n(225),o=n(239),i=n(228),a=n(255),s=n(249);const l="The stream has already been transformed.",c=e=>{if(!u(e)&&!(0,s.isReadableStream)(e)){throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${e?.__proto__?.constructor?.name||e}`)}let t=!1;const n=async()=>{if(t)throw new Error(l);return t=!0,await(0,a.streamCollector)(e)};return Object.assign(e,{transformToByteArray:n,transformToString:async e=>{const t=await n();if("base64"===e)return(0,r.toBase64)(t);if("hex"===e)return(0,o.toHex)(t);if(void 0===e||"utf8"===e||"utf-8"===e)return(0,i.toUtf8)(t);if("function"==typeof TextDecoder)return new TextDecoder(e).decode(t);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(l);if(t=!0,u(e))return(e=>{if("function"!=typeof e.stream)throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if((0,s.isReadableStream)(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},u=e=>"function"==typeof Blob&&e instanceof Blob},(e,t,n)=>{"use strict";n.r(t),n.d(t,{streamCollector:()=>o});var r=n(223);const o=async e=>"function"==typeof Blob&&e instanceof Blob||"Blob"===e.constructor?.name?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(2!==r.readyState)return n(new Error("Reader aborted too early"));const e=r.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>
1n(r.error),r.readAsDataURL(e)})}(e),n=(0,r.fromBase64)(t);return new Uint8Array(n)}(e):async function(e){const t=[],n=e.getReader();let r=!1,o=0;for(;!r;){const{done:e,value:i}=await n.read();i&&(t.push(i),o+=i.length),r=e}const i=new Uint8Array(o);let a=0;for(const e of t)i.set(e,a),a+=e.length;return i}(e)},(e,t,n)=>{"use strict";async function r(e){"function"==typeof e.stream&&(e=e.stream());return e.tee()}n.r(t),n.d(t,{splitStream:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isBrowserNetworkError:()=>s,isClockSkewCorrectedError:()=>a,isClockSkewError:()=>i,isNodeJsHttp2TransientError:()=>d,isRetryableByTrait:()=>o,isServerError:()=>u,isThrottlingError:()=>l,isTransientError:()=>c});var r=n(258);const o=e=>void 0!==e?.$retryable,i=e=>r.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||r.THROTTLING_ERROR_CODES.includes(e.name)||1==e.$retryable?.throttling,c=(e,t=0)=>o(e)||a(e)||"InvalidSignatureException"===e.name&&e.message?.includes("Signature expired")||r.TRANSIENT_ERROR_CODES.includes(e.name)||r.NODEJS_TIMEOUT_ERROR_CODES.includes(e?.code||"")||r.NODEJS_NETWORK_ERROR_CODES.includes(e?.code||"")||r.TRANSIENT_ERROR_STATUS_CODES.includes(e.$metadata?.httpStatusCode||0)||s(e)||d(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 d(e){return"ERR_HTTP2_STREAM_ERROR"===e.code&&e.message.includes("NGHTTP2_REFUSED_STREAM")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLOCK_SKEW_ERROR_CODES:()=>r,NODEJS_NETWORK_ERROR_CODES:()=>l,NODEJS_TIMEOUT_ERROR_CODES:()=>s,THROTTLING_ERROR_CODES:()=>o,TRANSIENT_ERROR_CODES:()=>i,TRANSIENT_ERROR_STATUS_CODES:()=>a});const r=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],i=["TimeoutError","RequestTimeout","RequestTimeoutException"],a=[500,502,503,504],s=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],l=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND","EAI_AGAIN"]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_RETRY_DELAY_BASE:()=>r,INITIAL_RETRY_TOKENS:()=>a,INVOCATION_ID_HEADER:()=>u,MAXIMUM_RETRY_DELAY:()=>o,NO_RETRY_INCREMENT:()=>c,REQUEST_HEADER:()=>d,RETRY_COST:()=>s,THROTTLING_RETRY_DELAY_BASE:()=>i,TIMEOUT_RETRY_COST:()=>l});const r=100,o=2e4,i=500,a=500,s=5,l=10,c=1,u="amz-sdk-invocation-id",d="amz-sdk-request"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRetryAfterHint:()=>a,parseRetryAfterHeader:()=>i});var r=n(244),o=n(231);function i(e,t){if(r.HttpResponse.isInstance(e))for(const n of Object.keys(e.headers)){const r=n.toLowerCase();if("retry-after"===r){const r=e.headers[n];let i=NaN;if(r.endsWith("GMT"))try{i=((0,o.parseRfc7231DateTime)(r).getTime()-Date.now())/1e3}catch(e){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(e)}else r.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?i=Number(r.match(/ GMT, ([\d.]+)$/)?.[1]):r.match(/^((\d+)|(\d+\.\d+))$/)?i=Number(r):Date.parse(r)>=Date.now()&&(i=(Date.parse(r)-Date.now())/1e3);if(isNaN(i))return;return new Date(Date.now()+1e3*i)}if("x-amz-retry-after"===r){const r=e.headers[n],o=Number(r);return isNaN(o)?void t?.trace?.(`Failed to parse x-amz-retry-after=${r}`):new Date(Date.now()+o)}}}function a(e,t){return i(e,t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{asSdkError:()=>r});const r=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,n)=>{"use strict";n.r(t),n.d(t,{AdaptiveRetryStrategy:()=>a});var r=n(263),o=n(264),i=n(201);class a{mode=i.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(e,t){const{rateLimiter:n}=t??{};this.rateLimiter=n??new r.DefaultRateLimiter,this.standardRetryStrategy=t?new o.StandardRetryStrategy({maxAttempts:"number"==typeof e?e:3,...t}):new o.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 n=await this.standardRetryStrategy.refreshRetryTokenForRetry(e,t);return await this.rateLimiter.getSendToken(),n}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}
1async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultRateLimiter:()=>o});var r=n(257);class o{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 n=e;if("THROTTLING"===n?.errorType||(0,r.isThrottlingError)(n?.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 o=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(o)}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=>o.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}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}
1cubicThrottle(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,n)=>{"use strict";n.r(t),n.d(t,{StandardRetryStrategy:()=>d});var r=n(265),o=n(266),i=n(201),a=n(259),s=n(203);const l=1,c=2,u=3;class d{mode=i.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()=>i.DEFAULT_MAX_ATTEMPTS,this.baseDelay??=s.Retry.delay(),this.retryBackoffStrategy??=new r.DefaultRetryBackoffStrategy}async acquireInitialRetryToken(e){return new o.DefaultRetryToken(s.Retry.delay(),0,void 0,s.Retry.v2026&&e.includes(":longpoll"))}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts(),r=this.retryCode(e,t,n),i=0===r,a=e.isLongPoll?.();if(i||a){const n=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===n?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))),i){const t=this.getCapacityCost(n);this.capacity-=t;const r=new o.DefaultRetryToken(0,e.getRetryCount()+1,t,e.isLongPoll?.()??!1);return await new Promise(e=>setTimeout(e,c)),r.$retryLog.acquisitionDelay=c,r}{const e=s.Retry.v2026&&r===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 ${i.DEFAULT_MAX_ATTEMPTS}`),i.DEFAULT_MAX_ATTEMPTS}}retryCode(e,t,n){const r=e.getRetryCount()+1,o=this.isRetryableError(t.errorType)?0:l,i=r<n?0:c,a=this.capacity>=this.getCapacityCost(t.errorType)?0:u;return o||i||a}getCapacityCost(e){return e===s.Retry.modifiedCostType()?s.Retry.throttlingCost():s.Retry.cost()}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultRetryBackoffStrategy:()=>i});var r=n(259),o=n(203);class i{x=o.Retry.delay();computeNextBackoffDelay(e){const t=Math.random()*Math.min(this.x*2**e,r.MAXIMUM_RETRY_DELAY);return Math.floor(t)}setDelayBase(e){this.x=e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultRetryToken:()=>o});var r=n(259);class o{delay;count;cost;longPoll;$retryLog={acquisitionDelay:0};constructor(e,t,n,r){this.delay=e,this.count=t,this.cost=n,this.longPoll=r}getRetryCount(){return this.count}getRetryDelay(){return Math.min(r.MAXIMUM_RETRY_DELAY,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfiguredRetryStrategy:()=>i});var r=n(264),o=n(203);class i extends r.StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=o.Retry.delay()){super("function"==typeof e?e:async()=>e),this.computeNextBackoffDelay="number"==typeof t?()=>t:t,this.retryBackoffStrategy.computeNextBackoffDelay=e=>{const t=e+1;return this.computeNextBackoffDelay(t)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AdaptiveRetryStrategy:()=>a});var r=n(263),o=n(201),i=n(269);class a extends i.StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i),this.rateLimiter=n??new r.DefaultRateLimiter,this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{StandardRetryStrategy:()=>p});var r=n(192),o=n(244),i=n(222),a=n(257),s=n(201),l=n(259),c=n(261),u=n(270),d=n(271),f=n(272);
1class p{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=s.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e,this.retryDecider=t?.retryDecider??f.defaultRetryDecider,this.delayDecider=t?.delayDecider??d.defaultDelayDecider,this.retryQuota=t?.retryQuota??(0,u.getDefaultRetryQuota)(l.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=s.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,n){let o,s=0,u=0;const d=await this.getMaxAttempts(),{request:f}=t;for(r.HttpRequest.isInstance(f)&&(f.headers[l.INVOCATION_ID_HEADER]=(0,i.v4)());;)try{r.HttpRequest.isInstance(f)&&(f.headers[l.REQUEST_HEADER]=`attempt=${s+1}; max=${d}`),n?.beforeRequest&&await n.beforeRequest();const{response:i,output:a}=await e(t);return n?.afterRequest&&n.afterRequest(i),this.retryQuota.releaseRetryTokens(o),a.$metadata.attempts=s+1,a.$metadata.totalRetryDelay=u,{response:i,output:a}}catch(e){const t=(0,c.asSdkError)(e);if(s++,this.shouldRetry(t,s,d)){o=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider((0,a.isThrottlingError)(t)?l.THROTTLING_RETRY_DELAY_BASE:l.DEFAULT_RETRY_DELAY_BASE,s),n=h(t.$response),r=Math.max(n||0,e);u+=r,await new Promise(e=>setTimeout(e,r));continue}throw t.$metadata||(t.$metadata={}),t.$metadata.attempts=s,t.$metadata.totalRetryDelay=u,t}}}const h=e=>{if(!o.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const n=e.headers[t],r=Number(n);if(!Number.isNaN(r))return Math.min(1e3*r,2e4);const i=new Date(n);return Math.min(i.getTime()-Date.now(),2e4)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDefaultRetryQuota:()=>o});var r=n(259);const o=(e,t)=>{const n=e,o=t?.noRetryIncrement??r.NO_RETRY_INCREMENT,i=t?.retryCost??r.RETRY_COST,a=t?.timeoutRetryCost??r.TIMEOUT_RETRY_COST;let s=e;const l=e=>"TimeoutError"===e.name?a:i,c=e=>l(e)<=s;return Object.freeze({hasRetryTokens:c,retrieveRetryTokens:e=>{if(!c(e))throw new Error("No retry token available");const t=l(e);return s-=t,t},releaseRetryTokens:e=>{s+=e??o,s=Math.min(s,n)}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultDelayDecider:()=>o});var r=n(259);const o=(e,t)=>Math.floor(Math.min(r.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultRetryDecider:()=>o});var r=n(257);const o=e=>!!e&&((0,r.isRetryableByTrait)(e)||(0,r.isClockSkewError)(e)||(0,r.isThrottlingError)(e)||(0,r.isTransientError)(e))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CONFIG_MAX_ATTEMPTS:()=>c,CONFIG_RETRY_MODE:()=>p,ENV_MAX_ATTEMPTS:()=>l,ENV_RETRY_MODE:()=>f,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:()=>u,NODE_RETRY_MODE_CONFIG_OPTIONS:()=>h,resolveRetryConfig:()=>d});var r=n(135),o=n(262),i=n(264),a=n(201),s=n(203);const l="AWS_MAX_ATTEMPTS",c="max_attempts",u={environmentVariableSelector:e=>{const t=e[l];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${l} mast be a number, got "${t}"`);return n},configFileSelector:e=>{const t=e[c];if(!t)return;const n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${c} mast be a number, got "${t}"`);return n},default:a.DEFAULT_MAX_ATTEMPTS},d=(e,t)=>{const{retryStrategy:n,retryMode:l}=e,{defaultMaxAttempts:c=a.DEFAULT_MAX_ATTEMPTS,defaultBaseDelay:u=s.Retry.delay()}=t??{},d=(0,r.normalizeProvider)(e.maxAttempts??c);let f=n?Promise.resolve(n):void 0;return Object.assign(e,{maxAttempts:d,retryStrategy:()=>f??=(async()=>{const e=await d();return await(0,r.normalizeProvider)(l)()===a.RETRY_MODES.ADAPTIVE?new o.AdaptiveRetryStrategy(d,{maxAttempts:e,baseDelay:u}):new i.StandardRetryStrategy({maxAttempts:e,baseDelay:u})})()})},f="AWS_RETRY_MODE",p="retry_mode",h={environmentVariableSelector:e=>e[f],configFileSelector:e=>e[p],default:a.DEFAULT_RETRY_MODE}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOmitRetryHeadersPlugin:()=>s,omitRetryHeadersMiddleware:()=>i,omitRetryHeadersMiddlewareOptions:()=>a});var r=n(192),o=n(259);const i=()=>e=>async t=>{const{request:n}=t;return r.HttpRequest.isInstance(n)&&(delete n.headers[o.INVOCATION_ID_HEADER],delete n.headers[o.REQUEST_HEADER]),e(t)}
1,a={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},s=e=>({applyToStack:e=>{e.addRelativeTo(i(),a)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{deserializerMiddlewareOption:()=>i,getSchemaSerdePlugin:()=>s,serializerMiddlewareOption:()=>a});var r=n(276),o=n(278);const i={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,o.schemaSerializationMiddleware)(e),a),t.add((0,r.schemaDeserializationMiddleware)(e),i),e.protocol.setSerdeContext(e)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{schemaDeserializationMiddleware:()=>a});var r=n(132),o=n(244),i=n(277);const a=e=>(t,n)=>async a=>{const{response:l}=await t(a),{operationSchema:c}=(0,r.getSmithyContext)(n),[,u,d,f,p,h]=c??[];try{return{response:l,output:await e.protocol.deserializeResponse((0,i.operation)(u,d,f,p,h),{...e,...n},l)}}catch(e){if(Object.defineProperty(e,"$response",{value:l,enumerable:!1,writable:!1,configurable:!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){n.logger&&"NoOpLogger"!==n.logger?.constructor?.name?n.logger?.warn?.(t):console.warn(t)}void 0!==e.$responseBodyText&&e.$response&&(e.$response.body=e.$responseBodyText);try{if(o.HttpResponse.isInstance(l)){const{headers:t={},statusCode:n}=l,r=Object.entries(t);e.$metadata={httpStatusCode:n,requestId:s(/^x-[\w-]+-request-?id$/,r),extendedRequestId:s(/^x-[\w-]+-id-2$/,r),cfId:s(/^x-[\w-]+-cf-id$/,r)}}}catch(e){}}throw e}},s=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{operation:()=>r});const r=(e,t,n,r,o)=>({name:t,namespace:e,traits:n,input:r,output:o})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{schemaSerializationMiddleware:()=>a});var r=n(132),o=n(128),i=n(277);const a=e=>(t,n)=>async a=>{const{operationSchema:s}=(0,r.getSmithyContext)(n),[,l,c,u,d,f]=s??[],p=n.endpointV2?async()=>(0,o.toEndpointV1)(n.endpointV2):e.endpoint,h=await e.protocol.serializeRequest((0,i.operation)(l,c,u,d,f),a.input,{...e,...n,endpoint:p});return t({...a,request:h})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultFirehoseHttpAuthSchemeParametersProvider:()=>a,defaultFirehoseHttpAuthSchemeProvider:()=>s,resolveHttpAuthSchemeConfig:()=>l});var r=n(280),o=n(132),i=n(135);const a=async(e,t,n)=>({operation:(0,o.getSmithyContext)(t).operation,region:await(0,i.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,r.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveAWSSDKSigV4Config:()=>l,resolveAwsSdkSigV4Config:()=>s});var r=n(281),o=n(282),i=n(196),a=n(283);const s=e=>{let t,n=e.credentials,s=!!e.credentials;Object.defineProperty(e,"credentials",{set(a){a&&a!==n&&a!==t&&(s=!0),n=a;const l=function(e,{credentials:t,credentialDefaultProvider:n}){let r;r=t?t?.memoized?t:(0,o.memoizeIdentityProvider)(t,o.isIdentityExpired,o.doesIdentityRequireRefresh):n?(0,i.normalizeProvider)(n(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return r.memoized=!0,r}(e,{credentials:n,credentialDefaultProvider:e.credentialDefaultProvider}),c=function(e,t){if(t.configBound)return t;const n=async n=>t({...n,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}(e,l);if(s&&!c.attributed){const e="object"==typeof n&&null!==n;t=async t=>{const n=await c(t);return!e||n.$source&&0!==Object.keys(n.$source).length?n:(0,r.setCredentialFeature)(n,"CREDENTIALS_CODE","e")},t.memoized=c.memoized,t.configBound=c.configBound,t.attributed=!0}
1else t=c},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=n;const{signingEscapePath:l=!0,systemClockOffset:c=e.systemClockOffset||0,sha256:u}=e;let d;d=e.signer?(0,i.normalizeProvider)(e.signer):e.regionInfoProvider?()=>(0,i.normalizeProvider)(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,n])=>{const{signingRegion:r,signingService:o}=t;e.signingRegion=e.signingRegion||r||n,e.signingName=e.signingName||o||e.serviceId;const i={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:l};return new(e.signerConstructor||a.SignatureV4)(i)}):async t=>{const n=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await(0,i.normalizeProvider)(e.region)(),properties:{}},t)).signingRegion,r=t.signingName;e.signingRegion=e.signingRegion||n,e.signingName=e.signingName||r||e.serviceId;const o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:l};return new(e.signerConstructor||a.SignatureV4)(o)};return Object.assign(e,{systemClockOffset:c,signingEscapePath:l,signer:d})},l=s},(e,t,n)=>{"use strict";function r(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}n.r(t),n.d(t,{setCredentialFeature:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EXPIRATION_MS:()=>o,createIsIdentityExpiredFunction:()=>r,doesIdentityRequireRefresh:()=>a,isIdentityExpired:()=>i,memoizeIdentityProvider:()=>s});const r=e=>function(t){return a(t)&&t.expiration.getTime()-Date.now()<e},o=3e5,i=r(o),a=e=>void 0!==e.expiration,s=(e,t,n)=>{if(void 0===e)return;const r="function"!=typeof e?async()=>Promise.resolve(e):e;let o,i,a,s=!1;const l=async e=>{i||(i=r(e));try{o=await i,a=!0,s=!1}finally{i=void 0}return o};return void 0===t?async e=>(a&&!e?.forceRefresh||(o=await l(e)),o):async e=>(a&&!e?.forceRefresh||(o=await l(e)),s?o:n(o)?t(o)?(await l(e),o):o:(s=!0,o))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SignatureV4:()=>h});var r=n(239),o=n(241),i=n(284),a=n(285),s=n(288),l=n(290),c=n(291),u=n(292),d=n(293),f=n(294),p=n(295);class h extends a.SignatureV4Base{headerFormatter=new i.HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:r,sha256:o,uriEscapePath:i=!0}){super({applyChecksum:e,credentials:t,region:n,service:r,sha256:o,uriEscapePath:i})}async presign(e,t={}
1){const{signingDate:n=new Date,expiresIn:r=3600,unsignableHeaders:o,unhoistableHeaders:i,signableHeaders:a,hoistableHeaders:d,signingRegion:h,signingService:m}=t,g=await this.credentialProvider();this.validateResolvedCredentials(g);const y=h??await this.regionProvider(),{longDate:v,shortDate:b}=this.formatDate(n);if(r>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)(b,y,m??this.service),w=(0,f.moveHeadersToQuery)((0,p.prepareRequest)(e),{unhoistableHeaders:i,hoistableHeaders:d});g.sessionToken&&(w.query[s.TOKEN_QUERY_PARAM]=g.sessionToken),w.query[s.ALGORITHM_QUERY_PARAM]=s.ALGORITHM_IDENTIFIER,w.query[s.CREDENTIAL_QUERY_PARAM]=`${g.accessKeyId}/${_}`,w.query[s.AMZ_DATE_QUERY_PARAM]=v,w.query[s.EXPIRES_QUERY_PARAM]=r.toString(10);const S=(0,c.getCanonicalHeaders)(w,o,a);return w.query[s.SIGNED_HEADERS_QUERY_PARAM]=this.getCanonicalHeaderList(S),w.query[s.SIGNATURE_QUERY_PARAM]=await this.getSignature(v,_,this.getSigningKey(g,y,b,m),this.createCanonicalRequest(w,S,await(0,u.getPayloadHash)(e,this.sha256))),w}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:n=new Date,priorSignature:o,signingRegion:i,signingService:a,eventStreamCredentials:c}){const d=i??await this.regionProvider(),{shortDate:f,longDate:p}=this.formatDate(n),h=(0,l.createScope)(f,d,a??this.service),m=await(0,u.getPayloadHash)({headers:{},body:t},this.sha256),g=new this.sha256;g.update(e);const y=(0,r.toHex)(await g.digest()),v=[s.EVENT_ALGORITHM_IDENTIFIER,p,h,o,y,m].join("\n");return this.signString(v,{signingDate:n,signingRegion:d,signingService:a,eventStreamCredentials:c})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:r,eventStreamCredentials:o}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:r,priorSignature:e.priorSignature,eventStreamCredentials:o}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:i,eventStreamCredentials:a}={}){const s=a??await this.credentialProvider();this.validateResolvedCredentials(s);const l=n??await this.regionProvider(),{shortDate:c}
1=this.formatDate(t),u=new this.sha256(await this.getSigningKey(s,l,c,i));return u.update((0,o.toUint8Array)(e)),(0,r.toHex)(await u.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:r,signingRegion:o,signingService:i}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const f=o??await this.regionProvider(),h=(0,p.prepareRequest)(e),{longDate:m,shortDate:g}=this.formatDate(t),y=(0,l.createScope)(g,f,i??this.service);h.headers[s.AMZ_DATE_HEADER]=m,a.sessionToken&&(h.headers[s.TOKEN_HEADER]=a.sessionToken);const v=await(0,u.getPayloadHash)(h,this.sha256);!(0,d.hasHeader)(s.SHA256_HEADER,h.headers)&&this.applyChecksum&&(h.headers[s.SHA256_HEADER]=v);const b=(0,c.getCanonicalHeaders)(h,r,n),_=await this.getSignature(m,y,this.getSigningKey(a,f,g,i),this.createCanonicalRequest(h,b,v));return h.headers[s.AUTH_HEADER]=`${s.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(b)}, Signature=${_}`,h}async getSignature(e,t,n,i){const a=await this.createStringToSign(e,t,i,s.ALGORITHM_IDENTIFIER),l=new this.sha256(await n);return l.update((0,o.toUint8Array)(a)),(0,r.toHex)(await l.digest())}getSigningKey(e,t,n,r){return(0,l.getSigningKey)(this.sha256,e,n,t,r||this.service)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HeaderFormatter:()=>a,Int64:()=>l});var r,o=n(226),i=n(239);class a{format(e){const t=[];for(const n of Object.keys(e)){const r=(0,o.fromUtf8)(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}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 n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const c=new Uint8Array(a.buffer);return c.set(e.value,3),c;case"string":const u=(0,o.fromUtf8)(e.value),d=new DataView(new ArrayBuffer(3+u.byteLength));d.setUint8(0,7),d.setUint16(1,u.byteLength,!1);const f=new Uint8Array(d.buffer);return f.set(u,3),f;case"timestamp":const p=new Uint8Array(9);return p[0]=8,p.set(l.fromNumber(e.value.valueOf()).bytes,1),p;case"uuid":if(!s.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const h=new Uint8Array(17);return h[0]=9,h.set((0,i.fromHex)(e.value.replace(/\-/g,"")),1),h}}}!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"}(r||(r={}));const s=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class l{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 n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&c(t),new l(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&c(e),parseInt((0,i.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function c(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,n)=>{"use strict";n.r(t),n.d(t,{SignatureV4Base:()=>c});var r=n(135),o=n(286),i=n(239),a=n(241),s=n(287),l=n(289);class c{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a=!0}){this.service=o,this.sha256=i,this.uriEscapePath=a,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=(0,r.normalizeProvider)(n),this.credentialProvider=(0,r.normalizeProvider)(t)}
1createCanonicalRequest(e,t,n){const r=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(0,s.getCanonicalQuery)(e)}\n${r.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${r.join(";")}\n${n}`}async createStringToSign(e,t,n,r){const o=new this.sha256;o.update((0,a.toUint8Array)(n));const s=await o.digest();return`${r}\n${e}\n${t}\n${(0,i.toHex)(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==n?.length&&"."!==n&&(".."===n?t.pop():t.push(n));const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return(0,o.escapeUri)(n).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,n)=>{"use strict";n.r(t),n.d(t,{escapeUri:()=>r});const r=e=>encodeURIComponent(e).replace(/[!'()*]/g,o),o=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCanonicalQuery:()=>i});var r=n(286),o=n(288);const i=({query:e={}})=>{const t=[],n={};for(const i of Object.keys(e)){if(i.toLowerCase()===o.SIGNATURE_HEADER)continue;const a=(0,r.escapeUri)(i);t.push(a);const s=e[i];"string"==typeof s?n[a]=`${a}=${(0,r.escapeUri)(s)}`:Array.isArray(s)&&(n[a]=s.slice(0).reduce((e,t)=>e.concat([`${a}=${(0,r.escapeUri)(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>n[e]).filter(e=>e).join("&")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALGORITHM_IDENTIFIER:()=>E,ALGORITHM_IDENTIFIER_V4A:()=>k,ALGORITHM_QUERY_PARAM:()=>r,ALWAYS_UNSIGNABLE_HEADERS:()=>b,AMZ_DATE_HEADER:()=>f,AMZ_DATE_QUERY_PARAM:()=>i,AUTH_HEADER:()=>d,CREDENTIAL_QUERY_PARAM:()=>o,DATE_HEADER:()=>p,EVENT_ALGORITHM_IDENTIFIER:()=>T,EXPIRES_QUERY_PARAM:()=>s,GENERATED_HEADERS:()=>h,HOST_HEADER:()=>v,KEY_TYPE_IDENTIFIER:()=>C,MAX_CACHE_SIZE:()=>O,MAX_PRESIGNED_TTL:()=>P,PROXY_HEADER_PATTERN:()=>_,REGION_SET_PARAM:()=>u,SEC_HEADER_PATTERN:()=>w,SHA256_HEADER:()=>g,SIGNATURE_HEADER:()=>m,SIGNATURE_QUERY_PARAM:()=>l,SIGNED_HEADERS_QUERY_PARAM:()=>a,TOKEN_HEADER:()=>y,TOKEN_QUERY_PARAM:()=>c,UNSIGNABLE_PATTERNS:()=>S,UNSIGNED_PAYLOAD:()=>x});const r="X-Amz-Algorithm",o="X-Amz-Credential",i="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",d="authorization",f=i.toLowerCase(),p="date",h=[d,f,p],m=l.toLowerCase(),g="x-amz-content-sha256",y=c.toLowerCase(),v="host",b={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-/,w=/^sec-/,S=[/^proxy-/i,/^sec-/i],E="AWS4-HMAC-SHA256",k="AWS4-ECDSA-P256-SHA256",T="AWS4-HMAC-SHA256-PAYLOAD",x="UNSIGNED-PAYLOAD",O=50,C="aws4_request",P=604800},(e,t,n)=>{"use strict";n.r(t),n.d(t,{iso8601:()=>r,toDate:()=>o});const r=e=>o(e).toISOString().replace(/\.\d{3}Z$/,"Z"),o=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e},(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearCredentialCache:()=>u,createScope:()=>l,getSigningKey:()=>c});var r=n(239),o=n(241),i=n(288);const a={},s=[],l=(e,t,n)=>`${e}/${t}/${n}/${i.KEY_TYPE_IDENTIFIER}`,c=async(e,t,n,o,l)=>{const c=await d(e,t.secretAccessKey,t.accessKeyId),u=`${n}:${o}:${l}:${(0,r.toHex)(c)}:${t.sessionToken}`;if(u in a)return a[u];for(s.push(u);s.length>i.MAX_CACHE_SIZE;)delete a[s.shift()];let f=`AWS4${t.secretAccessKey}`;for(const t of[n,o,l,i.KEY_TYPE_IDENTIFIER])f=await d(e,f,t);return a[u]=f},u=()=>{s.length=0,Object.keys(a).forEach(e=>{delete a[e]})},d=(e,t,n)=>{const r=new e(t);return r.update((0,o.toUint8Array)(n)),r.digest()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCanonicalHeaders:()=>o});var r=n(288);const o=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(null==e[i])continue;const a=i.toLowerCase();(a in r.ALWAYS_UNSIGNABLE_HEADERS||t?.has(a)||r.PROXY_HEADER_PATTERN.test(a)||r.SEC_HEADER_PATTERN.test(a))&&(!n||n&&
1!n.has(a))||(o[a]=e[i].trim().replace(/\s+/g," "))}return o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getPayloadHash:()=>s});var r=n(239),o=n(241),i=n(242),a=n(288);const s=async({headers:e,body:t},n)=>{for(const t of Object.keys(e))if(t.toLowerCase()===a.SHA256_HEADER)return e[t];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||(0,i.isArrayBuffer)(t)){const e=new n;return e.update((0,o.toUint8Array)(t)),(0,r.toHex)(await e.digest())}return a.UNSIGNED_PAYLOAD}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{deleteHeader:()=>i,getHeaderValue:()=>o,hasHeader:()=>r});const r=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},o=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return t[n]},i=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))e===n.toLowerCase()&&delete t[n]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{moveHeadersToQuery:()=>o});var r=n(192);const o=(e,t={})=>{const{headers:n,query:o={}}=r.HttpRequest.clone(e);for(const e of Object.keys(n)){const r=e.toLowerCase();("x-amz-"===r.slice(0,6)&&!t.unhoistableHeaders?.has(r)||t.hoistableHeaders?.has(r))&&(o[e]=n[e],delete n[e])}return{...e,headers:n,query:o}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{prepareRequest:()=>i});var r=n(192),o=n(288);const i=e=>{e=r.HttpRequest.clone(e);for(const t of Object.keys(e.headers))o.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRuntimeConfig:()=>m});var r=n(297),o=n(298),i=n(319),a=n(321),s=n(322),l=n(323),c=n(341),u=n(201),d=n(240),f=n(343),p=n(347),h=n(348);const m=e=>{const t=(0,c.resolveDefaultsModeConfig)(e),n=()=>t().then(s.loadConfigsForDefaultMode),m=(0,h.getRuntimeConfig)(e);return{...m,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??d.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,i.createDefaultUserAgentProvider)({serviceId:m.serviceId,clientVersion:r.version}),maxAttempts:e?.maxAttempts??u.DEFAULT_MAX_ATTEMPTS,region:e?.region??(0,a.invalidProvider)("Region is missing"),requestHandler:f.FetchHttpHandler.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||u.DEFAULT_RETRY_MODE),sha256:e?.sha256??o.Sha256,streamCollector:e?.streamCollector??p.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(l.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(l.DEFAULT_USE_FIPS_ENDPOINT))}}},e=>{"use strict";e.exports=JSON.parse('{"name":"@aws-sdk/client-firehose","description":"AWS SDK for JavaScript Firehose Client for Node.js, Browser and React Native","version":"3.1068.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build: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 tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo firehose","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.20","@aws-sdk/credential-provider-node":"^3.972.55","@aws-sdk/types":"^3.973.12","@smithy/core":"^3.24.6","@smithy/fetch-http-handler":"^5.4.6","@smithy/node-http-handler":"^4.7.6","@smithy/types":"^4.14.3","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":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/sdk-for-javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-firehose","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-firehose"}}')}
1,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sha256:()=>r.Sha256,WebCryptoSha256:()=>o.Sha256});var r=n(299),o=n(300)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sha256:()=>l});var r=n(300),o=n(312),i=n(317),a=n(311),s=n(301),l=function(){function e(e){(0,i.supportsWebCrypto)((0,a.locateWindow)())?this.hash=new r.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update((0,s.convertToBuffer)(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sha256:()=>a});var r=n(301),o=n(310),i=n(311),a=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!(0,r.isEmptyData)(e)){var t=(0,r.convertToBuffer)(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return(0,i.locateWindow)().crypto.subtle.sign(o.SHA_256_HMAC_ALGO,t,e.toHash).then(function(e){return new Uint8Array(e)})}):(0,r.isEmptyData)(this.toHash)?Promise.resolve(o.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,i.locateWindow)().crypto.subtle.digest(o.SHA_256_HASH,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,n){(0,i.locateWindow)().crypto.subtle.importKey("raw",(0,r.convertToBuffer)(e.secret),o.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,n)}),this.key.catch(function(){}))},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{convertToBuffer:()=>r.convertToBuffer,isEmptyData:()=>o.isEmptyData,numToUint8:()=>i.numToUint8,uint32ArrayFrom:()=>a.uint32ArrayFrom});var r=n(302),o=n(307),i=n(308),a=n(309)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{convertToBuffer:()=>i});var r=n(303),o="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:r.fromUtf8;function i(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r.fromUtf8,toUint8Array:()=>o.toUint8Array,toUtf8:()=>i.toUtf8});var r=n(304),o=n(305),i=n(306)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromUtf8:()=>r});const r=e=>(new TextEncoder).encode(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{toUint8Array:()=>o});var r=n(304);const o=e=>"string"==typeof e?(0,r.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{toUtf8:()=>r});const r=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,n)=>{"use strict";function r(e){return"string"==typeof e?0===e.length:0===e.byteLength}n.r(t),n.d(t,{isEmptyData:()=>r})},(e,t,n)=>{"use strict";function r(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}n.r(t),n.d(t,{numToUint8:()=>r})},(e,t,n)=>{"use strict";function r(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}n.r(t),n.d(t,{uint32ArrayFrom:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EMPTY_DATA_SHA_256:()=>i,SHA_256_HASH:()=>r,SHA_256_HMAC_ALGO:()=>o});var r={name:"SHA-256"},o={name:"HMAC",hash:r},i=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},(e,t,n)=>{"use strict";n.r(t),n.d(t,{locateWindow:()=>o});const r={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sha256:()=>r.Sha256});var r=n(313)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Sha256:()=>s});var r=n(314),o=n(315),i=n(316),a=n(301),s=function(){function e(e){this.secret=e,this.hash=new i.RawSha256,this.reset()}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new i.RawSha256,this.secret){this.outer=new i.RawSha256;var e=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>o.BLOCK_SIZE){var n=new i.RawSha256;n.update(t),t=n.digest()}
vendor: 11,172 bytes, line 1
1var r=new Uint8Array(o.BLOCK_SIZE);return r.set(t),r}(this.secret),t=new Uint8Array(o.BLOCK_SIZE);t.set(e);for(var n=0;n<o.BLOCK_SIZE;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(n=0;n<e.byteLength;n++)e[n]=0}},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>D,__assign:()=>i,__asyncDelegator:()=>T,__asyncGenerator:()=>k,__asyncValues:()=>x,__await:()=>E,__awaiter:()=>h,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>j,__createBinding:()=>g,__decorate:()=>s,__disposeResources:()=>L,__esDecorate:()=>c,__exportStar:()=>y,__extends:()=>o,__generator:()=>m,__importDefault:()=>I,__importStar:()=>A,__makeTemplateObject:()=>O,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>b,__rest:()=>a,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>_,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>v,default:()=>B});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t,n,r,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?r.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var g=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[c],h);if("accessor"===l){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(s=a(g.get))&&(d.get=s),(s=a(g.set))&&(d.set=s),(s=a(g.init))&&o.unshift(s)}else(s=a(g))&&("field"===l?o.unshift(s):d[c]=s)}u&&Object.defineProperty(u,r.name,d),f=!0}function u(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[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(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=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,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||g(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function S(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r=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)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=o[e](t)).value instanceof E?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function T(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:E(e[r](t)),done:!1}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}function O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},P=function(e){return P=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},P(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=P(e),r=0;r<n.length;r++)"default"!==n[r]&&g(t,e,n[r]);return C(t,e),t}function I(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n}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 D(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function L(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function o(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(e){return t(e),o()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function F(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,o,i){return n?t?".jsx":".js":!r||o&&i?r+o+"."+i.toLowerCase()+"js":e}):e}const B={__extends:o,__assign:i,__rest:a,__decorate:s,__param:l,__esDecorate:c,__runInitializers:u,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:m,__createBinding:g,__exportStar:y,__values:v,__read:b,__spread:_,__spreadArrays:w,__spreadArray:S,__await:E,__asyncGenerator:k,__asyncDelegator:T,__asyncValues:x,__makeTemplateOb
1ject:O,__importStar:A,__importDefault:I,__classPrivateFieldGet:R,__classPrivateFieldSet:j,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:L,__rewriteRelativeImportExtension:F}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BLOCK_SIZE:()=>r,DIGEST_LENGTH:()=>o,INIT:()=>a,KEY:()=>i,MAX_HASHABLE_LENGTH:()=>s});var r=64,o=32,i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=Math.pow(2,53)-1},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RawSha256:()=>o});var r=n(315),o=function(){function e(){this.state=Int32Array.from(r.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var o=this.bufferLength;o<r.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<r.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(r.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(r.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(r.DIGEST_LENGTH);for(o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],d=0;d<r.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&c)|0)+(u+(r.KEY[d]+this.temp[d]|0)|0)|0,g=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&o^n&i^o&i)|0;u=c,c=l,l=s,s=a+m|0,a=i,i=o,o=n,n=m+g|0}t[0]+=n,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=l,t[6]+=c,t[7]+=u},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{supportsSecureRandom:()=>r.supportsSecureRandom,supportsSubtleCrypto:()=>r.supportsSubtleCrypto,supportsWebCrypto:()=>r.supportsWebCrypto,supportsZeroByteGCM:()=>r.supportsZeroByteGCM});var r=n(318)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{supportsSecureRandom:()=>a,supportsSubtleCrypto:()=>s,supportsWebCrypto:()=>i,supportsZeroByteGCM:()=>l});var r=n(314),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function i(e){return!(!a(e)||"object"!=typeof e.crypto.subtle)&&s(e.crypto.subtle)}function a(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function s(e){return e&&o.every(function(t){return"function"==typeof e[t]})}function l(e){return(0,r.__awaiter)(this,void 0,void 0,function(){var t;return(0,r.__generator)(this,function(n){switch(n.label){case 0:if(!s(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),[2,!1];case 5:return[2]}})})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createDefaultUserAgentProvider:()=>o,createUserAgentStringParsingProvider:()=>r.createUserAgentStringParsingProvider,defaultUserAgent:()=>a,fallback:()=>i});var r=n(320);const o=({serviceId:e,clientVersion:t})=>async n=>{const r="undefined"!=typeof window?window.navigator:void 0,o=r?.userAgent??"",a=r?.userAgentData?.platform??i.os(o)??"other",s=r?.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 d=await(n?.userAgentAppId?.());return d&&u.push([`app/${d}`]),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},a=o},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createUserAgentStringParsingProvider:()=>r});const r=({serviceId:e,clientVersion:t})=>async r=>{const o=await n.e("vendors").then(n.t.bind(n,1506,23)),i=o.parse??o.default.parse??(()=>""),a="undefined"!=typeof window&&window?.navigator?.userAgent?i(window.navigator.userAgent):void 0,s=[["aws-sdk-js",t],["ua","2.1"],[`os/${a?.os?.name||"other"}`,a?.os?.version],["lang/js"],["md/browser",`${a?.browser?.name??"unknown"}_${a?.browser?.version??"unknown"}`]];e&&s.push([`api/${e}`,t]);const l=await(r?.userAgentAppId?.());return l&&s.push([`app/${l}`]),s}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{invalidProvider:()=>r});const r=e=>()=>Promise.reject(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadConfigsForDefaultMode:()=>r});const r=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,n)=>{"use strict";n.r(t),n.d(t,{CONFIG_PREFIX_SEPARATOR:()=>k,CONFIG_USE_DUALSTACK_ENDPOINT:()=>j,CONFIG_USE_FIPS_ENDPOINT:()=>F,CredentialsProviderError:()=>o.CredentialsProviderError,DEFAULT_PROFILE:()=>_,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>M,DEFAULT_USE_FIPS_ENDPOINT:()=>B,ENV_PROFILE:()=>b,ENV_USE_DUALSTACK_ENDPOINT:()=>R,ENV_USE_FIPS_ENDPOINT:()=>L,NODE_REGION_CONFIG_FILE_OPTIONS:()=>G,NODE_REGION_CONFIG_OPTIONS:()=>q,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>D,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>z,ProviderError:()=>r.ProviderError,REGION_ENV_NAME:()=>H,REGION_INI_NAME:()=>V,SelectorType:()=>d.SelectorType,TokenProviderError:()=>i.TokenProviderError,booleanSelector:()=>c.booleanSelector,chain:()=>a.chain,externalDataInterceptor:()=>C,fromStatic:()=>I,fromValue:()=>s.fromValue,getHomeDir:()=>v,getProfileName:()=>w,getRegionInfo:()=>m.getRegionInfo,getSSOTokenFilepath:()=>S,getSSOTokenFromFile:()=>E,loadConfig:()=>A,loadSharedConfigFiles:()=>T,loadSsoSessionData:()=>x,memoize:()=>l.memoize,nodeDualstackConfigSelectors:()=>N,nodeFipsConfigSelectors:()=>U,numberSelector:()=>u.numberSelector,parseKnownFiles:()=>O,readFile:()=>P,resolveCustomEndpointsConfig:()=>
1f.resolveCustomEndpointsConfig,resolveDefaultsModeConfig:()=>g.resolveDefaultsModeConfig,resolveEndpointsConfig:()=>p.resolveEndpointsConfig,resolveRegionConfig:()=>h.resolveRegionConfig});var r=n(324),o=n(325),i=n(326),a=n(327),s=n(328),l=n(329),c=n(330),u=n(331),d=n(332),f=n(333),p=n(334),h=n(213),m=n(336),g=n(341);const y=Symbol.for("node-only"),v=y,b=y,_="default",w=y,S=y,E=y,k=y,T=y,x=y,O=y,C=y,P=y,A=y,I=y,R=y,j=y,M=!1,D=y,N=y,L=y,F=y,B=!1,z=y,U=y,H=y,V=y,q=y,G=y},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProviderError:()=>r});class r extends Error{name="ProviderError";tryNextLink;constructor(e,t=!0){let n,o=!0;"boolean"==typeof t?(n=void 0,o=t):null!=t&&"object"==typeof t&&(n=t.logger,o=t.tryNextLink??!0),super(e),this.tryNextLink=o,Object.setPrototypeOf(this,r.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=!0){return Object.assign(new this(e.message,t),e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CredentialsProviderError:()=>o});var r=n(324);class o extends r.ProviderError{name="CredentialsProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,o.prototype)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TokenProviderError:()=>o});var r=n(324);class o extends r.ProviderError{name="TokenProviderError";constructor(e,t=!0){super(e,t),Object.setPrototypeOf(this,o.prototype)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{chain:()=>o});var r=n(324);const o=(...e)=>async()=>{if(0===e.length)throw new r.ProviderError("No providers in chain");let t;for(const n of e)try{return await n()}catch(e){if(t=e,e?.tryNextLink)continue;throw e}throw t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromValue:()=>r});const r=e=>()=>Promise.resolve(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{memoize:()=>r});const r=(e,t,n)=>{let r,o,i,a=!1;const s=async()=>{o||(o=e());try{r=await o,i=!0,a=!1}finally{o=void 0}return r};return void 0===t?async e=>(i&&!e?.forceRefresh||(r=await s()),r):async e=>(i&&!e?.forceRefresh||(r=await s()),a?r:n&&!n(r)?(a=!0,r):t(r)?(await s(),r):r)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{booleanSelector:()=>r});const r=(e,t,n)=>{if(t in e){if("true"===e[t])return!0;if("false"===e[t])return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{numberSelector:()=>r});const r=(e,t,n)=>{if(!(t in e))return;const r=parseInt(e[t],10);if(Number.isNaN(r))throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`);return r}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{SelectorType:()=>r}),function(e){e.ENV="env",e.CONFIG="shared config entry"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveCustomEndpointsConfig:()=>o});var r=n(135);const o=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:i}=e;return Object.assign(e,{tls:t??!0,endpoint:(0,r.normalizeProvider)("string"==typeof n?o(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,r.normalizeProvider)(i??!1)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveEndpointsConfig:()=>i});var r=n(135),o=n(335);const i=e=>{const t=(0,r.normalizeProvider)(e.useDualstackEndpoint??!1),{endpoint:n,useFipsEndpoint:i,urlParser:a,tls:s}=e;return Object.assign(e,{tls:s??!0,endpoint:n?(0,r.normalizeProvider)("string"==typeof n?a(n):n):()=>(0,o.getEndpointFromRegion)({...e,useDualstackEndpoint:t,useFipsEndpoint:i}),isCustomEndpoint:!!n,useDualstackEndpoint:t})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEndpointFromRegion:()=>r});const r=async e=>{const{tls:t=!0}=e,n=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw new Error("Invalid region in client config");const r=await e.useDualstackEndpoint(),o=await e.useFipsEndpoint(),{hostname:i}=await e.regionInfoProvider(n,{useDualstackEndpoint:r,useFipsEndpoint:o})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${i}`)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRegionInfo:()=>s});var r=n(337),o=n(338),i=n(339),a=n(340);const s=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:s,regionHash:l,partitionHash:c})=>{const u=(0,i.getResolvedPartition)(e,{partitionHash:c}),d=e in l?e:c[u]?.endpoint??e,f={useFipsEndpoint:t,useDualstackEndpoint:n},p=(0,r.getHostnameFromVariants)(l[d]?.variants,f),h=(0,r.getHostnameFromVariants)(c[u]?.variants,f),m=(0,o.getResolvedHostname)(d,{regionHostname:p,partitionHostname:h});if(void 0===m)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:d,useFipsEndpoint:t,useDualstackEndpoint:n}}`);const g=(0,a.getResolvedSigningRegion)(m,{signingRegion:l[d]?.signingRegion,regionRegex:c[u].regionRegex,useFipsEndpoint:t});return{partition:u,signingService:s,hostname:m,...g&&{signingRegion:g},...l[d]?.signingService&&{signingService:l[d].signingService}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHostnameFromVariants:()=>r});const r=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find(({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack"))?.hostname},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getResolvedHostname:()=>r});const r=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getResolvedPartition:()=>r});const r=(e,{partitionHash:t})=>Object.keys(t||{}).find(n=>t[n].regions.includes(e))??"aws"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getResolvedSigningRegion:()=>r});const r=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),r=e.match(t);if(r)return r[0].slice(1,-1)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveDefaultsModeConfig:()=>i});var r=n(329),o=n(342);const i=({defaultsMode:e}={})=>(0,r.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 ${o.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${t}`)}}),a=()=>{const e=window?.navigator;if(e?.connection){const{effectiveType:t,rtt:n,downlink:r}=e?.connection;if("string"==typeof t&&"4g"!==t||Number(n)>100||Number(r)<10)return!0}return e?.userAgentData?.mobile||"number"==typeof e?.maxTouchPoints&&e?.maxTouchPoints>1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AWS_DEFAULT_REGION_ENV:()=>i,AWS_EXECUTION_ENV:()=>r,AWS_REGION_ENV:()=>o,DEFAULTS_MODE_OPTIONS:()=>s,ENV_IMDS_DISABLED:()=>a,IMDS_REGION_PATH:()=>l});const r="AWS_EXECUTION_ENV",o="AWS_REGION",i="AWS_DEFAULT_REGION",a="AWS_EC2_METADATA_DISABLED",s=["in-region","cross-region","mobile","standard","legacy"],l="/latest/meta-data/placement/region"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FetchHttpHandler:()=>l,keepAliveSupport:()=>s});var r=n(244),o=n(344),i=n(345),a=n(346);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,i.createRequest)("https://[::1]")))}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){this.config||(this.config=await this.configProvider);const l=n??this.config.requestTimeout,u=!0===this.config.keepAlive,d=this.config.credentials;if(t?.aborted){const e=c(t);return Promise.reject(e)}let f=e.path;const p=(0,o.buildQueryString)(e.query||{});p&&(f+=`?${p}`),e.fragment&&(f+=`#${e.fragment}`);let h="";if(null!=e.username||null!=e.password){h=`${e.username??""}:${e.password??""}@`}const{port:m,method:g}=e,y=`${e.protocol}//${h}${e.hostname}${m?`:${m}`:""}${f}`,v="GET"===g||"HEAD"===g?void 0:e.body,b={body:v,headers:new Headers(e.headers),method:g,credentials:d};this.config?.cache&&(b.cache=this.config.cache),v&&(b.duplex="half"),"undefined"!=typeof AbortController&&(b.signal=t),s.supported&&(b.keepalive=u),"function"==typeof this.config.requestInit&&Object.assign(b,this.config.requestInit(e));let _=()=>{};const w=(0,i.createRequest)(y,b),S=[fetch(w).then(e=>{const t=e.headers,n={};for(const e of t.entries())n[e[0]]=e[1];return null!=e.body?{response:new r.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new r.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})}))}),(0,a.requestTimeout)(l)];
1return t&&S.push(new Promise((e,n)=>{const r=()=>{const e=c(t);n(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",r,{once:!0}),_=()=>e.removeEventListener("abort",r)}else t.onabort=r})),Promise.race(S).finally(_)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=t,n))}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 n=new Error("Request aborted");return n.name="AbortError",n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildQueryString:()=>o});var r=n(286);function o(e){const t=[];for(let n of Object.keys(e).sort()){const o=e[n];if(n=(0,r.escapeUri)(n),Array.isArray(o))for(let e=0,i=o.length;e<i;e++)t.push(`${n}=${(0,r.escapeUri)(o[e])}`);else{let e=n;(o||"string"==typeof o)&&(e+=`=${(0,r.escapeUri)(o)}`),t.push(e)}}return t.join("&")}},(e,t,n)=>{"use strict";function r(e,t){return new Request(e,t)}n.r(t),n.d(t,{createRequest:()=>r})},(e,t,n)=>{"use strict";function r(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",n(t)},e)})}n.r(t),n.d(t,{requestTimeout:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{streamCollector:()=>o});var r=n(223);const o=async e=>"function"==typeof Blob&&e instanceof Blob||"Blob"===e.constructor?.name?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(2!==r.readyState)return n(new Error("Reader aborted too early"));const e=r.result??"",o=e.indexOf(","),i=o>-1?o+1:e.length;t(e.substring(i))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>
1n(r.error),r.readAsDataURL(e)})}(e),n=(0,r.fromBase64)(t);return new Uint8Array(n)}(e):async function(e){const t=[],n=e.getReader();let r=!1,o=0;for(;!r;){const{done:e,value:i}=await n.read();i&&(t.push(i),o+=i.length),r=e}const i=new Uint8Array(o);let a=0;for(const e of t)i.set(e,a),a+=e.length;return i}(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRuntimeConfig:()=>h});var r=n(349),o=n(354),i=n(221),a=n(129),s=n(223),l=n(225),c=n(226),u=n(228),d=n(279),f=n(371),p=n(174);const h=e=>({apiVersion:"2015-08-04",base64Decoder:e?.base64Decoder??s.fromBase64,base64Encoder:e?.base64Encoder??l.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??f.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 r.AwsSdkSigV4Signer}],logger:e?.logger??new i.NoOpLogger,protocol:e?.protocol??o.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.firehose",errorTypeRegistries:p.errorTypeRegistries,xmlNamespace:"http://firehose.amazonaws.com/doc/2015-08-04",version:"2015-08-04",serviceTarget:"Firehose_20150804"},serviceId:e?.serviceId??"Firehose",urlParser:e?.urlParser??a.parseUrl,utf8Decoder:e?.utf8Decoder??c.fromUtf8,utf8Encoder:e?.utf8Encoder??u.toUtf8})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AWSSDKSigV4Signer:()=>u,AwsSdkSigV4Signer:()=>c,validateSigningProperties:()=>l});var r=n(192),o=n(350),i=n(351),a=n(352);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),n=s("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],o=s("signer",n.signer),i=await o(r),a=e?.signingRegion,l=e?.signingRegionSet,c=e?.signingName;return{config:n,signer:i,signingRegion:a,signingRegionSet:l,signingName:c}};class c{async sign(e,t,n){if(!r.HttpRequest.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const o=await l(n),{config:a,signer:s}=o;let{signingRegion:c,signingName:u}=o;const d=n.context;if(d?.authSchemes?.length){const[e,t]=d.authSchemes;"sigv4a"===e?.name&&"sigv4"===t?.name&&(c=t?.signingRegion??c,u=t?.signingName??u)}n._preRequestSystemClockOffset=a.systemClockOffset;return await s.sign(e,{signingDate:(0,i.getSkewCorrectedDate)(a.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(e){return t=>{const n=t,r=n.ServerTime??(0,o.getDateHeader)(n.$response);if(r){const t=s("config",e.config),o=e._preRequestSystemClockOffset,i=(0,a.getUpdatedSystemClockOffset)(r,t.systemClockOffset);(i!==t.systemClockOffset||void 0!==o&&o!==i)&&n.$metadata&&(t.systemClockOffset=i,n.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const n=(0,o.getDateHeader)(e);if(n){const e=s("config",t.config);e.systemClockOffset=(0,a.getUpdatedSystemClockOffset)(n,e.systemClockOffset)}}}const u=c},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDateHeader:()=>o});var r=n(244);const o=e=>r.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSkewCorrectedDate:()=>r});const r=e=>new Date(Date.now()+e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getUpdatedSystemClockOffset:()=>o});var r=n(353);const o=(e,t)=>{const n=Date.parse(e);return(0,r.isClockSkewed)(n,t)?n-Date.now():t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isClockSkewed:()=>o});var r=n(351);const o=(e,t)=>Math.abs((0,r.getSkewCorrectedDate)(t).getTime()-e)>=3e5},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AwsJson1_1Protocol:()=>o});var r=n(355);class o extends r.AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:o})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AwsJsonRpcProtocol:()=>c});var r=n(356),o=n(121),i=n(120),a=n(360),s=n(361),l=n(367);class c extends r.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:r,jsonCodec:o}){super({defaultNamespace:e,errorTypeRegistries:t}),this.serviceTarget=n,this.codec=o??new s.JsonCodec({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!r,this.mixin=new a.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const r=await super.serializeRequest(e,t,n);return r.path.endsWith("/")||(r.path+="/"),r.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,r.headers["x-amz-target"]=`${this.serviceTarget}.${e.name}`,this.awsQueryCompatible&&(r.headers["x-amzn-query-mode"]="true"),"unit"!==(0,o.deref)(e.input)&&r.body||(r.body="{}"),r}getPayloadCodec(){return this.codec}async handleError(e,t,n,r,o){const{awsQueryCompatible:a}=this;a&&this.mixin.setQueryCompatError(r,n);const s=(0,l.loadJsonRpcErrorCode)(n,r,a)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,s,this.options.defaultNamespace);const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(s,this.options.defaultNamespace,n,r,o,a?this.mixin.findQueryCompatibleError:void 0),d=i.NormalizedSchema.of(c),f=r.message??r.Message??"UnknownError",p=new(this.compositeErrorRegistry.getErrorCtor(c)??Error)({}),h={},m=this.codec.createDeserializer();for(const[e,t]of d.structIterator())null!=r[e]&&(h[e]=m.readObject(t,r[e]));throw a&&this.mixin.queryCompatOutput(r,h),this.mixin.decorateServiceException(Object.assign(p,u,{$fault:d.getMergedTraits().error,message:f},h),r)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RpcProtocol:()=>s});var r=n(120),o=n(192),i=n(357),a=n(359);class s extends i.HttpProtocol{async serializeRequest(e,t,n){const i=this.serializer,a={},s={},l=await n.endpoint(),c=r.NormalizedSchema.of(e?.input),u=c.getSchema();let d;const f=t&&"object"==typeof t?t:{},p=new o.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:s,body:void 0});if(l&&(this.updateServiceEndpoint(p,l),this.setHostPrefix(p,e,f)),f){const e=c.getEventStreamMember();if(e){if(f[e]){const t={};for(const[n,r]of c.structIterator())n!==e&&f[n]&&(i.write(r,f[n]),t[n]=i.flush());d=await this.serializeEventStream({eventStream:f[e],requestSchema:c,initialRequest:t})}}else i.write(u,f),d=i.flush()}return p.headers=Object.assign(p.headers,s),p.query=a,p.body=d,p.method="POST",p}async deserializeResponse(e,t,n){const o=this.deserializer,i=r.NormalizedSchema.of(e.output),s={};if(n.statusCode>=300){const r=await(0,a.collectBody)(n.body,t);throw r.byteLength>
10&&Object.assign(s,await o.read(15,r)),await this.handleError(e,t,n,s,this.deserializeMetadata(n)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e],n.headers[e.toLowerCase()]=t}const l=i.getEventStreamMember();if(l)s[l]=await this.deserializeEventStream({response:n,responseSchema:i,initialResponseContainer:s});else{const e=await(0,a.collectBody)(n.body,t);e.byteLength>0&&Object.assign(s,await o.read(i,e))}return s.$metadata=this.deserializeMetadata(n),s}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpProtocol:()=>c});var r=n(120),o=n(122),i=n(175),a=n(192),s=n(244),l=n(358);class c extends l.SerdeContext{options;compositeErrorRegistry;constructor(e){super(),this.options=e,this.compositeErrorRegistry=i.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return a.HttpRequest}getResponseType(){return s.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[n,r]of t.url.searchParams.entries())e.query[n]=r;if(t.headers)for(const n in t.headers)e.headers[n]=t.headers[n].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 n in t.headers)e.headers[n]=t.headers[n];return e}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix)return;const i=r.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,r]of i.structIterator()){if(!r.getMergedTraits().hostLabel)continue;const o=n[e];if("string"!=typeof o)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,o)}e.hostname=t+e.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:n}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e,eventStreamSerdeProvider:t}=await n.e("vendors").then(n.bind(n,1507));return new e({marshaller:this.resolveEventStreamMarshaller(t),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}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,n,r,o){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SerdeContext:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{collectBody:()=>o});var r=n(222);const o=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return r.Uint8ArrayBlobAdapter.mutate(e);if(!e)return r.Uint8ArrayBlobAdapter.mutate(new Uint8Array);const n=t.streamCollector(e);return r.Uint8ArrayBlobAdapter.mutate(await n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ProtocolLib:()=>a});var r=n(178),o=n(120),i=n(175);class a{queryCompat;errorRegistry;constructor(e=!1){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas(),r=Object.values(n).find(e=>!!e.getMergedTraits().httpPayload);if(r){const t=r.getMergedTraits().mediaType;return t||(r.isStringSchema()?"text/plain":r.isBlobSchema()?"application/octet-stream":e)}
1if(!t.isUnitSchema()){if(Object.values(n).find(e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:r,httpLabel:o,httpPrefixHeaders:i}=e.getMergedTraits();return!t&&!n&&!r&&!o&&void 0===i}))return e}}async getErrorSchemaOrThrowBaseException(e,t,n,r,o,i){let a=e;e.includes("#")&&([,a]=e.split("#"));const s={$metadata:o,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:i?.(this.errorRegistry,a)??this.errorRegistry.getSchema(e),errorMetadata:s}}catch(e){r.message=r.message??r.Message??"UnknownError";const t=this.errorRegistry,n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:a}),s),r)}const o=r,i=o?.message??o?.Message??o?.Error?.Message??o?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(i),{name:a},s),r)}}compose(e,t,n){let r=n;t.includes("#")&&([r]=t.split("#"));const o=i.TypeRegistry.for(r),a=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(o),e.copyFrom(a),this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message,o=(0,r.decorateServiceException)(e,t);n&&(o.message=n);const i=o.Error??{};i.Type=o.Error?.Type,i.Code=o.Error?.Code,i.Message=o.Error?.message??o.Error?.Message??n,o.Error=i;const a=o.$metadata.requestId;return a&&(o.RequestId=a),o}return(0,r.decorateServiceException)(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(void 0!==e&&null!=n){const[t,r]=n.split(";"),o=Object.keys(e),i={Code:t,Type:r};e.Code=t,e.Type=r;for(let t=0;t<o.length;t++){const n=o[t];i["message"===n?"Message":n]=e[n]}delete i.__type,e.Error=i}}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(n){return e.find(e=>o.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonCodec:()=>a});var r=n(362),o=n(363),i=n(369);class a extends r.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}createSerializer(){const e=new i.JsonShapeSerializer(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new o.JsonShapeDeserializer(this.settings);return e.setSerdeContext(this.serdeContext),e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SerdeContextConfig:()=>r});class r{serdeContext;setSerdeContext(e){this.serdeContext=e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonShapeDeserializer:()=>p});var r=n(364),o=n(120),i=n(231),a=n(233),s=n(238),l=n(223),c=n(362),u=n(365),d=n(366),f=n(367);class p extends c.SerdeContextConfig{settings;constructor(e){super(),this.settings=e}async read(e,t){return this._read(e,"string"==typeof t?JSON.parse(t,d.jsonReviver):await(0,f.parseJsonBody)(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=null!==t&&"object"==typeof t,c=o.NormalizedSchema.of(e);if(n){if(c.isStructSchema()){const e=t,n=c.isUnionSchema(),r={};let o;const{jsonName:i}=this.settings;let a;i&&(o={}),n&&(a=new u.UnionSerde(e,r));for(const[t,s]of c.structIterator()){let l=t;i&&(l=s.getMergedTraits().jsonName??l,o[l]=t),n&&a.mark(l),null!=e[l]&&(r[t]=this._read(s,e[l]))}if(n)a.writeUnknown();else if("string"==typeof e.__type)for(const t in e){const n=e[t],a=i?o[t]??t:t;a in r||(r[a]=n)}return r}if(Array.isArray(t)&&c.isListSchema()){const e=c.getValueSchema(),n=[];for(const r of t)n.push(this._read(e,r));return n}if(c.isMapSchema()){const e=c.getValueSchema(),n={};for(const r in t)n[r]=this._read(e,t[r]);return n}}if(c.isBlobSchema()&&"string"==typeof t)return(0,l.fromBase64)(t);const d=c.getMergedTraits().mediaType;if(c.isStringSchema()&&"string"==typeof t&&d){return"application/json"===d||d.endsWith("+json")?a.LazyJsonString.from(t):t}if(c.isTimestampSchema()&&null!=t){switch((0,r.determineTimestampFormat)(c,this.settings)){case 5:return(0,i.parseRfc3339DateTimeWithOffset)(t);case 6:return(0,i.parseRfc7231DateTime)(t);case 7:return(0,i.parseEpochTimestamp)(t);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",t),new Date(t)}}
1if(c.isBigIntegerSchema()&&("number"==typeof t||"string"==typeof t))return BigInt(t);if(c.isBigDecimalSchema()&&null!=t){if(t instanceof s.NumericValue)return t;const e=t;return"bigDecimal"===e.type&&"string"in e?new s.NumericValue(e.string,e.type):new s.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()){if(n){const e=Array.isArray(t)?[]:{};for(const n in t){const r=t[n];r instanceof s.NumericValue?e[n]=r:e[n]=this._read(c,r)}return e}return structuredClone(t)}return t}}},(e,t,n)=>{"use strict";function r(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:n,httpPrefixHeaders:r,httpHeader:o,httpQuery:i}=e.getMergedTraits();return(t.httpBindings?"string"==typeof r||Boolean(o)?6:Boolean(i)||Boolean(n)?5:void 0:void 0)??t.timestampFormat.default}n.r(t),n.d(t,{determineTimestampFormat:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{UnionSerde:()=>r});class r{from;to;keys;constructor(e,t){this.from=e,this.to=t;const n=Object.keys(this.from),r=new Set(n);r.delete("__type"),this.keys=r}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,n)=>{"use strict";n.r(t),n.d(t,{jsonReviver:()=>o});var r=n(238);function o(e,t,n){if(n?.source){const e=n.source;if("number"==typeof t&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t))){return e.includes(".")?new r.NumericValue(e,"bigDecimal"):BigInt(e)}}return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadJsonRpcErrorCode:()=>c,loadRestJsonErrorCode:()=>l,parseJsonBody:()=>o,parseJsonErrorBody:()=>i});var r=n(368);const o=(e,t)=>(0,r.collectBodyString)(e,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(t){throw"SyntaxError"===t?.name&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}return{}}),i=async(e,t)=>{const n=await o(e,t);return n.message=n.message??n.Message,n},a=(e,t)=>Object.keys(e).find(e=>e.toLowerCase()===t.toLowerCase()),s=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},l=(e,t)=>u(e,t,["header","code","type"]),c=(e,t,n=!1)=>u(e,t,n?["code","header","type"]:["type","code","header"]),u=({headers:e},t,n)=>{for(;n.length>0;){switch(n.shift()){case"header":const n=a(e??{},"x-amzn-errortype");if(void 0!==n)return s(e[n]);break;case"code":const r=a(t??{},"code");if(r&&void 0!==t[r])return s(t[r]);break;case"type":if(void 0!==t?.__type)return s(t.__type)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{collectBodyString:()=>i});var r=n(359),o=n(228);const i=(e,t)=>(0,r.collectBody)(e,t).then(e=>(t?.utf8Encoder??o.toUtf8)(e))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonShapeSerializer:()=>f});var r=n(364),o=n(120),i=n(222),a=n(225),s=n(231),l=n(233),c=n(238),u=n(362),d=n(370);class f extends u.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(e){super(),this.settings=e}write(e,t){this.rootSchema=o.NormalizedSchema.of(e),this.buffer=this._write(this.rootSchema,t)}flush(){const{rootSchema:e,useReplacer:t}=this;if(this.rootSchema=void 0,this.useReplacer=!1,e?.isStructSchema()||e?.isDocumentSchema()){if
1(!t)return JSON.stringify(this.buffer);const e=new d.JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(e,t){this.write(e,t),"object"==typeof this.buffer&&(this.buffer.__type=o.NormalizedSchema.of(e).getName(!0))}_write(e,t,n){const u=null!==t&&"object"==typeof t,d=o.NormalizedSchema.of(e);if(u){if(d.isStructSchema()){const e=t,n={},{jsonName:r}=this.settings;let o;r&&(o={});let i=0;for(const[t,a]of d.structIterator()){const s=this._write(a,e[t],d);if(void 0!==s){let e=t;r&&(e=a.getMergedTraits().jsonName??t,o[t]=e),n[e]=s,i++}}if(d.isUnionSchema()&&0===i){const{$unknown:t}=e;if(Array.isArray(t)){const[e,r]=t;n[e]=this._write(15,r)}}else if("string"==typeof e.__type)for(const t in e){const i=e[t],a=r?o[t]??t:t;a in n||(n[a]=this._write(15,i))}return n}if(Array.isArray(t)&&d.isListSchema()){const e=d.getValueSchema(),n=[],r=!!d.getMergedTraits().sparse;for(const o of t)(r||null!=o)&&n.push(this._write(e,o));return n}if(d.isMapSchema()){const e=d.getValueSchema(),n={},r=!!d.getMergedTraits().sparse;for(const o in t){const i=t[o];(r||null!=i)&&(n[o]=this._write(e,i))}return n}if(t instanceof Uint8Array&&(d.isBlobSchema()||d.isDocumentSchema()))return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??a.toBase64)(t);if(t instanceof Date&&(d.isTimestampSchema()||d.isDocumentSchema())){switch((0,r.determineTimestampFormat)(d,this.settings)){case 5:return t.toISOString().replace(".000Z","Z");case 6:return(0,s.dateToUtcString)(t);case 7:return t.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",t),t.getTime()/1e3}}t instanceof c.NumericValue&&(this.useReplacer=!0)}
1if(null!==t||!n?.isStructSchema()){if(d.isStringSchema()){if(void 0===t&&d.isIdempotencyToken())return(0,i.generateIdempotencyToken)();const e=d.getMergedTraits().mediaType;if(null!=t&&e){if("application/json"===e||e.endsWith("+json"))return l.LazyJsonString.from(t)}return t}if("number"==typeof t&&d.isNumericSchema())return Math.abs(t)===1/0||isNaN(t)?String(t):t;if("string"==typeof t&&d.isBlobSchema())return d===this.rootSchema?t:(this.serdeContext?.base64Encoder??a.toBase64)(t);if("bigint"==typeof t&&(this.useReplacer=!0),d.isDocumentSchema()){if(u){const e=Array.isArray(t)?[]:{};for(const n in t){const r=t[n];r instanceof c.NumericValue?(this.useReplacer=!0,e[n]=r):e[n]=this._write(d,r)}return e}return structuredClone(t)}return t}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonReplacer:()=>i});var r=n(238);const o=String.fromCharCode(925);class i{values=new Map;counter=0;stage=0;createReplacer(){if(1===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(e,t)=>{if(t instanceof r.NumericValue){const e=o+"nv"+this.counter+++"_"+t.string;return this.values.set(`"${e}"`,t.string),e}if("bigint"==typeof t){const e=t.toString(),n=o+"b"+this.counter+++"_"+e;return this.values.set(`"${n}"`,e),n}return t}}replaceInJson(e){if(0===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(2===this.stage)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,0===this.counter)return e;for(const[t,n]of this.values)e=e.replace(t,n);return e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultEndpointResolver:()=>c});var r=n(372),o=n(137),i=n(138),a=n(144),s=n(375);const l=new o.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),c=(e,t={})=>l.get(e,()=>(0,i.decideEndpoint)(s.bdd,{endpointParams:e,logger:t.logger}));a.customEndpointFunctions.aws=r.awsEndpointFunctions},(e,t,n)=>{"use strict";n.r(t),n.d(t,{awsEndpointFunctions:()=>s});var r=n(144),o=n(373),i=n(374),a=n(198);const s={isVirtualHostableS3Bucket:o.isVirtualHostableS3Bucket,parseArn:i.parseArn,partition:a.partition};r.customEndpointFunctions.aws=s},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isVirtualHostableS3Bucket:()=>i});var r=n(151),o=n(156);const i=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!i(t))return!1;return!0}return!!(0,r.isValidHostLabel)(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!(0,o.isIpAddress)(e)))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{parseArn:()=>r});const r=e=>{const t=e.split(":");if(t.length<6)return null;const[n,r,o,i,a,...s]=t;if("arn"!==n||""===r||""===o||""===s.join(":"))return null;return{partition:r,service:o,region:i,accountId:a,resourceId:s.map(e=>e.split("/")).flat()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bdd:()=>v});var r=n(136);const o="ref",i=-1,a=!0,s="isSet",l="PartitionResult",c="booleanEquals",u="getAttr",d={[o]:"Endpoint"},f={[o]:l},p={},h=[{[o]:"Region"}],m={conditions:[[s,[d]],[s,h],["aws.partition",h,l],[c,[{[o]:"UseFIPS"},a]],[c,[{[o]:"UseDualStack"},a]],[c,[{fn:u,argv:[f,"supportsDualStack"]},a]],[c,[{fn:u,argv:[f,"supportsFIPS"]},a]]],results:[[i],[i,"Invalid Configuration: FIPS and custom endpoint are not supported"],[i,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[d,p],["https://firehose-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",p],[i,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://firehose-fips.{Region}.{PartitionResult#dnsSuffix}",p],[i,"FIPS is enabled but this partition does not support FIPS"],["https://firehose.{Region}.{PartitionResult#dualStackDnsSuffix}",p],[i,"DualStack is enabled but this partition does not support DualStack"],["https://firehose.{Region}.{PartitionResult#dnsSuffix}",p],[i,"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]),v=r.BinaryDecisionDiagram.from(y,2,m.conditions,m.results)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveRuntimeExtensions:()=>s});var r=n(377),o=n(378),i=n(382),a=n(383);const s=(e,t)=>{const n=Object.assign((0,r.getAwsRegionExtensionConfiguration)(e),(0,o.getDefaultExtensionConfiguration)(e),(0,i.getHttpHandlerExtensionConfiguration)(e),(0,a.getHttpAuthExtensionConfiguration)(e));
1return t.forEach(e=>e.configure(n)),Object.assign(e,(0,r.resolveAwsRegionExtensionConfiguration)(n),(0,o.resolveDefaultRuntimeConfig)(n),(0,i.resolveHttpHandlerRuntimeConfig)(n),(0,a.resolveHttpAuthRuntimeConfig)(n))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAwsRegionExtensionConfiguration:()=>r,resolveAwsRegionExtensionConfiguration:()=>o});const r=e=>({setRegion(t){e.region=t},region:()=>e.region}),o=e=>({region:e.region()})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDefaultClientConfiguration:()=>a,getDefaultExtensionConfiguration:()=>i,resolveDefaultRuntimeConfig:()=>s});var r=n(379),o=n(381);const i=e=>Object.assign((0,r.getChecksumConfiguration)(e),(0,o.getRetryConfiguration)(e)),a=i,s=e=>Object.assign((0,r.resolveChecksumRuntimeConfig)(e),(0,o.resolveRetryRuntimeConfig)(e))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlgorithmId:()=>r.AlgorithmId,getChecksumConfiguration:()=>i,resolveChecksumRuntimeConfig:()=>a});var r=n(380);const o=Object.values(r.AlgorithmId),i=e=>{const t=[];for(const n in r.AlgorithmId){const o=r.AlgorithmId[n];void 0!==e[o]&&t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[n,r]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>n,checksumConstructor:()=>r});return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const r=n.algorithmId(),i=n.checksumConstructor();o.includes(r)?e.checksumAlgorithms[r.toUpperCase()]=i:e.checksumAlgorithms[r]=i,t.push(n)},checksumAlgorithms:()=>t}},a=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{const n=e.algorithmId();o.includes(n)&&(t[n]=e.checksumConstructor())}),t}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AlgorithmId:()=>r,getChecksumConfiguration:()=>o,resolveChecksumRuntimeConfig:()=>i}),function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"}(r||(r={}));const o=e=>{const t=[];return void 0!==e.sha256&&t.push({algorithmId:()=>r.SHA256,checksumConstructor:()=>e.sha256}),null!=e.md5&&t.push({algorithmId:()=>r.MD5,checksumConstructor:()=>e.md5}),{addChecksumAlgorithm(e){t.push(e)},checksumAlgorithms:()=>t}},i=e=>{const t={};return e.checksumAlgorithms().forEach(e=>{t[e.algorithmId()]=e.checksumConstructor()}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getRetryConfiguration:()=>r,resolveRetryRuntimeConfig:()=>o});const r=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}),o=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHttpHandlerExtensionConfiguration:()=>r,resolveHttpHandlerRuntimeConfig:()=>o});const r=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}),o=e=>({httpHandler:e.httpHandler()})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHttpAuthExtensionConfiguration:()=>r,resolveHttpAuthRuntimeConfig:()=>o});const r=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex(t=>t.schemeId===e.schemeId);-1===n?t.push(e):t.splice(n,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider:()=>n,setCredentials(e){r=e},credentials:()=>r}},o=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,l.default)(t,d)).validate_length&&e.length>t.max_allowed_length)return!1;if(!t.allow_fragments&&(0,i.default)(e,"#"))return!1;if(!t.allow_query_components&&((0,i.default)(e,"?")||(0,i.default)(e,"&")))return!1;var n,c,p,h,m,g,y,v;y=e.split("#"),e=y.shift(),y=e.split("?");var b=(e=y.shift()).match(/^([a-z][a-z0-9+\-.]*):/i),_=!1,w=function(r){return _=!0,n=r.toLowerCase(),(!t.require_valid_protocol||-1!==t.protocols.indexOf(n))&&e.substring(b[0].length)};if(b){var S=b[1],E=e.substring(b[0].length);if("//"===E.slice(0,2)){if(!1===(e=w(S)))return!1}else{var k=E.indexOf("/"),T=-1===k?E:E.substring(0,k),x=T.indexOf("@");if(-1!==x){var O=T.substring(0,x),C=/^[a-zA-Z0-9\-_.%:]*$/.test(O),P=/%[0-9a-fA-F]{2}/.test(O);if(C&&!P){if(t.require_protocol)return!1}else if(!1===(e=w(S)))return!1}
vendor: 4,129 bytes, line 1
1else{if(/^[0-9]/.test(E)){if(t.require_protocol)return!1}else if(!1===(e=w(S)))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 A=c.split(":"),I=(D=2,function(e){if(Array.isArray(e))return e}(M=A)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(M,D)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(M,D)||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.")}()),R=I[0],j=I[1];if(""===R&&""===j)return!1}var M,D;h=y.join("@"),g=null,v=null;var N=h.match(f);N?(p="",v=N[1],g=N[2]||null):(p=(y=h.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,o.default)(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!((0,s.default)(p)||(0,a.default)(p,t)||v&&(0,s.default)(v,6)))return!1;if(p=p||v,t.host_blacklist&&(0,o.default)(p,t.host_blacklist))return!1;return!0};var r=c(n(385)),o=c(n(386)),i=c(n(387)),a=c(n(388)),s=c(n(390)),l=c(n(389));function c(e){return e&&e.__esModule?e:{default:e}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var d={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},f=/^\[([^\]]+)\](?::([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 n(e){return"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r=0;r<t.length;r++){var o=t[r];if(e===o||n(o)&&o.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,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.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 n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.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 r=i(n(385)),o=i(n(389));
1function i(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 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)}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"===n(e)&&null!==e||(e={});for(var r in t)void 0===e[r]&&(e[r]=t[r]);return e},e.exports=t.default,e.exports.default=t.default},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(t);var r=("object"===i(n)?n.version:arguments[1])||"";if(!r)return e(t,{version:4})||e(t,{version:6});if("4"===r.toString())return l.test(t);if("6"===r.toString())return u.test(t);return!1};var r,o=(r=n(385))&&r.__esModule?r:{default:r};function i(e){return i="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},i(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}(?:").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,n)=>{"use strict";var r=n(396);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addEventProcessor:()=>I,captureCheckIn:()=>T,captureEvent:()=>g,captureException:()=>h,captureMessage:()=>m,captureSession:()=>D,close:()=>C,endSession:()=>j,flush:()=>O,isEnabled:()=>A,isInitialized:()=>P,lastEventId:()=>k,setContext:()=>y,setConversationId:()=>E,setExtra:()=>b,setExtras:()=>v,setTag:()=>w,setTags:()=>_,setUser:()=>S,startSession:()=>R,withMonitor:()=>x});var r=n(401),o=n(409),i=n(410),a=n(426),s=n(413),l=n(414),c=n(411),u=n(450),d=n(454),f=n(420),p=n(405);function h(e,t){return(0,r.getCurrentScope)().captureException(e,(0,u.parseEventHintOrCaptureContext)(t))}function m(e,t){const n="string"==typeof t?t:void 0,o="string"!=typeof t?{captureContext:t}:void 0;return(0,r.getCurrentScope)().captureMessage(e,n,o)}function g(e,t){return(0,r.getCurrentScope)().captureEvent(e,t)}function y(e,t){(0,r.getIsolationScope)().setContext(e,t)}function v(e){(0,r.getIsolationScope)().setExtras(e)}function b(e,t){(0,r.getIsolationScope)().setExtra(e,t)}function _(e){(0,r.getIsolationScope)().setTags(e)}function w(e,t){(0,r.getIsolationScope)().setTag(e,t)}function S(e){(0,r.getIsolationScope)().setUser(e)}function E(e){(0,r.getIsolationScope)().setConversationId(e)}function k(){return(0,r.getIsolationScope)().lastEventId()}function T(e,t){const n=(0,r.getCurrentScope)(),i=(0,r.getClient)();if(i){if(i.captureCheckIn)return i.captureCheckIn(e,t,n);o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. Client does not support sending check-ins.")}else o.DEBUG_BUILD&&s.debug.warn("Cannot capture check-in. No client defined.");return(0,c.uuid4)()}function x(e,t,n){function o(){const r=T({monitorSlug:e,status:"in_progress"},n),o=(0,f.timestampInSeconds)();function i(t){T({monitorSlug:e,status:t,checkInId:r,duration:(0,f.timestampInSeconds)()-o})}let a;try{a=t()}catch(e){throw i("error"),e}return(0,l.isThenable)(a)?a.then(e=>(i("ok"),e),e=>{throw i("error"),e}):(i("ok"),a)}return(0,r.withIsolationScope)(()=>n?.isolateTrace?(0,a.startNewTrace)(o):o())}async function O(e){const t=(0,r.getClient)();return t?t.flush(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function C(e){const t=(0,r.getClient)();return t?t.close(e):(o.DEBUG_BUILD&&s.debug.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function P(){return!!(0,r.getClient)()}function A(){const e=(0,r.getClient)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function I(e){(0,r.getIsolationScope)().addEventProcessor(e)}function R(e){const t=(0,r.getIsolationScope)(),{user:n}=(0,d.getCombinedScopeData)(t,(0,r.getCurrentScope)()),{userAgent:o}=p.GLOBAL_OBJ.navigator||{},a=(0,i.makeSession)({user:n,...o&&{userAgent:o},...e}),s=t.getSession();return"ok"===s?.status&&(0,i.updateSession)(s,{status:"exited"}),j(),t.setSession(a),a}function j(){const e=(0,r.getIsolationScope)(),t=(0,r.getCurrentScope)().getSession()||e.getSession();t&&(0,i.closeSession)(t),M(),e.setSession()}function M(){const e=(0,r.getIsolationScope)(),t=(0,r.getClient)(),n=e.getSession();n&&t&&t.captureSession(n)}function D(e=!1){e?j():M()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getClient:()=>g,getCurrentScope:()=>d,getExternalPropagationContext:()=>c,getGlobalScope:()=>p,getIsolationScope:()=>f,getTraceContextFromScope:()=>y,hasExternalPropagationContext:()=>u,registerExternalPropagationContext:()=>l,withIsolationScope:()=>m,withScope:()=>h});var r=n(402),o=n(403),i=n(408),a=n(422);let s;function l(e){s=e}function c(){return s?.()}function u(){return void 0!==s}function d(){const e=(0,o.getMainCarrier)();return(0,r.getAsyncContextStrategy)(e).getCurrentScope()}function f(){const e=(0,o.getMainCarrier)();return(0,r.getAsyncContextStrategy)(e).getIsolationScope()}function p(){return(0,o.getGlobalSingleton)("globalScope",()=>new i.Scope)}function h(...e){const t=(0,o.getMainCarrier)(),n=(0,r.getAsyncContextStrategy)(t);if(2===e.length){const[t,r]=e;return t?n.withSetScope(t,r):n.withScope(r)}return n.withScope(e[0])}function m(...e){const t=(0,o.getMainCarrier)(),n=(0,r.getAsyncContextStrategy)(t);if(2===e.length){const[t,r]=e;return t?n.withSetIsolationScope(t,r):n.withIsolationScope(r)}return n.withIsolationScope(e[0])}function g(){return d().getClient()}function y(e){const t=c();if(t)return{trace_id:t.traceId,span_id:t.spanId};const n=e.getPropagationContext(),{traceId:r,parentSpanId:o,propagationSpanId:i}=n,s={trace_id:r,span_id:i||(0,a.generateSpanId)()};return o&&(s.parent_span_id=o),s}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getAsyncContextStrategy:()=>a,setAsyncContextStrategy:()=>i});var r=n(403),o=n(406);function i(e){const t=(0,r.getMainCarrier)();(0,r.getSentryCarrier)(t).acs=e}function a(e){const t=(0,r.getSentryCarrier)(e);return t.acs?t.acs:(0,o.getStackAsyncContextStrategy)()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getGlobalSingleton:()=>s,getMainCarrier:()=>
1i,getSentryCarrier:()=>a});var r=n(404),o=n(405);function i(){return a(o.GLOBAL_OBJ),o.GLOBAL_OBJ}function a(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||r.SDK_VERSION,t[r.SDK_VERSION]=t[r.SDK_VERSION]||{}}function s(e,t,n=o.GLOBAL_OBJ){const i=n.__SENTRY__=n.__SENTRY__||{},a=i[r.SDK_VERSION]=i[r.SDK_VERSION]||{};return a[e]||(a[e]=t())}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SDK_VERSION:()=>r});const r="10.57.0"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{GLOBAL_OBJ:()=>r});const r=globalThis},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AsyncContextStack:()=>l,getStackAsyncContextStrategy:()=>p});var r=n(407),o=n(408),i=n(425),a=n(414),s=n(403);class l{constructor(e,t){let n,r;n=e||new o.Scope,r=t||new o.Scope,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return(0,a.isThenable)(n)?(0,i.chainAndCopyPromiseLike)(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function c(){const e=(0,s.getMainCarrier)(),t=(0,s.getSentryCarrier)(e);return t.stack=t.stack||new l((0,r.getDefaultCurrentScope)(),(0,r.getDefaultIsolationScope)())}function u(e){return c().withScope(e)}function d(e,t){const n=c();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function f(e){return c().withScope(()=>e(c().getIsolationScope()))}function p(){return{withIsolationScope:f,withScope:u,withSetScope:d,withSetIsolationScope:(e,t)=>f(t),getCurrentScope:()=>c().getScope(),getIsolationScope:()=>c().getIsolationScope()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDefaultCurrentScope:()=>i,getDefaultIsolationScope:()=>a});var r=n(403),o=n(408);function i(){return(0,r.getGlobalSingleton)("defaultCurrentScope",()=>new o.Scope)}function a(){return(0,r.getGlobalSingleton)("defaultIsolationScope",()=>new o.Scope)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Scope:()=>h});var r=n(409),o=n(410),i=n(413),a=n(414),s=n(421),l=n(411),c=n(422),u=n(415),d=n(423),f=n(416),p=n(420);class h{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 h;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,d._setSpanForScope)(e,(0,d._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,o.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,n=t instanceof h?t.getScopeData():(0,a.isPlainObject)(t)?e:void 0,{tags:r,attributes:o,extra:i,user:s,contexts:l,level:c,fingerprint:u=[],propagationContext:d,conversationId:f}=n||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...l},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),d&&(this._propagationContext=d),f&&(this._conversationId=f),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,d._setSpanForScope)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,c.generateTraceId)(),sampleRand:(0,u.safeMathRandom)()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,p.dateTimestampInSeconds)(),...e,message:e.message?(0,f.truncate)(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),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,d._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 n=t?.event_id||(0,l.uuid4)();if(!this._client)return r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture exception!"),n;const o=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:o,...t,event_id:n},this),n}captureMessage(e,t,n){const o=n?.event_id||(0,l.uuid4)();if(!this._client)return r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture message!"),o;const a=n?.syntheticException??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:o},this),o}captureEvent(e,t){const n=e.event_id||t?.event_id||(0,l.uuid4)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r.DEBUG_BUILD&&i.debug.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEBUG_BUILD:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,n)=>{"use strict";n.r(t),n.d(t,{closeSession:()=>s,makeSession:()=>i,updateSession:()=>a});var r=n(411),o=n(420);function i(e){const t=(0,o.timestampInSeconds)(),n={sid:(0,r.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}}}(n)};return e&&a(n,e),n}function a(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.timestampInSeconds)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.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 n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addContextToFrame:()=>g,addExceptionMechanism:()=>f,addExceptionTypeValue:()=>d,checkOrSetAlreadyCaught:()=>y,getEventDescription:()=>u,isAlreadyCaptured:()=>v,parseSemver:()=>m,uuid4:()=>l});var r=n(412),o=n(415),i=n(416),a=n(405);let s;function l(e=function(){const e=a.GLOBAL_OBJ;return e.crypto||e.msCrypto}()){try{if(e?.randomUUID)return(0,o.withRandomSafeContext)(()=>e.randomUUID()).replace(/-/g,"")}catch{}return s||(s="10000000100040008000100000000000"),s.replace(/[018]/g,e=>(e^(16*(0,o.safeMathRandom)()&15)>>e/4).toString(16))}function c(e){return e.exception?.values?.[0]}function u(e){const{message:t,event_id:n}=e;if(t)return t;const r=c(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function d(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function f(e,t){const n=c(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r?.data,...t.data};n.mechanism.data=e}}const p=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function h(e){return parseInt(e||"",10)}function m(e){const t=e.match(p)||[],n=h(t[1]),r=h(t[2]),o=h(t[3]);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(o)?void 0:o,prerelease:t[4]}}function g(e,t,n=5){if(void 0===t.lineno)return;const r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(e=>(0,i.snipLine)(e,0));const a=Math.min(r-1,o);t.context_line=(0,i.snipLine)(e[a],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(e=>(0,i.snipLine)(e,0))}function y(e){if(v(e))return!0;try{(0,r.addNonEnumerableProperty)(e,"__sentry_captured__",!0)}catch{}return!1}function v(e){try{return e.__sentry_captured__}catch{}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addNonEnumerableProperty:()=>s,convertToPlainObject:()=>d,dropUndefinedKeys:()=>h,extractExceptionKeysForMessage:()=>p,fill:()=>a,getOriginalFunction:()=>u,markFunctionWrapped:()=>l,objectify:()=>g,wrapMethod:()=>c});var r=n(409),o=n(413),i=n(414);function a(e,t,n){if(!(t in e))return;const i=e[t];if("function"!=typeof i)return;const a=n(i);"function"==typeof a&&l(a,i);try{e[t]=a}catch{r.DEBUG_BUILD&&o.debug.log(`Failed to replace method "${t}" in object`,e)}}function s(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r.DEBUG_BUILD&&o.debug.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function l(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,s(e,"__sentry_original__",t)}catch{}}function c(e,t,n,r=!0){const o=e[t];if("function"!=typeof o)throw new Error(`Cannot wrap method: ${t} is not a function`);if(u(o))throw new Error(`Attempting to wrap method ${t} multiple times`);l(n,o),Object.defineProperty(e,t,{writable:!0,configurable:!0,enumerable:r,value:n})}function u(e){return e.__sentry_original__}function d(e){if((0,i.isError)(e))return{message:e.message,name:e.name,stack:e.stack,...f(e)};if((0,i.isEvent)(e)){const{type:t,target:n,currentTarget:r,detail
1:o}=e;return{type:t,target:n,currentTarget:r,...o?{detail:o}:{},...f(e)}}return e}function f(e){return"object"==typeof e&&null!==e?Object.fromEntries(Object.entries(e)):{}}function p(e){const t=Object.keys(d(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}function h(e){return m(e,new Map)}function m(e,t){if(null===e||"object"!=typeof e)return e;const n=t.get(e);if(void 0!==n)return n;if(Array.isArray(e)){const n=[];return t.set(e,n),e.forEach(e=>{n.push(m(e,t))}),n}if(function(e){const t=e.constructor;return t===Object||void 0===t}(e)){const n={};t.set(e,n);return Object.keys(e).forEach(r=>{const o=e[r];void 0!==o&&(n[r]=m(o,t))}),n}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,i.isPrimitive)(e):t=new e.constructor(e);break;default:t=e}return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CONSOLE_LEVELS:()=>a,consoleSandbox:()=>l,debug:()=>f,originalConsoleMethods:()=>s});var r=n(403),o=n(409),i=n(405);const a=["debug","info","warn","error","log","assert","trace"],s={};function l(e){if(!("console"in i.GLOBAL_OBJ))return e();const t=i.GLOBAL_OBJ.console,n={},r=Object.keys(s);r.forEach(e=>{const r=s[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function c(){return d().enabled}function u(e,...t){o.DEBUG_BUILD&&c()&&l(()=>{i.GLOBAL_OBJ.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return o.DEBUG_BUILD?(0,r.getGlobalSingleton)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const f={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:c,log:function(...e){u("log",...e)},warn:function(...e){u("warn",...e)},error:function(...e){u("error",...e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isDOMError:()=>s,isDOMException:()=>l,isElement:()=>h,isError:()=>o,isErrorEvent:()=>a,isEvent:()=>p,isInstanceOf:()=>v,isParameterizedString:()=>u,isPlainObject:()=>f,isPrimitive:()=>d,isRegExp:()=>m,isRequest:()=>_,isString:()=>c,isSyntheticEvent:()=>y,isThenable:()=>g,isVueViewModel:()=>b});const r=Object.prototype.toString;function o(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return v(e,Error)}}function i(e,t){return r.call(e)===`[object ${t}]`}function a(e){return i(e,"ErrorEvent")}function s(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function c(e){return i(e,"String")}function u(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||u(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return i(e,"Object")}function p(e){return"undefined"!=typeof Event&&v(e,Event)}function h(e){return"undefined"!=typeof Element&&v(e,Element)}function m(e){return i(e,"RegExp")}function g(e){return Boolean(e?.then&&"function"==typeof e.then)}function y(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e,t){try{return e instanceof t}catch{return!1}}function b(e){return!("object"!=typeof e||null===e||!(e.__isVue||e._isVue||e.__v_isVNode))}function _(e){return"undefined"!=typeof Request&&v(e,Request)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{safeDateNow:()=>s,safeMathRandom:()=>a,withRandomSafeContext:()=>i});var r=n(405);let o;function i(e){if(void 0!==o)return o?o(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=r.GLOBAL_OBJ;return t in n&&"function"==typeof n[t]?(o=n[t],o(e)):(o=null,e())}function a(){return i(()=>Math.random())}function s(){return i(()=>Date.now())}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isMatchingPattern:()=>l,safeJoin:()=>s,snipLine:()=>a,stringMatchesSomePattern:()=>c,truncate:()=>i});var r=n(414),o=n(417);function i(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function a(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";const n=[];for(let t=0;t<e.length;t++){const i=e[t];(0,r.isPrimitive)(i)?n.push(String(i)):i instanceof Error?n.push(i.message?`${i.name}: ${i.message}`:i.name):n.push((0,o.stringifyValue)(void 0,i))}return n.join(t)}function l(e,t,n=!1){return!!(0,r.isString)(e)&&((0,r.isRegExp)(t)?t.test(e):(0,r.isString)(t)?n?e===t:e.includes(t):"function"==typeof t&&t(e))}function c(e,t=[],n=!1){for(const r of t)if(l(e,r,n))return!0;return!1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalize:()=>l,normalizeToSize:()=>c,normalizeUrlToBase:()=>f,setNormalizeStringifier:()=>s,stringifyValue:()=>d});var r=n(418),o=n(412),i=n(419);let a;function s(e){a=e}function l(e,t=100,n=1/0){try{return u("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function c(e,t=3,n=102400){const r=l(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?c(e,t-1,n):r;var o}function u(e,t,n=1/0,i=1/0,a=function(){const e=new WeakSet;function t(t){return!!e.has(t)||(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}()){const[s,l]=a;if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;const c=d(e,t);if(!c.startsWith("[object "))return c;if((0,r.hasSkipNormalizationHint)(t))return t;const f=(0,r.getNormalizationDepthOverrideHint)(t),p=void 0!==f?f:n;if(0===p)return c.replace("object ","");if(s(t))return"[Circular ~]";const h=t;if(h&&"function"==typeof h.toJSON)try{return u("",h.toJSON(),p-1,i,a)}catch{}const m=Array.isArray(t)?[]:{};let g=0;const y=(0,o.convertToPlainObject)(t);for(const e in y){if(!Object.prototype.hasOwnProperty.call(y,e))continue;if(g>=i){m[e]="[MaxProperties ~]";break}const t=y[e];m[e]=u(e,t,p-1,i,a),g++}return l(t),m}function d(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,i.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 f(e,t){const n=t.replace(/\\/g,"/").replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");let r=e;try{r=decodeURI(e)}catch{}return r.replace(/\\/g,"/").replace(/webpack:\/?/g,"").replace(new RegExp(`(file://)?/*${n}/*`,"ig"),"app:///")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getNormalizationDepthOverrideHint:()=>c,hasSkipNormalizationHint:()=>l,setNormalizationDepthOverrideHint:()=>s,setSkipNormalizationHint:()=>a});var r=n(412);const o=Symbol.for("sentry.skipNormalization"),i=Symbol.for("sentry.overrideNormalizationDepth");function a(e){(0,r.addNonEnumerableProperty)(e,o,!0)}function s(e,t){(0,r.addNonEnumerableProperty)(e,i,t)}function l(e){return Boolean(e[o])}function c(e){const t=e[i];return"number"==typeof t?t:void 0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{UNKNOWN_FUNCTION:()=>o,createStackParser:()=>s,getFramesFromEvent:()=>p,getFunctionName:()=>f,normalizeStackTracePath:()=>h,stackParserFromStackParserOptions:()=>l,stripSentryFramesAndReverse:()=>c});const r=50,o="?",i=/\(error: (.*)\)/,a=/captureMessage|captureException/;function s(...e){const t=e.sort((e,t)=>
1e[0]-t[0]).map(e=>e[1]);return(e,n=0,o=0)=>{const a=[],s=e.split("\n");for(let e=n;e<s.length;e++){let n=s[e];n.length>1024&&(n=n.slice(0,1024));const l=i.test(n)?n.replace(i,"$1"):n;if(!l.includes("Error: ")){for(const e of t){const t=e(l);if(t){a.push(t);break}}if(a.length>=r+o)break}}return c(a.slice(o))}}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,r).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||o}))}function u(e){return e[e.length-1]||{}}const d="<anonymous>";function f(e){try{return e&&"function"==typeof e&&e.name||d}catch{return d}}function p(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 h(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{browserPerformanceTimeOrigin:()=>u,dateTimestampInSeconds:()=>a,timestampInSeconds:()=>l});var r=n(415),o=n(405);const i=1e3;function a(){return(0,r.safeDateNow)()/i}let s;function l(){return(s??(s=function(){const{performance:e}=o.GLOBAL_OBJ;if(!e?.now||!e.timeOrigin)return a;const t=e.timeOrigin;return()=>(t+(0,r.withRandomSafeContext)(()=>e.now()))/i}()))()}let c=null;function u(){return null===c&&(c=function(){const{performance:e}=o.GLOBAL_OBJ;if(!e?.now)return;const t=3e5,n=(0,r.withRandomSafeContext)(()=>e.now()),i=(0,r.safeDateNow)(),a=e.timeOrigin;if("number"==typeof a&&Math.abs(a+n-i)<t)return a;const s=e.timing?.navigationStart;if("number"==typeof s&&Math.abs(s+n-i)<t)return s;return i-n}()),c}},(e,t,n)=>{"use strict";function r(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&0===Object.keys(t).length)return e;const o={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=r(o[e],t[e],n-1));return o}n.r(t),n.d(t,{merge:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{generateSpanId:()=>i,generateTraceId:()=>o});var r=n(411);function o(){return(0,r.uuid4)()}function i(){return(0,r.uuid4)().substring(16)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_getSpanForScope:()=>s,_setSpanForScope:()=>a});var r=n(412),o=n(424);const i="_sentrySpan";function a(e,t){t?(0,r.addNonEnumerableProperty)(e,i,(0,o.makeWeakRef)(t)):delete e[i]}function s(e){return(0,o.derefWeakRef)(e[i])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{derefWeakRef:()=>i,makeWeakRef:()=>o});var r=n(405);function o(e){try{const t=r.GLOBAL_OBJ.WeakRef;if("function"==typeof t)return new t(e)}catch{}return e}function i(e){if(e){if("object"==typeof e&&"deref"in e&&"function"==typeof e.deref)try{return e.deref()}catch{return}return e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{chainAndCopyPromiseLike:()=>i});const r=e=>e instanceof Promise&&!e[o],o=Symbol("chained PromiseLike"),i=(e,t,n)=>{const o=e.then(e=>(t(e),e),e=>{throw n(e),e});return r(o)&&r(e)?o:a(e,o)},a=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const o=e[r];"function"==typeof o?Object.defineProperty(t,r,{value:(...t)=>o.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=o}return n&&Object.assign(t,{[o]:!0}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SUPPRESS_TRACING_KEY:()=>O,continueTrace:()=>I,startInactiveSpan:()=>A,startNewTrace:()=>M,startSpan:()=>C,startSpanManual:()=>P,suppressTracing:()=>j,withActiveSpan:()=>R});var r=n(402),o=n(403),i=n(401),a=n(409),s=n(427),l=n(428),c=n(413),u=n(429),d=n(430),f=n(431),p=n(432),h=n(433),m=n(422),g=n(415),y=n(423),v=n(434),b=n(438),_=n(440),w=n(442),S=n(443),E=n(444),k=n(445),T=n(436),x=n(437);const O="__SENTRY_SUPPRESS_TRACING__";function C(e,t){const n=L();if(n.startSpan)return n.startSpan(e,t);const r=N(e),{forceTransaction:o,parentSpan:a,scope:s}=e,l=s?.clone();return(0,i.withScope)(l,()=>z(a)(()=>{const n=(0,i.getCurrentScope)(),s=B(n,a),l=(0,i.getClient)(),c=e.onlyIfParent&&!s,d=c?new E.SentryNonRecordingSpan:D({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return c&&l?.recordDroppedEvent("no_parent_span","span"),U(d)&&s||(0,y._setSpanForScope)(n,d),(0,u.handleCallbackErrors)(()=>t(d),()=>{const{status:e}=(0,v.spanToJSON)(d);!d.isRecording()||e&&"ok"!==e||d.setStatus({code:T.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{d.end()})}))}function P(e,t){const n=L();if(n.startSpanManual)return n.startSpanManual(e,t);const r=N(e),{forceTransaction:o,parentSpan:a,scope:s}=e,l=s?.clone();return(0,i.withScope)(l,()=>z(a)(()=>{const n=(0,i.getCurrentScope)(),s=B(n,a),l=e.onlyIfParent&&!s,c=l?new E.SentryNonRecordingSpan:D({parentSpan:s,spanArguments:r,forceTransaction:o,scope:n});return l&&(0,i.getClient)()?.recordDroppedEvent("no_parent_span","span"),U(c)&&s||(0,y._setSpanForScope)(n,c),(0,u.handleCallbackErrors)(()=>t(c,()=>c.end()),()=>{const{status:e}=(0,v.spanToJSON)(c);!c.isRecording()||e&&"ok"!==e||c.setStatus({code:T.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function A(e){const t=L();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=N(e),{forceTransaction:r,parentSpan:o}=e;return(e.scope?t=>(0,i.withScope)(e.scope,t):void 0!==o?e=>R(o,e):e=>e())(()=>{const t=(0,i.getCurrentScope)(),a=B(t,o),s=(0,i.getClient)();return e.onlyIfParent&&!a?(s?.recordDroppedEvent("no_parent_span","span"),new E.SentryNonRecordingSpan):D({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}const I=(e,t)=>{const n=(0,o.getMainCarrier)(),a=(0,r.getAsyncContextStrategy)(n);if(a.continueTrace)return a.continueTrace(e,t);const{sentryTrace:s,baggage:c}=e,u=(0,i.getClient)(),d=(0,l.baggageHeaderToDynamicSamplingContext)(c);return u&&!(0,b.shouldContinueTrace)(u,d?.org_id)?M(t):(0,i.withScope)(e=>{const n=(0,b.propagationContextFromHeaders)(s,c);return e.setPropagationContext(n),(0,y._setSpanForScope)(e,void 0),t()})};function R(e,t){const n=L();return n.withActiveSpan?n.withActiveSpan(e,t):(0,i.withScope)(n=>((0,y._setSpanForScope)(n,e||void 0),t(n)))}function j(e){const t=L();return t.suppressTracing?t.suppressTracing(e):(0,i.withScope)(t=>{t.setSDKProcessingMetadata({[O]:!0});const n=e();return t.setSDKProcessingMetadata({[O]:void 0}),n})}function M(e){const t=L();return t.startNewTrace?t.startNewTrace(e):(0,i.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}`),R(null,e)))}function D({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!(0,d.hasSpansEnabled)()){const r=new E.SentryNonRecordingSpan;if(n||!e){const e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,_.getDynamicSamplingContextFromSpan)(r)};(0,_.freezeDscOnSpan)(r,e)}return r}const o=(0,i.getClient)();if(function(e,t){const n=e?.getOptions().ignoreSpans;if(!e||!(0,p.hasSpanStreamingEnabled)(e)||!n?.length)return!1;return(0,f.shouldIgnoreSpan)({description:t.name||"",op:t.attributes?.[s.SEMANTIC_ATTRIBUTE_SENTRY_OP]||t.op,attributes:t.attributes},n)}(o,t))return H(r)||o?.recordDroppedEvent("ignored","span"),new E.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});const a=(0,i.getIsolationScope)();let l;if(e&&!n)l=function(e,t,n){const{spanId:r,traceId:o}=e.spanContext(),a=H(t),s=!a&&(0,v.spanIsSampled)(e),l=s?new k.SentrySpan({...n,parentSpanId:r,traceId:o,sampled:s}):new E.SentryNonRecordingSpan({traceId:o});(0,v.addChildSpanToSpan)(e,l);const c=(0,i.getClient)();if(!c)return l;(0,p.hasSpanStreamingEnabled)(c)&&l instanceof E.SentryNonRecordingSpan&&(e instanceof E.SentryNonRecordingSpan&&e.dropReason?(l.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):a||(l.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span")));c.emit("spanStart",l),n.endTimestamp&&(c.emit("spanEnd",l),c.emit("afterSpanEnd",l));return l}(e,r,t),(0,v.addChildSpanToSpan)(e,l);else if(e){const n=(0,_.getDynamicSamplingContextFromSpan)(e),{traceId:o,spanId:i}=e.spanContext(),a=(0,v.spanIsSampled)(e);l=F({traceId:o,parentSpanId:i,...t},r,a),(0,_.freezeDscOnSpan)(l,n)}else{const{traceId:e,dsc:n,parentSpanId:o,sampled:i}={...a.getPropagationContext(),...r.getPropagationContext()};l=F({traceId:e,parentSpanId:o,...t},r,i),n&&(0,_.freezeDscOnSpan)(l,n)}return(0,w.logSpanStart)(l),(0,x.setCapturedScopesOnSpan)(l,r,a),l}function N(e){const t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const n={...t};return n.startTimestamp=(0,v.spanTimeInputToSeconds)(e.startTime),delete n.startTime,n}return t}function L(){const e=(0,o.getMainCarrier)();return(0,r.getAsyncContextStrategy)(e)}function F(e,t,n){const r=(0,i.getClient)(),o=r?.getOptions()||{},{name:l=""}=e,u={spanAttributes:{...e.attributes},spanName:l,parentSampled:n};r?.emit("beforeSampling",u,{decision:!1});const d=u.parentSampled??n,f=u.spanAttributes,m=t.getPropagationContext(),g=H(t),[y,v,b]=g?[!1]:(0,S.sampleSpan)(o,{name:l,parentSampled:d,attributes:f,parentSampleRate:(0,h.parseSampleRate)(m.dsc?.sample_rate)},m.sampleRand),_=new k.SentrySpan({...e,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==v&&b?v:void 0,...f},sampled:y}
1);return y||!r||g||(a.DEBUG_BUILD&&c.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",(0,p.hasSpanStreamingEnabled)(r)?"span":"transaction")),r&&r.emit("spanStart",_),_}function B(e,t){if(t)return t;if(null===t)return;const n=(0,y._getSpanForScope)(e);if(!n)return;const r=(0,i.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,v.getRootSpan)(n):n}function z(e){return void 0!==e?t=>R(e,t):e=>e()}function U(e){return e instanceof E.SentryNonRecordingSpan&&"ignored"===e.dropReason}function H(e){return!0===e.getScopeData().sdkProcessingMetadata[O]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>I,SEMANTIC_ATTRIBUTE_CACHE_HIT:()=>T,SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE:()=>O,SEMANTIC_ATTRIBUTE_CACHE_KEY:()=>x,SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME:()=>k,SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD:()=>C,SEMANTIC_ATTRIBUTE_PROFILE_ID:()=>E,SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME:()=>S,SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT:()=>f,SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON:()=>l,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT:()=>c,SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE:()=>u,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>a,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>s,SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE:()=>i,SEMANTIC_ATTRIBUTE_SENTRY_RELEASE:()=>d,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>o,SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS:()=>y,SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME:()=>m,SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION:()=>g,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID:()=>h,SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME:()=>p,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>r,SEMANTIC_ATTRIBUTE_URL_FULL:()=>P,SEMANTIC_ATTRIBUTE_USER_EMAIL:()=>b,SEMANTIC_ATTRIBUTE_USER_ID:()=>v,SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS:()=>_,SEMANTIC_ATTRIBUTE_USER_USERNAME:()=>w,SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE:()=>A});const r="sentry.source",o="sentry.sample_rate",i="sentry.previous_trace_sample_rate",a="sentry.op",s="sentry.origin",l="sentry.idle_span_finish_reason",c="sentry.measurement_unit",u="sentry.measurement_value",d="sentry.release",f="sentry.environment",p="sentry.segment.name",h="sentry.segment.id",m="sentry.sdk.name",g="sentry.sdk.version",y="sentry.sdk.integrations",v="user.id",b="user.email",_="user.ip_address",w="user.name",S="sentry.custom_span_name",E="sentry.profile_id",k="sentry.exclusive_time",T="cache.hit",x="cache.key",O="cache.item_size",C="http.request.method",P="url.full",A="sentry.link.type",I="gen_ai.conversation.id"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_BAGGAGE_STRING_LENGTH:()=>l,SENTRY_BAGGAGE_KEY_PREFIX:()=>a,SENTRY_BAGGAGE_KEY_PREFIX_REGEX:()=>s,baggageHeaderToDynamicSamplingContext:()=>c,dynamicSamplingContextToSentryBaggageHeader:()=>u,mergeBaggageHeaders:()=>h,objectToBaggageHeader:()=>p,parseBaggageHeader:()=>d});var r=n(409),o=n(413),i=n(414);const a="sentry-",s=/^sentry-/,l=8192;function c(e){const t=d(e);if(!t)return;const n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(a)){e[t.slice(a.length)]=n}return e},{});return Object.keys(n).length>0?n:void 0}function u(e){if(!e)return;return p(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${a}${t}`]=n),e),{}))}function d(e){if(e&&((0,i.isString)(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{const n=f(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):f(e)}function f(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,n])=>(t&&n&&(e[t]=n),e),{})}function p(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,n],i)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===i?a:`${e},${a}`;return s.length>l?(r.DEBUG_BUILD&&o.debug.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}function h(e,t){if(!e)return t;const n=d(e),r=d(t);if(!r)return e;const o={};let i=!1;const s={},l={};for(const[e,t]of Object.entries(r))e.startsWith(a)?(s[e]=t,i=!0):l[e]=t;if(n)for(const[e,t]of Object.entries(n))i&&e.startsWith(a)||(o[e]=t);i&&Object.assign(o,s);for(const[e,t]of Object.entries(l))o[e]??(o[e]=t);return p(o)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{handleCallbackErrors:()=>i});var r=n(425),o=n(414);function i(e,t,n=()=>{},i=()=>{}){let a;try{a=e()}catch(e){throw t(e),n(),e}return function(e,t,n,i){if((0,o.isThenable)(e))return(0,r.chainAndCopyPromiseLike)(e,e=>{n(),i(e)},e=>{t(e),n()});return n(),i(e),e}(a,t,n,i)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{hasSpansEnabled:()=>o});var r=n(401);function o(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=e||(0,r.getClient)()?.getOptions();return!(!t||null==t.tracesSampleRate&&!t.tracesSampler)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{reparentChildSpans:()=>c,shouldIgnoreSpan:()=>s});var r=n(409),o=n(413),i=n(416);function a(e){o.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function s(e,t){if(!t?.length)return!1;for(const n of t){if(u(n)){if(e.description&&(0,i.isMatchingPattern)(e.description,n))return r.DEBUG_BUILD&&a(e),!0;continue}const t=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!t)continue;const o=!n.name||e.description&&(0,i.isMatchingPattern)(e.description,n.name),s=!n.op||e.op&&(0,i.isMatchingPattern)(e.op,n.op),c=!n.attributes||Object.entries(n.attributes).every(([t,n])=>l(e.attributes?.[t],n));if(o&&s&&c)return r.DEBUG_BUILD&&a(e),!0}return!1}function l(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,i.isMatchingPattern)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t}function c(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function u(e){return"string"==typeof e||e instanceof RegExp}},(e,t,n)=>{"use strict";function r(e){return"stream"===e.getOptions().traceLifecycle}n.r(t),n.d(t,{hasSpanStreamingEnabled:()=>r})},(e,t,n)=>{"use strict";function r(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}n.r(t),n.d(t,{parseSampleRate:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{INTERNAL_getSegmentSpan:()=>H,TRACE_FLAG_NONE:()=>g,TRACE_FLAG_SAMPLED:()=>y,addChildSpanToSpan:()=>F,convertSpanLinksForEnvelope:()=>E,getActiveSpan:()=>V,getRootSpan:()=>U,getSimpleStatusMessage:()=>D,getSpanDescendants:()=>z,getStatusMessage:()=>M,getStreamedSpanLinks:()=>k,removeChildSpanFromSpan:()=>B,showSpanDropWarning:()=>q,spanIsSampled:()=>j,spanTimeInputToSeconds:()=>T,spanToJSON:()=>O,spanToStreamedSpanJSON:()=>C,spanToTraceContext:()=>_,spanToTraceHeader:()=>w,spanToTraceparentHeader:()=>S,spanToTransactionTraceContext:()=>b,streamedSpanJsonToSerializedSpan:()=>A,updateSpanName:()=>G});var r=n(402),o=n(435),i=n(403),a=n(401),s=n(427),l=n(436),c=n(437),u=n(412),d=n(422),f=n(420),p=n(438),h=n(413),m=n(423);const g=0,y=1;let v=!1;function b(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,origin:s,links:l}=O(e);return{parent_span_id:i,span_id:t,trace_id:n,data:r,op:o,status:a,origin:s,links:l}}function _(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:O(e).parent_span_id,i=(0,c.getCapturedScopesOnSpan)(e).scope;return{parent_span_id:o,span_id:r?i?.getPropagationContext().propagationSpanId||(0,d.generateSpanId)():t,trace_id:n}}function w(e){const{traceId:t,spanId:n}=e.spanContext(),r=j(e);return(0,p.generateSentryTraceHeader)(t,n,r)}function S(e){const{traceId:t,spanId:n}=e.spanContext(),r=j(e);return(0,p.generateTraceparentHeader)(t,n,r)}function E(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:o})=>({span_id:e,trace_id:t,sampled:n===y,attributes:o,...r})):void 0}function k(e){return e?.length?e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===y,attributes:r})):void 0}function T(e){return"number"==typeof e?x(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?x(e.getTime()):(0,f.timestampInSeconds)()}function x(e){return e>9999999999?e/1e3:e}function O(e){if(R(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(I(e)){const{attributes:r,startTime:o,name:i,endTime:a,status:l,links:c}=e;return{span_id:t,trace_id:n,data:r,description:i,parent_span_id:P(e),start_timestamp:T(o),timestamp:T(a)||void 0,status:M(l),op:r[s.SEMANTIC_ATTRIBUTE_SENTRY_OP],origin:r[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],links:E(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function C(e){if(R(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(I(e)){const{attributes:r,startTime:o,name:i,endTime:a,status:s,links:l}=e;return{name:i,span_id:t,trace_id:n,parent_span_id:P(e),start_timestamp:T(o),end_timestamp:T(a),is_segment:e===H(e),status:D(s),attributes:r,links:k(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===H(e)}}function P(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}
1function A(e){return{...e,attributes:(0,o.serializeAttributes)(e.attributes),links:e.links?.map(e=>({...e,attributes:(0,o.serializeAttributes)(e.attributes)}))}}function I(e){const t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}function R(e){return"function"==typeof e.getSpanJSON}function j(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 D(e){return e&&e.code!==l.SPAN_STATUS_OK&&e.code!==l.SPAN_STATUS_UNSET&&"cancelled"!==e.message?"error":"ok"}const N="_sentryChildSpans",L="_sentryRootSpan";function F(e,t){const n=e[L]||e;(0,u.addNonEnumerableProperty)(t,L,n),e[N]?e[N].add(t):(0,u.addNonEnumerableProperty)(e,N,new Set([t]))}function B(e,t){e[N]&&e[N].delete(t)}function z(e){const t=new Set;return function e(n){if(!t.has(n)&&j(n)){t.add(n);const r=n[N]?Array.from(n[N]):[];for(const t of r)e(t)}}(e),Array.from(t)}const U=H;function H(e){return e[L]||e}function V(){const e=(0,i.getMainCarrier)(),t=(0,r.getAsyncContextStrategy)(e);return t.getActiveSpan?t.getActiveSpan():(0,m._getSpanForScope)((0,a.getCurrentScope)())}function q(){v||((0,h.consoleSandbox)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),v=!0)}function G(e,t){e.updateName(t),e.setAttributes({[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[s.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]:t})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{attributeValueToTypedAttributeValue:()=>i,estimateTypedAttributesSizeInBytes:()=>s,isAttributeObject:()=>o,serializeAttributes:()=>a});var r=n(414);function o(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)&&Object.keys(e).includes("value")}function i(e,t){const{value:n,unit:r}=o(e)?e:{value:e,unit:void 0},i=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}}(n),a=r&&"string"==typeof r?{unit:r}:{};if(i)return{...i,...a};if(!t||"skip-undefined"===t&&void 0===n)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...a}}function a(e,t=!1){const n={};for(const[r,o]of Object.entries(e??{})){const e=i(o,t);e&&(n[r]=e)}return n}function s(e){if(!e)return 0;let t=0;for(const[n,o]of Object.entries(e)){t+=2*n.length,t+=2*o.type.length,t+=2*(o.unit?.length??0);const e=o.value;Array.isArray(e)?t+=l(e[0])*e.length:(0,r.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,n)=>{"use strict";n.r(t),n.d(t,{SPAN_STATUS_ERROR:()=>i,SPAN_STATUS_OK:()=>o,SPAN_STATUS_UNSET:()=>r,getSpanStatusFromHttpCode:()=>a,setHttpStatus:()=>s});const r=0,o=1,i=2;function a(e){if(e<400&&e>=100)return{code:o};if(e>=400&&e<500)switch(e){case 401:return{code:i,message:"unauthenticated"};case 403:return{code:i,message:"permission_denied"};case 404:return{code:i,message:"not_found"};case 409:return{code:i,message:"already_exists"};case 413:return{code:i,message:"failed_precondition"};case 429:return{code:i,message:"resource_exhausted"};case 499:return{code:i,message:"cancelled"};default:return{code:i,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:i,message:"unimplemented"};case 503:return{code:i,message:"unavailable"};case 504:return{code:i,message:"deadline_exceeded"};default:return{code:i,message:"internal_error"}}return{code:i,message:"internal_error"}}function s(e,t){e.setAttribute("http.response.status_code",t);const n=a(t);"unknown_error"!==n.message&&e.setStatus(n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getCapturedScopesOnSpan:()=>l,setCapturedScopesOnSpan:()=>s});var r=n(412),o=n(424);const i="_sentryScope",a="_sentryIsolationScope";function s(e,t,n){e&&((0,r.addNonEnumerableProperty)(e,a,(0,o.makeWeakRef)(n)),(0,r.addNonEnumerableProperty)(e,i,t))}function l(e){const t=e;return{scope:t[i],isolationScope:(0,o.derefWeakRef)(t[a])}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TRACEPARENT_REGEXP:()=>c,extractTraceparentData:()=>u,generateSentryTraceHeader:()=>f,generateTraceparentHeader:()=>p,propagationContextFromHeaders:()=>d,shouldContinueTrace:()=>h});var r=n(413),o=n(428),i=n(439),a=n(433),s=n(422),l=n(415);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 n;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function d(e,t){const n=u(e),r=(0,o.baggageHeaderToDynamicSamplingContext)(t);if(!n?.traceId)return{traceId:(0,s.generateTraceId)(),sampleRand:(0,l.safeMathRandom)()};const i=function(e,t){const n=(0,a.parseSampleRate)(t?.sample_rand);if(void 0!==n)return n;const r=(0,a.parseSampleRate)(t?.sample_rate);return r&&void 0!==e?.parentSampled?e.parentSampled?(0,l.safeMathRandom)()*r:r+(0,l.safeMathRandom)()*(1-r):(0,l.safeMathRandom)()}(n,r);r&&(r.sample_rand=i.toString());const{traceId:c,parentSpanId:d,parentSampled:f}=n;return{traceId:c,parentSpanId:d,sampled:f,dsc:r||{},sampleRand:i}}function f(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),n){let r="";return void 0!==n&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function p(e=(0,s.generateTraceId)(),t=(0,s.generateSpanId)(),n){return`00-${e}-${t}-${n?"01":"00"}`}function h(e,t){const n=(0,i.extractOrgIdFromClient)(e);if(t&&n&&t!==n)return r.debug.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1;return!(e.getOptions().strictTraceContinuation||!1)||!(t&&!n||!t&&n)||(r.debug.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{dsnFromString:()=>l,dsnToString:()=>s,extractOrgIdFromClient:()=>d,extractOrgIdFromDsnHost:()=>u,makeDsn:()=>f});var r=n(409),o=n(413);const i=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function s(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function l(e){const t=a.exec(e);if(!t)return void(0,o.consoleSandbox)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});const[n,r,i="",s="",l="",u=""]=t.slice(1);let d="",f=u;const p=f.split("/");if(p.length>1&&(d=p.slice(0,-1).join("/"),f=p.pop()),f){const e=f.match(/^\d+/);e&&(f=e[0])}return c({host:s,pass:i,path:d,projectId:f,port:l,protocol:n,publicKey:r})}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(i);return t?.[1]}function d(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=u(n)),r}function f(e){const t="string"==typeof e?l(e):c(e);if(t&&function(e){if(!r.DEBUG_BUILD)return!0;const{port:t,projectId:n,protocol:i}=e;return!(["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(o.debug.error(`Invalid Sentry Dsn: ${t} missing`),!0))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(i)?t&&isNaN(parseInt(t,10))&&(o.debug.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),1):(o.debug.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{freezeDscOnSpan:()=>p,getDynamicSamplingContextFromClient:()=>h,getDynamicSamplingContextFromScope:()=>m,getDynamicSamplingContextFromSpan:()=>g,spanToBaggageHeader:()=>y});var r=n(441),o=n(401),i=n(427),a=n(428),s=n(439),l=n(430),c=n(412),u=n(434),d=n(437);const f="_frozenDsc";function p(e,t){const n=e;(0,c.addNonEnumerableProperty)(n,f,t)}function h(e,t){const n=t.getOptions(),{publicKey:o}=t.getDsn()||{},i={environment:n.environment||r.DEFAULT_ENVIRONMENT,release:n.release,public_key:o,trace_id:e,org_id:(0,s.extractOrgIdFromClient)(t)};return t.emit("createDsc",i),i}function m(e,t){const n=t.getPropagationContext();return n.dsc||h(n.traceId,e)}function g(e){const t=(0,o.getClient)();if(!t)return{};const n=(0,u.getRootSpan)(e),r=(0,u.spanToJSON)(n),s=r.data,c=n.spanContext().traceState,p=c?.get("sentry.sample_rate")??s[i.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??s[i.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];function m(e){return"number"!=typeof p&&"string"!=typeof p||(e.sample_rate=`${p}`),e}const g=n[f];
1if(g)return m(g);const y=c?.get("sentry.dsc"),v=y&&(0,a.baggageHeaderToDynamicSamplingContext)(y);if(v)return m(v);const b=h(e.spanContext().traceId,t),_=s[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]??s["sentry.span.source"],w=r.description;return"url"!==_&&w&&(b.transaction=w),(0,l.hasSpansEnabled)()&&(b.sampled=String((0,u.spanIsSampled)(n)),b.sample_rand=c?.get("sentry.sample_rand")??(0,d.getCapturedScopesOnSpan)(n).scope?.getPropagationContext().sampleRand.toString()),m(b),t.emit("createDsc",b,n),b}function y(e){const t=g(e);return(0,a.dynamicSamplingContextToSentryBaggageHeader)(t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_ENVIRONMENT:()=>r,DEV_ENVIRONMENT:()=>o});const r="production",o="development"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{logSpanEnd:()=>s,logSpanStart:()=>a});var r=n(409),o=n(413),i=n(434);function a(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:a}=(0,i.spanToJSON)(e),{spanId:s}=e.spanContext(),l=(0,i.spanIsSampled)(e),c=(0,i.getRootSpan)(e),u=c===e,d=`[Tracing] Starting ${l?"sampled":"unsampled"} ${u?"root ":""}span`,f=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(a&&f.push(`parent ID: ${a}`),!u){const{op:e,description:t}=(0,i.spanToJSON)(c);f.push(`root ID: ${c.spanContext().spanId}`),e&&f.push(`root op: ${e}`),t&&f.push(`root description: ${t}`)}o.debug.log(`${d}\n  ${f.join("\n  ")}`)}function s(e){if(!r.DEBUG_BUILD)return;const{description:t="< unknown name >",op:n="< unknown op >"}=(0,i.spanToJSON)(e),{spanId:a}=e.spanContext(),s=`[Tracing] Finishing "${n}" ${(0,i.getRootSpan)(e)===e?"root ":""}span "${t}" with ID ${a}`;o.debug.log(s)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{sampleSpan:()=>s});var r=n(409),o=n(413),i=n(430),a=n(433);function s(e,t,n){if(!(0,i.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 r.DEBUG_BUILD&&o.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 r.DEBUG_BUILD&&o.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=n<c;return u||r.DEBUG_BUILD&&o.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(l)})`),[u,c,s]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SentryNonRecordingSpan:()=>i});var r=n(422),o=n(434);class i{constructor(e={}){this._traceId=e.traceId||(0,r.generateTraceId)(),this._spanId=e.spanId||(0,r.generateSpanId)(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:o.TRACE_FLAG_NONE}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SentrySpan:()=>g});var r=n(401),o=n(409),i=n(446),a=n(427),s=n(413),l=n(422),c=n(434),u=n(420),d=n(440),f=n(442),p=n(449),h=n(432),m=n(437);class g{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()}
1addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?c.TRACE_FLAG_SAMPLED:c.TRACE_FLAG_NONE}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,c.spanTimeInputToSeconds)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom"),this}end(e){this._endTime||(this._endTime=(0,c.spanTimeInputToSeconds)(e),(0,f.logSpanEnd)(this),this._onSpanEnded())}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,p.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.getSimpleStatusMessage)(this._status),attributes:this._attributes,links:(0,c.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){o.DEBUG_BUILD&&s.debug.log("[Tracing] Adding an event to span:",e);const r=y(t)?t:n||(0,u.timestampInSeconds)(),i=y(t)?{}:t||{},a={name:e,time:(0,c.spanTimeInputToSeconds)(r),attributes:i};return this._events.push(a),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const e=(0,r.getClient)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));if(!(this._isStandaloneSpan||this===(0,c.getRootSpan)(this)))return;if(this._isStandaloneSpan)return void(this._sampled?function(e){const t=(0,r.getClient)();if(!t)return;const n=e[1];if(!n||0===n.length)return void t.recordDroppedEvent("before_send","span");t.sendEnvelope(e)}((0,i.createSpanEnvelope)([this],e)):(o.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(e&&(0,h.hasSpanStreamingEnabled)(e))return void e.emit("afterSegmentSpanEnd",this);const t=this._convertSpanToTransaction();if(t){((0,m.getCapturedScopesOnSpan)(this).scope||(0,r.getCurrentScope)()).captureEvent(t)}}_convertSpanToTransaction(){if(!v((0,c.spanToJSON)(this)))return;this._name||(o.DEBUG_BUILD&&s.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:e,isolationScope:t}=(0,m.getCapturedScopesOnSpan)(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;const r=(0,c.getSpanDescendants)(this).filter(e=>e!==this&&!function(e){return e instanceof g&&e.isStandaloneSpan()}(e)).map(e=>(0,c.spanToJSON)(e)).filter(v),i=this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let l=!1;r.forEach(e=>{delete e.data[a.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(l=!0)});const u={contexts:{trace:(0,c.spanToTransactionTraceContext)(this)},spans:r.length>1e3?r.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):r,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,d.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:l},request:n,...i&&{transaction_info:{source:i}}},f=(0,p.timedEventsToMeasurements)(this._events);return f&&Object.keys(f).length&&(o.DEBUG_BUILD&&s.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(f,void 0,2)),u.measurements=f),u}}function y(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function v(e){return!!(e.start_timestamp&&e.timestamp&&e.span_id&&e.trace_id)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_enhanceEventWithSdkInfo:()=>u,createEventEnvelope:()=>f,createSessionEnvelope:()=>d,createSpanEnvelope:()=>p});var r=n(440),o=n(447),i=n(439),a=n(448),s=n(415),l=n(431),c=n(434);function u(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.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 d(e,t,n,r){const o=(0,a.getSdkMetadataForEnvelopeHeader)(n),l={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:(0,i.dsnToString)(t)}},c="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return(0,a.createEnvelope)(l,[c])}function f(e,t,n,r){const o=(0,a.getSdkMetadataForEnvelopeHeader)(n),i=e.type&&"replay_event"!==e.type?e.type:"event";u(e,n?.sdk);const s=(0,a.createEventEnvelopeHeaders)(e,o,r,t);delete e.sdkProcessingMetadata;const l=[{type:i},e];return(0,a.createEnvelope)(s,[l])}function p(e,t){const n=(0,r.getDynamicSamplingContextFromSpan)(e[0]),u=t?.getDsn(),d=t?.getOptions().tunnel,f={sent_at:new Date((0,s.safeDateNow)()).toISOString(),...(p=n,!!p.trace_id&&!!p.public_key&&{trace:n}),...!!d&&u&&{dsn:(0,i.dsnToString)(u)}};var p;const{beforeSendSpan:h,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;
1y&&t?.recordDroppedEvent("before_send","span",y);const v=h?e=>{const t=(0,c.spanToJSON)(e),n=(0,o.isStreamedBeforeSendSpanCallback)(h)?t:h(t);return n||((0,c.showSpanDropWarning)(),t)}:c.spanToJSON,b=[];for(const e of g){const t=v(e);t&&b.push((0,a.createSpanEnvelopeItem)(t))}return(0,a.createEnvelope)(f,b)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isStreamedBeforeSendSpanCallback:()=>i,withStreamedSpan:()=>o});var r=n(412);function o(e){return(0,r.addNonEnumerableProperty)(e,"_streamed",!0),e}function i(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addItemToEnvelope:()=>c,createAttachmentEnvelopeItem:()=>g,createEnvelope:()=>l,createEventEnvelopeHeaders:()=>_,createSpanEnvelopeItem:()=>m,envelopeContainsItemType:()=>d,envelopeItemTypeToDataCategory:()=>v,forEachEnvelopeItem:()=>u,getSdkMetadataForEnvelopeHeader:()=>b,parseEnvelope:()=>h,serializeEnvelope:()=>p});var r=n(403),o=n(439),i=n(417),a=n(415),s=n(405);function l(e,t=[]){return[e,t]}function c(e,t){const[n,r]=e;return[n,[...r,t]]}function u(e,t){const n=e[1];for(const e of n){if(t(e,e[0].type))return!0}return!1}function d(e,t){return u(e,(e,n)=>t.includes(n))}function f(e){const t=(0,r.getSentryCarrier)(s.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):(new TextEncoder).encode(e)}function p(e){const[t,n]=e;let r=JSON.stringify(t);function o(e){"string"==typeof r?r="string"==typeof e?r+e:[f(r),e]:r.push("string"==typeof e?f(e):e)}for(const e of n){const[t,n]=e;if(o(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)o(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,i.normalize)(n))}o(e)}}return"string"==typeof r?r:function(e){const t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(r)}function h(e){let t="string"==typeof e?f(e):e;function n(e){const n=t.subarray(0,e);return t=t.subarray(e+1),n}function o(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(function(e){const t=(0,r.getSentryCarrier)(s.GLOBAL_OBJ);return t.decodePolyfill?t.decodePolyfill(e):(new TextDecoder).decode(e)}(n(e)))}const i=o(),a=[];for(;t.length;){const e=o(),t="number"==typeof e.length?e.length:void 0;a.push([e,t?n(t):o()])}return[i,a]}function m(e){return[{type:"span"},e]}function g(e){const t="string"==typeof e.data?f(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 v(e){return function(e){return e in y}(e)?y[e]:e}function b(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function _(e,t,n,r){const i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,a.safeDateNow)()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,o.dsnToString)(r)},...i&&{trace:i}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{setMeasurement:()=>s,timedEventsToMeasurements:()=>l});var r=n(409),o=n(427),i=n(413),a=n(434);function s(e,t,n,s=(0,a.getActiveSpan)()){const l=s&&(0,a.getRootSpan)(s);l&&(r.DEBUG_BUILD&&i.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),l.addEvent(e,{[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))}function l(e){if(!e||0===e.length)return;const t={};return e.forEach(e=>{const n=e.attributes||{},r=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],i=n[o.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof i&&(t[e.name]={value:i,unit:r})}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyClientOptions:()=>h,applyDebugIds:()=>m,applyDebugMeta:()=>g,parseEventHintOrCaptureContext:()=>y,prepareEvent:()=>p});var r=n(441),o=n(451),i=n(408),a=n(453),s=n(411),l=n(417),c=n(454),u=n(416),d=n(452),f=n(420);
1function p(e,t,n,r,a,u){const{normalizeDepth:p=3,normalizeMaxBreadth:y=1e3}=e,v={...t,event_id:t.event_id||n.event_id||(0,s.uuid4)(),timestamp:t.timestamp||(0,f.dateTimestampInSeconds)()},b=n.integrations||e.integrations.map(e=>e.name);h(v,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(v,b),a&&a.emit("applyFrameMetadata",t),void 0===t.type&&m(v,e.stackParser);const _=function(e,t){if(!t)return e;const n=e?e.clone():new i.Scope;return n.update(t),n}(r,n.captureContext);n.mechanism&&(0,s.addExceptionMechanism)(v,n.mechanism);const w=a?a.getEventProcessors():[],S=(0,c.getCombinedScopeData)(u,_),E=[...n.attachments||[],...S.attachments];E.length&&(n.attachments=E),(0,c.applyScopeDataToEvent)(v,S);const k=[...w,...S.eventProcessors];return(n.data&&!0===n.data.__sentry__?(0,d.resolvedSyncPromise)(v):(0,o.notifyEventProcessors)(k,v,n)).then(e=>(e&&g(e),"number"==typeof p&&p>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,l.normalize)(e.data,t,n)}}))},...e.user&&{user:(0,l.normalize)(e.user,t,n)},...e.contexts&&{contexts:(0,l.normalize)(e.contexts,t,n)},...e.extra&&{extra:(0,l.normalize)(e.extra,t,n)}};e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,l.normalize)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,l.normalize)(e.data,t,n)}})));e.contexts?.flags&&r.contexts&&(r.contexts.flags=(0,l.normalize)(e.contexts.flags,3,n));return r}(e,p,y):e))}function h(e,t){const{environment:n,release:o,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||r.DEFAULT_ENVIRONMENT,!e.release&&o&&(e.release=o),!e.dist&&i&&(e.dist=i);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 n=(0,a.getFilenameToDebugIdMap)(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[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 n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:"sourcemap",code_file:e,debug_id:t})})}function y(e){if(e)return function(e){return e instanceof i.Scope||"function"==typeof e}(e)||function(e){return Object.keys(e).some(e=>v.includes(e))}(e)?{captureContext:e}:e}const v=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{notifyEventProcessors:()=>s});var r=n(409),o=n(413),i=n(414),a=n(452);function s(e,t,n,r=0){try{const o=l(t,n,e,r);return(0,i.isThenable)(o)?o:(0,a.resolvedSyncPromise)(o)}catch(e){return(0,a.rejectedSyncPromise)(e)}}function l(e,t,n,a){const s=n[a];if(!e||!s)return e;const c=s({...e},t);return r.DEBUG_BUILD&&null===c&&o.debug.log(`Event processor "${s.id||"?"}" dropped event`),(0,i.isThenable)(c)?c.then(e=>l(e,t,n,a+1)):l(c,t,n,a+1)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SyncPromise:()=>a,rejectedSyncPromise:()=>i,resolvedSyncPromise:()=>o});var r=n(414);function o(e){return new a(t=>{t(e)})}function i(e){return new a((t,n)=>{n(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,n)=>{let r,o;return this.then(t=>{o=!1,r=t,e&&e()},t=>{o=!0,r=t,e&&e()}).then(()=>{o?n(r):t(r)})})}_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,r.isThenable)(t)?t.then(n,o):(this._state=e,this._value=t,this._executeHandlers()))},n=e=>{t(1,e)},o=e=>{t(2,e)};try{e(n,o)}catch(e){o(e)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDebugImagesForResources:()=>u,getFilenameToDebugIdMap:()=>c});var r=n(419),o=n(405);let i,a,s,l;function c(e){const t=o.GLOBAL_OBJ._sentryDebugIds,n=o.GLOBAL_OBJ._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],c=n?Object.keys(n):[];if(l&&r.length===a&&c.length===s)return l;a=r.length,s=c.length,l={},i||(i={});const u=(t,n)=>{for(const r of t){const t=n[r],o=i?.[r];if(o&&l&&t)l[o[0]]=t,i&&(i[r]=[o[0],t]);else if(t){const n=e(r);for(let e=n.length-1;e>=0;e--){const o=n[e],a=o?.filename;if(a&&l&&i){l[a]=t,i[r]=[a,t];break}}}}};return t&&u(r,t),n&&u(c,n),l}function u(e,t){const n=c(e);if(!n)return[];const o=[];for(const e of t){const t=(0,r.normalizeStackTracePath)(e);t&&n[t]&&o.push({type:"sourcemap",code_file:e,debug_id:n[t]})}return o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyScopeDataToEvent:()=>s,getCombinedScopeData:()=>u,mergeAndOverwriteScopeData:()=>c,mergeScopeData:()=>l});var r=n(401),o=n(440),i=n(421),a=n(434);function s(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra});Object.keys(r).length&&(e.tags={...r,...e.tags});Object.keys(o).length&&(e.user={...o,...e.user});Object.keys(i).length&&(e.contexts={...i,...e.contexts});a&&(e.level=a);s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:(0,a.spanToTraceContext)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,o.getDynamicSamplingContextFromSpan)(t),...e.sdkProcessingMetadata};const n=(0,a.getRootSpan)(t),r=(0,a.spanToJSON)(n).description;r&&!e.transaction&&"transaction"===e.type&&(e.transaction=r)}(e,r),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,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}
1(e,s)}function l(e,t){const{extra:n,tags:r,attributes:o,user:a,contexts:s,level:l,sdkProcessingMetadata:u,breadcrumbs:d,fingerprint:f,eventProcessors:p,attachments:h,propagationContext:m,transactionName:g,span:y}=t;c(e,"extra",n),c(e,"tags",r),c(e,"attributes",o),c(e,"user",a),c(e,"contexts",s),e.sdkProcessingMetadata=(0,i.merge)(e.sdkProcessingMetadata,u,2),l&&(e.level=l),g&&(e.transactionName=g),y&&(e.span=y),d.length&&(e.breadcrumbs=[...e.breadcrumbs,...d]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),p.length&&(e.eventProcessors=[...e.eventProcessors,...p]),h.length&&(e.attachments=[...e.attachments,...h]),e.propagationContext={...e.propagationContext,...m}}function c(e,t,n){e[t]=(0,i.merge)(e[t],n,1)}function u(e,t){const n=(0,r.getGlobalScope)().getScopeData();return e&&l(n,e.getScopeData()),t&&l(n,t.getScopeData()),n}},,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{useReactiveVar:()=>i});var r=n(464),o=n(465);function i(e){return(0,o.useSyncExternalStore)(r.useCallback(function(t){return e.onNextChange(function n(){t(),e.onNextChange(n)})},[e]),e,e)}},(e,t,n)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,n(396))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{useSyncExternalStore:()=>a});n(466);var o=n(464),i=n(474),a=(r||(r=n.t(o,2))).useSyncExternalStore||function(e,t,n){var r=t();var a=o.useState({inst:{value:r,getSnapshot:t}}),l=a[0].inst,c=a[1];return i.canUseLayoutEffect?o.useLayoutEffect(function(){Object.assign(l,{value:r,getSnapshot:t}),s(l)&&c({inst:l})},[e,r,t]):Object.assign(l,{value:r,getSnapshot:t}),o.useEffect(function(){return s(l)&&c({inst:l}),e(function(){s(l)&&c({inst:l})})},[e]),r};function s(e){var t=e.value,n=e.getSnapshot;try{return t!==n()}catch(e){return!0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEV:()=>a,InvariantError:()=>r.InvariantError,__DEV__:()=>a,global:()=>i.default,invariant:()=>r.invariant,maybe:()=>o.maybe,newInvariantError:()=>r.newInvariantError});var r=n(467),o=n(471),i=n(470),a=!1},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloErrorMessageHandler:()=>u,InvariantError:()=>r.InvariantError,invariant:()=>l,newInvariantError:()=>c});var r=n(468),o=n(469),i=n(470),a=n(472);function s(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var o=t;(t=f(o))||(t=p(o,n),n=[])}e.apply(void 0,[t].concat(n))}}var l=Object.assign(function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e||(0,r.invariant)(e,f(t,n)||p(t,n))},{debug:s(r.invariant.debug),log:s(r.invariant.log),warn:s(r.invariant.warn),error:s(r.invariant.error)});function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new r.InvariantError(f(e,t)||p(e,t))}var u=Symbol.for("ApolloErrorMessageHandler_"+o.version);function d(e){if("string"==typeof e)return e;try{return(0,a.stringifyForDisplay)(e,2).slice(0,1e3)}catch(e){return"<non-serializable>"}}function f(e,t){if(void 0===t&&(t=[]),e)return i.default[u]&&i.default[u](e,t.map(d))}function p(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:o.version,message:e,args:t.map(d)})))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{InvariantError:()=>s,default:()=>p,invariant:()=>l,setVerbosity:()=>f});var r=n(314),o="Invariant Violation",i=Object.setPrototypeOf,a=void 0===i?function(e,t){return e.__proto__=t,e}:i,s=function(e){function t(n){void 0===n&&(n=o);var r=e.call(this,"number"==typeof n?o+": "+n+" (see https://github.com/apollographql/invariant-packages)":n)||this;return r.framesToPop=1,r.name=o,a(r,t.prototype),r}return(0,r.__extends)(t,e),t}(Error);function l(e,t){if(!e)throw new s(t)}var c=["debug","log","warn","error","silent"],u=c.indexOf("log");function d(e){return function(){if(c.indexOf(e)>=u)return(console[e]||console.log).apply(console,arguments)}}function f(e){var t=c[u];return u=Math.max(0,c.indexOf(e)),t}!function(e){e.debug=d("debug"),e.log=d("log"),e.warn=d("warn"),e.error=d("error")}(l||(l={}));const p=l},(e,t,n)=>{"use strict";n.r(t),n.d(t,{version:()=>r});var r="3.14.1"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(471);const o=(0,r.maybe)(function(){return globalThis})||(0,r.maybe)(function(){return window}
1)||(0,r.maybe)(function(){return self})||(0,r.maybe)(function(){return globalThis})||(0,r.maybe)(function(){return r.maybe.constructor("return this")()})},(e,t,n)=>{"use strict";function r(e){try{return e()}catch(e){}}n.r(t),n.d(t,{maybe:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{stringifyForDisplay:()=>o});var r=n(473);function o(e,t){void 0===t&&(t=0);var n=(0,r.makeUniqueId)("stringifyForDisplay");return JSON.stringify(e,function(e,t){return void 0===t?n:t},t).split(JSON.stringify(n)).join("<undefined>")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{makeUniqueId:()=>o});var r=new Map;function o(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{canUseAsyncIteratorSymbol:()=>l,canUseDOM:()=>c,canUseLayoutEffect:()=>d,canUseSymbol:()=>s,canUseWeakMap:()=>i,canUseWeakSet:()=>a});var r=n(466),o="ReactNative"==(0,r.maybe)(function(){return navigator.product}),i="function"==typeof WeakMap&&!(o&&!globalThis.HermesInternal),a="function"==typeof WeakSet,s="function"==typeof Symbol&&"function"==typeof Symbol.for,l=s&&Symbol.asyncIterator,c="function"==typeof(0,r.maybe)(function(){return window.document.createElement}),u=(0,r.maybe)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,d=(c||o)&&!u},(e,t,n)=>{"use strict";n.r(t),n.d(t,{cacheSlot:()=>o,forgetCache:()=>s,makeVar:()=>c,recallCache:()=>l});var r=n(476),o=new r.Slot,i=new WeakMap;function a(e){var t=i.get(e);return t||i.set(e,t={vars:new Set,dep:(0,r.dep)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function l(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,n=new Set,r=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(r),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)});var l=Array.from(n);n.clear(),l.forEach(function(t){return t(e)})}}else{var c=o.getValue();c&&(i(c),a(c).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),a(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{KeyTrie:()=>r.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:()=>d});var r=n(477),o=n(478),i=n(479),a=n(480),s=n(484);let l;function c(...e){return(l||(l=new r.Trie("function"==typeof WeakMap))).lookupArray(e)}const u=new Set;function d(e,{max:t=Math.pow(2,16),keyArgs:n,makeCacheKey:r=c,normalizeResult:s,subscribe:l,cache:d=o.StrongCache}=Object.create(null)){const f="function"==typeof d?new d(t,e=>e.dispose()):d,p=function(){const t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=f.get(t);o||(f.set(t,o=new i.Entry(e)),o.normalizeResult=s,o.subscribe=l,o.forget=()=>f.delete(t));const c=o.recompute(Array.prototype.slice.call(arguments));return f.set(t,o),u.add(f),a.parentEntrySlot.hasValue()||(u.forEach(e=>e.clean()),u.clear()),c};function h(e){const t=e&&f.get(e);t&&t.setDirty()}function m(e){const t=e&&f.get(e);if(t)return t.peek()}function g(e){return!!e&&f.delete(e)}return Object.defineProperty(p,"size",{get:()=>f.size,configurable:!1,enumerable:!1}),Object.freeze(p.options={max:t,keyArgs:n,makeCacheKey:r,normalizeResult:s,subscribe:l,cache:f}),p.dirtyKey=h,p.dirty=function(){h(r.apply(null,arguments))},p.peekKey=m,p.peek=function(){return m(r.apply(null,arguments))},p.forgetKey=g,p.forget=function(){return g(r.apply(null,arguments))},p.makeCacheKey=r,p.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(p)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Trie:()=>s});const r=()=>Object.create(null),{forEach:o,slice:i}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class s{constructor(e=!0,t=r){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return o.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(i.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let n=0,r=e.length;t&&n<r;++n){const r=t.mapFor(e[n],!1);t=r&&r.get(e[n])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const n=e[0],r=this.mapFor(n,!1),o=r&&r.get(n);o&&(t=o.removeArray(i.call(e,1)),o.data||o.weak||o.strong&&o.strong.size||r.delete(n))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let n=t.get(e);return n||t.set(e,n=new s(this.weakness,this.makeData)),n}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,n)=>{"use strict";function r(){}n.r(t),n.d(t,{StrongCache:()=>o});class o{constructor(e=1/0,t=r){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:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);
1return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.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,n)=>{"use strict";n.r(t),n.d(t,{Entry:()=>u});var r=n(480),o=n(483);const i=[];function a(e,t){if(!e)throw new Error(t||"assertion failure")}function s(e,t){const n=e.length;return n>0&&n===t.length&&e[n-1]===t[n-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&&!p(this))return d(this),this.value[0]}recompute(e){return a(!this.recomputing,"already recomputing"),d(this),p(this)?function(e,t){_(e),r.parentEntrySlot.withValue(e,f,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{(0,o.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,p(e))return;m(e)}(e);return l(e.value)}(this,e):l(this.value)}setDirty(){this.dirty||(this.dirty=!0,h(this),(0,o.maybeUnsubscribe)(this))}dispose(){this.setDirty(),_(this),g(this,(e,t)=>{e.setDirty(),w(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=i.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&((0,o.arrayFromSet)(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),i.push(this.deps),this.deps=null)}}function d(e){const t=r.parentEntrySlot.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),p(e)?y(t,e):v(t,e),t}function f(e,t){e.recomputing=!0;const{normalizeResult:n}=e;let r;n&&1===e.value.length&&(r=c(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),n&&r&&!s(r,e.value))try{e.value[0]=n(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function p(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function h(e){g(e,y)}function m(e){g(e,v)}function g(e,t){const n=e.parents.size;if(n){const r=(0,o.arrayFromSet)(e.parents);for(let o=0;o<n;++o)t(r[o],e)}}function y(e,t){a(e.childValues.has(t)),a(p(t));const n=!p(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=i.pop()||new Set;e.dirtyChildren.add(t),n&&h(e)}function v(e,t){a(e.childValues.has(t)),a(!p(t));const n=e.childValues.get(t);0===n.length?e.childValues.set(t,c(t.value)):s(n,t.value)||e.setDirty(),b(e,t),p(e)||m(e)}function b(e,t){const n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(i.length<100&&i.push(n),e.dirtyChildren=null))}function _(e){e.childValues.size>0&&e.childValues.forEach((t,n)=>{w(e,n)}),e.forgetDeps(),a(null===e.dirtyChildren)}function w(e,t){t.parents.delete(e),e.childValues.delete(t),b(e,t)}u.count=0},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Slot:()=>r.Slot,asyncFromGen:()=>r.asyncFromGen,bindContext:()=>r.bind,noContext:()=>r.noContext,nonReactive:()=>i,parentEntrySlot:()=>o,setTimeout:()=>r.setTimeout});var r=n(481);const o=new r.Slot;function i(e){return o.withValue(void 0,e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Slot:()=>r.Slot,asyncFromGen:()=>s,bind:()=>o,noContext:()=>i,setTimeout:()=>a,wrapYieldingFiberMethods:()=>c});var r=n(482);const{bind:o,noContext:i}=r.Slot;function a(e,t){return setTimeout(o(e),t)}function s(e){return function(){const t=e.apply(this,arguments),n=o(t.next),r=o(t.throw);return new Promise((e,o)=>{function i(n,r){try{var i=n.call(t,r)}catch(e){return o(e)}const l=i.done?e:a;var c;(c=i.value)&&"function"==typeof c.then?i.value.then(l,i.done?o:s):l(i.value)}const a=e=>i(n,e),s=e=>i(r,e);a()})}}const l=[];function c(e){if(l.indexOf(e)<0){const t=(e,t)=>{const n=e[t];e[t]=function(){return i(n,arguments,this)}};t(e,"yield"),t(e.prototype,"run"),t(e.prototype,"throwInto"),l.push(e)}return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Slot:()=>c});let r=null;const o={};let i=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,
vendor: 8,984 bytes, line 1
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",i++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=r;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===o)break;return e!==r&&(r.slots[this.id]=t),!0}return r&&(r.slots[this.id]=o),!1}getValue(){if(this.hasValue())return r.slots[this.id]}withValue(e,t,n,o){const i={__proto__:null,[this.id]:e},a=r;r={parent:a,slots:i};try{return t.apply(o,n)}finally{r=a}}static bind(e){const t=r;return function(){const n=r;try{return r=t,e.apply(this,arguments)}finally{r=n}}}static noContext(e,t,n){if(!r)return e.apply(n,t);{const o=r;try{return r=null,e.apply(n,t)}finally{r=o}}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{arrayFromSet:()=>o,hasOwnProperty:()=>r,maybeUnsubscribe:()=>i});const{hasOwnProperty:r}=Object.prototype,o=Array.from||function(e){const t=[];return e.forEach(e=>t.push(e)),t};function i(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{dep:()=>a});var r=n(480),o=n(483);const i={setDirty:!0,dispose:!0,forget:!0};function a(e){const t=new Map,n=e&&e.subscribe;function a(e){const i=r.parentEntrySlot.getValue();if(i){let r=t.get(e);r||t.set(e,r=new Set),i.dependOn(r),"function"==typeof n&&((0,o.maybeUnsubscribe)(r),r.unsubscribe=n(e))}}return a.dirty=function(e,n){const r=t.get(e);if(r){const a=n&&o.hasOwnProperty.call(i,n)?n:"setDirty";(0,o.arrayFromSet)(r).forEach(e=>e[a]()),t.delete(e),(0,o.maybeUnsubscribe)(r)}},a}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.r(t),n.d(t,{Observable:()=>k});var s=function(){return"function"==typeof Symbol},l=function(e){return s()&&Boolean(Symbol[e])},c=function(e){return l(e)?Symbol[e]:"@@"+e};s()&&!l("observable")&&(Symbol.observable=Symbol("observable"));var u=c("iterator"),d=c("observable"),f=c("species");function p(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:k}function m(e){return e instanceof k}function g(e){g.log?g.log(e):setTimeout(function(){throw e})}function y(e){Promise.resolve().then(function(){try{e()}catch(e){g(e)}})}function v(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var n=p(t,"unsubscribe");n&&n.call(t)}}catch(e){g(e)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function _(e,t,n){e._state="running";var r=e._observer;try{var o=p(r,t);switch(t){case"next":o&&o.call(r,n);break;case"error":if(b(e),!o)throw n;o.call(r,n);break;case"complete":b(e),o&&o.call(r)}}catch(e){g(e)}"closed"===e._state?v(e):"running"===e._state&&(e._state="ready")}function w(e,t,n){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:n}],void y(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(_(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)})):void _(e,t,n);e._queue.push({type:t,value:n})}}var S=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new E(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(b(this),v(this))},a(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),E=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){w(this._subscription,"next",e)},t.error=function(e){w(this._subscription,"error",e)},t.complete=function(){w(this._subscription,"complete")},a(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new S(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"==typeof e)var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),o.unsubscribe()}},error:r,complete:n});else r(new TypeError(e+" is not a function"));function i(){o.unsubscribe(),n()}})},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(h(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=h(this),r=arguments.length>1,o=!1,i=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var a=!o;if(o=!0,!a||r)try{i=e(i,t)}catch(e){return n.error(e)}else i=t},error:function(e){n.error(e)},complete:function(){if(!o&&!r)return n.error(new TypeError("Cannot reduce an empty sequence"));n.next(i),n.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=h(this);return new o(function(t){var r,i=0;return function e(a){r=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){i===n.length?(r=void 0,t.complete()):e(o.from(n[i++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var n=h(this);return new n(function(r){var o=[],i=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var i=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(i);e>=0&&o.splice(e,1),a()}});o.push(i)},error:function(e){r.error(e)},complete:function(){a()}});function a(){i.closed&&0===o.length&&r.complete()}return function(){o.forEach(function(e){return e.unsubscribe()}),i.unsubscribe()}})},t[d]=function(){return this},e.from=function(t){var n="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var o=p(t,d);if(o){var i=o.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return m(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(l("iterator")&&(o=p(t,u)))return new n(function(e){y(function(){if(!e.closed){for(var n,i=r(o.call(t));!(n=i()).done;){var a=n.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new n(function(e){y(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return new("function"==typeof this?this:e)(function(e){y(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})},a(e,null,[{key:f,get:function(){return this}}]),e}();s()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:d,hostReportError:g},configurable:!0})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloClient:()=>f,mergeOptions:()=>d.mergeOptions});var r=n(314),o=n(466),i=n(545),a=n(546),s=n(469),l=n(563),c=n(589),u=n(610),d=n(612),f=function(){function e(e){var t,n,i,d=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cac
1he)throw(0,o.newInvariantError)(16);var f=e.uri,p=e.credentials,h=e.headers,m=e.cache,g=e.documentTransform,y=e.ssrMode,v=void 0!==y&&y,b=e.ssrForceFetchDelay,_=void 0===b?0:b,w=e.connectToDevTools,S=e.queryDeduplication,E=void 0===S||S,k=e.defaultOptions,T=e.defaultContext,x=e.assumeImmutableResults,O=void 0===x?m.assumeImmutableResults:x,C=e.resolvers,P=e.typeDefs,A=e.fragmentMatcher,I=e.clientAwareness,R=e.name,j=e.version,M=e.devtools,D=e.dataMasking;var N=e.link;N||(N=f?new l.HttpLink({uri:f,credentials:p,headers:h}):a.ApolloLink.empty()),this.link=N,this.cache=m,this.disableNetworkFetches=v||_>0,this.queryDeduplication=E,this.defaultOptions=k||Object.create(null),this.typeDefs=P,this.devtoolsConfig=(0,r.__assign)((0,r.__assign)({},M),{enabled:null!==(t=null==M?void 0:M.enabled)&&void 0!==t?t:w}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),_&&setTimeout(function(){return d.disableNetworkFetches=!1},_),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.bind(this),this.version=s.version,this.localState=new u.LocalState({cache:m,client:this,resolvers:C,fragmentMatcher:A}),this.queryManager=new c.QueryManager({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:T,documentTransform:g,queryDeduplication:E,ssrMode:v,dataMasking:!!D,clientAwareness:{name:null!==(n=null==I?void 0:I.name)&&void 0!==n?n:R,version:null!==(i=null==I?void 0:I.version)&&void 0!==i?i:j},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){d.devToolsHookCb&&d.devToolsHookCb({action:{},state:{queries:d.queryManager.getQueryStore(),mutations:d.queryManager.mutationStore||{}},dataWithOptimisticResults:d.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,d.mergeOptions)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,d.mergeOptions)(this.defaultOptions.query,e)),(0,o.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,d.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(o){return(0,r.__assign)((0,r.__assign)({},o),{data:t.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,r.__assign)((0,r.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,i.execute)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var o=Promise.all(r);return o.queries=n,o.results=r,o.catch(function(e){}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{execute:()=>r});var r=n(546).ApolloLink.execute},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloLink:()=>d});var r=n(466),o=n(543),i=n(547),a=n(548),s=n(549);function l(e,t){return t?t(e):o.Observable.of()}function c(e){return"function"==typeof e?new d(e):e}function u(e){return e.request.length<=1}var d=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var i,a=c(n),s=c(r||new e(l));return i=u(a)&&u(s)?new e(function(e){return t(e)?a.request(e)||o.Observable.of():s.request(e)||o.Observable.of()}):new e(function(e,n){return t(e)?a.request(e,n)||o.Observable.of():s.request(e,n)||o.Observable.of()}),Object.assign(i,{left:a,right:s})},e.execute=function(e,t){return e.request((0,a.createOperation)(t.context,(0,s.transformOperation)((0,i.validateOperation)(t))))||o.Observable.of()},e.concat=function(t,n){var r=c(t);if(u(r))return r;var i,a=c(n);return i=u(a)?new e(function(e){return r.request(e,function(e){return a.request(e)||o.Observable.of()})||o.Observable.of()}):new e(function(e,t){return r.request(e,function(e){return a.request(e,t)||o.Observable.of()})||o.Observable.of()}),Object.assign(i,{left:r,right:a})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(l)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r.newInvariantError)(48)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{validateOperation:()=>o});var r=n(466);function o(e){for(var t=["query","operationName","variables","extensions","context"],n=0,o=Object.keys(e);n<o.length;n++){var i=o[n];if(t.indexOf(i)<0)throw(0,r.newInvariantError)(58,i)}return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createOperation:()=>o});var r=n(314);function o(e,t){var n=(0,r.__assign)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){n="function"==typeof e?(0,r.__assign)((0,r.__assign)({},n),e(n)):(0,r.__assign)((0,r.__assign)({},n),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,r.__assign)({},n)}}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{transformOperation:()=>o});var r=n(550);function o(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,r.getOperationName)(t.query)||void 0:""),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{checkDocument:()=>i,getDefaultValues:()=>f,getFragmentDefinition:()=>u,getFragmentDefinitions:()=>l,getMainDefinition:()=>d,getOperationDefinition:()=>a,getOperationName:()=>s,getQueryDefinition:()=>c});var r=n(466),o=n(551);function i(e){(0,r.invariant)(e&&"Document"===e.kind,115);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r.newInvariantError)(116,e.kind);return e});return(0,r.invariant)(t.length<=1,117,t.length),e}function a(e){return i(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function l(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,r.invariant)(t&&"query"===t.operation,118),t}function u(e){(0,r.invariant)("Document"===e.kind,119),(0,r.invariant)(e.definitions.length<=1,120);var t=e.definitions[0];return(0,r.invariant)("FragmentDefinition"===t.kind,121),t}function d(e){var t;i(e);for(var n=0,o=e.definitions;n<o.length;n++){var a=o[n];if("OperationDefinition"===a.kind){var s=a.operation;if("query"===s||"mutation"===s||"subscription"===s)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,r.newInvariantError)(122)}function f(e){var t=Object.create(null),n=e&&e.variableDefinitions;
1return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,o.valueToObjectRepresentation)(t,e.variable.name,e.defaultValue)}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{argumentsObjectFromField:()=>m,getStoreKeyName:()=>h,getTypenameFromResult:()=>y,isDocumentNode:()=>c,isField:()=>v,isInlineFragment:()=>b,isReference:()=>l,makeReference:()=>s,resultKeyNameFromField:()=>g,storeKeyNameFromField:()=>d,valueToObjectRepresentation:()=>u});var r=n(466),o=n(552),i=n(553),a=n(559);function s(e){return{__ref:String(e)}}function l(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e){return(0,o.isNonNullObject)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function u(e,t,n,o){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var i={};n.fields.map(function(e){return u(i,e.name,e.value,o)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(n)){var a=(o||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map(function(e){var n={};return u(n,t,e,o),n[t.value]});else if(function(e){return"EnumValue"===e.kind}(n))e[t.value]=n.value;else{if(!function(e){return"NullValue"===e.kind}(n))throw(0,r.newInvariantError)(123,t.value,n.kind);e[t.value]=null}}function d(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var o=r.name,i=r.value;return u(n[e.name.value],o,i,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,o=e.value;return u(r,n,o,t)})),h(e.name.value,r,n)}var f=["connection","include","skip","client","rest","export","nonreactive"],p=a.canonicalStringify,h=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var o={};return r.forEach(function(e){o[e]=t[e]}),"".concat(n.connection.key,"(").concat(p(o),")")}return n.connection.key}var i=e;if(t){var a=p(t);i+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?i+="@".concat(e,"(").concat(p(n[e]),")"):i+="@".concat(e))}),i},{setStringify:function(e){var t=p;return p=e,t}});function m(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){var r=e.name,o=e.value;return u(n,r,o,t)}),n}return null}function g(e){return e.alias?e.alias.value:e.name.value}function y(e,t,n){for(var r,o=0,a=t.selections;o<a.length;o++){if(v(c=a[o])){if("__typename"===c.name.value)return e[g(c)]}else r?r.push(c):r=[c]}if("string"==typeof e.__typename)return e.__typename;if(r)for(var s=0,l=r;s<l.length;s++){var c=l[s],u=y(e,(0,i.getFragmentFromSelection)(c,n).selectionSet,n);if("string"==typeof u)return u}}function v(e){return"Field"===e.kind}function b(e){return"InlineFragment"===e.kind}},(e,t,n)=>{"use strict";function r(e){return null!==e&&"object"==typeof e}function o(e){return null!==e&&"object"==typeof e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}n.r(t),n.d(t,{isNonNullObject:()=>r,isPlainObject:()=>o})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFragmentMap:()=>s,getFragmentFromSelection:()=>l,getFragmentQueryDocument:()=>a,isFullyUnmaskedOperation:()=>c});var r=n(314),o=n(466),i=n(554);function a(e,t){var n=t,i=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,o.newInvariantError)(112,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===n&&((0,o.invariant)(1===i.length,113,i.length),n=i[0].name.value),(0,r.__assign)((0,r.__assign)({},e),{definitions:(0,r.__spreadArray)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function l(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return(0,o.invariant)(r,114,n),r||null;default:return null}}function c(e){var t=!0;return(0,i.visit)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return i.BREAK}}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BREAK:()=>s,getEnterLeaveForKind:()=>u,getVisitFn:()=>d,visit:()=>l,visitInParallel:()=>c});var r=n(555),o=n(556),i=n(557),a=n(558);const s=Object.freeze({});function l(e,t,n=i.QueryDocumentKeys){const l=new Map;for(const e of Object.values(a.Kind))l.set(e,u(t,e));let c,d,f,p=Array.isArray(e),h=[e],m=-1,g=[],y=e;const v=[],b=[];do{m++;const e=m===h.length,a=e&&0!==g.length;if(e){if(d=0===b.length?void 0:v[v.length-1],y=f,f=b.pop(),a)if(p){y=y.slice();let e=0;for(const[t,n]of g){const r=t-e;null===n?(y.splice(r,1),e++):y[r]=n}}else{y={...y};for(const[e,t]of g)y[e]=t}m=c.index,h=c.keys,g=c.edits,p=c.inArray,c=c.prev}else if(f){if(d=p?m:h[m],y=f[d],null==y)continue;v.push(d)}let u;if(!Array.isArray(y)){var _,w;(0,i.isNode)(y)||(0,r.devAssert)(!1,`Invalid AST Node: ${(0,o.inspect)(y)}.`);const n=e?null===(_=l.get(y.kind))||void 0===_?void 0:_.leave:null===(w=l.get(y.kind))||void 0===w?void 0:w.enter;if(u=null==n?void 0:n.call(t,y,d,f,v,b),u===s)break;if(!1===u){if(!e){v.pop();continue}}else if(void 0!==u&&(g.push([d,u]),!e)){if(!(0,i.isNode)(u)){v.pop();continue}y=u}}var S;if(void 0===u&&a&&g.push([d,y]),e)v.pop();else c={inArray:p,index:m,keys:h,edits:g,prev:c},p=Array.isArray(y),h=p?y:null!==(S=n[y.kind])&&void 0!==S?S:[],m=-1,g=[],f&&b.push(f),f=y}while(void 0!==c);return 0!==g.length?g[g.length-1][1]:e}function c(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(a.Kind)){let o=!1;const i=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;
1++t){const{enter:n,leave:s}=u(e[t],r);o||(o=null!=n||null!=s),i[t]=n,a[t]=s}if(!o)continue;const l={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var o;const l=null===(o=i[a])||void 0===o?void 0:o.apply(e[a],n);if(!1===l)t[a]=r;else if(l===s)t[a]=s;else if(void 0!==l)return l}},leave(...n){const r=n[0];for(let i=0;i<e.length;i++)if(null===t[i]){var o;const r=null===(o=a[i])||void 0===o?void 0:o.apply(e[i],n);if(r===s)t[i]=s;else if(void 0!==r&&!1!==r)return r}else t[i]===r&&(t[i]=null)}};n[r]=l}return n}function u(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function d(e,t,n){const{enter:r,leave:o}=u(e,t);return n?o:r}},(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.r(t),n.d(t,{devAssert:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{inspect:()=>i});const r=10,o=2;function i(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 n=[...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,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>o)return"[Array]";const n=Math.min(r,e.length),i=e.length-n,s=[];for(let r=0;r<n;++r)s.push(a(e[r],t));1===i?s.push("... 1 more item"):i>1&&s.push(`... ${i} more items`);return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>o)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 r=n.map(([e,n])=>e+": "+a(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Location:()=>r,OperationTypeNode:()=>l,QueryDocumentKeys:()=>i,Token:()=>o,isNode:()=>s});class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class o{constructor(e,t,n,r,o,i){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=i,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 i={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"],FragmentSpread:["name","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(i));function s(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&a.has(t)}var l;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(l||(l={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{Kind:()=>r}),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="Str
1ingValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.DIRECTIVE_EXTENSION="DirectiveExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{canonicalStringify:()=>a});var r,o=n(560),i=n(562),a=Object.assign(function(e){return JSON.stringify(e,s)},{reset:function(){r=new o.AutoCleanedStrongCache(i.cacheSizes.canonicalStringify||1e3)}});function s(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var o=Object.keys(t);if(o.every(l))return t;var i=JSON.stringify(o),a=r.get(i);if(!a){o.sort();var s=JSON.stringify(o);a=r.get(s)||o,r.set(i,a),r.set(s,a)}var c=Object.create(n);return a.forEach(function(e){c[e]=t[e]}),c}}return t}function l(e,t,n){return 0===t||n[t-1]<=e}a.reset()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AutoCleanedStrongCache:()=>l,AutoCleanedWeakCache:()=>s});var r=n(478),o=n(561),i=new WeakSet;function a(e){e.size<=(e.max||-1)||i.has(e)||(i.add(e),setTimeout(function(){e.clean(),i.delete(e)},100))}var s=function(e,t){var n=new o.WeakCache(e,t);return n.set=function(e,t){var n=o.WeakCache.prototype.set.call(this,e,t);return a(this),n},n},l=function(e,t){var n=new r.StrongCache(e,t);return n.set=function(e,t){var n=r.StrongCache.prototype.set.call(this,e,t);return a(this),n},n}},(e,t,n)=>{"use strict";function r(){}n.r(t),n.d(t,{WeakCache:()=>l});const o=r,i="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},a="undefined"!=typeof WeakMap?WeakMap:Map,s="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:r,unregister:r}};class l{constructor(e=1/0,t=o){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 n=t.key;delete t.key,t.keyRef=new i(n),this.registry.register(n,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:n}=t;n&&(n.older=e),e&&(e.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t}set(e,t){let n=this.getNode(e);return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.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,n)=>{"use strict";n.r(t),n.d(t,{cacheSizes:()=>a});var r=n(314),o=n(466),i=Symbol.for("apollo.cacheSize"),a=(0,r.__assign)({},o.global[i])},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HttpLink:()=>a});var r=n(314),o=n(546),i=n(564),a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(0,i.createHttpLink)(t).request)||this;return n.options=t,n}return(0,r.__extends)(t,e),t}(o.ApolloLink)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createHttpLink:()=>v});var r=n(314),o=n(466),i=n(546),a=n(543),s=n(565),l=n(566),c=n(567),u=n(568),d=n(579),f=n(585),p=n(
1586),h=n(587),m=n(550),g=n(588),y=(0,o.maybe)(function(){return fetch}),v=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,v=e.fetch,b=e.print,_=void 0===b?d.defaultPrinter:b,w=e.includeExtensions,S=e.preserveHeaderCase,E=e.useGETForQueries,k=e.includeUnusedVariables,T=void 0!==k&&k,x=(0,r.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);var O={http:{includeExtensions:w,preserveHeaderCase:S},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new i.ApolloLink(function(e){var t=(0,c.selectURI)(e,n),i=e.getContext(),b={};if(i.clientAwareness){var w=i.clientAwareness,S=w.name,k=w.version;S&&(b["apollographql-client-name"]=S),k&&(b["apollographql-client-version"]=k)}var x=(0,r.__assign)((0,r.__assign)({},b),i.headers),C={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:x};if((0,s.hasDirectives)(["client"],e.query)){0;var P=(0,g.removeClientSetsFromDocument)(e.query);if(!P)return(0,p.fromError)(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=P}var A,I=(0,d.selectHttpOptionsAndBodyInternal)(e,_,d.fallbackHttpConfig,O,C),R=I.options,j=I.body;j.variables&&!T&&(j.variables=(0,h.filterOperationVariables)(j.variables,e.query)),R.signal||"undefined"==typeof AbortController||(A=new AbortController,R.signal=A.signal);var M,D="OperationDefinition"===(M=(0,m.getMainDefinition)(e.query)).kind&&"subscription"===M.operation,N=(0,s.hasDirectives)(["defer"],e.query);if(E&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(R.method="GET"),N||D){R.headers=R.headers||{};var L="multipart/mixed;";D?L+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(L+="deferSpec=20220824,application/json"),R.headers.accept=L}if("GET"===R.method){var F=(0,f.rewriteURIForGET)(t,j),B=F.newURI,z=F.parseError;if(z)return(0,p.fromError)(z);t=B}else try{R.body=(0,l.serializeFetchParameter)(j,"Payload")}catch(z){return(0,p.fromError)(z)}return new a.Observable(function(n){var r=v||(0,o.maybe)(function(){return fetch})||y,i=n.next.bind(n);return r(t,R).then(function(t){var n;e.setContext({response:t});var r=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?(0,u.readMultipartBody)(t,i):(0,u.parseAndCheckHttpResponse)(e)(t).then(i)}).then(function(){A=void 0,n.complete()}).catch(function(e){A=void 0,(0,u.handleError)(e,n)}),function(){A&&A.abort()}})})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getDirectiveNames:()=>a,getFragmentMaskMode:()=>f,getInclusionDirectives:()=>d,hasAllDirectives:()=>l,hasAnyDirectives:()=>s,hasClientExports:()=>u,hasDirectives:()=>c,shouldInclude:()=>i});var r=n(466),o=n(554);function i(e,t){var n=e.directives;return!n||!n.length||d(n).every(function(e){var n=e.directive,o=e.ifArgument,i=!1;return"Variable"===o.value.kind?(i=t&&t[o.value.name.value],(0,r.invariant)(void 0!==i,105,n.name.value)):i=o.value.value,"skip"===n.name.value?!i:i})}function a(e){var t=[];return(0,o.visit)(e,{Directive:function(e){t.push(e.name.value)}}),t}var s=function(e,t){return c(e,t,!1)},l=function(e,t){return c(e,t,!0)};function c(e,t,n){var r=new Set(e),i=r.size;return(0,o.visit)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return o.BREAK}}),n?!r.size:r.size<i}function u(e){return e&&c(["client","export"],e,!0)}function d(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(n=e.name.value)||"include"===n){var n,o=e.arguments,i=e.name.value;(0,r.invariant)(o&&1===o.length,106,i);var a=o[0];(0,r.invariant)(a.name&&"if"===a.name.value,107,i);var s=a.value;(0,r.invariant)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),108,i),t.push({directive:e,ifArgument:a})}}),t}function f(e){var t,n,r=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!r)return"mask";var o=null===(n=r.arguments)||void 0===n?void 0:n.find(function(e){return"mode"===e.name.value});return o&&"value"in o.value&&"migrate"===o.value.value?"migrate":"unmask"}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{serializeFetchParameter:()=>o});var r=n(466),o=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var o=(0,r.newInvariantError)(54,t,e.message);throw o.parseError=e,o}return n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{selectURI:()=>r});var r=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{handleError:()=>f,parseAndCheckHttpResponse:()=>p,parseHeaders:()=>u,parseJsonBody:()=>d,readMultipartBody:()=>c});var r=n(314),o=n(569),i=n(574),a=n(575),s=n(576),l=Object.prototype.hasOwnProperty;function c(e,t){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i,l,c,f,p,h,m,g,y,v,b,_,w,S,E,
1k,T,x,O,C,P,A,I;return(0,r.__generator)(this,function(R){switch(R.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),i=null===(I=e.headers)||void 0===I?void 0:I.get("content-type"),l="boundary=",c=(null==i?void 0:i.includes(l))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(l))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="\r\n--".concat(c),p="",h=(0,o.responseIterator)(e),m=!0,R.label=1;case 1:return m?[4,h.next()]:[3,3];case 2:for(g=R.sent(),y=g.value,v=g.done,b="string"==typeof y?y:n.decode(y),_=p.length-f.length+1,m=!v,w=(p+=b).indexOf(f,_);w>-1;){if(S=void 0,P=[p.slice(0,w),p.slice(w+f.length)],p=P[1],E=(S=P[0]).indexOf("\r\n\r\n"),k=u(S.slice(0,E)),(T=k["content-type"])&&-1===T.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(x=S.slice(E))if(O=d(e,x),Object.keys(O).length>1||"data"in O||"incremental"in O||"errors"in O||"payload"in O)if((0,s.isApolloPayloadResult)(O)){if(C={},"payload"in O){if(1===Object.keys(O).length&&null===O.payload)return[2];C=(0,r.__assign)({},O.payload)}"errors"in O&&(C=(0,r.__assign)((0,r.__assign)({},C),{extensions:(0,r.__assign)((0,r.__assign)({},"extensions"in C?C.extensions:null),(A={},A[a.PROTOCOL_ERRORS_SYMBOL]=O.errors,A))})),t(C)}else t(O);else if(1===Object.keys(O).length&&"hasNext"in O&&!O.hasNext)return[2];w=p.indexOf(f)}return[3,1];case 3:return[2]}})})}function u(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),o=e.slice(n+1).trim();t[r]=o}}),t}function d(e,t){if(e.status>=300){(0,i.throwServerError)(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(r){var n=r;throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function f(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function p(e){return function(t){return t.text().then(function(e){return d(t,e)}).then(function(n){return Array.isArray(n)||l.call(n,"data")||l.call(n,"errors")||(0,i.throwServerError)(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{responseIterator:()=>l});var r=n(474),o=n(570),i=n(571),a=n(572),s=n(573);function l(e){var t=e;if(e.body&&(t=e.body),function(e){return!(!r.canUseAsyncIteratorSymbol||!e[Symbol.asyncIterator])}(t))return(0,o.default)(t);if(function(e){return!!e.getReader}(t))return(0,s.default)(t.getReader());if(function(e){return!!e.stream}(t))return(0,s.default)(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return(0,a.default)(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return(0,i.default)(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}},(e,t,n)=>{"use strict";function r(e){var t,n=e[Symbol.asyncIterator]();return(t={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},t}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(474);function o(e){var t=null,n=null,o=!1,i=[],a=[];function s(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function l(e){n=e,a.slice().forEach(function(t){t[1](e)}),!t||t()}function c(){o=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),!t||t()}t=function(){t=null,e.removeListener("data",s),e.removeListener("error",l),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",s),e.on("error",l),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):o?e({value:void 0,done:!0}):void a.push([e,t])})}};return r.canUseAsyncIteratorSymbol&&(u[Symbol.asyncIterator]=function(){return this}),u}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(474);function o(e){var t=!1,n={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,n){e.then(function(e){t({value:e,done:!1})}).catch(n)}))}};return r.canUseAsyncIteratorSymbol&&(n[Symbol.asyncIterator]=function(){return this}),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(474);function o(e){var t={next:function(){return e.read()}};return r.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{throwServerError:()=>r});var r=function(e,t,n){var r=new Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloError:()=>l,PROTOCOL_ERRORS_SYMBOL:()=>i,graphQLResultHasProtocolErrors:()=>a,isApolloError:()=>s});var r=n(314),o=(n(466),n(552)),i=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[i])}function s(e){return e.hasOwnProperty("graphQLErrors")}var l=function(e){function t(n){var i,a,s=n.graphQLErrors,l=n.protocolErrors,c=n.clientErrors,u=n.networkError,d=n.errorMessage,f=n.extraInfo,p=e.call(this,d)||this;return p.name="ApolloError",p.graphQLErrors=s||[],p.protocolErrors=l||[],p.clientErrors=c||[],p.networkError=u||null,p.message=d||(i=p,a=(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([],i.graphQLErrors,!0),i.clientErrors,!0),i.protocolErrors,!0),i.networkError&&a.push(i.networkError),a.map(function(e){return(0,o.isNonNullObject)(e)&&e.message||"Error message not found."}).join("\n")),p.extraInfo=f,p.cause=(0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([u],s||[],!0),l||[],!0),c||[],!0).find(function(e){return!!e})||null,p.__proto__=t.prototype,p}return(0,r.__extends)(t,e),t}(Error)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isApolloPayloadResult:()=>c,isExecutionPatchIncrementalResult:()=>a,isExecutionPatchInitialResult:()=>s,isExecutionPatchResult:()=>l,mergeIncrementalData:()=>u});var r=n(552),o=n(577),i=n(578);function a(e){return"incremental"in e}function s(e){return"hasNext"in e&&"data"in e}function l(e){return a(e)||s(e)}function c(e){return(0,r.isNonNullObject)(e)&&"payload"in e}function u(e,t){var n=e,r=new i.DeepMerger;return a(t)&&(0,o.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,o=e.path,i=o.length-1;i>=0;--i){var a=o[i],s=!isNaN(+a)?[]:{};s[a]=t,t=s}
1n=r.merge(n,t)}),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isArray:()=>r,isNonEmptyArray:()=>o});var r=Array.isArray;function o(e){return Array.isArray(e)&&e.length>0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DeepMerger:()=>c,mergeDeep:()=>a,mergeDeepArray:()=>s});var r=n(314),o=n(552),i=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new c,o=1;o<n;++o)t=r.merge(t,e[o]);return t}var l=function(e,t,n){return this.merge(e[n],t[n])},c=function(){function e(e){void 0===e&&(e=l),this.reconciler=e,this.isObject=o.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,o.isNonNullObject)(t)&&(0,o.isNonNullObject)(e)?(Object.keys(t).forEach(function(o){if(i.call(e,o)){var s=e[o];if(t[o]!==s){var l=n.reconciler.apply(n,(0,r.__spreadArray)([e,t,o],a,!1));l!==s&&((e=n.shallowCopyForMerge(e))[o]=l)}}else(e=n.shallowCopyForMerge(e))[o]=t[o]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,o.isNonNullObject)(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):(0,r.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultPrinter:()=>a,fallbackHttpConfig:()=>i,selectHttpOptionsAndBody:()=>s,selectHttpOptionsAndBodyInternal:()=>l});var r=n(314),o=n(580),i={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function s(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return n.unshift(t),l.apply(void 0,(0,r.__spreadArray)([e,a],n,!1))}function l(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a={},s={};n.forEach(function(e){a=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},a),e.options),{headers:(0,r.__assign)((0,r.__assign)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),s=(0,r.__assign)((0,r.__assign)({},s),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var n={};
1return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var o={};return Object.keys(r).forEach(function(e){o[r[e].originalName]=r[e].value}),o}(a.headers,s.preserveHeaderCase));var l=e.operationName,c=e.extensions,u=e.variables,d=e.query,f={operationName:l,variables:u};return s.includeExtensions&&(f.extensions=c),s.includeQuery&&(f.query=t(d,o.print)),{options:a,body:f}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{print:()=>s});var r,o=n(581),i=n(560),a=n(562),s=Object.assign(function(e){var t=r.get(e);return t||(t=(0,o.print)(e),r.set(e,t)),t},{reset:function(){r=new i.AutoCleanedWeakCache(a.cacheSizes.print||2e3)}});s.reset()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{print:()=>a});var r=n(582),o=n(584),i=n(554);function a(e){return(0,i.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=f(e.variableDefinitions)?u("(\n",l(e.variableDefinitions,"\n"),"\n)"):u("(",l(e.variableDefinitions,", "),")"),n=u("",e.description,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:o})=>u("",o,"\n")+e+": "+t+u(" = ",n)+u(" ",l(r," "))},SelectionSet:{leave:({selections:e})=>c(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:o}){const i=u("",e,": ")+t;let a=i+u("(",l(n,", "),")");return a.length>80&&(a=i+u("(\n",d(l(n,"\n")),"\n)")),l([a,l(r," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+u(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>l(["...",u("on ",e),l(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:o,description:i})=>u("",i,"\n")+`fragment ${e}${u("(",l(n,", "),")")} `+`on ${t} ${u("",l(r," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,r.printBlockString)(e):(0,o.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},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:n})=>u("",e,"\n")+l(["schema",l(t," "),c(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>u("",e,"\n")+l(["scalar",t,l(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>u("",e,"\n")+l(["type",t,u("implements ",l(n," & ")),l(r," "),c(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:o})=>u("",e,"\n")+t+(f(n)?u("(\n",d(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:o})=>u("",e,"\n")+l([t+": "+n,u("= ",r),l(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:o})=>u("",e,"\n")+l(["interface",t,u("implements ",l(n," & ")),l(r," "),c(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>u("",e,"\n")+l(["union",t,l(n," "),u("= ",l(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>u("",e,"\n")+l(["enum",t,l(n," "),c(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>u("",e,"\n")+l([t,l(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>u("",e,"\n")+l(["input",t,l(n," "),c(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,directives:r,repeatable:o,locations:i})=>u("",e,"\n")+"directive @"+t+(f(n)?u("(\n",d(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+u(" ",l(r," "))+(o?" repeatable":"")+" on "+l(i," | ")},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:n,fields:r})=>l(["extend type",e,u("implements ",l(t," & ")),l(n," "),c(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>l(["extend interface",e,u("implements ",l(t," & ")),l(n," "),c(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>l(["extend union",e,l(t," "),u("= ",l(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>l(["extend enum",e,l(t," "),c(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>l(["extend input",e,l(t," "),c(n)]," ")},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:n})=>l([e,u(".",t),u("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,u("(",t,":)")])}};function l(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function c(e){return u("{\n",d(l(e,"\n")),"\n}")}function u(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function d(e){return u("  ",e.replace(/\n/g,"\n  "))}function f(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{dedentBlockStringLines:()=>o,isPrintableAsBlockString:()=>a,printBlockString:()=>s});var r=n(583);function o(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var a;const s=e[t],l=i(s);l!==s.length&&(r=null!==(a=r)&&void 0!==a?a:t,o=t,0!==t&&l<n&&(n=l))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function i(e){let t=0;for(;t<e.length&&(0,r.isWhiteSpace)(e.charCodeAt(t));)++t;return t}function a(e){if(""===e)return!0;let t=!0,n=!1,r=!0,o=!1;for(let i=0;i<e.length;++i)switch(e.codePointAt(i)){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&&!o)return!1;o=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!t&&(!r||!o)}function s(e,t){const n=e.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=1===o.length,a=o.length>1&&o.slice(1).every(e=>0===e.length||(0,r.isWhiteSpace)(e.charCodeAt(0))),s=n.endsWith('\\"""'),l=e.endsWith('"')&&!s,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!i||e.length>70||u||a||s);let f="";const p=i&&(0,r.isWhiteSpace)(e.charCodeAt(0));return(d&&!p||a)&&(f+="\n"),f+=n,(d||u)&&(f+="\n"),'"""'+f+'"""'}},(e,t,n)=>{"use strict";function r(e){return 9===e||32===e}function o(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}function a(e){return i(e)||95===e}function s(e){return i(e)||o(e)||95===e}n.r(t),n.d(t,{isDigit:()=>o,isLetter:()=>i,isNameContinue:()=>s,isNameStart:()=>a,isWhiteSpace:()=>r})},(e,t,n)=>{"use strict";function r(e){return`"${e.replace(o,i)}"`}n.r(t),n.d(t,{printString:()=>r});const o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(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,n)=>{"use strict";n.r(t),n.d(t,{rewriteURIForGET:()=>o});var r=n(566);function o(e,t){var n=[],o=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&o("query",t.query),t.operationName&&o("operationName",t.operationName),t.variables){var i=void 0;try{i=(0,r.serializeFetchParameter)(t.variables,"Variables map")}catch(e){return{parseError:e}}o("variables",i)}if(t.extensions){var a=void 0;try{a=(0,r.serializeFetchParameter)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}o("extensions",a)}var s="",l=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),l=e.substr(0,c));var u=-1===l.indexOf("?")?"?":"&";return{newURI:l+u+n.join("&")+s}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fromError:()=>o});var r=n(543);function o(e){return new r.Observable(function(t){t.error(e)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{filterOperationVariables:()=>i});var r=n(314),o=n(554);function i(e,t){var n=(0,r.__assign)({},e),i=new Set(Object.keys(e));return(0,o.visit)(t,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&i.delete(e.name.value)}}
1),i.forEach(function(e){delete n[e]}),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addNonReactiveToNamedFragments:()=>E,addTypenameToDocument:()=>g,buildQueryFromSelectionSet:()=>w,removeArgumentsFromDocument:()=>b,removeClientSetsFromDocument:()=>S,removeConnectionDirectiveFromDocument:()=>v,removeDirectivesFromDocument:()=>m,removeFragmentSpreadFromDocument:()=>_});var r=n(314),o=(n(466),n(558)),i=n(554),a=n(550),s=n(551),l=n(553),c=n(577),u={kind:o.Kind.FIELD,name:{kind:o.Kind.NAME,value:"__typename"}};function d(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===o.Kind.FRAGMENT_SPREAD&&d(t[e.name.value],t)})}function f(e){return d((0,a.getOperationDefinition)(e)||(0,a.getFragmentDefinition)(e),(0,l.createFragmentMap)((0,a.getFragmentDefinitions)(e)))?null:e}function p(e){var t=new Map,n=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&n.set(e.test,e))}),function(e){var r=t.get(e.name.value);return!r&&n.size&&n.forEach(function(t,n){n(e)&&(r=t)}),r}}function h(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function m(e,t){(0,a.checkDocument)(t);for(var n=h(""),s=h(""),l=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,c.isArray)(r)){if(r.kind===o.Kind.OPERATION_DEFINITION)return n(r.name&&r.name.value);if(r.kind===o.Kind.FRAGMENT_DEFINITION)return s(r.name.value)}return null},u=0,d=t.definitions.length-1;d>=0;--d)t.definitions[d].kind===o.Kind.OPERATION_DEFINITION&&++u;var m=p(e),g=function(e){return(0,c.isNonEmptyArray)(e)&&e.map(m).some(function(e){return e&&e.remove})},y=new Map,v=!1,b={enter:function(e){if(g(e.directives))return v=!0,null}},_=(0,i.visit)(t,{Field:b,InlineFragment:b,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,o){var i=l(o);i&&i.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,o){if(g(e.directives))return v=!0,null;var i=l(o);i&&i.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){y.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===y.get(JSON.stringify(r))?e:u>0&&e.selectionSet.selections.every(function(e){return e.kind===o.Kind.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return v=!0,null}}});if(!v)return t;var w=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){w(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},S=new Set;_.definitions.forEach(function(e){e.kind===o.Kind.OPERATION_DEFINITION?w(n(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){S.add(e)}):e.kind!==o.Kind.FRAGMENT_DEFINITION||0!==u||s(e.name.value).removed||S.add(e.name.value)}),S.forEach(function(e){w(s(e)).fragmentSpreads.forEach(function(e){S.add(e)})});var E={enter:function(e){if(t=e.name.value,!S.has(t)||s(t).removed)return null;var t}};return f((0,i.visit)(_,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(n(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,r.__assign)((0,r.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var g=Object.assign(function(e){return(0,i.visit)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==o.Kind.OPERATION_DEFINITION){var i=e.selections;if(i)if(!i.some(function(e){return(0,s.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var a=n;if(!((0,s.isField)(a)&&a.directives&&a.directives.some(function(e){return"export"===e.name.value})))return(0,r.__assign)((0,r.__assign)({},e),{selections:(0,r.__spreadArray)((0,r.__spreadArray)([],i,!0),[u],!1)})}}}}})},{added:function(e){return e===u}}),y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function v(e){return m([y],(0,a.checkDocument)(e))}function b(e,t){var n=function(e){return function(t){return e.some(function(e){return t.value&&t.value.kind===o.Kind.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return f((0,i.visit)(t,{OperationDefinition:{enter:function(t){return(0,r.__assign)((0,r.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.s
1ome(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var r=0;if(t.arguments&&t.arguments.forEach(function(e){n(e)&&(r+=1)}),1===r)return null}}},Argument:{enter:function(e){if(n(e))return null}}}))}function _(e,t){function n(t){if(e.some(function(e){return e.name===t.name.value}))return null}return f((0,i.visit)(t,{FragmentSpread:{enter:n},FragmentDefinition:{enter:n}}))}function w(e){return"query"===(0,a.getMainDefinition)(e).operation?e:(0,i.visit)(e,{OperationDefinition:{enter:function(e){return(0,r.__assign)((0,r.__assign)({},e),{operation:"query"})}}})}function S(e){return(0,a.checkDocument)(e),m([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function E(e){return(0,a.checkDocument)(e),(0,i.visit)(e,{FragmentSpread:function(e){var t;if(!(null===(t=e.directives)||void 0===t?void 0:t.some(function(e){return"unmask"===e.name.value})))return(0,r.__assign)((0,r.__assign)({},e),{directives:(0,r.__spreadArray)((0,r.__spreadArray)([],e.directives||[],!0),[{kind:o.Kind.DIRECTIVE,name:{kind:o.Kind.NAME,value:"nonreactive"}}
1],!1)})}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryManager:()=>j});var r=n(314),o=n(466),i=(n(590),n(545)),a=n(565),s=n(588),l=n(576),c=n(559),u=n(543),d=n(591),f=n(550),p=n(551),h=n(592),m=n(593),g=n(577),y=n(552),v=n(596),b=n(473),_=n(575),w=n(597),S=n(598),E=n(604),k=n(580),T=n(477),x=n(560),O=n(562),C=n(605),P=n(609),A=n(603),I=Object.prototype.hasOwnProperty,R=Object.create(null),j=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new x.AutoCleanedWeakCache(O.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new T.Trie(!1),this.noCacheWarningsByQueryId=new Set;var n=new d.DocumentTransform(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,o.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,r.__awaiter)(this,arguments,void 0,function(e){var t,n,i,a,s,l,c,u=e.mutation,d=e.variables,f=e.optimisticResponse,p=e.updateQueries,m=e.refetchQueries,g=void 0===m?[]:m,y=e.awaitRefetchQueries,b=void 0!==y&&y,w=e.update,S=e.onQueryUpdated,E=e.fetchPolicy,k=void 0===E?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.fetchPolicy)||"network-only":E,T=e.errorPolicy,x=void 0===T?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":T,O=e.keepRootFields,C=e.context;return(0,r.__generator)(this,function(e){switch(e.label){case 0:return(0,o.invariant)(u,36),(0,o.invariant)("network-only"===k||"no-cache"===k,37),t=this.generateMutationId(),u=this.cache.transformForLink(this.transform(u)),n=this.getDocumentInfo(u).hasClientExports,d=this.getVariables(u,d),n?[4,this.localState.addExportedVariables(u,d,C)]:[3,2];case 1:d=e.sent(),e.label=2;case 2:return i=this.mutationStore&&(this.mutationStore[t]={mutation:u,variables:d,loading:!0,error:null}),a=f&&this.markMutationOptimistic(f,{mutationId:t,document:u,variables:d,fetchPolicy:k,errorPolicy:x,context:C,updateQueries:p,update:w,keepRootFields:O}),this.broadcastQueries(),s=this,[2,new Promise(function(e,n){return(0,h.asyncMap)(s.getObservableFromLink(u,(0,r.__assign)((0,r.__assign)({},C),{optimisticResponse:a?f:void 0}),d,{},!1),function(e){if((0,v.graphQLResultHasError)(e)&&"none"===x)throw new _.ApolloError({graphQLErrors:(0,v.getGraphQLErrorsFromResult)(e)});i&&(i.loading=!1,i.error=null);var n=(0,r.__assign)({},e);return"function"==typeof g&&(g=g(n)),"ignore"===x&&(0,v.graphQLResultHasError)(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:u,variables:d,fetchPolicy:k,errorPolicy:x,context:C,update:w,updateQueries:p,awaitRefetchQueries:b,refetchQueries:g,removeOptimistic:a?t:void 0,onQueryUpdated:S,keepRootFields:O})}).subscribe({next:function(n){s.broadcastQueries(),"hasNext"in n&&!1!==n.hasNext||e((0,r.__assign)((0,r.__assign)({},n),{data:s.maskOperation({document:u,data:n.data,fetchPolicy:k,id:t})}))},error:function(e){i&&(i.loading=!1,i.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof _.ApolloError?e:new _.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var o=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&(0,E.shouldWriteResult)(o,e.errorPolicy)){if((0,l.isExecutionPatchIncrementalResult)(o)||i.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.isExecutionPatchIncrementalResult)(o)&&(0,g.isNonEmptyArray)(o.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;s.result&&(c=(0,l.mergeIncrementalData)(s.result,o)),void 0!==c&&(o.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(e,r){var a=e.observableQuery,s=a&&a.queryName;if(s&&I.call(u,s)){var l=u[s],c=n.queries.get(r),d=c.document,p=c.variables,h=t.diff({query:d,variables:p,returnPartialData:!0,optimistic:!1}),m=h.result;if(h.complete&&m){var g=l(m,{mutationResult:o,queryName:d&&(0,f.getOperationName)(d)||void 0,queryVariables:p});g&&i.push({result:g,dataId:"ROOT_QUERY",query:d,variables:p})}}})}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var d=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var s=e.update,c=!(0,l.isExecutionPatchResult)(o)||(0,l.isExecutionPatchIncrementalResult)(o)&&!o.hasNext;if(s){if(!a){var u=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});u.complete&&("incremental"in(o=(0,r.__assign)((0,r.__assign)({},o),{data:u.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}c&&s(t,o,{context:e.context,variables:e.variables})}a||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return d.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(d).then(function(){return o})}return Promise.resolve(o)},e.prototype.markMutationOptimistic=function(e,t){var n=this,o="function"==typeof e?e(t.variables,{IGNORE:R}):e;return o!==R&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.__assign)((0,r.__assign)({},t),{result:{data:o}}),e)}catch(e){}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,a.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,a.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,s.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,s.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,f.getDefaultValues)((0,f.getOperationDefinition)(e)),asQuery:(0,r.__assign)((0,r.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.__assign)((0,r.__assign)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.__assign)((0,r.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,r.__assign)((0,r.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new E.QueryInfo(this),o=new w.ObservableQuery({queryManager:this,queryInfo:n,options:e});return o.lastQuery=t,w.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(o.queryId,n),n.init({document:t,observableQuery:o,variables:o.variables}),o},e.prototype.query=function(e,t){var n=this;void 0===t&&(t=this.generateQueryId()),(0,o.invariant)(e.query,38),(0,o.invariant)("Document"===e.query.kind,39),(0,o.invariant)(!e.returnPartialData,40),(0,o.invariant)(!e.pollInterval,41);var i=this.transform(e.query);return this.fetchQuery(t,(0,r.__assign)((0,r.__assign)({},e),{query:i})).then(function(o){return o&&(0,r.__assign)((0,r.__assign)({},o),{data:n.maskOperation({document:i,data:o.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,o.newInvariantError)(42)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=S.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,i=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)i.set(e,e),a.set(e,!1);else if((0,p.isDocumentNode)(e)){var n=(0,k.print)(t.transform(e));i.set(n,(0,f.getOperationName)(e)),a.set(n,!1)}else(0,y.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,r){var o=t.observableQuery,i=t.document;if(o){if("all"===e)return void n.set(r,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&a.has(s)||i&&a.has((0,k.print)(i)))&&(n.set(r,o),s&&a.set(s,!0),i&&a.set((0,k.print)(i),!0))}}),s.size&&s.forEach(function(e){var i=(0,b.makeUniqueId)("legacyOneTimeQuery"),a=t.getOrCreateQuery(i).init({document:e.query,variables:e.variables}),s=new w.ObservableQuery({queryManager:t,queryInfo:a,options:(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:"network-only"})});(0,o.invariant)(s.queryId===i),a.setObservableQuery(s),n.set(i,s)}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,o){var i=r.options.fetchPolicy;(0,A.muteDeprecations)("resetLastResults",function(){return r.resetLastResults()}),(e||"standby"!==i&&"cache-only"!==i)&&n.push(r.refetch()),(t.queries.get(o)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,o=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,s=e.context,l=void 0===s?{}:s,c=e.extensions,d=void 0===c?{}:c;n=this.transform(n),r=this.getVariables(n,r);var f=function(e){return t.getObservableFromLink(n,l,e,d).map(function(r){"no-cache"!==o&&((0,E.shouldWriteResult)(r,a)&&t.cache.write({query:n,result:r.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var i=(0,v.graphQLResultHasError)(r),s=(0,_.graphQLResultHasProtocolErrors)(r);if(i||s){var l={};if(i&&(l.graphQLErrors=r.errors),s&&(l.protocolErrors=r.extensions[_.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new _.ApolloError(l)}return"ignore"===a&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var p=this.localState.addExportedVariables(n,r,l).then(f);return new u.Observable(function(e){var t=null;return p.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,o,a){var s,l,d=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var p=this.getDocumentInfo(e),g=p.serverQuery,y=p.clientQuery;if(g){var v=this.inFlightLinkObservables,b=this.link,_={query:g,variables:n,operationName:(0,f.getOperationName)(g)||void 0,context:this.prepareContext((0,r.__assign)((0,r.__assign)({},t),{forceFetch:!a})),extensions:o};if(t=_.context,a){var w=(0,k.print)(g),S=(0,c.canonicalStringify)(n),E=v.lookup(w,S);if(!(l=E.observable)){var T=new m.Concast([(0,i.execute)(b,_)]);l=E.observable=T,T.beforeNext(function e(t,n){"next"===t&&"hasNext"in n&&n.hasNext?T.beforeNext(e):v.remove(w,S)})}}else l=new m.Concast([(0,i.execute)(b,_)])}else l=new m.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);return y&&(l=(0,h.asyncMap)(l,function(e){return d.localState.runResolvers({document:y,remoteResult:e,context:t,variables:n})})),l},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),o=this.cache.transformForLink(n.query);return(0,h.asyncMap)(this.getObservableFromLink(o,n.context,n.variables),function(i){var a=(0,v.getGraphQLErrorsFromResult)(i),s=a.length>0,l=n.errorPolicy;if(r>
1=e.lastRequestId){if(s&&"none"===l)throw e.markError(new _.ApolloError({graphQLErrors:a}));e.markResult(i,o,n,t),e.markReady()}var c={data:i.data,loading:!1,networkStatus:S.NetworkStatus.ready};return s&&"none"===l&&(c.data=void 0),s&&"ignore"!==l&&(c.errors=a,c.networkStatus=S.NetworkStatus.error),c},function(t){var n=(0,_.isApolloError)(t)?t:new _.ApolloError({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var o=this;void 0===n&&(n=S.NetworkStatus.loading),void 0===r&&(r=t.query);var i,a,s=this.getVariables(r,t.variables),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,u=void 0===c?l&&l.fetchPolicy||"cache-first":c,d=t.errorPolicy,f=void 0===d?l&&l.errorPolicy||"none":d,p=t.returnPartialData,h=void 0!==p&&p,g=t.notifyOnNetworkStatusChange,y=void 0!==g&&g,v=t.context,b=void 0===v?{}:v,_=Object.assign({},t,{query:r,variables:s,fetchPolicy:u,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:y,context:b}),w=function(r){_.variables=r;var i=o.fetchQueryByPolicy(e,_,n);return"standby"!==_.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},E=function(){return o.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){E(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(_.query).hasClientExports)i=new m.Concast(this.localState.addExportedVariables(_.query,_.variables,_.context).then(w).then(function(e){return e.sources})),a=!0;else{var k=w(_.variables);a=k.fromLink,i=new m.Concast(k.sources)}return i.promise.then(E,E),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,o=e.optimistic,i=void 0!==o&&o,a=e.removeOptimistic,s=void 0===a?i?(0,b.makeUniqueId)("refetchQueries"):void 0:a,l=e.onQueryUpdated,c=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){c.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:i&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof E.QueryInfo&&e.watcher.observableQuery;if(r){if(l){c.delete(r.queryId);var o=l(r,t,n);return!0===o&&(o=r.refetch()),!1!==o&&u.set(r,o),o}null!==l&&c.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),c.size&&c.forEach(function(e,n){var r,o=e.oq,i=e.lastDiff,a=e.diff;l&&(a||(a=(0,A.muteDeprecations)("canonizeResults",function(){return t.cache.diff(o.queryInfo.getDiffOptions())})),r=l(o,a,i)),l&&!0!==r||(r=o.refetch()),!1!==r&&u.set(o,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,n=e.data;return this.dataMasking?(0,P.maskOperation)(n,t,this.cache):n},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?(0,C.maskFragment)(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var o=this,i=t.query,a=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var m=function(){return e.getDiff()},g=function(t,n){void 0===n&&(n=e.networkStatus||S.NetworkStatus.loading);var s=t.result;var l=function(e){return u.Observable.of((0,r.__assign)({data:e,loading:(0,S.isNetworkRequestInFlight)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&o.getDocumentInfo(i).hasForcedResolvers?o.localState.runResolvers({document:i,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data||void 0)}):"none"===c&&n===S.NetworkStatus.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},y="no-cache"===s?0:n===S.NetworkStatus.refetch&&"merge"!==l?1:2,v=function(){return o.getResultsFromLink(e,y,{query:i,variables:a,context:f,fetchPolicy:s,errorPolicy:c})},b=p&&"number"==typeof h&&h!==n&&(0,S.isNetworkRequestInFlight)(n);switch(s){default:case"cache-first":return(_=m()).complete?{fromLink:!1,sources:[g(_,e.markReady())]}:d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var _;return(_=m()).complete||d||b?{fromLink:!0,sources:[g(_),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[g(m(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[g(m()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return b?{fromLink:!0,sources:[g(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new E.QueryInfo(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,equal:()=>s});const{toString:r,hasOwnProperty:o}=Object.prototype,i=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 n=r.call(e);
1if(n!==r.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(p(e,t))return!0;const n=u(e),r=u(t),i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;++e)if(!o.call(t,n[e]))return!1;for(let r=0;r<i;++r){const o=n[r];if(!c(e[o],t[o]))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(p(e,t))return!0;const r=e.entries(),o="[object Map]"===n;for(;;){const e=r.next();if(e.done)break;const[n,i]=e.value;if(!t.has(n))return!1;if(o&&!c(i,t.get(n)))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 n=e.byteLength;if(n===t.byteLength)for(;n--&&e[n]===t[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=i.call(e);return n===i.call(t)&&!function(e,t){const n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}(n,f)}}return!1}function u(e){return Object.keys(e).filter(d,e)}function d(e){return void 0!==this[e]}const f="{ [native code] }";function p(e,t){let n=a.get(e);if(n){if(n.has(t))return!0}else a.set(e,n=new Set);return n.add(t),!1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DocumentTransform:()=>d});var r=n(477),o=n(474),i=n(550),a=n(466),s=n(561),l=n(476),c=n(562);function u(e){return e}var d=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=o.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(u,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new r.Trie(o.canUseWeakMap);this.performWork=(0,l.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return(0,a.invariant)(Array.isArray(r),104),n.lookupArray(r)},max:c.cacheSizes["documentTransform.cache"],cache:s.WeakCache})}},e.prototype.performWork=function(e){return(0,i.checkDocument)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{asyncMap:()=>o});var r=n(543);function o(e,t,n){return new r.Observable(function(r){var o={then:function(e){return new Promise(function(t){return t(e())})}};function i(e,t){return function(n){if(e){var i=function(){return r.closed?0:e(n)};o=o.then(i,i).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var a={next:i(t,"next"),error:i(n,"error"),complete:function(){o.then(function(){return r.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Concast:()=>l});var r=n(314),o=n(543),i=n(594),a=n(595);function s(e){return e&&"function"==typeof e.then}var l=function(e){function t(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),(0,i.iterateObserversSafely)(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),(0,i.iterateObserversSafely)(n.observers,"error",e))},complete:function(){var e=n,t=e.sub,r=e.sources;if(null!==t){var o=(void 0===r?[]:r).shift();o?s(o)?o.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):n.sub=o.subscribe(n.handlers):(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),(0,i.iterateObserversSafely)(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.error(e)},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new o.Observable(t)]),s(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;
1n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(o.Observable);(0,a.fixObservableSubclass)(l)},(e,t,n)=>{"use strict";function r(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}n.r(t),n.d(t,{iterateObserversSafely:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fixObservableSubclass:()=>i});var r=n(543),o=n(474);function i(e){function t(t){Object.defineProperty(e,t,{value:r.Observable})}return o.canUseSymbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getGraphQLErrorsFromResult:()=>a,graphQLResultHasError:()=>i});var r=n(577),o=n(576);function i(e){var t=a(e);return(0,r.isNonEmptyArray)(t)}function a(e){var t=(0,r.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,o.isExecutionPatchIncrementalResult)(e)&&(0,r.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObservableQuery:()=>b,logMissingFieldErrors:()=>w});var r=n(314),o=n(466),i=n(590),a=n(598),s=n(543),l=n(550),c=n(599),u=n(600),d=n(594),f=n(595),p=n(601),h=n(575),m=n(602),g=n(476),y=n(603),v=Object.assign,b=(Object.hasOwnProperty,function(e){function t(n){var o=n.queryManager,i=n.queryInfo,a=n.options,s=this,c=t.inactiveOnCreation.getValue();(s=e.call(this,function(e){s._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=_)}catch(e){}var n=!s.observers.size;s.observers.add(e);var r=s.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(s.maskResult(r.result)),n&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this).observers=new Set,s.subscriptions=new Set,s.dirty=!1,s._getOrCreateQuery=function(){return c&&(o.queries.set(s.queryId,i),c=!1),s.queryManager.getOrCreateQuery(s.queryId)},s.queryInfo=i,s.queryManager=o,s.waitForOwnResult=S(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var u=o.defaultOptions.watchQuery,d=(void 0===u?{}:u).fetchPolicy,f=void 0===d?"cache-first":d,p=a.fetchPolicy,h=void 0===p?f:p,m=a.initialFetchPolicy,g=void 0===m?"standby"===h?f:h:m;s.options=(0,r.__assign)((0,r.__assign)({},a),{initialFetchPolicy:g,fetchPolicy:h}),s.queryId=i.queryId||o.generateQueryId();var y=(0,l.getOperationDefinition)(s.query);return s.queryName=y&&y.name&&y.name.value,s}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){o.unsubscribe()},0)},error:n},o=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;void 0===e&&(e=!0);var n=(0,y.muteDeprecations)("getLastResult",function(){return t.getLastResult(!0)}),o=this.queryInfo.networkStatus||n&&n.networkStatus||a.NetworkStatus.ready,s=(0,r.__assign)((0,r.__assign)({},n),{loading:(0,a.isNetworkRequestInFlight)(o),networkStatus:o}),l=this.options.fetchPolicy,c=void 0===l?"cache-first":l;if(S(c)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(s.data=u.result),(0,i.equal)(s.data,{})&&(s.data=void 0),u.complete?(delete s.partial,!u.complete||s.networkStatus!==a.NetworkStatus.loading||"cache-first"!==c&&"cache-only"!==c||(s.networkStatus=a.NetworkStatus.ready,s.loading=!1)):s.partial=!0,s.networkStatus===a.NetworkStatus.ready&&(s.error||s.errors)&&(s.networkStatus=a.NetworkStatus.error)}return e&&this.updateLastResult(s),s},t.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,o=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!(0,m.equalByQuery)(o,this.last.result,e,this.variables):!(0,i.equal)(this.last.result,e))||t&&!(0,i.equal)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,i.equal)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return t.fetchPolicy="no-cache"===n?"no-cache":"network-only",e&&!(0,i.equal)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.__assign)((0,r.__assign)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,a.NetworkStatus.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.__assign)((0,r.__assign)({},e.query?e:(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.options),{query:this.options.query}),e),{variables:(0,r.__assign)((0,r.__assign)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var s=this.queryInfo,l=s.networkStatus;s.networkStatus=a.NetworkStatus.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=null==e?void 0:e.updateQuery,d="no-cache"!==this.options.fetchPolicy;return d||(0,o.invariant)(u,29),this.queryManager.fetchQuery(i,n,a.NetworkStatus.fetchMore).then(function(o){if
1(t.queryManager.removeQuery(i),s.networkStatus===a.NetworkStatus.fetchMore&&(s.networkStatus=l),d)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:o.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:o.data})},onWatchUpdated:function(e){c.add(e.query)}});else{var f=t.getLast("result"),p=u(f.data,{fetchMoreResult:o.data,variables:n.variables});t.reportResult((0,r.__assign)((0,r.__assign)({},f),{networkStatus:l,loading:(0,a.isNetworkRequestInFlight)(l),data:p}),t.variables)}return t.maskResult(o)}).finally(function(){d&&!c.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var o=e.updateQuery;o&&t.updateQuery(function(e,t){return o(e,(0,r.__assign)({subscriptionData:n},t))})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,p.compact)(this.options,e||{});v(this.options,t)},t.prototype.setVariables=function(e){var t=this;return(0,i.equal)(this.variables,e)?this.observers.size?(0,y.muteDeprecations)("observableQuery.result",function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},a.NetworkStatus.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,o=n.complete,i=e(r,{variables:this.variables,complete:!!o,previousData:r});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,o=t.initialFetchPolicy,i=void 0===o?r:o;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):t.fetchPolicy="variables-changed"===e?i:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(n&&this.hasObservers()){if(!t||t.interval!==n){(0,o.invariant)(n,32),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&((0,a.isNetworkRequestInFlight)(e.queryInfo.networkStatus)||(null===(n=(t=e.options).skipPollAttempt)||void 0===n?void 0:n.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},a.NetworkStatus.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){var n=this;void 0===t&&(t=this.variables);var o=(0,y.muteDeprecations)("getLastError",function(){return n.getLastError()});return o&&this.last&&!(0,i.equal)(t,this.last.variables)&&(o=void 0),this.last=(0,r.__assign)({result:this.queryManager.assumeImmutableResults?e:(0,u.cloneDeep)(e),variables:t},o?{error:o}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var o=t===a.NetworkStatus.refetch||t===a.NetworkStatus.fetchMore||t===a.NetworkStatus.poll,s=this.options.variables,l=this.options.fetchPolicy,c=(0,p.compact)(this.options,e||{}),u=o?c:v(this.options,c),d=this.transformDocument(u.query);this.lastQuery=d,o||(this.updatePolling(),!e||!e.variables||(0,i.equal)(e.variables,s)||"standby"===u.fetchPolicy||u.fetchPolicy!==l&&"function"!=typeof u.nextFetchPolicy||(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=a.NetworkStatus.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=S(u.fetchPolicy));var f=function(){n.concast===y&&(n.waitForOwnResult=!1)},m=u.variables&&(0,r.__assign)({},u.variables),g=this.fetch(u,t,d),y=g.concast,b=g.fromLink,_={next:function(e){(0,i.equal)(n.variables,m)&&(f(),n.reportResult(e,m))},error:function(e){(0,i.equal)(n.variables,m)&&((0,h.isApolloError)(e)||(e=new h.ApolloError({networkError:e})),f(),n.reportError(e,m))}};return o||!b&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=y,this.observer=_),y.addObserver(_),y},t.prototype.reobserve=function(e,t){return(0,c.preventUnhandledRejection)(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;(0,y.muteDeprecations)("resetLastResults",function(){return e.resetLastResults()});var o=this.subscribe.apply(this,t);return this.last=r,o},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=(0,y.muteDeprecations)("getLastError",function(){return n.getLastError()}),o=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||o)&&(0,d.iterateObserversSafely)(this.observers,"next",this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,o=(0,r.__assign)((0,r.__assign)({},(0,y.muteDeprecations)("getLastResult",function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:a.NetworkStatus.error,loading:!1});this.updateLastResult(o,t),(0,d.iterateObserversSafely)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&"data"in e?(0,r.__assign)((0,r.__assign)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){(this.cancelNotifyTimeout(),this.dirty)&&("cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&(0,a.isNetwork
1RequestInFlight)(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()));this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return"cache-and-network"===t||"network-only"===t?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new g.Slot,t}(s.Observable));function _(e){}function w(e){0}function S(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,f.fixObservableSubclass)(b)},(e,t,n)=>{"use strict";var r;function o(e){return!!e&&e<7}function i(e){return 7===e||8===e}n.r(t),n.d(t,{NetworkStatus:()=>r,isNetworkRequestInFlight:()=>o,isNetworkRequestSettled:()=>i}),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"}(r||(r={}))},(e,t,n)=>{"use strict";function r(e){return e.catch(function(){}),e}n.r(t),n.d(t,{preventUnhandledRejection:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{cloneDeep:()=>o});var r=Object.prototype.toString;function o(e){return i(e)}function i(e,t){switch(r.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=i(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var o=Object.create(Object.getPrototypeOf(e));return t.set(e,o),Object.keys(e).forEach(function(n){o[n]=i(e[n],t)}),o;default:return e}}},(e,t,n)=>{"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}n.r(t),n.d(t,{compact:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{equalByQuery:()=>c});var r=n(314),o=n(590),i=n(565),a=n(553),s=n(550),l=n(551);function c(e,t,n,i){var l=t.data,c=(0,r.__rest)(t,["data"]),d=n.data,f=(0,r.__rest)(n,["data"]);return(0,o.default)(c,f)&&u((0,s.getMainDefinition)(e).selectionSet,l,d,{fragmentMap:(0,a.createFragmentMap)((0,s.getFragmentDefinitions)(e)),variables:i})}function u(e,t,n,r){if(t===n)return!0;var s=new Set;return e.selections.every(function(e){if(s.has(e))return!0;if(s.add(e),!(0,i.shouldInclude)(e,r.variables))return!0;if(d(e))return!0;if((0,l.isField)(e)){var c=(0,l.resultKeyNameFromField)(e),f=t&&t[c],p=n&&n[c],h=e.selectionSet;if(!h)return(0,o.default)(f,p);var m=Array.isArray(f),g=Array.isArray(p);if(m!==g)return!1;if(m&&g){var y=f.length;if(p.length!==y)return!1;for(var v=0;v<y;++v)if(!u(h,f[v],p[v],r))return!1;return!0}return u(h,f,p,r)}var b=(0,a.getFragmentFromSelection)(e,r.fragmentMap);return b?!!d(b)||u(b.selectionSet,t,n,r):void 0})}function d(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{muteDeprecations:()=>d,warnDeprecated:()=>p,warnRemovedOption:()=>f});var r,o=n(314),i=n(476),a=n(466),s=Symbol.for("apollo.deprecations"),l=Symbol.for("apollo.deprecations.slot"),c=a.global,u=null!==(r=c[l])&&void 0!==r?r:c[l]=new i.Slot;function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return u.withValue.apply(u,(0,o.__spreadArray)([Array.isArray(e)?e:[e]],t,!1))}function f(e,t,n,r){void 0===r&&(r="Please remove this option."),p(t,function(){})}function p(e,t){(function(e){return c[s]||(u.getValue()||[]).includes(e)})(e)||t()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{QueryInfo:()=>h,shouldWriteResult:()=>m});var r=n(314),o=n(590),i=n(578),a=n(576),s=n(577),l=n(596),c=n(474),u=n(598),d=n(603),f=new(c.canUseWeakMap?WeakMap:Map);function p(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return f.set(e,(f.get(e)+1)%1e15),n.apply(this,arguments)})}var h=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;f.has(n)||(f.set(n,0),p(n,"evict"),p(n,"modify"),p(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||u.NetworkStatus.loading;return this.variables&&this.networkStatus!==u.NetworkStatus.loading&&!(0,o.equal)(this.variables,e.variables)&&(t=u.NetworkStatus.setVariables),(0,o.equal)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,o.equal)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=(0,d.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(0,d.muteDeprecations)("getLastError",function(){var e;return null===(e=n.observableQuery)||void 0===e?void 0:e.getLastError()})||(this.updateLastDiff(e),(0,o.equal)(r&&r.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.__assign)((0,r.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&(0,o.equal)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===f.get(this.cache)&&(0,o.equal)(t,n.variables)&&(0,o.equal)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var l,c=this,u=new i.DeepMerger,p=(0,s.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null===(l=this.observableQuery)||void 0===l||l.resetNotifications(),"incremental"in e&&(0,s.isNonEmptyArray)(e.incremental)){var h=(0,a.mergeIncrementalData)(this.getDiff().result,e);e.data=h}else if("hasNext"in e&&e.hasNext){var g=this.getDiff();e.data=u.merge(g.result,e.data)}this.graphQLErrors=p,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(m(e,n.errorPolicy)?this.cache.performTransaction(function(i){if(c.shouldWrite(e,n.variables))i.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),c.lastWrite={result:e,variables:n.variables,dmCount:f.get(c.cache)};else if(c.lastDiff&&c.lastDiff.diff.complete)return void(e.data=c.lastDiff.diff.result);var a=c.getDiffOptions(n.variables),s=(0,d.muteDeprecations)("canonizeResults",function(){return i.diff(a)});!c.stopped&&(0,o.equal)(c.variables,n.variables)&&c.updateWatch(n.variables),c.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=u.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=u.NetworkStatus.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function m(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!(0,l.graphQLResultHasError)(e);return!r&&n&&e.data&&(r=!0),r}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{maskFragment:()=>u});var r=n(558),o=n(606),i=n(466),a=n(590),s=n(607),l=n(553),c=n(550);function u(e,t,n,u){if(!n.fragmentMatches)return e;var d=t.definitions.filter(function(e){return e.kind===r.Kind.FRAGMENT_DEFINITION});void 0===u&&((0,i.invariant)(1===d.length,61,d.length),u=d[0].name.value);var f=d.find(function(e){return e.name.value===u});return(0,i.invariant)(!!f,62,u),null==e||(0,a.default)(e,{})?e:(0,s.maskDefinition)(e,f.selectionSet,{operationType:"fragment",operationName:f.name.value,fragmentMap:(0,l.createFragmentMap)((0,c.getFragmentDefinitions)(t)),cache:n,mutableTargets:new o.MapImpl,knownChanged:new o.SetImpl})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MapImpl:()=>i,SetImpl:()=>a,disableWarningsSlot:()=>s,warnOnImproperCacheImplementation:()=>c});var r=n(476),o=(n(466),n(474)),i=o.canUseWeakMap?WeakMap:Map,a=o.canUseWeakSet?WeakSet:Set,s=new r.Slot,l=!1;function c(){l||(l=!0)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{maskDefinition:()=>c});var r=n(558),o=n(565),i=n(551),a=n(608),s=n(606),l=n(466);function c(e,t,n){return s.disableWarningsSlot.withValue(!0,function(){var r=u(e,t,n,!1);return Object.isFrozen(e)&&(0,a.maybeDeepFreeze)(r),r})}function u(e,t,n,a,s){var c=n.knownChanged,d=function(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}(e,n.mutableTargets);if(Array.isArray(e)){for(var f=0,p=Array.from(e.entries());f<p.length;f++){var h=p[f],m=h[0],g=h[1];if(null!==g){var y=u(g,t,n,a,void 0);c.has(y)&&c.add(d),d[m]=y}else d[m]=null}return c.has(d)?d:e}for(var v=0,b=t.selections;v<b.length;v++){var _=b[v],w=void 0;if(a&&c.add(d),_.kind===r.Kind.FIELD){var S=(0,i.resultKeyNameFromField)(_),E=_.selectionSet;if(void 0===(w=d[S]||e[S]))continue;if(E&&null!==w){y=u(e[S],E,n,a,void 0);c.has(y)&&(w=y)}d[S]=w}if(_.kind!==r.Kind.INLINE_FRAGMENT||_.typeCondition&&!n.cache.fragmentMatches(_,e.__typename)||(w=u(e,_.selectionSet,n,a,s)),_.kind===r.Kind.FRAGMENT_SPREAD){var k=_.name.value,T=n.fragmentMap[k]||(n.fragmentMap[k]=n.cache.lookupFragment(k));(0,l.invariant)(T,59,k);var x=(0,o.getFragmentMaskMode)(_);"mask"!==x&&(w=u(e,T.selectionSet,n,"migrate"===x,s))}c.has(w)&&c.add(d)}return"__typename"in e&&!("__typename"in d)&&(d.__typename=e.__typename),Object.keys(d).length!==Object.keys(e).length&&c.add(d),c.has(d)?d:e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{deepFreeze:()=>o,maybeDeepFreeze:()=>i});var r=n(552);function o(e){var t=new Set([e]);return t.forEach(function(e){(0,r.isNonNullObject)(e)&&function(e){0;return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){(0,r.isNonNullObject)(e[n])&&t.add(e[n])})}),e}function i(e){return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{maskOperation:()=>l});var r=n(466),o=n(553),i=n(550),a=n(607),s=n(606);function l(e,t,n){var l;if(!n.fragmentMatches)return e;var c=(0,i.getOperationDefinition)(t);return(0,r.invariant)(c,63),null==e?e:(0,a.maskDefinition)(e,c.selectionSet,{operationType:c.operation,operationName:null===(l=c.name)||void 0===l?void 0:l.value,fragmentMap:(0,o.createFragmentMap)((0,i.getFragmentDefinitions)(t)),cache:n,mutableTargets:new s.Map
1Impl,knownChanged:new s.SetImpl})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LocalState:()=>h});var r=n(314),o=n(466),i=n(554),a=n(611),s=n(565),l=n(553),c=n(550),u=n(551),d=n(588),f=n(578),p=n(475),h=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,o=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),o&&this.setFragmentMatcher(o)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,f.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,f.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,r.__awaiter)(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,o=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,r.__generator)(this,function(e){return t?[2,this.resolveDocument(t,n.data,o,i,this.fragmentMatcher,s).then(function(e){return(0,r.__assign)((0,r.__assign)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,s.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,d.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.__assign)((0,r.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,r.__awaiter)(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.__generator)(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.__assign)((0,r.__assign)({},t),e.exportedVariables)})]:[2,(0,r.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,i.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return i.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,d.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,r.__awaiter)(this,arguments,void 0,function(e,t,n,o,i,a){var s,u,d,f,p,h,m,g,y,v;return void 0===n&&(n={}),void 0===o&&(o={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),(0,r.__generator)(this,function(b){return s=(0,c.getMainDefinition)(e),u=(0,c.getFragmentDefinitions)(e),d=(0,l.createFragmentMap)(u),f=this.collectSelectionsToResolve(s,d),p=s.operation,h=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",g=(m=this).cache,y=m.client,v={fragmentMap:d,context:(0,r.__assign)((0,r.__assign)({},n),{cache:g,client:y}),variables:o,fragmentMatcher:i,defaultOperationType:h,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,false,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,i){return(0,r.__awaiter)(this,void 0,void 0,function(){var a,l,c,d,p,h=this;return(0,r.__generator)(this,function(m){return a=i.fragmentMap,l=i.context,c=i.variables,d=[n],p=function(e){return(0,r.__awaiter)(h,void 0,void 0,function(){var f,p;return(0,r.__generator)(this,function(r){return(t||i.selectionsToResolve.has(e))&&(0,s.shouldInclude)(e,c)?(0,u.isField)(e)?[2,this.resolveField(e,t,n,i).then(function(t){var n;void 0!==t&&d.push(((n={})[(0,u.resultKeyNameFromField)(e)]=t,n))})]:((0,u.isInlineFragment)(e)?f=e:(f=a[e.name.value],(0,o.invariant)(f,21,e.name.value)),f&&f.typeCondition&&(p=f.typeCondition.name.value,i.fragmentMatcher(n,p,l))?[2,this.resolveSelectionSet(f.selectionSet,t,n,i).then(function(e){d.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(p)).then(function(){return(0,f.mergeDeepArray)(d)})]})})},e.prototype.resolveField=function(e,t,n,o){return(0,r.__awaiter)(this,void 0,void 0,function(){var i,a,s,l,c,d,f,h,m,g=this;return(0,r.__generator)(this,function(r){return n?(i=o.variables,a=e.name.value,s=(0,u.resultKeyNameFromField)(e),l=a!==s,c=n[s]||n[a],d=Promise.resolve(c),o.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=n.__typename||o.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(m=h[l?a:s])&&(d=Promise.resolve(p.cacheSlot.withValue(this.cache,m,[n,(0,u.argumentsObjectFromField)(e,i),o.context,{field:e,fragmentMap:o.fragmentMap}])))),[2,d.then(function(n){var r,i;
1if(void 0===n&&(n=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(o.exportedVariables[e.value.value]=n)})}),!e.selectionSet)return n;if(null==n)return n;var a=null!==(i=null===(r=e.directives)||void 0===r?void 0:r.some(function(e){return"client"===e.name.value}))&&void 0!==i&&i;return Array.isArray(n)?g.resolveSubSelectedArray(e,t||a,n,o):e.selectionSet?g.resolveSelectionSet(e.selectionSet,t||a,n,o):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var o=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?o.resolveSubSelectedArray(e,t,n,r):e.selectionSet?o.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(s){if(!r.has(s)){var l=new Set;r.set(s,l),(0,i.visit)(s,{Directive:function(e,t,r,o,i){"client"===e.name.value&&i.forEach(function(e){n(e)&&(0,a.isSelectionNode)(e)&&l.add(e)})},FragmentSpread:function(r,i,s,c,u){var d=t[r.name.value];(0,o.invariant)(d,22,r.name.value);var f=e(d);f.size>0&&(u.forEach(function(e){n(e)&&(0,a.isSelectionNode)(e)&&l.add(e)}),l.add(r),f.forEach(function(e){l.add(e)}))}})}return r.get(s)}(e)},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isConstValueNode:()=>l,isDefinitionNode:()=>o,isExecutableDefinitionNode:()=>i,isSchemaCoordinateNode:()=>h,isSelectionNode:()=>a,isTypeDefinitionNode:()=>d,isTypeExtensionNode:()=>p,isTypeNode:()=>c,isTypeSystemDefinitionNode:()=>u,isTypeSystemExtensionNode:()=>f,isValueNode:()=>s});var r=n(558);function o(e){return i(e)||u(e)||f(e)}function i(e){return e.kind===r.Kind.OPERATION_DEFINITION||e.kind===r.Kind.FRAGMENT_DEFINITION}function a(e){return e.kind===r.Kind.FIELD||e.kind===r.Kind.FRAGMENT_SPREAD||e.kind===r.Kind.INLINE_FRAGMENT}function s(e){return e.kind===r.Kind.VARIABLE||e.kind===r.Kind.INT||e.kind===r.Kind.FLOAT||e.kind===r.Kind.STRING||e.kind===r.Kind.BOOLEAN||e.kind===r.Kind.NULL||e.kind===r.Kind.ENUM||e.kind===r.Kind.LIST||e.kind===r.Kind.OBJECT}function l(e){return s(e)&&(e.kind===r.Kind.LIST?e.values.some(l):e.kind===r.Kind.OBJECT?e.fields.some(e=>l(e.value)):e.kind!==r.Kind.VARIABLE)}function c(e){return e.kind===r.Kind.NAMED_TYPE||e.kind===r.Kind.LIST_TYPE||e.kind===r.Kind.NON_NULL_TYPE}function u(e){return e.kind===r.Kind.SCHEMA_DEFINITION||d(e)||e.kind===r.Kind.DIRECTIVE_DEFINITION}function d(e){return e.kind===r.Kind.SCALAR_TYPE_DEFINITION||e.kind===r.Kind.OBJECT_TYPE_DEFINITION||e.kind===r.Kind.INTERFACE_TYPE_DEFINITION||e.kind===r.Kind.UNION_TYPE_DEFINITION||e.kind===r.Kind.ENUM_TYPE_DEFINITION||e.kind===r.Kind.INPUT_OBJECT_TYPE_DEFINITION}function f(e){return e.kind===r.Kind.SCHEMA_EXTENSION||e.kind===r.Kind.DIRECTIVE_EXTENSION||p(e)}function p(e){return e.kind===r.Kind.SCALAR_TYPE_EXTENSION||e.kind===r.Kind.OBJECT_TYPE_EXTENSION||e.kind===r.Kind.INTERFACE_TYPE_EXTENSION||e.kind===r.Kind.UNION_TYPE_EXTENSION||e.kind===r.Kind.ENUM_TYPE_EXTENSION||e.kind===r.Kind.INPUT_OBJECT_TYPE_EXTENSION}function h(e){return e.kind===r.Kind.TYPE_COORDINATE||e.kind===r.Kind.MEMBER_COORDINATE||e.kind===r.Kind.ARGUMENT_COORDINATE||e.kind===r.Kind.DIRECTIVE_COORDINATE||e.kind===r.Kind.DIRECTIVE_ARGUMENT_COORDINATE}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{mergeOptions:()=>i});var r=n(314),o=n(601);function i(e,t){return(0,o.compact)(e,t,t.variables&&{variables:(0,o.compact)((0,r.__assign)((0,r.__assign)({},e&&e.variables),t.variables))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{from:()=>r});var r=n(546).ApolloLink.from},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TypeOrFieldNameRegExp:()=>v,defaultDataIdFromObject:()=>p,extractFragmentContext:()=>E,fieldNameFromStoreName:()=>b,getTypenameFromStoreObject:()=>y,hasOwn:()=>d,isArray:()=>l.isArray,isNullish:()=>f,makeProcessedFieldsMerger:()=>S,normalizeConfig:()=>m,selectionSetMatchesResult:()=>_,shouldCanonizeResults:()=>g,storeValueIsStoreObject:()=>w});var r=n(565),o=n(553),i=n(550),a=n(551),s=n(578),l=n(577),c=n(552),u=n(601),d=Object.prototype.hasOwnProperty;function f(e){return null==e}function p(e,t){var n=e.__typename,r=e.id,o=e._id;if("string"==typeof n&&(t&&(t.keyObject=f(r)?f(o)?void 0:{_id:o}:{id:r}
1),f(r)&&!f(o)&&(r=o),!f(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var h={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function m(e){return(0,u.compact)(h,e)}function g(e){var t=e.canonizeResults;return void 0===t?h.canonizeResults:t}function y(e,t){return(0,a.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var v=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(v);return t?t[0]:e}function _(e,t,n){return!!(0,c.isNonNullObject)(t)&&((0,l.isArray)(t)?t.every(function(t){return _(e,t,n)}):e.selections.every(function(e){if((0,a.isField)(e)&&(0,r.shouldInclude)(e,n)){var o=(0,a.resultKeyNameFromField)(e);return d.call(t,o)&&(!e.selectionSet||_(e.selectionSet,t[o],n))}return!0}))}function w(e){return(0,c.isNonNullObject)(e)&&!(0,a.isReference)(e)&&!(0,l.isArray)(e)}function S(){return new s.DeepMerger}function E(e,t){var n=(0,o.createFragmentMap)((0,i.getFragmentDefinitions)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{InMemoryCache:()=>w});var r=n(314),o=(n(466),n(476)),i=n(590),a=n(616),s=n(617),l=n(562),c=n(591),u=n(580),d=n(551),f=n(588),p=n(559),h=n(618),m=n(621),g=n(619),y=n(475),v=n(622),b=n(614),_=n(603),w=function(e){function t(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new c.DocumentTransform(f.addTypenameToDocument),n.assumeImmutableResults=!0,n.makeVar=y.makeVar,n.txCount=0,n.config=(0,b.normalizeConfig)(t),n.addTypename=!!n.config.addTypename,n.policies=new v.Policies({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return(0,r.__extends)(t,e),t.prototype.init=function(){var e=this.data=new g.EntityStore.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),null==r||r.resetCaches(),this.storeWriter=new m.StoreWriter(this,this.storeReader=new h.StoreReader({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,b.shouldCanonizeResults)(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,o.wrap)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||l.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if((0,g.supportsResultCaching)(n)){var r=e.optimistic,o=e.id,i=e.variables;return n.makeCacheKey(e.query,e.callback,(0,p.canonicalStringify)({optimistic:r,id:o,variables:i}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,n=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof s.MissingFieldError)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(b.hasOwn.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,r.__assign)((0,r.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;
1return this.watches.size||(0,y.recallCache)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,y.forgetCache)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){p.canonicalStringify.reset(),u.print.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,d.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(b.hasOwn.call(e,"id"))return!1;e=(0,r.__assign)((0,r.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),p.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,y.forgetCache)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,o=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,c=function(e){var r=n,i=r.data,a=r.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=o(n)}finally{--n.txCount,n.data=i,n.optimisticData=a}},u=new Set;return l&&!this.txCount&&this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e){return u.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&u.size?(this.broadcastWatches((0,r.__assign)((0,r.__assign)({},e),{onWatchUpdated:function(e,t){var n=l.call(this,e,t);return!1!==n&&u.delete(e),n}})),u.size&&u.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=this,r=e.lastDiff,o=(0,_.muteDeprecations)("canonizeResults",function(){return n.diff(e)});t&&(e.optimistic&&"string"==typeof t.optimistic&&(o.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,o,r))||r&&(0,i.equal)(r.result,o.result)||e.callback(e.lastDiff=o,r)},t}(a.ApolloCache)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloCache:()=>p});var r=n(314),o=n(476),i=n(543),a=n(562),s=n(553),l=n(578),c=n(561),u=n(602),d=(n(466),n(605)),f=n(603),p=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.wrap)(s.getFragmentQueryDocument,{max:a.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:c.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var n=this;return void 0===t&&(t=!!e.optimistic),(0,f.muteDeprecations)("canonizeResults",function(){return n.read((0,r.__assign)((0,r.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,n=this,o=e.fragment,a=e.fragmentName,s=e.from,c=e.optimistic,f=void 0===c||c,p=(0,r.__rest)(e,["fragment","fragmentName","from","optimistic"]),h=this.getFragmentDoc(o,a),m=void 0===s||"string"==typeof s?s:this.identify(s),g=!!e[Symbol.for("apollo.dataMasking")],y=(0,r.__assign)((0,r.__assign)({},p),{returnPartialData:!0,id:m,query:h,optimistic:f});return new i.Observable(function(i){return n.watch((0,r.__assign)((0,r.__assign)({},y),{immediate:!0,callback:function(s){var c=g?(0,d.maskFragment)(s.result,o,n,a):s.result;if(!t||!(0,u.equalByQuery)(h,{data:t.result},{data:c},e.variables)){var f={data:c,complete:!!s.complete};s.missing&&(f.missing=(0,l.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,r.__assign)((0,r.__assign)({},s),{result:c}),i.next(f)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return void 0===t&&(t=!!e.optimistic),(0,f.muteDeprecations)("canonizeResults",function(){return n.read((0,r.__assign)((0,r.__assign)({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,o=(0,r.__rest)(e,["id","data"]);return this.write(Object.assign(o,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,o=e.fragment,i=e.fragmentName,a=(0,r.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(o,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var o=(0,f.muteDeprecations)("canonizeResults",function(){return n.readQuery(e)}),i=t(o);return null==i?o:(n.writeQuery((0,r.__assign)((0,r.__assign)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var o=(0,f.muteDeprecations)("canonizeResults",function(){return n.readFragment(e)}),i=t(o);return null==i?o:(n.writeFragment((0,r.__assign)((0,r.__assign)({},e),{data:i})),i)}})},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MissingFieldError:()=>o});var r=n(314),o=function(e){function t(n,r,o,i){var a,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=o,s.variables=i,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((a={})[s.path[l]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,r.__extends)(t,e),t}(Error)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{StoreReader:()=>k});var r=n(314),o=n(466),i=n(558),a=n(476),s=n(562),l=n(565),c=n(553),u=n(550),d=n(551),f=n(588),p=n(578),h=n(608),m=(n(552),n(474)),g=n(601),y=n(559),v=n(619),b=n(614),_=n(577),w=n(617),S=n(620);function E(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var k=function(){function e(e){var t=this;this.knownResults=new(m.canUseWeakMap?WeakMap:Map),this.config=(0,g.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,b.shouldCanonizeResults)(e)}),this.canon=e.canon||new S.ObjectCanon,this.executeSelectionSet=(0,a.wrap)(function(e){var n,o=e.context.canonizeResults,i=E(e);i[3]=!o;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?o?(0,r.__assign)((0,r.__assign)({},a),{result:t.canon.admit(a.result)}):a:((0,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||s.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:E,makeCacheKey:function(e,t,n,r){if((0,v.supportsResultCaching)(n.store))return n.store.makeCacheKey(e,(0,d.isReference)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,a.wrap)(function(e){return(0,v.maybeDependOnExistenceOfEntity)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||s.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if((0,v.supportsResultCaching)(r.store))return r.store.makeCacheKey(t,n,r.varStr
1ing)}})}return e.prototype.resetCanon=function(){this.canon=new S.ObjectCanon},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,o=e.rootId,i=void 0===o?"ROOT_QUERY":o,a=e.variables,s=e.returnPartialData,l=void 0===s||s,c=e.canonizeResults,f=void 0===c?this.config.canonizeResults:c,p=this.config.cache.policies;a=(0,r.__assign)((0,r.__assign)({},(0,u.getDefaultValues)((0,u.getQueryDefinition)(n))),a);var h,m=(0,d.makeReference)(i),g=this.executeSelectionSet({selectionSet:(0,u.getMainDefinition)(n).selectionSet,objectOrReference:m,enclosingRef:m,context:(0,r.__assign)({store:t,query:n,policies:p,variables:a,varString:(0,y.canonicalStringify)(a),canonizeResults:f},(0,b.extractFragmentContext)(n,this.config.fragments))});if(g.missing&&(h=[new w.MissingFieldError(T(g.missing),g.missing,n,a)],!l))throw h[0];return{result:g.result,complete:!h,missing:h}},e.prototype.isFresh=function(e,t,n,r){if((0,v.supportsResultCaching)(r.store)&&this.knownResults.get(e)===n){var o=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(o&&e===o.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,d.isReference)(r)&&!s.policies.rootTypenamesById[r.__ref]&&!s.store.has(r.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(r.__ref," object")};var u,m=s.variables,g=s.policies,y=s.store.getFieldValue(r,"__typename"),v=[],b=new p.DeepMerger;function w(e,t){var n;return e.missing&&(u=b.merge(u,((n={})[t]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof y&&!g.rootIdsByTypename[y]&&v.push({__typename:y});var S=new Set(n.selections);S.forEach(function(e){var n,p;if((0,l.shouldInclude)(e,m))if((0,d.isField)(e)){var h=g.readField({fieldName:e.name.value,field:e,variables:s.variables,from:r},s),E=(0,d.resultKeyNameFromField)(e);void 0===h?f.addTypenameToDocument.added(e)||(u=b.merge(u,((n={})[E]="Can't find field '".concat(e.name.value,"' on ").concat((0,d.isReference)(r)?r.__ref+" object":"object "+JSON.stringify(r,null,2)),n))):(0,_.isArray)(h)?h.length>0&&(h=w(t.executeSubSelectedArray({field:e,array:h,enclosingRef:a,context:s}),E)):e.selectionSet?null!=h&&(h=w(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:(0,d.isReference)(h)?h:a,context:s}),E)):s.canonizeResults&&(h=t.canon.pass(h)),void 0!==h&&v.push(((p={})[E]=h,p))}else{var k=(0,c.getFragmentFromSelection)(e,s.lookupFragment);if(!k&&e.kind===i.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(10,e.name.value);k&&g.fragmentMatches(k,y)&&k.selectionSet.selections.forEach(S.add,S)}});var E={result:(0,p.mergeDeepArray)(v),missing:u},k=s.canonizeResults?this.canon.admit(E):(0,h.maybeDeepFreeze)(E);return k.result&&this.knownResults.set(k.result,n),k},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,o=e.array,i=e.enclosingRef,a=e.context,s=new p.DeepMerger;function l(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(o=o.filter(a.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,_.isArray)(e)?l(n.executeSubSelectedArray({field:r,array:e,enclosingRef:i,context:a}),t):r.selectionSet?l(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,d.isReference)(e)?e:i,context:a}),t):e}),{result:a.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function T(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EntityStore:()=>y,maybeDependOnExistenceOfEntity:()=>_,supportsResultCaching:()=>k});var r=n(314),o=n(466),i=n(476),a=n(590),s=n(477),l=n(551),c=n(578),u=n(608),d=n(552),f=n(474),p=n(614),h=Object.create(null),m=function(){return h},g=Object.create(null),y=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,u.maybeDeepFreeze)((0,l.isReference)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,l.isReference)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,l.makeReference)(e);if((0,l.isReference)(e))return e;var r=n.policies.identify(e)[0];if(r){var o=(0,l.makeReference)(r);return t&&n.merge(r,e),o}}}return e.prototype.toObject=function(){return(0,r.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),p.hasOwn.call(this.data,e)){var n=this.data[e];if(n&&p.hasOwn.call(n,t))return n[t]}return"__typename"===t&&p.hasOwn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof w?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),p.hasOwn.call(this.data,e)?this.data[e]:this instanceof w?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,l.isReference)(e)&&(e=e.__ref),(0,l.isReference)(t)&&(t=t.__ref);
1var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){(0,o.invariant)("string"==typeof n,2);var s=new c.DeepMerger(E).merge(i,a);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,p.fieldNameFromStoreName)(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof w||delete s[e]}}),!u.__typename||i&&i.__typename||this.policies.rootTypenamesById[n]!==s.__typename||delete u.__typename,Object.keys(u).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,o=this.lookup(e);if(o){var i=Object.create(null),a=!1,s=!0,c={DELETE:h,INVALIDATE:g,isReference:l.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,l.makeReference)(e)}:t,{store:n})}};if(Object.keys(o).forEach(function(l){var d=(0,p.fieldNameFromStoreName)(l),f=o[l];if(void 0!==f){var y="function"==typeof t?t:t[l]||t[d];if(y){var v=y===m?h:y((0,u.maybeDeepFreeze)(f),(0,r.__assign)((0,r.__assign)({},c),{fieldName:d,storeFieldName:l,storage:n.getStorage(e,l)}));if(v===g)n.group.dirty(e,l);else if(v===h&&(v=void 0),v!==f)i[l]=v,a=!0,f=v}void 0!==f&&(s=!1)}}),a)return this.merge(e,i),s&&(this instanceof w?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,o=this.lookup(e);if(o){var i=this.getFieldValue(o,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:i,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=m,r):m)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(p.hasOwn.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof w&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){p.hasOwn.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&p.hasOwn.call(e,n)||t.delete(n)}),e){var n=e.__META,o=(0,r.__rest)(e,["__META"]);Object.keys(o).forEach(function(e){t.merge(e,o[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof w?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){p.hasOwn.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var o=this;o instanceof w;)o=o.parent;r.forEach(function(e){return o.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!p.hasOwn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){(0,l.isReference)(e)&&(t[e.__ref]=!0),(0,d.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,d.isNonNullObject)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),v=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,i.dep)():null,this.keyMaker=new s.Trie(f.canUseWeakMap)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(b(e,t));var n=(0,p.fieldNameFromStoreName)(t);n!==t&&this.d(b(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(b(e,t),"__exists"===t?"forget":"setDirty")},e}();function b(e,t){return t+"#"+e}function _(e,t){k(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var n=t.policies,r=t.resultCaching,o=void 0===r||r,i=t.seed,a=e.call(this,n,new v(o))||this;return a.stump=new S(a),a.storageTrie=new s.Trie(f.canUseWeakMap),i&&a.replace(i),a}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(y||(y={}));var w=function(e){function t(t,n,r,o){var i=e.call(this,n.policies,o)||this;return i.id=t,i.parent=n,i.replay=r,i.group=o,r(i),i}return(0,r.__extends)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],o=n.lookup(e);o?r?r!==o&&Object.keys(r).forEach(function(n){(0,a.equal)(r[n],o[n])||t.group.dirty(e,n)}):(t.group.dirty(e,"__exists"),Object.keys(o).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,r.__assign)((0,r.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return p.hasOwn.call(this.data,t)?(0,r.__assign)((0,r.__assign)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(y),S=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new v(t.group.caching,t.group))||this}return(0,r.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(w);function E(e,t,n){var r=e[n],o=t[n];return(0,a.equal)(r,o)?r:o}function k(e){return!!(e instanceof y&&e.group.caching)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjectCanon:()=>l});var r=n(314),o=n(477),i=n(552),a=n(474),s=n(577);var l=function(){function e(){this.known=new(a.canUseWeakSet?WeakSet:Set),this.pool=new o.Trie(a.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,i.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,i.isNonNullObject)(e)){var t=function(e){return(0,i.isNonNullObject)(e)?(0,s.isArray)(e)?e.slice(0):(0,r.__assign)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,i.isNonNullObject)(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this);return(l=this.pool.lookupArray(r)).array||this.known.add(l.array=r),l.array;case null:case Object.prototype:if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var l,c=a.length;if(s.sorted.forEach(function(n){a.push(t.admit(e[n]))}),!(l=this.pool.lookupArray(a)).object){var u=l.object=Object.create(o);this.known.add(u),s.sorted.forEach(function(e,t){u[e]=a[c+t]})}return l.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{StoreWriter:()=>g});var r=n(314),o=n(466),i=(n(590),n(477)),a=n(558),s=n(565),l=n(553),c=n(550),u=n(551),d=n(577),f=n(559),p=n(614),h=n(622);function m(e,t,n){var o="".concat(t).concat(n),i=e.flavors.get(o);return i||e.flavors.set(o,i=e.clientOnly===t&&e.deferred===n?e:(0,r.__assign)((0,r.__assign)({},e),{clientOnly:t,deferred:n})),i}var g=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,i=t.query,a=t.result,s=t.dataId,l=t.variables,d=t.overwrite,h=(0,c.getOperationDefinition)(i),m=(0,p.makeProcessedFieldsMerger)();l=(0,r.__assign)((0,r.__assign)({},(0,c.getDefaultValues)(h)),l);var g=(0,r.__assign)((0,r.__assign)({store:e,written:Object.create(null),merge:function(e,t){return m.merge(e,t)}
1,variables:l,varString:(0,f.canonicalStringify)(l)},(0,p.extractFragmentContext)(i,this.fragments)),{overwrite:!!d,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:g});if(!(0,u.isReference)(y))throw(0,o.newInvariantError)(12,a);return g.incomingById.forEach(function(t,r){var o=t.storeObject,i=t.mergeTree,a=(t.fieldNodeSet,(0,u.makeReference)(r));if(i&&i.map.size){var s=n.applyMerges(i,a,o,g);if((0,u.isReference)(s))return;o=s}e.merge(r,o)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,o=e.result,i=e.selectionSet,a=e.context,s=e.mergeTree,l=this.cache.policies,c=Object.create(null),d=n&&l.rootTypenamesById[n]||(0,u.getTypenameFromResult)(o,i,a.fragmentMap)||n&&a.store.get(n,"__typename");"string"==typeof d&&(c.__typename=d);var f=function(){var e=(0,h.normalizeReadFieldOptions)(arguments,c,a.variables);if((0,u.isReference)(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=l.readField((0,r.__assign)((0,r.__assign)({},e),{from:t.storeObject}),a);if(void 0!==n)return n}}return l.readField(e,a)},g=new Set;this.flattenFields(i,o,a,d).forEach(function(e,n){var r,i=(0,u.resultKeyNameFromField)(n),a=o[i];if(g.add(n),void 0!==a){var h=l.getStoreFieldName({typename:d,fieldName:n.name.value,field:n,variables:e.variables}),y=v(s,h),b=t.processFieldValue(a,n,n.selectionSet?m(e,!1,!1):e,y),_=void 0;n.selectionSet&&((0,u.isReference)(b)||(0,p.storeValueIsStoreObject)(b))&&(_=f("__typename",b));var S=l.getMergeFunction(d,n.name.value,_);S?y.info={field:n,typename:d,merge:S}:w(s,h),c=e.merge(c,((r={})[h]=b,r))}else 0});try{var y=l.identify(o,{typename:d,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:f}),S=y[0],E=y[1];n=n||S,E&&(c=a.merge(c,E))}catch(e){if(!n)throw e}if("string"==typeof n){var k=(0,u.makeReference)(n),T=a.written[n]||(a.written[n]=[]);if(T.indexOf(i)>=0)return k;if(T.push(i),this.reader&&this.reader.isFresh(o,k,i,a))return k;var x=a.incomingById.get(n);return x?(x.storeObject=a.merge(x.storeObject,c),x.mergeTree=b(x.mergeTree,s),g.forEach(function(e){return x.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:c,mergeTree:_(s)?void 0:s,fieldNodeSet:g}),k}return c},e.prototype.processFieldValue=function(e,t,n,r){var o=this;return t.selectionSet&&null!==e?(0,d.isArray)(e)?e.map(function(e,i){var a=o.processFieldValue(e,t,n,v(r,i));return w(r,i),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,u.getTypenameFromResult)(t,e,n.fragmentMap));var c=new Map,f=this.cache.policies,p=new i.Trie(!1);return function e(i,h){var g=p.lookup(i,h.clientOnly,h.deferred);g.visited||(g.visited=!0,i.selections.forEach(function(i){if((0,s.shouldInclude)(i,n.variables)){var p=h.clientOnly,g=h.deferred;if(p&&g||!(0,d.isNonEmptyArray)(i.directives)||i.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(p=!0),"defer"===t){var r=(0,u.argumentsObjectFromField)(e,n.variables);r&&!1===r.if||(g=!0)}}),(0,u.isField)(i)){var y=c.get(i);y&&(p=p&&y.clientOnly,g=g&&y.deferred),c.set(i,m(n,p,g))}else{var v=(0,l.getFragmentFromSelection)(i,n.lookupFragment);if(!v&&i.kind===a.Kind.FRAGMENT_SPREAD)throw(0,o.newInvariantError)(14,i.name.value);v&&f.fragmentMatches(v,r,t,n.variables)&&e(v.selectionSet,m(n,p,g))}}}))}(e,n),c},e.prototype.applyMerges=function(e,t,n,i,a){var s,l=this;if(e.map.size&&!(0,u.isReference)(n)){var c,f=(0,d.isArray)(n)||!(0,u.isReference)(t)&&!(0,p.storeValueIsStoreObject)(t)?void 0:t,h=n;f&&!a&&(a=[(0,u.isReference)(f)?f.__ref:f]);var m=function(e,t){return(0,d.isArray)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=m(f,t),r=m(h,t);if(void 0!==r){a&&a.push(t);var s=l.applyMerges(e,n,r,i,a);s!==r&&(c=c||new Map).set(t,s),a&&(0,o.invariant)(a.pop()===t)}}),c&&(n=(0,d.isArray)(h)?h.slice(0):(0,r.__assign)({},h),c.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,i,a&&(s=i.store).getStorage.apply(s,a)):n},e}(),y=[];function v(e,t){var n=e.map;return n.has(t)||n.set(t,y.pop()||{map:new Map}),n.get(t)}function b(e,t){if(e===t||!t||_(t))return e;if(!e||_(e))return t;var n=e.info&&t.info?(0,r.__assign)((0,r.__assign)({},e.info),t.info):e.info||t.info,o=e.map.size&&t.map.size,i={info:n,map:o?new Map:e.map.size?e.map:t.map};if(o){var a=new Set(t.map.keys());
1e.map.forEach(function(e,n){i.map.set(n,b(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){i.map.set(n,b(t.map.get(n),e.map.get(n)))})}return i}function _(e){return!e||!(e.info||e.map.size)}function w(e,t){var n=e.map,r=n.get(t);r&&_(r)&&(y.push(r),n.delete(t))}new Set},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Policies:()=>y,normalizeReadFieldOptions:()=>b});var r=n(314),o=n(466),i=n(551),a=n(552),s=n(614),l=n(577),c=n(475),u=n(623),d=n(606);function f(e){return void 0!==e.args?e.args:e.field?(0,i.argumentsObjectFromField)(e.field,e.variables):null}var p=function(){},h=function(e,t){return t.fieldName},m=function(e,t,n){return(0,n.mergeObjects)(e,t)},g=function(e,t){return t},y=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,r.__assign)({dataIdFromObject:s.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)}return e.prototype.identify=function(e,t){var n,o=this,i=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var a,s=t&&t.storeObject||e,c=(0,r.__assign)((0,r.__assign)({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=b(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),f=i&&this.getTypePolicy(i),p=f&&f.keyFn||this.config.dataIdFromObject;return d.disableWarningsSlot.withValue(!0,function(){for(;p;){var t=p((0,r.__assign)((0,r.__assign)({},e),s),c);if(!(0,l.isArray)(t)){a=t;break}p=(0,u.keyFieldsFnFromSpecifier)(t)}}),a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var o=e[n],i=o.queryType,a=o.mutationType,l=o.subscriptionType,c=(0,r.__rest)(o,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),a&&t.setRootTypename("Mutation",n),l&&t.setRootTypename("Subscription",n),s.hasOwn.call(t.toBeAdded,n)?t.toBeAdded[n].push(c):t.toBeAdded[n]=[c]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),o=t.keyFields,i=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?m:!1===t?g:e.merge}a(r,t.merge),r.keyFn=!1===o?p:(0,l.isArray)(o)?(0,u.keyFieldsFnFromSpecifier)(o):"function"==typeof o?o:r.keyFn,i&&Object.keys(i).forEac
1h(function(t){var r=n[t];r&&(null==r?void 0:r.typename)===e||(r=n[t]={typename:e});var o=i[t];if("function"==typeof o)r.read=o;else{var s=o.keyArgs,c=o.read,d=o.merge;r.keyFn=!1===s?h:(0,l.isArray)(s)?(0,u.keyArgsFnFromSpecifier)(s):"function"==typeof s?s:r.keyFn,"function"==typeof c&&(r.read=c),a(r,d)}r.read&&r.merge&&(r.keyFn=r.keyFn||h)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,o.invariant)(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(s.TypeOrFieldNameRegExp);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!s.hasOwn.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var o=this.supertypeMap.get(e);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,r){if(n.test(e)){var i=t.supertypeMap.get(r);i&&i.forEach(function(e){return o.add(e)})}})),o&&o.size&&o.forEach(function(e){var o=t.getTypePolicy(e),i=o.fields,a=(0,r.__rest)(o,["fields"]);Object.assign(n,a),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var i=e.typeCondition.name.value;if(t===i)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(i))for(var a=this.getSupertypeSet(t,!0),l=[a],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&l.indexOf(t)<0&&l.push(t)},u=!(!n||!this.fuzzySubtypes.size),d=0;d<l.length;++d){var f=l[d];if(f.has(i))return a.has(i)||a.add(i),!0;f.forEach(c),u&&d===l.length-1&&(0,s.selectionSetMatchesResult)(e.selectionSet,n,r)&&(u=!1,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!(!n||!n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,o=this.getFieldPolicy(n,r),a=o&&o.keyFn;if(a&&n)for(var c={typename:n,fieldName:r,field:e.field||null,variables:e.variables},d=f(e);a;){var p=a(d,c);if(!(0,l.isArray)(p)){t=p||r;break}a=(0,u.keyArgsFnFromSpecifier)(p)}return void 0===t&&(t=e.field?(0,i.storeKeyNameFromField)(e.field,e.variables):(0,i.getStoreKeyName)(r,f(e))),!1===t?r:r===(0,s.fieldNameFromStoreName)(t)?t:r+":"+t},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var o=this.getStoreFieldName(e),a=(0,s.fieldNameFromStoreName)(o),l=t.store.getFieldValue(n,o),u=this.getFieldPolicy(e.typename,a),d=u&&u.read;if(d){var f=v(this,n,e,t,t.store.getStorage((0,i.isReference)(n)?n.__ref:n,o));return c.cacheSlot.withValue(this.cache,d,[l,f])}return l}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),o=r&&r.merge;return!o&&n&&(o=(r=this.getTypePolicy(n))&&r.merge),o},e.prototype.runMergeFunction=function(e,t,n,r,o){var i=n.field,a=n.typename,s=n.merge;return s===m?_(r.store)(e,t):s===g?t:(r.overwrite&&(e=void 0),s(e,t,v(this,void 0,{typename:a,fieldName:i.name.value,field:i,variables:r.variables},r,o||Object.create(null))))},e}();function v(e,t,n,r,o){var a=e.getStoreFieldName(n),l=(0,s.fieldNameFromStoreName)(a),c=n.variables||r.variables,u=r.store,d=u.toReference,p=u.canRead;return{args:f(n),field:n.field||null,fieldName:l,storeFieldName:a,variables:c,isReference:i.isReference,toReference:d,storage:o,cache:e.cache,canRead:p,readField:function(){return e.readField(b(arguments,t,c),r)},mergeObjects:_(r.store)}}function b(e,t,n){var o,i=e[0],a=e[1],l=e.length;return"string"==typeof i?o={fieldName:i,from:l>1?a:t}:(o=(0,r.__assign)({},i),s.hasOwn.call(o,"from")||(o.from=t)),void 0===o.variables&&(o.variables=n),o}function _(e){return function(t,n){if((0,l.isArray)(t)||(0,l.isArray)(n))throw(0,o.newInvariantError)(9);if((0,a.isNonNullObject)(t)&&(0,a.isNonNullObject)(n)){var c=e.getFieldValue(t,"__typename"),u=e.getFieldValue(n,"__typename");if(c&&u&&c!==u)return n;
1if((0,i.isReference)(t)&&(0,s.storeValueIsStoreObject)(n))return e.merge(t.__ref,n),t;if((0,s.storeValueIsStoreObject)(t)&&(0,i.isReference)(n))return e.merge(t,n.__ref),n;if((0,s.storeValueIsStoreObject)(t)&&(0,s.storeValueIsStoreObject)(n))return(0,r.__assign)((0,r.__assign)({},t),n)}return n}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{collectSpecifierPaths:()=>p,extractKeyPath:()=>g,getSpecifierPaths:()=>h,keyArgsFnFromSpecifier:()=>f,keyFieldsFnFromSpecifier:()=>d});var r=n(466),o=n(551),i=n(578),a=n(577),s=n(552),l=n(614),c=Object.create(null);function u(e){var t=JSON.stringify(e);return c[t]||(c[t]=Object.create(null))}function d(e){var t=u(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var o=function(e,t){return n.readField(t,e)},i=n.keyObject=p(e,function(e){var i=g(n.storeObject,e,o);return void 0===i&&t!==n.storeObject&&l.hasOwn.call(t,e[0])&&(i=g(t,e,m)),(0,r.invariant)(void 0!==i,5,e.join("."),t),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function f(e){var t=u(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,s=n.fieldName,c=p(e,function(e){var n=e[0],s=n.charAt(0);if("@"!==s)if("$"!==s){if(t)return g(t,e)}else{var c=n.slice(1);if(i&&l.hasOwn.call(i,c)){var u=e.slice(0);return u[0]=c,g(i,u)}}else if(r&&(0,a.isNonEmptyArray)(r.directives)){var d=n.slice(1),f=r.directives.find(function(e){return e.name.value===d}),p=f&&(0,o.argumentsObjectFromField)(f,i);return p&&g(p,e.slice(1))}}),u=JSON.stringify(c);return(t||"{}"!==u)&&(s+=":"+u),s})}function p(e,t){var n=new i.DeepMerger;return h(e).reduce(function(e,r){var o,i=t(r);if(void 0!==i){for(var a=r.length-1;a>=0;--a)(o={})[r[a]]=i,i=o;e=n.merge(e,i)}return e},Object.create(null))}function h(e){var t=u(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,o){(0,a.isArray)(t)?(h(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),(0,a.isArray)(e[o+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function m(e,t){return e[t]}function g(e,t,n){return n=n||m,y(t.reduce(function e(t,r){return(0,a.isArray)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function y(e){return(0,s.isNonNullObject)(e)?(0,a.isArray)(e)?e.map(y):p(Object.keys(e).sort(),function(t){return g(e,t)}):e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BatchHttpLink:()=>y});var r=n(314),o=n(546),i=n(466),a=n(543),s=n(565),l=n(588),c=n(586),u=n(568),d=n(566),f=n(579),p=n(567),h=n(625),m=n(587),g=(0,i.maybe)(function(){return fetch}),y=function(e){function t(t){var n=e.call(this)||this,o=t||{},y=o.uri,v=void 0===y?"/graphql":y,b=o.fetch,_=o.print,w=void 0===_?f.defaultPrinter:_,S=o.includeExtensions,E=o.preserveHeaderCase,k=o.batchInterval,T=o.batchDebounce,x=o.batchMax,O=o.batchKey,C=o.includeUnusedVariables,P=void 0!==C&&C,A=(0,r.__rest)(o,["uri","fetch","print","includeExtensions","preserveHeaderCase","batchInterval","batchDebounce","batchMax","batchKey","includeUnusedVariables"]);var I={http:{includeExtensions:S,preserveHeaderCase:E},options:A.fetchOptions,credentials:A.credentials,headers:A.headers};n.batchDebounce=T,n.batchInterval=k||10,n.batchMax=x||10;return O=O||function(e){var t=e.getContext(),n={http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:t.headers};return(0,p.selectURI)(e,v)+JSON.stringify(n)},n.batcher=new h.BatchLink({batchDebounce:n.batchDebounce,batchInterval:n.batchInterval,batchMax:n.batchMax,batchKey:O,batchHandler:function(e){var t=(0,p.selectURI)(e[0],v),n=e[0].getContext(),o={};if(n.clientAwareness){var h=n.clientAwareness,y=h.name,_=h.version;y&&(o["apollographql-client-name"]=y),_&&(o["apollographql-client-version"]=_)}var S={http:n.http,options:n.fetchOptions,credentials:n.credentials,headers:(0,r.__assign)((0,r.__assign)({},o),n.headers)};var E=e.map(function(e){var t=e.query;return(0,s.hasDirectives)(["client"],t)?(0,l.removeClientSetsFromDocument)(t):t});if(E.some(function(e){return!e}))return(0,c.fromError)(new Error("BatchHttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or enable the `transformOptions.removeClientFields` option."));var k,T=e.map(function(e,t){var n=(0,f.selectHttpOptionsAndBodyInternal)((0,r.__assign)((0,r.__assign)({},e),{query:E[t]}),w,f.fallbackHttpConfig,I,S);return n.body.variables&&!P&&(n.body.variables=(0,m.filterOperationVariables)(n.body.variables,e.query)),n}),x=T.map(function(e){return e.body}),O=T[0].options;if("GET"===O.method)return(0,c.fromError)(new Error("apollo-link-batch-http does not support GET requests"));
1try{O.body=(0,d.serializeFetchParameter)(x,"Payload")}catch(e){return(0,c.fromError)(e)}return O.signal||"undefined"==typeof AbortController||(k=new AbortController,O.signal=k.signal),new a.Observable(function(n){return(b||(0,i.maybe)(function(){return fetch})||g)(t,O).then(function(t){return e.forEach(function(e){return e.setContext({response:t})}),t}).then((0,u.parseAndCheckHttpResponse)(e)).then(function(e){return k=void 0,n.next(e),n.complete(),e}).catch(function(e){k=void 0,e.result&&e.result.errors&&e.result.data&&n.next(e.result),n.error(e)}),function(){k&&k.abort()}})}}),n}return(0,r.__extends)(t,e),t.prototype.request=function(e){return this.batcher.request(e)},t}(o.ApolloLink)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BatchLink:()=>a,OperationBatcher:()=>i.OperationBatcher});var r=n(314),o=n(546),i=n(626),a=function(e){function t(t){var n=e.call(this)||this,r=t||{},o=r.batchDebounce,a=r.batchInterval,s=void 0===a?10:a,l=r.batchMax,c=void 0===l?0:l,u=r.batchHandler,d=void 0===u?function(){return null}:u,f=r.batchKey,p=void 0===f?function(){return""}:f;return n.batcher=new i.OperationBatcher({batchDebounce:o,batchInterval:s,batchMax:c,batchHandler:d,batchKey:p}),t.batchHandler.length<=1&&(n.request=function(e){return n.batcher.enqueueRequest({operation:e})}),n}return(0,r.__extends)(t,e),t.prototype.request=function(e,t){return this.batcher.enqueueRequest({operation:e,forward:t})},t}(o.ApolloLink)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OperationBatcher:()=>i});var r=n(314),o=n(543),i=function(){function e(e){var t=e.batchDebounce,n=e.batchInterval,r=e.batchMax,o=e.batchHandler,i=e.batchKey;this.batchesByKey=new Map,this.scheduledBatchTimerByKey=new Map,this.batchDebounce=t,this.batchInterval=n,this.batchMax=r||0,this.batchHandler=o,this.batchKey=i||function(){return""}}return e.prototype.enqueueRequest=function(e){var t=this,n=(0,r.__assign)((0,r.__assign)({},e),{next:[],error:[],complete:[],subscribers:new Set}),i=this.batchKey(e.operation);return n.observable||(n.observable=new o.Observable(function(e){var r=t.batchesByKey.get(i);r||t.batchesByKey.set(i,r=new Set);var o=0===r.size,a=0===n.subscribers.size;return n.subscribers.add(e),a&&r.add(n),e.next&&n.next.push(e.next.bind(e)),e.error&&n.error.push(e.error.bind(e)),e.complete&&n.complete.push(e.complete.bind(e)),(o||t.batchDebounce)&&t.scheduleQueueConsumption(i),r.size===t.batchMax&&t.consumeQueue(i),function(){var o;n.subscribers.delete(e)&&n.subscribers.size<1&&r.delete(n)&&r.size<1&&(t.consumeQueue(i),null===(o=r.subscription)||void 0===o||o.unsubscribe())}})),n.observable},e.prototype.consumeQueue=function(e){void 0===e&&(e="");var t=this.batchesByKey.get(e);if(this.batchesByKey.delete(e),t&&t.size){var n=[],r=[],i=[],a=[],s=[],l=[];t.forEach(function(e){n.push(e.operation),r.push(e.forward),i.push(e.observable),a.push(e.next),s.push(e.error),l.push(e.complete)});var c=this.batchHandler(n,r)||o.Observable.of(),u=function(e){s.forEach(function(t){t&&t.forEach(function(t){return t(e)})})};return t.subscription=c.subscribe({next:function(e){if(Array.isArray(e)||(e=[e]),a.length!==e.length){var t=new Error("server returned results with length ".concat(e.length,", expected length of ").concat(a.length));return t.result=e,u(t)}e.forEach(function(e,t){a[t]&&a[t].forEach(function(t){return t(e)})})},error:u,complete:function(){l.forEach(function(e){e&&e.forEach(function(e){return e()})})}}),i}},e.prototype.scheduleQueueConsumption=function(e){var t=this;clearTimeout(this.scheduledBatchTimerByKey.get(e)),this.scheduledBatchTimerByKey.set(e,setTimeout(function(){t.consumeQueue(e),t.scheduledBatchTimerByKey.delete(e)},this.batchInterval))},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ErrorLink:()=>l,onError:()=>s});var r=n(314),o=n(575),i=n(543),a=n(546);function s(e){return new a.ApolloLink(function(t,n){return new i.Observable(function(r){var i,a,s;try{i=n(t).subscribe({next:function(i){i.errors?s=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):(0,o.graphQLResultHasProtocolErrors)(i)&&(s=e({protocolErrors:i.extensions[o.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:n})),s?a=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.next(i)},error:function(o){(s=e({operation:t,networkError:o,graphQLErrors:o&&o.result&&o.result.errors||void 0,forward:n}))?a=s.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)}):r.error(o)},complete:function(){s||r.complete.bind(r)()}})}catch(o){e({networkError:o,operation:t,forward:n}),r.error(o)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}var l=function(e){function t(t){var n=e.call(this)||this;return n.link=s(t),n}return(0,r.__extends)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)},t}(a.ApolloLink)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(546),o=n(629),i=n(568),a=n(585),s=n(579),l=n(567),c=n(566),u=n(543),d=n(630),f=n(632),p=n(633);function h({uri:e="/graphql",useGETForQueries:t,isExtractableFile:n=p.default,FormData:h,formDataAppendFile:m=f.default,print:g=s.defaultPrinter,fetch:y,fetchOptions:v,credentials:b,headers:_,includeExtensions:w}={}){const S={http:{includeExtensions:w},options:v,credentials:b,headers:_};return new r.ApolloLink(r=>{const f=r.getContext(),{clientAwareness:{name:p,version:v}={},headers:b}=f,_={http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:{...p&&{"apollographql-client-name":p},...v&&{"apollographql-client-version":v},...b}},{options:w,body:E}=(0,s.selectHttpOptionsAndBodyInternal)(r,g,s.fallbackHttpConfig,S,_),{clone:k,files:T}=(0,d.default)(E,n,"");let x=(0,l.selectURI)(r,e);if(T.size){w.headers&&delete w.headers["content-type"];const e=new(h||FormData);e.append("operations",(0,c.serializeFetchParameter)(k,"Payload"));const t={};let n=0;
1T.forEach(e=>{t[++n]=e}),e.append("map",JSON.stringify(t)),n=0,T.forEach((t,r)=>{m(e,String(++n),r)}),w.body=e}else if(t&&!r.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(w.method="GET"),"GET"===w.method){const{newURI:e,parseError:t}=(0,a.rewriteURIForGET)(x,E);if(t)return new u.Observable(e=>{e.error(t)});x=e}else w.body=(0,c.serializeFetchParameter)(k,"Payload");const{controller:O}=(0,o.createSignalIfSupported)();"boolean"!=typeof O&&(w.signal&&(w.signal.aborted?O.abort():w.signal.addEventListener("abort",()=>{O.abort()},{once:!0})),w.signal=O.signal);const C=y||fetch;return new u.Observable(e=>{let t;return C(x,w).then(e=>(r.setContext({response:e}),e)).then((0,i.parseAndCheckHttpResponse)(r)).then(t=>{e.next(t),e.complete()}).catch(n=>{t||(n.result&&n.result.errors&&n.result.data&&e.next(n.result),e.error(n))}),()=>{t=!0,"boolean"!=typeof O&&O.abort()}})})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createSignalIfSupported:()=>r});var r=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(631);function o(e,t,n=""){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 n)throw new TypeError("Argument 3 `path` must be a string.");const o=new Map,i=new Map;return{clone:function e(n,a,s){if(t(n)){const e=i.get(n);return e?e.push(a):i.set(n,[a]),null}const l=Array.isArray(n)||"undefined"!=typeof FileList&&n instanceof FileList,c=(0,r.default)(n);if(l||c){let t=o.get(n);const r=!t;if(r&&(t=l?[]:n instanceof Object?{}:Object.create(null),o.set(n,t)),!s.has(n)){const o=a?`${a}.`:"",i=new Set(s).add(n);if(l){let a=0;for(const s of n){const n=e(s,o+a++,i);r&&t.push(n)}}else for(const a in n){const s=e(n[a],o+a,i);r&&(t[a]=s)}}return t}return n}(e,n,new Set),files:i}}},(e,t,n)=>{"use strict";function r(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)}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e,t,n){"name"in n?e.append(t,n,n.name):e.append(t,n)}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SentryLink:()=>c});var r=n(575),o=n(546),i=n(543),a=n(635),s=n(639),l=n(641);class c extends o.ApolloLink{options;constructor(e={}){super(),this.options=(0,s.withDefaults)(e)}request(e,t){const{options:n}=this;if(!(n.shouldHandleOperation?.(e)??1))return t(e);n.setTransaction&&(0,l.setTransaction)(e),n.setFingerprint&&(0,l.setFingerprint)(e);const{attachBreadcrumbs:o}=n;if(!o)return t(e);const s=(0,a.makeBreadcrumb)(e,n);return new i.Observable(i=>{const a=t(e).subscribe({next:e=>{s.level=function(e){return e.errors&&e.errors.length>0?"error":"info"}(e),o.includeFetchResult&&(s.data.fetchResult=e),o.includeError&&e.errors&&e.errors.length>0&&(s.data.error=new r.ApolloError({graphQLErrors:e.errors})),i.next(e)},complete:()=>{(0,l.attachBreadcrumbToSentry)(e,s,n),i.complete()},error:t=>{let r;if(s.level="error",function(e){return"object"==typeof e&&null!==e&&"response"in e&&"result"in e&&"statusCode"in e}(t)){const{result:e,response:n,...i}=t;r=i,o.includeFetchResult&&(s.data.fetchResult=e)}else r=t;o.includeError&&(s.data.error=r),(0,l.attachBreadcrumbToSentry)(e,s,n),i.error(t)}});return()=>{a.unsubscribe()}})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{makeBreadcrumb:()=>s});var r=n(636),o=n.n(r),i=n(581),a=n(638);function s(e,t){const n=t.attachBreadcrumbs,r=(0,a.extractDefinition)(e),s={},l=t.uri;l&&(s.url=l);const c=r.name?.value;c&&(s.operationName=c),n.includeQuery&&(s.query=r.loc?.source?.body??(0,i.print)(r)),n.includeVariables&&(s.variables=e.variables),n.includeCache&&(s.cache=e.getContext().cache?.data?.data??void 0);const u=n.includeContext;return u&&(s.context=function(e,t){const n={};return t.forEach(t=>{n[t]=o().get(e,t)}),n}(e.getContext(),u)),{type:"http",category:`graphql.${r.operation}`,data:s}}},(e,t,n)=>{"use strict";const r=n(637),o=new Set(["__proto__","prototype","constructor"]);function i(e){const t=e.split("."),n=[];for(let e=0;e<t.length;e++){let r=t[e];for(;"\\"===r[r.length-1]&&void 0!==t[e+1];)r=r.slice(0,-1)+".",r+=t[++e];n.push(r)}return n.some(e=>o.has(e))?[]:n}e.exports={get(e,t,n){if(!r(e)||"string"!=typeof t)return void 0===n?e:n;const o=i(t);if(0!==o.length){for(let t=0;t<o.length;t++)if(null==(e=e[o[t]])){if(t!==o.length-1)return n;break}return void 0===e?n:e}},set(e,t,n){if(!r(e)||"string"!=typeof t)return e;const o=e,a=i(t);for(let t=0;t<a.length;t++){const o=a[t];r(e[o])||(e[o]={}),t===a.length-1&&(e[o]=n),e=e[o]}return o},delete(e,t){if(!r(e)||"string"!=typeof t)return!1;const n=i(t);for(let t=0;t<n.length;t++){const o=n[t];if(t===n.length-1)return delete e[o],!0;if(e=e[o],!r(e))return!1}},has(e,t){if(!r(e)||"string"!=typeof t)return!1;const n=i(t);if(0===n.length)return!1;for(let t=0;t<n.length;t++){if(!r(e))return!1;if(!(n[t]in e))return!1;e=e[n[t]]}return!0}}},e=>{"use strict";e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},(e,t,n)=>{"use strict";function r(e){return e.query.definitions.find(e=>"OperationDefinition"===e.kind)}n.r(t),n.d(t,{extractDefinition:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultOptions:()=>i,withDefaults:()=>a});var r=n(640),o=n.n(r);const i={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 o()(i,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===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map(function(e){return r(e,n)})}function i(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,n){var o={};return n.isMergeableObject(e)&&i(e).forEach(function(t){o[t]=r(e[t],n)}),i(t).forEach(function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))}),o}function l(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return l(e,n,t)},{})};var c=l;e.exports=c},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FINGERPRINT:()=>
1l,attachBreadcrumbToSentry:()=>u,setFingerprint:()=>c,setTransaction:()=>s});var r=n(401),o=n(642),i=n(638),a=n(643);function s(e){const t=(0,i.extractDefinition)(e).name;t&&(0,r.getCurrentScope)().setTransactionName(t.value)}const l="{{ default }}";function c(e){const t=(0,i.extractDefinition)(e).name;t&&(0,r.getCurrentScope)().setFingerprint([l,t.value])}function u(e,t,n){const r=n.attachBreadcrumbs&&"function"==typeof n.attachBreadcrumbs.transform?n.attachBreadcrumbs.transform(t,e):t;r.data=(0,a.stringifyObjectKeys)(r.data),(0,o.addBreadcrumb)(r)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBreadcrumb:()=>s});var r=n(401),o=n(413),i=n(420);const a=100;function s(e,t){const n=(0,r.getClient)(),s=(0,r.getIsolationScope)();if(!n)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:c=a}=n.getOptions();if(c<=0)return;const u={timestamp:(0,i.dateTimestampInSeconds)(),...e},d=l?(0,o.consoleSandbox)(()=>l(u,t)):u;null!==d&&(n.emit&&n.emit("beforeAddBreadcrumb",d,t),s.addBreadcrumb(d,c))}},(e,t,n)=>{"use strict";function r(e){const t={};for(const[n,r]of Object.entries(e))t[n]="object"==typeof r?o(r):r;return t}function o(e){return JSON.stringify(e,null,2)}n.r(t),n.d(t,{stringify:()=>o,stringifyObjectKeys:()=>r})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>v,default:()=>S,encode:()=>b,toASCII:()=>w,toUnicode:()=>_,ucs2decode:()=>p,ucs2encode:()=>h});const r=2147483647,o=36,i=/^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 d(e){throw new RangeError(l[e])}function f(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(s,".")).split("."),t).join(".");return r+o}function p(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const h=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:o},g=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},y=function(e,t,n){let r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;r+=o)e=c(e/35);return c(r+36*e/(e+38))},v=function(e){const t=[],n=e.length;let i=0,a=128,s=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let u=l>0?l+1:0;u<n;){const l=i;for(let t=1,a=o;;a+=o){u>=n&&d("invalid-input");const l=m(e.charCodeAt(u++));l>=o&&d("invalid-input"),l>c((r-i)/t)&&d("overflow"),i+=l*t;const f=a<=s?1:a>=s+26?26:a-s;if(l<f)break;const p=o-f;t>c(r/p)&&d("overflow"),t*=p}const f=t.length+1;s=y(i-l,f,0==l),c(i/f)>r-a&&d("overflow"),a+=c(i/f),i%=f,t.splice(i++,0,a)}return String.fromCodePoint(...t)},b=function(e){const t=[],n=(e=p(e)).length;let i=128,a=0,s=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let f=l;for(l&&t.push("-");f<n;){let n=r;for(const t of e)t>=i&&t<n&&(n=t);const p=f+1;n-i>c((r-a)/p)&&d("overflow"),a+=(n-i)*p,i=n;for(const n of e)if(n<i&&++a>r&&d("overflow"),n===i){let e=a;for(let n=o;;n+=o){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const i=e-r,a=o-r;t.push(u(g(r+i%a,0))),e=c(i/a)}t.push(u(g(e,0))),s=y(a,p,f===l),a=0,++f}++a,++i}return t.join("")},_=function(e){return f(e,function(e){return i.test(e)?v(e.slice(4).toLowerCase()):e})},w=function(e){return f(e,function(e){return a.test(e)?"xn--"+b(e):e})},S={version:"2.3.1",ucs2:{decode:p,encode:h},decode:v,encode:b,toASCII:w,toUnicode:_}},,(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E,disableExperimentalFragmentVariables:()=>g,disableFragmentWarnings:()=>h,enableExperimentalFragmentVariables:()=>m,gql:()=>f,resetCaches:()=>p});var r=n(314),o=n(701),i=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,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var r=e.name.value,o=c((l=e.loc).source.body.substring(l.start,l.end)),i=a.get(r);i&&!i.has(o)?s&&console.warn("Warning: fragment with name "+r+" 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"):i||a.set(r,i=new Set),i.add(o),t.has(o)||
1(t.add(o),n.push(e))}else n.push(e);var l}),(0,r.__assign)((0,r.__assign)({},e),{definitions:n})}function d(e){var t=c(e);if(!i.has(t)){var n=(0,o.parse)(e,{experimentalFragmentVariables:l,allowLegacyFragmentVariables:l});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");i.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(u(n)))}return i.get(t)}function f(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),d(r)}function p(){i.clear(),a.clear()}function h(){s=!1}function m(){l=!0}function g(){l=!1}var y,v=f,b=p,_=h,w=m,S=g;(y=f||(f={})).gql=v,y.resetCaches=b,y.disableFragmentWarnings=_,y.enableExperimentalFragmentVariables=w,y.disableExperimentalFragmentVariables=S,f.default=f;const E=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Parser:()=>g,parse:()=>d,parseConstValue:()=>p,parseSchemaCoordinate:()=>m,parseType:()=>h,parseValue:()=>f});var r=n(702),o=n(557),i=n(708),a=n(558),s=n(709),l=n(711),c=n(712),u=n(710);function d(e,t){const n=new g(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function f(e,t){const n=new g(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(u.TokenKind.EOF),r}function p(e,t){const n=new g(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseConstValueLiteral();return n.expectToken(u.TokenKind.EOF),r}function h(e,t){const n=new g(e,t);n.expectToken(u.TokenKind.SOF);const r=n.parseTypeReference();return n.expectToken(u.TokenKind.EOF),r}function m(e){const t=(0,c.isSource)(e)?e:new c.Source(e),n=new l.SchemaCoordinateLexer(t),r=new g(e,{lexer:n});r.expectToken(u.TokenKind.SOF);const o=r.parseSchemaCoordinate();return r.expectToken(u.TokenKind.EOF),o}class g{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=(0,c.isSource)(e)?e:new c.Source(e);this._lexer=new s.Lexer(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(u.TokenKind.NAME);return this.node(e,{kind:a.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(u.TokenKind.SOF,this.parseDefinition,u.TokenKind.EOF)})}parseDefinition(){if(this.peek(u.TokenKind.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===u.TokenKind.BRACE_L)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===u.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,r.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(u.TokenKind.BRACE_L))return this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:o.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(u.TokenKind.NAME)&&(r=this.parseName()),this.node(e,{kind:a.Kind.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(u.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(u.TokenKind.PAREN_L,this.parseVariableDefinition,u.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(u.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(u.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(u.TokenKind.DOLLAR),this.node(e,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(u.TokenKind.BRACE_L,this.parseSelection,u.TokenKind.BRACE_R)})}parseSelection(){return this.peek(u.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(u.TokenKind.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:a.Kind.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(u.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(u.TokenKind.PAREN_L,t,u.TokenKind.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(u.TokenKind.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(u.TokenKind.NAME)?this.node(e,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:a.Kind.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.allowLegacyFragmentVariables?this.node(e,{kind:a.Kind.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:a.Kind.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 u.TokenKind.BRACKET_L:return this.parseList(e);case u.TokenKind.BRACE_L:return this.parseObject(e);case u.TokenKind.INT:return this.advanceLexer(),this.node(t,{kind:a.Kind.INT,value:t.value});case u.TokenKind.FLOAT:return this.advanceLexer(),this.node(t,{kind:a.Kind.FLOAT,value:t.value});case u.TokenKind.STRING:case u.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case u.TokenKind.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(t,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(t,{kind:a.Kind.NULL});default:return this.node(t,{kind:a.Kind.ENUM,value:t.value})}case u.TokenKind.DOLLAR:if(e){if(this.expectToken(u.TokenKind.DOLLAR),this._lexer.token.kind===u.TokenKind.NAME){const e=this._lexer.token.value;throw(0,r.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:a.Kind.STRING,value:e.value,block:e.kind===u.TokenKind.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(u.TokenKind.BRACKET_L,()=>this.parseValueLiteral(e),u.TokenKind.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(u.TokenKind.BRACE_L,()=>this.parseObjectField(e),u.TokenKind.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(u.TokenKind.COLON),this.node(t,{kind:a.Kind.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(u.TokenKind.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(u.TokenKind.AT),this.node(t,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(u.TokenKind.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(u.TokenKind.BRACKET_R),t=this.node(e,{kind:a.Kind.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(u.TokenKind.BANG)?this.node(e,{kind:a.Kind.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(u.TokenKind.STRING)||this.peek(u.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);return this.node(e,{kind:a.Kind.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(u.TokenKind.COLON);const n=this.parseNamedType();return this.node(e,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(u.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseFieldDefinition,u.TokenKind.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(u.TokenKind.COLON);const o=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.FIELD_DEFINITION,description:t,name:n,arguments:r,type:o,directives:i})}parseArgumentDefs(){return this.optionalMany(u.TokenKind.PAREN_L,this.parseInputValueDef,u.TokenKind.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(u.TokenKind.COLON);const r=this.parseTypeReference();let o;this.expectOptionalToken(u.TokenKind.EQUALS)&&(o=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(e,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:o,directives:i})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:o,fields:i})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(e,{kind:a.Kind.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(u.TokenKind.EQUALS)?this.delimitedMany(u.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(e,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:o})}parseEnumValuesDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseEnumValueDefinition,u.TokenKind.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,r.syntaxError)(this._lexer.source,this._lexer.token.start,`${y(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 n=this.parseName(),r=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(u.TokenKind.BRACE_L,this.parseInputValueDef,u.TokenKind.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===u.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":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(u.TokenKind.BRACE_L,this.parseOperationTypeDefinition,u.TokenKind.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),
1r=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===o.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:o})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinitionExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:a.Kind.DIRECTIVE_EXTENSION,name:t,directives:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(u.TokenKind.AT);const n=this.parseName(),r=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(e,{kind:a.Kind.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,directives:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(u.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(i.DirectiveLocation,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(u.TokenKind.AT),n=this.parseName();let r,o;return!t&&this.expectOptionalToken(u.TokenKind.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(u.TokenKind.PAREN_L)&&(o=this.parseName(),this.expectToken(u.TokenKind.COLON),this.expectToken(u.TokenKind.PAREN_R)),t?o?this.node(e,{kind:a.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:o}):this.node(e,{kind:a.Kind.DIRECTIVE_COORDINATE,name:n}):r?o?this.node(e,{kind:a.Kind.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:o}):this.node(e,{kind:a.Kind.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:a.Kind.TYPE_COORDINATE,name:n})}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,r.syntaxError)(this._lexer.source,t.start,`Expected ${v(e)}, found ${y(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==u.TokenKind.NAME||t.value!==e)throw(0,r.syntaxError)(this._lexer.source,t.start,`Expected "${e}", found ${y(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===u.TokenKind.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return(0,r.syntaxError)(this._lexer.source,t.start,`Unexpected ${y(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==u.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,r.syntaxError)(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function y(e){const t=e.value;return v(e.kind)+(null!=t?` "${t}"`:"")}function v(e){return(0,s.isPunctuatorTokenKind)(e)?`"${e}"`:e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{syntaxError:()=>o});var r=n(703);function o(e,t,n){return new r.GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{GraphQLError:()=>a,formatError:()=>c,printError:()=>l});var r=n(704),o=n(705),i=n(707);
1class a extends Error{constructor(e,...t){var n,i,l;const{nodes:c,source:u,positions:d,path:f,originalError:p,extensions:h}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=f?f:void 0,this.originalError=null!=p?p:void 0,this.nodes=s(Array.isArray(c)?c:c?[c]:void 0);const m=s(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=u?u:null==m||null===(i=m[0])||void 0===i?void 0:i.source,this.positions=null!=d?d:null==m?void 0:m.map(e=>e.start),this.locations=d&&u?d.map(e=>(0,o.getLocation)(u,e)):null==m?void 0:m.map(e=>(0,o.getLocation)(e.source,e.start));const g=(0,r.isObjectLike)(null==p?void 0:p.extensions)?null==p?void 0:p.extensions:void 0;this.extensions=null!==(l=null!=h?h:g)&&void 0!==l?l: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!=p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):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,i.printLocation)(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+(0,i.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}function l(e){return e.toString()}function c(e){return e.toJSON()}},(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&null!==e}n.r(t),n.d(t,{isObjectLike:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getLocation:()=>i});var r=n(706);const o=/\r\n|[\n\r]/g;function i(e,t){let n=0,i=1;for(const a of e.body.matchAll(o)){if("number"==typeof a.index||(0,r.invariant)(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}},(e,t,n)=>{"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.r(t),n.d(t,{invariant:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{printLocation:()=>o,printSourceLocation:()=>i});var r=n(705);function o(e){return i(e.source,(0,r.getLocation)(e.source,e.start))}function i(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,l=1===t.line?n:0,c=t.column+l,u=`${e.name}:${s}:${c}\n`,d=r.split(/\r\n|[\n\r]/g),f=d[o];if(f.length>120){const e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return u+a([[`${s} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+a([[s-1+" |",d[o-1]],[`${s} |`,f],["|","^".padStart(c)],[`${s+1} |`,d[o+1]]])}function a(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{DirectiveLocation:()=>r}),function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",e.DIRECTIVE_DEFINITION="DIRECTIVE_DEFINITION"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Lexer:()=>l,createToken:()=>m,isPunctuatorTokenKind:()=>c,printCodePointAt:()=>h,readName:()=>O});var r=n(702),o=n(557),i=n(582),a=n(583),s=n(710);class l{constructor(e){const t=new o.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 d(e,t){return f(e.charCodeAt(t))&&p(e.charCodeAt(t+1))}function f(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return s.TokenKind.EOF;
vendor: 4,448 bytes, line 1
1if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,r,i){const a=e.line,s=1+n-e.lineStart;return new o.Token(t,n,r,a,s,i)}function g(e,t){const n=e.source.body,o=n.length;let i=t;for(;i<o;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return y(e,i);case 33:return m(e,s.TokenKind.BANG,i,i+1);case 36:return m(e,s.TokenKind.DOLLAR,i,i+1);case 38:return m(e,s.TokenKind.AMP,i,i+1);case 40:return m(e,s.TokenKind.PAREN_L,i,i+1);case 41:return m(e,s.TokenKind.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return m(e,s.TokenKind.SPREAD,i,i+3);break;case 58:return m(e,s.TokenKind.COLON,i,i+1);case 61:return m(e,s.TokenKind.EQUALS,i,i+1);case 64:return m(e,s.TokenKind.AT,i,i+1);case 91:return m(e,s.TokenKind.BRACKET_L,i,i+1);case 93:return m(e,s.TokenKind.BRACKET_R,i,i+1);case 123:return m(e,s.TokenKind.BRACE_L,i,i+1);case 124:return m(e,s.TokenKind.PIPE,i,i+1);case 125:return m(e,s.TokenKind.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?x(e,i):_(e,i)}if((0,a.isDigit)(t)||45===t)return v(e,i,t);if((0,a.isNameStart)(t))return O(e,i);throw(0,r.syntaxError)(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":u(t)||d(n,i)?`Unexpected character: ${h(e,i)}.`:`Invalid character: ${h(e,i)}.`)}return m(e,s.TokenKind.EOF,o,o)}function y(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(10===e||13===e)break;if(u(e))++o;else{if(!d(n,o))break;o+=2}}return m(e,s.TokenKind.COMMENT,t,o,n.slice(t+1,o))}function v(e,t,n){const o=e.source.body;let i=t,l=n,c=!1;if(45===l&&(l=o.charCodeAt(++i)),48===l){if(l=o.charCodeAt(++i),(0,a.isDigit)(l))throw(0,r.syntaxError)(e.source,i,`Invalid number, unexpected digit after 0: ${h(e,i)}.`)}else i=b(e,i,l),l=o.charCodeAt(i);if(46===l&&(c=!0,l=o.charCodeAt(++i),i=b(e,i,l),l=o.charCodeAt(i)),69!==l&&101!==l||(c=!0,l=o.charCodeAt(++i),43!==l&&45!==l||(l=o.charCodeAt(++i)),i=b(e,i,l),l=o.charCodeAt(i)),46===l||(0,a.isNameStart)(l))throw(0,r.syntaxError)(e.source,i,`Invalid number, expected digit but got: ${h(e,i)}.`);return m(e,c?s.TokenKind.FLOAT:s.TokenKind.INT,t,i,o.slice(t,i))}function b(e,t,n){if(!(0,a.isDigit)(n))throw(0,r.syntaxError)(e.source,t,`Invalid number, expected digit but got: ${h(e,t)}.`);const o=e.source.body;let i=t+1;for(;(0,a.isDigit)(o.charCodeAt(i));)++i;return i}function _(e,t){const n=e.source.body,o=n.length;let i=t+1,a=i,l="";for(;i<o;){const o=n.charCodeAt(i);if(34===o)return l+=n.slice(a,i),m(e,s.TokenKind.STRING,t,i+1,l);if(92===o){l+=n.slice(a,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?w(e,i):S(e,i):T(e,i);l+=t.value,i+=t.size,a=i;continue}if(10===o||13===o)break;if(u(o))++i;else{if(!d(n,i))throw(0,r.syntaxError)(e.source,i,`Invalid character within String: ${h(e,i)}.`);i+=2}}throw(0,r.syntaxError)(e.source,i,"Unterminated string.")}function w(e,t){const n=e.source.body;let o=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!u(o))break;return{value:String.fromCodePoint(o),size:i}}if(o=o<<4|k(e),o<0)break}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function S(e,t){const n=e.source.body,o=E(n,t+2);if(u(o))return{value:String.fromCodePoint(o),size:6};if(f(o)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=E(n,t+8);if(p(e))return{value:String.fromCodePoint(o,e),size:12}}throw(0,r.syntaxError)(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function E(e,t){return k(e.charCodeAt(t))<<12|k(e.charCodeAt(t+1))<<8|k(e.charCodeAt(t+2))<<4|k(e.charCodeAt(t+3))}function k(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function T(e,t){const n=e.source.body;switch(n.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,r.syntaxError)(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function x(e,t){const n=e.source.body,o=n.length;let a=e.lineStart,l=t+3,c=l,f="";
1const p=[];for(;l<o;){const o=n.charCodeAt(l);if(34===o&&34===n.charCodeAt(l+1)&&34===n.charCodeAt(l+2)){f+=n.slice(c,l),p.push(f);const r=m(e,s.TokenKind.BLOCK_STRING,t,l+3,(0,i.dedentBlockStringLines)(p).join("\n"));return e.line+=p.length-1,e.lineStart=a,r}if(92!==o||34!==n.charCodeAt(l+1)||34!==n.charCodeAt(l+2)||34!==n.charCodeAt(l+3))if(10!==o&&13!==o)if(u(o))++l;else{if(!d(n,l))throw(0,r.syntaxError)(e.source,l,`Invalid character within String: ${h(e,l)}.`);l+=2}else f+=n.slice(c,l),p.push(f),13===o&&10===n.charCodeAt(l+1)?l+=2:++l,f="",c=l,a=l;else f+=n.slice(c,l),c=l+1,l+=4}throw(0,r.syntaxError)(e.source,l,"Unterminated string.")}function O(e,t){const n=e.source.body,r=n.length;let o=t+1;for(;o<r;){const e=n.charCodeAt(o);if(!(0,a.isNameContinue)(e))break;++o}return m(e,s.TokenKind.NAME,t,o,n.slice(t,o))}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{TokenKind:()=>r}),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SchemaCoordinateLexer:()=>l});var r=n(702),o=n(557),i=n(583),a=n(709),s=n(710);class l{line=1;lineStart=0;constructor(e){const t=new o.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 n=e.source.body,o=n.length,l=t;if(l<o){const t=n.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,i.isNameStart)(t))return(0,a.readName)(e,l);throw(0,r.syntaxError)(e.source,l,`Invalid character: ${(0,a.printCodePointAt)(e,l)}.`)}return(0,a.createToken)(e,s.TokenKind.EOF,o,o)}(this,e.end);e.next=t,t.prev=e,e=t}return e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Source:()=>a,isSource:()=>s});var r=n(555),o=n(556),i=n(713);class a{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||(0,r.devAssert)(!1,`Body must be a string. Received: ${(0,o.inspect)(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||(0,r.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,r.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,a)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instanceOf:()=>o});var r=n(556);const o=globalThis.process&&!0?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const o=t.prototype[Symbol.toStringTag];if(o===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=(0,r.inspect)(e);throw new Error(`Cannot use ${o} "${t}" 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}},,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Action:()=>p,Await:()=>Nr,AwaitContextProvider:()=>bn,BrowserRouter:()=>aa,CRITICAL_CSS_DATA_ATTRIBUTE:()=>Ui,DataRouterContext:()=>fn,DataRouterStateContext:()=>pn,ENABLE_DEV_WARNINGS:()=>kn,ErrorResponseImpl:()=>_e,FetchersContext:()=>yn,Form:()=>da,FrameworkContext:()=>Li,HashRouter:()=>sa,HistoryRouter:()=>la,IDLE_BLOCKER:()=>$e,IDLE_FETCHER:()=>We,IDLE_NAVIGATION:()=>Ge,Link:()=>ca,Links:()=>Hi,LocationContext:()=>wn,MemoryRouter:()=>Ar,Meta:()=>$i,NO_BODY_STATUS_CODES:()=>Yo,NavLink:()=>ua,Navigate:()=>Ir,NavigationContext:()=>_n,Outlet:()=>Rr,PROTOCOL_RELATIVE_URL_REGEX:()=>u,PrefetchPageLinks:()=>Vi,RSCRouterContext:()=>hn,RemixErrorBoundary:()=>Xi,Route:()=>jr,RouteContext:()=>Sn,Router:()=>Mr,RouterContextProvider:()=>C,RouterProvider:()=>xr,Routes:()=>Dr,SINGLE_FETCH_REDIRECT_STATUS:()=>$o,Scripts:()=>Ji,ScrollRestoration:()=>fa,SingleFetchRedirectSymbol:()=>Go,StaticRouter:()=>Ia,StaticRouterProvider:()=>Ra,StreamTransfer:()=>Ko,URL_LIMIT:()=>Oi,ViewTransitionContext:()=>gn,WithComponentProps:()=>Vr,WithErrorBoundaryProps:()=>Kr,WithHydrateFallbackProps:()=>Wr,convertRoutesToDataRoutes:()=>R,createBrowserHistory:()=>y,createBrowserRouter:()=>na,createClientRoutes:()=>_i,createClientRoutesWithHMRRevalidationOptOut:()=>yi,createContext:()=>O,createHashHistory:()=>v,createHashRouter:()=>ra,createMemoryHistory:()=>g,createMemoryRouter:()=>kr,createPath:()=>E,createRequestInit:()=>Bo,createRouter:()=>Xe,createRoutesFromChildren:()=>Br,createRoutesFromElements:()=>zr,createSearchParams:()=>eo,createServerRoutes:()=>gi,createStaticHandler:()=>Ze,createStaticHandler2:()=>Da,createStaticRouter:()=>Na,data:()=>me,decodeRedirectErrorDigest:()=>Cn,decodeRouteErrorResponseDigest:()=>Pn,decodeViaTurboStream:()=>ti,encode:()=>Fo,escapeHtml:()=>Ho,generatePath:()=>K,getManifestPath:()=>Ri,getPatchRoutesOnNavigationFunction:()=>Ai,getPathsWithAncestors:()=>Ci,getSingleFetchDataStrategyImpl:()=>Qo,getStaticContextFromError:()=>et,getTurboStreamSingleFetchDataStrategy:()=>Jo,hasInvalidProtocol:()=>At,hydrationRouteProperties:()=>Er,instrumentHandler:()=>Oe,invariant:()=>b,isDataWithResponseInit:()=>Xt,isMutationMethod:()=>rn,isRedirectResponse:()=>tn,isRedirectStatusCode:()=>en,isResponse:()=>Zt,isRouteErrorResponse:()=>we,mapRouteProperties:()=>Sr,matchPath:()=>J,matchRoutes:()=>M,matchRoutesImpl:()=>D,noActionDefinedError:()=>bi,parsePath:()=>k,redirect:()=>ge,redirectDocument:()=>ye,renderMatches:()=>Ur,replace:()=>ve,resolvePath:()=>ne,setIsHydrated:()=>Ki,shouldHydrateRouteLoader:()=>Ei,singleFetchUrl:()=>Zo,stripBasename:()=>ee,stripIndexParam:()=>Xo,useActionData:()=>sr,useAsyncError:()=>ur,useAsyncValue:()=>cr,useBeforeUnload:()=>Ca,useBlocker:()=>fr,useFetcher:()=>Sa,useFetchers:()=>Ea,useFogOFWarDiscovery:()=>Ii,useFormAction:()=>wa,useHref:()=>An,useInRouterContext:()=>In,useLinkClickHandler:()=>ga,useLoaderData:()=>ir,useLocation:()=>Rn,useMatch:()=>Mn,useMatches:()=>or,useNavigate:()=>Ln,useNavigation:()=>nr,useNavigationType:()=>jn,useOutlet:()=>zn,useOutletContext:()=>Bn,useParams:()=>Un,usePrompt:()=>Pa,useResolvedPath:()=>Hn,useRevalidator:()=>rr,useRoute:()=>mr,useRouteError:()=>lr,useRouteLoaderData:()=>ar,useRouterState:()=>yr,useRoutes:()=>Vn,useScrollRestoration:()=>Oa,useSearchParams:()=>ya,useSubmit:()=>_a,useViewTransitionState:()=>Aa,warnOnce:()=>br,withComponentProps:()=>qr,withErrorBoundaryProps:()=>Jr,withHydrateFallbackProps:()=>$r});var r=n(396),o=e=>{throw TypeError(e)},i=(e,t,n)=>t.has(e)||o("Cannot "+n),a=(e,t,n)=>(i(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?o("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),l=(e,t,n,r)=>(i(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),c=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,u=/^[\\/]{2}/;
2/**
3 * react-router v7.18.1
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 d(e,t){return t+e.replace(/\\/g,"/")}var f,p=(e=>(e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE",e))(p||{}),h="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:n=["/"],initialIndex:r,v5Compat:o=!1}=e;t=n.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.mask));let i=l(r??t.length-1),a="POP",s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[i]}function u(e,n=null,r,o){let i=S(t?c().pathname:"/",e,n,r,o);return _("/"===i.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),i}function d(e){return"string"==typeof e?e:E(e)}return{get index(){return i},get action(){return a},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?k(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a="PUSH";let r=m(e)?e:u(e,n);i+=1,t.splice(i,t.length,r),o&&s&&s({action:a,location:r,delta:1})},replace(e,n){a="REPLACE";let r=m(e)?e:u(e,n);t[i]=r,o&&s&&s({action:a,location:r,delta:0})},go(e){a="POP";let n=l(i+e),r=t[n];i=n,s&&s({action:a,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function y(e={}){return T(function(e,t){let n=t.state?.masked,{pathname:r,search:o,hash:i}=n||e.location;return S("",{pathname:r,search:o,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"==typeof t?t:E(t)},null,e)}function v(e={}){return T(function(e,t){let{pathname:n="/",search:r="",hash:o=""}=k(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),S("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:E(t))},function(e,t){_("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}function b(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 w(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 S(e,t,n=null,r,o){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?k(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),mask:o}}function E({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"
11===n.charAt(0)?n:"#"+n),e}function k(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,c=u();function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:p.location,delta:t})}function f(e){return x(o,e)}null==c&&(c=0,a.replaceState({...a.state,idx:c},""));let p={get action(){return s},get location(){return e(o,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(h,d),l=e,()=>{o.removeEventListener(h,d),l=null}},createHref:e=>t(o,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){s="PUSH";let r=m(e)?e:S(p.location,e,t);n&&n(r,e),c=u()+1;let d=w(r,c),f=p.createHref(r.mask||r);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;o.location.assign(f)}i&&l&&l({action:s,location:p.location,delta:1})},replace:function(e,t){s="REPLACE";let r=m(e)?e:S(p.location,e,t);n&&n(r,e),c=u();let o=w(r,c),d=p.createHref(r.mask||r);a.replaceState(o,"",d),i&&l&&l({action:s,location:p.location,delta:0})},go:e=>a.go(e)};return p}function x(e,t,n=!1){let r="http://localhost";e&&(r="null"!==e.location.origin?e.location.origin:e.location.href),b(r,"No window.location.(origin|href) available to create URL");let o="string"==typeof t?t:E(t);return o=o.replace(/ $/,"%20"),!n&&u.test(o)&&(o=r+o),new URL(o,r)}function O(e){return{defaultValue:e}}var C=class{constructor(e){if(s(this,f,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(a(this,f).has(e))return a(this,f).get(e);if(void 0!==e.defaultValue)return e.defaultValue;throw new Error("No value found for context")}set(e,t){a(this,f).set(e,t)}};f=new WeakMap;var P=new Set(["lazy","caseSensitive","path","id","index","children"]);var A=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function I(e){return A.has(e)}function R(e,t,n=[],r={},o=!1){return e.map((e,i)=>{let a=[...n,String(i)],s="string"==typeof e.id?e.id:a.join("-");if(b(!0!==e.index||!e.children,"Cannot specify children on an index route"),b(o||!r[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 n={...e,id:s};return r[s]=j(n,t(n)),n}{let n={...e,id:s,children:void 0};return r[s]=j(n,t(n)),e.children&&(n.children=R(e.children,t,a,r,o)),n}})}function j(e,t){return Object.assign(e,{...t,..."object"==typeof t.lazy&&null!=t.lazy?{lazy:{...e.lazy,...t.lazy}}:{}})}function M(e,t,n="/"){return D(e,t,n,!1)}function D(e,t,n,r,o){let i=ee(("string"==typeof t?k(t):t).pathname||"/",n);if(null==i)return null;let a=o??L(e),s=null,l=Z(i);for(let e=0;null==s&&e<a.length;++e)s=Y(a[e],l,r);return s}function N(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function L(e){let t=F(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function F(e,t=[],n=[],r="",o=!1){let i=(e,i,a=o,s)=>{let l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;b(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=ce([r,l.relativePath]),u=n.concat(l);e.children&&e.children.length>0&&(b(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),F(e.children,t,u,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:$(c,e.index),routesMeta:u.map((e,t)=>{let[n,r]=X(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of B(e.path))i(e,t,!0,n);else i(e,t)}),t}function B(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=B(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var z=/^:[\w-]+$/,U=3,H=2,V=1,q=10,G=-2,W=e=>"*"===e;function $(e,t){let n=e.split("/"),r=n.length;return n.some(W)&&(r+=G),t&&(r+=H),n.filter(e=>!W(e)).reduce((e,t)=>e+(z.test(t)?U:""===t?V:q),r)}function Y(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let e=0;e<r.length;++e){let s=r[e],l=e===r.length-1,c="/"===i?t:t.slice(i.length)||"/",u={path:s.relativePath,caseSensitive:s.caseSensitive,end:l},d=s.matcher&&s.compiledParams?Q(u,c,s.matcher,s.compiledParams):J(u,c),f=s.route;if(!d&&l&&n&&!r[r.length-1].route.index&&(d=J({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!d)return null;
11Object.assign(o,d.params),a.push({params:o,pathname:ce([i,d.pathname]),pathnameBase:de(ce([i,d.pathnameBase])),route:f}),"/"!==d.pathnameBase&&(i=ce([i,d.pathnameBase]))}return a}function K(e,t={}){let n=e;n.endsWith("*")&&"*"!==n&&!n.endsWith("/*")&&(_(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",o=e=>null==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&"*"===e)return o(t["*"]);const i=e.match(/^:([\w-]+)(\??)(.*)/);if(i){const[,e,n,r]=i;let a=t[e];return b("?"===n||null!=a,`Missing ":${e}" param`),encodeURIComponent(o(a))+r}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function J(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=X(e.path,e.caseSensitive,e.end);return Q(e,t,n,r)}function Q(e,t,n,r){let o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const o=s[r];return e[t]=n&&!o?void 0:(o||"").replace(/%2F/g,"/"),e},{}),pathname:i,pathnameBase:a,pattern:e}}function X(e,t=!1,n=!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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,o,i)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}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 n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var te=e=>c.test(e);function ne(e,t="/"){let n,{pathname:r,search:o="",hash:i=""}="string"==typeof e?k(e):e;return r?(r=le(r),n=r.startsWith("/")?re(r.substring(1),"/"):re(r,t)):n=t,{pathname:n,search:fe(o),hash:pe(i)}}function re(e,t){let n=ue(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function oe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ie(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function ae(e){let t=ie(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function se(e,t,n,r=!1){let o;"string"==typeof e?o=k(e):(o={...e},b(!o.pathname||!o.pathname.includes("?"),oe("?","pathname","search",o)),b(!o.pathname||!o.pathname.includes("#"),oe("#","pathname","hash",o)),b(!o.search||!o.search.includes("#"),oe("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=ne(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var le=e=>e.replace(/[\\/]{2,}/g,"/"),ce=e=>le(e.join("/")),ue=e=>e.replace(/\/+$/,""),de=e=>ue(e).replace(/^\/*/,"/"),fe=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",pe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",he=class{constructor(e,t){this.type="DataWithResponseInit",this.data=e,this.init=t||null}};function me(e,t){return new he(e,"number"==typeof t?{status:t}:t)}var ge=(e,t=302)=>{let n=t;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let r=new Headers(n.headers);return r.set("Location",e),new Response(null,{...n,headers:r})},ye=(e,t)=>{let n=ge(e,t);return n.headers.set("X-Remix-Reload-Document","true"),n},ve=(e,t)=>
11{let n=ge(e,t);return n.headers.set("X-Remix-Replace","true"),n},be=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],_e=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function we(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function Se(e){let t=e.map(e=>e.route.path).filter(Boolean);return ce(t)||"/"}var Ee="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ke(e,t){let n=e;if("string"!=typeof n||!c.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Ee)try{let e=new URL(window.location.href),r=u.test(n)?new URL(d(n,e.protocol)):new URL(n),i=ee(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(e){_(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}var Te=Symbol("Uninstrumented");function xe(e,t){let n={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(n);for(let r of t)e[r]&&n[r].push(e[r])}}));let r={};if("function"==typeof t.lazy&&n.lazy.length>0){let e=Ce(n.lazy,t.lazy,()=>{});e&&(r.lazy=e)}if("object"==typeof t.lazy){let e=t.lazy;["middleware","loader","action"].forEach(t=>{let o=e[t],i=n[`lazy.${t}`];if("function"==typeof o&&i.length>0){let e=Ce(i,o,()=>{});e&&(r.lazy=Object.assign(r.lazy||{},{[t]:e}))}})}return["loader","action"].forEach(e=>{let o=t[e];if("function"==typeof o&&n[e].length>0){let t=o[Te]??o,i=Ce(n[e],t,(...e)=>Ae(e[0]));i&&("loader"===e&&!0===t.hydrate&&(i.hydrate=!0),i[Te]=t,r[e]=i)}}),t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=e[Te]??e,r=Ce(n.middleware,t,(...e)=>Ae(e[0]));return r?(r[Te]=t,r):e})),r}function Oe(e,t){let n={request:[]};t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}}));let r=e;return n.request.length>0&&(r=Ce(n.request,e,(...e)=>{let[t,n]=e;return{request:Re(t),context:null!=n?je(n):n}})),r}function Ce(e,t,n){return 0===e.length?null:async(...r)=>{let o=await Pe(e,n(...r),()=>t(...r),e.length-1);if("error"===o.type)throw o.value;return o.value}}async function Pe(e,t,n,r){let o,i=e[r];if(i){let a,s=async()=>(a?console.error("You cannot call instrumented handlers more than once"):a=Pe(e,t,n,r-1),o=await a,b(o,"Expected a result"),"error"===o.type&&o.value instanceof Error?{status:"error",error:o.value}:{status:"success",error:void 0});try{await i(s,t)}catch(e){console.error("An instrumentation function threw an error:",e)}a||await s(),await a}else try{let e=await n();o={type:"success",value:e}}catch(e){o={type:"error",value:e}}return o||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function Ae(e){let{request:t,context:n,params:r,pattern:o}=e;return{request:Re(t),params:{...r},pattern:o,context:je(n)}}function Ie(e,t){return{currentUrl:E(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 Re(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function je(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 De,Ne,Le,Fe,Be=["POST","PUT","PATCH","DELETE"],ze=new Set(Be),Ue=["GET",...Be],He=new Set(Ue),Ve=new Set([301,302,303,307,308]),qe=new Set([307,308]),Ge={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},We={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$e={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ye=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),Ke="remix-router-transitions",Je=Symbol("ResetLoaderData"),Qe=class{constructor(e){s(this,De),s(this,Ne),s(this,Le),s(this,Fe),l(this,De,e),l(this,Ne,L(e))}get stableRoutes(){return a(this,De)}get activeRoutes(){return a(this,Le)??a(this,De)}get branches(){return a(this,Fe)??a(this,Ne)}get hasHMRRoutes(){return null!=a(this,Le)}setRoutes(e){l(this,De,e),l(this,Ne,L(e))}setHmrRoutes(e){l(this,Le,e),l(this,Fe,L(e))}commitHmrRoutes(){a(this,Le)&&(l(this,De,a(this,Le)),l(this,Ne,a(this,Fe)),l(this,Le,void 0),l(this,Fe,void 0))}};function Xe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement;b(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||Ye,i=o;if(e.instrumentations){let t=e.instrumentations;i=e=>({...o(e),...xe(t.map(e=>
11e.route).filter(Boolean),e)})}let a={},s=new Qe(R(e.routes,i,void 0,a)),l=e.basename||"/";l.startsWith("/")||(l=`/${l}`);let c,u,d,f=e.dataStrategy||yt,p={...e.future},h=null,m=new Set,g=null,y=null,v=null,w=null,T=null!=e.hydrationData,O=D(s.activeRoutes,e.history.location,l,!1,s.branches),P=!1,A=null;if(null!=O||e.patchRoutesOnNavigation){if(O&&!e.hydrationData){Pe(O,s.activeRoutes,e.history.location.pathname).active&&(O=null)}if(O)if(O.some(e=>e.route.lazy))c=!1,u=!c;else if(O.some(e=>at(e.route))){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=O;if(n){let e=O.findIndex(e=>void 0!==n[e.route.id]);r=r.slice(0,e+1)}u=!1,c=!0,r.forEach(e=>{let r=st(e.route,t,n);u=u||r.renderFallback,c=c&&!r.shouldLoad})}else c=!0,u=!c;else{c=!1,u=!c,O=[];let t=Pe(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(P=!0,O=t.matches)}}else{let t=Ht(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=Ut(s.activeRoutes);c=!0,u=!c,O=n,A={[r.id]:t}}let I,j,M={historyAction:e.history.action,location:e.history.location,matches:O,initialized:c,renderFallback:u,navigation:Ge,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||A,fetchers:new Map,blockers:new Map},L="POP",F=null,B=!1,z=!1,U=new Map,H=null,V=!1,q=!1,G=new Set,W=new Map,$=0,Y=-1,K=new Map,J=new Set,Q=new Map,X=new Map,Z=new Set,ne=new Map,re=null;function oe(e,t={}){e.matches&&(e.matches=e.matches.map(e=>{let t=a[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e})),M={...M,...e};let n=[],r=[];M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||W.has(e)||n.push(e)}),0===m.size&&(g={newErrors:e.errors??null}),[...m].forEach(r=>r(M,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),n.forEach(e=>he(M.fetchers,e)),r.forEach(e=>M.fetchers.delete(e))}function ie(t,n,{flushSync:r}={}){let o,i=null!=M.actionData&&null!=M.navigation.formMethod&&rn(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==t.state?._isRedirect;o=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?M.actionData:null;let a=n.loaderData?Ft(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,l=M.blockers;l.size>0&&(l=new Map(l),l.forEach((e,t)=>l.set(t,$e)));let c,u=!V&&Oe(t,n.matches||M.matches),d=!0===B||null!=M.navigation.formMethod&&rn(M.navigation.formMethod)&&!0!==t.state?._isRedirect;if(s.commitHmrRoutes(),V||"POP"===L||("PUSH"===L?e.history.push(t,t.state):"REPLACE"===L&&e.history.replace(t,t.state)),"POP"===L){let e=U.get(M.location.pathname);e&&e.has(t.pathname)?c={currentLocation:M.location,nextLocation:t}:U.has(t.pathname)&&(c={currentLocation:t,nextLocation:M.location})}else if(z){let e=U.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(M.location.pathname,e)),c={currentLocation:M.location,nextLocation:t}}oe({...n,actionData:o,loaderData:a,historyAction:L,location:t,initialized:!0,renderFallback:!1,navigation:Ge,revalidation:"idle",restoreScrollPosition:u,preventScrollReset:d,blockers:l},{viewTransitionOpts:c,flushSync:!0===r}),L="POP",B=!1,z=!1,V=!1,q=!1,F?.resolve(),F=null,re?.resolve(),re=null}async function ae(t,n,o){I&&I.abort(),I=null,L=t,V=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(y&&w){let n=ke(e,t);y[n]=w()}}(M.location,M.matches),B=!0===(o&&o.preventScrollReset),z=!0===(o&&o.enableViewTransition);let c=s.activeRoutes,u=o?.initialHydration&&M.matches&&M.matches.length>0&&!P?M.matches:D(c,n,l,!1,s.branches),d=!0===(o&&o.flushSync);if(u&&M.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}(M.location,n)&&!(o&&o.submission&&rn(o.submission.formMethod)))return void ie(n,{matches:u},{flushSync:d});let f=Pe(u,c,n.pathname);if(f.active&&f.matches&&(u=f.matches),!u){let{error:e,notFoundMatches:t,route:r}=Ee(n.pathname);return void ie(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:d})}let p=o&&o.overrideNavigation?{...o.overrideNavigation,matches:u,historyAction:t}:void 0;I=new AbortController;let h,m=Rt(e.history,n,I.signal,o&&o.submission),g=e.getContext?await e.getContext():new C;if(o&&o.pendingError)h=[zt(u).route.id,{type:"error",error:o.pendingError}];else if(o&&o.submission&&rn(o.submission.formMethod)){let c=await async function(t,n,o,c,u,d,f,p,h={}){de();let m,g=function(e,t,n,r){let o={state:"submitting",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text};return o}(n,c,u,o);if(oe({navigation:g},{flushSync:!0===h.flushSync}),f){let e=await Ae(c,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ut(s.activeRoutes);
11return{matches:t,pendingActionResult:[n.id,{type:"error",error:e.error}]}}let t=zt(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:"error",error:e.error}]}}if(!e.matches){let{notFoundMatches:e,error:t,route:r}=Ee(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:"error",error:t}]}}c=e.matches}let y=an(c,n);if(y.route.action||y.route.lazy){let e=kt(i,a,t,n,c,y,p?[]:r,d),o=await ce(t,n,e,d,null);if(m=o[y.route.id],!m)for(let e of c)if(o[e.route.id]){m=o[e.route.id];break}if(t.signal.aborted)return{shortCircuited:!0}}else m={type:"error",error:Ht(405,{method:t.method,pathname:n.pathname,routeId:y.route.id})};if(Qt(m)){let n;if(h&&null!=h.replace)n=h.replace;else{n=It(m.response.headers.get("Location"),new URL(t.url),l,e.history)===M.location.pathname+M.location.search}return await le(t,m,!0,{submission:o,replace:n}),{shortCircuited:!0}}if(Jt(m)){let e=zt(c,y.route.id);return!0!==(h&&h.replace)&&(L="PUSH"),{matches:c,pendingActionResult:[e.route.id,m,y.route.id]}}return{matches:c,pendingActionResult:[y.route.id,m]}}(m,n,o.submission,u,t,g,f.active,o&&!0===o.initialHydration,{replace:o.replace,flushSync:d});if(c.shortCircuited)return;if(c.pendingActionResult){let[e,t]=c.pendingActionResult;if(Jt(t)&&we(t.error)&&404===t.error.status)return I=null,void ie(n,{matches:c.matches,loaderData:{},errors:{[e]:t.error}})}u=c.matches||u,h=c.pendingActionResult,p=ln(n,u,t,o.submission),d=!1,f.active=!1,m=Rt(e.history,m.url,m.signal)}let{shortCircuited:v,matches:b,loaderData:_,errors:S,workingFetchers:E}=await async function(t,n,o,c,u,d,f,p,h,m,g,y,v,b){let _=f||ln(n,o,c,p),w=p||h||sn(_),S=!V&&!g;if(d){if(S){let e=se(v);oe({navigation:_,...void 0!==e?{actionData:e}:{}},{flushSync:y})}let e=await Ae(o,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){if(0===e.partialMatches.length){let{matches:t,route:n}=Ut(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=zt(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=Ee(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}o=e.matches}let E=s.activeRoutes,{dsMatches:k,revalidatingFetchers:T}=it(t,u,i,a,e.history,M,o,w,n,g?[]:r,!0===g,q,G,Z,Q,J,E,l,null!=e.patchRoutesOnNavigation,s.branches,v,b);if(Y=++$,!e.dataStrategy&&!k.some(e=>e.shouldLoad)&&!k.some(e=>e.route.middleware&&e.route.middleware.length>0)&&0===T.length){let e=new Map(M.fetchers),t=ye(e);return ie(n,{matches:o,loaderData:{},errors:v&&Jt(v[1])?{[v[0]]:v[1].error}:null,...Bt(v),...t?{fetchers:e}:{}},{flushSync:y}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=_;let t=se(v);void 0!==t&&(e.actionData=t)}T.length>0&&(e.fetchers=function(e){let t=new Map(M.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=cn(void 0,n?n.data:void 0);t.set(e.key,r)}),t}(T)),oe(e,{flushSync:y})}T.forEach(e=>{me(e.key),e.controller&&W.set(e.key,e.controller)});let x=()=>T.forEach(e=>me(e.key));I&&I.signal.addEventListener("abort",x);let{loaderResults:O,fetcherResults:C}=await ue(k,T,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",x);T.forEach(e=>W.delete(e.key));let P=Vt(O);if(P)return await le(t,P.result,!0,{replace:m}),{shortCircuited:!0};if(P=Vt(C),P)return J.add(P.key),await le(t,P.result,!0,{replace:m}),{shortCircuited:!0};let A=new Map(M.fetchers),{loaderData:R,errors:j}=Lt(M,o,O,v,T,C,A);g&&M.errors&&(j={...M.errors,...j});let D=ye(A),N=ve(Y,A),L=D||N||T.length>0;return{matches:o,loaderData:R,errors:j,...L?{workingFetchers:A}:{}}}(m,n,u,t,g,f.active,p,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,d,h,o&&o.callSiteDefaultShouldRevalidate);v||(I=null,ie(n,{matches:b||u,...Bt(h),loaderData:_,errors:S,...E?{fetchers:E}:{}}))}function se(e){return e&&!Jt(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function le(r,o,i,{submission:a,fetcherSubmission:s,preventScrollReset:c,replace:u}={}){i||(F?.resolve(),F=null),o.response.headers.has("X-Remix-Revalidate")&&(q=!0);let d=o.response.headers.get("Location");b(d,"Expected a Location header on the redirect Response"),d=It(d,new URL(r.url),l,e.history);let f=S(M.location,d,{_isRedirect:!0});if(n){let e=!1;if(o.response.headers.has("X-Remix-Reload-Document"))e=!0;else if(te(d)){const n=x(t,d,!0);e=n.origin!==t.location.origin||null==ee(n.pathname,l)}if(e)return void(u?t.location.replace(d):t.location.assign(d))}I=null;let p=!0===u||o.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:h,formAction:m,formEncType:g}=M.navigation;!a&&!s&&h&&m&&g&&(a=sn(M.navigation));let y=a||s;if(qe.has(o.response.status)&&y&&rn(y.formMethod))await ae(p,f,{submission:{...y,formAction:d},preventScrollReset:c||B,enableViewTransition:i?z:void 0});else{let e=ln(f,[],p,a);await ae(p,f,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:c||B,enableViewTransition:i?z:void 0})}}async function ce(e,t,n,r,o){let i,a={};try{i=await Tt(f,e,t,n,o,r,!1)}catch(e){return n.filter(e=>
11e.shouldLoad).forEach(t=>{a[t.route.id]={type:"error",error:e}}),a}if(e.signal.aborted)return a;if(!rn(e.method))for(let e of n){if("error"===i[e.route.id]?.type)break;i.hasOwnProperty(e.route.id)||M.loaderData.hasOwnProperty(e.route.id)||M.errors&&M.errors.hasOwnProperty(e.route.id)||!e.shouldCallHandler()||(i[e.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(i))if(Kt(r)){let o=r.result;a[t]={type:"redirect",response:Ct(o,e,t,n,l)}}else a[t]=await Ot(r);return a}async function ue(e,t,n,r,o){let i=ce(n,r,e,o,null),a=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await ce(e.request,e.path,e.matches,o,e.key))[e.match.route.id];return{[e.key]:t}}return Promise.resolve({[e.key]:{type:"error",error:Ht(404,{pathname:e.path})}})}));return{loaderResults:await i,fetcherResults:(await a).reduce((e,t)=>Object.assign(e,t),{})}}function de(){q=!0,Q.forEach((e,t)=>{W.has(t)&&G.add(t),me(t)})}function fe(e,t,n={}){let r=new Map(M.fetchers);r.set(e,t),oe({fetchers:r},{flushSync:!0===(n&&n.flushSync)})}function pe(e,t,n,r={}){let o=zt(M.matches,t),i=new Map(M.fetchers);he(i,e),oe({errors:{[o.route.id]:n},fetchers:i},{flushSync:!0===(r&&r.flushSync)})}function he(e,t){let n=M.fetchers.get(t);!W.has(t)||n&&"loading"===n.state&&K.has(t)||me(t),Q.delete(t),K.delete(t),J.delete(t),Z.delete(t),G.delete(t),e.delete(t)}function me(e,t){let n=W.get(e);n&&(n.abort(t),W.delete(e))}function ge(e,t){for(let n of e){let e=t.get(n);b(e,`Expected fetcher: ${n}`);let r=un(e.data);t.set(n,r)}}function ye(e){let t=[],n=!1;for(let r of J){let o=e.get(r);b(o,`Expected fetcher: ${r}`),"loading"===o.state&&(J.delete(r),t.push(r),n=!0)}return ge(t,e),n}function ve(e,t){let n=[];for(let[r,o]of K)if(o<e){let e=t.get(r);b(e,`Expected fetcher: ${r}`),"loading"===e.state&&(me(r),K.delete(r),n.push(r))}return ge(n,t),n.length>0}function be(e){M.blockers.delete(e),ne.delete(e)}function _e(e,t){let n=M.blockers.get(e)||$e;b("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(M.blockers);r.set(e,t),oe({blockers:r})}function Se({currentLocation:e,nextLocation:t,historyAction:n}){if(0===ne.size)return;ne.size>1&&_(!1,"A router only supports one blocker at a time");let r=Array.from(ne.entries()),[o,i]=r[r.length-1],a=M.blockers.get(o);return a&&"proceeding"===a.state?void 0:i({currentLocation:e,nextLocation:t,historyAction:n})?o:void 0}function Ee(e){let t=Ht(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:o}=Ut(n);return{notFoundMatches:r,route:o,error:t}}function ke(e,t){if(v){return v(e,t.map(e=>N(e,M.loaderData)))||e.key}return e.key}function Oe(e,t){if(y){let n=ke(e,t),r=y[n];if("number"==typeof r)return r}return null}function Pe(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t){return{active:!0,matches:D(n,r,l,!0,e)||[]}}if(Object.keys(t[0].params).length>0){return{active:!0,matches:D(n,r,l,!0,e)}}}return{active:!1,matches:null}}async function Ae(t,n,r,o){if(!e.patchRoutesOnNavigation)return{type:"success",matches:t};let c=t;for(;;){let t=a;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:c,fetcherKey:o,patch:(e,n)=>{r.aborted||ct(e,n,s,t,i,!1)}})}catch(e){return{type:"error",error:e,partialMatches:c}}if(r.aborted)return{type:"aborted"};let u=s.branches,d=D(s.activeRoutes,n,l,!1,u),f=null;if(d){if(0===Object.keys(d[0].params).length)return{type:"success",matches:d};if(f=D(s.activeRoutes,n,l,!0,u),!(f&&c.length<f.length&&Re(c,f.slice(0,c.length))))return{type:"success",matches:d}}if(f||(f=D(s.activeRoutes,n,l,!0,u)),!f||Re(c,f))return{type:"success",matches:null};c=f}}function Re(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}return d={get basename(){return l},get future(){return p},get state(){return M},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return a},get window(){return t},initialize:function(){if(h=e.history.listen(({action:t,location:n,delta:r})=>{if(j)return j(),void(j=void 0);_(0===ne.size||null!=r,"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 o=Se({currentLocation:M.location,nextLocation:n,historyAction:t});if(o&&null!=r){let t=new Promise(e=>{j=e});return e.history.go(-1*r),_e(o,{state:"blocked",location:n,proceed(){_e(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(M.blockers);e.set(o,$e),oe({blockers:e})}}),F?.resolve(),void(F=null)}return ae(t,n)}),n){!function(e,t){try{let n=e.sessionStorage.getItem(Ke);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Ke,JSON.stringify(n))}catch(e){_(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}(t,U);t.addEventListener("pagehide",e),H=()=>t.removeEventListener("pagehide",e)}return M.initialized||ae("POP",M.location,{initialHydration:!0}),d},subscribe:function(e){if(m.add(e),g){let{newErrors:t}=g;g=null,e(M,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>m.delete(e)},enableScrollRestoration:function(e,t,n){if(y=e,w=t,v=n||null,!T&&M.navigation===Ge){T=!0;let e=Oe(M.location,M.matches);null!=e&&oe({restoreScrollPosition:e})}return()=>{y=null,w=null,v=null}},navigate:async function t(n,r){if(F?.resolve(),F=null,"number"==typeof n){F||(F=dn());let t=F.promise;return e.history.go(n),t}let o,i=rt(M.location,M.matches,l,n,r?.fromRouteId,r?.relative),{path:a,submission:s,error:c}=ot(!1,i,r);if(r?.mask){o={pathname:"",search:"",hash:"",..."string"==typeof r.mask?k(r.mask):{...M.location.mask,...r.mask}}}let u=M.location,d=S(u,a,r&&r.state,void 0,o);d={...d,...e.history.encodeLocation(d)};let f=r&&null!=r.replace?r.replace:void 0,p="PUSH";!0===f?p="REPLACE":!1===f||null!=s&&rn(s.formMethod)&&s.formAction===M.location.pathname+M.location.search&&(p="REPLACE");let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),g=Se({currentLocation:u,nextLocation:d,historyAction:p});g?_e(g,{state:"blocked",location:d,proceed(){_e(g,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,r)},reset(){let e=new Map(M.blockers);e.set(g,$e),oe({blockers:e})}}):await ae(p,d,{submission:s,pendingError:c,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:r&&r.defaultShouldRevalidate})},fetch:async function(t,n,o,c){me(t);let u=!0===(c&&c.flushSync),d=s.activeRoutes,f=rt(M.location,M.matches,l,o,n,c?.relative),p=D(d,f,l,!1,s.branches),h=Pe(p,d,f);if(h.active&&h.matches&&(p=h.matches),!p)return void pe(t,n,Ht(404,{pathname:f}),{flushSync:u});let{path:m,submission:g,error:y}=ot(!0,f,c);if(y)return void pe(t,n,y,{flushSync:u});let v=e.getContext?await e.getContext():new C,_=!0===(c&&c.preventScrollReset);g&&rn(g.formMethod)?await async function(t,n,o,c,u,d,f,p,h,m){de(),Q.delete(t);let g=M.fetchers.get(t);fe(t,function(e,t){let n={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 n}(h,g),{flushSync:f});let y=new AbortController,v=Rt(e.history,o,y.signal,h);if(d){let e=await Ae(c,new URL(v.url).pathname,v.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void pe(t,n,e.error,{flushSync:f});if(!e.matches)return void pe(t,n,Ht(404,{pathname:o}),{flushSync:f});c=e.matches}let _=an(c,o);if(!_.route.action&&!_.route.lazy){let e=Ht(405,{method:h.formMethod,pathname:o,routeId:n});return void pe(t,n,e,{flushSync:f})}W.set(t,y);let w=$,S=kt(i,a,v,o,c,_,r,u),E=await ce(v,o,S,u,t),k=E[_.route.id];if(!k)for(let e of S)if(E[e.route.id]){k=E[e.route.id];break}if(v.signal.aborted)return void(W.get(t)===y&&W.delete(t));if(Z.has(t)){if(Qt(k)||Jt(k))return void fe(t,un(void 0))}else{if(Qt(k))return W.delete(t),Y>w?void fe(t,un(void 0)):(J.add(t),fe(t,cn(h)),le(v,k,!1,{fetcherSubmission:h,preventScrollReset:p}));if(Jt(k))return void pe(t,n,k.error)}let T=M.navigation.location||M.location,x=Rt(e.history,T,y.signal),O=s.activeRoutes,C="idle"!==M.navigation.state?D(O,M.navigation.location,l,!1,s.branches):M.matches;b(C,"Didn't find any matches after fetcher action");let P=++$;K.set(t,P);let{dsMatches:A,revalidatingFetchers:R}=it(x,u,i,a,e.history,M,C,h,T,r,!1,q,G,Z,Q,J,O,l,null!=e.patchRoutesOnNavigation,s.branches,[_.route.id,k],m),j=cn(h,k.data),N=new Map(M.fetchers);N.set(t,j),R.filter(e=>
11e.key!==t).forEach(e=>{let t=e.key,n=N.get(t),r=cn(void 0,n?n.data:void 0);N.set(t,r),me(t),e.controller&&W.set(t,e.controller)}),oe({fetchers:N});let F=()=>R.forEach(e=>me(e.key));y.signal.addEventListener("abort",F);let{loaderResults:B,fetcherResults:z}=await ue(A,R,x,T,u);if(y.signal.aborted)return;y.signal.removeEventListener("abort",F),K.delete(t),W.delete(t),R.forEach(e=>W.delete(e.key));let U=M.fetchers.has(t),H=e=>{if(!U)return e;let n=new Map(e.fetchers);return n.set(t,un(k.data)),{...e,fetchers:n}},V=Vt(B);if(V)return M=H(M),le(x,V.result,!1,{preventScrollReset:p});if(V=Vt(z),V)return J.add(V.key),M=H(M),le(x,V.result,!1,{preventScrollReset:p});let X=new Map(M.fetchers);U&&X.set(t,un(k.data));let{loaderData:ee,errors:te}=Lt(M,C,B,void 0,R,z,X);ve(P,X),"loading"===M.navigation.state&&P>Y?(b(L,"Expected pending action"),I&&I.abort(),ie(M.navigation.location,{matches:C,loaderData:ee,errors:te,fetchers:X})):(oe({errors:te,loaderData:Ft(M.loaderData,ee,C,te),fetchers:X}),q=!1)}(t,n,m,p,v,h.active,u,_,g,c&&c.defaultShouldRevalidate):(Q.set(t,{routeId:n,path:m}),await async function(t,n,o,s,l,c,u,d,f){let p=M.fetchers.get(t);fe(t,cn(f,p?p.data:void 0),{flushSync:u});let h=new AbortController,m=Rt(e.history,o,h.signal);if(c){let e=await Ae(s,new URL(m.url).pathname,m.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void pe(t,n,e.error,{flushSync:u});if(!e.matches)return void pe(t,n,Ht(404,{pathname:o}),{flushSync:u});s=e.matches}let g=an(s,o);W.set(t,h);let y=$,v=kt(i,a,m,o,s,g,r,l),b=await ce(m,o,v,l,t),_=b[g.route.id];if(!_)for(let e of s)if(b[e.route.id]){_=b[e.route.id];break}W.get(t)===h&&W.delete(t);if(m.signal.aborted)return;if(Z.has(t))return void fe(t,un(void 0));if(Qt(_))return Y>y?void fe(t,un(void 0)):(J.add(t),void await le(m,_,!1,{preventScrollReset:d}));if(Jt(_))return void pe(t,n,_.error);fe(t,un(_.data))}(t,n,m,p,v,h.active,u,_,g))},revalidate:function(){re||(re=dn()),de(),oe({revalidation:"loading"});let e=re.promise;return"submitting"===M.navigation.state?e:"idle"===M.navigation.state?(ae(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),e):(ae(L||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===z}),e)},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:function(e){return X.set(e,(X.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||We},resetFetcher:function(e,t){me(e,t?.reason),fe(e,un(null))},deleteFetcher:function(e){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),Z.add(e)):X.set(e,t),oe({fetchers:new Map(M.fetchers)})},dispose:function(){h&&h(),H&&H(),m.clear(),I&&I.abort(),M.fetchers.forEach((e,t)=>he(M.fetchers,t)),M.blockers.forEach((e,t)=>be(t))},getBlocker:function(e,t){let n=M.blockers.get(e)||$e;return ne.get(e)!==t&&ne.set(e,t),n},deleteBlocker:be,patchRoutes:function(e,t,n=!1){ct(e,t,s,a,i,n),s.hasHMRRoutes||oe({})},_internalFetchControllers:W,_internalSetRoutes:function(e){a={},s.setHmrRoutes(R(e,i,void 0,a))},_internalSetStateDoNotUseOrYouWillBreakYourApp(e){oe(e)}},e.instrumentations&&(d=function(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){let t=Object.keys(e);for(let r of t)e[r]&&n[r].push(e[r])}})),n.navigate.length>0){let t=e.navigate[Te]??e.navigate,r=Ce(n.navigate,t,(...t)=>{let[n,r]=t;return{to:"number"==typeof n||"string"==typeof n?n:n?E(n):".",...Ie(e,r??{})}});r&&(r[Te]=t,e.navigate=r)}if(n.fetch.length>0){let t=e.fetch[Te]??e.fetch,r=Ce(n.fetch,t,(...t)=>{let[n,,r,o]=t;return{href:r??".",fetcherKey:n,...Ie(e,o??{})}});r&&(r[Te]=t,e.fetch=r)}return e}(d,e.instrumentations.map(e=>e.router).filter(Boolean))),d}function Ze(e,t){b(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let n={},r=(t?t.basename:null)||"/",o=t?.mapRouteProperties||Ye,i=o;if(t?.instrumentations){let e=t.instrumentations;i=t=>({...o(t),...xe(e.map(e=>e.route).filter(Boolean),t)})}let a=R(e,i,void 0,n),s=L(a);async function l(e,t,r,o,a,s,l,d,f){b(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(rn(e.method)){let p=await async function(e,t,r,o,a,s,l,d,f,p){let h;if(o.route.action||o.route.lazy){let l=kt(i,n,e,t,r,o,[],a);h=(await u(e,t,l,d,a,s))[o.route.id],e.signal.aborted&&tt(e,d)}else{let t=Ht(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:o.route.id});if(d)throw t;h={type:"error",error:t}}if(Qt(h))throw new Response(null,{status:h.response.status,headers:{Location:h.response.headers.get("Location")}});if(d){if(Jt(h))throw h.error;return{matches:[o],loaderData:{},actionData:{[o.route.id]:h.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{}}}
11if(p){if(Jt(h)){let e=l?o:zt(r,o.route.id);return{statusCode:we(h.error)?h.error.status:null!=h.statusCode?h.statusCode:500,actionData:null,actionHeaders:{...h.headers?{[o.route.id]:h.headers}:{}},matches:r,loaderData:{},errors:{[e.route.id]:h.error},loaderHeaders:{}}}return{actionData:{[o.route.id]:h.data},actionHeaders:h.headers?{[o.route.id]:h.headers}:{},matches:r,loaderData:{},errors:null,statusCode:h.statusCode||200,loaderHeaders:{}}}let m=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});if(Jt(h)){let e=l?o:zt(r,o.route.id);return{...await c(m,t,r,a,s,l,null,f,[e.route.id,h]),statusCode:we(h.error)?h.error.status:null!=h.statusCode?h.statusCode:500,actionData:null,actionHeaders:{...h.headers?{[o.route.id]:h.headers}:{}}}}let g=await c(m,t,r,a,s,l,null,f);return{...g,actionData:{[o.route.id]:h.data},...h.statusCode?{statusCode:h.statusCode}:{},actionHeaders:h.headers?{[o.route.id]:h.headers}:{}}}(e,t,r,l||an(r,t),o,a,s,null!=l,d,f);return p}let p=await c(e,t,r,o,a,s,l,d);return Zt(p)?p:{...p,actionData:null,actionHeaders:{}}}catch(e){if(Yt(e)&&Zt(e.result)){if("error"===e.type)throw e.result;return e.result}if(tn(e))return e;throw e}}async function c(e,t,r,o,a,s,l,c,d){let f,p=null!=l;if(p&&!l?.route.loader&&!l?.route.lazy)throw Ht(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:l?.route.id});if(l)f=kt(i,n,e,t,r,l,[],o);else{let a=d&&Jt(d[1])?r.findIndex(e=>e.route.id===d[0])-1:void 0,s=Se(r);f=r.map((r,l)=>Et(i,n,e,t,s,r,[],o,!(null!=a&&l>a)&&(null!=(r.route.loader||r.route.lazy)&&(!c||c(r)))))}if(!a&&!f.some(e=>e.shouldLoad))return{matches:r,loaderData:{},errors:d&&Jt(d[1])?{[d[0]]:d[1].error}:null,statusCode:200,loaderHeaders:{}};let h=await u(e,t,f,p,o,a);return e.signal.aborted&&tt(e,p),{...Nt(r,h,d,!0,s),matches:r}}async function u(e,t,n,o,i,a){let s=await Tt(a||gt,e,t,n,null,i,!0),l={};return await Promise.all(n.map(async t=>{if(!(t.route.id in s))return;let i=s[t.route.id];if(Kt(i)){throw Ct(i.result,e,t.route.id,n,r)}if(o){if(Zt(i.result))throw i;if(Xt(i.result))throw Gt(i.result)}l[t.route.id]=await Ot(i)})),l}return{dataRoutes:a,_internalRouteBranches:s,query:async function(e,{requestContext:t,filterMatchesToLoad:o,skipLoaderErrorBubbling:c,skipRevalidation:u,dataStrategy:d,generateMiddlewareResponse:f,normalizePath:p}={}){let h=p||nt,m=e.method,g=S("",h(e),null,"default"),y=D(a,g,r,!1,s);if(t=null!=t?t:new C,!nn(m)&&"HEAD"!==m){let e=Ht(405,{method:m}),{matches:t,route:n}=Ut(a),o={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(o)):o}if(!y){let e=Ht(404,{pathname:g.pathname}),{matches:t,route:n}=Ut(a),o={basename:r,location:g,matches:t,loaderData:{},actionData:null,errors:{[n.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{}};return f?f(()=>Promise.resolve(o)):o}if(f){b(t instanceof C,"When using middleware in `staticHandler.query()`, any provided `requestContext` must be an instance of `RouterContextProvider`");try{let s;await mt(y,n,i);let p=await vt({request:e,url:jt(e,g),pattern:Se(y),matches:y,params:y[0].params,context:t},async()=>await f(async(e,n={})=>{let i=await l(e,g,y,t,d||null,!0===c,null,"filterMatchesToLoad"in n?n.filterMatchesToLoad??null:o??null,!0===u);return Zt(i)?i:(s={location:g,basename:r,...i},s)}),async(e,t)=>{if(tn(e))return e;if(Zt(e))try{e=new _e(e.status,e.statusText,await xt(e))}catch(t){e=t}if(Xt(e)&&(e=Wt(e)),s){t in s.loaderData&&(s.loaderData[t]=void 0);let n=et(a,s,e,c?t:zt(y,t).route.id);return f(()=>Promise.resolve(n))}{let n=c?t:zt(y,y.find(e=>e.route.id===t||e.route.loader)?.route.id||t).route.id,o={matches:y,location:g,basename:r,loaderData:{},actionData:null,errors:{[n]:e},statusCode:we(e)?e.status:500,actionHeaders:{},loaderHeaders:{}};return f(()=>Promise.resolve(o))}});return b(Zt(p),"Expected a response in query()"),p}catch(e){if(Zt(e))return e;throw e}}let v=await l(e,g,y,t,d||null,!0===c,null,o||null,!0===u);return Zt(v)?v:{location:g,basename:r,...v}},queryRoute:async function(e,{routeId:t,requestContext:o,dataStrategy:c,generateMiddlewareResponse:u,normalizePath:d}={}){let f=d||nt,p=e.method,h=S("",f(e),null,"default"),m=D(a,h,r,!1,s);if(o=null!=o?o:new C,!nn(p)&&"HEAD"!==p&&"OPTIONS"!==p)throw Ht(405,{method:p});if(!m)throw Ht(404,{pathname:h.pathname});let g=t?m.find(e=>e.route.id===t):an(m,h);if(t&&!g)throw Ht(403,{pathname:h.pathname,routeId:t});if(!g)throw Ht(404,{pathname:h.pathname});if(u){return b(o instanceof C,"When using middleware in `staticHandler.queryRoute()`, any provided `requestContext` must be an instance of `RouterContextProvider`"),await mt(m,n,i),await vt({request:e,url:jt(e,h),pattern:Se(m),matches:m,params:m[0].params,context:o},async()=>await u(async e=>{let t=y(await l(e,h,m,o,c||null,!1,g,null,!1));return Zt(t)?t:"string"==typeof t?new Response(t):Response.json(t)}),e=>{if(Xt(e))return Promise.resolve(Gt(e));if(Zt(e))return Promise.resolve(e);throw e})}return y(await l(e,h,m,o,c||null,!1,g,null,!1));function y(e){if(Zt(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 et(e,t,n,r){let o=r||t._deepestRenderedBoundaryId||e[0].id;return{...t,statusCode:we(n)?n.status:500,errors:{[o]:n}}}function tt(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 nt(e){let t=new URL(e.url);return{pathname:t.pathname,search:t.search,hash:t.hash}}function rt(e,t,n,r,o,i){let a,s;if(o){a=[];for(let e of t)if(a.push(e),e.route.id===o){s=e;break}}else a=t,s=t[t.length-1];let l=se(r||".",ae(a),ee(e.pathname,n)||e.pathname,"path"===i);if(null==r&&(l.search=e.search,l.hash=e.hash),(null==r||""===r||"."===r)&&s){let e=on(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 n=e.toString();l.search=n?`?${n}`:""}}return"/"!==n&&(l.pathname=function({basename:e,pathname:t}){return"/"===t?e:ce([e,t])}({basename:n,pathname:l.pathname})),E(l)}function ot(e,t,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:t};if(n.formMethod&&!nn(n.formMethod))return{path:t,error:Ht(405,{method:n.formMethod})};let r,o,i=()=>({path:t,error:Ht(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),s=qt(t);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!rn(a))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!rn(a))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(b("function"==typeof FormData,"FormData is not available in this environment"),n.formData)r=Mt(n.formData),o=n.formData;else if(n.body instanceof FormData)r=Mt(n.body),o=n.body;else if(n.body instanceof URLSearchParams)r=n.body,o=Dt(r);else if(null==n.body)r=new URLSearchParams,o=new FormData;else try{r=new URLSearchParams(n.body),o=Dt(r)}catch(e){return i()}let l={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(rn(l.formMethod))return{path:t,submission:l};let c=k(t);return e&&c.search&&on(c.search)&&r.append("index",""),c.search=`?${r}`,{path:E(c),submission:l}}function it(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,y,v,b,_,w){let S,E=_?Jt(_[1])?_[1].error:_[1].data:void 0,k=o.createURL(i.location),T=o.createURL(l);if(u&&i.errors){let e=Object.keys(i.errors)[0];S=a.findIndex(t=>t.route.id===e)}else if(_&&Jt(_[1])){let e=_[0];S=a.findIndex(t=>t.route.id===e)-1}let x=_?_[1].statusCode:void 0,O=x&&x>
11=400,C={currentUrl:k,currentParams:i.matches[0]?.params||{},nextUrl:T,nextParams:a[0].params,...s,actionResult:E,actionStatus:x},P=Se(a),A=a.map((o,a)=>{let{route:s}=o,f=null;if(null!=S&&a>S)f=!1;else if(s.lazy)f=!0;else if(at(s))if(u){let{shouldLoad:e}=st(s,i.loaderData,i.errors);f=e}else(function(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o})(i.loaderData,i.matches[a],o)&&(f=!0);else f=!1;if(null!==f)return Et(n,r,e,l,P,o,c,t,f);let p=!1;"boolean"==typeof w?p=w:O?p=!1:(d||k.pathname+k.search===T.pathname+T.search||k.search!==T.search||function(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}(i.matches[a],o))&&(p=!0);let h={...C,defaultShouldRevalidate:p},m=lt(o,h);return Et(n,r,e,l,P,o,c,t,m,h,w)}),I=[];return h.forEach((e,s)=>{if(u||!a.some(t=>t.route.id===e.routeId)||p.has(s))return;let l=i.fetchers.get(s),h=l&&"idle"!==l.state&&void 0===l.data,_=D(g,e.path,y??"/",!1,b);if(!_){if(v&&h)return;return void I.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null})}if(m.has(s))return;let S=an(_,e.path),E=new AbortController,k=Rt(o,e.path,E.signal),T=null;if(f.has(s))f.delete(s),T=kt(n,r,k,e.path,_,S,c,t);else if(h)d&&(T=kt(n,r,k,e.path,_,S,c,t));else{let o;o="boolean"==typeof w?w:!O&&d;let i={...C,defaultShouldRevalidate:o};lt(S,i)&&(T=kt(n,r,k,e.path,_,S,c,t,i))}T&&I.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:k,controller:E})}),{dsMatches:A,revalidatingFetchers:I}}function at(e){return null!=e.loader||null!=e.middleware&&e.middleware.length>0}function st(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!at(e))return{shouldLoad:!1,renderFallback:!1};let r=null!=t&&e.id in t,o=null!=n&&void 0!==n[e.id];if(!r&&o)return{shouldLoad:!1,renderFallback:!1};if("function"==typeof e.loader&&!0===e.loader.hydrate)return{shouldLoad:!0,renderFallback:!r};let i=!r&&!o;return{shouldLoad:i,renderFallback:i}}function lt(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}function ct(e,t,n,r,o,i){let a;if(e){let t=r[e];b(t,`No route found to patch children into: routeId = ${e}`),t.children||(t.children=[]),a=t.children}else a=n.activeRoutes;let s=[],l=[];if(t.forEach(e=>{let t=a.find(t=>ut(e,t));t?l.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=R(s,o,[e||"_","patch",String(a?.length||"0")],r);a.push(...t)}if(i&&l.length>0)for(let e=0;e<l.length;e++){let{existingRoute:t,newRoute:n}=l[e],r=t,[i]=R([n],o,[],{},!0);Object.assign(r,{element:i.element?i.element:r.element,errorElement:i.errorElement?i.errorElement:r.errorElement,hydrateFallbackElement:i.hydrateFallbackElement?i.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function ut(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,n)=>t.children?.some(t=>ut(e,t)))??!1))}De=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Fe=new WeakMap;var dt=new WeakMap,ft=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(b(o,"No route found in manifest"),!o.lazy||"object"!=typeof o.lazy)return;let i=o.lazy[e];if(!i)return;let a=dt.get(o);a||(a={},dt.set(o,a));let s=a[e];if(s)return s;let l=(async()=>{let t=function(e){return P.has(e)}(e),n=void 0!==o[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(n)_(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await i();null!=t&&(Object.assign(o,{[e]:t}),Object.assign(o,r(o)))}"object"==typeof o.lazy&&(o.lazy[e]=void 0,Object.values(o.lazy).every(e=>void 0===e)&&(o.lazy=void 0))})();return a[e]=l,l},pt=new WeakMap;function ht(e){return void 0!==e}function mt(e,t,n){let r=e.map(({route:e})=>{if("object"==typeof e.lazy&&e.lazy.middleware)return ft({key:"middleware",route:e,manifest:t,mapRouteProperties:n})}).filter(ht);return r.length>0?Promise.all(r):void 0}async function gt(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>
11e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function yt(e){return e.matches.some(e=>e.route.middleware)?bt(e,()=>gt(e)):gt(e)}function vt(e,t,n){return _t(e,t,function(e){return Xt(e)?Gt(e):e},Zt,n)}function bt(e,t){return _t(e,t,e=>{if(tn(e))throw e;return e},$t,function(t,n,r){if(r)return Promise.resolve(Object.assign(r.value,{[n]:{type:"error",result:t}}));{let{matches:r}=e,o=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),i=zt(r,r[o].route.id).route.id;return Promise.resolve({[i]:{type:"error",result:t}})}})}async function _t(e,t,n,r,o){let{matches:i,...a}=e,s=i.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]);return await wt(a,s,t,n,r,o)}async function wt(e,t,n,r,o,i,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 n()}let c,[u,d]=l,f=async()=>{if(c)throw new Error("You may only call `next()` once per middleware");try{let s=await wt(e,t,n,r,o,i,a+1);return c={value:s},c.value}catch(e){return c={value:await i(e,u,c)},c.value}};try{let t=await d(e,f),n=null!=t?r(t):void 0;return o(n)?n:c?n??c.value:(c={value:await f()},c.value)}catch(e){return await i(e,u,c)}}function St(e,t,n,r,o){let i=ft({key:"middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=function(e,t,n,r,o){let i=n[e.id];if(b(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if("function"==typeof e.lazy){let t=pt.get(i);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{b("function"==typeof e.lazy,"No lazy route function found");let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(void 0===r)continue;let o=I(e),a=void 0!==i[e]&&"hasErrorBoundary"!==e;o?_(!o,"Route property "+e+" is not a supported property to be returned from a lazy route function. This property will be ignored."):a?_(!a,`Route "${i.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.`):n[e]=r}Object.assign(i,n),Object.assign(i,{...r(i),lazy:void 0})})();return pt.set(i,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let a,s=Object.keys(e.lazy),l=[];for(let i of s){if(o&&o.includes(i))continue;let s=ft({key:i,route:e,manifest:n,mapRouteProperties:r});s&&(l.push(s),i===t&&(a=s))}let c=l.length>0?Promise.all(l).then(()=>{}):void 0;return c?.catch(()=>{}),a?.catch(()=>{}),{lazyRoutePromise:c,lazyHandlerPromise:a}}(r.route,rn(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function Et(e,t,n,r,o,i,a,s,l,c=null,u){let d=!1,f=St(e,t,n,i,a);return{...i,_lazyPromises:f,shouldLoad:l,shouldRevalidateArgs:c,shouldCallHandler:e=>(d=!0,c?lt(i,"boolean"==typeof u?{...c,defaultShouldRevalidate:u}:"boolean"==typeof e?{...c,defaultShouldRevalidate:e}:c):l),resolve(e){let{lazy:t,loader:a,middleware:c}=i.route,u=d||l||e&&!rn(n.method)&&(t||a),p=c&&c.length>0&&!a&&!t;return!u||!rn(n.method)&&p?Promise.resolve({type:"data",result:void 0}):async function({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:o,lazyRoutePromise:i,handlerOverride:a,scopedContext:s}){let l,c,u=rn(e.method),d=u?"action":"loader",f=o=>{let i,l=new Promise((e,t)=>i=t);c=()=>i(),e.signal.addEventListener("abort",c);let u=i=>"function"!=typeof o?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)):o({request:e,url:jt(e,t),pattern:n,params:r.params,context:s},...void 0!==i?[i]:[]),f=(async()=>{try{return{type:"data",result:await(a?a(e=>u(e)):u())}}catch(e){return{type:"error",result:e}}})();return Promise.race([f,l])};try{let t=u?r.route.action:r.route.loader;if(o||i)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),o,i]);if(void 0!==e)throw e;l=n}else{await o;let t=u?r.route.action:r.route.loader;if(!t){if("action"===d){let t=new URL(e.url),n=t.pathname+t.search;throw Ht(405,{method:e.method,pathname:n,routeId:r.route.id})}return{type:"data",result:void 0}}[l]=await Promise.all([f(t),i])}else{if(!t){let t=new URL(e.url);throw Ht(404,{pathname:t.pathname+t.search})}l=await f(t)}}catch(e){return{type:"error",result:e}}finally{c&&e.signal.removeEventListener("abort",c)}return l}({request:n,path:r,pattern:o,match:i,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s})}}}function kt(e,t,n,r,o,i,a,s,l=null){return o.map(c=>c.route.id!==i.route.id?{...c,shouldLoad:!1,shouldRevalidateArgs:l,shouldCallHandler:()=>!1,_lazyPromises:St(e,t,n,c,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:Et(e,t,n,r,Se(o),c,a,s,!0,l))}async function Tt(e,t,n,r,o,i,a){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:jt(t,n),pattern:Se(r),params:r[0].params,context:i,matches:r},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 bt(t,()=>e({...t,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},c=await e({...s,fetcherKey:o,runClientMiddleware:l});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch(e){}return c}async function xt(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 Ot(e){let{result:t,type:n}=e;if(Zt(t)){let e;try{e=await xt(t)}
11catch(e){return{type:"error",error:e}}return"error"===n?{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"===n?Xt(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:Wt(t),statusCode:we(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:we(t)?t.status:void 0}:Xt(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 Ct(e,t,n,r,o){let i=e.headers.get("Location");if(b(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!te(i)){let a=r.slice(0,r.findIndex(e=>e.route.id===n)+1);i=rt(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}var Pt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function At(e){try{return Pt.includes(new URL(e).protocol)}catch{return!1}}function It(e,t,n,r){if(te(e)){let r=e,o=u.test(r)?new URL(d(r,t.protocol)):new URL(r);if(At(o.toString()))throw new Error("Invalid redirect location");let i=null!=ee(o.pathname,n);if(o.origin===t.origin&&i)return le(o.pathname)+o.search+o.hash}try{if(At(r.createURL(e).toString()))throw new Error("Invalid redirect location")}catch(e){}return e}function Rt(e,t,n,r){let o=e.createURL(qt(t)).toString(),i={signal:n};if(r&&rn(r.formMethod)){let{formMethod:e,formEncType:t}=r;i.method=e.toUpperCase(),"application/json"===t?(i.headers=new Headers({"Content-Type":t}),i.body=JSON.stringify(r.json)):"text/plain"===t?i.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?i.body=Mt(r.formData):i.body=r.formData}return new Request(o,i)}function jt(e,t){let n=new URL(e.url),r="string"==typeof t?k(t):t;if(n.pathname=r.pathname||"/",r.search){let e=new URLSearchParams(r.
11search),t=e.getAll("index");e.delete("index");for(let n of t.filter(Boolean))e.append("index",n);n.search=e.size?`?${e.toString()}`:""}else n.search="";return n.hash=r.hash||"",n}function Mt(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function Dt(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Nt(e,t,n,r=!1,o=!1){let i,a={},s=null,l=!1,c={},u=n&&Jt(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(b(!Qt(f),"Cannot handle redirect results in processLoaderData"),Jt(f)){let t=f.error;if(void 0!==u&&(t=u,u=void 0),s=s||{},o)s[d]=t;else{let n=zt(e,d);null==s[n.route.id]&&(s[n.route.id]=t)}r||(a[d]=Je),l||(l=!0,i=we(f.error)?f.error.status:500),f.headers&&(c[d]=f.headers)}else a[d]=f.data,f.statusCode&&200!==f.statusCode&&!l&&(i=f.statusCode),f.headers&&(c[d]=f.headers)}),void 0!==u&&n&&(s={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:s,statusCode:i||200,loaderHeaders:c}}function Lt(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=Nt(t,n,r);return o.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:o}=t;if(o&&o.signal.aborted)return;let s=i[n];if(b(s,"Did not find corresponding fetcher result"),Jt(s)){let t=zt(e.matches,r?.route.id);l&&l[t.route.id]||(l={...l,[t.route.id]:s.error}),a.delete(n)}else if(Qt(s))b(!1,"Unhandled fetcher revalidation redirect");else{let e=un(s.data);a.set(n,e)}}),{loaderData:s,errors:l}}function Ft(e,t,n,r){let o=Object.entries(t).filter(([,e])=>e!==Je).reduce((e,[t,n])=>(e[t]=n,e),{});for(let i of n){let n=i.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&i.route.loader&&(o[n]=e[n]),r&&r.hasOwnProperty(n))break}return o}function Bt(e){return e?Jt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function zt(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 Ut(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 Ht(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(a="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(a="Forbidden",s=`Route "${n}" does not match URL "${t}"`):404===e?(a="Not Found",s=`No route matches URL "${t}"`):405===e&&(a="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new _e(e||500,a,new Error(s),!0)}function Vt(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Qt(r))return{key:n,result:r}}}function qt(e){return E({..."string"==typeof e?k(e):e,hash:""})}function Gt(e){return Response.json(e.data,e.init??void 0)}function Wt(e){return new _e(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function $t(e){return null!=e&&"object"==typeof e&&Object.entries(e).every(([e,t])=>"string"==typeof e&&Yt(t))}function Yt(e){return null!=e&&"object"==typeof e&&"type"in e&&"result"in e&&("data"===e.type||"error"===e.type)}function Kt(e){return Zt(e.result)&&Ve.has(e.result.status)}function Jt(e){return"error"===e.type}function Qt(e){return"redirect"===(e&&e.type)}function Xt(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Zt(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function en(e){return Ve.has(e)}function tn(e){return Zt(e)&&en(e.status)&&e.headers.has("Location")}function nn(e){return He.has(e.toUpperCase())}function rn(e){return ze.has(e.toUpperCase())}function on(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function an(e,t){let n="string"==typeof t?k(t).search:t.search;if(e[e.length-1].route.index&&on(n||""))return e[e.length-1];let r=ie(e);return r[r.length-1]}function sn(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(t&&n&&r)return null!=o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o}:null!=i?{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function ln(e,t,n,r){if(r){return{state:"loading",location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}return{state:"loading",location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cn(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 un(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 dn(){let e,t,n=new Promise((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}});return{promise:n,resolve:e,reject:t}}var fn=r.createContext(null);fn.displayName="DataRouter";var pn=r.createContext(null);pn.displayName="DataRouterState";var hn=r.createContext(!1);function mn(){return r.useContext(hn)}var gn=r.createContext({isTransitioning:!1});gn.displayName="ViewTransition";var yn=r.createContext(new Map);yn.displayName="Fetchers";var vn=r.createContext(null);vn.displayName="Await";var bn=e=>r.createElement(vn.Provider,e),_n=r.createContext(null);_n.displayName="Navigation";var wn=r.createContext(null);wn.displayName="Location";var Sn=r.createContext({outlet:null,matches:[],isDataRoute:!1});Sn.displayName="Route";var En=r.createContext(null);En.displayName="RouteError";var kn=!0,Tn="REACT_ROUTER_ERROR",xn="REDIRECT",On="ROUTE_ERROR_RESPONSE";function Cn(e){if(e.startsWith(`${Tn}:${xn}:{`))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 Pn(e){if(e.startsWith(`${Tn}:${On}:{`))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 An(e,{relative:t}={}){b(In(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=r.useContext(_n),{hash:i,pathname:a,search:s}=Hn(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:ce([n,a])),o.createHref({pathname:l,search:s,hash:i})}function In(){return null!=r.useContext(wn)}function Rn(){return b(In(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(wn).location}function jn(){return r.useContext(wn).navigationType}function Mn(e){b(In(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=Rn();return r.useMemo(()=>J(e,Z(t)),[t,e])}var Dn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nn(e){r.useContext(_n).static||r.useLayoutEffect(e)}function Ln(){let{isDataRoute:e}=r.useContext(Sn);return e?function(){let{router:e}=Zn("useNavigate"),t=tr("useNavigate"),n=r.useRef(!1);return Nn(()=>{n.current=!0}),r.useCallback(async(r,o={})=>{_(n.current,Dn),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t])}():function(){b(In(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(fn),{basename:t,navigator:n}=r.useContext(_n),{matches:o}=r.useContext(Sn),{pathname:i}=Rn(),a=JSON.stringify(ae(o)),s=r.useRef(!1);return Nn(()=>{s.current=!0}),r.useCallback((r,o={})=>
11{if(_(s.current,Dn),!s.current)return;if("number"==typeof r)return void n.go(r);let l=se(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:ce([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[t,n,a,i,e])}()}var Fn=r.createContext(null);function Bn(){return r.useContext(Fn)}function zn(e){let t=r.useContext(Sn).outlet;return r.useMemo(()=>t&&r.createElement(Fn.Provider,{value:e},t),[t,e])}function Un(){let{matches:e}=r.useContext(Sn),t=e[e.length-1];return t?.params??{}}function Hn(e,{relative:t}={}){let{matches:n}=r.useContext(Sn),{pathname:o}=Rn(),i=JSON.stringify(ae(n));return r.useMemo(()=>se(e,JSON.parse(i),o,"path"===t),[e,i,o,t])}function Vn(e,t){return qn(e,t)}function qn(e,t,n){b(In(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=r.useContext(_n),{matches:i}=r.useContext(Sn),a=i[i.length-1],s=a?a.params:{},l=a?a.pathname:"/",c=a?a.pathnameBase:"/",u=a&&a.route;if(kn){let e=u&&u.path||"";hr(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 d,f=Rn();if(t){let e="string"==typeof t?k(t):t;b("/"===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.`),d=e}else d=f;let p=d.pathname||"/",h=p;if("/"!==c){let e=c.replace(/^\//,"").split("/");h="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):M(e,{pathname:h});kn&&(_(u||null!=m,`No routes matched location "${d.pathname}${d.search}${d.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 "${d.pathname}${d.search}${d.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=Qn(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:ce([c,o.encodeLocation?o.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:ce([c,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&g?r.createElement(wn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},g):g}function Gn(){let e=lr(),t=we(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},s=null;return kn&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:a},"ErrorBoundary")," or"," ",r.createElement("code",{style:a},"errorElement")," prop on your route."))),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,s)}var Wn=r.createElement(Gn,null),$n=class extends r.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=Pn(e.digest);t&&(e=t)}let t=void 0!==e?r.createElement(Sn.Provider,{value:this.props.routeContext},r.createElement(En.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(Kn,{error:e},t):t}};$n.contextType=hn;var Yn=new WeakMap;function Kn({children:e,error:t}){let{basename:n}=r.useContext(_n);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=Cn(t.digest);if(e){let o=Yn.get(t);if(o)throw o;let i=ke(e.location,n),a=i.absoluteURL||i.to;
11if(At(a))throw new Error("Invalid redirect location");if(Ee&&!Yn.get(t)){if(!i.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Yn.set(t,n),n}window.location.href=a}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a}`})}}return e}function Jn({routeContext:e,match:t,children:n}){let o=r.useContext(fn);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(Sn.Provider,{value:e},n)}function Qn(e,t=[],n){let o=n?.state;if(null==e){if(!o)return null;if(o.errors)e=o.matches;else{if(0!==t.length||o.initialized||!(o.matches.length>0))return null;e=o.matches}}let i=e,a=o?.errors;if(null!=a){let e=i.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);b(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n&&o){s=o.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=o,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){n.isStatic&&(s=!0),i=l>=0?i.slice(0,l+1):[i[0]];break}}}}let c=n?.onError,u=o&&c?(e,t)=>{c(e,{location:o.location,params:o.matches?.[0]?.params??{},pattern:Se(o.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let d,f=!1,p=null,h=null;o&&(d=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||Wn,s&&(l<0&&0===c?(hr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):l===c&&(f=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=d?p:f?h:n.route.Component?r.createElement(n.route.Component,null):n.route.element?n.route.element:e,r.createElement(Jn,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=o},children:t})};return o&&(n.route.ErrorBoundary||n.route.errorElement||0===c)?r.createElement($n,{location:o.location,revalidation:o.revalidation,component:p,error:d,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:u}):g()},null)}function Xn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zn(e){let t=r.useContext(fn);return b(t,Xn(e)),t}function er(e){let t=r.useContext(pn);return b(t,Xn(e)),t}function tr(e){let t=function(e){let t=r.useContext(Sn);return b(t,Xn(e)),t}(e),n=t.matches[t.matches.length-1];return b(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function nr(){let e=er("useNavigation");return r.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function rr(){let e=Zn("useRevalidator"),t=er("useRevalidator"),n=r.useCallback(async()=>{await e.router.revalidate()},[e.router]);return r.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function or(){let{matches:e,loaderData:t}=er("useMatches");return r.useMemo(()=>e.map(e=>N(e,t)),[e,t])}function ir(){let e=er("useLoaderData"),t=tr("useLoaderData");return e.loaderData[t]}function ar(e){return er("useRouteLoaderData").loaderData[e]}function sr(){let e=er("useActionData"),t=tr("useLoaderData");return e.actionData?e.actionData[t]:void 0}function lr(){let e=r.useContext(En),t=er("useRouteError"),n=tr("useRouteError");return void 0!==e?e:t.errors?.[n]}function cr(){let e=r.useContext(vn);return e?._data}function ur(){let e=r.useContext(vn);return e?._error}var dr=0;function fr(e){let{router:t,basename:n}=Zn("useBlocker"),o=er("useBlocker"),[i,a]=r.useState(""),s=r.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===n)return e(t);let{currentLocation:r,nextLocation:o,historyAction:i}=t;return e({currentLocation:{...r,pathname:ee(r.pathname,n)||r.pathname},nextLocation:{...o,pathname:ee(o.pathname,n)||o.pathname},historyAction:i})},[n,e]);return r.useEffect(()=>{let e=String(++dr);return a(e),()=>t.deleteBlocker(e)},[t]),r.useEffect(()=>{""!==i&&t.getBlocker(i,s)},[t,i,s]),i&&o.blockers.has(i)?o.blockers.get(i):$e}var pr={};function hr(e,t,n){t||pr[e]||(pr[e]=!0,_(!1,n))}function mr(...e){const t=tr("useRoute"),n=e[0]??t,r=er("useRoute"),o=r.matches.find(({route:e})=>e.id===n);if(void 0!==o)return{handle:o.route.handle,loaderData:r.loaderData[n],actionData:r.actionData?.[n]}}function gr(e){return{id:e.route.id,pathname:e.pathname,params:e.params,handle:e.route.handle}}function yr(){let{location:e,historyAction:t,matches:n,navigation:o}=er("unstable_useRouterState"),i=r.useMemo(()=>({type:t,location:e,searchParams:new URLSearchParams(e.search),params:n[n.length-1]?.params??{},matches:n.map(e=>gr(e))}),[e,n,t]),a=r.useMemo(()=>
11{if("idle"===o.state)return null;let e={type:o.historyAction,location:o.location,searchParams:new URLSearchParams(o.location.search),params:o.matches[o.matches.length-1]?.params??{},matches:o.matches.map(e=>gr(e))};return"loading"===o.state?{...e,state:"loading",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}:{...e,state:"submitting",formMethod:o.formMethod,formAction:o.formAction,formEncType:o.formEncType,formData:o.formData,json:o.json,text:o.text}},[o]);return r.useMemo(()=>({active:i,pending:a}),[i,a])}var vr={};function br(e,t){e||vr[t]||(vr[t]=!0,console.warn(t))}var _r=r.useOptimistic,wr=()=>{};function Sr(e){let t={hasErrorBoundary:e.hasErrorBoundary||null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&(kn&&e.element&&_(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:r.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(kn&&e.hydrateFallbackElement&&_(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:r.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(kn&&e.errorElement&&_(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:r.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Er=["HydrateFallback","hydrateFallbackElement"];function kr(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:g({initialEntries:t?.initialEntries,initialIndex:t?.initialIndex}),hydrationData:t?.hydrationData,routes:e,hydrationRouteProperties:Er,mapRouteProperties:Sr,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,instrumentations:t?.instrumentations}).initialize()}var Tr=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 xr({router:e,flushSync:t,onError:n,useTransitions:o}){let i=mn();o=i||o;let[a,s]=r.useState(e.state),[l,c]=(u=a,_r?_r(u):[u,wr]);var u;let[d,f]=r.useState(),[p,h]=r.useState({isTransitioning:!1}),[m,g]=r.useState(),[y,v]=r.useState(),[b,_]=r.useState(),w=r.useRef(new Map),S=r.useCallback((i,{deletedFetchers:a,newErrors:l,flushSync:u,viewTransitionOpts:d})=>{l&&n&&Object.values(l).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Se(i.matches)})),i.fetchers.forEach((e,t)=>{void 0!==e.data&&w.current.set(t,e.data)}),a.forEach(e=>w.current.delete(e)),br(!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 p=null!=e.window&&null!=e.window.document&&"function"==typeof e.window.document.startViewTransition;if(br(null==d||p,"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."),d&&p){if(t&&u){t(()=>{y&&(m?.resolve(),y.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:d.currentLocation,nextLocation:d.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>s(i))});return n.finished.finally(()=>{t(()=>{g(void 0),v(void 0),f(void 0),h({isTransitioning:!1})})}),void t(()=>v(n))}y?(m?.resolve(),y.skipTransition(),_({state:i,currentLocation:d.currentLocation,nextLocation:d.nextLocation})):(f(i),h({isTransitioning:!0,flushSync:!1,currentLocation:d.currentLocation,nextLocation:d.nextLocation}))}else t&&u?t(()=>s(i)):!1===o?s(i):r.startTransition(()=>{!0===o&&c(e=>Or(e,i)),s(i)})},[e.window,t,y,m,o,c,n]);r.useLayoutEffect(()=>e.subscribe(S),[e,S]),r.useEffect(()=>{p.isTransitioning&&!p.flushSync&&g(new Tr)},[p]),r.useEffect(()=>{if(m&&d&&e.window){let t=d,n=m.promise,i=e.window.document.startViewTransition(async()=>{!1===o?s(t):r.startTransition(()=>{!0===o&&c(e=>Or(e,t)),s(t)}),await n});i.finished.finally(()=>{g(void 0),v(void 0),f(void 0),h({isTransitioning:!1})}),v(i)}},[d,m,e.window,o,c]),r.useEffect(()=>{m&&d&&l.location.key===d.location.key&&m.resolve()},[m,y,l.location,d]),r.useEffect(()=>{!p.isTransitioning&&b&&(f(b.state),h({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),_(void 0))},[p.isTransitioning,b]);let E=r.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),k=e.basename||"/",T=r.useMemo(()=>({router:e,navigator:E,static:!1,basename:k,onError:n}),[e,E,k,n]);return r.createElement(r.Fragment,null,r.createElement(fn.Provider,{value:T},r.createElement(pn.Provider,{value:l},r.createElement(yn.Provider,{value:w.current},r.createElement(gn.Provider,{value:p},r.createElement(Mr,{basename:k,location:l.location,navigationType:l.historyAction,navigator:E,useTransitions:o},r.createElement(Cr,{routes:e.routes,manifest:e.manifest,future:e.future,state:l,isStatic:!1,onError:n})))))),null)}function Or(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 Cr=r.memo(Pr);function Pr({routes:e,manifest:t,future:n,state:r,isStatic:o,onError:i}){return qn(e,void 0,{manifest:t,state:r,isStatic:o,onError:i,future:n})}function Ar({basename:e,children:t,initialEntries:n,initialIndex:o,useTransitions:i}){let a=r.useRef();null==a.current&&(a.current=g({initialEntries:n,initialIndex:o,v5Compat:!0}));let s=a.current,[l,c]=r.useState({action:s.action,location:s.location}),u=r.useCallback(e=>{!1===i?c(e):r.startTransition(()=>c(e))},[i]);return r.useLayoutEffect(()=>s.listen(u),[s,u]),r.createElement(Mr,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:i})}function Ir({to:e,replace:t,state:n,relative:o}){b(In(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=r.useContext(_n);_(!i,"<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:a}=r.useContext(Sn),{pathname:s}=Rn(),l=Ln(),c=se(e,ae(a),s,"path"===o),u=JSON.stringify(c);return r.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:o})},[l,u,o,t,n]),null}function Rr(e){return zn(e.context)}function jr(e){b(!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 Mr({basename:e="/",children:t=null,location:n,navigationType:o="POP",navigator:i,static:a=!1,useTransitions:s}){b(!In(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=r.useMemo(()=>({basename:l,navigator:i,static:a,useTransitions:s,future:{}}),[l,i,a,s]);"string"==typeof n&&(n=k(n));
11let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default",mask:m}=n,g=r.useMemo(()=>{let e=ee(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:h,mask:m},navigationType:o}},[l,u,d,f,p,h,o,m]);return _(null!=g,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),null==g?null:r.createElement(_n.Provider,{value:c},r.createElement(wn.Provider,{children:t,value:g}))}function Dr({children:e,location:t}){return Vn(Br(e),t)}function Nr({children:e,errorElement:t,resolve:n}){let o=r.useContext(fn),i=r.useContext(pn),a=r.useCallback((e,t)=>{o&&o.onError&&i&&o.onError(e,{location:i.location,params:i.matches[0]?.params||{},pattern:Se(i.matches),errorInfo:t})},[o,i]);return r.createElement(Lr,{resolve:n,errorElement:t,onError:a},r.createElement(Fr,null,e))}var Lr=class extends r.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:n}=this.props,o=null,i=0;if(n instanceof Promise)if(this.state.error){i=2;let e=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>e})}else n._tracked?(o=n,i="_error"in o?2:"_data"in o?1:0):(i=0,Object.defineProperty(n,"_tracked",{get:()=>!0}),o=n.then(e=>Object.defineProperty(n,"_data",{get:()=>e}),e=>{this.props.onError?.(e),Object.defineProperty(n,"_error",{get:()=>e})}));else i=1,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>n});if(2===i&&!t)throw o._error;if(2===i)return r.createElement(vn.Provider,{value:o,children:t});if(1===i)return r.createElement(vn.Provider,{value:o,children:e});throw o}};function Fr({children:e}){let t=cr(),n="function"==typeof e?e(t):e;return r.createElement(r.Fragment,null,n)}function Br(e,t=[]){let n=[];return r.Children.forEach(e,(e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,Br(e.props.children,i));b(e.type===jr,`[${"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>`),b(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.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=Br(e.props.children,i)),n.push(a)}),n}var zr=Br;function Ur(e){return Qn(e)}function Hr(){return{params:Un(),loaderData:ir(),actionData:sr(),matches:or()}}function Vr({children:e}){const t=Hr();return r.cloneElement(e,t)}function qr(e){return function(){const t=Hr();return r.createElement(e,t)}}function Gr(){return{params:Un(),loaderData:ir(),actionData:sr()}}function Wr({children:e}){const t=Gr();return r.cloneElement(e,t)}function $r(e){return function(){const t=Gr();return r.createElement(e,t)}}function Yr(){return{params:Un(),loaderData:ir(),actionData:sr(),error:lr()}}function Kr({children:e}){const t=Yr();return r.cloneElement(e,t)}function Jr(e){return function(){const t=Yr();return r.createElement(e,t)}}var Qr="get",Xr="application/x-www-form-urlencoded";function Zr(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}function eo(e=""){return new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var to=null;var no=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ro(e){return null==e||no.has(e)?e:(_(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xr}"`),null)}function oo(e,t){let n,r,o,i,a;if(Zr(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?ee(a,t):null,n=e.getAttribute("method")||Qr,o=ro(e.getAttribute("enctype"))||Xr,i=new FormData(e)}else if(function(e){return Zr(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Zr(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(r=s?ee(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Qr,o=ro(e.getAttribute("formenctype"))||ro(a.getAttribute("enctype"))||Xr,i=new FormData(a,e),!function(){if(null===to)try{new FormData(document.createElement("form"),0),to=!1}catch(e){to=!0}return to}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}
11else t&&i.append(t,r)}}else{if(Zr(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qr,r=null,o=Xr,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}var io=-1,ao=-2,so=-3,lo=-4,co=-5,uo=-6,fo=-7,po="B",ho="D",mo="E",go="M",yo="N",vo="P",bo="R",_o="S",wo="Y",So="U",Eo="Z",ko=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};var To=1,xo=()=>Date.now(),Oo=()=>new Promise(e=>setTimeout(e,0));async function Co(e){const{indices:t}=this,n=t.get(e);if(n)return[n];if(void 0===e)return fo;if(null===e)return co;if(Number.isNaN(e))return ao;if(e===Number.POSITIVE_INFINITY)return uo;if(e===Number.NEGATIVE_INFINITY)return so;if(0===e&&1/e<0)return lo;const r=this.index++;t.set(e,r);const o=[[e,r]];return await Po.call(this,o),r}async function Po(e){const{deferred:t,indices:n,plugins:r,postPlugins:o}=this,i=this.stringified;let a=xo();const s=t=>{const r=n.get(t);if(r)return[r];if(void 0===t)return fo;if(null===t)return co;if(Number.isNaN(t))return ao;if(t===Number.POSITIVE_INFINITY)return uo;if(t===Number.NEGATIVE_INFINITY)return so;if(0===t&&1/t<0)return lo;const o=this.index++;return n.set(t,o),e.push([t,o]),o};let l=0;for(;e.length>0;){const n=xo();++l%6e3==0&&n-a>=To&&(await Oo(),a=xo());const[c,u]=e.pop(),d=e=>Object.keys(e).map(t=>`"_${s(t)}":${s(e[t])}`).join(",");let f=null;switch(typeof c){case"boolean":case"number":case"string":i[u]=JSON.stringify(c);break;case"bigint":i[u]=`["${po}","${c}"]`;break;case"symbol":{const e=Symbol.keyFor(c);e?i[u]=`["${wo}",${JSON.stringify(e)}]`:f=new Error("Cannot encode symbol unless created with Symbol.for()");break}case"object":{if(!c){i[u]=`${co}`;break}const e=Array.isArray(c);let n=!1;if(!e&&r)for(const e of r){const t=e(c);if(Array.isArray(t)){n=!0;const[e,...r]=t;i[u]=`[${JSON.stringify(e)}`,r.length>0&&(i[u]+=`,${r.map(e=>s(e)).join(",")}`),i[u]+="]";break}}if(!n){let n=e?"[":"{";if(e){for(let e=0;e<c.length;e++)n+=(e?",":"")+(e in c?s(c[e]):io);i[u]=`${n}]`}else if(c instanceof Date){const e=c.getTime();i[u]=`["${ho}",${Number.isNaN(e)?JSON.stringify("invalid"):e}]`}else c instanceof URL?i[u]=`["${So}",${JSON.stringify(c.href)}]`:c instanceof RegExp?i[u]=`["${bo}",${JSON.stringify(c.source)},${JSON.stringify(c.flags)}]`:c instanceof Set?c.size>0?i[u]=`["${_o}",${[...c].map(e=>s(e)).join(",")}]`:i[u]=`["${_o}"]`:c instanceof Map?c.size>0?i[u]=`["${go}",${[...c].flatMap(([e,t])=>[s(e),s(t)]).join(",")}]`:i[u]=`["${go}"]`:c instanceof Promise?(i[u]=`["${vo}",${u}]`,t[u]=c):c instanceof Error?(i[u]=`["${mo}",${JSON.stringify(c.message)}`,"Error"!==c.name&&(i[u]+=`,${JSON.stringify(c.name)}`),i[u]+="]"):null===Object.getPrototypeOf(c)?i[u]=`["${yo}",{${d(c)}}]`:Io(c)?i[u]=`{${d(c)}}`:f=new Error("Cannot encode object with prototype")}break}default:{let e=!1;if(!Array.isArray(c)&&r)for(const t of r){const n=t(c);if(Array.isArray(n)){e=!0;const[t,...r]=n;i[u]=`[${JSON.stringify(t)}`,r.length>0&&(i[u]+=`,${r.map(e=>s(e)).join(",")}`),i[u]+="]";break}}e||(f=new Error("Cannot encode function or unexpected type"))}}if(f){let e=!1;if(o)for(const t of o){const n=t(c);if(Array.isArray(n)){e=!0;const[t,...r]=n;i[u]=`[${JSON.stringify(t)}`,r.length>0&&(i[u]+=`,${r.map(e=>s(e)).join(",")}`),i[u]+="]";break}}if(!e)throw f}}}var Ao=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Io(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t||Object.getOwnPropertyNames(t).sort().join("\0")===Ao}var Ro="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:void 0;function jo(e){const{hydrated:t,values:n}=this;if("number"==typeof e)return Mo.call(this,e);if(!Array.isArray(e)||!e.length)throw new SyntaxError;const r=n.length;for(const t of e)n.push(t);return t.length=n.length,Mo.call(this,r)}function Mo(e){const{hydrated:t,values:n,deferred:r,plugins:o}=this;let i;const a=[[e,e=>{i=e}]];let s=[];for(;a.length>0;){const[e,i]=a.pop();switch(e){case fo:i(void 0);continue;case co:i(null);continue;case ao:i(NaN);continue;case uo:i(1/0);continue;case so:i(-1/0);continue;case lo:i(-0);continue}if(t[e]){i(t[e]);continue}const l=n[e];if(l&&"object"==typeof l){if(!Array.isArray(l)){const n={};t[e]=n;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(()=>{n[t[0]]=t[1]})}i(n);continue}if("string"!=typeof l[0]){const n=[];t[e]=n;for(let e=0;e<l.length;e++){const t=l[e];t!==io&&a.push([t,t=>{n[e]=t}])}i(n);continue}{const[n,c,u]=l;switch(n){case ho:i(t[e]=new Date(c));continue;case So:i(t[e]=new URL(c));continue;case po:i(t[e]=BigInt(c));continue;case bo:i(t[e]=new RegExp(c,u));continue;case wo:i(t[e]=Symbol.for(c));continue;case _o:const n=new Set;t[e]=n;for(let e=l.length-1;e>0;e--)a.push([l[e],e=>{n.add(e)}]);i(n);continue;case go:const d=new Map;t[e]=d;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(()=>{d.set(t[0],t[1])})}i(d);continue;case yo:const f=Object.create(null);t[e]=f;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(()=>{f[t[0]]=t[1]})}i(f);continue;case vo:if(t[c])i(t[e]=t[c]);else{const n=new ko;r[c]=n,i(t[e]=n.promise)}continue;case mo:const[,p,h]=l;let m=h&&Ro&&be.includes(h)&&h in Ro&&"function"==typeof Ro[h]?new Ro[h](p):new Error(p);t[e]=m,i(m);continue;case Eo:i(t[e]=t[c]);continue;default:if(Array.isArray(o)){const n=[],r=l.slice(1);for(let e=0;e<r.length;e++){const t=r[e];a.push([t,t=>{n[e]=t}])}s.push(()=>{for(const r of o){const o=r(l[0],...n);if(o)return void i(t[e]=o.value)}throw new SyntaxError});continue}throw new SyntaxError}}}else t[e]=l,i(l)}for(;s.length>0;)s.pop()();return i}async function Do(e,t){const{plugins:n}=t??{},r=new ko,o=e.pipeThrough(function(){const e=new TextDecoder;let t="";return new TransformStream({transform(n,r){const o=e.decode(n,{stream:!0}),i=(t+o).split("\n");t=i.pop()||"";for(const e of i)r.enqueue(e)},flush(e){t&&e.enqueue(t)}})}()).getReader(),i={values:[],hydrated:[],deferred:{},plugins:n},a=await No.call(i,o);let s=r.promise;
11return a.done?r.resolve():s=Lo.call(i,o).then(r.resolve).catch(e=>{for(const t of Object.values(i.deferred))t.reject(e);r.reject(e)}),{done:s.then(()=>o.closed),value:a.value}}async function No(e){const t=await e.read();if(!t.value)throw new SyntaxError;let n;try{n=JSON.parse(t.value)}catch(e){throw new SyntaxError}return{done:t.done,value:jo.call(this,n)}}async function Lo(e){let t=await e.read();for(;!t.done;){if(!t.value)continue;const n=t.value;switch(n[0]){case vo:{const e=n.indexOf(":"),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw new Error(`Deferred ID ${t} not found in stream`);const o=n.slice(e+1);let i;try{i=JSON.parse(o)}catch(e){throw new SyntaxError}const a=jo.call(this,i);r.resolve(a);break}case mo:{const e=n.indexOf(":"),t=Number(n.slice(1,e)),r=this.deferred[t];if(!r)throw new Error(`Deferred ID ${t} not found in stream`);const o=n.slice(e+1);let i;try{i=JSON.parse(o)}catch(e){throw new SyntaxError}const a=jo.call(this,i);r.reject(a);break}default:throw new SyntaxError}t=await e.read()}}function Fo(e,t){const{onComplete:n,plugins:r,postPlugins:o,signal:i}=t??{},a={deferred:{},index:0,indices:new Map,stringified:[],plugins:r,postPlugins:o,signal:i},s=new TextEncoder;let l=0;return new ReadableStream({async start(t){const r=await Co.call(a,e);if(Array.isArray(r))throw new Error("This should never happen");r<0?t.enqueue(s.encode(`${r}\n`)):(t.enqueue(s.encode(`[${a.stringified.join(",")}]\n`)),l=a.stringified.length-1);const o=new WeakSet;let c=Promise.resolve();if(Object.keys(a.deferred).length){let e;const n=new Promise((t,n)=>{if(e=t,i){const e=()=>n(i.reason||new Error("Signal was aborted."));i.aborted?e():i.addEventListener("abort",t=>{e()})}});for(;Object.keys(a.deferred).length>0;){for(const[e,r]of Object.entries(a.deferred))o.has(r)||o.add(a.deferred[Number(e)]=Promise.race([n,r]).then(n=>(c=c.then(async()=>{const r=await Co.call(a,n);if(Array.isArray(r))t.enqueue(s.encode(`${vo}${e}:[["${Eo}",${r[0]}]]\n`)),a.index++,l++;else if(r<0)t.enqueue(s.encode(`${vo}${e}:${r}\n`));else{const n=a.stringified.slice(l+1).join(",");t.enqueue(s.encode(`${vo}${e}:[${n}]\n`)),l=a.stringified.length-1}}),c),n=>(c=c.then(async()=>{n&&"object"==typeof n&&n instanceof Error||(n=new Error("An unknown error occurred"));const r=await Co.call(a,n);if(Array.isArray(r))t.enqueue(s.encode(`${mo}${e}:[["${Eo}",${r[0]}]]\n`)),a.index++,l++;else if(r<0)t.enqueue(s.encode(`${mo}${e}:${r}\n`));else{const n=a.stringified.slice(l+1).join(",");t.enqueue(s.encode(`${mo}${e}:[${n}]\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(),n?.()}})}async function Bo(e){let t={signal:e.signal};if("GET"!==e.method){t.method=e.method;let n=e.headers.get("Content-Type");n&&/\bapplication\/json\b/.test(n)?(t.headers={"Content-Type":n},t.body=JSON.stringify(await e.json())):n&&/\btext\/plain\b/.test(n)?(t.headers={"Content-Type":n},t.body=await e.text()):n&&/\bapplication\/x-www-form-urlencoded\b/.test(n)?t.body=new URLSearchParams(await e.text()):t.body=await e.formData()}return t}var zo={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Uo=/[&><\u2028\u2029]/g;function Ho(e){return e.replace(Uo,e=>zo[e])}function Vo(e,t){if(!1===e||null==e)throw new Error(t)}var qo,Go=Symbol("SingleFetchRedirect"),Wo=class extends Error{},$o=202,Yo=new Set([100,101,204,205]);function Ko({context:e,identifier:t,reader:n,textDecoder:o,nonce:i}){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]=n.read().then(e=>{a[t].result={done:e.done,value:o.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?r.createElement("script",{nonce:i,dangerouslySetInnerHTML:{__html:`window.__reactRouterContext.streamController.enqueue(${Ho(JSON.stringify(c))});`}}):null;return l?r.createElement(r.Fragment,null,u,r.createElement("script",{nonce:i,dangerouslySetInnerHTML:{__html:"window.__reactRouterContext.streamController.close();"}})):r.createElement(r.Fragment,null,u,r.createElement(r.Suspense,null,r.createElement(Ko,{context:e,identifier:t+1,reader:n,textDecoder:o,nonce:i})))}function Jo(e,t,n,r,o,i){let a=Qo(e,e=>{let n=t.routes[e.route.id];return Vo(n,"Route not found in manifest"),{hasLoader:n.hasLoader,hasClientLoader:n.hasCl
11ientLoader}},ei,r,o,i);return async e=>e.runClientMiddleware(a)}function Qo(e,t,n,r,o,i,a=()=>!0){return async s=>{let{request:l,matches:c,fetcherKey:u}=s,d=e();if("GET"!==l.method)return async function(e,t,n,r){let o=e.matches.find(e=>e.shouldCallHandler());Vo(o,"No action match found");let i,a=await o.resolve(async a=>await a(async()=>{let{data:a,status:s}=await t(e,n,r,[o.route.id]);return i=s,ni(a,o.route.id)}));if(Zt(a.result)||we(a.result)||Xt(a.result))return{[o.route.id]:a};return{[o.route.id]:{type:a.type,result:me(a.result,i)}}}(s,n,o,i);let f=c.some(e=>{let{hasLoader:n,hasClientLoader:r}=t(e);return e.shouldCallHandler()&&n&&!r});return r||f?u?async function(e,t,n,r){let o=e.matches.find(e=>e.shouldCallHandler());Vo(o,"No fetcher match found");let i=o.route.id,a=await o.resolve(async o=>o(async()=>{let{data:o}=await t(e,n,r,[i]);return ni(o,i)}));return{[o.route.id]:a}}(s,n,o,i):async function(e,t,n,r,o,i,a,s=()=>!0){let l=new Set,c=!1,u=e.matches.map(()=>ri()),d=ri(),f={},p=Promise.all(e.matches.map(async(t,o)=>t.resolve(async p=>{u[o].resolve();let h=t.route.id,{hasLoader:m,hasClientLoader:g}=n(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 p(async()=>{let{data:t}=await r(e,i,a,[h]);return ni(t,h)});f[h]={type:"data",result:t}}catch(e){f[h]={type:"error",result:e}}}else{m&&l.add(h);try{let e=await p(async()=>ni(await d.promise,h));f[h]={type:"data",result:e}}catch(e){f[h]={type:"error",result:e}}}else c||(c=null!=t.shouldRevalidateArgs&&m)})));await Promise.all(u.map(e=>e.promise));let h=!t.state.initialized&&"idle"===t.state.navigation.state;if(!h&&0!==l.size||window.__reactRouterHdrActive){let t=o&&c&&l.size>0?[...l.keys()]:void 0;try{let n=await r(e,i,a,t);d.resolve(n.data)}catch(e){d.reject(e)}}else d.resolve({routes:{}});return await p,await async function(e,t,n,r){try{let o,i=await e;if("routes"in i)for(let e of t)if(e.route.id in i.routes){let t=i.routes[e.route.id];if("error"in t){o=t.error,null==r[e.route.id]?.result&&(r[e.route.id]={type:"error",result:o});break}}void 0!==o&&Array.from(n.values()).forEach(e=>{r[e].result instanceof Wo&&(r[e].result=o)})}catch(e){}}(d.promise,e.matches,l,f),f}(s,d,t,n,r,o,i,a):async function(e,t,n,r,o){let i=e.matches.filter(e=>e.shouldCallHandler()),a={};return await Promise.all(i.map(i=>i.resolve(async s=>{try{let{hasClientLoader:l}=t(i),c=i.route.id,u=l?await s(async()=>{let{data:t}=await n(e,r,o,[c]);return ni(t,c)}):await s();a[i.route.id]={type:"data",result:u}}catch(e){a[i.route.id]={type:"error",result:e}}}))),a}(s,t,n,o,i)}}function Xo(e){let t=e.searchParams.getAll("index");e.searchParams.delete("index");let n=[];for(let e of t)e&&n.push(e);for(let t of n)e.searchParams.append("index",t);return e}function Zo(e,t,n,r){let o="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===ee(o.pathname,t)?o.pathname=`${ue(t)}/_root.${r}`:o.pathname=`${ue(o.pathname)}.${r}`,o}async function ei(e,t,n,r){let{request:o}=e,i=Zo(o.url,t,n,"data");"GET"===o.method&&(i=Xo(i),r&&i.searchParams.set("_routes",r.join(",")));let a=await fetch(i,await Bo(o));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:$o,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(Yo.has(a.status)){let e={};return r&&"GET"!==o.method&&(e[r[0]]={data:void 0}),{status:a.status,data:{routes:e}}}Vo(a.body,"No response body to decode");try{let e,t=await ti(a.body,window);if("GET"===o.method){let n=t.value;e=Go in n?{redirect:n[Go]}:{routes:n}}else{let n=t.value,o=r?.[0];Vo(o,"No routeId found for single fetch call decoding"),e="redirect"in n?{redirect:n}:{routes:{[o]:n}}}return{status:a.status,data:e}}catch(e){throw new Error("Unable to decode turbo-stream response")}}function ti(e,t){return Do(e,{plugins:[(e,...n)=>{if("SanitizedError"===e){let[e,r,o]=n,i=Error;e&&be.includes(e)&&e in t&&"function"==typeof t[e]&&(i=t[e]);let a=new i(r);return a.stack=o,{value:a}}if("ErrorResponse"===e){let[e,t,r]=n;return{value:new _e(t,r,e)}}return"SingleFetchRedirect"===e?{value:{[Go]:n[0]}}:"SingleFetchClassInstance"===e?{value:n[0]}:"SingleFetchFallback"===e?{value:void 0}:void 0}]})}function ni(e,t){if("redirect"in e){let{redirect:t,revalidate:n,reload:r,replace:o,status:i}=e.redirect;throw ge(t,{status:i,headers:{...n?{"X-Remix-Revalidate":"yes"}:null,...r?{"X-Remix-Reload-Document":"yes"}:null,...o?{"X-Remix-Replace":"yes"}:null}})}let n=e.routes[t];if(null==n)throw new Wo(`No result found for routeId "${t}"`);if("error"in n)throw n.error;if("data"in n)return n.data;throw new Error(`Invalid response found for routeId "${t}"`)}function ri(){let e,t,n=new Promise((r,o)=>{e=async e=>{r(e);try{await n}catch(e){}},t=async e=>{o(e);try{await n}catch(e){}}});return{promise:n,resolve:e,reject:t}}async function oi(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function ii(e){return e.css?e.css.map(e=>({rel:"stylesheet",href:e})):[]}async function ai(e,t){if(!e.css&&!t.links||!function(){if(void 0!==qo)return qo;let e=document.createElement("link");return qo=e.relList.supports("preload"),e=null,qo}())return;let n=[];if(e.css&&n.push(...ii(e)),t.links&&n.push(...t.links()),0===n.length)return;let r=[];for(let e of n)li(e)||"stylesheet"!==e.rel||r.push({...e,rel:"preload",as:"style"});await Promise.all(r.map(si))}async function si(e){return new Promise(t=>{if(e.media&&!window.matchMedia(e.media).matches||document.querySelector(`link[rel="stylesheet"][href="${e.href}"]`))return t();let n=document.createElement("link");function r(){document.head.contains(n)&&document.head.removeChild(n)}Object.assign(n,e),n.onload=()=>{r(),t()},n.onerror=()=>{r(),t()},document.head.appendChild(n)})}function li(e){return null!=e&&"string"==typeof e.page}function ci(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 ui(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function di(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1),[...new Set(r)];var r}function fi(e,t){let n=new Set,r=new Set(t);return e.reduce((e,o)=>{if(t&&!li(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e},[])}function pi(){let{nonce:e}=Fi();return r.createElement(ea,{title:"Loading...",renderScripts:!0},kn?r.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 hi(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||"";t[n]||(t[n]=[]),t[n].push(e)}}),t}function mi(e,t,n){let o=Si(t),i=!t.HydrateFallback||n&&"root"!==e.id?"root"===e.id?pi:void 0:t.HydrateFallback,a=t.ErrorBoundary?t.ErrorBoundary:"root"===e.id?()=>r.createElement(Zi,{error:lr()}):void 0;return"root"===e.id&&t.Layout?{...o?{element:r.createElement(t.Layout,null,r.createElement(o,null))}:{Component:o},...a?{errorElement:r.createElement(t.Layout,null,r.createElement(a,null))}:{ErrorBoundary:a},...i?{hydrateFallbackElement:r.createElement(t.Layout,null,r.createElement(i,null))}:{HydrateFallback:i}}:{Component:o,ErrorBoundary:a,HydrateFallback:i}}function gi(e,t,n,r,o="",i=hi(e),a=Promise.resolve({Component:()=>null})){return(i[o]||[]).map(o=>{let s=t[o.id];Vo(s,"No `routeModule` available to create server routes");let l={...mi(o,s,r),caseSensitive:o.caseSensitive,id:o.id,index:o.index,path:o.path,handle:s.handle,lazy:r?()=>a:void 0,loader:o.hasLoader||o.hasClientLoader?()=>null:void 0},c=gi(e,t,n,r,o.id,i,a);return c.length>0&&(l.children=c),l})}function yi(e,t,n,r,o,i){return _i(t,n,r,o,i,"",hi(t),e)}function vi(e,t){if("loader"===e&&!t.hasLoader||"action"===e&&!t.hasAction){let n=`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(n),new _e(400,"Bad Request",new Error(n),!0)}}function bi(e,t){let n="clientAction"===e?"a":"an",r=`Route "${t}" does not have ${n} ${e}, but you are trying to submit to it. To fix this, please add ${n} \`${e}\` function to the route`;throw console.error(r),new _e(405,"Method Not Allowed",new Error(r),!0)}function _i(e,t,n,r,o,i="",a=hi(e),s){return(a[i]||[]).map(i=>{let l=t[i.id];function c(e){return Vo("function"==typeof e,"No single fetch function available for route handler"),e()}function u(e){return i.hasLoader?c(e):Promise.resolve(null)}function d(e){if(!i.hasAction)throw bi("action",i.id);return c(e)}function f(e){import(e)}function p(e){e.clientActionModule&&f(e.clientActionModule),e.clientLoaderModule&&f(e.clientLoaderModule)}async function h(e){let n=t[i.id],r=n?ai(i,n):Promise.resolve();try{return e()}finally{await r}}let m={id:i.id,index:i.index,path:i.path};if(l){Object.assign(m,{...m,...mi(i,l,o),middleware:l.clientMiddleware,handle:l.handle,shouldRevalidate:wi(m.path,l,i,r,s)});let y=n&&n.loaderData&&i.id in n.loaderData,v=y?n?.loaderData?.[i.id]:void 0,b=n&&n.errors&&i.id in n.errors,_=b?n?.errors?.[i.id]:void 0,w=null==s&&(!0===l.clientLoader?.hydrate||!i.hasLoader);m.loader=async({request:e,params:t,context:n,pattern:r,url:o},a)=>{let s=w;return w=!1,await h(async()=>(Vo(l,"No `routeModule` available for critical-route loader"),l.clientLoader?l.clientLoader({request:e,params:t,context:n,pattern:r,url:o,async serverLoader(){if
11(vi("loader",i),s){if(y)return v;if(b)throw _}return u(a)}}):u(a)))},m.loader.hydrate=Ei(i.id,l.clientLoader,i.hasLoader,o),m.action=({request:e,params:t,context:n,pattern:r,url:a},s)=>h(async()=>{if(Vo(l,"No `routeModule` available for critical-route action"),!l.clientAction){if(o)throw bi("clientAction",i.id);return d(s)}return l.clientAction({request:e,params:t,context:n,pattern:r,url:a,serverAction:async()=>(vi("action",i),d(s))})})}else{let S;async function E(){return S||(S=(async()=>{(i.clientLoaderModule||i.clientActionModule)&&await new Promise(e=>setTimeout(e,0));let e=async function(e,t){let n=oi(e,t),r=async function(e){if(!e.css)return;let t=ii(e);await Promise.all(t.map(si))}(e),o=await n;return await Promise.all([r,ai(e,o)]),{Component:Si(o),ErrorBoundary:o.ErrorBoundary,clientMiddleware:o.clientMiddleware,clientAction:o.clientAction,clientLoader:o.clientLoader,handle:o.handle,links:o.links,meta:o.meta,shouldRevalidate:o.shouldRevalidate}}(i,t);return p(i),await e})()),await S}i.hasClientLoader||(m.loader=(e,t)=>h(()=>u(t))),i.hasClientAction||(m.action=(e,t)=>h(()=>{if(o)throw bi("clientAction",i.id);return d(t)})),m.lazy={loader:i.hasClientLoader?async()=>{let{clientLoader:e}=i.clientLoaderModule?await import(i.clientLoaderModule):await E();return Vo(e,"No `clientLoader` export found"),(t,n)=>e({...t,serverLoader:async()=>(vi("loader",i),u(n))})}:void 0,action:i.hasClientAction?async()=>{let e=i.clientActionModule?import(i.clientActionModule):E();p(i);let{clientAction:t}=await e;return Vo(t,"No `clientAction` export found"),(e,n)=>t({...e,serverAction:async()=>(vi("action",i),d(n))})}
11:void 0,middleware:i.hasClientMiddleware?async()=>{let{clientMiddleware:e}=i.clientMiddlewareModule?await import(i.clientMiddlewareModule):await E();return Vo(e,"No `clientMiddleware` export found"),e}:void 0,shouldRevalidate:async()=>{let e=await E();return wi(m.path,e,i,r,s)},handle:async()=>(await E()).handle,Component:async()=>(await E()).Component,ErrorBoundary:i.hasErrorBoundary?async()=>(await E()).ErrorBoundary:void 0}}let g=_i(e,t,n,r,o,i.id,a,s);return g.length>0&&(m.children=g),m})}function wi(e,t,n,r,o){if(o)return function(e,t,n){let r=!1;return o=>r?t?t(o):o.defaultShouldRevalidate:(r=!0,n.has(e))}(n.id,t.shouldRevalidate,o);if(!r&&n.hasLoader&&!n.hasClientLoader){let n=e?X(e)[1].map(e=>e.paramName):[];const r=e=>n.some(t=>e.currentParams[t]!==e.nextParams[t]);if(t.shouldRevalidate){let e=t.shouldRevalidate;return t=>e({...t,defaultShouldRevalidate:r(t)})}return e=>r(e)}return t.shouldRevalidate}function Si(e){if(null==e.default)return;return"object"==typeof e.default&&0===Object.keys(e.default).length?void 0:e.default}function Ei(e,t,n,r){return r&&"root"!==e||null!=t&&(!0===t.hydrate||!0!==n)}var ki=new Set,Ti=1e3,xi=new Set,Oi=7680;function Ci(e){let t=new Set;return e.forEach(e=>{e.startsWith("/")||(e=`/${e}`);for(let n=1;n<e.length;n++)"/"===e[n]&&t.add(e.slice(0,n));t.add(e)}),Array.from(t)}function Pi(e,t){return"lazy"===e.mode&&!0===t}function Ai(e,t,n,r,o,i,a){if(Pi(o,r))return async({path:s,patch:l,signal:c,fetcherKey:u})=>{if(xi.has(s))return;let{state:d}=e();await Mi([s],u?window.location.href:E(d.navigation.location||d.location),t,n,r,i,a,o.manifestPath,l,c)}}function Ii(e,t,n,o,i,a){r.useEffect(()=>{if(!Pi(i,o)||!0===window.navigator?.connection?.saveData)return;function r(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let n="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;xi.has(n)||ki.add(n)}async function s(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(r);let s=Array.from(ki.keys()).filter(e=>!xi.has(e)||(ki.delete(e),!1));if(0!==s.length)try{await Mi(s,null,t,n,o,a,e.basename,i.manifestPath,e.patchRoutes)}catch(e){console.error("Failed to fetch manifest patches",e)}}let l=function(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),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()},[o,a,t,n,e,i])}function Ri(e,t){let n=e||"/__manifest";return null==t?n:ce([t,n])}var ji="react-router-manifest-version";async function Mi(e,t,n,r,o,i,a,s,l,c){e=Ci(e);const u=new URLSearchParams;u.set("paths",e.sort().join(",")),u.set("version",n.version);let d,f=new URL(Ri(s,a),window.location.origin);if(f.search=u.toString(),f.toString().length>Oi)return void ki.clear();try{let e=await fetch(f,{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 new document navigation to sync up with the latest manifest.");try{if(sessionStorage.getItem(ji)===n.version)return void console.error("Unable to discover routes due to manifest version mismatch.");sessionStorage.setItem(ji,n.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(ji)}catch{}d=await e.json()}catch(e){if(c?.aborted)return;throw e}let p=new Set(Object.keys(n.routes)),h=Object.values(d).reduce((e,t)=>(t&&!p.has(t.id)&&(e[t.id]=t),e),{});Object.assign(n.routes,h),e.forEach(e=>function(e,t){if(t.size>=Ti){let e=t.values().next().value;t.delete(e)}t.add(e)}(e,xi));let m=new Set;Object.values(h).forEach(e=>{!e||e.parentId&&h[e.parentId]||m.add(e.parentId)}),m.forEach(e=>l(e||null,_i(h,r,null,o,i,e)))}function Di(){let e=r.useContext(fn);return Vo(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Ni(){let e=r.useContext(pn);return Vo(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Li=r.createContext(void 0);function Fi(){let e=r.useContext(Li);return Vo(e,"You must render this element inside a <HydratedRouter> element"),e}function Bi(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zi(e,t,n){if(n&&!Yi)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}Li.displayName="FrameworkContext";var Ui="data-react-router-critical-css";function Hi({nonce:e,crossOrigin:t}
11){let{isSpaMode:n,manifest:o,routeModules:i,criticalCss:a,nonce:s}=Fi(),{errors:l,matches:c}=Ni(),u=zi(c,l,n),d=r.useMemo(()=>function(e,t,n){return fi(e.map(e=>{let r=t[e.route.id],o=n.routes[e.route.id];return[o&&o.css?o.css.map(e=>({rel:"stylesheet",href:e})):[],r?.links?.()||[]]}).flat(2),di(e,n))}(u,i,o),[u,i,o]);return null==e&&s&&(e=s),r.createElement(r.Fragment,null,"string"==typeof a?r.createElement("style",{[Ui]:"",nonce:e,dangerouslySetInnerHTML:{__html:a}}):null,"object"==typeof a?r.createElement("link",{[Ui]:"",rel:"stylesheet",href:a.href,nonce:e,crossOrigin:t}):null,d.map(({key:n,link:o})=>li(o)?r.createElement(Vi,{key:n,nonce:e,...o,crossOrigin:o.crossOrigin??t}):r.createElement("link",{key:n,nonce:e,...o,crossOrigin:o.crossOrigin??t})))}function Vi({page:e,...t}){let n=mn(),{nonce:o}=Fi(),{router:i}=Di(),a=r.useMemo(()=>M(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(null==t.nonce&&o&&(t={...t,nonce:o}),n?r.createElement(Gi,{page:e,matches:a,...t}):r.createElement(Wi,{page:e,matches:a,...t})):null}function qi(e){let{manifest:t,routeModules:n}=Fi(),[o,i]=r.useState([]);return r.useEffect(()=>{let r=!1;return async function(e,t,n){return fi((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await oi(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ci).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),o}function Gi({page:e,matches:t,...n}){let o=Rn(),{future:i}=Fi(),{basename:a}=Di(),s=r.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let n=Zo(e,a,i.v8_trailingSlashAwareDataRequests,"rsc"),r=!1,s=[];for(let e of t)"function"==typeof e.route.shouldRevalidate?r=!0:s.push(e.route.id);return r&&s.length>0&&n.searchParams.set("_routes",s.join(",")),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,o,t]);return r.createElement(r.Fragment,null,s.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})))}function Wi({page:e,matches:t,...n}){let o=Rn(),{future:i,manifest:a,routeModules:s}=Fi(),{basename:l}=Di(),{loaderData:c,matches:u}=Ni(),d=r.useMemo(()=>ui(e,t,u,a,o,"data"),[e,t,u,a,o]),f=r.useMemo(()=>ui(e,t,u,a,o,"assets"),[e,t,u,a,o]),p=r.useMemo(()=>{if(e===o.pathname+o.search+o.hash)return[];let n=new Set,r=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!d.some(t=>t.route.id===e.route.id)&&e.route.id in c&&s[e.route.id]?.shouldRevalidate||t.hasClientLoader?r=!0:n.add(e.route.id))}),0===n.size)return[];let u=Zo(e,l,i.v8_trailingSlashAwareDataRequests,"data");return r&&n.size>0&&u.searchParams.set("_routes",t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(",")),[u.pathname+u.search]},[l,i.v8_trailingSlashAwareDataRequests,c,o,a,d,t,e,s]),h=r.useMemo(()=>di(f,a),[f,a]),m=qi(f);return r.createElement(r.Fragment,null,p.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),h.map(e=>r.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),m.map(({key:e,link:t})=>r.createElement("link",{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function $i(){let{isSpaMode:e,routeModules:t}=Fi(),{errors:n,matches:o,loaderData:i}=Ni(),a=Rn(),s=zi(o,n,e),l=null;n&&(l=n[s[s.length-1].route.id]);let c=[],u=null,d=[];for(let e=0;e<s.length;e++){let n=s[e],r=n.route.id,o=i[r],f=n.params,p=t[r],h=[],m={id:r,data:o,loaderData:o,meta:[],params:n.params,pathname:n.pathname,handle:n.route.handle,error:l};if(d[e]=m,p?.meta?h="function"==typeof p.meta?p.meta({data:o,loaderData:o,params:f,location:a,matches:d,error:l}):Array.isArray(p.meta)?[...p.meta]:p.meta:u&&(h=[...u]),h=h||[],!Array.isArray(h))throw new Error("The route at "+n.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=h,d[e]=m,c=[...h],u=c}return r.createElement(r.Fragment,null,c.flat().map(e=>{if(!e)return null;if("tagName"in e){let{tagName:t,...n}=e;if(!function(e){return"string"==typeof e&&/^(meta|link)$/.test(e)}
11(t))return console.warn(`A meta object uses an invalid tagName: ${t}. Expected either 'link' or 'meta'`),null;let o=t;return r.createElement(o,{key:JSON.stringify(n),...n})}if("title"in e)return r.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?r.createElement("meta",{key:"charSet",charSet:e.charSet}):null;if("script:ld+json"in e)try{let t=JSON.stringify(e["script:ld+json"]);return r.createElement("script",{key:`script:ld+json:${t}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:Ho(t)}})}catch(e){return null}return r.createElement("meta",{key:JSON.stringify(e),...e})}))}var Yi=!1;function Ki(){Yi=!0}function Ji(e){let{manifest:t,serverHandoffString:n,isSpaMode:o,renderMeta:i,routeDiscovery:a,ssr:s,nonce:l}=Fi(),{router:c,static:u,staticContext:d}=Di(),{matches:f}=Ni(),p=mn(),h=Pi(a,s);null==e.nonce&&l&&(e={...e,nonce:l}),i&&(i.didRenderScripts=!0);let m=zi(f,null,o);r.useEffect(()=>{Ki()},[]);let g=r.useMemo(()=>{if(p)return null;let o=d?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${h?"":`import ${JSON.stringify(t.url)}`};\n${m.map((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];Vo(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:c}=o,u=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:c,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n  ${h?`window.__reactRouterManifest = ${JSON.stringify(function({sri:e,...t},n){let r=new Set(n.state.matches.map(e=>e.route.id)),o=n.state.location.pathname.split("/").filter(Boolean),i=["/"];for(o.pop();o.length>0;)i.push(`/${o.join("/")}`),o.pop();i.forEach(e=>{let t=D(n.routes,e,n.basename||"/",!1,n.branches);t&&t.forEach(e=>r.add(e.route.id))});let a=[...r].reduce((e,n)=>Object.assign(e,{[n]:t.routes[n]}),{});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 r.createElement(r.Fragment,null,r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:void 0}),r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))},[]),y=Yi||p?[]:[...new Set(t.entry.imports.concat(di(m,t,{includeHydrateFallback:!0})))],v="object"==typeof t.sri?t.sri:{};return br(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),Yi||p?null:r.createElement(r.Fragment,null,"object"==typeof t.sri?r.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:v})}}):null,h?null:r.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:v[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),r.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:v[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),y.map(t=>r.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:v[t],nonce:e.nonce,suppressHydrationWarning:!0})),g)}function Qi(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}var Xi=class extends r.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?r.createElement(Zi,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function Zi({error:e,isOutsideRemixApp:t}){let{nonce:n}=Fi();console.error(e);let o,i=r.createElement("script",{nonce:n,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(we(e))return r.createElement(ea,{title:"Unhandled Thrown Response!"},r.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),kn?i:null);if(e instanceof Error)o=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);o=new Error(t)}
11return r.createElement(ea,{title:"Application Error!",isOutsideRemixApp:t},r.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),r.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),i)}function ea({title:e,renderScripts:t,isOutsideRemixApp:n,children:o}){let{routeModules:i}=Fi();return i.root?.Layout&&!n?o:r.createElement("html",{lang:"en"},r.createElement("head",null,r.createElement("meta",{charSet:"utf-8"}),r.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),r.createElement("title",null,e)),r.createElement("body",null,r.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},o,t?r.createElement(Ji,null):null)))}var ta="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{ta&&(window.__reactRouterVersion="7.18.1")}catch(e){}function na(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:y({window:t?.window}),hydrationData:t?.hydrationData||oa(),routes:e,mapRouteProperties:Sr,hydrationRouteProperties:Er,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function ra(e,t){return Xe({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:v({window:t?.window}),hydrationData:t?.hydrationData||oa(),routes:e,mapRouteProperties:Sr,hydrationRouteProperties:Er,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function oa(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ia(e.errors)}),e}function ia(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)n[e]=new _e(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if("string"==typeof r.__subType&&be.includes(r.__subType)){let t=window[r.__subType];if("function"==typeof t)try{let o=new t(r.message);o.stack="",n[e]=o}catch(e){}}if(null==n[e]){let t=new Error(r.message);t.stack="",n[e]=t}}else n[e]=r;return n}function aa({basename:e,children:t,useTransitions:n,window:o}){let i=r.useRef();null==i.current&&(i.current=y({window:o,v5Compat:!0}));let a=i.current,[s,l]=r.useState({action:a.action,location:a.location}),c=r.useCallback(e=>{!1===n?l(e):r.startTransition(()=>l(e))},[n]);return r.useLayoutEffect(()=>a.listen(c),[a,c]),r.createElement(Mr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:n})}function sa({basename:e,children:t,useTransitions:n,window:o}){let i=r.useRef();null==i.current&&(i.current=v({window:o,v5Compat:!0}));let a=i.current,[s,l]=r.useState({action:a.action,location:a.location}),c=r.useCallback(e=>{!1===n?l(e):r.startTransition(()=>l(e))},[n]);return r.useLayoutEffect(()=>a.listen(c),[a,c]),r.createElement(Mr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a,useTransitions:n})}function la({basename:e,children:t,history:n,useTransitions:o}){let[i,a]=r.useState({action:n.action,location:n.location}),s=r.useCallback(e=>{!1===o?a(e):r.startTransition(()=>a(e))},[o]);return r.useLayoutEffect(()=>n.listen(s),[n,s]),r.createElement(Mr,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:o})}la.displayName="unstable_HistoryRouter";var ca=r.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:o,reloadDocument:i,replace:a,mask:s,state:l,target:u,to:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:h,...m},g){let{basename:y,navigator:v,useTransitions:b}=r.useContext(_n),_="string"==typeof d&&c.test(d),w=ke(d,y),S=An(d=w.to,{relative:o}),E=Rn(),k=null;if(s){let e=se(s,[],E.mask?E.mask.pathname:"/",!0);"/"!==y&&(e.pathname="/"===e.pathname?y:ce([y,e.pathname])),k=v.createHref(e)}let[T,x,O]=function(e,t){let n=r.useContext(Li),[o,i]=r.useState(!1),[a,s]=r.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,p=r.useRef(null);r.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>
11{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(o){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[o]);let h=()=>{i(!0)},m=()=>{i(!1),s(!1)};return n?"intent"!==e?[a,p,{}]:[a,p,{onFocus:Bi(l,h),onBlur:Bi(c,m),onMouseEnter:Bi(u,h),onMouseLeave:Bi(d,m),onTouchStart:Bi(f,h)}]:[!1,p,{}]}(n,m),C=ga(d,{replace:a,mask:s,state:l,target:u,preventScrollReset:f,relative:o,viewTransition:p,defaultShouldRevalidate:h,useTransitions:b});let P=!(w.isExternal||i),A=r.createElement("a",{...m,...O,href:(P?k:void 0)||w.absoluteURL||S,onClick:P?function(t){e&&e(t),t.defaultPrevented||C(t)}:e,ref:Qi(g,x),target:u,"data-discover":_||"render"!==t?void 0:"true"});return T&&!_?r.createElement(r.Fragment,null,A,r.createElement(Vi,{page:S})):A});ca.displayName="Link";var ua=r.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...c},u){let d=Hn(a,{relative:c.relative}),f=Rn(),p=r.useContext(pn),{navigator:h,basename:m}=r.useContext(_n),g=null!=p&&Aa(d)&&!0===s,y=h.encodeLocation?h.encodeLocation(d).pathname:d.pathname,v=f.pathname,b=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(v=v.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&m&&(b=ee(b,m)||b);const _="/"!==y&&y.endsWith("/")?y.length-1:y.length;let w,S=v===y||!o&&v.startsWith(y)&&"/"===v.charAt(_),E=null!=b&&(b===y||!o&&b.startsWith(y)&&"/"===b.charAt(y.length)),k={isActive:S,isPending:E,isTransitioning:g},T=S?e:void 0;w="function"==typeof n?n(k):[n,S?"active":null,E?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let x="function"==typeof i?i(k):i;return r.createElement(ca,{...c,"aria-current":T,className:w,ref:u,style:x,to:a,viewTransition:s},"function"==typeof l?l(k):l)});ua.displayName="NavLink";var da=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:o,replace:i,state:a,method:s=Qr,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:h,...m},g)=>{let{useTransitions:y}=r.useContext(_n),v=_a(),b=wa(l,{relative:d}),_="get"===s.toLowerCase()?"get":"post",w="string"==typeof l&&c.test(l);return r.createElement("form",{ref:g,method:_,action:b,onSubmit:o?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let o=e.nativeEvent.submitter,l=o?.getAttribute("formmethod")||s,c=()=>v(o||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:i,state:a,relative:d,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:h});y&&!1!==n?r.startTransition(()=>c()):c()},...m,"data-discover":w||"render"!==e?void 0:"true"})});function fa({getKey:e,storageKey:t,...n}){let o=r.useContext(Li),{basename:i}=r.useContext(_n),a=Rn(),s=or();Oa({getKey:e,storageKey:t});let l=r.useMemo(()=>{if(!o||!e)return null;let t=xa(a,s,i,e);return t!==a.key?t:null},[]);if(!o||o.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 n=JSON.parse(sessionStorage.getItem(e)||"{}")[t||window.history.state.key];"number"==typeof n&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return null==n.nonce&&o?.nonce&&(n.nonce=o.nonce),r.createElement("script",{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ho(JSON.stringify(t||ka))}, ${Ho(JSON.stringify(l))})`}})}function pa(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ha(e){let t=r.useContext(fn);return b(t,pa(e)),t}function ma(e){let t=r.useContext(pn);return b(t,pa(e)),t}function ga(e,{target:t,replace:n,mask:o,state:i,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c,useTransitions:u}={}){let d=Ln(),f=Rn(),p=Hn(e,{relative:s});return r.useCallback(h=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(h,t)){h.preventDefault();let t=void 0!==n?n:E(f)===E(p),m=()=>d(e,{replace:t,mask:o,state:i,preventScrollReset:a,relative:s,viewTransition:l,defaultShouldRevalidate:c});u?r.startTransition(()=>m()):m()}},[f,d,p,n,o,i,t,e,a,s,l,c,u])}function ya(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=r.useRef(eo(e)),n=r.useRef(!1),o=Rn(),i=r.useMemo(()=>function(e,t){let n=eo(e);return t&&t.forEach((e,r)=>
11{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(o.search,n.current?null:t.current),[o.search]),a=Ln(),s=r.useCallback((e,t)=>{const r=eo("function"==typeof e?e(new URLSearchParams(i)):e);n.current=!0,a("?"+r,t)},[a,i]);return[i,s]}da.displayName="Form",fa.displayName="ScrollRestoration";var va=0,ba=()=>`__${String(++va)}__`;function _a(){let{router:e}=ha("useSubmit"),{basename:t}=r.useContext(_n),n=tr("useRouteId"),o=e.fetch,i=e.navigate;return r.useCallback(async(e,r={})=>{let{action:a,method:s,encType:l,formData:c,body:u}=oo(e,t);if(!1===r.navigate){let e=r.fetcherKey||ba();await o(e,n,r.action||a,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:c,body:u,formMethod:r.method||s,formEncType:r.encType||l,flushSync:r.flushSync})}else await i(r.action||a,{defaultShouldRevalidate:r.defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:c,body:u,formMethod:r.method||s,formEncType:r.encType||l,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[o,i,t,n])}function wa(e,{relative:t}={}){let{basename:n}=r.useContext(_n),o=r.useContext(Sn);b(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),a={...Hn(e||".",{relative:t})},s=Rn();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 n=e.toString();a.search=n?`?${n}`:""}}return e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(a.pathname="/"===a.pathname?n:ce([n,a.pathname])),E(a)}function Sa({key:e}={}){let{router:t}=ha("useFetcher"),n=ma("useFetcher"),o=r.useContext(yn),i=r.useContext(Sn),a=i.matches[i.matches.length-1]?.route.id;b(o,"useFetcher must be used inside a FetchersContext"),b(i,"useFetcher must be used inside a RouteContext"),b(null!=a,'useFetcher can only be used on routes that contain a unique "id"');let s=r.useId(),[l,c]=r.useState(e||s);e&&e!==l&&c(e);let{deleteFetcher:u,getFetcher:d,resetFetcher:f,fetch:p}=t;r.useEffect(()=>(d(l),()=>u(l)),[u,d,l]);let h=r.useCallback(async(e,t)=>{b(a,"No routeId available for fetcher.load()"),await p(l,a,e,t)},[l,a,p]),m=_a(),g=r.useCallback(async(e,t)=>{await m(e,{...t,navigate:!1,fetcherKey:l})},[l,m]),y=r.useCallback(e=>f(l,e),[f,l]),v=r.useMemo(()=>{let e=r.forwardRef((e,t)=>r.createElement(da,{...e,navigate:!1,fetcherKey:l,ref:t}));return e.displayName="fetcher.Form",e},[l]),_=n.fetchers.get(l)||We,w=o.get(l);return r.useMemo(()=>({Form:v,submit:g,load:h,reset:y,..._,data:w}),[v,g,h,y,_,w])}function Ea(){let e=ma("useFetchers");return r.useMemo(()=>Array.from(e.fetchers.entries()).map(([e,t])=>({...t,key:e})),[e.fetchers])}var ka="react-router-scroll-positions",Ta={};function xa(e,t,n,r){let o=null;return r&&(o=r("/"!==n?{...e,pathname:ee(e.pathname,n)||e.pathname}:e,t)),null==o&&(o=e.key),o}function Oa({getKey:e,storageKey:t}={}){let{router:n}=ha("useScrollRestoration"),{restoreScrollPosition:o,preventScrollReset:i}=ma("useScrollRestoration"),{basename:a}=r.useContext(_n),s=Rn(),l=or(),c=nr();r.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e,t){let{capture:n}=t||{};r.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("pagehide",e,t),()=>{window.removeEventListener("pagehide",e,t)}},[e,n])}(r.useCallback(()=>{if("idle"===c.state){let t=xa(s,l,a,e);Ta[t]=window.scrollY}try{sessionStorage.setItem(t||ka,JSON.stringify(Ta))}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&&(r.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||ka);e&&(Ta=JSON.parse(e))}catch(e){}},[t]),r.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(Ta,()=>window.scrollY,e?(t,n)=>xa(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),r.useLayoutEffect(()=>{if(!1!==o)if("number"!=typeof o){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!==i&&window.scrollTo(0,0)}else window.scrollTo(0,o)},[s,o,i]))}function Ca(e,t){let{capture:n}=t||{};r.useEffect(()=>{let t=null!=n?{capture:n}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,n])}function Pa({when:e,message:t}){let n=fr(e);r.useEffect(()=>{if("blocked"===n.state){window.confirm(t)?setTimeout(n.proceed,0):n.reset()}},[n,t]),r.useEffect(()=>{"blocked"!==n.state||e||n.reset()},[n,e])}function Aa(e,{relative:t}={}){let n=r.useContext(gn);b(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=ha("useViewTransitionState"),i=Hn(e,{relative:t});if(!n.isTransitioning)return!1;let a=ee(n.currentLocation.pathname,o)||n.currentLocation.pathname,s=ee(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=J(i.pathname,s)||null!=J(i.pathname,a)}function Ia({basename:e,children:t,location:n="/"}){"string"==typeof n&&(n=k(n));let o={pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:null!=n.state?n.state:null,key:n.key||"default",mask:void 0},i=Ma();return r.createElement(Mr,{basename:e,children:t,location:o,navigationType:"POP",navigator:i,static:!0,useTransitions:!1})}function Ra({context:e,router:t,hydrate:n=!0,nonce:o}){b(t&&e,"You must provide `router` and `context` to <StaticRouterProvider>");let i={router:t,navigator:Ma(),static:!0,staticContext:e,basename:e.basename||"/"},a=new Map,s="";if(!1!==n){let t={loaderData:e.loaderData,actionData:e.actionData,errors:ja(e.errors)};s=`window.__staticRouterHydrationData = JSON.parse(${Ho(JSON.stringify(JSON.stringify(t)))});`}let{state:l}=i.router;return r.createElement(r.Fragment,null,r.createElement(fn.Provider,{value:i},r.createElement(pn.Provider,{value:l},r.createElement(yn.Provider,{value:a},r.createElement(gn.Provider,{value:{isTransitioning:!1}}
11,r.createElement(Mr,{basename:i.basename,location:l.location,navigationType:l.historyAction,navigator:i.navigator,static:i.static,useTransitions:!1},r.createElement(Pr,{manifest:t.manifest,routes:t.routes,future:t.future,state:l,isStatic:!0})))))),s?r.createElement("script",{suppressHydrationWarning:!0,nonce:o,dangerouslySetInnerHTML:{__html:s}}):null)}function ja(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)we(r)?n[e]={...r,__type:"RouteErrorResponse"}:r instanceof Error?n[e]={message:r.message,__type:"Error",..."Error"!==r.name?{__subType:r.name}:{}}:n[e]=r;return n}function Ma(){return{createHref:La,encodeLocation:Fa,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 Da(e,t){return Ze(e,{...t,mapRouteProperties:Sr})}function Na(e,t,n={}){let r={},o=R(e,Sr,void 0,r),i=t.matches.map(e=>{let t=r[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,...n?.future}},get state(){return{historyAction:"POP",location:t.location,matches:i,loaderData:t.loaderData,actionData:t.actionData,errors:t.errors,initialized:!0,renderFallback:!1,navigation:Ge,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",fetchers:new Map,blockers:new Map}},get routes(){return o},get branches(){return n.branches},get manifest(){return r},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:La,encodeLocation:Fa,getFetcher:()=>We,deleteFetcher(){throw a("deleteFetcher")},resetFetcher(){throw a("resetFetcher")},dispose(){throw a("dispose")},getBlocker:()=>$e,deleteBlocker(){throw a("deleteBlocker")},patchRoutes(){throw a("patchRoutes")},_internalFetchControllers:new Map,_internalSetRoutes(){throw a("_internalSetRoutes")},_internalSetStateDoNotUseOrYouWillBreakYourApp(){throw a("_internalSetStateDoNotUseOrYouWillBreakYourApp")}}}function La(e){return"string"==typeof e?e:E(e)}function Fa(e){let t="string"==typeof e?e:E(e);t=t.replace(/ $/,"%20");let n=c.test(t)?new URL(t):new URL(t,"http://localhost");return{pathname:n.pathname,search:n.search,hash:n.hash}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HydratedRouter:()=>u,RouterProvider:()=>a,unstable_RSCHydratedRouter:()=>m,unstable_createCallServer:()=>f,unstable_getRSCStream:()=>O});var r=n(717),o=n(715),i=n(396);function a(e){return i.createElement(o.RouterProvider,{flushSync:i.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 n=s;if(!s.stateDecodingPromise){let e=s.context.stream;(0,o.invariant)(e,"No stream found for single fetch decoding"),s.context.stream=void 0,s.stateDecodingPromise=(0,o.decodeViaTurboStream)(e,window).then(e=>{s.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(s.stateDecodingPromise.error)throw s.stateDecodingPromise.error;if(!s.stateDecodingPromise.value)throw s.stateDecodingPromise;let i,a=(0,o.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&&(i={loaderData:{root:e.root}})}else i=(0,r.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,o.createRouter)({routes:a,history:(0,o.createBrowserHistory)(),basename:s.context.basename,getContext:e,hydrationData:i,hydrationRouteProperties:o.hydrationRouteProperties,instrumentations:t,mapRouteProperties:o.mapRouteProperties,future:{v8_passThroughRequests:s.context.future.v8_passThroughRequests},dataStrategy:(0,o.getTurboStreamSingleFetchDataStrategy)(()=>l,s.manifest,s.routeModules,s.context.ssr,s.context.basename,s.context.future.v8_trailingSlashAwareDataRequests),patchRoutesOnNavigation:(0,o.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=o.createClientRoutesWithHMRRevalidationOptOut,window.__reactRouterDataRouter=l,l}function u(e){l||(l=c({getContext:e.getContext,instrumentations:e.instrumentations}));let[t,n]=i.useState(void 0);i.useEffect(()=>{0},[]),i.useEffect(()=>{0},[t]);let[r,u]=i.useState(l.state.location);return i.useLayoutEffect(()=>{s&&s.router&&!s.routerInitialized&&(s.routerInitialized=!0,s.router.initialize())},[]),i.useLayoutEffect(()=>{if(s&&s.router)return s.router.subscribe(e=>{e.location!==r&&u(e.location)})},[r]),(0,o.invariant)(s,"ssrInfo unavailable for HydratedRouter"),(0,o.useFogOFWarDiscovery)(l,s.manifest,s.routeModules,s.context.ssr,s.context.routeDiscovery,s.context.isSpaMode),i.createElement(i.Fragment,null,i.createElement(o.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}},i.createElement(o.RemixErrorBoundary,{location:r},i.createElement(a,{router:l,useTransitions:e.useTransitions,onError:e.onError}))),i.createElement(i.Fragment,null))}var d="/__manifest";function f({createFromReadableStream:e,createTemporaryReferenceSet:t,encodeReply:n,fetch:r=fetch}){const a=window;return async(s,l)=>{let c=a.__routerActionID=(a.__routerActionID??(a.__routerActionID=0))+1;const u=t(),d=r(new Request(location.href,{body:await n(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 i.startTransition(()=>Promise.resolve(d).then(async e=>{if("redirect"===e.type){let t=k(e.location);if(e.reload||E(t)){if((0,o.hasInvalidProtocol)(t))throw new Error("Invalid redirect location");return void(window.location.href=t)}return void i.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=k(t.location);if(t.reload||E(e)){if((0,o.hasInvalidProtocol)(e))throw new Error("Invalid redirect location");return void(window.location.href=e)}return void i.startTransition(()=>{a.__reactRouterDataRouter.navigate(e,{replace:t.replace})})}i.startTransition(()=>{let e;for(const n of t.matches)a.__reactRouterDataRouter.patchRoutes(e?.id??null,[g(n)],!0),e=n;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(()=>{})),d.then(e=>{if("action"!==e.type&&"redirect"!==e.type)throw new Error("Unexpected payload type");return e.actionResult})}}var p=(0,o.createContext)();function h(e,t,n,r,a){let s=(0,o.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(n,r,i,a)=>{let{request:s,context:l}=n,c=(0,o.singleFetchUrl)(s.url,r,i,"rsc");"GET"===s.method&&(c=(0,o.stripIndexParam)(c),a&&c.searchParams.set("_routes",a.join(",")));
11let u=await t(new Request(c,await(0,o.createRequestInit)(s)));if(u.status>=400&&!u.headers.has("X-Remix-Response"))throw new o.ErrorResponseImpl(u.status,u.statusText,await u.text());(0,o.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(p).push(...t.matches);let n={routes:{}};const r=(0,o.isMutationMethod)(s.method)?"actionData":"loaderData";for(let[e,o]of Object.entries(t[r]||{}))n.routes[e]={data:o};if(t.errors)for(let[e,r]of Object.entries(t.errors))n.routes[e]={error:r};return{status:u.status,data:n}}catch(e){throw new Error("Unable to decode RSC response",{cause:e})}}}(r,a),t,n,!0,e=>{let t=e;return t.route.hasComponent&&!t.route.element});return async e=>e.runClientMiddleware(async()=>{let t=e.context;t.set(p,[]);let n=await s(e);const r=new Map;for(const e of t.get(p))r.has(e.id)||r.set(e.id,[]),r.get(e.id).push(e);return i.startTransition(()=>{for(const t of e.matches){const e=r.get(t.route.id);if(e)for(const t of e)window.__reactRouterDataRouter.patchRoutes(t.parentId??null,[g(t)],!0)}}),n})}function m({createFromReadableStream:e,fetch:t=fetch,payload:n,getContext:a}){if("render"!==n.type)throw new Error("Invalid payload type");let{routeDiscovery:s}=n,{router:l,routeModules:c}=i.useMemo(()=>function({fetchImplementation:e,createFromReadableStream:t,getContext:n,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,r.populateRSCRouteModules)(s.__reactRouterRouteModules,a.matches);let l,c,u=a.matches.reduceRight((e,t)=>{const n=g(t,a);return e.length>0?n.children=e:n.index||(n.children=[]),[n]},[]);return s.__reactRouterDataRouter=(0,o.createRouter)({routes:u,getContext:n,basename:a.basename,history:(0,o.createBrowserHistory)(),hydrationData:(0,r.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,o.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:n,signal:r}){if("initial"===a.routeDiscovery.mode)return l||(l=(async()=>{if(!a.patches)return;let e=await a.patches;i.startTransition(()=>{e.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})})()),void await l;w.has(n)||await S([n],t,e,r)},dataStrategy:h(()=>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,n=[];n.push(...function t(n,r){return n.map(n=>{const o=e.get(n.id);if(o){const{routeModule:e,hasAction:i,hasComponent:a,hasErrorBoundary:s,hasLoader:l}=o,c=g({clientAction:e.clientAction,clientLoader:e.clientLoader,element:n.element,errorElement:n.errorElement,handle:n.handle,hasAction:i,hasComponent:a,hasErrorBoundary:s,hasLoader:l,hydrateFallbackElement:n.hydrateFallbackElement,id:n.id,index:n.index,links:e.links,meta:e.meta,parentId:r,path:n.path,shouldRevalidate:e.shouldRevalidate});return n.children&&(c.children=t(n.children,n.id)),c}const i={...n};return n.children&&(i.children=t(n.children,n.id)),i})}(t,void 0)),window.__reactRouterDataRouter._internalSetRoutes(n)},{router:s.__reactRouterDataRouter,routeModules:s.__reactRouterRouteModules}}({payload:n,fetchImplementation:t,getContext:a,createFromReadableStream:e}),[e,n,t,a]);i.useEffect(()=>{(0,o.setIsHydrated)()},[]),i.useLayoutEffect(()=>{const e=window;e.__routerInitialized||(e.__routerInitialized=!0,e.__reactRouterDataRouter.initialize())},[]);let[{routes:u,state:f},p]=i.useState(()=>({routes:T(l.routes),state:l.state}));i.useLayoutEffect(()=>l.subscribe(e=>{x(l.routes,u)&&i.startTransition(()=>{p({routes:T(l.routes),state:e})})}),[l.subscribe,u,l]);const m=i.useMemo(()=>({...l,state:f,routes:u}),[l,u,f]);i.useEffect(()=>{if("initial"===s.mode||!0===window.navigator?.connection?.saveData)return;function n(e){let t="FORM"===e.tagName?e.getAttribute("action"):e.getAttribute("href");if(!t)return;let n="A"===e.tagName?e.pathname:new URL(t,window.location.origin).pathname;w.has(n)||b.add(n)}async function r(){document.querySelectorAll("a[data-discover], form[data-discover]").forEach(n);let r=Array.from(b.keys()).filter(e=>!w.has(e)||(b.delete(e),!1));if(0!==r.length)try{await S(r,e,t)}catch(e){console.error("Failed to fetch manifest patches",e)}}let o=function(e,t){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>e(...r),t)}}(r,100);r(),new MutationObserver(()=>o()).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"===n.routeDiscovery.mode?{mode:"initial",manifestPath:d}:{mode:"lazy",manifestPath:n.routeDiscovery.manifestPath||d},routeModules:c};return i.createElement(o.RSCRouterContext.Provider,{value:!0},i.createElement(r.RSCRouterGlobalErrorBoundary,{location:f.location},i.createElement(o.FrameworkContext.Provider,{value:y},i.createElement(o.RouterProvider,{router:m,flushSync:i.flushSync}))))}function g(e,t){let n=t&&e.id in t.loaderData,i=t?.loaderData[e.id],a=t?.errors&&e.id in t.errors,s=t?.errors?.[e.i
11d],l=!0===e.clientLoader?.hydrate||!e.hasLoader||e.hasComponent&&!e.element;(0,o.invariant)(window.__reactRouterRouteModules),(0,r.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,r)=>{let o=l;return l=!1,await e.clientLoader({...t,serverLoader:()=>{if(v("loader",e.id,e.hasLoader),o){if(n)return i;if(a)throw s}return y(r)}})}:(e,t)=>y(t),action:e.clientAction?(t,n)=>e.clientAction({...t,serverAction:async()=>(v("action",e.id,e.hasLoader),await y(n))}):e.hasAction?(e,t)=>y(t):()=>{throw(0,o.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,o.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)),c}function y(e){return(0,o.invariant)("function"==typeof e,"Invalid singleFetch parameter"),e()}function v(e,t,n){if(!n){let n=`You are trying to call ${"action"===e?"serverAction()":"serverLoader()"} on a route that does not have a server ${e} (routeId: "${t}")`;throw console.error(n),new o.ErrorResponseImpl(400,"Bad Request",new Error(n),!0)}}var b=new Set,_=1e3,w=new Set;async function S(e,t,n,r){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,""),n=new URL(`${t}/.manifest`,window.location.origin);return n.searchParams.set("paths",e.sort().join(",")),n}(e=(0,o.getPathsWithAncestors)(e));if(null==a)return;if(a.toString().length>o.URL_LIMIT)return void b.clear();let s=await n(new Request(a,{signal:r}));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,w));let c=await l.patches;i.startTransition(()=>{c.forEach(e=>{window.__reactRouterDataRouter.patchRoutes(e.parentId??null,[g(e)])})})}function E(e){return new URL(e,window.location.href).origin!==window.location.origin}function k(e){if(o.PROTOCOL_RELATIVE_URL_REGEX.test(e)){let t=(0,o.resolvePath)(e);return t.pathname+t.search+t.hash}return e}function T(e){if(e)return e.map(e=>({...e,children:T(e.children)}))}function x(e,t){return e.length!==t.length||e.some((e,n)=>e.element!==t[n].element||(e.errorElement!==t[n].errorElement||(e.hydrateFallbackElement!==t[n].hydrateFallbackElement||(e.hasErrorBoundary!==t[n].hasErrorBoundary||(e.hasLoader!==t[n].hasLoader||(e.hasClientLoader!==t[n].hasClientLoader||(e.hasAction!==t[n].hasAction||(e.hasClientAction!==t[n].hasClientAction||x(e.children||[],t[n].children||[])))))))))}function O(){let e=new TextEncoder,t=null,n=new ReadableStream({start(n){if("undefined"==typeof window)return;let r=t=>{"string"==typeof t?n.enqueue(e.encode(t)):n.enqueue(t)};window.__FLIGHT_DATA||(window.__FLIGHT_DATA=[]),window.__FLIGHT_DATA.forEach(r),window.__FLIGHT_DATA.push=e=>(r(e),0),t=n}});return"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{t?.close()}):t?.close(),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RSCDefaultRootErrorBoundary:()=>se,RSCRouterGlobalErrorBoundary:()=>oe,RSCStaticRouter:()=>he,ServerMode:()=>v,ServerRouter:()=>s,createCookie:()=>p,createCookieSessionStorage:()=>Q,createMemorySessionStorage:()=>X,createRequestHandler:()=>q,createRoutesStub:()=>l,createSession:()=>$,createSessionStorage:()=>K,getHydrationData:()=>me,href:()=>Z,isCookie:()=>h,isSession:()=>Y,populateRSCRouteModules:()=>ce,routeRSCServerRequest:()=>pe,setDevServerHooks:()=>C});var r=n(715),o=n(396),i=n(718),a=n(719);
12/**
13 * react-router v7.18.1
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:n}){"string"==typeof t&&(t=new URL(t));let{manifest:i,routeModules:a,criticalCss:s,serverHandoffString:l}=e,c=(0,r.createServerRoutes)(i.routes,a,e.future,e.isSpaMode);e.staticHandlerContext.loaderData={...e.staticHandlerContext.loaderData};for(let t of e.staticHandlerContext.matches){let n=t.route.id,o=a[n],i=e.manifest.routes[n];o&&i&&(0,r.shouldHydrateRouteLoader)(n,o.clientLoader,i.hasLoader,e.isSpaMode)&&(o.HydrateFallback||!i.hasLoader)&&delete e.staticHandlerContext.loaderData[n]}let u=(0,r.createStaticRouter)(c,e.staticHandlerContext,{branches:e.branches});return o.createElement(o.Fragment,null,o.createElement(r.FrameworkContext.Provider,{value:{manifest:i,routeModules:a,criticalCss:s,serverHandoffString:l,future:e.future,ssr:e.ssr,isSpaMode:e.isSpaMode,routeDiscovery:e.routeDiscovery,nonce:n,serializeError:e.serializeError,renderMeta:e.renderMeta}},o.createElement(r.RemixErrorBoundary,{location:u.state.location},o.createElement(r.StaticRouterProvider,{router:u,context:e.staticHandlerContext,hydrate:!1}))),e.serverHandoffStream?o.createElement(o.Suspense,null,o.createElement(r.StreamTransfer,{context:e,identifier:0,reader:e.serverHandoffStream.getReader(),textDecoder:new TextDecoder,nonce:n})):null)}function l(e,t){return function({initialEntries:n,initialIndex:i,hydrationData:a,future:s}){let l=o.useRef(),u=o.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 o=c((0,r.convertRoutesToDataRoutes)(e,e=>e),void 0!==t?t:s?.v8_middleware?new r.RouterContextProvider:{},u.current.manifest,u.current.routeModules);l.current=(0,r.createMemoryRouter)(o,{initialEntries:n,initialIndex:i,hydrationData:a})}return o.createElement(r.FrameworkContext.Provider,{value:u.current},o.createElement(r.RouterProvider,{router:l.current}))}}function c(e,t,n,o,i){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,r.withComponentProps)(e.Component):void 0,HydrateFallback:e.HydrateFallback?(0,r.withHydrateFallbackProps)(e.HydrateFallback):void 0,ErrorBoundary:e.ErrorBoundary?(0,r.withErrorBoundaryProps)(e.ErrorBoundary):void 0,action:e.action?n=>e.action({...n,context:t}):void 0,loader:e.loader?n=>e.loader({...n,context:t}):void 0,middleware:e.middleware?e.middleware.map(e=>(...n)=>e({...n[0],context:t},n[1])):void 0,handle:e.handle,shouldRevalidate:e.shouldRevalidate},s={id:e.id,path:e.path,index:e.index,parentId:i,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 n.routes[a.id]=s,o[e.id]={default:a.Component||r.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,n,o,a.id)),a})}var u=new TextEncoder,d=async(e,t)=>{let n=e.lastIndexOf("."),r=e.slice(0,n),o=e.slice(n+1),i=u.encode(r),a=await f(t,["verify"]);try{let e=function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(atob(o));return!!await crypto.subtle.verify("HMAC",a,e,i)&&r}catch(e){return!1}},f=async(e,t)=>crypto.subtle.importKey("raw",u.encode(e),{name:"HMAC",hash:"SHA-256"},!1,t);var p=(e,t={})=>{let{secrets:n=[],...o}={path:"/",sameSite:"lax",...t};return function(e,t){(0,r.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,o.expires),{get name(){return e},get isSigned(){return n.length>0},get expires(){return void 0!==o.maxAge?new Date(Date.now()+1e3*o.maxAge):o.expires},async parse(t,r){if(!t)return null;let a=(0,i.parse)(t,{...o,...r});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 n of t){let t=await d(e,n);if(!1!==t)return m(t)}return null}return m(e)}(t,n);return e}return""}return null}
22,serialize:async(t,r)=>(0,i.serialize)(e,""===t?"":await async function(e,t){let n=function(e){return btoa(function(e){let t,n,r=e.toString(),o="",i=0;for(;i<r.length;){if(t=r.charAt(i++),"%"===t)if("u"===r.charAt(i)){if(n=r.slice(i+1,i+5),/^[\da-f]{4}$/i.exec(n)){o+=String.fromCharCode(parseInt(n,16)),i+=5;continue}}else if(n=r.slice(i,i+2),/^[\da-f]{2}$/i.exec(n)){o+=String.fromCharCode(parseInt(n,16)),i+=2;continue}o+=t}return o}(encodeURIComponent(JSON.stringify(e))))}(e);t.length>0&&(n=await(async(e,t)=>{let n=u.encode(e),r=await f(t,["sign"]),o=await crypto.subtle.sign("HMAC",r,n);return e+"."+btoa(String.fromCharCode(...new Uint8Array(o))).replace(/=+$/,"")})(n,t[0]));return n}(t,n),{...o,...r})}},h=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,n,r=e.toString(),o="",i=0;for(;i<r.length;)t=r.charAt(i++),/[\w*+\-./@]/.exec(t)?o+=t:(n=t.charCodeAt(0),o+=n<256?"%"+g(n,2):"%u"+g(n,4).toUpperCase());return o}(atob(e))))}catch(e){return{}}}function g(e,t){let n=e.toString(16);for(;n.length<t;)n="0"+n;return n}function y(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r&&(t[n]=r.module),t},{})}var v=(e=>(e.Development="development",e.Production="production",e.Test="test",e))(v||{});function b(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,[n,r])=>Object.assign(e,{[n]:b(r,t)}),{})}function w(e,t){let n=b(e,t);return{message:n.message,stack:n.stack}}function S(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 E(e,t,n,o,i){let a=(0,r.matchRoutesImpl)(t,o,i??"/",!1,n);return a?a.map(t=>{let n=e[t.route.id];return S(n,`Route with id "${t.route.id}" not found in manifest.`),{params:t.params,pathname:t.pathname,route:n}}):null}async function k(e,t,n){let o=await e({request:n.v8_passThroughRequests?t.request:x(T(t.request)),url:t.url,params:t.params,context:t.context,pattern:t.pattern});if((0,r.isDataWithResponseInit)(o)&&o.init&&o.init.status&&(0,r.isRedirectStatusCode)(o.init.status))throw new Response(null,o.init);return o}function T(e){let t=new URL(e.url),n=t.searchParams.getAll("index");t.searchParams.delete("index");let r=[];for(let e of n)e&&r.push(e);for(let e of r)t.searchParams.append("index",e);let o={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return o.body&&(o.duplex="half"),new Request(t.href,o)}function x(e){let t=new URL(e.url);t.searchParams.delete("_routes");let n={method:e.method,body:e.body,headers:e.headers,signal:e.signal};return n.body&&(n.duplex="half"),new Request(t.href,n)}var O="__reactRouterDevServerHooks";function C(e){globalThis[O]=e}function P(){return globalThis[O]}function A(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 I(e,t,n="",o=function(e){let t={};return Object.values(e).forEach(e=>{if(e){let n=e.parentId||"";t[n]||(t[n]=[]),t[n].push(e)}}),t}(e)){return(o[n]||[]).map(n=>{let i={hasErrorBoundary:"root"===n.id||null!=n.module.ErrorBoundary,id:n.id,path:n.path,middleware:n.module.middleware,loader:n.module.loader?async e=>{let o=A(e.request,"X-React-Router-Prerender-Data");if(null!=o){let e=o?decodeURI(o):o;S(e,"Missing prerendered data for route");let t=(new TextEncoder).encode(e),i=new ReadableStream({start(e){e.enqueue(t),e.close()}}),a=(await(0,r.decodeViaTurboStream)(i,globalThis)).value;if(a&&r.SingleFetchRedirectSymbol in a){let e=a[r.SingleFetchRedirectSymbol],t={status:e.status};throw e.reload?(0,r.redirectDocument)(e.redirect,t):e.replace?(0,r.replace)(e.redirect,t):(0,r.redirect)(e.redirect,t)}{S(a&&n.id in a,"Unable to decode prerendered data");let e=a[n.id];return S("data"in e,"Unable to process prerendered data"),e.data}}return await k(n.module.loader,e,t)}:void 0,action:n.module.action?e=>k(n.module.action,e,t):void 0,handle:n.module.handle};return n.index?{index:!0,...i}:{caseSensitive:n.caseSensitive,children:I(e,t,n.id,o),...i}})}function R(e){return(0,r.escapeHtml)(JSON.stringify(e))}function j(e,t){return function(e,t,n){let r,o=e.errors?e.matches.findIndex(t=>e.errors[t.route.id]):-1,i=o>=0?e.matches.slice(0,o+1):e.matches;if(o>=0){let{actionHeaders:t,actionData:n,loaderHeaders:i,loaderData:a}=e;e.matches.slice(o).some(e=>{let o=e.route.id;return!t[o]||n&&n.hasOwnProperty(o)?i[o]&&!a.hasOwnProperty(o)&&(r=i[o]
22):r=t[o],null!=r})}const a=new Headers(n);return i.reduce((n,o,a)=>{let{id:s}=o.route,l=e.loaderHeaders[s]||new Headers,c=e.actionHeaders[s]||new Headers,u=null!=r&&a===i.length-1,d=u&&r!==l&&r!==c,f=t(o);if(null==f){let e=new Headers(n);return d&&M(r,e),M(c,e),M(l,e),e}let p=new Headers("function"==typeof f?f({loaderHeaders:l,parentHeaders:n,actionHeaders:c,errorHeaders:u?r:void 0}):f);return d&&M(r,p),M(c,p),M(l,p),M(n,p),p},new Headers(a))}(e,e=>{let n=t.routes[e.route.id];return S(n,`Route with id "${e.route.id}" not found in build`),n.module.headers})}function M(e,t){let n=e.get("Set-Cookie");if(n){let e=(0,a.splitCookiesString)(n),r=new Set(t.getSetCookie());e.forEach(e=>{r.has(e)||t.append("Set-Cookie",e)})}}function D(e,t){let n=e.headers.get("origin"),r=null;try{r="string"==typeof n&&"null"!==n?new URL(n).host:n}catch{throw new Error("`origin` header is not a valid URL. Aborting the action.")}let o=new URL(e.url).host;if(r&&r!==o&&!function(e,t=[]){return t.some(t=>t&&(t===e||function(e,t){const n=e.split("."),r=t.split(".");if(r.length<1)return!1;if(n.length<r.length)return!1;for(;r.length;){const e=r.pop(),t=n.pop();switch(e){case"":return!1;case"*":if(t)continue;return!1;case"**":return!(r.length>0)&&void 0!==t;default:if(t!==e)return!1}}return 0===n.length}(e,t)))}(r,t))throw new Error("The `request.url` host does not match `origin` header from a forwarded action request. Aborting the action.")}function N(e,t,n){t=t||"/";let o=new URL(e.url),i=o.pathname;n?.v8_trailingSlashAwareDataRequests?i=i.endsWith("/_.data")?i.replace(/_\.data$/,""):i.replace(/\.data$/,""):("/_root.data"===(0,r.stripBasename)(i,t)?i=t:i.endsWith(".data")&&(i=i.replace(/\.data$/,"")),"/"!==(0,r.stripBasename)(i,t)&&i.endsWith("/")&&(i=i.slice(0,-1)));let a=new URLSearchParams(o.search);a.delete("_routes");let s=a.toString();return s&&(s=`?${s}`),{pathname:i,search:s,hash:""}}var L=new Set([...r.NO_BODY_STATUS_CODES,304]);async function F(e,t,n,o,i,a,s){try{try{D(o,Array.isArray(e.allowedActionOrigins)?e.allowedActionOrigins:[])}catch(e){return c(new Error("Bad Request"),400)}let t=e.future.v8_passThroughRequests?o:new Request(i,{method:o.method,body:o.body,headers:o.headers,signal:o.signal,...o.body?{duplex:"half"}:void 0}),r=await n.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=>N(t,e.basename,e.future)});return l(r)}catch(e){return c(e)}function l(n){return(0,r.isResponse)(n)?n:function(n){let i,a=j(n,e);if((0,r.isRedirectStatusCode)(n.statusCode)&&a.has("Location"))return new Response(null,{status:n.statusCode,headers:a});n.errors&&(Object.values(n.errors).forEach(e=>{(0,r.isRouteErrorResponse)(e)&&!e.error||s(e)}),n.errors=_(n.errors,t));i=n.errors?{error:Object.values(n.errors)[0]}:{data:Object.values(n.actionData||{})[0]};return z(o,e,t,{result:i,headers:a,status:n.statusCode})}(n)}function c(n,r=500){return s(n),z(o,e,t,{result:{error:n},headers:new Headers,status:r})}}async function B(e,t,n,o,i,a,s){let l=new URL(o.url).searchParams.get("_routes"),c=l?new Set(l.split(",")):null;try{let t=e.future.v8_passThroughRequests?o:new Request(i,{headers:o.headers,signal:o.signal}),r=await n.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 d(e)}}:void 0,normalizePath:t=>N(t,e.basename,e.future)});return u(r)}catch(e){return d(e)}function u(n){return(0,r.isResponse)(n)?n:function(n){let i=j(n,e);if((0,r.isRedirectStatusCode)(n.statusCode)&&i.has("Location"))return new Response(null,{status:n.statusCode,headers:i});n.errors&&(Object.values(n.errors).forEach(e=>{(0,r.isRouteErrorResponse)(e)&&!e.error||s(e)}),n.errors=_(n.errors,t));let a={},l=new Set(n.matches.filter(e=>c?c.has(e.route.id):null!=e.route.loader).map(e=>e.route.id));if(n.errors)for(let[e,t]of Object.entries(n.errors))a[e]={error:t};for(let[e,t]of Object.entries(n.loaderData))!(e in a)&&l.has(e)&&(a[e]={data:t});return z(o,e,t,{result:a,headers:i,status:n.statusCode})}(n)}function d(n){return s(n),z(o,e,t,{result:{error:n},headers:new Headers,status:500})}}function z(e,t,n,{result:r,headers:o,status:i}){let a=new Headers(o);return a.set("X-Remix-Response","yes"),L.has(i)?new Response(null,{status:i,headers:a}):(a.set("Content-Type","text/x-script"),a.delete("Content-Length"),new Response(H(r,e.signal,t.entry.module.streamTimeout,n),{status:i||200,headers:a}))}function U(e,t,n,o){let i=function(e,t,n){let o=t.get("Location");n&&(o=(0,r.stripBasename)(o,n)||o);return{redirect:o,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,n.basename),a=new Headers(e.headers);return a.delete("Location"),a.set("Content-Type","text/x-script"),z(t,n,o,{result:"GET"===t.method?{[r.SingleFetchRedirectSymbol]:i}:i,headers:a,status:r.SINGLE_FETCH_REDIRECT_STATUS})}function H(e,t,n,o){let i=new AbortController,a=setTimeout(()=>{i.abort(new Error("Server Timeout")),l()},"number"==typeof n?n:4950),s=()=>{i.abort(t.reason),l()};t.addEventListener("abort",s);let l=()=>{clearTimeout(a),t.removeEventListener("abort",s)};return(0,r.encode)(e,{signal:i.signal,onComplete:l,plugins:[e=>{if(e instanceof Error){let{name:t,message:n,stack:r}="production"===o?b(e,o):e;return["SanitizedError",t,n,r]}if(e instanceof r.ErrorResponseImpl){let{data:t,status:n,statusText:r}=e;return["ErrorResponse",t,n,r]}if(e&&"object"==typeof e&&r.SingleFetchRedirectSymbol in e)return["SingleFetchRedirect",e[r.SingleFetchRedirectSymbol]]}],postPlugins:[e=>{if(e&&"object"==typeof e)return["SingleFetchClassInstance",Object.fromEntries(Object.entries(e))]},()=>["SingleFetchFallback"]]})}function V(e,t){let n=I(e.routes,e.future),o="development"===(i=t)||"production"===i||"test"===i?t:"production";var i;let a=(0,r.createStaticHandler)(n,{basename:e.basename,instrumentations:e.entry.module.instrumentations,future:e.future}),s=e.entry.module.handleError||((e,{request:t})=>{"test"===o||t.signal.aborted||console.error((0,r.isRouteErrorResponse)(e)&&e.error?e.error:e)}),l=async(n,i)=>{let l,c={},u=e=>{"development"===t&&P()?.processRequestError?.(e),s(e,{context:l,params:c,request:n})};if(e.future.v8_middleware){if(i&&!(i instanceof r.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),G(e,o)}l=i||new r.RouterContextProvider}else l=i||{};let d=new URL(n.url),f=N(n,e.basename,e.future).pathname,p="yes"===A(n,"X-React-Router-SPA-Mode");if(!e.ssr){let t=decodeURI(f);if(e.basename&&"/"!==e.basename){let o=(0,r.stripBasename)(t,e.basename);if(null==o)return s(new r.ErrorResponseImpl(404,"Not Found",`Refusing to prerender the \`${t}
22\` path because it does not start with the basename \`${e.basename}\``),{context:l,params:c,request:n}),new Response("Not Found",{status:404,statusText:"Not Found"});t=o}if(0===e.prerender.length)p=!0;else if(!e.prerender.includes(t.replace(/\/$/,""))&&!e.prerender.includes(t.replace(/[^/]$/,"/"))){if(d.pathname.endsWith(".data"))return s(new r.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:n}),new Response("Not Found",{status:404,statusText:"Not Found"});p=!0}}let h=(0,r.getManifestPath)(e.routeDiscovery.manifestPath,e.basename);if("lazy"===e.routeDiscovery.mode&&d.pathname===h)try{let t=await async function(e,t,n,o){if(o.toString().length>r.URL_LIMIT)return new Response(null,{statusText:"Bad Request",status:400});if(e.assets.version!==o.searchParams.get("version"))return new Response(null,{status:204,headers:{"X-Remix-Reload-Document":"true"}});let i={};if(o.searchParams.has("paths")){let r=o.searchParams.get("paths")||"",a=new Set(r.split(",").filter(Boolean));for(let r of a){r.startsWith("/")||(r=`/${r}`);let o=E(e.routes,t,n,r,e.basename);if(o)for(let t of o){let n=t.route.id,r=e.assets.routes[n];r&&(i[n]=r)}}return Response.json(i,{headers:{"Cache-Control":"public, max-age=31536000, immutable"}})}return new Response("Invalid Request",{status:400})}(e,a.dataRoutes,a._internalRouteBranches,d);return t}catch(e){return u(e),new Response("Unknown Server Error",{status:500})}let m,g=E(e.routes,a.dataRoutes,a._internalRouteBranches,f,e.basename);if(g&&g.length>0&&Object.assign(c,g[0].params),d.pathname.endsWith(".data"))m=await async function(e,t,n,o,i,a,s){let l=new URL(o.url);l.pathname=i;let c=(0,r.isMutationMethod)(o.method)?await F(t,e,n,o,l,a,s):await B(t,e,n,o,l,a,s);return c}(o,e,a,n,f,l,u),(0,r.isRedirectResponse)(m)&&(m=U(m,n,e,o)),e.entry.module.handleDataRequest&&(m=await e.entry.module.handleDataRequest(m,{context:l,params:g?g[0].params:{},request:n}),(0,r.isRedirectResponse)(m)&&(m=U(m,n,e,o)));else if(!p&&g&&null==g[g.length-1].route.module.default&&null==g[g.length-1].route.module.ErrorBoundary)m=await async function(e,t,n,o,i,a,s){try{let e=await n.queryRoute(i,{routeId:o,requestContext:a,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{return l(await e(i))}catch(e){return c(e)}}:void 0,normalizePath:e=>N(e,t.basename,t.future)});return l(e)}catch(e){return c(e)}function l(e){return(0,r.isResponse)(e)?e:"string"==typeof e?new Response(e):Response.json(e)}function c(t){if((0,r.isResponse)(t))return t;if((0,r.isRouteErrorResponse)(t))return s(t),function(e,t){return Response.json(w(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),G(t,e)}return s(t),G(t,e)}}(o,e,a,g.slice(-1)[0].route.id,n,l,u);else{let i,{pathname:s}=d;e.unstable_getCriticalCss?i=await e.unstable_getCriticalCss({pathname:s}):"development"===t&&P()?.getCriticalCss&&(i=await(P()?.getCriticalCss?.(s))),m=await async function(e,t,n,o,i,a,s,l){try{if((0,r.isMutationMethod)(o.method))try{D(o,Array.isArray(t.allowedActionOrigins)?t.allowedActionOrigins:[])}catch(e){return a(e),new Response("Bad Request",{status:400})}let e=await n.query(o,{requestContext:i,generateMiddlewareResponse:t.future.v8_middleware?async e=>{try{let t=await e(o);return(0,r.isResponse)(t)||(t=await c(t,s)),t}catch(e){return a(e),new Response(null,{status:500})}}:void 0,normalizePath:e=>N(e,t.basename,t.future)});return(0,r.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=j(s,t);if(L.has(s.statusCode))return new Response(null,{status:s.statusCode,headers:u});s.errors&&(Object.values(s.errors).forEach(e=>{(0,r.isRouteErrorResponse)(e)&&!e.error||a(e)}),s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors},f={basename:t.basename,future:t.future,routeDiscovery:t.routeDiscovery,ssr:t.
22ssr,isSpaMode:c},p={manifest:t.assets,branches:n._internalRouteBranches,routeModules:y(t.routes),staticHandlerContext:s,criticalCss:l,serverHandoffString:R({...f,criticalCss:l}),serverHandoffStream:H(d,o.signal,t.entry.module.streamTimeout,e),renderMeta:{},future:t.future,ssr:t.ssr,routeDiscovery:t.routeDiscovery,isSpaMode:c,serializeError:t=>w(t,e)},h=t.entry.module.default;try{return await h(o,s.statusCode,u,p,i)}catch(l){a(l);let c=l;if((0,r.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 r.ErrorResponseImpl(l.status,l.statusText,e)}catch(e){}(s=(0,r.getStaticContextFromError)(n.dataRoutes,s,c)).errors&&(s.errors=_(s.errors,e));let d={loaderData:s.loaderData,actionData:s.actionData,errors:s.errors};p={...p,staticHandlerContext:s,serverHandoffString:R(f),serverHandoffStream:H(d,o.signal,t.entry.module.streamTimeout,e),renderMeta:{}};try{return await h(o,s.statusCode,u,p,i)}catch(t){return a(t),G(t,e)}}}}(o,e,a,n,l,u,p,i)}return"HEAD"===n.method?new Response(null,{headers:m.headers,status:m.status,statusText:m.statusText}):m};return e.entry.module.instrumentations&&(l=(0,r.instrumentHandler)(l,e.entry.module.instrumentations.map(e=>e.handler).filter(Boolean))),{serverMode:o,staticHandler:a,errorHandler:s,requestHandler:l}}var q=(e,t)=>{let n,r,o,i,a;return async function(s,l){if(n="function"==typeof e?await e():e,"function"==typeof e){let e=V(n,t);r=e.serverMode,o=e.staticHandler,i=e.errorHandler,a=e.requestHandler}else if(!(r&&o&&i&&a)){let e=V(n,t);r=e.serverMode,o=e.staticHandler,i=e.errorHandler,a=e.requestHandler}return a(s,l)}};function G(e,t){let n="Unexpected Server Error";return"production"!==t&&(n+=`\n\n${String(e)}`),new Response(n,{status:500,headers:{"Content-Type":"text/plain"}})}function W(e){return`__flash_${e}__`}var $=(e={},t="")=>{let n=new Map(Object.entries(e));return{get id(){return t},get data(){return Object.fromEntries(n)},has:e=>n.has(e)||n.has(W(e)),get(e){if(n.has(e))return n.get(e);let t=W(e);if(n.has(t)){let e=n.get(t);return n.delete(t),e}},set(e,t){n.set(e,t)},flash(e,t){n.set(W(e),t)},unset(e){n.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:n,updateData:r,deleteData:o}){let i=h(e)?e:p(e?.name||"__session",e);return J(i),{async getSession(e,t){let r=e&&await i.parse(e,t),o=r&&await n(r);return $(o||{},r||"")},async commitSession(e,n){let{id:o,data:a}=e,s=null!=n?.maxAge?new Date(Date.now()+1e3*n.maxAge):null!=n?.expires?n.expires:i.expires;return o?await r(o,a,s):o=await t(a,s),i.serialize(o,n)},destroySession:async(e,t)=>(await o(e.id),i.serialize("",{...t,maxAge:void 0,expires:new Date(0)}))}}function J(e){(0,r.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=h(e)?e:p(e?.name||"__session",e);return J(t),{getSession:async(e,n)=>$(e&&await t.parse(e,n)||{}),async commitSession(e,n){let r=await t.serialize(e.data,n);if(r.length>4096)throw new Error("Cookie length will exceed browser maximum. Length: "+r.length);return r},destroySession:async(e,n)=>t.serialize("",{...n,maxAge:void 0,expires:new Date(0)})}}function X({cookie:e}={}){let t=new Map;return K({cookie:e,async createData(e,n){let r=Math.random().toString(36).substring(2,10);return t.set(r,{data:e,expires:n}),r},async readData(e){if(t.has(e)){let{data:n,expires:r}=t.get(e);if(!r||r>new Date)return n;r&&t.delete(e)}return null},async updateData(e,n,r){t.set(e,{data:n,expires:r})},async deleteData(e){t.delete(e)}})}function Z(e,...t){let n=t[0],r=function(e){let t=e.length-1,n=e[t];if("*"!==n&&"/"!==n)return e;for(t--;t>=0&&"/"===e[t];t--);return e.slice(0,t+1)}(e).replace(/\/:([\w-]+)(\?)?/g,(t,r,o)=>{const i=void 0===o,a=n?.[r];if(i&&void 0===a)throw new Error(`Path '${e}' requires param '${r}' but it was not provided`);return void 0===a?"":"/"+a});if(e.endsWith("*")){const e=n?.["*"];void 0!==e&&(r+="/"+e)}return r||"/"}var ee=new TextEncoder,te="</body></html>";function ne(e){let t,n=new TextDecoder,r=new Promise(e=>t=e),o=!1,i=[],a=null;function s(e){for(let t of i){let r=n.decode(t,{stream:!0});r.endsWith(te)&&(r=r.slice(0,-te.length)),e.enqueue(ee.encode(r))}i.length=0,a=null}return new TransformStream({transform(n,r){i.push(n),a||(a=setTimeout(async()=>{s(r),o||(o=!0,async function(e,t){let n=new TextDecoder("utf-8",{fatal:!0});const r=e.getReader();try{let e;for(;(e=await r.read())&&!e.done;){const r=e.value;try{re(JSON.stringify(n.decode(r,{stream:!0})),t)}catch(e){re(`Uint8Array.from(atob(${JSON.stringify(btoa(String.fromCodePoint(...r)))}), m => m.codePointAt(0))`,t)}}}finally{r.releaseLock()}let o=n.decode();o.length&&re(JSON.stringify(o),t)}(e,r).catch(e=>r.error(e)).then(t))},0))},async flush(e){await r,a&&(clearTimeout(a),s(e)),e.enqueue(ee.encode("<
22/body></html>"))}})}function re(e,t){var n;t.enqueue(ee.encode(`<script>${n=`(self.__FLIGHT_DATA||=[]).push(${e})`,n.replace(/<!--/g,"<\\!--").replace(/<\/(script)/gi,"</\\$1")}<\/script>`))}var oe=class extends o.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?o.default.createElement(ae,{error:this.state.error,renderAppShell:!0}):this.props.children}};function ie({renderAppShell:e,title:t,children:n}){return e?o.default.createElement("html",{lang:"en"},o.default.createElement("head",null,o.default.createElement("meta",{charSet:"utf-8"}),o.default.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),o.default.createElement("title",null,t)),o.default.createElement("body",null,o.default.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function ae({error:e,renderAppShell:t}){console.error(e);let n,i=o.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,r.isRouteErrorResponse)(e))return o.default.createElement(ie,{renderAppShell:t,title:"Unhandled Thrown Response!"},o.default.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r.ENABLE_DEV_WARNINGS?i:null);if(e instanceof Error)n=e;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);n=new Error(t)}return o.default.createElement(ie,{renderAppShell:t,title:"Application Error!"},o.default.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),o.default.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),i)}function se({hasRootLayout:e}){let t=(0,r.useRouteError)();if(void 0===e)throw new Error("Missing 'hasRootLayout' prop");return o.default.createElement(ae,{renderAppShell:!e,error:t})}function le(e){const t={};for(const n of e.matches)ce(t,n);return t}function ce(e,t){t=Array.isArray(t)?t:[t];for(const n of t)e[n.id]={links:n.links,meta:n.meta,default:ue}}var ue=()=>null,de="/__manifest",fe=o.use;async function pe({request:e,serverResponse:t,createFromReadableStream:n,renderHTML:o,hydrate:i=!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;i&&(u=t.clone());const d=t.body;let f,p=[];const h=()=>f?new ReadableStream({start(e){f.forEach(t=>e.enqueue(t)),p.push(e)}}):(f=[],d.pipeThrough(new TransformStream({transform(e,t){f.push(e),t.enqueue(e),p.forEach(t=>t.enqueue(e))},flush(){p.forEach(e=>e.close()),p=[]}})));let m=null;const g=()=>{const e=Promise.resolve(n(h()));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,v;try{if(!c.body)throw new Error("Failed to clone server response");const e=await n(c.body);if(t.status===r.SINGLE_FETCH_REDIRECT_STATUS&&"redirect"===e.type){if((0,r.hasInvalidProtocol)(e.location))throw new Error("Invalid redirect location");const n=new Headers(t.headers);return n.delete("Content-Encoding"),n.delete("Content-Length"),n.delete("Content-Type"),n.delete("X-Remix-Response"),n.set("Location",e.location),new Response(u?.body||"",{headers:n,status:e.status,statusText:t.statusText})}let a=new Headers,s=t.status,l=t.statusText,d=await o(g,{onError(e){if("object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){if(y=(0,r.decodeRedirectErrorDigest)(e.digest),y)return e.digest;let t=(0,r.decodeRouteErrorResponseDigest)(e.digest);if(t)return v=t,s=t.status,l=t.statusText,e.digest}},onHeaders(e){for(const[t,n]of e)a.append(t,n)}});const f=new Headers(a);for(const[e,n]of t.headers)f.append(e,n);if(f.set("Content-Type","text/html; charset=utf-8"),y){if((0,r.hasInvalidProtocol)(y.location))throw new Error("Invalid redirect location");return f.set("Location",y.location),new Response(d,{status:y.status,headers:f})}const p=new TransformStream({flush(e){if(y){if((0,r.hasInvalidProtocol)(y.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,r.escapeHtml)(y.location)}"/>`))}}});if(!i)return new Response(d.pipeThrough(p),{status:s,statusText:l,headers:f});if(!u?.body)throw new Error("Failed to clone server response");const h=d.pipeThrough(ne(u.body)).pipeThrough(p);return new Response(h,{status:s,statusText:l,headers:f})}catch(e){if(e instanceof Response)return e;if(y){if((0,r.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=v??e,[l,c]=(0,r.isRouteErrorResponse)(s)?[s.status,s.statusText]:[500,""],d=new Headers;const f=await o(()=>{const e=Promise.resolve(n(h())).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,r.decodeRedirectErrorDigest)(e.digest),a)return e.digest;let t=(0,r.decodeRouteErrorResponseDigest)(e.digest);
22if(t)return l=t.status,c=t.statusText,e.digest}},onHeaders(e){for(const[t,n]of e)d.append(t,n)}}),p=new Headers(d);for(const[e,n]of t.headers)p.append(e,n);if(p.set("Content-Type","text/html; charset=utf-8"),a){if((0,r.hasInvalidProtocol)(a.location))throw new Error("Invalid redirect location");return p.set("Location",a.location),new Response(f,{status:a.status,headers:p})}const g=new TransformStream({flush(e){if(a){if((0,r.hasInvalidProtocol)(a.location))return;e.enqueue((new TextEncoder).encode(`<meta http-equiv="refresh" content="0;url=${(0,r.escapeHtml)(a.location)}"/>`))}}});if(!i)return new Response(f.pipeThrough(g),{status:l,statusText:c,headers:p});if(!u?.body)throw new Error("Failed to clone server response");const y=f.pipeThrough(ne(u.body)).pipeThrough(g);return new Response(y,{status:l,statusText:c,headers:p})}catch(e){}throw e}}function he({getPayload:e}){const t=e(),n=function(e){if(fe)return fe(e);throw new Error("React Router v7 requires React 19+ for RSC features.")}(t);if("redirect"===n.type){if((0,r.hasInvalidProtocol)(n.location))throw new Error("Invalid redirect location");throw new Response(null,{status:n.status,headers:{Location:n.location}})}if("render"!==n.type)return null;let i={...n.loaderData};for(const e of n.matches)!(0,r.shouldHydrateRouteLoader)(e.id,e.clientLoader,e.hasLoader,!1)||!e.hydrateFallbackElement&&e.hasLoader||delete i[e.id];const a={get _deepestRenderedBoundaryId(){return t._deepestRenderedBoundaryId??null},set _deepestRenderedBoundaryId(e){t._deepestRenderedBoundaryId=e},actionData:n.actionData,actionHeaders:{},basename:n.basename,errors:n.errors,loaderData:i,loaderHeaders:{},location:n.location,statusCode:200,matches:n.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,r.createStaticRouter)(n.matches.reduceRight((e,t)=>{const n={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&&(n.children=e),[n]},[]),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"===n.routeDiscovery.mode?{mode:"initial",manifestPath:de}:{mode:"lazy",manifestPath:n.routeDiscovery.manifestPath||de},routeModules:le(n)};return o.createElement(r.RSCRouterContext.Provider,{value:!0},o.createElement(oe,{location:n.location},o.createElement(r.FrameworkContext.Provider,{value:l},o.createElement(r.StaticRouterProvider,{context:a,router:s,hydrate:!1,nonce:n.nonce}))))}function me({state:e,routes:t,getRouteInfo:n,location:o,basename:i,isSpaMode:a}){let s={...e,loaderData:{...e.loaderData}},l=(0,r.matchRoutes)(t,o,i);if(l)for(let e of l){let t=e.route.id,o=n(t);!(0,r.shouldHydrateRouteLoader)(t,o.clientLoader,o.hasLoader,a)||!o.hasHydrateFallback&&o.hasLoader?o.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 o=t?.encode||encodeURIComponent,i=[];for(const t of Object.keys(e)){const a=e[t];if(void 0===a)continue;if(!n.test(t))throw new TypeError(`cookie name is invalid: ${t}`);const s=o(a);if(!r.test(s))throw new TypeError(`cookie val is invalid: ${a}`);i.push(`${t}=${s}`)}return i.join("; ")},t.stringifySetCookie=u,t.serialize=u,t.parseSetCookie=function(e,t){const n=t?.decode||h,r=e.length,o=d(e,0,r),i=f(e,0,o),s=-1===i?{name:"",value:n(p(e,0,o))}:{name:p(e,0,i),value:n(p(e,i+1,o))};let l=o+1;for(;l<r;){const t=d(e,l,r),n=f(e,l,t),o=p(e,l,-1===n?t:n),i=-1===n?void 0:p(e,n+1,t);switch(o.toLowerCase()){case"httponly":s.httpOnly=!0;break;case"secure":s.secure=!0;break;case"partitioned":s.partitioned=!0;break;case"domain":s.domain=i;break;case"path":s.path=i;break;case"max-age":i&&a.test(i)&&(s.maxAge=Number(i));break;case"expires":if(!i)break;const e=new Date(i);Number.isFinite(e.valueOf())&&(s.expires=e);break;case"priority":if(!i)break;const t=i.toLowerCase();"low"!==t&&"medium"!==t&&"high"!==t||(s.priority=t);break;case"samesite":if(!i)break;const n=i.toLowerCase();"lax"!==n&&"strict"!==n&&"none"!==n||(s.sameSite=n)}l=t+1}return s},t.stringifySetCookie=u,t.serialize=u;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,o=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\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 n=new l,r=e.length;if(r<2)return n;const o=t?.decode||h;let i=0;do{const t=f(e,i,r);if(-1===t)break;const a=d(e,i,r);if(t>a){i=e.lastIndexOf(";",t-1)+1;continue}const s=p(e,i,t);void 0===n[s]&&(n[s]=o(p(e,t+1,a))),i=a+1}while(i<r);return n}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(!n.test(l.name))throw new TypeError(`argument name is invalid: ${l.name}`);const d=l.value?u(l.value):"";if(!r.test(d))throw new TypeError(`argument val is invalid: ${l.value}`);let f=l.name+"="+d;if(void 0!==l.maxAge){if(!Number.isInteger(l.maxAge))throw new TypeError(`option maxAge is invalid: ${l.maxAge}`);f+="; Max-Age="+l.maxAge}if(l.domain){if(!o.test(l.domain))throw new TypeError(`option domain is invalid: ${l.domain}`);f+="; Domain="+l.domain}if(l.path){if(!i.test(l.path))throw new TypeError(`option path is invalid: ${l.path}`);f+="; Path="+l.path}if(l.expires){if(p=l.expires,"[object Date]"!==s.call(p)||!Number.isFinite(l.expires.valueOf()))throw new TypeError(`option expires is invalid: ${l.expires}`);f+="; Expires="+l.expires.toUTCString()}var p;if(l.httpOnly&&(f+="; HttpOnly"),l.secure&&(f+="; Secure"),l.partitioned&&(f+="; Partitioned"),l.priority){switch("string"==typeof l.priority?l.priority.toLowerCase():void 0){case"low":f+="; Priority=Low";break;case"medium":f+="; Priority=Medium";break;case"high":f+="; 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":f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"none":f+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${l.sameSite}`)}}return f}function d(e,t,n){const r=e.indexOf(";",t);return-1===r?n:r}function f(e,t,n){const r=e.indexOf("=",t);return r<n?r:-1}function p(e,t,n){let r=t,o=n;do{const t=e.charCodeAt(r);if(32!==t&&9!==t)break}while(++r<o);for(;o>r;){const t=e.charCodeAt(o-1);if(32!==t&&9!==t)break;o--}return e.slice(r,o)}function h(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 n(e){return"string"!=typeof e||e in{}}function r(){return Object.create(null)}function o(e){return"string"==typeof e&&!!e.trim()}function i(e,i){var a=e.split(";").filter(o),s=function(e){var t="",n="",r=e.split("=");r.length>1?(t=r.shift(),n=r.join("=")):n=e;return{name:t,value:n}}(a.shift()),l=s.name,c=s.value;if(i=i?Object.assign({},t,i):t,n(l))return null;try{c=i.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=r();return u.name=l,u.value=c,a.forEach(function(e){var t=e.split("="),r=t.shift().trimLeft().toLowerCase();if(!n(r)){var o=t.join("=");if("expires"===r)u.expires=new Date(o);else if("max-age"===r){var i=parseInt(o,10);Number.isNaN(i)||(u.maxAge=i)}else"secure"===r?u.secure=!0:"httponly"===r?u.httpOnly=!0:"samesite"===r?u.sameSite=o:"partitioned"===r?u.partitioned=!0:r&&(u[r]=o)}}),u}function a(e,a){if(a=a?Object.assign({},t,a):t,!e)return a.map?r():[];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=r();return e.filter(o).reduce(function(e,t){var r=i(t,a);return r&&!n(r.name)&&(e[r.name]=r),e},l)}return e.filter(o).map(function(e){return i(e,a)}).filter(Boolean)}e.exports=a,e.exports.parse=a,e.exports.parseString=i,e.exports.splitCookiesString=function(e){if(Array.isArray(e))return e;if("string"!=typeof e)return[];var t,n,r,o,i,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(n=e.charAt(s))&&";"!==n&&","!==n}for(;s<e.length;){for(t=s,i=!1;l();)if(","===(n=e.charAt(s))){for(r=s,s+=1,l(),o=s;s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=o,a.push(e.substring(t,r)),t=s):s=r+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloProvider:()=>s});var r=n(314),o=n(466),i=n(464),a=n(721),s=function(e){var t=e.client,n=e.children,s=(0,a.getApolloContext)(),l=i.useContext(s),c=i.useMemo(function(){return(0,r.__assign)((0,r.__assign)({},l),{client:t||l.client})},[l,t]);return(0,o.invariant)(c.client,71),i.createElement(s.Provider,{value:c},n)}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{getApolloContext:()=>l,resetApolloContext:()=>c});var o=n(464),i=n(474),a=n(466),s=i.canUseSymbol?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function l(){(0,a.invariant)("createContext"in(r||(r=n.t(o,2))),69);var e=o.createContext[s];return e||(Object.defineProperty(o.createContext,s,{value:e=o.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var c=function(){return l()}},,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{createMakeWatchQueryOptions:()=>T,getDefaultFetchPolicy:()=>P,getObsQueryOptions:()=>x,toApolloError:()=>A,toQueryResult:()=>I,useQuery:()=>S,useQueryInternals:()=>k}
22);var r=n(314),o=(n(466),n(464)),i=n(465),a=n(590),s=n(612),l=n(721),c=n(575),u=n(597),d=n(598),f=n(740),p=n(741),h=n(608),m=n(577),g=n(601),y=n(742),v=n(603),b=Object.prototype.hasOwnProperty;function _(){}var w=Symbol();function S(e,t){return void 0===t&&(t=Object.create(null)),(0,y.wrapHook)("useQuery",E,(0,p.useApolloClient)(t&&t.client))(e,t)}function E(e,t){var n=k(e,t),i=n.result,a=n.obsQueryFields;return o.useMemo(function(){return(0,r.__assign)((0,r.__assign)({},i),a)},[i,a])}function k(e,t){var n=(0,p.useApolloClient)(t.client),s=o.useContext((0,l.getApolloContext)()).renderPromises,c=!!s,h=n.disableNetworkFetches,m=!1!==t.ssr&&!t.skip,g=t.partialRefetch,y=T(n,e,t,c),S=function(e,t,n,i,a){function s(r){var o;return(0,f.verifyDocumentType)(t,f.DocumentType.Query),{client:e,query:t,observable:i&&i.getSSRObservable(a())||u.ObservableQuery.inactiveOnCreation.withValue(!i,function(){return(0,v.muteDeprecations)(["canonizeResults","partialRefetch"],function(){return e.watchQuery(x(void 0,e,n,a()))})}),resultData:{previousData:null===(o=null==r?void 0:r.resultData.current)||void 0===o?void 0:o.data}}}var l=o.useState(s),c=l[0],d=l[1];function p(e){var t,n;Object.assign(c.observable,((t={})[w]=e,t));var o=c.resultData;d((0,r.__assign)((0,r.__assign)({},c),{query:e.query,resultData:Object.assign(o,{previousData:(null===(n=o.current)||void 0===n?void 0:n.data)||o.previousData,current:void 0})}))}if(e!==c.client||t!==c.query){var h=s(c);return d(h),[h,p]}return[c,p]}(n,e,t,s,y),E=S[0],k=E.observable,P=E.resultData,A=S[1],M=y(k);!function(e,t,n,r,o){var i;t[w]&&!(0,a.equal)(t[w],o)&&(t.reobserve(x(t,n,r,o)),e.previousData=(null===(i=e.current)||void 0===i?void 0:i.data)||e.previousData,e.current=void 0);t[w]=o}(P,k,n,t,M);var D=o.useMemo(function(){return function(e){return{refetch:e.refetch.bind(e),reobserve:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}(k)},[k]);!function(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}(k,s,m);var N=function(e,t,n,r,s,l,c,u,f){var p=o.useRef(f);o.useEffect(function(){p.current=f});var h=!u&&!l||!1!==r.ssr||r.skip?r.skip||"standby"===s.fetchPolicy?j:void 0:R,m=e.previousData,g=o.useMemo(function(){return h&&I(h,m,t,n)},[n,t,h,m]);return(0,i.useSyncExternalStore)(o.useCallback(function(r){if(u)return function(){};var o=function(){var o=e.current,i=t.getCurrentResult();o&&o.loading===i.loading&&o.networkStatus===i.networkStatus&&(0,a.equal)(o.data,i.data)||O(i,e,t,n,c,r,p.current)},i=function(l){if(s.current.unsubscribe(),s.current=t.resubscribeAfterError(o,i),!b.call(l,"graphQLErrors"))throw l;var u=e.current;(!u||u&&u.loading||!(0,a.equal)(l,u.error))&&O({data:u&&u.data,error:l,loading:!1,networkStatus:d.NetworkStatus.error},e,t,n,c,r,p.current)},s={current:t.subscribe(o,i)};return function(){setTimeout(function(){return s.current.unsubscribe()})}},[l,u,t,e,c,n]),function(){return g||C(e,t,p.current,c,n)},function(){return g||C(e,t,p.current,c,n)})}(P,k,n,t,M,h,g,c,{onCompleted:t.onCompleted||_,onError:t.onError||_});return{result:N,obsQueryFields:D,observable:k,resultData:P,client:n,onQueryExecuted:A}}function T(e,t,n,o){void 0===n&&(n={});var i=n.skip,a=(n.ssr,n.onCompleted,n.onError,n.defaultOptions),s=(0,r.__rest)(n,["skip","ssr","onCompleted","onError","defaultOptions"]);return function(n){var r=Object.assign(s,{query:t});return!o||"network-only"!==r.fetchPolicy&&"cache-and-network"!==r.fetchPolicy||(r.fetchPolicy="cache-first"),r.variables||(r.variables={}),i?(r.initialFetchPolicy=r.initialFetchPolicy||r.fetchPolicy||P(a,e.defaultOptions),r.fetchPolicy="standby"):r.fetchPolicy||(r.fetchPolicy=(null==n?void 0:n.options.initialFetchPolicy)||P(a,e.defaultOptions)),r}}function x(e,t,n,r){var o=[],i=t.defaultOptions.watchQuery;return i&&o.push(i),n.defaultOptions&&o.push(n.defaultOptions),o.push((0,g.compact)(e&&e.options,r)),o.reduce(s.mergeOptions)}function O(e,t,n,o,i,a,s){var l=t.current;l&&l.data&&(t.previousData=l.data),!e.error&&(0,m.isNonEmptyArray)(e.errors)&&(e.error=new c.ApolloError({graphQLErrors:e.errors})),t.current=I(function(e,t,n){if(e.partial&&n&&!e.loading&&(!e.data||0===Object.keys(e.data).length)&&"cac
22he-only"!==t.options.fetchPolicy)return t.refetch(),(0,r.__assign)((0,r.__assign)({},e),{loading:!0,networkStatus:d.NetworkStatus.refetch});return e}(e,n,i),t.previousData,n,o),a(),function(e,t,n){if(!e.loading){var r=A(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===d.NetworkStatus.ready&&n.onCompleted(e.data)}).catch(function(e){})}}(e,null==l?void 0:l.networkStatus,s)}function C(e,t,n,r,o){return e.current||O(t.getCurrentResult(),e,t,o,r,function(){},n),e.current}function P(e,t){var n;return(null==e?void 0:e.fetchPolicy)||(null===(n=null==t?void 0:t.watchQuery)||void 0===n?void 0:n.fetchPolicy)||"cache-first"}function A(e){return(0,m.isNonEmptyArray)(e.errors)?new c.ApolloError({graphQLErrors:e.errors}):e.error}function I(e,t,n,o){var i=e.data,a=(e.partial,(0,r.__rest)(e,["data","partial"]));return(0,r.__assign)((0,r.__assign)({data:i},a),{client:o,observable:n,variables:n.variables,called:e!==R&&e!==j,previousData:t})}var R=(0,h.maybeDeepFreeze)({loading:!0,data:void 0,error:void 0,networkStatus:d.NetworkStatus.loading}),j=(0,h.maybeDeepFreeze)({loading:!1,data:void 0,error:void 0,networkStatus:d.NetworkStatus.ready})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DocumentType:()=>r,operationName:()=>c,parser:()=>u,verifyDocumentType:()=>d});var r,o,i=n(466),a=n(560),s=n(562),l=n(603);function c(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function u(e){(0,l.warnDeprecated)("parser",function(){}),o||(o=new a.AutoCleanedWeakCache(s.cacheSizes.parser||1e3));var t,n,c=o.get(e);if(c)return c;(0,i.invariant)(!!e&&!!e.kind,94,e);for(var u=[],d=[],f=[],p=[],h=0,m=e.definitions;h<m.length;h++){var g=m[h];if("FragmentDefinition"!==g.kind){if("OperationDefinition"===g.kind)switch(g.operation){case"query":d.push(g);break;case"mutation":f.push(g);break;case"subscription":p.push(g)}}else u.push(g)}(0,i.invariant)(!u.length||d.length||f.length||p.length,95),(0,i.invariant)(d.length+f.length+p.length<=1,96,e,d.length,p.length,f.length),n=d.length?r.Query:r.Mutation,d.length||f.length||(n=r.Subscription);var y=d.length?d:f.length?f:p;(0,i.invariant)(1===y.length,97,e,y.length);var v=y[0];t=v.variableDefinitions||[];var b={name:v.name&&"Name"===v.name.kind?v.name.value:"data",type:n,variables:t};return o.set(e,b),b}function d(e,t){var n=(0,l.muteDeprecations)("parser",u,[e]),r=c(t),o=c(n.type);(0,i.invariant)(n.type===t,98,r,r,o)}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={})),u.resetCache=function(){o=void 0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{useApolloClient:()=>a});var r=n(466),o=n(464),i=n(721);function a(e){var t=o.useContext((0,i.getApolloContext)()),n=e||t.client;return(0,r.invariant)(!!n,78),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{wrapHook:()=>o});var r=Symbol.for("apollo.hook.wrappers");function o(e,t,n){var o=n.queryManager,i=o&&o[r],a=i&&i[e];return a?a(t):t}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{var r=n(396),o="undefined"==typeof window?{show:function(){},hide:function(){},config:function(){}}:n(784),i=0,a=function(e){return e.topbar||o};function s(e){return r.useEffect(function(){return 0===i&&a(e).show(),i++,function(){0===--i&&a(e).hide()}},[]),null}s.config=o.config,e.exports=s},function(e,t,n){var r;
23/*! topbar 0.1.4, 2020-04-27
24 *  http://buunguyen.github.io/topbar
25 *  Copyright (c) 2019 Buu Nguyen
26 *  Licensed under the MIT License */(function(o,i){"use strict";!function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!o.requestAnimationFrame;++n)o.requestAnimationFrame=o[t[n]+"RequestAnimationFrame"],o.cancelAnimationFrame=o[t[n]+"CancelAnimationFrame"]||o[t[n]+"CancelRequestAnimationFrame"];o.requestAnimationFrame||(o.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),i=Math.max(0,16-(r-e)),a=o.setTimeout(function(){t(r+i)},i);return e=r+i,a}),o.cancelAnimationFrame||(o.cancelAnimationFrame=function(e){clearTimeout(e)})}();var a,s,l,c,u,d={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},f=function(){a.width=o.innerWidth,a.height=5*d.barThickness;var e=a.getContext("2d");e.shadowBlur=d.shadowBlur,e.shadowColor=d.shadowColor;var t=e.createLinearGradient(0,0,a.width,0);for(var n in d.barColors)t.addColorStop(n,d.barColors[n]);e.lineWidth=d.barThickness,e.beginPath(),e.moveTo(0,d.barThickness/2),e.lineTo(Math.ceil(c*a.width),d.barThickness/2),e.strokeStyle=t,e.
26stroke()},p={config:function(e){for(var t in e)d.hasOwnProperty(t)&&(d[t]=e[t])},show:function(){var e,t,n,r;u||(u=!0,null!==l&&o.cancelAnimationFrame(l),a||((r=(a=i.createElement("canvas")).style).position="fixed",r.top=r.left=r.right=r.margin=r.padding=0,r.zIndex=100001,r.display="none",d.className&&a.classList.add(d.className),i.body.appendChild(a),t="resize",n=f,(e=o).addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n),a.style.opacity=1,a.style.display="block",p.progress(0),d.autoRun&&function e(){s=o.requestAnimationFrame(e),p.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,f()),c},hide:function(){u&&(u=!1,null!=s&&(o.cancelAnimationFrame(s),s=null),function e(){if(p.progress("+.1")>=1&&(a.style.opacity-=.05,a.style.opacity<=.05))return a.style.display="none",void(l=null);l=o.requestAnimationFrame(e)}())}};"object"==typeof e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}).call(this,window,document)},,,(e,t,n)=>{e.exports=n(788)()},(e,t,n)=>{"use strict";var r=n(789);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){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 n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,,,,,,,,,,(e,t)=>{var n;
27/*!
28	Copyright (c) 2018 Jed Watson.
29	Licensed under the MIT License (MIT), see
30	http://jedwatson.github.io/classnames
31*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{useMutation:()=>d});var r=n(314),o=n(464),i=n(612),a=n(590),s=n(740),l=n(575),c=n(741),u=n(811);function d(e,t){var n=(0,c.useApolloClient)(null==t?void 0:t.client);(0,s.verifyDocumentType)(e,s.DocumentType.Mutation);var d=o.useState({called:!1,loading:!1,client:n}),f=d[0],p=d[1],h=o.useRef({result:f,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});(0,u.useIsomorphicLayoutEffect)(function(){Object.assign(h.current,{client:n,options:t,mutation:e})});var m=o.useCallback(function(e){void 0===e&&(e={});var t=h.current,n=t.options,o=t.mutation,s=(0,r.__assign)((0,r.__assign)({},n),{mutation:o}),c=e.client||h.current.client;h.current.result.loading||s.ignoreResults||!h.current.isMounted||p(h.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});var u=++h.current.mutationId,d=(0,i.mergeOptions)(s,e);return c.mutate(d).then(function(t){var n,r,o=t.data,i=t.errors,s=i&&i.length>0?new l.ApolloError({graphQLErrors:i}):void 0,f=e.onError||(null===(n=h.current.options)||void 0===n?void 0:n.onError);if(s&&f&&f(s,d),u===h.current.mutationId&&!d.ignoreResults){var m={called:!0,loading:!1,data:o,error:s,client:c};h.current.isMounted&&!(0,a.equal)(h.current.result,m)&&p(h.current.result=m)}var g=e.onCompleted||(null===(r=h.current.options)||void 0===r?void 0:r.onCompleted);return s||null==g||g(t.data,d),t},function(t){var n;if(u===h.current.mutationId&&h.current.isMounted){var r={loading:!1,error:t,data:void 0,called:!0,client:c};(0,a.equal)(h.current.result,r)||p(h.current.result=r)}var o=e.onError||(null===(n=h.current.options)||void 0===n?void 0:n.onError);if(o)return o(t,d),{data:void 0,errors:t};throw t})},[]),g=o.useCallback(function(){if(h.current.isMounted){var e={called:!1,loading:!1,client:h.current.client};Object.assign(h.current,{mutationId:0,result:e}),p(e)}},[]);return o.useEffect(function(){var e=h.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[m,(0,r.__assign)({reset:g}
31,f)]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{useIsomorphicLayoutEffect:()=>o});var r=n(464),o=n(474).canUseDOM?r.useLayoutEffect:r.useEffect},,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Comment:()=>r.Comment,Element:()=>r.Element,ProcessingInstruction:()=>r.ProcessingInstruction,Text:()=>r.Text,attributesToProps:()=>r.attributesToProps,default:()=>o,domToReact:()=>r.domToReact,htmlToDOM:()=>r.htmlToDOM});var r=n(836);const o=r.default||r},function(e,t,n){"use strict";var r=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 n;if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];const r=Object.assign(Object.assign({},null!==(n=null==t?void 0:t.htmlparser2)&&void 0!==n?n:l),{trustedTypePolicy:null==t?void 0:t.trustedTypePolicy});return(0,a.default)((0,o.default)(e,r),t)};const o=r(n(837));t.htmlToDOM=o.default;const i=r(n(844));t.attributesToProps=i.default;const a=r(n(851));t.domToReact=a.default;var s=n(852);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,n)=>{Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=n(838),o=n(843),i=/<(![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 n=i.exec(e),a=n?n[1]:void 0;return r.formatDOM(o.default(e,t?.trustedTypePolicy),null,a)}},(e,t,n)=>{const r=n(839);let o=n(840);const i=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 n=0;const r=e.length;for(;n<r;n++){const r=e[n];t[r.name]=r.value}return t}function c(e){const t=function(e){return r.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(i,a)},t.formatDOM=function e(t,n=null,r){const i=[];let a,s=0;const d=t.length;for(;s<d;s++){const r=t[s];switch(r.nodeType){case 1:{const t=c(r.nodeName);a=new o.Element(t,l(r.attributes)),a.children=e("template"===t?r.content.childNodes:r.childNodes,a);break}case 3:a=new o.Text(u(r.nodeValue??""));break;case 8:a=new o.Comment(r.nodeValue??"");break;default:continue}const d=i[s-1]??null;d&&(d.next=a),a.parent=n,a.prev=d,a.next=null,i.push(a)}return r&&(a=new o.ProcessingInstruction(r.substring(0,r.indexOf(" ")).toLowerCase(),r),a.next=i[0]??null,a.parent=n,i.unshift(a),i[1]&&(i[1].prev=i[0])),i},t.hasOpenTag=function(e,t){const n="<"+t,r=e.toLowerCase().indexOf(n);if(-1===r)return!1;const o=e[r+n.length];return">"===o||" "===o||"\t"===o||"\n"===o||"\r"===o||"/"===o}},(e,t)=>{const n=["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"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{});t.CASE_SENSITIVE_TAG_NAMES_MAP=n},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CDATA:()=>o.CDATA,Comment:()=>o.Comment,DataNode:()=>o.DataNode,Document:()=>o.Document,DomHandler:()=>a,Element:()=>o.Element,Node:()=>o.Node,NodeWithChildren:()=>o.NodeWithChildren,ProcessingInstruction:()=>o.ProcessingInstruction,Text:()=>o.Text,cloneNode:()=>o.cloneNode,default:()=>s,hasChildren:()=>o.hasChildren,isCDATA:()=>o.isCDATA,isComment:()=>o.isComment,isDirective:()=>o.isDirective,isDocument:()=>o.isDocument,isTag:()=>o.isTag,isText:()=>o.isText});var r=n(841),o=n(842);const i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class a{dom=[];root=new o.Document(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??i,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new o.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 n=this.options.xmlMode?r.ElementType.Tag:void 0,i=new o.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(e){const{lastNode:t}=this;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new o.Text(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)return void(this.lastNode.data+=e);const t=new o.Comment(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}
31oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new o.ProcessingInstruction(e,t);this.addNode(n)}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],n=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),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}const s=a},(e,t,n)=>{"use strict";var r;function o(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}n.r(t),n.d(t,{CDATA:()=>f,Comment:()=>l,Directive:()=>s,Doctype:()=>p,ElementType:()=>r,Root:()=>i,Script:()=>c,Style:()=>u,Tag:()=>d,Text:()=>a,isTag:()=>o}),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={}));const i=r.Root,a=r.Text,s=r.Directive,l=r.Comment,c=r.Script,u=r.Style,d=r.Tag,f=r.CDATA,p=r.Doctype},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CDATA:()=>u,Comment:()=>s,DataNode:()=>i,Document:()=>d,Element:()=>f,Node:()=>o,NodeWithChildren:()=>c,ProcessingInstruction:()=>l,Text:()=>a,cloneNode:()=>_,hasChildren:()=>b,isCDATA:()=>h,isComment:()=>g,isDirective:()=>y,isDocument:()=>v,isTag:()=>p,isText:()=>m});var r=n(841);class o{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 i extends o{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends i{type=r.ElementType.Text;get nodeType(){return 3}}class s extends i{type=r.ElementType.Comment;get nodeType(){return 8}}class l extends i{type=r.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class c extends o{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=r.ElementType.CDATA;get nodeType(){return 4}}class d extends c{type=r.ElementType.Root;get nodeType(){return 9}}class f extends c{name;attribs;type;constructor(e,t,n=[],o=("script"===e?r.ElementType.Script:"style"===e?r.ElementType.Style:r.ElementType.Tag)){super(n),this.name=e,this.attribs=t,this.type=o}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 p(e){return(0,r.isTag)(e)}function h(e){return e.type===r.ElementType.CDATA}function m(e){return e.type===r.ElementType.Text}function g(e){return e.type===r.ElementType.Comment}function y(e){return e.type===r.ElementType.Directive}function v(e){return e.type===r.ElementType.Root}function b(e){return Object.hasOwn(e,"children")}function _(e,t=!1){let n;if(m(e))n=new a(e.data);else if(g(e))n=new s(e.data);else if(p(e)){const r=t?w(e.children):[],o=new f(e.name,{...e.attribs},r);for(const e of r)e.parent=o;null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(h(e)){const r=t?w(e.children):[],o=new u(r);for(const e of r)e.parent=o;n=o}else if(v(e)){const r=t?w(e.children):[],o=new d(r);for(const e of r)e.parent=o;e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}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"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(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,n)=>{const r=n(838),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/;function l(e,t){return t?t.createHTML(e):e}let c=(e,t,n)=>{throw new Error("This browser does not support `document.implementation.createHTMLDocument`")}
31,u=(e,t,n)=>{throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")};const d="object"==typeof window&&window.DOMParser;if("function"==typeof d){const e=new d,t="text/html";u=(n,r,o)=>(r&&(n=`<${r}>${n}</${r}>`),e.parseFromString(n,t)),c=u}if("object"==typeof document&&document.implementation){const e=document.implementation.createHTMLDocument();c=function(t,n,r){if(n){const o=e.documentElement.querySelector(n);return o&&(o.innerHTML=l(t,r)),e}return e.documentElement.innerHTML=l(t,r),e}}const f="object"==typeof document&&document.createElement("template");let p;f&&f.content&&(p=(e,t)=>(f.innerHTML=l(e,t),f.content.childNodes));const h=()=>document.createDocumentFragment().childNodes;t.default=function(e,t){e=r.escapeSpecialCharacters(e);const n=s.exec(e)?.[1]?.toLowerCase();switch(n){case o:{const t=u(e);if(!r.hasOpenTag(e,i)){const e=t.querySelector(i);e?.parentNode?.removeChild(e)}if(!r.hasOpenTag(e,a)){const e=t.querySelector(a);e?.parentNode?.removeChild(e)}return t.querySelectorAll(o)}case i:case a:{const o=c(e,void 0,t).querySelectorAll(n);return r.hasOpenTag(e,a)&&r.hasOpenTag(e,i)?o[0].parentNode?.childNodes??h():o}default:return p?p(e,t):c(e,a,t).querySelector(a)?.childNodes??h()}}},(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e={},t){const n={},c=Boolean(e.type&&s[e.type]);for(const s in e){const u=e[s];if((0,r.isCustomAttribute)(s)){n[s]=u;continue}const d=s.toLowerCase();let f=l(d);if(f){const e=(0,r.getPropertyInfo)(f);switch(i.includes(f)&&a.includes(t)&&!c&&(f=l("default"+d)),n[f]=u,null==e?void 0:e.type){case r.BOOLEAN:n[f]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(n[f]=!0)}continue}o.PRESERVE_CUSTOM_ATTRIBUTES&&(n[s]=u)}return(0,o.setStyleProp)(e.style,n),n};const r=n(845),o=n(847),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}},(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(e=>{o[e]=new r(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([e,t])=>{o[e]=new r(e,1,!1,t,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(e=>{o[e]=new r(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(e=>{o[e]=new r(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=>{o[e]=new r(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(e=>{o[e]=new r(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(e=>{o[e]=new r(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(e=>{o[e]=new r(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(e=>{o[e]=new r(e,5,!1,e.toLowerCase(),null,!1,!1)});const i=/[\-\:]([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(i,a);o[t]=new r(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(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(e=>{const t=e.replace(i,a);o[t]=new r(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!1,!1)});o.xlinkHref=new r("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(e=>{o[e]=new r(e,1,!1,e.toLowerCase(),null,!0,!0)});const{CAMELCASE:s,SAME:l,possibleStandardNames:c}=n(846),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]*$")),d=Object.keys(c).reduce((e,t)=>{const n=c[t];return n===l?e[t]=t:n===s?e[t.toLowerCase()]=t:e[t]=n,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 o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=u,t.possibleStandardNames=d},(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
vendor: 4,321 bytes, line 31
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,n){"use strict";var r=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,i.default)(e,s)}catch(e){t.style={}}};const o=n(396),i=r(n(848)),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(o.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,n)=>{var r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty;let c=n(849);var u,d,f;f=null!=(u=c)?r(s(u)):{},c=((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,c=a(t),u=0,d=c.length;u<d;u++)s=c[u],l.call(e,s)||s===n||o(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=i(t,s))||r.enumerable});return e})(!d&&u&&u.__esModule?f:o(f,"default",{value:u,enumerable:!0}),u);const p=/^--[a-zA-Z0-9_-]+$/,h=/-([a-z])/g,m=/^[^-]+$/,g=/^-(webkit|moz|ms|o|khtml)-/,y=/^-(ms)-/,v=(e,t)=>t.toUpperCase(),b=(e,t)=>`${t}-`,_=(e,t={})=>(e=>!e||m.test(e)||p.test(e))(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(y,b):e.replace(g,b)).replace(h,v));e.exports=function(e,t){const n={};return e&&"string"==typeof e?((0,c.default)(e,(e,r)=>{e&&r&&(n[_(e,t)]=r)}),n):n}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,o.default)(e),i="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n(850))},e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}function g(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){y(r)}function b(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=y(o);if(n){if(_(),!y(i))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return m.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
31dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n={}){var r,o,i,d,f;const p=[],h="function"==typeof n.replace,m=null!==(r=n.transform)&&void 0!==r?r:s.returnFirstArg,{cloneElement:g,createElement:y,isValidElement:v}=null!==(o=n.library)&&void 0!==o?o:l,b=t.length;c(t);for(let r=0;r<b;r++){const o=t[r];if(h){let e=null===(i=n.replace)||void 0===i?void 0:i.call(n,o,r);if(v(e)){b>1&&(e=g(e,{key:null!==(d=e.key)&&void 0!==d?d:r})),p.push(m(e,o,r));continue}}if("text"===o.type){const e=!o.data.trim().length;if(e&&o.parent&&!(0,s.canTextBeChildOfNode)(o.parent))continue;if(n.trim&&e)continue;p.push(m(o.data,o,r));continue}const l=o;let c,_={};switch(u(l)?((0,s.setStyleProp)(l.attribs.style,l.attribs),_=l.attribs):l.attribs&&(_=(0,a.default)(l.attribs,l.name)),o.type){case"script":case"style":o.children[0]&&(_.dangerouslySetInnerHTML={__html:o.children[0].data});break;case"tag":"textarea"===o.name&&o.children[0]?_.defaultValue=o.children[0].data:(null===(f=o.children)||void 0===f?void 0:f.length)&&(c=e(o.children,n));break;default:continue}b>1&&(_.key=r),p.push(m(y(o.name,_,c),o,r))}return 1===p.length?p[0]:p};const o=n(852),i=n(396),a=r(n(844)),s=n(847),l={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement};function c(e){for(const t of e)"tag"!==t.type&&"script"!==t.type&&"style"!==t.type||(Object.setPrototypeOf(t,o.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,n)=>{"use strict";n.r(t),n.d(t,{CDATA:()=>o.CDATA,Comment:()=>o.Comment,DataNode:()=>o.DataNode,Document:()=>o.Document,DomHandler:()=>a,Element:()=>o.Element,Node:()=>o.Node,NodeWithChildren:()=>o.NodeWithChildren,ProcessingInstruction:()=>o.ProcessingInstruction,Text:()=>o.Text,cloneNode:()=>o.cloneNode,default:()=>s,hasChildren:()=>o.hasChildren,isCDATA:()=>o.isCDATA,isComment:()=>o.isComment,isDirective:()=>o.isDirective,isDocument:()=>o.isDocument,isTag:()=>o.isTag,isText:()=>o.isText});var r=n(853),o=n(854);const i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class a{dom=[];root=new o.Document(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){"function"==typeof t&&(n=t,t=i),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??i,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new o.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 n=this.options.xmlMode?r.ElementType.Tag:void 0,i=new o.Element(e,t,void 0,n);this.addNode(i),this.tagStack.push(i)}ontext(e){const{lastNode:t}=this;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new o.Text(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)return void(this.lastNode.data+=e);const t=new o.Comment(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const n=new o.ProcessingInstruction(e,t);this.addNode(n)}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],n=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),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}const s=a},(e,t,n)=>{"use strict";var r;function o(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}n.r(t),n.d(t,{CDATA:()=>f,Comment:()=>l,Directive:()=>s,Doctype:()=>p,ElementType:()=>r,Root:()=>i,Script:()=>c,Style:()=>u,Tag:()=>d,Text:()=>a,isTag:()=>o}),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={}));const i=r.Root,a=r.Text,s=r.Directive,l=r.Comment,c=r.Script,u=r.Style,d=r.Tag,f=r.CDATA,p=r.Doctype},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CDATA:()=>u,Comment:()=>s,DataNode:()=>i,Document:()=>d,Element:()=>f,Node:()=>o,NodeWithChildren:()=>c,ProcessingInstruction:()=>l,Text:()=>a,cloneNode:()=>_,hasChildren:()=>b,isCDATA:()=>h,isComment:()=>g,isDirective:()=>y,isDocument:()=>v,isTag:()=>p,isText:()=>m});var r=n(853);class o{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 i extends o{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}class a extends i{type=r.ElementType.Text;get nodeType(){return 3}}class s extends i{type=r.ElementType.Comment;get nodeType(){return 8}}class l extends i{type=r.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"}class c extends o{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=r.ElementType.CDATA;get nodeType(){return 4}}class d extends c{type=r.ElementType.Root;get nodeType(){return 9}}class f extends c{name;attribs;type;constructor(e,t,n=[],o=("script"===e?r.ElementType.Script:"style"===e?r.ElementType.Style:r.ElementType.Tag)){super(n),this.name=e,this.attribs=t,this.type=o}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 p(e){return(0,r.isTag)(e)}function h(e){return e.type===r.ElementType.CDATA}function m(e){return e.type===r.ElementType.Text}function g(e){return e.type===r.ElementType.Comment}function y(e){return e.type===r.ElementType.Directive}function v(e){return e.type===r.ElementType.Root}function b(e){return Object.hasOwn(e,"children")}function _(e,t=!1){let n;if(m(e))n=new a(e.data);else if(g(e))n=new s(e.data);else if(p(e)){const r=t?w(e.children):[],o=new f(e.name,{...e.attribs},r);for(const e of r)e.parent=o;null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=o}else if(h(e)){const r=t?w(e.children):[],o=new u(r);for(const e of r)e.parent=o;n=o}else if(v(e)){const r=t?w(e.children):[],o=new d(r);for(const e of r)e.parent=o;e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}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"]),n=t}}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(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,n)=>{"use strict";n.r(t),n.d(t,{useLazyQuery:()=>u});var r=n(314),o=n(464),i=n(612),a=n(739),s=n(811),l=(n(467),n(862)),c=["refetch","reobserve","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"];function u(e,t){var n,u=o.useRef(void 0),d=o.useRef(void 0),f=o.useRef(void 0),p=(0,i.mergeOptions)(t,u.current||{}
31),h=null!==(n=null==p?void 0:p.query)&&void 0!==n?n:e;d.current=t,f.current=h;var m=(0,r.__assign)((0,r.__assign)({},p),{skip:!u.current}),g=(0,a.useQueryInternals)(h,m),y=g.obsQueryFields,v=g.result,b=g.client,_=g.resultData,w=g.observable,S=g.onQueryExecuted,E=w.options.initialFetchPolicy||(0,a.getDefaultFetchPolicy)(m.defaultOptions,b.defaultOptions),k=o.useReducer(function(e){return e+1},0)[1],T=o.useMemo(function(){for(var e={},t=function(t){var n=y[t];e[t]=function(){return u.current||(u.current=Object.create(null),k()),n.apply(this,arguments)}},n=0,r=c;n<r.length;n++){t(r[n])}return e},[k,y]),x=!!u.current,O=o.useMemo(function(){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},v),T),{called:x})},[v,T,x]),C=(0,l.useRenderGuard)(),P=(o.useRef(new Set),o.useCallback(function(e){u.current=e?(0,r.__assign)((0,r.__assign)({},e),{fetchPolicy:e.fetchPolicy||E}):{fetchPolicy:E};var t=(0,i.mergeOptions)(d.current,(0,r.__assign)({query:f.current},u.current)),n=function(e,t,n,r,o,i){var s=o.query||r,l=(0,a.createMakeWatchQueryOptions)(n,s,o,!1)(t),c=t.reobserveAsConcast((0,a.getObsQueryOptions)(t,n,o,l));return i(l),new Promise(function(r){var o;c.subscribe({next:function(e){o=e},error:function(){r((0,a.toQueryResult)(t.getCurrentResult(),e.previousData,t,n))},complete:function(){r((0,a.toQueryResult)(t.maskResult(o),e.previousData,t,n))}})})}(_,w,b,h,(0,r.__assign)((0,r.__assign)({},t),{skip:!1}),S).then(function(e){return Object.assign(e,T)});return n.catch(function(){}),n},[C,b,h,T,E,w,_,S])),A=o.useRef(P);(0,s.useIsomorphicLayoutEffect)(function(){A.current=P});var I=o.useCallback(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A.current.apply(A,e)},[]);return[I,O]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{useRenderGuard:()=>a});var r,o=n(464);function i(){}function a(){return r||(r=o.createContext(null)),o.useCallback(function(){var e=console.error;try{return console.error=i,o.useContext(r),!0}catch(e){return!1}finally{console.error=e}},[])}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Particles:()=>o.default,ParticlesProvider:()=>r.ParticlesProvider,default:()=>i,useParticlesProvider:()=>r.useParticlesProvider});var r=n(913),o=n(975),i=o.default},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesProvider:()=>c,useParticlesProvider:()=>u});var r,o,i=n(396),a=n(914),s=!1,l=(0,i.createContext)({loaded:!1}),c=({children:e,init:t})=>{let[n,c]=(0,i.useState)(s);(0,i.useEffect)(()=>{let e=!1;if(!s){if(r){if(o&&o!==t)throw Error("ParticlesProvider init callback must be stable across the app lifecycle.")}else o=t,r=(async()=>{await t(a.tsParticles),s=!0})().catch(e=>{throw r=void 0,o=void 0,e});return r.then(()=>{e||c(!0)}).catch(()=>{e||c(!1)}),()=>{e=!0}}},[t]);let u=(0,i.useMemo)(()=>({loaded:n}),[n]);return(0,i.jsx)(l.Provider,{value:u,children:n?e:null})};function u(){return(0,i.useContext)(l)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlterType:()=>o.AlterType,AnimatableColor:()=>o.AnimatableColor,AnimationMode:()=>o.AnimationMode,AnimationOptions:()=>o.AnimationOptions,AnimationStatus:()=>o.AnimationStatus,AnimationValueWithRandom:()=>o.AnimationValueWithRandom,Background:()=>o.Background,BaseRange:()=>o.BaseRange,Circle:()=>o.Circle,ColorAnimation:()=>o.ColorAnimation,DestroyType:()=>o.DestroyType,EasingType:()=>o.EasingType,EventType:()=>o.EventType,Fill:()=>o.Fill,FullScreen:()=>o.FullScreen,GradientType:()=>o.GradientType,HslAnimation:()=>o.HslAnimation,LimitMode:()=>o.LimitMode,Move:()=>o.Move,MoveAngle:()=>o.MoveAngle,MoveCenter:()=>o.MoveCenter,MoveDirection:()=>o.MoveDirection,MoveGravity:()=>o.MoveGravity,MovePath:()=>o.MovePath,Options:()=>o.Options,OptionsColor:()=>o.OptionsColor,OutMode:()=>o.OutMode,OutModeDirection:()=>o.OutModeDirection,OutModes:()=>o.OutModes,Paint:()=>o.Paint,ParticleOutType:()=>o.ParticleOutType,ParticlesBounce:()=>o.ParticlesBounce,ParticlesBounceFactor:()=>o.ParticlesBounceFactor,ParticlesDensity:()=>o.ParticlesDensity,ParticlesNumber:()=>o.ParticlesNumber,ParticlesNumberLimit:()=>o.ParticlesNumberLimit,ParticlesOptions:()=>o.ParticlesOptions,PixelMode:()=>o.PixelMode,RangedAnimationOptions:()=>o.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>o.RangedAnimationValueWithRandom,Rectangle:()=>o.Rectangle,ResizeEvent:()=>o.ResizeEvent,RotateDirection:()=>o.RotateDirection,Shape:()=>o.Shape,Spin:()=>o.Spin,StartValueType:()=>o.StartValueType,Stroke:()=>o.Stroke,ValueWithRandom:()=>o.ValueWithRandom,Vector:()=>o.Vector,Vector3d:()=>o.Vector3d,ZIndex:()=>o.ZIndex,alterHsl:()=>o.alterHsl,animate:()=>o.animate,areBoundsInside:()=>o.areBoundsInside,arrayRandomIndex:()=>o.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>o.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>o.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>o.calcPositionFromSize,calcPositionOrRandomFromSize:()=>o.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>o.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>o.calculateBounds,cancelAnimation:()=>o.cancelAnimation,canvasFirstIndex:()=>o.canvasFirstIndex,canvasTag:()=>o.canvasTag,checkDistance:()=>o.checkDistance,circleBounce:()=>o.circleBounce,circleBounceDataFromParticle:()=>o.circleBounceDataFromParticle,clamp:()=>o.clamp,clear:()=>o.clear,cloneStyle:()=>o.cloneStyle,collisionVelocity:()=>o.collisionVelocity,colorMix:()=>o.colorMix,colorToHsl:()=>o.colorToHsl,colorToRgb:()=>o.colorToRgb,countOffset:()=>o.countOffset,decayOffset:()=>o.decayOffset,deepExtend:()=>o.deepExtend,defaultAlpha:()=>o.defaultAlpha,defaultAngle:()=>o.defaultAngle,defaultCompositeValue:()=>
31o.defaultCompositeValue,defaultDensityFactor:()=>o.defaultDensityFactor,defaultFps:()=>o.defaultFps,defaultFpsLimit:()=>o.defaultFpsLimit,defaultLoops:()=>o.defaultLoops,defaultOpacity:()=>o.defaultOpacity,defaultRatio:()=>o.defaultRatio,defaultReduceFactor:()=>o.defaultReduceFactor,defaultRemoveQuantity:()=>o.defaultRemoveQuantity,defaultRetryCount:()=>o.defaultRetryCount,defaultRgbMin:()=>o.defaultRgbMin,defaultTime:()=>o.defaultTime,defaultTransform:()=>o.defaultTransform,defaultTransformValue:()=>o.defaultTransformValue,defaultVelocity:()=>o.defaultVelocity,defaultZoom:()=>o.defaultZoom,degToRad:()=>o.degToRad,deleteCount:()=>o.deleteCount,double:()=>o.double,doublePI:()=>o.doublePI,drawAfterEffect:()=>o.drawAfterEffect,drawBeforeEffect:()=>o.drawBeforeEffect,drawParticle:()=>o.drawParticle,drawParticlePlugin:()=>o.drawParticlePlugin,drawShape:()=>o.drawShape,drawShapeAfterDraw:()=>o.drawShapeAfterDraw,drawShapeBeforeDraw:()=>o.drawShapeBeforeDraw,empty:()=>o.empty,executeOnSingleOrMultiple:()=>o.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>o.findItemFromSingleOrMultiple,generatedAttribute:()=>o.generatedAttribute,generatedFalse:()=>o.generatedFalse,generatedTrue:()=>o.generatedTrue,getDistance:()=>o.getDistance,getDistanceSq:()=>o.getDistanceSq,getDistances:()=>o.getDistances,getFullScreenStyle:()=>o.getFullScreenStyle,getHslAnimationFromHsl:()=>o.getHslAnimationFromHsl,getHslFromAnimation:()=>o.getHslFromAnimation,getItemMapFromInitializer:()=>o.getItemMapFromInitializer,getItemsFromInitializer:()=>o.getItemsFromInitializer,getLinkColor:()=>o.getLinkColor,getLinkRandomColor:()=>o.getLinkRandomColor,getLogger:()=>o.getLogger,getParticleBaseVelocity:()=>o.getParticleBaseVelocity,getParticleDirectionAngle:()=>o.getParticleDirectionAngle,getPosition:()=>o.getPosition,getRandom:()=>o.getRandom,getRandomInRange:()=>o.getRandomInRange,getRandomRgbColor:()=>o.getRandomRgbColor,getRangeMax:()=>o.getRangeMax,getRangeMin:()=>o.getRangeMin,getRangeValue:()=>o.getRangeValue,getSize:()=>o.getSize,getStyleFromHsl:()=>o.getStyleFromHsl,getStyleFromRgb:()=>o.getStyleFromRgb,hMax:()=>o.hMax,hMin:()=>o.hMin,hPhase:()=>o.hPhase,half:()=>o.half,hasMatchMedia:()=>o.hasMatchMedia,hslToRgb:()=>o.hslToRgb,hslaToRgba:()=>o.hslaToRgba,identity:()=>o.identity,initParticleNumericAnimationValue:()=>o.initParticleNumericAnimationValue,inverseFactorNumerator:()=>o.inverseFactorNumerator,isArray:()=>o.isArray,isBoolean:()=>o.isBoolean,isFunction:()=>o.isFunction,isInArray:()=>o.isInArray,isNull:()=>o.isNull,isNumber:()=>o.isNumber,isObject:()=>o.isObject,isPointInside:()=>o.isPointInside,isString:()=>o.isString,itemFromArray:()=>o.itemFromArray,itemFromSingleOrMultiple:()=>o.itemFromSingleOrMultiple,lFactor:()=>o.lFactor,lMax:()=>o.lMax,lMin:()=>o.lMin,lengthOffset:()=>o.lengthOffset,loadMinIndex:()=>o.loadMinIndex,loadOptions:()=>o.loadOptions,loadParticlesOptions:()=>o.loadParticlesOptions,loadRandomFactor:()=>o.loadRandomFactor,manageListener:()=>o.manageListener,memoize:()=>o.memoize,midColorValue:()=>o.midColorValue,millisecondsToSeconds:()=>o.millisecondsToSeconds,minCount:()=>o.minCount,minFpsLimit:()=>o.minFpsLimit,minIndex:()=>o.minIndex,minLimit:()=>o.minLimit,minStrokeWidth:()=>o.minStrokeWidth,minVelocity:()=>o.minVelocity,minZ:()=>o.minZ,minimumSize:()=>o.minimumSize,mix:()=>o.mix,none:()=>o.none,one:()=>o.one,originPoint:()=>o.originPoint,paintBase:()=>o.paintBase,paintImage:()=>o.paintImage,parseAlpha:()=>o.parseAlpha,percentDenominator:()=>o.percentDenominator,phaseNumerator:()=>o.phaseNumerator,quarter:()=>o.quarter,randomColorValue:()=>o.randomColorValue,randomInRangeValue:()=>o.randomInRangeValue,rangeColorToHsl:()=>o.rangeColorToHsl,rangeColorToRgb:()=>o.rangeColorToRgb,removeDeleteCount:()=>o.removeDeleteCount,removeMinIndex:()=>o.removeMinIndex,resizeEvent:()=>o.resizeEvent,rgbMax:()=>o.rgbMax,rgbToHsl:()=>o.rgbToHsl,sMax:()=>o.sMax,sMin:()=>o.sMin,sNormalizedOffset:()=>o.sNormalizedOffset,safeDocument:()=>o.safeDocument,safeIntersectionObserver:()=>o.safeIntersectionObserver,safeMatchMedia:()=>o.safeMatchMedia,safeMutationObserver:()=>o.safeMutationObserver,setAnimationFunctions:()=>o.setAnimationFunctions,setLogger:()=>o.setLogger,setRandom:()=>o.setRandom,setRangeValue:()=>
31o.setRangeValue,sextuple:()=>o.sextuple,spatialHashGridCellSize:()=>o.spatialHashGridCellSize,squareExp:()=>o.squareExp,stringToAlpha:()=>o.stringToAlpha,stringToRgb:()=>o.stringToRgb,threeQuarter:()=>o.threeQuarter,triple:()=>o.triple,tryCountIncrement:()=>o.tryCountIncrement,tsParticles:()=>i,updateAnimation:()=>o.updateAnimation,updateColor:()=>o.updateColor,updateColorValue:()=>o.updateColorValue,visibilityChangeEvent:()=>o.visibilityChangeEvent,zIndexFactorOffset:()=>o.zIndexFactorOffset});var r=n(915),o=n(933);const i=(0,r.initEngine)()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{initEngine:()=>o});var r=n(916);function o(){return new r.Engine}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Engine:()=>u});var r=n(917),o=n(918),i=n(929),a=n(930),s=n(932),l=n(919);const c="100%";class u{pluginManager=new a.PluginManager(this);#e=[];#t=new i.EventDispatcher;#n=!1;get items(){return this.#e}get version(){return"4.1.3"}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.#n||(await this.pluginManager.init(),this.#n=!0)}item(e){const t=this.items,n=t[e];if(!n?.destroyed)return n;t.splice(e,r.removeDeleteCount)}async load(e){let t;await this.init(),"undefined"!=typeof HTMLElement&&e.element instanceof HTMLElement&&(t=e.element);const{Container:i}=await n.e("vendors").then(n.bind(n,2791)),a=e.id??t?.id??`tsparticles${Math.floor((0,l.getRandom)()*r.loadRandomFactor).toString()}`,{index:u,url:d}=e,f=d?await async function(e){const t=(0,o.itemFromSingleOrMultiple)(e.url,e.index);if(!t)return e.fallback;const n=await fetch(t);return n.ok?await n.json():((0,s.getLogger)().error(`${n.status.toString()} while retrieving config file`),e.fallback)}({fallback:e.options,url:d,index:u}):e.options,p=(0,o.itemFromSingleOrMultiple)(f,u),{items:h}=this,m=h.findIndex(e=>e.id.description===a),g=new i({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:a,onDestroy:e=>{if(!e)return;const t=this.items,n=t.indexOf(g);n>=r.removeMinIndex&&t.splice(n,r.removeDeleteCount)},pluginManager:this.pluginManager,sourceOptions:p});if(m>=r.loadMinIndex){const e=this.item(m),t=e?r.one:r.none;e&&!e.destroyed&&e.destroy(!1),h.splice(m,t,g)}else h.push(g);const y="undefined"!=typeof OffscreenCanvas&&e.element instanceof OffscreenCanvas?e.element:(e=>{const t=(0,o.safeDocument)();let n;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===r.canvasTag)n=e,n.dataset[r.generatedAttribute]??=r.generatedFalse,n.dataset[r.generatedAttribute]===r.generatedTrue&&(n.style.width||=c,n.style.height||=c,n.style.pointerEvents="none",n.style.setProperty("pointer-events","none"));else{const o=e.getElementsByTagName(r.canvasTag).item(r.canvasFirstIndex);o?(n=o,n.dataset[r.generatedAttribute]=r.generatedFalse):(n=t.createElement(r.canvasTag),n.dataset[r.generatedAttribute]=r.generatedTrue,e.appendChild(n)),n.style.width||=c,n.style.height||=c,n.style.pointerEvents="none",n.style.setProperty("pointer-events","none")}return n})(((e,t)=>{const n=(0,o.safeDocument)();let i=t??n.getElementById(e);return i||(i=n.createElement("canvas"),i.id=e,i.dataset[r.generatedAttribute]=r.generatedTrue,n.body.append(i),i)})(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,n)=>{"use strict";n.r(t),n.d(t,{canvasFirstIndex:()=>$,canvasTag:()=>_,countOffset:()=>ne,decayOffset:()=>X,defaultAlpha:()=>y,defaultAngle:()=>le,defaultCompositeValue:()=>o,defaultDensityFactor:()=>ae,defaultFps:()=>g,defaultFpsLimit:()=>G,defaultLoops:()=>be,defaultOpacity:()=>H,defaultRatio:()=>T,defaultReduceFactor:()=>x,defaultRemoveQuantity:()=>k,defaultRetryCount:()=>w,defaultRgbMin:()=>ye,defaultTime:()=>_e,defaultTransform:()=>d,defaultTransformValue:()=>B,defaultVelocity:()=>ve,defaultZoom:()=>we,deleteCount:()=>se,double:()=>h,doublePI:()=>m,empty:()=>D,generatedAttribute:()=>r,generatedFalse:()=>b,generatedTrue:()=>v,hMax:()=>P,hMin:()=>R,hPhase:()=>M,half:()=>l,identity:()=>ce,inverseFactorNumerator:()=>O,lFactor:()=>de,lMax:()=>I,lMin:()=>fe,lengthOffset:()=>ie,loadMinIndex:()=>K,loadRandomFactor:()=>Y,midColorValue:()=>p,millisecondsToSeconds:()=>c,minCount:()=>re,minFpsLimit:()=>W,minIndex:()=>oe,minLimit:()=>te,minStrokeWidth:()=>ue,minVelocity:()=>F,minZ:()=>ee,minimumSize:()=>z,none:()=>Q,one:()=>J,originPoint:()=>u,percentDenominator:()=>s,phaseNumerator:()=>ge,quarter:()=>N,randomColorValue:()=>f,removeDeleteCount:()=>V,removeMinIndex:()=>q,resizeEvent:()=>i,rgbMax:()=>C,sMax:()=>A,sMin:()=>j,sNormalizedOffset:()=>me,sextuple:()=>he,spatialHashGridCellSize:()=>E,squareExp:()=>S,threeQuarter:()=>L,triple:()=>pe,tryCountIncrement:()=>Z,visibilityChangeEvent:()=>a,zIndexFactorOffset:()=>U});const r="generated",o="source-over",i="resize",a="visibilitychange",s=100,l=.5,c=1e3,u={x:0,y:0,z:0},d={a:1,b:0,c:0,d:1},f="random",p="mid",h=2,m=Math.PI*h,g=60,y=1,v="true",b="false",_="canvas",w=0,S=2,E=100,k=1,T=1,x=1,O=1,C=255,P=360,A=100,I=100,R=0,j=0,M=60,D=0,N=.25,L=l+N,F=0,B=1,z=0,U=1,H=1,V=1,q=0,G=120,W=0,$=0,Y=1e4,K=0,J=1,Q=0,X=1,Z=1,ee=0,te=0,ne=1,re=0,oe=0,ie=1,ae=1,se=1,le=0,ce=1,ue=0,de=1,fe=0,pe=3,he=6,me=1,ge=1,ye=0,ve=0,be=0,_e=0,we=1},(e,t,n)=>{"use strict";n.r(t),n.d(t,{areBoundsInside:()=>T,arrayRandomIndex:()=>S,calculateBounds:()=>x,circleBounce:()=>P,circleBounceDataFromParticle:()=>C,cloneStyle:()=>F,deepExtend:()=>O,executeOnSingleOrMultiple:()=>A,findItemFromSingleOrMultiple:()=>R,getFullScreenStyle:()=>B,getItemMapFromInitializer:()=>H,getItemsFromInitializer:()=>U,getPosition:()=>D,getSize:()=>N,hasMatchMedia:()=>g,initParticleNumericAnimationValue:()=>j,isInArray:()=>w,isPointInside:()=>k,itemFromArray:()=>E,itemFromSingleOrMultiple:()=>I,manageListener:()=>z,memoize:()=>m,safeDocument:()=>y,safeIntersectionObserver:()=>b,safeMatchMedia:()=>v,safeMutationObserver:()=>_,updateAnimation:()=>L});var r=n(919),o=n(917),i=n(922),a=n(923),s=n(924),l=n(925),c=n(926),u=n(927),d=n(928),f=n(921);const p=0,h=0;function m(e,t){const n=new Map,r=t?.maxSize,o=t?.ttlMs,i=t?.keyFn,a=(e,t=new WeakSet)=>{if(null===e)return"null";const n=typeof e;if("undefined"===n)return"undefined";if("number"===n||"boolean"===n||"string"===n)return JSON.stringify(e);if("function"===n)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===n)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>a(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);return`{${Object.keys(e).sort().map(n=>`${JSON.stringify(n)}:${a(e[n],t)}`).join(",")}}`},s=e=>i?i(e):(e=>a(e))(e);return(...t)=>{const i=s(t),a=Date.now(),l=n.get(i);if(void 0!==l){if(!(o&&a-l.ts>o))return n.delete(i),n.set(i,{value:l.value,ts:l.ts}),l.value;n.delete(i)}const c=e(...t);return n.set(i,{value:c,ts:a}),(()=>{if("number"==typeof r&&r>=h)for(;n.size>r;){const e=n.keys().next().value;if(void 0===e)break;n.delete(e)}})(),c}}function g(){return"undefined"!=typeof matchMedia}function y(){return globalThis.document}function v(e){if(g())return matchMedia(e)}function b(e){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}function _(e){if("undefined"!=typeof MutationObserver)return new MutationObserver(e)}function w(e,t){return e===t||(0,i.isArray)(t)&&t.includes(e)}function S(e){return Math.floor((0,r.getRandom)()*e.length)}function E(e,t,n=!0){return e[void 0!==t&&n?t%e.length:S(e)]}function k(e,t,n,r,o){return T(x(e,r??p),t,n,o)}function T(e,t,n,r){let o=!0;return r&&r!==c.OutModeDirection.bottom||(o=e.top<t.height+n.x),!o||r&&r!==c.OutModeDirection.left||(
31o=e.right>n.x),!o||r&&r!==c.OutModeDirection.right||(o=e.left<t.width+n.y),!o||r&&r!==c.OutModeDirection.top||(o=e.bottom>n.y),o}function x(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function O(e,...t){for(const n of t){if((0,i.isNull)(n))continue;if(!(0,i.isObject)(n)){e=n;continue}Array.isArray(n)?Array.isArray(e)||(e=[]):(0,i.isObject)(e)&&!Array.isArray(e)||(e={});const t=Object.keys(n),r=new Set(["__proto__","constructor","prototype"]);if(!t.some(e=>{const t=n[e];return(0,i.isObject)(t)||Array.isArray(t)})){const o=n,i=e;for(const e of t)if(!r.has(e)&&e in o){const t=o[e];void 0!==t&&(i[e]=t)}continue}for(const o of t){if(r.has(o))continue;const t=e,i=n[o];t[o]=Array.isArray(i)?i.map(e=>O(void 0,e)):O(t[o],i)}}return e}function C(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.Vector.create((0,r.getRangeValue)(e.options.bounce.horizontal.value),(0,r.getRangeValue)(e.options.bounce.vertical.value))}}function P(e,t){const{x:n,y:o}=e.velocity.sub(t.velocity),[i,a]=[e.position,t.position],{dx:s,dy:l}=(0,r.getDistances)(a,i);if(n*s+o*l<0)return;const c=-Math.atan2(l,s),u=e.mass,d=t.mass,f=e.velocity.rotate(c),p=t.velocity.rotate(c),h=(0,r.collisionVelocity)(f,p,u,d),m=(0,r.collisionVelocity)(p,f,u,d),g=h.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 A(e,t){return(0,i.isArray)(e)?e.map((e,n)=>t(e,n)):t(e,0)}function I(e,t,n){return(0,i.isArray)(e)?E(e,t,n):e}function R(e,t){if((0,i.isArray)(e))return e.find((e,n)=>t(e,n));return t(e,0)?e:void 0}function j(e,t){const n=e.value,i=e.animation,l={delayTime:(0,r.getRangeValue)(i.delay)*o.millisecondsToSeconds,enable:i.enable,value:(0,r.getRangeValue)(e.value)*t,max:(0,r.getRangeMax)(n)*t,min:(0,r.getRangeMin)(n)*t,loops:0,maxLoops:(0,r.getRangeValue)(i.count),time:0};if(i.enable){switch(l.decay=1-(0,r.getRangeValue)(i.decay),i.mode){case a.AnimationMode.increase:l.status=s.AnimationStatus.increasing;break;case a.AnimationMode.decrease:l.status=s.AnimationStatus.decreasing;break;case a.AnimationMode.random:l.status=(0,r.getRandom)()>=o.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing}const e=i.mode===a.AnimationMode.auto;switch(i.startValue){case d.StartValueType.min:l.value=l.min,e&&(l.status=s.AnimationStatus.increasing);break;case d.StartValueType.max:l.value=l.max,e&&(l.status=s.AnimationStatus.decreasing);break;case d.StartValueType.random:default:l.value=(0,r.randomInRangeValue)(l),e&&(l.status=(0,r.getRandom)()>=o.half?s.AnimationStatus.increasing:s.AnimationStatus.decreasing)}}return l.initialValue=l.value,l}function M(e,t){if(!(e.mode===u.PixelMode.percent)){const{mode:t,...n}=e;return n}return"x"in e?{x:e.x/o.percentDenominator*t.width,y:e.y/o.percentDenominator*t.height}:{width:e.width/o.percentDenominator*t.width,height:e.height/o.percentDenominator*t.height}}function D(e,t){return M(e,t)}function N(e,t){return M(e,t)}function L(e,t,n,o,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,d=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case s.AnimationStatus.increasing:t.value+=a;break;case s.AnimationStatus.decreasing:t.value-=a}
31switch(t.velocity&&1!==d&&(t.velocity*=d),t.status){case s.AnimationStatus.increasing:t.value>=u&&(n?t.status=s.AnimationStatus.decreasing:t.value-=u,t.loops??=0,t.loops++);break;case s.AnimationStatus.decreasing:t.value<=c&&(n?t.status=s.AnimationStatus.increasing:t.value+=u,t.loops??=0,t.loops++)}!function(e,t,n,r,o){switch(t){case l.DestroyType.max:n>=o&&e.destroy();break;case l.DestroyType.min:n<=r&&e.destroy()}}(e,o,t.value,c,u),e.destroyed||(t.value=(0,r.clamp)(t.value,c,u))}}function F(e){const t=y().createElement("div").style;for(const n in e){const r=e[n];if(!(n in e)||(0,i.isNull)(r))continue;const o=e.getPropertyValue?.(r);if(!o)continue;const a=e.getPropertyPriority?.(r);a?t.setProperty(r,o,a):t.setProperty(r,o)}return t}const B=m(function(e){const t=y().createElement("div").style,n={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0","pointer-events":"none"};for(const e in n){const r=n[e];void 0!==r&&t.setProperty(e,r)}return t});function z(e,t,n,r,o){if(r){let r={passive:!0};(0,i.isBoolean)(o)?r.capture=o:void 0!==o&&(r=o),e.addEventListener(t,n,r)}else{const r=o;e.removeEventListener(t,n,r)}}async function U(e,t,n,r=!1){let o=t.get(e);return o&&!r||(o=await Promise.all([...n.values()].map(t=>t(e))),t.set(e,o)),o}async function H(e,t,n,r=!1){let o=t.get(e);if(!o||r){const r=await Promise.all([...n.entries()].map(([t,n])=>n(e).then(e=>[t,e])));o=new Map(r),t.set(e,o)}return o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{animate:()=>h,calcExactPositionOrRandomFromSize:()=>M,calcExactPositionOrRandomFromSizeRanged:()=>D,calcPositionFromSize:()=>I,calcPositionOrRandomFromSize:()=>R,calcPositionOrRandomFromSizeRanged:()=>j,cancelAnimation:()=>m,checkDistance:()=>x,clamp:()=>g,collisionVelocity:()=>A,degToRad:()=>O,getDistance:()=>T,getDistanceSq:()=>k,getDistances:()=>E,getParticleBaseVelocity:()=>P,getParticleDirectionAngle:()=>C,getRandom:()=>d,getRandomInRange:()=>f,getRangeMax:()=>w,getRangeMin:()=>_,getRangeValue:()=>b,mix:()=>y,parseAlpha:()=>N,randomInRangeValue:()=>v,setAnimationFunctions:()=>p,setRandom:()=>u,setRangeValue:()=>S});var r=n(920),o=n(917),i=n(921),a=n(922);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 d(){return g(l(),0,1-Number.EPSILON)}function f(e,t){return d()*(t-e)+e}function p(e,t){c.nextFrame=e,c.cancel=t}function h(e){return c.nextFrame(e)}function m(e){c.cancel(e)}function g(e,t,n){return Math.min(Math.max(e,t),n)}function y(e,t,n,r){return Math.floor((e*n+t*r)/(n+r))}function v(e){const t=w(e);let n=_(e);return t===n&&(n=0),f(n,t)}function b(e){return(0,a.isNumber)(e)?e:v(e)}function _(e){return(0,a.isNumber)(e)?e:e.min}function w(e){return(0,a.isNumber)(e)?e:e.max}function S(e,t){if(e===t||void 0===t&&(0,a.isNumber)(e))return e;const n=_(e),r=w(e);return void 0!==t?{min:Math.min(n,t),max:Math.max(r,t)}:S(n,r)}function E(e,t){const n=e.x-t.x,r=e.y-t.y;return{dx:n,dy:r,distance:Math.hypot(n,r)}}function k(e,t){const n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function T(e,t){return Math.sqrt(k(e,t))}function x(e,t,n){return k(e,t)<=n*n}function O(e){return e*s}function C(e,t,n){if((0,a.isNumber)(e))return O(e);switch(e){case r.MoveDirection.top:return-Math.PI*o.half;case r.MoveDirection.topRight:return-Math.PI*o.quarter;case r.MoveDirection.right:return o.empty;case r.MoveDirection.bottomRight:return Math.PI*o.quarter;case r.MoveDirection.bottom:return Math.PI*o.half;case r.MoveDirection.bottomLeft:return Math.PI*o.threeQuarter;case r.MoveDirection.left:return Math.PI;case r.MoveDirection.topLeft:return-Math.PI*o.threeQuarter;case r.MoveDirection.inside:return Math.atan2(n.y-t.y,n.x-t.x);case r.MoveDirection.outside:return Math.atan2(t.y-n.y,t.x-n.x);default:return d()*o.doublePI}}function P(e){const t=i.Vector.origin;return t.length=1,t.angle=e,t}function A(e,t,n,r){return i.Vector.create(e.x*(n-r)/(n+r)+t.x*o.double*r/(n+r),e.y)}function I(e){return void 0!==e.position?.x&&void 0!==e.position.y?{x:e.position.x*e.size.width/o.percentDenominator,y:e.position.y*e.size.height/o.percentDenominator}:void 0}function R(e){return{x:(e.position?.x??d()*o.percentDenominator)*e.size.width/o.percentDenominator,y:(e.position?.y??d()*o.percentDenominator)*e.size.height/o.percentDenominator}}function j(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return R({size:e.size,position:t})}function M(e){const{position:t,size:n}=e;
31return{x:t?.x??d()*n.width,y:t?.y??d()*n.height}}function D(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return M({size:e.size,position:t})}function N(e){return e?e.endsWith("%")?parseFloat(e)/o.percentDenominator:parseFloat(e):1}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{MoveDirection:()=>r}),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"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Vector:()=>a,Vector3d:()=>i});var r=n(917);function o(e){return"z"in e?e.z:r.originPoint.z}class i{x;y;z;constructor(e=r.originPoint.x,t=r.originPoint.y,n=r.originPoint.z){this.x=e,this.y=t,this.z=n}static get origin(){return i.create(r.originPoint.x,r.originPoint.y,r.originPoint.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this.#r(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this.#r(this.angle,e)}static clone(e){return i.create(e.x,e.y,o(e))}static create(e,t,n){return"number"==typeof e?new i(e,t??r.originPoint.y,n??r.originPoint.z):new i(e.x,e.y,o(e))}add(e){return i.create(this.x+e.x,this.y+e.y,this.z+o(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=o(e)}copy(){return i.clone(this)}div(e){return i.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**r.squareExp+this.y**r.squareExp}mult(e){return i.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!=r.none&&this.multTo(r.inverseFactorNumerator/e)}rotate(e){return i.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),r.originPoint.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=o(e)}sub(e){return i.create(this.x-e.x,this.y-e.y,this.z-o(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=o(e)}#r(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class a extends i{constructor(e=r.originPoint.x,t=r.originPoint.y){super(e,t,r.originPoint.z)}static get origin(){return a.create(r.originPoint.x,r.originPoint.y)}static clone(e){return a.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new a(e,t??r.originPoint.y):new a(e.x,e.y)}}},(e,t,n)=>{"use strict";function r(e){return"boolean"==typeof e}function o(e){return"string"==typeof e}function i(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}n.r(t),n.d(t,{isArray:()=>l,isBoolean:()=>r,isFunction:()=>a,isNull:()=>c,isNumber:()=>i,isObject:()=>s,isString:()=>o})},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AnimationMode:()=>r}),function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AnimationStatus:()=>r}),function(e){e.increasing="increasing",e.decreasing="decreasing"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{DestroyType:()=>r}),function(e){e.none="none",e.max="max",e.min="min"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{OutModeDirection:()=>r}),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{PixelMode:()=>r}),function(e){e.precise="precise",e.percent="percent"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{StartValueType:()=>r}),function(e){e.max="max",e.min="min",e.random="random"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventDispatcher:()=>o});var r=n(917);class o{#o;constructor(){this.#o=new Map}addEventListener(e,t){this.removeEventListener(e,t);let n=this.#o.get(e);n||(n=[],this.#o.set(e,n)),n.push(t)}dispatchEvent(e,t){const n=this.#o.get(e);n?.forEach(e=>{e(t)})}hasEventListener(e){return!!this.#o.get(e)}removeAllEventListeners(e){e?this.#o.delete(e):this.#o=new Map}removeEventListener(e,t){const n=this.#o.get(e);if(!n)return;const o=n.length,i=n.indexOf(t);i<r.minIndex||(o===r.deleteCount?this.#o.delete(e):n.splice(i,r.deleteCount))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{PluginManager:()=>i});var r=n(918),o=n(931);class i{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;
vendor: 1,511 bytes, line 31
31initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;#i=new Set;#a=new Map;#s;#l=new Set;#n=!1;#c=!1;#u=new Set;constructor(e){this.#s=e}get configs(){const e={};for(const[t,n]of this.#a)e[t]=n;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(o.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,n=!1){!n&&this.getPreset(e)||this.presets.set(e,t)}addShape(e,t){for(const n of e)this.initializers.shapes.set(n,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,r.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,r.getItemMapFromInitializer)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,r.getItemsFromInitializer)(e,this.updaters,this.initializers.updaters,t)}
vendor: 3,201 bytes, line 31
31async init(){if(!this.#n&&!this.#c){this.#c=!0,this.#l=new Set,this.#i=new Set(this.#u);try{for(const e of this.#i)await this.#d(e,this.#l,this.#i)}finally{this.#u.clear(),this.#c=!1,this.#n=!0}}}loadParticlesOptions(e,t,...n){const r=this.updaters.get(e);r&&r.forEach(e=>e.loadOptions?.(t,...n))}async register(...e){if(this.#n)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const t of e)this.#c?await this.#d(t,this.#l,this.#i):this.#u.add(t)}async#d(e,t,n){t.has(e)||(t.add(e),n.add(e),await e(this.#s))}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{EventType:()=>r}),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"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getLogger:()=>a,setLogger:()=>i});const r=e=>(...t)=>{e(...t)},o={debug:r(console.debug),error:(e,...t)=>{console.error(`tsParticles - Error - ${e}`,...t)},info:r(console.info),log:r(console.log),trace:r(console.trace),verbose:r(console.log),warning:r(console.warn)};function i(e){e.debug&&(o.debug=r(e.debug)),e.error&&(o.error=r(e.error)),e.info&&(o.info=r(e.info)),e.log&&(o.log=r(e.log)),e.trace&&(o.trace=r(e.trace)),e.verbose&&(o.verbose=r(e.verbose)),e.warning&&(o.warning=r(e.warning))}function a(){return o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AlterType:()=>p.AlterType,AnimatableColor:()=>w.AnimatableColor,AnimationMode:()=>c.AnimationMode,AnimationOptions:()=>S.AnimationOptions,AnimationStatus:()=>_.AnimationStatus,AnimationValueWithRandom:()=>Y.AnimationValueWithRandom,Background:()=>E.Background,BaseRange:()=>o.BaseRange,Circle:()=>o.Circle,ColorAnimation:()=>k.ColorAnimation,DestroyType:()=>h.DestroyType,EasingType:()=>v.EasingType,EventType:()=>b.EventType,Fill:()=>R.Fill,FullScreen:()=>T.FullScreen,GradientType:()=>m.GradientType,HslAnimation:()=>x.HslAnimation,LimitMode:()=>u.LimitMode,Move:()=>D.Move,MoveAngle:()=>N.MoveAngle,MoveCenter:()=>L.MoveCenter,MoveDirection:()=>a.MoveDirection,MoveGravity:()=>F.MoveGravity,MovePath:()=>z.MovePath,Options:()=>O.Options,OptionsColor:()=>C.OptionsColor,OutMode:()=>d.OutMode,OutModeDirection:()=>l.OutModeDirection,OutModes:()=>B.OutModes,Paint:()=>j.Paint,ParticleOutType:()=>g.ParticleOutType,ParticlesBounce:()=>P.ParticlesBounce,ParticlesBounceFactor:()=>A.ParticlesBounceFactor,ParticlesDensity:()=>q.ParticlesDensity,ParticlesNumber:()=>H.ParticlesNumber,ParticlesNumberLimit:()=>V.ParticlesNumberLimit,ParticlesOptions:()=>I.ParticlesOptions,PixelMode:()=>f.PixelMode,RangedAnimationOptions:()=>S.RangedAnimationOptions,RangedAnimationValueWithRandom:()=>Y.RangedAnimationValueWithRandom,Rectangle:()=>o.Rectangle,ResizeEvent:()=>$.ResizeEvent,RotateDirection:()=>s.RotateDirection,Shape:()=>G.Shape,Spin:()=>U.Spin,StartValueType:()=>y.StartValueType,Stroke:()=>M.Stroke,ValueWithRandom:()=>Y.ValueWithRandom,Vector:()=>
31i.Vector,Vector3d:()=>i.Vector3d,ZIndex:()=>W.ZIndex,alterHsl:()=>J.alterHsl,animate:()=>X.animate,areBoundsInside:()=>ee.areBoundsInside,arrayRandomIndex:()=>ee.arrayRandomIndex,calcExactPositionOrRandomFromSize:()=>X.calcExactPositionOrRandomFromSize,calcExactPositionOrRandomFromSizeRanged:()=>X.calcExactPositionOrRandomFromSizeRanged,calcPositionFromSize:()=>X.calcPositionFromSize,calcPositionOrRandomFromSize:()=>X.calcPositionOrRandomFromSize,calcPositionOrRandomFromSizeRanged:()=>X.calcPositionOrRandomFromSizeRanged,calculateBounds:()=>ee.calculateBounds,cancelAnimation:()=>X.cancelAnimation,canvasFirstIndex:()=>r.canvasFirstIndex,canvasTag:()=>r.canvasTag,checkDistance:()=>X.checkDistance,circleBounce:()=>ee.circleBounce,circleBounceDataFromParticle:()=>ee.circleBounceDataFromParticle,clamp:()=>X.clamp,clear:()=>K.clear,cloneStyle:()=>ee.cloneStyle,collisionVelocity:()=>X.collisionVelocity,colorMix:()=>J.colorMix,colorToHsl:()=>J.colorToHsl,colorToRgb:()=>J.colorToRgb,countOffset:()=>r.countOffset,decayOffset:()=>r.decayOffset,deepExtend:()=>ee.deepExtend,defaultAlpha:()=>r.defaultAlpha,defaultAngle:()=>r.defaultAngle,defaultCompositeValue:()=>r.defaultCompositeValue,defaultDensityFactor:()=>r.defaultDensityFactor,defaultFps:()=>r.defaultFps,defaultFpsLimit:()=>r.defaultFpsLimit,defaultLoops:()=>r.defaultLoops,defaultOpacity:()=>r.defaultOpacity,defaultRatio:()=>r.defaultRatio,defaultReduceFactor:()=>r.defaultReduceFactor,defaultRemoveQuantity:()=>r.defaultRemoveQuantity,defaultRetryCount:()=>r.defaultRetryCount,defaultRgbMin:()=>r.defaultRgbMin,defaultTime:()=>r.defaultTime,defaultTransform:()=>r.defaultTransform,defaultTransformValue:()=>r.defaultTransformValue,defaultVelocity:()=>r.defaultVelocity,defaultZoom:()=>r.defaultZoom,degToRad:()=>X.degToRad,deleteCount:()=>r.deleteCount,double:()=>r.double,doublePI:()=>r.doublePI,drawAfterEffect:()=>K.drawAfterEffect,drawBeforeEffect:()=>K.drawBeforeEffect,drawParticle:()=>K.drawParticle,drawParticlePlugin:()=>K.drawParticlePlugin,drawShape:()=>K.drawShape,drawShapeAfterDraw:()=>K.drawShapeAfterDraw,drawShapeBeforeDraw:()=>K.drawShapeBeforeDraw,empty:()=>r.empty,executeOnSingleOrMultiple:()=>ee.executeOnSingleOrMultiple,findItemFromSingleOrMultiple:()=>ee.findItemFromSingleOrMultiple,generatedAttribute:()=>r.generatedAttribute,generatedFalse:()=>r.generatedFalse,generatedTrue:()=>r.generatedTrue,getDistance:()=>X.getDistance,getDistanceSq:()=>X.getDistanceSq,getDistances:()=>X.getDistances,getFullScreenStyle:()=>ee.getFullScreenStyle,getHslAnimationFromHsl:()=>J.getHslAnimationFromHsl,getHslFromAnimation:()=>J.getHslFromAnimation,getItemMapFromInitializer:()=>ee.getItemMapFromInitializer,getItemsFromInitializer:()=>ee.getItemsFromInitializer,getLinkColor:()=>J.getLinkColor,getLinkRandomColor:()=>J.getLinkRandomColor,getLogger:()=>Q.getLogger,getParticleBaseVelocity:()=>X.getParticleBaseVelocity,getParticleDirectionAngle:()=>X.getParticleDirectionAngle,getPosition:()=>ee.getPosition,getRandom:()=>X.getRandom,getRandomInRange:()=>X.getRandomInRange,getRandomRgbColor:()=>J.getRandomRgbColor,getRangeMax:()=>X.getRangeMax,getRangeMin:()=>X.getRangeMin,getRangeValue:()=>X.getRangeValue,getSize:()=>ee.getSize,getStyleFromHsl:()=>J.getStyleFromHsl,getStyleFromRgb:()=>J.getStyleFromRgb,hMax:()=>r.hMax,hMin:()=>r.hMin,hPhase:()=>r.hPhase,half:()=>r.half,hasMatchMedia:()=>ee.hasMatchMedia,hslToRgb:()=>J.hslToRgb,hslaToRgba:()=>J.hslaToRgba,identity:()=>r.identity,initParticleNumericAnimationValue:()=>ee.initParticleNumericAnimationValue,inverseFactorNumerator:()=>r.inverseFactorNumerator,isArray:()=>te.isArray,isBoolean:()=>te.isBoolean,isFunction:()=>te.isFunction,isInArray:()=>ee.isInArray,isNull:()=>te.isNull,isNumber:()=>te.isNumber,isObject:()=>te.isObject,isPointInside:()=>ee.isPointInside,isString:()=>te.isString,itemFromArray:()=>ee.itemFromArray,itemFromSingleOrMultiple:()=>ee.itemFromSingleOrMultiple,lFactor:()=>r.lFactor,lMax:()=>r.lMax,lMin:()=>r.lMin,lengthOffset:()=>r.lengthOffset,loadMinIndex:()=>r.loadMinIndex,loadOptions:()=>Z.loadOptions,loadParticlesOptions:()=>Z.loadParticlesOptions,loadRandomFactor:()=>r.loadRandomFactor,manageListener:()=>ee.manageListener,memoize:()=>ee.memoize,midColorValue:()=>r.midColorValue,millisecondsToSeconds:()=>r.millisecondsToSeconds,minCount:()=>r.minCount,minFpsLimit:()=>r.minFpsLimit,minIndex:()=>r.minIndex,minLimit:()=>r.minLimit,minStrokeWidth:()=>r.minStrokeWidth,minVelocity:()=>r.minVelocity,minZ:()=>r.minZ,minimumSize:()=>r.minimumSize,mix:()=>X.mix,none:()=>r.none,one:()=>r.one,originPoint:()=>r.originPoint,paintBase:()=>K.paintBase,paintImage:()=>K.paintImage,parseAlpha:()=>X.parseAlpha,percentDenominator:()=>r.percentDenominator,phaseNumerator:()=>r.phaseNumerator,quarter:()=>r.quarter,randomColorValue:()=>r.randomColorValue,randomInRangeValue:()=>X.randomInRangeValue,rangeColorToHsl:()=>J.rangeColorToHsl,rangeColorToRgb:()=>J.rangeColorToRgb,removeDeleteCount:()=>r.removeDeleteCount,removeMinIndex:()=>r.removeMinIndex,resizeEvent:()=>r.resizeEvent,rgbMax:()=>r.rgbMax,rgbToHsl:()=>J.rgbToHsl,sMax:()=>r.sMax,sMin:()=>r.sMin,sNormalizedOffset:()=>
31r.sNormalizedOffset,safeDocument:()=>ee.safeDocument,safeIntersectionObserver:()=>ee.safeIntersectionObserver,safeMatchMedia:()=>ee.safeMatchMedia,safeMutationObserver:()=>ee.safeMutationObserver,setAnimationFunctions:()=>X.setAnimationFunctions,setLogger:()=>Q.setLogger,setRandom:()=>X.setRandom,setRangeValue:()=>X.setRangeValue,sextuple:()=>r.sextuple,spatialHashGridCellSize:()=>r.spatialHashGridCellSize,squareExp:()=>r.squareExp,stringToAlpha:()=>J.stringToAlpha,stringToRgb:()=>J.stringToRgb,threeQuarter:()=>r.threeQuarter,triple:()=>r.triple,tryCountIncrement:()=>r.tryCountIncrement,updateAnimation:()=>ee.updateAnimation,updateColor:()=>J.updateColor,updateColorValue:()=>J.updateColorValue,visibilityChangeEvent:()=>r.visibilityChangeEvent,zIndexFactorOffset:()=>r.zIndexFactorOffset});var r=n(917),o=n(934),i=n(921),a=n(920),s=n(936),l=n(926),c=n(923),u=n(937),d=n(938),f=n(927),p=n(939),h=n(925),m=n(940),g=n(941),y=n(928),v=n(942),b=n(931),_=n(924),w=n(943),S=n(946),E=n(948),k=n(945),T=n(949),x=n(944),O=n(950),C=n(947),P=n(966),A=n(967),I=n(953),R=n(955),j=n(964),M=n(965),D=n(956),N=n(957),L=n(958),F=n(959),B=n(962),z=n(960),U=n(963),H=n(968),V=n(970),q=n(969),G=n(971),W=n(972),$=n(951),Y=n(961),K=n(973),J=n(974),Q=n(932),X=n(919),Z=n(952),ee=n(918),te=n(922)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseRange:()=>a,Circle:()=>s,Rectangle:()=>l});var r=n(935),o=n(919),i=n(917);class a{position;type;constructor(e,t,n){this.position={x:e,y:t},this.type=n}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class s extends a{radius;constructor(e,t,n){super(e,t,r.RangeType.circle),this.radius=n}contains(e){return(0,o.checkDistance)(e,this.position,this.radius)}intersects(e){const t=this.position,n=e.position,o=this.radius,a=Math.abs(n.x-t.x),c=Math.abs(n.y-t.y);if(e instanceof s||e.type===r.RangeType.circle){return o+e.radius>Math.hypot(a,c)}if(e instanceof l||e.type===r.RangeType.rectangle){const t=e,{width:n,height:r}=t.size;return Math.pow(a-n,i.squareExp)+Math.pow(c-r,i.squareExp)<=o**i.squareExp||a<=o+n&&c<=o+r||a<=n||c<=r}return!1}reset(e,t,n){return this._resetPosition(e,t),this.radius=n,this}}class l extends a{size;constructor(e,t,n,o){super(e,t,r.RangeType.rectangle),this.size={height:o,width:n}}contains(e){const t=this.size.width,n=this.size.height,r=this.position;return e.x>=r.x&&e.x<=r.x+t&&e.y>=r.y&&e.y<=r.y+n}intersects(e){if(e instanceof s)return e.intersects(this);if(!(e instanceof l))return!1;const t=this.size.width,n=this.size.height,r=this.position,o=e.position,i=e.size,a=i.width,c=i.height;return o.x<r.x+t&&o.x+a>r.x&&o.y<r.y+n&&o.y+c>r.y}reset(e,t,n,r){return this._resetPosition(e,t),this.size.width=n,this.size.height=r,this}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{RangeType:()=>r}),function(e){e.circle="circle",e.rectangle="rectangle"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{RotateDirection:()=>r}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{LimitMode:()=>r}),function(e){e.delete="delete",e.wait="wait"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{OutMode:()=>r}),function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{AlterType:()=>r}),function(e){e.darken="darken",e.enlighten="enlighten"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{GradientType:()=>r}),function(e){e.linear="linear",e.radial="radial",e.random="random"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{ParticleOutType:()=>r}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(r||(r={}))},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{EasingType:()=>r}),function(e){e.easeInBack="ease-in-back",e.easeInBounce="ease-in-bounce",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInElastic="ease-in-elastic",e.easeInExpo="ease-in-expo",e.easeInGaussian="ease-in-gaussian",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInSigmoid="ease-in-sigmoid",e.easeInSine="ease-in-sine",e.easeInSmoothstep="ease-in-smoothstep",e.easeOutBack="ease-
31out-back",e.easeOutBounce="ease-out-bounce",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutElastic="ease-out-elastic",e.easeOutExpo="ease-out-expo",e.easeOutGaussian="ease-out-gaussian",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutSigmoid="ease-out-sigmoid",e.easeOutSine="ease-out-sine",e.easeOutSmoothstep="ease-out-smoothstep",e.easeInOutBack="ease-in-out-back",e.easeInOutBounce="ease-in-out-bounce",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutElastic="ease-in-out-elastic",e.easeInOutExpo="ease-in-out-expo",e.easeInOutGaussian="ease-in-out-gaussian",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutSigmoid="ease-in-out-sigmoid",e.easeInOutSine="ease-in-out-sine",e.easeInOutSmoothstep="ease-in-out-smoothstep"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnimatableColor:()=>a});var r=n(922),o=n(944),i=n(947);class a extends i.OptionsColor{animation;constructor(){super(),this.animation=new o.HslAnimation}static create(e,t){const n=new a;return n.load(e),void 0!==t&&((0,r.isString)(t)||(0,r.isArray)(t)?n.load({value:t}):n.load(t)),n}load(e){if(super.load(e),(0,r.isNull)(e))return;const t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HslAnimation:()=>a});var r=n(917),o=n(945),i=n(922);class a{h=new o.ColorAnimation(r.hMin,r.hMax);l=new o.ColorAnimation(r.lMin,r.lMax);s=new o.ColorAnimation(r.sMin,r.sMax);load(e){(0,i.isNull)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ColorAnimation:()=>a});var r=n(946),o=n(922),i=n(919);class a extends r.AnimationOptions{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,o.isNull)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,i.setRangeValue)(e.offset)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnimationOptions:()=>s,RangedAnimationOptions:()=>l});var r=n(923),o=n(928),i=n(922),a=n(919);class s{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,i.isNull)(e)||(void 0!==e.count&&(this.count=(0,a.setRangeValue)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,a.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,a.setRangeValue)(e.decay)),void 0!==e.delay&&(this.delay=(0,a.setRangeValue)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends s{mode;startValue;constructor(){super(),this.mode=r.AnimationMode.auto,this.startValue=o.StartValueType.random}load(e){super.load(e),(0,i.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OptionsColor:()=>o});var r=n(922);class o{value;constructor(){this.value=""}static create(e,t){const n=new o;return n.load(e),void 0!==t&&((0,r.isString)(t)||(0,r.isArray)(t)?n.load({value:t}):n.load(t)),n}load(e){(0,r.isNull)(e)||(0,r.isNull)(e.value)||(this.value=e.value)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Background:()=>i});var r=n(947),o=n(922);class i{color;image;opacity;position;repeat;size;constructor(){this.color=new r.OptionsColor,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=r.OptionsColor.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FullScreen:()=>o});var r=n(922);class o{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,r.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Options:()=>u});var r=n(918),o=n(922),i=n(948),a=n(949),s=n(951),l=n(952),c=n(919);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;#f;#p;constructor(e,t){this.#p=e,this.#f=t,this.autoPlay=!0,this.background=new i.Backgroun
31d,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.FullScreen,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.loadParticlesOptions)(this.#p,this.#f),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new s.ResizeEvent,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,o.isNull)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,r.executeOnSingleOrMultiple)(this.preset,e=>{this.#h(e)})),void 0!==e.palette&&(this.palette=e.palette,this.#m(this.palette)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,c.setRangeValue)(e.delay));const t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,c.setRangeValue)(e.duration));const n=e.fpsLimit;void 0!==n&&(this.fpsLimit=n),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);const i=e.fullScreen;(0,o.isBoolean)(i)?this.fullScreen.enable=i:this.fullScreen.load(i),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,r.deepExtend)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this.#p.plugins.forEach(t=>{t.loadOptions(this.#f,this,e)})}#m=e=>{const t=this.#p.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{palette:e}})};#h=e=>{this.load(this.#p.getPreset(e))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ResizeEvent:()=>o});var r=n(922);class o{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,r.isNull)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadOptions:()=>o,loadParticlesOptions:()=>i});var r=n(953);function o(e,...t){for(const n of t)e.load(n)}function i(e,t,...n){const i=new r.ParticlesOptions(e,t);return o(i,...n),i}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesOptions:()=>h});var r=n(918),o=n(922),i=n(943),a=n(954),s=n(955),l=n(956),c=n(964),u=n(966),d=n(968),f=n(971),p=n(972);class h{bounce;effect;groups;move;number;paint;palette;reduceDuplicates;shape;zIndex;#f;#p;constructor(e,t){this.#p=e,this.#f=t,this.bounce=new u.ParticlesBounce,this.effect=new a.Effect,this.groups={},this.move=new l.Move,this.number=new d.ParticlesNumber,this.paint=new c.Paint,this.paint.color=new i.AnimatableColor,this.paint.color.value="#fff",this.paint.fill=new s.Fill,this.paint.fill.enable=!0,this.reduceDuplicates=!1,this.shape=new f.Shape,this.zIndex=new p.ZIndex}load(e){if((0,o.isNull)(e))return;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 n=e.groups[t];void 0!==n&&(this.groups[t]=(0,r.deepExtend)(this.groups[t]??{},n))}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,o.isArray)(t)?this.paint=(0,r.executeOnSingleOrMultiple)(t,e=>{const t=new c.Paint;return t.load(e),t}):(0,o.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.#f){for(const t of this.#p.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this.#f,this,e);const t=this.#p.updaters.get(this.#f);if(t)for(const n of t)n.loadOptions&&n.loadOptions(this,e)}}#m=e=>{const t=this.#p.getPalette(e);if(!t)return;const n=t.colors,r=((0,o.isArray)(n)?n:[n]).flatMap(e=>{const t=e.fill,n=e.stroke,r=t?{color:{value:t.value},enable:t.enable,opacity:t.opacity}:void 0;return n?[{fill:r,stroke:{color:{value:n.value},opacity:n.opacity,width:n.width||0}}]:[{fill:r}]}),i=r.length>1?r:r[0]??{};this.load({paint:i,blend:{enable:!0,mode:t.blendMode}})}}},(e,t,n)=>{"use strict";
31n.r(t),n.d(t,{Effect:()=>i});var r=n(918),o=n(922);class i{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(e){if((0,o.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const n=t[e];n&&(this.options[e]=(0,r.deepExtend)(this.options[e]??{},n))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Fill:()=>a});var r=n(943),o=n(922),i=n(919);class a{color;enable;opacity;constructor(){this.enable=!0,this.opacity=1}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=r.AnimatableColor.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,i.setRangeValue)(e.opacity)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Move:()=>f});var r=n(920),o=n(922),i=n(957),a=n(958),s=n(959),l=n(960),c=n(962),u=n(963),d=n(919);class f{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new i.MoveAngle,this.center=new a.MoveCenter,this.decay=0,this.distance={},this.direction=r.MoveDirection.none,this.drift=0,this.enable=!1,this.gravity=new s.MoveGravity,this.path=new l.MovePath,this.outModes=new c.OutModes,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.Spin,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,o.isNull)(e))return;this.angle.load((0,o.isNumber)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,d.setRangeValue)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,o.isNumber)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,d.setRangeValue)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;void 0!==t&&((0,o.isObject)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,d.setRangeValue)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MoveAngle:()=>i});var r=n(922),o=n(919);class i{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,r.isNull)(e)||(void 0!==e.offset&&(this.offset=(0,o.setRangeValue)(e.offset)),void 0!==e.value&&(this.value=(0,o.setRangeValue)(e.value)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MoveCenter:()=>i});var r=n(927),o=n(922);class i{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=r.PixelMode.percent,this.radius=0}load(e){(0,o.isNull)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MoveGravity:()=>i});var r=n(922),o=n(919);class i{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,r.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,o.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,o.setRangeValue)(e.maxSpeed)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MovePath:()=>a});var r=n(961),o=n(918),i=n(922);class a{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new r.ValueWithRandom,this.enable=!1,this.options={}}load(e){(0,i.isNull)(e)||(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,o.deepExtend)(this.options,e.options)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnimationValueWithRandom:()=>s,RangedAnimationValueWithRandom:()=>l,ValueWithRandom:()=>a});var r=n(946),o=n(922),i=n(919);class a{value;constructor(){this.value=0}load(e){(0,o.isNull)(e)||(0,o.isNull)(e.value)||(this.value=(0,i.setRangeValue)(e.value))}}class s extends a{animation=new r.AnimationOptions;load(e){if(super.load(e),(0,o.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends s{animation;constructor(){super(),this.animation=new r.RangedAnimationOptions}load(e){super.load(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OutModes:()=>i});var r=n(938),o=n(922);class i{bottom;default;left;right;top;constructor(){this.default=r.OutMode.out}load(e){(0,o.isNull)(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,n)=>{"use strict";n.r(t),n.d(t,{Spin:()=>a});var r=n(918),o=n(922),i=n(919);class a{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){(0,o.isNull)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,i.setRangeValue)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,r.deepExtend)({},e.position)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Paint:()=>s});var r=n(943),o=n(955),i=n(965),a=n(922);class s{color;fill;stroke;load(e){(0,a.isNull)(e)||(void 0!==e.color&&(this.color=r.AnimatableColor.create(this.color,e.color)),void 0!==e.fill&&(this.fill??=new o.Fill,this.fill.load(e.fill)),void 0!==e.stroke&&(this.stroke??=new i.Stroke,this.stroke.load(e.stroke)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Stroke:()=>a});var r=n(943),o=n(922),i=n(919);class a{color;opacity;width;constructor(){this.width=0}load(e){(0,o.isNull)(e)||(void 0!==e.color&&(this.color=r.AnimatableColor.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,i.setRangeValue)(e.width)),void 0!==e.opacity&&(this.opacity=(0,i.setRangeValue)(e.opacity)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesBounce:()=>i});var r=n(967),o=n(922);class i{horizontal;vertical;constructor(){this.horizontal=new r.ParticlesBounceFactor,this.vertical=new r.ParticlesBounceFactor}load(e){(0,o.isNull)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesBounceFactor:()=>o});var r=n(961);class o extends r.ValueWithRandom{constructor(){super(),this.value=1}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesNumber:()=>a});var r=n(969),o=n(970),i=n(922);class a{density;limit;value;constructor(){this.density=new r.ParticlesDensity,this.limit=new o.ParticlesNumberLimit,this.value=0}load(e){(0,i.isNull)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesDensity:()=>o});var r=n(922);class o{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,r.isNull)(e))return;void 0!==e.enable&&(this.enable=e.enable);const t=e.width;void 0!==t&&(this.width=t);const n=e.height;void 0!==n&&(this.height=n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesNumberLimit:()=>i});var r=n(937),o=n(922);class i{mode;value;constructor(){this.mode=r.LimitMode.delete,this.value=0}load(e){(0,o.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Shape:()=>i});var r=n(918),o=n(922);class i{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(e){if((0,o.isNull)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const n=t[e];n&&(this.options[e]=(0,r.deepExtend)(this.options[e]??{},n))}
31void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ZIndex:()=>i});var r=n(961),o=n(922);class i extends r.ValueWithRandom{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,o.isNull)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{clear:()=>a,drawAfterEffect:()=>l,drawBeforeEffect:()=>c,drawParticle:()=>s,drawParticlePlugin:()=>p,drawShape:()=>u,drawShapeAfterDraw:()=>d,drawShapeBeforeDraw:()=>f,paintBase:()=>o,paintImage:()=>i});var r=n(917);function o(e,t,n){e.fillStyle=n??"rgba(0,0,0,0)",e.fillRect(r.originPoint.x,r.originPoint.y,t.width,t.height)}function i(e,t,n,o){if(!n)return;const i=e.globalAlpha;e.globalAlpha=o,e.drawImage(n,r.originPoint.x,r.originPoint.y,t.width,t.height),e.globalAlpha=i}function a(e,t){e.clearRect(r.originPoint.x,r.originPoint.y,t.width,t.height)}function s(e){const{container:t,context:n,particle:o,delta:i,colorStyles:a,radius:s,opacity:p,transform:h}=e,{effectDrawers:m,shapeDrawers:g}=t,y=o.getPosition(),v=o.getTransformData(h),b=r.defaultZoom,_={x:y.x,y:y.y};n.setTransform(v.a,v.b,v.c,v.d,y.x,y.y),a.fill&&(n.fillStyle=a.fill);const w=!!o.fillEnabled,S=o.strokeWidth??r.minStrokeWidth;n.lineWidth=S,a.stroke&&(n.strokeStyle=a.stroke);const E={context:n,particle:o,radius:s,drawRadius:s*b,opacity:p,delta:i,pixelRatio:t.retina.pixelRatio,fill:w,stroke:S>r.minStrokeWidth,transformData:v,position:{...y},drawPosition:_,drawScale:b};for(const e of t.plugins)e.drawParticleTransform?.(E);const k=o.effect?m.get(o.effect):void 0,T=o.shape?g.get(o.shape):void 0;c(k,E),f(T,E),u(T,E),d(T,E),l(k,E),n.resetTransform()}function l(e,t){if(!e?.drawAfter)return;const{particle:n}=t;n.effect&&e.drawAfter(t)}function c(e,t){if(!e?.drawBefore)return;const{particle:n}=t;n.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;const{context:n,fill:r,particle:o,stroke:i}=t;o.shape&&(n.beginPath(),e.draw(t),o.shapeClose&&n.closePath(),r&&n.fill(),i&&n.stroke())}function d(e,t){if(!e?.afterDraw)return;const{particle:n}=t;n.shape&&e.afterDraw(t)}function f(e,t){if(!e?.beforeDraw)return;const{particle:n}=t;n.shape&&e.beforeDraw(t)}function p(e,t,n,r){t.drawParticle&&t.drawParticle(e,n,r)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{alterHsl:()=>L,colorMix:()=>P,colorToHsl:()=>v,colorToRgb:()=>y,getHslAnimationFromHsl:()=>j,getHslFromAnimation:()=>R,getLinkColor:()=>A,getLinkRandomColor:()=>I,getRandomRgbColor:()=>T,getStyleFromHsl:()=>C,getStyleFromRgb:()=>x,hslToRgb:()=>E,hslaToRgba:()=>k,rangeColorToHsl:()=>b,rangeColorToRgb:()=>g,rgbToHsl:()=>_,stringToAlpha:()=>w,stringToRgb:()=>S,updateColor:()=>N,updateColorValue:()=>D});var r=n(919),o=n(917),i=n(922),a=n(939),s=n(924),l=n(918);const c=new Map,u=1e3,d=0,f=2,p=2;function h(e,t){let n=c.get(e);if(!n){if(n=t(),c.size>=u){[...c.keys()].slice(d,u*o.half).forEach(e=>c.delete(e))}c.set(e,n)}return n}function m(e,t){if(t)for(const n of e.colorManagers.values())if(n.accepts(t))return n.parseString(t)}function g(e,t,n,r=!0){if(!t)return;const o=(0,i.isString)(t)?{value:t}:t;if((0,i.isString)(o.value))return y(e,o.value,n,r);if((0,i.isArray)(o.value)){const t=(0,l.itemFromArray)(o.value,n,r);if(!t)return;return g(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleRangeColor(o);if(e)return e}}function y(e,t,n,r=!0){if(!t)return;const a=(0,i.isString)(t)?{value:t}:t;if((0,i.isString)(a.value))return a.value===o.randomColorValue?T():S(e,a.value);if((0,i.isArray)(a.value)){const t=(0,l.itemFromArray)(a.value,n,r);if(!t)return;return y(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function v(e,t,n,r=!0){const o=y(e,t,n,r);return o?_(o):void 0}function b(e,t,n,r=!0){const o=g(e,t,n,r);return o?_(o):void 0}function _(e){const t=e.r/o.rgbMax,n=e.g/o.rgbMax,r=e.b/o.rgbMax,i=Math.max(t,n,r),a=Math.min(t,n,r),s={h:o.hMin,l:(i+a)*o.half,s:o.sMin};return i!==a&&(s.s=s.l<o.half?(i-a)/(i+a):(i-a)/(o.double-i-a),s.h=t===i?(n-r)/(i-a):n===i?o.double+(r-t)/(i-a):o.double*o.double+(t-n)/(i-a)),s.l*=o.lMax,s.s*=o.sMax,s.h*=o.hPhase,s.h<o.hMin&&(s.h+=o.hMax),s.h>=o.hMax&&(s.h-=o.hMax),s}function w(e,t){return m(e,t)?.a}function S(e,t){return m(e,t)}function E(e){const t=(e.h%o.hMax+o.hMax)%o.hMax,n=Math.max(o.sMin,Math.min(o.sMax,e.s)),r=Math.max(o.lMin,Math.min(o.lMax,e.l)),i=t/o.hMax,a=n/o.sMax,s=r/o.lMax;if(n===o.sMin){const e=Math.round(s*o.rgbMax);return{r:e,g:e,b:e}}
31const l=(e,t,n)=>{if(n<0&&n++,n>1&&n--,n*o.sextuple<1)return e+(t-e)*o.sextuple*n;if(n*o.double<1)return t;if(n*o.triple<1*o.double){return e+(t-e)*(o.double/o.triple-n)*o.sextuple}return e},c=s<o.half?s*(o.sNormalizedOffset+a):s+a-s*a,u=o.double*s-c,d=o.phaseNumerator/o.triple,f=Math.min(o.rgbMax,o.rgbMax*l(u,c,i+d)),p=Math.min(o.rgbMax,o.rgbMax*l(u,c,i)),h=Math.min(o.rgbMax,o.rgbMax*l(u,c,i-d));return{r:Math.round(f),g:Math.round(p),b:Math.round(h)}}function k(e){const t=E(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function T(e){const t=e??o.defaultRgbMin,n=o.rgbMax+o.identity,i=()=>Math.floor((0,r.getRandomInRange)(t,n));return{b:i(),g:i(),r:i()}}function x(e,t,n){const r=n??o.defaultOpacity;return h(`rgb-${e.r.toFixed(f)}-${e.g.toFixed(f)}-${e.b.toFixed(f)}-${t?"hdr":"sdr"}-${r.toString()}`,()=>t?O(e,n):function(e,t){return`rgba(${e.r.toString()}, ${e.g.toString()}, ${e.b.toString()}, ${(t??o.defaultOpacity).toString()})`}(e,n))}function O(e,t){return`color(display-p3 ${(e.r/o.rgbMax).toString()} ${(e.g/o.rgbMax).toString()} ${(e.b/o.rgbMax).toString()} / ${(t??o.defaultOpacity).toString()})`}function C(e,t,n){const r=n??o.defaultOpacity;return h(`hsl-${e.h.toFixed(p)}-${e.s.toFixed(p)}-${e.l.toFixed(p)}-${t?"hdr":"sdr"}-${r.toString()}`,()=>t?function(e,t){return O(E(e),t)}(e,n):function(e,t){return`hsla(${e.h.toString()}, ${e.s.toString()}%, ${e.l.toString()}%, ${(t??o.defaultOpacity).toString()})`}(e,n))}function P(e,t,n,o){let i=e,a=t;return"r"in i||(i=E(e)),"r"in a||(a=E(t)),{b:(0,r.mix)(i.b,a.b,n,o),g:(0,r.mix)(i.g,a.g,n,o),r:(0,r.mix)(i.r,a.r,n,o)}}function A(e,t,n){if(n===o.randomColorValue)return T();if(n!==o.midColorValue)return n;{const n=e.getFillColor()??e.getStrokeColor(),r=t?.getFillColor()??t?.getStrokeColor();if(n&&r&&t)return P(n,r,e.getRadius(),t.getRadius());{const e=n??r;if(e)return E(e)}}}function I(e,t,n,r){const a=(0,i.isString)(t)?t:t.value;return a===o.randomColorValue?r?g(e,{value:a}):n?o.randomColorValue:o.midColorValue:a===o.midColorValue?o.midColorValue:g(e,{value:a})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function j(e,t,n){const r={h:{enable:!1,value:e.h,min:o.hMin,max:o.hMax},s:{enable:!1,value:e.s,min:o.sMin,max:o.sMax},l:{enable:!1,value:e.l,min:o.lMin,max:o.lMax}};return t&&(M(r.h,t.h,n),M(r.s,t.s,n),M(r.l,t.l,n)),r}function M(e,t,n){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,r.getRangeValue)(t.speed)/o.percentDenominator*n,e.decay=o.decayOffset-(0,r.getRangeValue)(t.decay),e.status=s.AnimationStatus.increasing,e.loops=o.defaultLoops,e.maxLoops=(0,r.getRangeValue)(t.count),e.time=o.defaultTime,e.delayTime=(0,r.getRangeValue)(t.delay)*o.millisecondsToSeconds,t.sync||(e.velocity*=(0,r.getRandom)(),e.value*=(0,r.getRandom)()),e.initialValue=e.value,e.offset=(0,r.setRangeValue)(t.offset)):e.velocity=o.defaultVelocity}function D(e,t,n){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+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const o=e.offset?(0,r.randomInRangeValue)(e.offset):0,i=(e.velocity??0)*n.factor+3.6*o,a=e.decay??1,l=e.max,c=e.min;t&&e.status!==s.AnimationStatus.increasing?(e.value-=i,e.value<c&&(e.loops??=0,e.loops++,e.status=s.AnimationStatus.increasing)):(e.value+=i,e.value>l&&(e.loops??=0,e.loops++,t?e.status=s.AnimationStatus.decreasing:e.value-=l)),e.velocity&&1!==a&&(e.velocity*=a),e.value=(0,r.clamp)(e.value,c,l)}function N(e,t){if(!e)return;const{h:n,s:r,l:o}=e;D(n,!1,t),D(r,!0,t),D(o,!0,t)}function L(e,t,n){return{h:e.h,s:e.s,l:e.l+(t===a.AlterType.darken?-o.lFactor:o.lFactor)*n}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(913),o=n(396),i=n(914),a=e=>{let{className:t,id:n,options:a,particlesLoaded:s,style:l,url:c}=e,{loaded:u}=(0,r.useParticlesProvider)(),d=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{if(!u)return;let e=n??"tsparticles";return i.tsParticles.load({id:e,url:c,options:a}).then(t=>{if(!t?.destroyed){if(!document.getElementById(e))return void t?.destroy();d.current=t,s?.(t)}}),()=>{d.current?.destroy(),d.current=void 0}},[n,u,a,s,c]),(0,o.jsx)("div",{id:n??"tsparticles",className:t,style:l})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadConfettiPreset:()=>m});var r=n(977),o=n(1009),i=n(1011),a=n(1024),s=n(1030),l=n(1034),c=n(1040),u=n(1044),d=n(1047),f=n(1052),p=n(1057);const h="confetti";async function m(e){await e.pluginManager.register(async e=>{await Promise.all([(0,r.loadBasic)(e),(0,o.loadConfettiPalette)(e),(0,i.loadEmittersPluginSimple)(e),(0,u.loadSquareShape)(e),(0,s.loadMotionPlugin)(e),(0,f.loadWobbleUpdater)(e),(0,l.loadRollUpdater)(e),(0,c.loadRotateUpdater)(e),(0,d.loadTiltUpdater)(e),(0,a.loadLifeUpdater)(e)]),e.pluginManager.addPreset(h,p.options,!1)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadBasic:()=>p});var r=n(978),o=n(981),i=n(984),a=n(986),s=n(988),l=n(990),c=n(994),u=n(1001),d=n(1003),f=n(1005);async function p(e){e.checkVersion("4.1.3"),await e.pluginManager.register(async e=>{await Promise.all([(0,r.loadBlendPlugin)(e),(0,i.loadHexColorPlugin)(e),(0,a.loadHslColorPlugin)(e),(0,d.loadRgbColorPlugin)(e),(0,s.loadMovePlugin)(e),(0,o.loadCircleShape)(e),(0,u.loadPaintUpdater)(e),(0,l.loadOpacityUpdater)(e),(0,c.loadOutModesUpdater)(e),(0,f.loadSizeUpdater)(e)])})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadBlendPlugin:()=>o});var r=n(979);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new r.BlendPlugin)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BlendPlugin:()=>o});var r=n(980);class o{id="blend";async getPlugin(e){const{BlendPluginInstance:t}=await n.e("vendors").then(n.bind(n,2799));return new t(e)}loadOptions(e,t,n){if(!this.needsPlugin(t)&&!this.needsPlugin(n))return;let o=t.blend;o?.load||(t.blend=o=new r.Blend),o.load(n?.blend)}loadParticlesOptions(e,t,n){t.blend??=new r.Blend,t.blend.load(n?.blend)}needsPlugin(e){return!!e?.blend?.enable||!!e?.particles?.blend?.enable}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Blend:()=>o});var r=n(914);class o{enable;mode;constructor(){this.mode="destination-out",this.enable=!1}load(e){(0,r.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadCircleShape:()=>o});var r=n(982);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>
31{e.pluginManager.addShape(["circle"],()=>Promise.resolve(new r.CircleDrawer))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CircleDrawer:()=>i});var r=n(914),o=n(983);class i{draw(e){(0,o.drawCircle)(e)}getSidesCount(){return 12}particleInit(e,t){const n=t.shapeData,o=n?.angle??{max:360,min:0};t.circleRange=(0,r.isObject)(o)?{min:(0,r.degToRad)(o.min),max:(0,r.degToRad)(o.max)}:{min:0,max:(0,r.degToRad)(o)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{drawCircle:()=>i});var r=n(914);const o=0;function i(e){const{context:t,particle:n,radius:i}=e;n.circleRange??={min:o,max:r.doublePI};const a=n.circleRange;t.arc(r.originPoint.x,r.originPoint.y,i,a.min,a.max,!1)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadHexColorPlugin:()=>o});var r=n(985);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hex",new r.HexColorManager)})}},(e,t,n)=>{"use strict";var r;n.r(t),n.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"}(r||(r={}));const o=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=/^#?([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(o,(e,t,n,r,o)=>t+t+n+n+r+r+(void 0===o?"":o+o)),n=i.exec(t);return n?{a:n[r.a]?Number.parseInt(n[r.a],16)/255:1,b:Number.parseInt(n[r.b]??"0",16),g:Number.parseInt(n[r.g]??"0",16),r:Number.parseInt(n[r.r]??"0",16)}:void 0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadHslColorPlugin:()=>o});var r=n(987);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("hsl",new r.HslColorManager)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HslColorManager:()=>a});var r,o=n(914);!function(e){e[e.h=1]="h",e[e.s=2]="s",e[e.l=3]="l",e[e.a=5]="a"}(r||(r={}));const i=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class a{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,o.hslToRgb)(t)}handleRangeColor(e){const t=e.value.hsl??e.value;if("h"in t&&"s"in t&&"l"in t)return(0,o.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=i.exec(e);return t?(0,o.hslaToRgba)({a:t.length>4?(0,o.parseAlpha)(t[r.a]):1,h:Number.parseInt(t[r.h]??"0",10),l:Number.parseInt(t[r.l]??"0",10),s:Number.parseInt(t[r.s]??"0",10)}):void 0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ensureBaseMoverLoaded:()=>a,loadMovePlugin:()=>i});var r=n(914),o=n(989);async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const t=e.pluginManager;t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,t.addPathGenerator=(e,n)=>{t.initializers.pathGenerators??=new Map,t.initializers.pathGenerators.set(e,n)},t.getPathGenerators=async(e,n=!1)=>(t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,(0,r.getItemMapFromInitializer)(e,t.pathGenerators,t.initializers.pathGenerators,n)),e.pluginManager.addPlugin(new o.MovePlugin(e.pluginManager))})}function a(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MovePlugin:()=>r});class r{id="move";#p;constructor(e){this.#p=e}async getPlugin(e){const{MovePluginInstance:t}=await n.e("vendors").then(n.bind(n,2800));return new t(this.#p,e)}loadOptions(){}needsPlugin(){return!0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadOpacityUpdater:()=>o});var r=n(991);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("opacity",e=>Promise.resolve(new r.OpacityUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpacityUpdater:()=>i});var r=n(914),o=n(992);class i{#f;constructor(e){this.#f=e}init(e){const t=e.options.opacity;if(!t)return;e.opacity=(0,r.initParticleNumericAnimationValue)(t,1);const n=t.animation;n.enable&&(e.opacity.velocity=(0,r.getRangeValue)(n.speed)/r.percentDenominator*this.#f.retina.reduceFactor,n.sync||(e.opacity.velocity
31*=(0,r.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){e.opacity??=new o.Opacity;for(const n of t)e.opacity.load(n?.opacity)}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){this.isEnabled(e)&&e.opacity&&e.options.opacity&&(0,r.updateAnimation)(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Opacity:()=>i});var r=n(914),o=n(993);class i extends r.RangedAnimationValueWithRandom{animation;constructor(){super(),this.animation=new o.OpacityAnimation,this.value=1}load(e){if((0,r.isNull)(e))return;super.load(e);const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpacityAnimation:()=>o});var r=n(914);class o extends r.RangedAnimationOptions{destroy;constructor(){super(),this.destroy=r.DestroyType.none,this.speed=2}load(e){super.load(e),(0,r.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadOutModesUpdater:()=>o});var r=n(995);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("outModes",e=>Promise.resolve(new r.OutOfCanvasUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OutOfCanvasUpdater:()=>l});var r=n(914),o=n(996),i=n(998),a=n(999),s=n(1e3);class l{updaters;#f;constructor(e){this.#f=e,this.updaters=new Map}init(e){this.#y(e,r.OutMode.bounce,e=>new o.BounceOutMode(e)),this.#y(e,r.OutMode.out,e=>new s.OutOutMode(e)),this.#y(e,r.OutMode.destroy,e=>new i.DestroyOutMode(e)),this.#y(e,r.OutMode.none,e=>new a.NoneOutMode(e))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){const n=e.options.move.outModes;e.justWarped=!1,this.#v(e,t,n.bottom??n.default,r.OutModeDirection.bottom),this.#v(e,t,n.left??n.default,r.OutModeDirection.left),this.#v(e,t,n.right??n.default,r.OutModeDirection.right),this.#v(e,t,n.top??n.default,r.OutModeDirection.top)}#y=(e,t,n)=>{const r=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)(r,t)&&this.updaters.set(t,n(this.#f))};#v=(e,t,n,r)=>{for(const o of this.updaters.values())o.update(e,r,t,n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BounceOutMode:()=>i});var r=n(914),o=n(997);class i{modes;#f;#b;constructor(e){this.#f=e,this.modes=[r.OutMode.bounce,r.OutMode.split],this.#b=e.plugins.filter(e=>void 0!==e.particleBounce)}update(e,t,n,i){if(!this.modes.includes(i))return;const a=this.#f;let s=!1;for(const r of this.#b)if(s=r.particleBounce?.(e,n,t)??!1,s)break;if(s)return;const l=e.getPosition(),c=e.offset,u=e.getRadius(),d=(0,r.calculateBounds)(l,u),f=a.canvas.size,p=!e.isInsideCanvasForOutMode(i,t);(0,o.bounceHorizontal)({particle:e,outMode:i,direction:t,bounds:d,canvasSize:f,offset:c,outOfCanvas:p,size:u}),(0,o.bounceVertical)({particle:e,outMode:i,direction:t,bounds:d,canvasSize:f,offset:c,outOfCanvas:p,size:u})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bounceHorizontal:()=>a,bounceVertical:()=>s});var r=n(914);const o=0,i=0;function a(e){if(e.outMode!==r.OutMode.bounce&&e.outMode!==r.OutMode.split||e.direction!==r.OutModeDirection.left&&e.direction!==r.OutModeDirection.right)return;e.bounds.right<i&&e.direction===r.OutModeDirection.left?e.particle.position.x=e.size+e.offset.x:e.bounds.left>e.canvasSize.width&&e.direction===r.OutModeDirection.right&&(e.particle.position.x=e.canvasSize.width-e.size-e.offset.x);const t=e.particle.velocity.x;let n=!1;if(e.outOfCanvas&&(e.direction===r.OutModeDirection.right&&t>o||e.direction===r.OutModeDirection.left&&t<o)){const t=(0,r.getRangeValue)(e.particle.options.bounce.horizontal.value);e.particle.velocity.x*=-t,n=!0}if(!n)return;const a=e.offset.x+e.size;e.outOfCanvas&&e.direction===r.OutModeDirection.right?e.particle.position.x=e.canvasSize.width-a:e.outOfCanvas&&e.direction===r.OutModeDirection.left&&(e.particle.position.x=a),e.outMode===r.OutMode.split&&e.particle.destroy()}function s(e){if(e.outMode!==r.OutMode.bounce&&e.outMode!==r.OutMode.split||e.direction!==r.OutModeDirection.bottom&&e.direction!==r.OutModeDirection.top)return;
vendor: 5,064 bytes, line 31
31e.bounds.bottom<i&&e.direction===r.OutModeDirection.top?e.particle.position.y=e.size+e.offset.y:e.bounds.top>e.canvasSize.height&&e.direction===r.OutModeDirection.bottom&&(e.particle.position.y=e.canvasSize.height-e.size-e.offset.y);const t=e.particle.velocity.y;let n=!1;if(e.outOfCanvas&&(e.direction===r.OutModeDirection.bottom&&t>o||e.direction===r.OutModeDirection.top&&t<o)){const t=(0,r.getRangeValue)(e.particle.options.bounce.vertical.value);e.particle.velocity.y*=-t,n=!0}if(!n)return;const a=e.offset.y+e.size;e.outOfCanvas&&e.direction===r.OutModeDirection.bottom?e.particle.position.y=e.canvasSize.height-a:e.outOfCanvas&&e.direction===r.OutModeDirection.top&&(e.particle.position.y=a),e.outMode===r.OutMode.split&&e.particle.destroy()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DestroyOutMode:()=>o});var r=n(914);class o{modes;constructor(e){this.modes=[r.OutMode.destroy]}update(e,t,n,o){if(this.modes.includes(o)){switch(e.outType){case r.ParticleOutType.normal:case r.ParticleOutType.outside:if(e.isInsideCanvasForOutMode(o,t))return;break;case r.ParticleOutType.inside:{const{dx:t,dy:n}=(0,r.getDistances)(e.position,e.moveCenter),{x:o,y:i}=e.velocity;if(o<0&&t>e.moveCenter.radius||i<0&&n>e.moveCenter.radius||o>=0&&t<-e.moveCenter.radius||i>=0&&n<-e.moveCenter.radius)return;break}}e.destroy(!0)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{NoneOutMode:()=>o});var r=n(914);class o{modes;#f;constructor(e){this.#f=e,this.modes=[r.OutMode.none]}update(e,t,n,o){if(!this.modes.includes(o))return;if((e.options.move.distance.horizontal&&(t===r.OutModeDirection.left||t===r.OutModeDirection.right))??(e.options.move.distance.vertical&&(t===r.OutModeDirection.top||t===r.OutModeDirection.bottom)))return;const i=e.options.move.gravity,a=this.#f,s=a.canvas.size,l=e.getRadius();if(i.enable){const n=e.position;(!i.inverse&&n.y>s.height+l&&t===r.OutModeDirection.bottom||i.inverse&&n.y<-l&&t===r.OutModeDirection.top)&&e.destroy()}else{if(e.velocity.y>0&&e.position.y<=s.height+l||e.velocity.y<0&&e.position.y>=-l||e.velocity.x>0&&e.position.x<=s.width+l||e.velocity.x<0&&e.position.x>=-l)return;(0,r.isPointInside)(e.position,a.canvas.size,r.originPoint,l,t)||e.destroy()}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OutOutMode:()=>i});var r=n(914);const o=r.Vector.origin;class i{modes;#f;constructor(e){this.#f=e,this.modes=[r.OutMode.out]}update(e,t,n,i){if(!this.modes.includes(i))return;const a=this.#f;switch(e.outType){case r.ParticleOutType.inside:{const{x:t,y:n}=e.velocity;o.setTo(r.originPoint),o.length=e.moveCenter.radius,o.angle=e.velocity.angle+Math.PI,o.addTo(e.moveCenter);const{dx:i,dy:s}=(0,r.getDistances)(e.position,o);if(t<=0&&i>=0||n<=0&&s>=0||t>=0&&i<=0||n>=0&&s<=0)return;e.position.x=Math.floor((0,r.randomInRangeValue)({min:0,max:a.canvas.size.width})),e.position.y=Math.floor((0,r.randomInRangeValue)({min:0,max:a.canvas.size.height}));const{dx:l,dy:c}=(0,r.getDistances)(e.position,e.moveCenter);e.direction=Math.atan2(-c,-l),e.velocity.angle=e.direction,e.justWarped=!0;break}default:if(e.isInsideCanvasForOutMode(i,t))return;switch(e.outType){case r.ParticleOutType.outside:{e.position.x=Math.floor((0,r.randomInRangeValue)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor((0,r.randomInRangeValue)({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;const{dx:t,dy:n}=(0,r.getDistances)(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(n,t),e.velocity.angle=e.direction),e.justWarped=!0;break}case r.ParticleOutType.normal:{const n=e.options.move.warp,o=a.canvas.size,i={bottom:o.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:o.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},s=e.getRadius(),l=(0,r.calculateBounds)(e.position,s);t===r.OutModeDirection.right&&l.left>o.width+e.offset.x?(e.position.x=i.left,e.initialPosition.x=e.position.x,n||(e.position.y=(0,r.getRandom)()*o.height,e.initialPosition.y=e.position.y),e.justWarped=!0):t===r.OutModeDirection.left&&l.right<-e.offset.x&&(e.position.x=i.right,e.initialPosition.x=e.position.x,n||(e.position.y=(0,r.getRandom)()*o.height,e.initialPosition.y=e.position.y),e.justWarped=!0),t===r.OutModeDirection.bottom&&l.top>o.height+e.offset.y?(n||(e.position.x=(0,r.getRandom)()*o.width,e.initialPosition.x=e.position.x),e.position.y=i.top,e.initialPosition.y=e.position.y,e.justWarped=!0):t===r.OutModeDirection.top&&l.bottom<-e.offset.y&&(n||(e.position.x=(0,r.getRandom)()*o.width,e.initialPosition.x=e.position.x),e.position.y=i.bottom,e.initialPosition.y=e.position.y,e.justWarped=!0);break}}}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadPaintUpdater:()=>o});var r=n(1002);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("paint",t=>Promise.resolve(new r.PaintUpdater(e.pluginManager,t)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{PaintUpdater:()=>o});var r=n(914);class o{#f;#p;constructor(e,t){this.#f=t,this.#p=e}init(e){const t=this.#f,n=e.options,o=(0,r.itemFromSingleOrMultiple)(n.paint,e.i
31d,n.reduceDuplicates),i=o?.color,a=i??void 0,s=o?.fill,l=o?.stroke;if(s){const n=r.AnimatableColor.create(void 0===a?void 0:r.AnimatableColor.create(void 0,a),s.color);e.fillEnabled=s.enable,e.fillOpacity=(0,r.getRangeValue)(s.opacity),e.fillAnimation=n.animation;const o=(0,r.rangeColorToHsl)(this.#p,n);o&&(e.fillColor=(0,r.getHslAnimationFromHsl)(o,e.fillAnimation,t.retina.reduceFactor))}else e.fillEnabled=!1,e.fillAnimation=void 0,e.fillColor=void 0,e.fillOpacity=1;if(l){const n=r.AnimatableColor.create(void 0===a?void 0:r.AnimatableColor.create(void 0,a),l.color);e.strokeWidth=(0,r.getRangeValue)(l.width)*t.retina.pixelRatio,e.strokeOpacity=(0,r.getRangeValue)(l.opacity??1),e.strokeAnimation=n.animation;const o=(0,r.rangeColorToHsl)(this.#p,n)??e.getFillColor();o&&(e.strokeColor=(0,r.getHslAnimationFromHsl)(o,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:n,strokeAnimation:r,strokeColor:o}=e,i=!!t&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable),a=!!r&&(void 0!==o?.h.value&&o.h.enable||void 0!==o?.s.value&&o.s.enable||void 0!==o?.l.value&&o.l.enable);return!e.destroyed&&!e.spawning&&(i||a)}update(e,t){this.isEnabled(e)&&((0,r.updateColor)(e.fillColor,t),(0,r.updateColor)(e.strokeColor,t))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadRgbColorPlugin:()=>o});var r=n(1004);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addColorManager("rgb",new r.RgbColorManager)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RgbColorManager:()=>a});var r,o=n(914);!function(e){e[e.r=1]="r",e[e.g=2]="g",e[e.b=3]="b",e[e.a=5]="a"}(r||(r={}));const i=/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,o.getRangeValue)(t.r),g:(0,o.getRangeValue)(t.g),b:(0,o.getRangeValue)(t.b)}}parseString(e){if(!this.accepts(e))return;const t=i.exec(e);return t?{a:t.length>4?(0,o.parseAlpha)(t[r.a]):1,b:parseInt(t[r.b]??"0",10),g:parseInt(t[r.g]??"0",10),r:parseInt(t[r.r]??"0",10)}:void 0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadSizeUpdater:()=>o});var r=n(1006);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",e=>Promise.resolve(new r.SizeUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SizeUpdater:()=>i});var r=n(914),o=n(1007);class i{#f;constructor(e){this.#f=e}init(e){const t=this.#f,n=e.options.size;if(!n)return;const o=n.animation;o.enable&&(e.size.velocity=e.retina.sizeAnimationSpeed/r.percentDenominator*t.retina.reduceFactor,o.sync||(e.size.velocity*=(0,r.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){e.size??=new o.Size;for(const n of t)e.size.load(n?.size)}preInit(e){const t=this.#f.retina.pixelRatio,n=e.options.size;n&&(e.size=(0,r.initParticleNumericAnimationValue)(n,t),e.retina.sizeAnimationSpeed=(0,r.getRangeValue)(n.animation.speed)*t)}reset(e){e.size.time=0,e.size.loops=0}update(e,t){this.isEnabled(e)&&e.options.size&&(0,r.updateAnimation)(e,e.size,!0,e.options.size.animation.destroy,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Size:()=>i});var r=n(914),o=n(1008);class i extends r.RangedAnimationValueWithRandom{animation;constructor(){super(),this.animation=new o.SizeAnimation,this.value=3}load(e){if(super.load(e),(0,r.isNull)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SizeAnimation:()=>o});var r=n(914);class o extends r.RangedAnimationOptions{destroy;constructor(){super(),this.destroy=r.DestroyType.none,this.speed=5}load(e){super.load(e),(0,r.isNull)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadConfettiPalette:()=>i});var r=n(1010);const o="confetti";async function i(e){await e.pluginManager.register(e=>{e.pluginManager.addPalette(o,r.options)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{options:()=>r});const r={name:"Confetti",background:"#1a1a2e",blendMode:"source-over",colors:{fill:{enable:!0,value:["#FF0044","#FF4400","#FFCC00","#00CC44","#00AAFF","#AA00FF","#FF00AA","#00FFCC","#FF6600","#FFFFFF"]}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterClickMode:()=>s.EmitterClickMode,EmitterShapeBase:()=>a.EmitterShapeBase,loadEmittersPluginSimple:()=>l});
31var r=n(1012),o=n(1020),i=n(1021),a=n(1022),s=n(1023);async function l(e){e.checkVersion("4.1.3"),await e.pluginManager.register(async e=>{const t=await(0,i.getEmittersInstancesManager)(e);await(0,o.addEmittersShapesManager)(e),e.pluginManager.addPlugin(new r.EmittersPlugin(t))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmittersPlugin:()=>i});var r=n(914),o=n(1013);class i{id="emitters";#_;constructor(e){this.#_=e}async getPlugin(e){const{EmittersPluginInstance:t}=await n.e("vendors").then(n.bind(n,2802));return new t(this.#_,e)}loadOptions(e,t,n){(this.needsPlugin(t)||this.needsPlugin(n))&&n?.emitters&&(t.emitters=(0,r.executeOnSingleOrMultiple)(n.emitters,e=>{const t=new o.Emitter;return t.load(e),t}))}needsPlugin(e){if(!e)return!1;const t=e.emitters;return(0,r.isArray)(t)&&!!t.length||void 0!==t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Emitter:()=>c});var r=n(914),o=n(1014),i=n(1015),a=n(1016),s=n(1018),l=n(1019);class c{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawn;spawnFillColor;spawnStrokeColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new o.EmitterLife,this.rate=new i.EmitterRate,this.shape=new a.EmitterShape,this.spawn=new l.EmitterSpawn,this.startCount=0}load(e){(0,r.isNull)(e)||(void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.size&&(this.size??=new s.EmitterSize,this.size.load(e.size)),void 0!==e.direction&&(this.direction=e.direction),this.domId=e.domId,void 0!==e.fill&&(this.fill=e.fill),this.life.load(e.life),this.name=e.name,this.particles=(0,r.executeOnSingleOrMultiple)(e.particles,e=>(0,r.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,r.setRangeValue)(e.position.x)),void 0!==e.position.y&&(this.position.y=(0,r.setRangeValue)(e.position.y))),void 0!==e.spawnFillColor&&(this.spawnFillColor??=new r.AnimatableColor,this.spawnFillColor.load(e.spawnFillColor)),void 0!==e.spawnStrokeColor&&(this.spawnStrokeColor??=new r.AnimatableColor,this.spawnStrokeColor.load(e.spawnStrokeColor)),void 0!==e.startCount&&(this.startCount=e.startCount))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterLife:()=>o});var r=n(914);class o{count;delay;duration;wait;constructor(){this.wait=!1}load(e){(0,r.isNull)(e)||(void 0!==e.count&&(this.count=e.count),void 0!==e.delay&&(this.delay=(0,r.setRangeValue)(e.delay)),void 0!==e.duration&&(this.duration=(0,r.setRangeValue)(e.duration)),void 0!==e.wait&&(this.wait=e.wait))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterRate:()=>o});var r=n(914);class o{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(e){(0,r.isNull)(e)||(void 0!==e.quantity&&(this.quantity=(0,r.setRangeValue)(e.quantity)),void 0!==e.delay&&(this.delay=(0,r.setRangeValue)(e.delay)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterShape:()=>i});var r=n(914),o=n(1017);class i{options;replace;type;constructor(){this.options={},this.replace=new o.EmitterShapeReplace,this.type="square"}load(e){(0,r.isNull)(e)||(void 0!==e.options&&(this.options=(0,r.deepExtend)({},e.options??{})),this.replace.load(e.replace),void 0!==e.type&&(this.type=e.type))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterShapeReplace:()=>o});var r=n(914);class o{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(e){(0,r.isNull)(e)||(void 0!==e.color&&(this.color=e.color),void 0!==e.opacity&&(this.opacity=e.opacity))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterSize:()=>o});var r=n(914);class o{height;mode;width;constructor(){this.mode=r.PixelMode.percent,this.height=0,this.width=0}load(e){(0,r.isNull)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.height&&(this.height=e.height),void 0!==e.width&&(this.width=e.width))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterSpawn:()=>o});var r=n(914);class o{fill;stroke;load(e){(0,r.isNull)(e)||(e.fill&&(this.fill??=new r.Fill,this.fill.load(e.fill)),e.stroke&&(this.stroke??=new r.Stroke,this.stroke.load(e.stroke)))}}},(e,t,n)=>{"use strict";async function r(e){const{ShapeManager:t}=await n.e("vendors").then(n.bind(n,2803)),r=e.pluginManager;r.emitterShapeManager??=new t,r.addEmitterShapeGenerator??=(e,t)=>
31{r.emitterShapeManager?.addShapeGenerator(e,t)}}n.r(t),n.d(t,{addEmittersShapesManager:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getEmittersInstancesManager:()=>o});const r=new WeakMap;function o(e){const t=e.pluginManager;let o=r.get(t);return o||(o=n.e("vendors").then(n.bind(n,2804)).then(({EmittersInstancesManager:e})=>new e(t)).catch(e=>{throw r.delete(t),e}),r.set(t,o)),o}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterShapeBase:()=>r});class r{fill;options;position;size;constructor(e,t,n,r){this.position=e,this.size=t,this.fill=n,this.options=r}resize(e,t){this.position=e,this.size=t}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{EmitterClickMode:()=>r}),function(e){e.emitter="emitter"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadLifeUpdater:()=>o});var r=n(1025);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("life",e=>Promise.resolve(new r.LifeUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LifeUpdater:()=>a});var r=n(914),o=n(1026),i=n(1029);class a{#f;constructor(e){this.#f=e}init(e){const t=this.#f,n=e.options.life;if(!n)return;const o=n.delay.sync?1:(0,r.getRandom)(),i=n.duration.sync?1:(0,r.getRandom)();e.life={delay:t.retina.reduceFactor?(0,r.getRangeValue)(n.delay.value)*o/t.retina.reduceFactor*r.millisecondsToSeconds:0,delayTime:0,duration:t.retina.reduceFactor?(0,r.getRangeValue)(n.duration.value)*i/t.retina.reduceFactor*r.millisecondsToSeconds:0,time:0,count:n.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){e.life??=new o.Life;for(const n of t)e.life.load(n?.life)}update(e,t){this.isEnabled(e)&&e.life&&(0,i.updateLife)(e,t,this.#f.canvas.size)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Life:()=>a});var r=n(914),o=n(1027),i=n(1028);class a{count;delay;duration;constructor(){this.count=0,this.delay=new o.LifeDelay,this.duration=new i.LifeDuration}load(e){(0,r.isNull)(e)||(void 0!==e.count&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LifeDelay:()=>o});var r=n(914);class o extends r.ValueWithRandom{sync;constructor(){super(),this.sync=!1}load(e){(0,r.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LifeDuration:()=>o});var r=n(914);class o extends r.ValueWithRandom{sync;constructor(){super(),this.sync=!1}load(e){(0,r.isNull)(e)||(super.load(e),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{updateLife:()=>l});var r=n(914);const o=0,i=-1,a=0,s=0;function l(e,t,n){if(!e.life)return;const l=e.life;let c=!1;if(e.spawning){if(l.delayTime+=t.value,!(l.delayTime>=e.life.delay))return;c=!0,e.spawning=!1,l.delayTime=o,l.time=o}if(l.duration===i)return;if(c?l.time=o:l.time+=t.value,l.time<l.duration)return;if(l.time=o,e.life.count>a&&e.life.count--,e.life.count===a)return void e.destroy();const u=(0,r.setRangeValue)(s,n.width),d=(0,r.setRangeValue)(s,n.width);e.position.x=(0,r.randomInRangeValue)(u),e.position.y=(0,r.randomInRangeValue)(d),e.spawning=!0,l.delayTime=o,l.time=o,e.reset();const f=e.options.life;f&&(l.delay=(0,r.getRangeValue)(f.delay.value)*r.millisecondsToSeconds,l.duration=(0,r.getRangeValue)(f.duration.value)*r.millisecondsToSeconds)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadMotionPlugin:()=>o});var r=n(1031);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addPlugin(new r.MotionPlugin)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MotionPlugin:()=>o});var r=n(1032);class o{id="motion";async getPlugin(e){const{MotionPluginInstance:t}=await n.e("vendors").then(n.bind(n,2805));return new t(e)}loadOptions(e,t,n){if(!this.needsPlugin())return;let o=t.motion;o?.load||(t.motion=o=new r.Motion),o.load(n?.motion)}needsPlugin(){return!0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Motion:()=>i});var r=n(914),o=n(1033);class i{disable;reduce;constructor(){this.disable=!0,this.reduce=new o.MotionReduce}load(e){(0,r.isNull)(e)||(void 0!==e.disable&&(this.disable=e.disable),this.reduce.load(e.reduce))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MotionReduce:()=>o});var r=n(914);class o{factor;value;constructor(){this.factor=4,this.value=!0}load(e){(0,r.isNull)(e)||(void 0!==e.factor&&(this.factor=e.factor),void 0!==e.value&&(this.value=e.value))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadRollUpdater:()=>o});var r=n(1035);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("roll",()=>Promise.resolve(new r.RollUpdater(e.pluginManager)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RollUpdater:()=>i});var r=n(1036),o=n(1038);class i{#p;constructor(e){this.#p=e}getTransformValues(e){const t=e.roll?.enable&&e.roll,n=t&&t.horizontal,r=t&&t.vertical;return{a:n?Math.cos(t.angle):void 0,d:r?Math.sin(t.angle):void 0}}init(e){(0,r.initParticle)(this.#p,e)}isEnabled(e){const t=e.options.roll;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.roll??=new o.Roll;for(const n of t)e.roll.load(n?.roll)}update(e,t){this.isEnabled(e)&&(0,r.updateRoll)(e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{initParticle:()=>a,updateRoll:()=>s});var r=n(914),o=n(1037);const i=360;
31function a(e,t){const n=t.options.roll;if(n?.enable)if(t.roll={enable:n.enable,horizontal:n.mode===o.RollMode.horizontal||n.mode===o.RollMode.both,vertical:n.mode===o.RollMode.vertical||n.mode===o.RollMode.both,angle:(0,r.getRandom)()*r.doublePI,speed:(0,r.getRangeValue)(n.speed)/i},n.backColor)t.backColor=(0,r.rangeColorToHsl)(e,n.backColor);else if(n.darken.enable&&n.enlighten.enable){const e=(0,r.getRandom)()>=r.half?r.AlterType.darken:r.AlterType.enlighten;t.roll.alter={type:e,value:(0,r.getRangeValue)(e===r.AlterType.darken?n.darken.value:n.enlighten.value)}}else n.darken.enable?t.roll.alter={type:r.AlterType.darken,value:(0,r.getRangeValue)(n.darken.value)}:n.enlighten.enable&&(t.roll.alter={type:r.AlterType.enlighten,value:(0,r.getRangeValue)(n.enlighten.value)});else t.roll={enable:!1,horizontal:!1,vertical:!1,angle:0,speed:0}}function s(e,t){const n=e.options.roll,o=e.roll;if(!o||!n?.enable)return;const i=o.speed*t.factor,a=r.doublePI;o.angle+=i,o.angle>a&&(o.angle-=a)}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{RollMode:()=>r}),function(e){e.both="both",e.horizontal="horizontal",e.vertical="vertical"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Roll:()=>a});var r=n(914),o=n(1039),i=n(1037);class a{backColor;darken;enable;enlighten;mode;speed;constructor(){this.darken=new o.RollLight,this.enable=!1,this.enlighten=new o.RollLight,this.mode=i.RollMode.vertical,this.speed=25}load(e){(0,r.isNull)(e)||(void 0!==e.backColor&&(this.backColor=r.OptionsColor.create(this.backColor,e.backColor)),this.darken.load(e.darken),void 0!==e.enable&&(this.enable=e.enable),this.enlighten.load(e.enlighten),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.speed&&(this.speed=(0,r.setRangeValue)(e.speed)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RollLight:()=>o});var r=n(914);class o{enable;value;constructor(){this.enable=!1,this.value=0}load(e){(0,r.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.value&&(this.value=(0,r.setRangeValue)(e.value)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadRotateUpdater:()=>o});var r=n(1041);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("rotate",e=>Promise.resolve(new r.RotateUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RotateUpdater:()=>i});var r=n(914),o=n(1042);class i{#f;constructor(e){this.#f=e}init(e){const t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:(0,r.degToRad)((0,r.getRangeValue)(t.value)),min:0,max:r.doublePI},e.pathRotation=t.path;let n=t.direction;if(n===r.RotateDirection.random){n=Math.floor((0,r.getRandom)()*r.double)>0?r.RotateDirection.counterClockwise:r.RotateDirection.clockwise}switch(n){case r.RotateDirection.counterClockwise:case"counterClockwise":e.rotate.status=r.AnimationStatus.decreasing;break;case r.RotateDirection.clockwise:e.rotate.status=r.AnimationStatus.increasing}const o=t.animation;o.enable&&(e.rotate.decay=r.identity-(0,r.getRangeValue)(o.decay),e.rotate.velocity=(0,r.getRangeValue)(o.speed)/360*this.#f.retina.reduceFactor,o.sync||(e.rotate.velocity*=(0,r.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){e.rotate??=new o.Rotate;for(const n of t)e.rotate.load(n?.rotate)}update(e,t){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&((0,r.updateAnimation)(e,e.rotate,!1,r.DestroyType.none,t),e.rotation=e.rotate.value))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Rotate:()=>i});var r=n(914),o=n(1043);class i extends r.ValueWithRandom{animation;direction;path;constructor(){super(),this.animation=new o.RotateAnimation,this.direction=r.RotateDirection.clockwise,this.path=!1,this.value=0}load(e){(0,r.isNull)(e)||(super.load(e),void 0!==e.direction&&(this.direction=e.direction),this.animation.load(e.animation),void 0!==e.path&&(this.path=e.path))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RotateAnimation:()=>o});var r=n(914);class o{decay;enable;speed;sync;constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,r.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,r.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,r.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadSquareShape:()=>o});var r=n(1045);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["edge","square"],()=>Promise.resolve(new r.SquareDrawer))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SquareDrawer:()=>o});var r=n(1046);class o{draw(e){(0,r.drawSquare)(e)}getSidesCount(){return 4}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{drawSquare:()=>
31o});var r=n(914);function o(e){const{context:t,radius:n}=e,o=n*Math.SQRT1_2,i=o*r.double;t.rect(-o,-o,i,i)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadTiltUpdater:()=>o});var r=n(1048);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("tilt",e=>Promise.resolve(new r.TiltUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TiltUpdater:()=>a});var r=n(914),o=n(1049),i=n(1050);class a{#f;constructor(e){this.#f=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,r.degToRad)((0,r.getRangeValue)(t.value)),sinDirection:(0,r.getRandom)()>=r.half?r.identity:-r.identity,cosDirection:(0,r.getRandom)()>=r.half?r.identity:-r.identity,min:0,max:r.doublePI};let n=t.direction;if(n===i.TiltDirection.random){n=Math.floor((0,r.getRandom)()*r.double)>0?i.TiltDirection.counterClockwise:i.TiltDirection.clockwise}switch(n){case i.TiltDirection.counterClockwise:case"counterClockwise":e.tilt.status=r.AnimationStatus.decreasing;break;case i.TiltDirection.clockwise:e.tilt.status=r.AnimationStatus.increasing}const o=e.options.tilt?.animation;o?.enable&&(e.tilt.decay=r.identity-(0,r.getRangeValue)(o.decay),e.tilt.velocity=(0,r.getRangeValue)(o.speed)/360*this.#f.retina.reduceFactor,o.sync||(e.tilt.velocity*=(0,r.getRandom)()))}isEnabled(e){const t=e.options.tilt?.animation;return!e.destroyed&&!e.spawning&&!!t?.enable}loadOptions(e,...t){e.tilt??=new o.Tilt;for(const n of t)e.tilt.load(n?.tilt)}update(e,t){this.isEnabled(e)&&e.tilt&&(0,r.updateAnimation)(e,e.tilt,!1,r.DestroyType.none,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Tilt:()=>a});var r=n(914),o=n(1050),i=n(1051);class a extends r.ValueWithRandom{animation;direction;enable;constructor(){super(),this.animation=new i.TiltAnimation,this.direction=o.TiltDirection.clockwise,this.enable=!1,this.value=0}load(e){super.load(e),(0,r.isNull)(e)||(this.animation.load(e.animation),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.enable&&(this.enable=e.enable))}}},(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{TiltDirection:()=>r}),function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(r||(r={}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TiltAnimation:()=>o});var r=n(914);class o{decay;enable;speed;sync;constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){(0,r.isNull)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,r.setRangeValue)(e.speed)),void 0!==e.decay&&(this.decay=(0,r.setRangeValue)(e.decay)),void 0!==e.sync&&(this.sync=e.sync))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadWobbleUpdater:()=>o});var r=n(1053);async function o(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("wobble",e=>Promise.resolve(new r.WobbleUpdater(e)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{WobbleUpdater:()=>a});var r=n(914),o=n(1054),i=n(1056);class a{#f;constructor(e){this.#f=e}init(e){const t=e.options.wobble;e.wobble=t?.enable?{angle:(0,r.getRandom)()*r.doublePI,angleSpeed:(0,r.getRangeValue)(t.speed.angle)/360,moveSpeed:(0,r.getRangeValue)(t.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,r.getRangeValue)(t?.distance??0)*this.#f.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...t){e.wobble??=new o.Wobble;for(const n of t)e.wobble.load(n?.wobble)}update(e,t){this.isEnabled(e)&&(0,i.updateWobble)(this.#f,e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Wobble:()=>i});var r=n(914),o=n(1055);class i{distance;enable;speed;constructor(){this.distance=5,this.enable=!1,this.speed=new o.WobbleSpeed}load(e){if(!(0,r.isNull)(e)&&(void 0!==e.distance&&(this.distance=(0,r.setRangeValue)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if((0,r.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,n)=>{"use strict";n.r(t),n.d(t,{WobbleSpeed:()=>o});var r=n(914);class o{angle;move;constructor(){this.angle=50,this.move=10}load(e){(0,r.isNull)(e)||(void 0!==e.angle&&(this.angle=(0,r.setRangeValue)(e.angle)),void 0!==e.move&&(this.move=(0,r.setRangeValue)(e.move)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{updateWobble:()=>a});var r=n(914);const o=0,i=60;function a(e,t,n){const{wobble:a}=t.options,{wobble:s}=t;if(!a?.enable||!s)return;const l=e.retina.reduceFactor,c=s.angleSpeed*n.factor*l,u=s.moveSpeed*n.factor*l*(t.retina.wobbleDistance??o)/(r.millisecondsToSeconds/i),d=r.doublePI,{position:f}=t;s.angle+=c,s.angle>d&&(s.angle-=d),f.x+=u*Math.cos(s.angle),f.y+=u*Math.abs(Math.sin(s.angle))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{options:()=>r});const r={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,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(1059)),o=m(n(1095)),i=m(n(1097)),a=m(n(1104)),s=m(n(1108)),l=m(n(1109)),c=m(n(1113)),u=m(n(1146)),d=m(n(396)),f=m(n(787)),p=m(n(1154)),h=m(n(1155));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,n=e.eventListeners,r=t.loop,o=t.autoplay,a=t.animationData,s=t.path,l=t.renderer,c=void 0===l?"svg":l,u=t.rendererSettings,d=t.assetsPath;this.options={container:this.el,path:s,renderer:c,loop:!1!==r,autoplay:!1!==o,animationData:a,rendererSettings:u,assetsPath:d},this.options=(0,i.default)({},this.options,t),this.anim=p.default.loadAnimation(this.options),this.setSpeed(),this.setDirection(),this.animApi=h.default.createAnimationApi(this.anim),this.registerEvents(n),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,i.default)({},this.options,e.options),this.anim=p.default.loadAnimation(this.options),this.animApi=h.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,o.default)(this.props.segments)===(0,o.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,r.default)(t).forEach(function(n){var r=e.animApi.getKeyPath(n),o=t[n];e.animApi.addValueCallback(r,function(){return o})})}},{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,n=t.width,r=t.height,o=t.ariaRole,a=t.ariaLabel,s=t.title,l=t.tabIndex,c=function(e){return"number"==typeof e?e+"px":e||"100%"},u=(0,i.default)({width:c(n),height:c(r),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style);return d.default.createElement("div",{ref:function(t){e.el=t},style:u,title:s,role:o,"aria-label":a,tabIndex:l})}}]),t}(d.default.Component);t.default=g,g.propTypes={eventListeners:f.default.arrayOf(f.default.object),options:f.default.object.isRequired,height:f.default.oneOfType([f.default.string,f.default.number]),width:f.default.oneOfType([f.default.string,f.default.number]),isStopped:f.default.bool,isPaused:f.default.bool,speed:f.default.number,segments:f.default.arrayOf(f.default.number),forceSegments:f.default.bool,direction:f.default.number,ariaRole:f.default.string,ariaLabel:f.default.string,title:f.default.string,style:f.default.string,tabIndex:f.default.oneOfType([f.default.number,f.default.string])},g.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",title:"",tabIndex:0}},(e,t,n)=>{e.exports={default:n(1060),__esModule:!0}},(e,t,n)=>{n(1061),e.exports=n(1076).Object.keys},(e,t,n)=>{var r=n(1062),o=n(1064);n(1081)("keys",function(){return function(e){return o(r(e))}})},(e,t,n)=>{var r=n(1063);e.exports=function(e){return Object(r(e))}},e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},(e,t,n)=>{var r=n(1065),o=n(1080);e.exports=Object.keys||function(e){return r(e,o)}},(e,t,n)=>{var r=n(1066),o=n(1067),i=n(1070)(!1),a=n(1074)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>l;
vendor: 5,843 bytes, line 31
31)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},(e,t,n)=>{var r=n(1068),o=n(1063);e.exports=function(e){return r(o(e))}},(e,t,n)=>{var r=n(1069);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},(e,t,n)=>{var r=n(1067),o=n(1071),i=n(1073);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},(e,t,n)=>{var r=n(1072),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},(e,t,n)=>{var r=n(1072),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},(e,t,n)=>{var r=n(1075)("keys"),o=n(1079);e.exports=function(e){return r[e]||(r[e]=o(e))}},(e,t,n)=>{var r=n(1076),o=n(1077),i="__core-js_shared__",a=o[i]||(o[i]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(1078)?"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,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},(e,t,n)=>{var r=n(1082),o=n(1076),i=n(1091);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},(e,t,n)=>{var r=n(1077),o=n(1076),i=n(1083),a=n(1085),s=n(1066),l="prototype",c=function(e,t,n){var u,d,f,p=e&c.F,h=e&c.G,m=e&c.S,g=e&c.P,y=e&c.B,v=e&c.W,b=h?o:o[t]||(o[t]={}),_=b[l],w=h?r:m?r[t]:(r[t]||{})[l];for(u in h&&(n=t),n)(d=!p&&w&&void 0!==w[u])&&s(b,u)||(f=d?w[u]:n[u],b[u]=h&&"function"!=typeof w[u]?n[u]:y&&d?i(f,r):v&&w[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(f):g&&"function"==typeof f?i(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[u]=f,e&c.R&&_&&!_[u]&&a(_,u,f)))};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,n)=>{var r=n(1084);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},(e,t,n)=>{var r=n(1086),o=n(1094);e.exports=n(1090)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},(e,t,n)=>{var r=n(1087),o=n(1089),i=n(1093),a=Object.defineProperty;t.f=n(1090)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},(e,t,n)=>{var r=n(1088);e.exports=function(e){if(!r(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,n)=>{e.exports=!n(1090)&&!n(1091)(function(){return 7!=Object.defineProperty(n(1092)("div"),"a",{get:function(){return 7}}).a})},(e,t,n)=>{e.exports=!n(1091)(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,n)=>{var r=n(1088),o=n(1077).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},(e,t,n)=>{var r=n(1088);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;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,n)=>{e.exports={default:n(1096),__esModule:!0}},(e,t,n)=>{var r=n(1076),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=n(1098),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},(e,t,n)=>{e.exports={default:n(1099),__esModule:!0}},(e,t,n)=>{n(1100),e.exports=n(1076).Object.assign},(e,t,n)=>{var r=n(1082);r(r.S+r.F,"Object",{assign:n(1101)})},(e,t,n)=>{"use strict";var r=n(1090),o=n(1064),i=n(1102),a=n(1103),s=n(1062),l=n(1068),c=Object.assign;e.exports=!c||n(1091)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=i.f,f=a.f;c>u;)for(var p,h=l(arguments[u++]),m=d?o(h).concat(d(h)):o(h),g=m.length,y=0;g>y;)p=m[y++],r&&!f.call(h,p)||(n[p]=h[p]);return n}:c},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t)=>{t.f={}.propertyIsEnumerable},(e,t,n)=>{e.exports={default:n(1105),__esModule:!0}},(e,t,n)=>{n(1106),e.exports=n(1076).Object.getPrototypeOf},(e,t,n)=>
vendor: 4,480 bytes, line 31
31{var r=n(1062),o=n(1107);n(1081)("getPrototypeOf",function(){return function(e){return o(r(e))}})},(e,t,n)=>{var r=n(1066),o=n(1062),i=n(1074)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"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,n)=>{"use strict";t.__esModule=!0;var r,o=n(1110),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},(e,t,n)=>{e.exports={default:n(1111),__esModule:!0}},(e,t,n)=>{n(1112);var r=n(1076).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},(e,t,n)=>{var r=n(1082);r(r.S+r.F*!n(1090),"Object",{defineProperty:n(1086).f})},(e,t,n)=>{"use strict";t.__esModule=!0;var r,o=n(1114),i=(r=o)&&r.__esModule?r:{default:r};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,i.default)(t))&&"function"!=typeof t?e:t}},(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(1115)),o=a(n(1133)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(e){return typeof e}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof o.default&&"symbol"===i(r.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof o.default&&e.constructor===o.default&&e!==o.default.prototype?"symbol":void 0===e?"undefined":i(e)}},(e,t,n)=>{e.exports={default:n(1116),__esModule:!0}},(e,t,n)=>{n(1117),n(1128),e.exports=n(1132).f("iterator")},(e,t,n)=>{"use strict";var r=n(1118)(!0);n(1119)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},(e,t,n)=>{var r=n(1072),o=n(1063);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):i:e?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}}},(e,t,n)=>{"use strict";var r=n(1078),o=n(1082),i=n(1120),a=n(1085),s=n(1121),l=n(1122),c=n(1126),u=n(1107),d=n(1127)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",h="values",m=function(){return this};e.exports=function(e,t,n,g,y,v,b){l(n,t,g);var _,w,S,E=function(e){if(!f&&e in O)return O[e];switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",T=y==h,x=!1,O=e.prototype,C=O[d]||O["@@iterator"]||y&&O[y],P=C||E(y),A=y?T?E("entries"):P:void 0,I="Array"==t&&O.entries||C;if(I&&(S=u(I.call(new e)))!==Object.prototype&&S.next&&(c(S,k,!0),r||"function"==typeof S[d]||a(S,d,m)),T&&C&&C.name!==h&&(x=!0,P=function(){return C.call(this)}),r&&!b||!f&&!x&&O[d]||a(O,d,P),s[t]=P,s[k]=m,y)if(_={values:T?P:E(h),keys:v?P:E(p),entries:A},b)for(w in _)w in O||i(O,w,_[w]);else o(o.P+o.F*(f||x),t,_);return _}},(e,t,n)=>{e.exports=n(1085)},e=>{e.exports={}},(e,t,n)=>{"use strict";var r=n(1123),o=n(1094),i=n(1126),a={};n(1085)(a,n(1127)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},(e,t,n)=>{var r=n(1087),o=n(1124),i=n(1080),a=n(1074)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(1092)("iframe"),r=i.length;for(t.style.display="none",n(1125).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[l][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},(e,t,n)=>{var r=n(1086),o=n(1087),i=n(1064);e.exports=n(1090)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,l=0;s>l;)r.f(e,n=a[l++],t[n]);return e}},(e,t,n)=>{var r=n(1077).document;e.exports=r&&r.documentElement},(e,t,n)=>{var r=n(1086).f,o=n(1066),i=n(1127)("toStringTag");
vendor: 5,254 bytes, line 31
31e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},(e,t,n)=>{var r=n(1075)("wks"),o=n(1079),i=n(1077).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},(e,t,n)=>{n(1129);for(var r=n(1077),o=n(1085),i=n(1121),a=n(1127)("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=r[c],d=u&&u.prototype;d&&!d[a]&&o(d,a,c),i[c]=i.Array}},(e,t,n)=>{"use strict";var r=n(1130),o=n(1131),i=n(1121),a=n(1067);e.exports=n(1119)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},e=>{e.exports=function(){}},e=>{e.exports=function(e,t){return{value:t,done:!!e}}},(e,t,n)=>{t.f=n(1127)},(e,t,n)=>{e.exports={default:n(1134),__esModule:!0}},(e,t,n)=>{n(1135),n(1143),n(1144),n(1145),e.exports=n(1076).Symbol},(e,t,n)=>{"use strict";var r=n(1077),o=n(1066),i=n(1090),a=n(1082),s=n(1120),l=n(1136).KEY,c=n(1091),u=n(1075),d=n(1126),f=n(1079),p=n(1127),h=n(1132),m=n(1137),g=n(1138),y=n(1139),v=n(1087),b=n(1088),_=n(1062),w=n(1067),S=n(1093),E=n(1094),k=n(1123),T=n(1140),x=n(1142),O=n(1102),C=n(1086),P=n(1064),A=x.f,I=C.f,R=T.f,j=r.Symbol,M=r.JSON,D=M&&M.stringify,N="prototype",L=p("_hidden"),F=p("toPrimitive"),B={}.propertyIsEnumerable,z=u("symbol-registry"),U=u("symbols"),H=u("op-symbols"),V=Object[N],q="function"==typeof j&&!!O.f,G=r.QObject,W=!G||!G[N]||!G[N].findChild,$=i&&c(function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(V,t);r&&delete V[t],I(e,t,n),r&&e!==V&&I(V,t,r)}:I,Y=function(e){var t=U[e]=k(j[N]);return t._k=e,t},K=q&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},J=function(e,t,n){return e===V&&J(H,t,n),v(e),t=S(t,!0),v(n),o(U,t)?(n.enumerable?(o(e,L)&&e[L][t]&&(e[L][t]=!1),n=k(n,{enumerable:E(0,!1)})):(o(e,L)||I(e,L,E(1,{})),e[L][t]=!0),$(e,t,n)):I(e,t,n)},Q=function(e,t){v(e);for(var n,r=g(t=w(t)),o=0,i=r.length;i>o;)J(e,n=r[o++],t[n]);return e},X=function(e){var t=B.call(this,e=S(e,!0));return!(this===V&&o(U,e)&&!o(H,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,L)&&this[L][e])||t)},Z=function(e,t){if(e=w(e),t=S(t,!0),e!==V||!o(U,t)||o(H,t)){var n=A(e,t);return!n||!o(U,t)||o(e,L)&&e[L][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=R(w(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==L||t==l||r.push(t);return r},te=function(e){for(var t,n=e===V,r=R(n?H:w(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(V,t)||i.push(U[t]);return i};q||(s((j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(H,n),o(this,L)&&o(this[L],e)&&(this[L][e]=!1),$(this,e,E(1,n))};return i&&W&&$(V,e,{configurable:!0,set:t}),Y(e)})[N],"toString",function(){return this._k}),x.f=Z,C.f=J,n(1141).f=T.f=ee,n(1103).f=X,O.f=te,i&&!n(1078)&&s(V,"propertyIsEnumerable",X,!0),h.f=function(e){return Y(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:j});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)p(ne[re++]);for(var oe=P(p.store),ie=0;oe.length>ie;)m(oe[ie++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return o(z,e+="")?z[e]:z[e]=j(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?k(e):Q(k(e),t)},defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:Z,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=c(function(){O.f(1)});a(a.S+a.F*ae,"Object",{getOwnPropertySymbols:function(e){return O.f(_(e))}}),M&&a(a.S+a.F*(!q||c(function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,D.apply(M,r)}}),j[N][F]||n(1085)(j[N],F,j[N].valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},(e,t,n)=>{var r=n(1079)("meta"),o=n(1088),i=n(1066),a=n(1086).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(1091)(function(){return l(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;
31if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!i(e,r)&&u(e),e}}},(e,t,n)=>{var r=n(1077),o=n(1076),i=n(1078),a=n(1132),s=n(1086).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},(e,t,n)=>{var r=n(1064),o=n(1102),i=n(1103);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},(e,t,n)=>{var r=n(1069);e.exports=Array.isArray||function(e){return"Array"==r(e)}},(e,t,n)=>{var r=n(1067),o=n(1141).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},(e,t,n)=>{var r=n(1065),o=n(1080).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},(e,t,n)=>{var r=n(1103),o=n(1094),i=n(1067),a=n(1093),s=n(1066),l=n(1089),c=Object.getOwnPropertyDescriptor;t.f=n(1090)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},()=>{},(e,t,n)=>{n(1137)("asyncIterator")},(e,t,n)=>{n(1137)("observable")},(e,t,n)=>{"use strict";t.__esModule=!0;var r=a(n(1147)),o=a(n(1151)),i=a(n(1114));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,i.default)(t)));e.prototype=(0,o.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(r.default?(0,r.default)(e,t):e.__proto__=t)}},(e,t,n)=>{e.exports={default:n(1148),__esModule:!0}},(e,t,n)=>{n(1149),e.exports=n(1076).Object.setPrototypeOf},(e,t,n)=>{var r=n(1082);r(r.S,"Object",{setPrototypeOf:n(1150).set})},(e,t,n)=>{var r=n(1088),o=n(1087),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(1083)(Function.call,n(1142).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},(e,t,n)=>{e.exports={default:n(1152),__esModule:!0}},(e,t,n)=>{n(1153);var r=n(1076).Object;e.exports=function(e,t){return r.create(e,t)}},(e,t,n)=>{var r=n(1082);r(r.S,"Object",{create:n(1123)})},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 n,r,o=e.length;for(n=0;n<o;n+=1)for(var i in r=e[n].prototype)Object.prototype.hasOwnProperty.call(r,i)&&(t.prototype[i]=r[i])}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,n=this.audios.length;for(t=0;t<n;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 n,r=0,o=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)o.push(n);return o}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,n){return"float32"===t?new Float32Array(n):"int16"===t?new Int16Array(n):"uint8c"===t?new Uint8ClampedArray(n):e(t,n)}: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"],n=t.length;for(e=0;e<n;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,n=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)n[t]=Math.abs(e[t]);return n}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,n,r){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,r){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}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,n){var r,o,i,a,s,l,c,u;switch(l=n*(1-t),c=n*(1-(s=6*e-(a=Math.floor(6*e)))*t),u=n*(1-(1-s)*t),a%6){case 0:r=n,o=u,i=l;break;case 1:r=c,o=n,i=l;break;case 2:r=l,o=n,i=u;break;case 3:r=l,o=c,i=n;break;case 4:r=u,o=l,i=n;break;case 5:r=n,o=l,i=c}return[r,o,i]}
vendor: 7,583 bytes, line 31
31function RGBtoHSV(e,t,n){var r,o=Math.max(e,t,n),i=Math.min(e,t,n),a=o-i,s=0===o?0:a/o,l=o/255;switch(o){case i:r=0;break;case e:r=t-n+a*(t<n?6:0),r/=6*a;break;case t:r=n-e+2*a,r/=6*a;break;case n:r=e-t+4*a,r/=6*a}return[r,s,l]}function addSaturationToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),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,n=1,r=[],o={onmessage:function(){},postMessage:function(t){e({data:t})}},i={postMessage:function(e){o.onmessage({data:e})}};function a(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,o}(function(e){if(i.dataManager||(i.dataManager=function(){function e(o,i){var a,s,l,c,u,f,p=o.length;for(s=0;s<p;s+=1)if("ks"in(a=o[s])&&!a.completed){if(a.completed=!0,a.hasMask){var h=a.masksProperties;for(c=h.length,l=0;l<c;l+=1)if(h[l].pt.k.i)r(h[l].pt.k);else for(f=h[l].pt.k.length,u=0;u<f;u+=1)h[l].pt.k[u].s&&r(h[l].pt.k[u].s[0]),h[l].pt.k[u].e&&r(h[l].pt.k[u].e[0])}0===a.ty?(a.layers=t(a.refId,i),e(a.layers,i)):4===a.ty?n(a.shapes):5===a.ty&&d(a)}}function t(e,t){var n=function(e,t){for(var n=0,r=t.length;n<r;){if(t[n].id===e)return t[n];n+=1}return null}(e,t);return n?n.layers.__used?JSON.parse(JSON.stringify(n.layers)):(n.layers.__used=!0,n.layers):null}function n(e){var t,o,i;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(i=e[t].ks.k.length,o=0;o<i;o+=1)e[t].ks.k[o].s&&r(e[t].ks.k[o].s[0]),e[t].ks.k[o].e&&r(e[t].ks.k[o].e[0]);else"gr"===e[t].ty&&n(e[t].it)}function r(e){var t,n=e.i.length;for(t=0;t<n;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 o(e,t){var n=t?t.split("."):[100,100,100];return e[0]>n[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var i,a=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),s=(i=[4,7,99],function(e){if(e.chars&&!o(i,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var a=e.chars[t];a.data&&a.data.shapes&&(n(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 n(e){var n,r=e.length;for(n=0;n<r;n+=1)5===e[n].ty&&t(e[n])}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var n,r,o,i=e.length;for(n=0;n<i;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(o=e[n].c.k.length,r=0;r<o;r+=1)e[n].c.k[r].s&&(e[n].c.k[r].s[0]/=255,e[n].c.k[r].s[1]/=255,e[n].c.k[r].s[2]/=255,e[n].c.k[r].s[3]/=255),e[n].c.k[r].e&&(e[n].c.k[r].e[0]/=255,e[n].c.k[r].e[1]/=255,e[n].c.k[r].e[2]/=255,e[n].c.k[r].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function n(e){var n,r=e.length;for(n=0;n<r;n+=1)4===e[n].ty&&t(e[n].shapes)}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}(),u=function(){var e=[4,4,18];function t(e){var n,r,o;for(n=e.length-1;n>=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(o=e[n].ks.k.length,r=0;r<o;r+=1)e[n].ks.k[r].s&&(e[n].ks.k[r].s[0].c=e[n].closed),e[n].ks.k[r].e&&(e[n].ks.k[r].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}function n(e){var n,r,o,i,a,s,l=e.length;for(r=0;r<l;r+=1){if((n=e[r]).hasMask){var c=n.masksProperties;for(i=c.length,o=0;o<i;o+=1)if(c[o].pt.k.i)c[o].pt.k.c=c[o].cl;else for(s=c[o].pt.k.length,a=0;a<s;a+=1)c[o].pt.k[a].s&&(c[o].pt.k[a].s[0].c=c[o].cl),c[o].pt.k[a].e&&(c[o].pt.k[a].e[0].c=c[o].cl)}4===n.ty&&t(n.shapes)}}return function(t){if(o(e,t.v)&&(n(t.layers),t.assets)){var r,i=t.assets.length;for(r=0;r<i;r+=1)t.assets[r].layers&&n(t.assets[r].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var f={completeData:function(n){n.__complete||(c(n),a(n),s(n),l(n),u(n),e(n.layers,n.assets),function(n,r){if(n){var o=0,i=n.length;for(o=0;o<i;o+=1)1===n[o].t&&(n[o].data.layers=t(n[o].data.refId,r),e(n[o].data.layers,r))}}(n.chars,n.assets),n.__complete=!0)}};return f.checkColors=c,f.checkChars=s,f.checkPathProperties=l,f.checkShapes=u,f.completeLayers=e,f}()),i.assetLoader||(i.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,n,r,o){var i,a=new XMLHttpRequest;try{a.responseType="json"}catch(e){}a.onreadystatechange=function(){if(4===a.readyState)if(200===a.status)i=e(a),r(i);else try{i=e(a),r(i)}catch(e){o&&o(e)}};try{a.open(["G","E","T"].join(""),t,!0)}catch(e){a.open(["G","E","T"].join(""),n+"/"+t,!0)}a.send()}}}()),"loadAnimation"===e.data.type)i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;i.dataManager.completeData(t),i.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&i.assetLoader.load(e.data.path,e.data.fullPath,function(t){i.postMessage({id:e.data.id,payload:t,status:"success"})},function(){i.postMessage({id:e.data.id,status:"error"})})}
vendor: 21,506 bytes, line 31
31),t.onmessage=function(e){var t=e.data,n=t.id,o=r[n];r[n]=null,"success"===t.status?o.onComplete(t.payload):o.onError&&o.onError()})}function s(e,t){var o="processId_"+(n+=1);return r[o]={onComplete:e,onError:t},o}return{loadAnimation:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},loadData:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:o})},completeAnimation:function(e,n,r){a();var o=s(n,r);t.postMessage({type:"complete",animation:e,id:o})}}}(),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 n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,n){var r="";if(e.e)r=e.p;else if(t){var o=e.p;-1!==o.indexOf("images/")&&(o=o.split("/")[1]),r=t+o}else r=n,r+=e.u?e.u:"",r+=e.p;return r}function o(e){var t=0,n=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function i(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,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=n.bind(this),this.testImageLoaded=o.bind(this),this.createFootageData=i.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 n;this.imagesLoadedCb=t;var r=e.length;for(n=0;n<r;n+=1)e[n].layers||(e[n].t&&"seq"!==e[n].t?3===e[n].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[n]))):(this.totalImages+=1,this.images.push(this._createImageData(e[n]))))},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,n=this.images.length;t<n;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var n=r(t,this.assetsPath,this.path),o=createTag("img");o.crossOrigin="anonymous",o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.src=n;var i={img:o,assetData:t};return i},createImageData:function(t){var n=r(t,this.assetsPath,this.path),o=createNS("image");isSafari?this.testImageLoaded(o):o.addEventListener("load",this._imageLoaded,!1),o.addEventListener("error",function(){i.img=e,this._imageLoaded()}.bind(this),!1),o.setAttributeNS("http://www.w3.org/1999/xlink","href",n),this._elementHelper.append?this._elementHelper.append(o):this._elementHelper.appendChild(o);var i={img:o,assetData:t};return i},imageLoaded:t,footageLoaded:n,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 n=this._cbs[e],r=0;r<n.length;r+=1)n[r](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 n=0,r=this._cbs[e].length;n<r;)this._cbs[e][n]===t&&(this._cbs[e].splice(n,1),n-=1,r-=1),n+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,n=e.split("\r\n"),r={},o=0,i=0;i<n.length;i+=1)2===(t=n[i].split(":")).length&&(r[t[0]]=t[1].trim(),o+=1);if(0===o)throw new Error;return r}return function(t){for(var n=[],r=0;r<t.length;r+=1){var o=t[r],i={time:o.tm,duration:o.dr};try{i.payload=JSON.parse(t[r].cm)}catch(n){try{i.payload=e(t[r].cm)}catch(e){i.payload={name:t[r].cm}}}n.push(i)}return n}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,n=this.compositions.length;t<n;){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 n=getRenderer(t);this.renderer=new n(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 n={wrapper:e,animationData:t},r=e.attributes;n.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",n.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var o=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===o?n.loop=!1:"true"===o?n.loop=!0:""!==o&&(n.loop=parseInt(o,10));var i=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;n.autoplay="false"!==i,n.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),n.path?this.setParams(n):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,n,r=this.animationData.layers,o=r.length,i=e.layers,a=i.length;for(n=0;n<a;n+=1)for(t=0;t<o;){if(r[t].id===i[n].id){r[t]=i[n];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(o=e.assets.length,t=0;t<o;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 n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,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 n="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(n,r)},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,n=0;n<this.markers.length;n+=1)if((t=this.markers[n]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&this.goToAndStop(o.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!n||this.name===n){var r=Number(e);if(isNaN(r)){var o=this.getMarkerData(e);o&&(o.duration?this.playSegments([o.time,o.time+o.duration],!0):this.goToAndStop(o.time,!0))}else this.goToAndStop(r,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,n=!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)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(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 n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n<r;n+=1)this.segments.push(e[n])}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 n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){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,n){try{this.renderer.getElementByPath(e).updateDocumentData(t,n)}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=[],n=0,r=0,o=0,i=!0,a=!1;function s(e){for(var n=0,o=e.target;n<r;)t[n].animation===o&&(t.splice(n,1),n-=1,r-=1,o.isPaused||u()),n+=1}function l(e,n){if(!e)return null;for(var o=0;o<r;){if(t[o].elem===e&&null!==t[o].elem)return t[o].animation;o+=1}var i=new AnimationItem;return d(i,e),i.setData(e,n),i}function c(){o+=1,
vendor: 1,445 bytes, line 31
31h()}function u(){o-=1}function d(e,n){e.addEventListener("destroy",s),e.addEventListener("_active",c),e.addEventListener("_idle",u),t.push({elem:n,animation:e}),r+=1}function f(e){var s,l=e-n;for(s=0;s<r;s+=1)t[s].animation.advanceTime(l);n=e,o&&!a?window.requestAnimationFrame(f):i=!0}function p(e){n=e,window.requestAnimationFrame(f)}function h(){!a&&o&&i&&(window.requestAnimationFrame(p),i=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setSpeed(e,n)},e.setDirection=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setDirection(e,n)},e.play=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.play(e)},e.pause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.pause(e)},e.stop=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.stop(e)},e.togglePause=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.togglePause(e)},e.searchAnimations=function(e,t,n){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),i=o.length;for(r=0;r<i;r+=1)n&&o[r].setAttribute("data-bm-type",n),l(o[r],e);if(t&&0===i){n||(n="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",n),a.appendChild(s),l(s,e)}},e.resize=function(){var e;
vendor: 14,275 bytes, line 31
31for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,n,o){var i;for(i=0;i<r;i+=1)t[i].animation.goToAndStop(e,n,o)},e.destroy=function(e){var n;for(n=r-1;n>=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){a=!0},e.unfreeze=function(){a=!1,h()},e.setVolume=function(e,n){var o;for(o=0;o<r;o+=1)t[o].animation.setVolume(e,n)},e.mute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.mute(e)},e.unmute=function(e){var n;for(n=0;n<r;n+=1)t[n].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,n=t.length,r=[];for(e=0;e<n;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,n,r,o,i){var a=i||("bez_"+e+"_"+n+"_"+r+"_"+o).replace(/\./g,"p");if(t[a])return t[a];var s=new u([e,n,r,o]);return t[a]=s,s}},t={},n=11,r=1/(n-1),o="function"==typeof Float32Array;function i(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,n){return((i(t,n)*e+a(t,n))*e+s(t))*e}function c(e,t,n){return 3*i(t,n)*e*e+2*a(t,n)*e+s(t)}function u(e){this._p=e,this._mSampleValues=o?new Float32Array(n):new Array(n),this._precomputed=!1,this.get=this.get.bind(this)}return u.prototype={get:function(e){var t=this._p[0],n=this._p[1],r=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),t===n&&r===o?e:0===e?0:1===e?1:l(this._getTForX(e),n,o)},_precompute:function(){var e=this._p[0],t=this._p[1],n=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&n===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],o=0;o<n;++o)this._mSampleValues[o]=l(o*r,e,t)},_getTForX:function(e){for(var t=this._p[0],o=this._p[2],i=this._mSampleValues,a=0,s=1,u=n-1;s!==u&&i[s]<=e;++s)a+=r;var d=a+(e-i[--s])/(i[s+1]-i[s])*r,f=c(d,t,o);return f>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=c(t,n,r);if(0===i)return t;t-=(l(t,n,r)-e)/i}return t}(e,d,t,o):0===f?d:function(e,t,n,r,o){var i,a,s=0;do{(i=l(a=t+(n-t)/2,r,o)-e)>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<10);return a}(e,a,a+r,t,o)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,o=e,i=createSizedArray(o);return{newElement:function(){return r?i[r-=1]:t()},release:function(e){r===o&&(i=pooling.double(i),o*=2),n&&n(e),i[r]=e,r+=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,n=e.lengths.length;for(t=0;t<n;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,n,r,o,i){var a=e*r+t*o+n*i-o*r-i*e-n*t;return a>-.001&&a<.001}var n=function(e,t,n,r){var o,i,a,s,l,c,u=getDefaultCurveSegments(),d=0,f=[],p=[],h=bezierLengthPool.newElement();for(a=n.length,o=0;o<u;o+=1){for(l=o/(u-1),c=0,i=0;i<a;i+=1)s=bmPow(1-l,3)*e[i]+3*bmPow(1-l,2)*l*n[i]+3*(1-l)*bmPow(l,2)*r[i]+bmPow(l,3)*t[i],f[i]=s,null!==p[i]&&(c+=bmPow(f[i]-p[i],2)),p[i]=f[i];c&&(d+=c=bmSqrt(c)),h.percents[o]=l,h.lengths[o]=d}return h.addedLength=d,h};function r(e){this.segmentLength=0,this.points=new Array(e)}function o(e,t){this.partialLength=e,this.point=t}var i,a=(i={},function(e,n,a,s){var l=(e[0]+"_"+e[1]+"_"+n[0]+"_"+n[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!i[l]){var c,u,d,f,p,h,m,g=getDefaultCurveSegments(),y=0,v=null;2===e.length&&(e[0]!==n[0]||e[1]!==n[1])&&t(e[0],e[1],n[0],n[1],e[0]+a[0],e[1]+a[1])&&t(e[0],e[1],n[0],n[1],n[0]+s[0],n[1]+s[1])&&(g=2);var b=new r(g);for(d=a.length,c=0;c<g;c+=1){for(m=createSizedArray(d),p=c/(g-1),h=0,u=0;u<d;u+=1)f=bmPow(1-p,3)*e[u]+3*bmPow(1-p,2)*p*(e[u]+a[u])+3*(1-p)*bmPow(p,2)*(n[u]+s[u])+bmPow(p,3)*n[u],m[u]=f,null!==v&&(h+=bmPow(m[u]-v[u],2));y+=h=bmSqrt(h),b.points[c]=new o(h,m),v=m}b.segmentLength=y,i[l]=b}return i[l]});function s(e,t){var n=t.percents,r=t.lengths,o=n.length,i=bmFloor((o-1)*e),a=e*t.addedLength,s=0;if(i===o-1||0===i||a===r[i])return n[i];for(var l=r[i]>a?-1:1,c=!0;c;)if(r[i]<=a&&r[i+1]>a?(s=(a-r[i])/(r[i+1]-r[i]),c=!1):i+=l,i<0||i>=o-1){if(i===o-1)return n[i];c=!1}return n[i]+(n[i+1]-n[i])*s}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),o=e.c,i=e.v,a=e.o,s=e.i,l=e._length,c=r.lengths,u=0;for(t=0;t<l-1;t+=1)c[t]=n(i[t],i[t+1],a[t],s[t+1]),u+=c[t].addedLength;return o&&l&&(c[t]=n(i[t],i[0],a[t],s[0]),u+=c[t].addedLength),r.totalLength=u,r},getNewSegment:function(t,n,r,o,i,a,c){i<0?i=0:i>1&&(i=1);var u,d=s(i,c),f=s(a=a>1?1:a,c),p=t.length,h=1-d,m=1-f,g=h*h*h,y=d*h*h*3,v=d*d*h*3,b=d*d*d,_=h*h*m,w=d*h*m+h*d*m+h*h*f,S=d*d*m+h*d*f+d*h*f,E=d*d*f,k=h*m*m,T=d*m*m+h*f*m+h*m*f,x=d*f*m+h*f*f+d*m*f,O=d*f*f,C=m*m*m,P=f*m*m+m*f*m+m*m*f,A=f*f*m+m*f*f+f*m*f,I=f*f*f;for(u=0;u<p;u+=1)l[4*u]=e.round(1e3*(g*t[u]+y*r[u]+v*o[u]+b*n[u]))/1e3,l[4*u+1]=e.round(1e3*(_*t[u]+w*r[u]+S*o[u]+E*n[u]))/1e3,l[4*u+2]=e.round(1e3*(k*t[u]+T*r[u]+x*o[u]+O*n[u]))/1e3,l[4*u+3]=e.round(1e3*(C*t[u]+P*r[u]+A*o[u]+I*n[u]))/1e3;return l},getPointInSegment:function(t,n,r,o,i,a){var l=s(i,a),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*o[0]+l*l*l*n[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*o[1]+l*l*l*n[1]))/1e3]},buildBezierData:a,pointOnLine2D:t,pointOnLine3D:function(n,r,o,i,a,s,l,c,u){if(0===o&&0===s&&0===u)return t(n,r,i,a,l,c);var d,f=e.sqrt(e.pow(i-n,2)+e.pow(a-r,2)+e.pow(s-o,2)),p=e.sqrt(e.pow(l-n,2)+e.pow(c-r,2)+e.pow(u-o,2)),h=e.sqrt(e.pow(l-i,2)+e.pow(c-a,2)+e.pow(u-s,2));return(d=f>p?f>h?f-p-h:h-p-f:h>p?h-p-f:p-f-h)>-1e-4&&d<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n,r=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var o,i,a,s,l,c,u,d,f,p=t.lastIndex,h=p,m=this.keyframes.length-1,g=!0;g;){if(o=this.keyframes[h],i=this.keyframes[h+1],h===m-1&&e>=i.t-r){o.h&&(o=i),p=0;break}if(i.t-r>e){p=h;break}h<m-1?h+=1:(p=0,g=!1)}a=this.keyframesMetadata[h]||{};var y,v=i.t-r,b=o.t-r;if(o.to){a.bezierData||(a.bezierData=bez.buildBezierData(o.s,i.s||o.e,o.to,o.ti));var _=a.bezierData;if(e>=v||e<b){var w=e>=v?_.points.length-1:0;for(l=_.points[w].point.length,s=0;s<l;s+=1)n[s]=_.points[w].point[s]}else{a.__fnct?f=a.__fnct:(f=BezierFactory.getBezierEasing(o.o.x,o.o.y,o.i.x,o.i.y,o.n).get,a.__fnct=f),c=f((e-b)/(v-b));var S,E=_.segmentLength*c,k=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,g=!0,u=_.points.length;g;){if(k+=_.points[d].partialLength,0===E||0===c||d===_.points.length-1){for(l=_.points[d].point.length,s=0;s<l;s+=1)n[s]=_.points[d].point[s];break}if(E>=k&&E<k+_.points[d+1].partialLength){for(S=(E-k)/_.points[d+1].partialLength,l=_.points[d].point.length,s=0;s<l;s+=1)n[s]=_.points[d].point[s]+(_.points[d+1].point[s]-_.points[d].point[s])*S;break}d<u-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=k-_.points[d].partialLength,t._lastKeyframeIndex=h}}else{var T,x,O,C,P;if(m=o.s.length,y=i.s||o.e,this.sh&&1!==o.h)e>=v?(n[0]=y[0],n[1]=y[1],n[2]=y[2]):e<=b?(n[0]=o.s[0],n[1]=o.s[1],n[2]=o.s[2]):quaternionToEuler(n,slerp(createQuaternion(o.s),createQuaternion(y),(e-b)/(v-b)));else for(h=0;h<m;h+=1)1!==o.h&&(e>=v?c=1:e<b?c=0:(o.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[h]?f=a.__fnct[h]:(T=void 0===o.o.x[h]?o.o.x[0]:o.o.x[h],x=void 0===o.o.y[h]?o.o.y[0]:o.o.y[h],O=void 0===o.i.x[h]?o.i.x[0]:o.i.x[h],C=void 0===o.i.y[h]?o.i.y[0]:o.i.y[h],f=BezierFactory.getBezierEasing(T,x,O,C).get,a.__fnct[h]=f)):a.__fnct?f=a.__fnct:(T=o.o.x,x=o.o.y,O=o.i.x,C=o.i.y,f=BezierFactory.getBezierEasing(T,x,O,C).get,o.keyframeMetadata=f),c=f((e-b)/(v-b)))),y=i.s||o.e,P=1===o.h?o.s[h]:o.s[h]+(y[h]-o.s[h])*c,"multidimensional"===this.propType?n[h]=P:n=P}return t.lastIndex=p,n}function slerp(e,t,n){var r,o,i,a,s,l=[],c=e[0],u=e[1],d=e[2],f=e[3],p=t[0],h=t[1],m=t[2],g=t[3];return(o=c*p+u*h+d*m+f*g)<0&&(o=-o,p=-p,h=-h,m=-m,g=-g),1-o>1e-6?(r=Math.acos(o),i=Math.sin(r),a=Math.sin((1-n)*r)/i,s=Math.sin(n*r)/i):(a=1-n,s=n),l[0]=a*c+s*p,l[1]=a*u+s*h,l[2]=a*d+s*m,l[3]=a*f+s*g,l}function quaternionToEuler(e,t){var n=t[0],r=t[1],o=t[2],i=t[3],a=Math.atan2(2*r*i-2*n*o,1-2*r*r-2*o*o),s=Math.asin(2*n*r+2*o*i),l=Math.atan2(2*n*i-2*r*o,1-2*n*n-2*o*o);e[0]=a/degToRads,e[1]=s/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,r=e[2]*degToRads,o=Math.cos(t/2),i=Math.cos(n/2),a=Math.cos(r/2),s=Math.sin(t/2),l=Math.sin(n/2),c=Math.sin(r/2);return[s*l*a+o*i*c,s*i*a+o*l*c,o*l*a-s*i*c,o*i*a-s*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}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 n=0,r=this.v.length;n<r;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=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,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),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,n,r){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,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,n,r){var o;this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var i=t.k.length;for(this.v=createTypedArray("float32",i),this.pv=createTypedArray("float32",i),this.vel=createTypedArray("float32",i),o=0;o<i;o+=1)this.v[o]=t.k[o]*this.mult,this.pv[o]=t.k[o];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,r){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=n||1,this.elem=e,this.container=r,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,n,r){var o;this.propType="multidimensional";var i,a,s,l,c=t.k.length;for(o=0;o<c-1;o+=1)t.k[o].to&&t.k[o].s&&t.k[o+1]&&t.k[o+1].s&&(i=t.k[o].s,a=t.k[o+1].s,s=t.k[o].to,l=t.k[o].ti,(2===i.length&&(i[0]!==a[0]||i[1]!==a[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],i[0]+s[0],i[1]+s[1])&&bez.pointOnLine2D(i[0],i[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===i.length&&(i[0]!==a[0]||i[1]!==a[1]||i[2]!==a[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],i[0]+s[0],i[1]+s[1],i[2]+s[2])&&bez.pointOnLine3D(i[0],i[1],i[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(t.k[o].to=null,t.k[o].ti=null),i[0]===a[0]&&i[1]===a[1]&&0===s[0]&&0===s[1]&&0===l[0]&&0===l[1]&&(2===i.length||i[2]===a[2]&&0===s[2]&&0===l[2])&&(t.k[o].to=null,t.k[o].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=n||1,this.elem=e,this.container=r,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),o=0;o<u;o+=1)this.v[o]=initFrame,this.pv[o]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,n,r,o){var i;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])i=new MultiDimensionalProperty(e,t,r,o);else switch(n){case 0:i=new KeyframedValueProperty(e,t,r,o);break;case 1:i=new KeyframedMultidimensionalProperty(e,t,r,o)}else i=new ValueProperty(e,t,r,o);return i.effectsSequence.length&&o.addDynamicProperty(i),i}};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 n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;
vendor: 7,625 bytes, line 31
31)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,n,r,o){var i;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":i=this.v;break;case"i":i=this.i;break;case"o":i=this.o;break;default:i=[]}(!i[r]||i[r]&&!o)&&(i[r]=pointPool.newElement()),i[r][0]=e,i[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,o,i,a,s){this.setXYAt(e,t,"v",a,s),this.setXYAt(n,r,"o",a,s),this.setXYAt(o,i,"i",a,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,o=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),o=1);var i,a=this._length-1,s=this._length;for(i=o;i<s;i+=1)e.setTripleAt(t[a][0],t[a][1],r[a][0],r[a][1],n[a][0],n[a][1],i,!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,n=e._length;for(t=0;t<n;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,n=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(n.setLength(r),n.c=e.c,t=0;t<r;t+=1)n.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 n},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,n=e._length;for(t=0;t<n;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,n){var r,o,i,a,s,l,c,u,d,f=n.lastIndex,p=this.keyframes;if(e<p[0].t-this.offsetTime)r=p[0].s[0],i=!0,f=0;else if(e>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],i=!0;else{for(var h,m,g,y=f,v=p.length-1,b=!0;b&&(h=p[y],!((m=p[y+1]).t-this.offsetTime>e));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},f=y,!(i=1===h.h)){if(e>=m.t-this.offsetTime)u=1;else if(e<h.t-this.offsetTime)u=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,g.__fnct=_),u=_((e-(h.t-this.offsetTime))/(m.t-this.offsetTime-(h.t-this.offsetTime)))}o=m.s?m.s[0]:h.e[0]}r=h.s[0]}for(l=t._length,c=r.i[0].length,n.lastIndex=f,a=0;a<l;a+=1)for(s=0;s<c;s+=1)d=i?r.i[a][s]:r.i[a][s]+(o.i[a][s]-r.i[a][s])*u,t.i[a][s]=d,d=i?r.o[a][s]:r.o[a][s]+(o.o[a][s]-r.o[a][s])*u,t.o[a][s]=d,d=i?r.v[a][s]:r.v[a][s]+(o.v[a][s]-r.v[a][s])*u,t.v[a][s]=d}function n(){var t=this.comp.renderedFrame-this.offsetTime,n=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,o=this._caching.lastFrame;return o!==e&&(o<n&&t<n||o>r&&t>r)||(this._caching.lastIndex=o<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function o(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var n,r=e._length;for(n=0;n<r;n+=1)if(e.v[n][0]!==t.v[n][0]||e.v[n][1]!==t.v[n][1]||e.o[n][0]!==t.o[n][0]||e.o[n][1]!==t.o[n][1]||e.i[n][0]!==t.i[n][0]||e.i[n][1]!==t.i[n][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 i(){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 n=this.effectsSequence.length;for(t=0;t<n;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,n){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 o=3===n?t.pt.k:t.ks.k;this.v=shapePool.clone(o),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function s(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,o,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===i?o.pt.k:o.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=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}a.prototype.interpolateShape=t,a.prototype.getValue=i,a.prototype.setVValue=o,a.prototype.addEffect=s,l.prototype.getValue=i,l.prototype.interpolateShape=t,l.prototype.setVValue=o,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:r,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],n=this.p.v[1],r=this.s.v[0]/2,o=this.s.v[1]/2,i=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-o,a.v[1][0]=i?t+r:t-r,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+o,a.v[3][0]=i?t-r:t+r,a.v[3][1]=n,a.i[0][0]=i?t-r*e:t+r*e,a.i[0][1]=n-o,a.i[1][0]=i?t+r:t-r,a.i[1][1]=n-o*e,a.i[2][0]=i?t+r*e:t-r*e,a.i[2][1]=n+o,a.i[3][0]=i?t-r:t+r,a.i[3][1]=n+o*e,a.o[0][0]=i?t+r*e:t-r*e,a.o[0][1]=n-o,a.o[1][0]=i?t+r:t-r,a.o[1][1]=n+o*e,a.o[2][0]=i?t-r*e:t+r*e,a.o[2][1]=n+o,a.o[3][0]=i?t-r:t+r,a.o[3][1]=n-o*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: 4,684 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:r,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,n,r,o=2*Math.floor(this.pt.v),i=2*Math.PI/o,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*o),f=2*Math.PI*l/(2*o),p=-Math.PI/2;p+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<o;e+=1){n=a?c:u,r=a?d:f;var m=(t=a?s:l)*Math.cos(p),g=t*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=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*r*n*h,g-v*r*n*h,m+y*r*n*h,g+v*r*n*h,e,!0),a=!a,p+=i*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),n=2*Math.PI/t,r=this.or.v,o=this.os.v,i=2*Math.PI*r/(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=r*Math.cos(a),c=r*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=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*i*o*s,c-d*i*o*s,l+u*i*o*s,c+d*i*o*s,e,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=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],n=this.s.v[0]/2,r=this.s.v[1]/2,o=bmMin(n,r,this.r.v),i=o*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+o,e+n,t-r+i,0,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-i,e+n,t+r-o,1,!0),0!==o?(this.v.setTripleAt(e+n-o,t+r,e+n-o,t+r,e+n-i,t+r,2,!0),this.v.setTripleAt(e-n+o,t+r,e-n+i,t+r,e-n+o,t+r,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-o,e-n,t+r-i,4,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+i,e-n,t-r+o,5,!0),this.v.setTripleAt(e-n+o,t-r,e-n+o,t-r,e-n+i,t-r,6,!0),this.v.setTripleAt(e+n-o,t-r,e+n-i,t-r,e+n-o,t-r,7,!0)):(this.v.setTripleAt(e-n,t+r,e-n+i,t+r,e-n,t+r,2),this.v.setTripleAt(e-n,t-r,e-n,t-r+i,e-n,t-r,3))):(this.v.setTripleAt(e+n,t-r+o,e+n,t-r+i,e+n,t-r+o,0,!0),0!==o?(this.v.setTripleAt(e+n-o,t-r,e+n-o,t-r,e+n-i,t-r,1,!0),this.v.setTripleAt(e-n+o,t-r,e-n+i,t-r,e-n+o,t-r,2,!0),this.v.setTripleAt(e-n,t-r+o,e-n,t-r+o,e-n,t-r+i,3,!0),this.v.setTripleAt(e-n,t+r-o,e-n,t+r-i,e-n,t+r-o,4,!0),this.v.setTripleAt(e-n+o,t+r,e-n+o,t+r,e-n+i,t+r,5,!0),this.v.setTripleAt(e+n-o,t+r,e+n-i,t+r,e+n-o,t+r,6,!0),this.v.setTripleAt(e+n,t+r-o,e+n,t+r-o,e+n,t+r-i,7,!0)):(this.v.setTripleAt(e-n,t-r,e-n+i,t-r,e-n,t-r,1,!0),this.v.setTripleAt(e-n,t+r,e-n,t+r-i,e-n,t+r,2,!0),this.v.setTripleAt(e+n,t+r,e+n-i,t+r,e+n,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),f={getShapeProp:function(e,t,n){var r;return 3===n||4===n?r=(3===n?t.pt:t.ks).k.length?new l(e,t,n):new a(e,t,n):5===n?r=new d(e,t):6===n?r=new c(e,t):7===n&&(r=new u(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}};return f}(),Matrix=function(){var e=Math.cos,t=Math.sin,n=Math.tan,r=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 i(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function a(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}
vendor: 9,654 bytes, line 31
31function s(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,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(n(e),n(t))}function d(r,o){var i=e(o),a=t(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function f(e,t,n){return n||0===n||(n=1),1===e&&1===t&&1===n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function p(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function h(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function m(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===o&&1===i&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*i+g[15]*p,g[14]=g[14]*u+g[15]*h,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],w=g[4],S=g[5],E=g[6],k=g[7],T=g[8],x=g[9],O=g[10],C=g[11],P=g[12],A=g[13],I=g[14],R=g[15];return g[0]=y*e+v*o+b*l+_*f,g[1]=y*t+v*i+b*c+_*p,g[2]=y*n+v*a+b*u+_*h,g[3]=y*r+v*s+b*d+_*m,g[4]=w*e+S*o+E*l+k*f,g[5]=w*t+S*i+E*c+k*p,g[6]=w*n+S*a+E*u+k*h,g[7]=w*r+S*s+E*d+k*m,g[8]=T*e+x*o+O*l+C*f,g[9]=T*t+x*i+O*c+C*p,g[10]=T*n+x*a+O*u+C*h,g[11]=T*r+x*s+O*d+C*m,g[12]=P*e+A*o+I*l+R*f,g[13]=P*t+A*i+I*c+R*p,g[14]=P*n+A*a+I*u+R*h,g[15]=P*r+A*s+I*d+R*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]||0!==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 v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(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 w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function k(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function T(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,n=-this.props[1]/e,r=-this.props[4]/e,o=this.props[0]/e,i=(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]=n,s.props[4]=r,s.props[5]=o,s.props[12]=i,s.props[13]=a,s}function x(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function O(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=x(e[t]);return r}function C(e,t,n){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=n[0],r[5]=n[1];else{var o=this.props[0],i=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*o+e[1]*a+l,r[1]=e[0]*i+e[1]*s+c,r[2]=t[0]*o+t[1]*a+l,r[3]=t[0]*i+t[1]*s+c,r[4]=n[0]*o+n[1]*a+l,r[5]=n[0]*i+n[1]*s+c}return r}function P(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var n=this.props;return Math.round(100*(e*n[0]+t*n[4]+n[12]))/100+","+Math.round(100*(e*n[1]+t*n[5]+n[13]))/100}function I(){for(var e=0,t=this.props,n="matrix3d(";e<16;)n+=r(1e4*t[e])/1e4,n+=15===e?")":",",e+=1;return n}function R(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function j(){var e=this.props;return"matrix("+R(e[0])+","+R(e[1])+","+R(e[4])+","+R(e[5])+","+R(e[12])+","+R(e[13])+")"}return function(){this.reset=o,this.rotate=i,this.rotateX=a,this.rotateY=s,this.rotateZ=l,this.skew=u,this.skewFromAxis=d,this.shear=c,this.scale=f,this.setTransform=p,this.translate=h,this.transform=m,this.multiply=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=P,this.applyToTriplePoints=C,this.applyToPointStringified=A,this.toCSS=I,this.to2dCSS=j,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=O,this.inversePoint=x,this.getInverseMatrix=T,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("&"),n=0;n<t.length;n+=1){var r=t[n].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[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,n){t[e]||(t[e]=n)},e.getModifier=function(e,n,r){return new t[e](n,r)},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: 5,093 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,n,r,o){var i=[];t<=1?i.push({s:e,e:t}):e>=1?i.push({s:e-1,e:t-1}):(i.push({s:e,e:1}),i.push({s:0,e:t-1}));var a,s,l=[],c=i.length;for(a=0;a<c;a+=1){var u,d;(s=i[a]).e*o<r||s.s*o>r+n||(u=s.s*o<=r?0:(s.s*o-r)/n,d=s.e*o>=r+n?1:(s.e*o-r)/n,l.push([u,d]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n,r,o;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),(t=this.s.v>1?1+i:this.s.v<0?0+i:this.s.v+i)>(n=this.e.v>1?1+i:this.e.v<0?0+i:this.e.v+i)){var a=t;t=n,n=a}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,l,c,u,d,f=this.shapes.length,p=0;if(n===t)for(o=0;o<f;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(1===n&&0===t||0===n&&1===t){if(this._mdf)for(o=0;o<f;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var h,m,g=[];for(o=0;o<f;o+=1)if((h=this.shapes[o]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=h.shape.paths)._length,d=0,!h.shape._mdf&&h.pathsData.length)d=h.totalShapeLength;else{for(c=this.releasePathsData(h.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(r.shapes[s]),c.push(u),d+=u.totalLength;h.totalShapeLength=d,h.pathsData=c}p+=d,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var y,v=t,b=n,_=0;for(o=f-1;o>=0;o-=1)if((h=this.shapes[o]).shape._mdf){for((m=h.localShapeCollection).releaseShapes(),2===this.m&&f>1?(y=this.calculateShapeEdges(t,n,h.totalShapeLength,_,p),_+=h.totalShapeLength):y=[[v,b]],l=y.length,s=0;s<l;s+=1){v=y[s][0],b=y[s][1],g.length=0,b<=1?g.push({s:h.totalShapeLength*v,e:h.totalShapeLength*b}):v>=1?g.push({s:h.totalShapeLength*(v-1),e:h.totalShapeLength*(b-1)}):(g.push({s:h.totalShapeLength*v,e:h.totalShapeLength}),g.push({s:0,e:h.totalShapeLength*(b-1)}));var w=this.addShapes(h,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var S=w.pop();this.addPaths(w,m),w=this.addShapes(h,g[1],S)}else this.addPaths(w,m),w=this.addShapes(h,g[1]);this.addPaths(w,m)}}h.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,r,o,i,a){o.setXYAt(t[0],t[1],"o",i),o.setXYAt(n[0],n[1],"i",i+1),a&&o.setXYAt(e[0],e[1],"v",i),o.setXYAt(r[0],r[1],"v",i+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,r){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),r&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var r,o,i,a,s,l,c,u,d=e.pathsData,f=e.shape.paths.shapes,p=e.shape.paths._length,h=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=shapePool.newElement(),s=0,u=0),m.push(n),r=0;r<p;r+=1){for(l=d[r].lengths,n.c=f[r].c,i=f[r].c?l.length:l.length+1,o=1;o<i;o+=1)if(h+(a=l[o-1]).addedLength<t.s)h+=a.addedLength,n.c=!1;else{if(h>t.e){n.c=!1;break}t.s<=h&&t.e>=h+a.addedLength?(this.addSegment(f[r].v[o-1],f[r].o[o-1],f[r].i[o],f[r].v[o],n,s,g),g=!1):(c=bez.getNewSegment(f[r].v[o-1],f[r].v[o],f[r].o[o-1],f[r].i[o],(t.s-h)/a.addedLength,(t.e-h)/a.addedLength,l[o-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),h+=a.addedLength,s+=1}if(f[r].c&&l.length){if(a=l[o-1],h<=t.e){var y=l[o-1].addedLength;t.s<=h&&t.e>=h+y?(this.addSegment(f[r].v[o-1],f[r].o[o-1],f[r].i[0],f[r].v[0],n,s,g),g=!1):(c=bez.getNewSegment(f[r].v[o-1],f[r].v[0],f[r].o[o-1],f[r].i[0],(t.s-h)/y,(t.e-h)/y,l[o-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;h+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),h>t.e)break;r<p-1&&(n=shapePool.newElement(),g=!0,m.push(n),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 n=t/100,r=[0,0],o=e._length,i=0;for(i=0;i<o;i+=1)r[0]+=e.v[i][0],r[1]+=e.v[i][1];r[0]/=o,r[1]/=o;var a,s,l,c,u,d,f=shapePool.newElement();for(f.c=e.c,i=0;i<o;i+=1)a=e.v[i][0]+(r[0]-e.v[i][0])*n,s=e.v[i][1]+(r[1]-e.v[i][1])*n,l=e.o[i][0]+(r[0]-e.o[i][0])*-n,c=e.o[i][1]+(r[1]-e.o[i][1])*-n,u=e.i[i][0]+(r[0]-e.i[i][0])*-n,d=e.i[i][1]+(r[1]-e.i[i][1])*-n,f.setTripleAt(a,s,l,c,u,d,i);return f
vendor: 9,147 bytes, line 31
31},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,l=this.amount.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l));i.shape.paths=i.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,n){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(n||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 r,o=t.or.k.length;for(r=0;r<o;r+=1)t.or.k[r].to=null,t.or.k[r].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 n;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 r,o;if(n=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/n,0),o=this.p.getValueAtTime(this.p.keyframes[0].t/n,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),o=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,o=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],o=[];var i=this.px,a=this.py;i._caching.lastFrame+i.offsetTime<=i.keyframes[0].t?(r[0]=i.getValueAtTime((i.keyframes[0].t+.01)/n,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),o[0]=i.getValueAtTime(i.keyframes[0].t/n,0),o[1]=a.getValueAtTime(a.keyframes[0].t/n,0)):i._caching.lastFrame+i.offsetTime>=i.keyframes[i.keyframes.length-1].t?(r[0]=i.getValueAtTime(i.keyframes[i.keyframes.length-1].t/n,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),o[0]=i.getValueAtTime((i.keyframes[i.keyframes.length-1].t-.01)/n,0),o[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0)):(r=[i.pv,a.pv],o[0]=i.getValueAtTime((i._caching.lastFrame+i.offsetTime-.01)/n,i.offsetTime),o[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime))}else r=o=e;this.v.rotate(-Math.atan2(r[1]-o[1],r[0]-o[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,n,r){return new t(e,n,r)}}}();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,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(0===e)return[];var r=t*t-4*e*n;if(r<0)return[];var o=-t/(2*e);if(0===r)return[o];var i=Math.sqrt(r)/(2*e);return[o-i,o+i]}function polynomialCoefficients(e,t,n,r){return[3*t-e-3*n+r,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,r,o){o&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),o&&pointEqual(n,r)&&(n=lerpPoint(e,r,2/3));var i=polynomialCoefficients(e[0],t[0],n[0],r[0]),a=polynomialCoefficients(e[1],t[1],n[1],r[1]);this.a=[i[0],a[0]],this.b=[i[1],a[1]],this.c=[i[2],a[2]],this.d=[i[3],a[3]],this.points=[e,t,n,r]}function extrema(e,t){var n=e.points[0][t],r=e.points[e.points.length-1][t];if(n>r){var o=r;r=n,n=o}for(var i=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<i.length;a+=1)if(i[a]>0&&i[a]<1){var s=e.point(i[a])[t];s<n?n=s:s>r&&(r=s)}return{min:n,max:r}}function intersectData(e,t,n){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+n)/2,t1:t,t2:n}}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,n,r,o,i){if(boxIntersect(e,t))if(n>=i||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)o.push([e.t,t.t]);else{var a=splitData(e),s=splitData(t);intersectsImpl(a[0],s[0],n+1,r,o,i),intersectsImpl(a[0],s[1],n+1,r,o,i),intersectsImpl(a[1],s[0],n+1,r,o,i),intersectsImpl(a[1],s[1],n+1,r,o,i)}}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,n,r){var o=[e[0],e[1],1],i=[t[0],t[1],1],a=[n[0],n[1],1],s=[r[0],r[1],1],l=crossProduct(crossProduct(o,i),crossProduct(a,s));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}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,n,r,o,i,a){var s=n-Math.PI/2,l=n+Math.PI/2,c=t[0]+Math.cos(n)*r*o,u=t[1]-Math.sin(n)*r*o;e.setTripleAt(c,u,c+Math.cos(s)*i,u-Math.sin(s)*i,c+Math.cos(l)*a,u-Math.sin(l)*a,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*n[0]-Math.sin(r)*n[1],Math.sin(r)*n[0]+Math.cos(r)*n[1]]}function getProjectingAngle(e,t){var n=0===t?e.length()-1:t-1,r=(t+1)%e.length(),o=getPerpendicularVector(e.v[n],e.v[r]);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,n,r,o,i,a){var s=getProjectingAngle(t,n),l=t.v[n%t._length],c=t.v[0===n?t._length-1:n-1],u=t.v[(n+1)%t._length],d=2===i?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,
vendor: 18,531 bytes, line 31
31f=2===i?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],s,a,r,f/(2*(o+1)),d/(2*(o+1)),i)}function zigZagSegment(e,t,n,r,o,i){for(var a=0;a<r;a+=1){var s=(a+1)/(r+1),l=2===o?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,i,n,l/(2*(r+1)),l/(2*(r+1)),o),i=-i}return i}function linearOffset(e,t,n){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,n),polarOffset(t,r,n)]}function offsetSegment(e,t){var n,r,o,i,a,s,l;n=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],o=(l=linearOffset(e.points[1],e.points[2],t))[0],i=l[1],a=(l=linearOffset(e.points[2],e.points[3],t))[0],s=l[1];var c=lineIntersection(n,r,o,i);null===c&&(c=r);var u=lineIntersection(a,s,o,i);return null===u&&(u=a),new PolynomialBezier(n,c,u,s)}function joinLines(e,t,n,r,o){var i=t.points[3],a=n.points[0];if(3===r)return i;if(pointEqual(i,a))return i;if(2===r){var s=-t.tangentAngle(1),l=-n.tangentAngle(0)+Math.PI,c=lineIntersection(i,polarOffset(i,s+Math.PI/2,100),a,polarOffset(a,s+Math.PI/2,100)),u=c?pointDistance(c,i):pointDistance(i,a)/2,d=polarOffset(i,s,2*u*roundCorner);return e.setXYAt(d[0],d[1],"o",e.length()-1),d=polarOffset(a,l,2*u*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],d[0],d[1],e.length()),a}var f=lineIntersection(pointEqual(i,t.points[2])?t.points[0]:t.points[2],i,a,pointEqual(a,n.points[1])?n.points[3]:n.points[1]);return f&&pointDistance(f,i)<o?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):i}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),r=t.slice(),o=getIntersection(e[e.length-1],t[0]);return o&&(n[e.length-1]=e[e.length-1].split(o[0])[0],r[0]=t[0].split(o[1])[1]),e.length>1&&t.length>1&&(o=getIntersection(e[0],t[t.length-1]))?[[e[0].split(o[0])[0]],[t[t.length-1].split(o[1])[1]]]:[n,r]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=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 n,r,o,i,a=e.inflectionPoints();if(0===a.length)return[offsetSegment(e,t)];if(1===a.length||floatEqual(a[1],1))return n=(o=e.split(a[0]))[0],r=o[1],[offsetSegment(n,t),offsetSegment(r,t)];n=(o=e.split(a[0]))[0];var s=(a[1]-a[0])/(1-a[0]);return i=(o=o[1].split(s))[0],r=o[1],[offsetSegment(n,t),offsetSegment(i,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",o=t.length,i=0;i<o;i+=1)switch(t[i].toLowerCase()){case"italic":r="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200"}return{style:r,weight:e.fWeight||n}}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,n,r,o,i){var a=i?-1:1,s=r.s.v[0]+(1-r.s.v[0])*(1-o),l=r.s.v[1]+(1-r.s.v[1])*(1-o);e.translate(r.p.v[0]*a*o,r.p.v[1]*a*o,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*a*o),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),n.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),n.scale(i?1/s:s,i?1/l:l),n.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,r){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;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 n,r=e.length;for(n=0;n<r;n+=1)e[n]._render=t,"gr"===e[n].ty&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,r,o,i,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(i=0,r=0;r<=this._groups.length-1;r+=1){if(s=i<l,this._groups[r]._render=s,this.changeGroupRender(this._groups[r].it,s),!s){var u=this.elemsData[r].it,d=u[u.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}i+=1}this._currentCopies=l;var f=this.o.v,p=f%1,h=f>0?Math.floor(f):Math.ceil(f),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 v,b,_=0;if(f>0){for(;_<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(f<0){for(;_>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(r=1===this.data.m?0:this._currentCopies-1,o=1===this.data.m?1:-1,i=this._currentCopies;i;){if(b=(n=(t=this.elemsData[r].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)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===o||r!==this._currentCopies-1&&-1===o)&&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]),v=0;v<b;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)n[v]=this.matrix.props[v];_+=1,i-=1,r+=o}}else for(i=this._currentCopies,r=0,o=1;i;)n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,i-=1,r+=o;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 n,r=shapePool.newElement();r.c=e.c;var o,i,a,s,l,c,u,d,f,p,h,m,g=e._length,y=0;for(n=0;n<g;n+=1)o=e.v[n],a=e.o[n],i=e.i[n],o[0]===a[0]&&o[1]===a[1]&&o[0]===i[0]&&o[1]===i[1]?0!==n&&n!==g-1||e.c?(s=0===n?e.v[g-1]:e.v[n-1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=h=o[0]+(s[0]-o[0])*c,d=m=o[1]-(o[1]-s[1])*c,f=u-(u-o[0])*roundCorner,p=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,f,p,h,m,y),y+=1,s=n===g-1?e.v[0]:e.v[n+1],c=(l=Math.sqrt(Math.pow(o[0]-s[0],2)+Math.pow(o[1]-s[1],2)))?Math.min(l/2,t)/l:0,u=f=o[0]+(s[0]-o[0])*c,d=p=o[1]+(s[1]-o[1])*c,h=u-(u-o[0])*roundCorner,m=d-(d-o[1])*roundCorner,r.setTripleAt(u,d,f,p,h,m,y),y+=1):(r.setTripleAt(o[0],o[1],a[0],a[1],i[0],i[1],y),y+=1):(r.setTripleAt(e.v[n][0],e.v[n][1],e.o[n][0],e.o[n][1],e.i[n][0],e.i[n][1],y),y+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,l=this.rd.v;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l));i.shape.paths=i.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,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var r=Math.sqrt(n);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].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),n=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),o=lerpPoint(t,n,e),i=lerpPoint(n,r,e),a=lerpPoint(o,i,e);return[new PolynomialBezier(this.points[0],t,o,a,!0),new PolynomialBezier(a,i,r,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,n){void 0===t&&(t=2),void 0===n&&(n=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,n),r},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],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,n,r){var o=e._length,i=shapePool.newElement();if(i.c=e.c,e.c||(o-=1),0===o)return i;var a=-1,s=PolynomialBezier.shapeSegment(e,0);zigZagCorner(i,e,0,t,n,r,a);for(var l=0;l<o;l+=1)a=zigZagSegment(i,s,t,n,r,-a),s=l!==o-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%o):null,zigZagCorner(i,e,l+1,t,n,r,a);return i},ZigZagModifier.prototype.processShapes=function(e){var t,n,r,o,i,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(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l,c,u));i.shape.paths=i.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,n,r){var o=shapePool.newElement();o.c=e.c;var i,a,s,l=e.length();e.c||(l-=1);var c=[];for(i=0;i<l;i+=1)s=PolynomialBezier.shapeSegment(e,i),c.push(offsetSegmentSplit(s,t));if(!e.c)for(i=l-1;i>=0;i-=1)s=PolynomialBezier.shapeSegmentInverted(e,i),c.push(offsetSegmentSplit(s,t));c=pruneIntersections(c);var u=null,d=null;for(i=0;i<c.length;i+=1){var f=c[i];for(d&&(u=joinLines(o,d,f[0],n,r)),d=f[f.length-1],a=0;a<f.length;a+=1)s=f[a],u&&pointEqual(s.points[0],u)?o.setXYAt(s.points[1][0],s.points[1][1],"o",o.length()-1):o.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],o.length()),o.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],o.length()),u=s.points[3]}return c.length&&joinLines(o,d,c[0][0],n,r),o},OffsetPathModifier.prototype.processShapes=function(e){var t,n,r,o,i,a,s=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(n=0;n<s;n+=1){if(a=(i=this.shapes[n]).localShapeCollection,i.shape._mdf||this._mdf||e)for(a.releaseShapes(),i.shape._mdf=!0,t=i.shape.paths.shapes,o=i.shape.paths._length,r=0;r<o;r+=1)a.addShape(this.processPath(t[r],l,u,c));i.shape.paths=i.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 n=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function o(e,t){var n=createTag("span");n.setAttribute("aria-hidden",!0),n.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(r),document.body.appendChild(n);var o=r.offsetWidth;return r.style.fontFamily=function(e){var t,n=e.split(","),r=n.length,o=[];for(t=0;t<r;t+=1)"sans-serif"!==n[t]&&"monospace"!==n[t]&&o.push(n[t]);return o.join(",")}(e)+", "+t,{node:r,w:o,parent:n}}function i(e,t){var n,r=document.body&&t?"svg":"canvas",o=getFontProperties(e);if("svg"===r){var i=createNS("text");i.style.fontSize="100px",i.setAttribute("font-family",e.fFamily),i.setAttribute("font-style",o.style),i.setAttribute("font-weight",o.weight),i.textContent="1",e.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",e.fClass)):i.style.fontFamily=e.fFamily,t.appendChild(i),n=i}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=o.style+" "+o.weight+" 100px "+e.fFamily,n=a}return{measureText:function(e){return"svg"===r?(n.textContent=e,n.getComputedTextLength()):n.measureText(e).width}}}function a(e){var t=0,n=e.charCodeAt(0);if(n>=55296&&n<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(n-55296)+r-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 n=e.toString(16)+t.toString(16);return-1!==r.indexOf(n)},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 r=a(e.substr(t,2));if(r!==n)return!1;var o=0;for(t+=2;o<5;){if((r=a(e.substr(t,2)))<917601||r>917626)return!1;o+=1,t+=2}return 917631===a(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=n;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var n,r,o=e.length,i=this.chars.length;for(t=0;t<o;t+=1){for(n=0,r=!1;n<i;)this.chars[n].style===e[t].style&&this.chars[n].fFamily===e[t].fFamily&&this.chars[n].ch===e[t].ch&&(r=!0),n+=1;r||(this.chars.push(e[t]),i+=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=i(e),e.cache={}}),void(this.fonts=e.list);var n,r=e.list,a=r.length,s=a;for(n=0;n<a;n+=1){var l,c,u=!0;if(r[n].loaded=!1,r[n].monoCase=o(r[n].fFamily,"monospace"),r[n].sansCase=o(r[n].fFamily,"sans-serif"),r[n].fPath){if("p"===r[n].fOrigin||3===r[n].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[n].fFamily+'"], style[f-origin="3"][f-family="'+r[n].fFamily+'"]')).length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",r[n].fOrigin),d.setAttribute("f-origin",r[n].origin),d.setAttribute("f-family",r[n].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(d)}}else if("g"===r[n].fOrigin||1===r[n].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(r[n].fPath)&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",r[n].fOrigin),f.setAttribute("f-origin",r[n].origin),f.type="text/css",f.rel="stylesheet",f.href=r[n].fPath,document.body.appendChild(f)}}else if("t"===r[n].fOrigin||2===r[n].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[n].fPath===l[c].src&&(u=!1);if(u){var p=createTag("link");p.setAttribute("f-forigin",r[n].fOrigin),p.setAttribute("f-origin",r[n].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[n].fPath),t.appendChild(p
vendor: 13,441 bytes, line 31
31)}}}else r[n].loaded=!0,s-=1;r[n].helper=i(r[n],t),r[n].cache={},this.fonts.push(r[n])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,n,r){for(var o=0,i=this.chars.length;o<i;){if(this.chars[o].ch===t&&this.chars[o].style===n&&this.chars[o].fFamily===r)return this.chars[o];o+=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,n,r)),e},getFontByName:function(e){for(var t=0,n=this.fonts.length;t<n;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,n){var r=this.getFontByName(t),o=e;if(!r.cache[o]){var i=r.helper;if(" "===e){var a=i.measureText("|"+e+"|"),s=i.measureText("||");r.cache[o]=(a-s)/100}else r.cache[o]=i.measureText(e)/100}return r.cache[o]*n},checkLoadedFonts:function(){var e,t,n,r=this.fonts.length,o=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?o-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,n=this.fonts[e].monoCase.w,t.offsetWidth!==n?(o-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,n=this.fonts[e].sansCase.w,t.offsetWidth!==n&&(o-=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!==o&&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,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n,r=e.ef||[];this.effectElements=[];var o,i=r.length;for(n=0;n<i;n+=1)o=new GroupEffect(r[n],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),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 n;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,o=this.data.ef.length,i=this.data.ef;for(n=0;n<o;n+=1){switch(r=null,i[n].ty){case 0:r=new SliderEffect(i[n],t,this);break;case 1:r=new AngleEffect(i[n],t,this);break;case 2:r=new ColorEffect(i[n],t,this);break;case 3:r=new PointEffect(i[n],t,this);break;case 4:case 7:r=new CheckboxEffect(i[n],t,this);break;case 10:r=new LayerIndexEffect(i[n],t,this);break;case 11:r=new MaskIndexEffect(i[n],t,this);break;case 5:r=new EffectsManager(i[n],t,this);break;default:r=new NoValueEffect(i[n],t,this)}r&&this.effectElements.push(r)}},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"),n=e("effects"),r=e("shape"),o=e("text"),i=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=n.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=i(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=o(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,n){this.globalData=t,this.comp=n,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 n,r=this.dynamicProperties.length;for(n=0;n<r;n+=1)(t||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._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 n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},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,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.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 n,r=e.length,o=this.layers.length;for(t=0;t<r;t+=1)for(n=0;n<o;){if(this.layers[n].id===e[t].id){this.layers[n]=e[t];break}n+=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,n){for(var r=this.elements,o=this.layers,i=0,a=o.length;i<a;)o[i].ind==t&&(r[i]&&!0!==r[i]?(n.push(r[i]),r[i].setAsParent(),void 0!==o[i].parent?this.buildElementParenting(e,o[i].parent,n):e.setHierarchy(n)):(this.buildItem(i),this.addPendingElement(e))),i+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,n=e.shift();if("number"==typeof n)t=this.elements[n];else{var r,o=this.elements.length;for(r=0;r<o;r+=1)if(this.elements[r].data.nm===n){t=this.elements[r];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,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,o,i=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var s,l,c,u,d,
31f,p=this.masksProperties,h=0,m=[],g=createElementID(),y="clipPath",v="clip-path";
vendor: 4,040 bytes, line 31
31for(r=0;r<a;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(y="mask",v="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==h?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)),o=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:o,lastPath:""},i.appendChild(o);else{var b;if(h+=1,o.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),b=createElementID(),(u=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),i.appendChild(u),o.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(d=null,f=null),this.storedData[r]={elem:o,x:f,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===p[r].mode){l=m.length;var _=createNS("g");for(s=0;s<l;s+=1)_.appendChild(m[s]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",g+"_"+h),w.appendChild(o),i.appendChild(w),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+h+")"),m.length=0,m.push(_)}else m.push(o);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);h>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),i.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,n=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<r;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),n=0;n<r;n+=1)t.multiply(this.hierarchy[n].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 n=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(n),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;n.multiply(r)}n.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)o*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=o}}}
vendor: 3,200 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,n=e.length;for(t=0;t<n;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var n,r=!0,o=this.comp;r;)o.finalTransform?(o.data.hasMask&&t.splice(0,0,o.finalTransform),o=o.comp):r=!1;var i,a=t.length;for(n=0;n<a;n+=1)i=t[n].mat.applyToPointArray(0,0,0),e=[e[0]-i[0],e[1]-i[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,n=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;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",n.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var o=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+")")),o.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,n){var r,o,i=" M"+t.v[0][0]+","+t.v[0][1];for(o=t._length,r=1;r<o;r+=1)i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&o>1&&(i+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var a="";n.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",a)),n.lastPath=i}},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 n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},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}()
vendor: 16,203 bytes, line 31
31,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,n,r="SourceGraphic",o=e.data.ef?e.data.ef.length:0,i=createElementID(),a=filtersFactory.createFilter(i,!0),s=0;for(this.filters=[],t=0;t<o;t+=1){n=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(n=new(0,registeredEffects$1[l].effect)(a,e.effectsManager.effectElements[t],e,idPrefix+s,r),r=idPrefix+s,registeredEffects$1[l].countsAsEffect&&(s+=1)),n&&this.filters.push(n)}s&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+i+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),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,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},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 n=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(n.setAttribute("id",o),n.appendChild(r),this.globalData.defs.appendChild(n),this.checkMasks()){var i=createNS("g");i.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),i.appendChild(this.layerElement),this.transformedElement=i,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}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,n,r,o,i=this.layerId+"_"+e;if(1===e||3===e){var a=createNS("mask");a.setAttribute("id",i),a.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==e||(a.setAttribute("mask-type","luminance"),t=createElementID(),n=filtersFactory.createFilter(t),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(o=createNS("g")).appendChild(r),a.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var s=createNS("mask");s.setAttribute("id",i),s.setAttribute("mask-type","alpha");var l=createNS("g");s.appendChild(l),t=createElementID(),n=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),n.appendChild(c);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),c.appendChild(u),this.globalData.defs.appendChild(n);var d=createNS("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(d),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(s.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),l.appendChild(d),o.appendChild(this.layerElement),l.appendChild(o)),this.globalData.defs.appendChild(s)}this.matteMasks[e]=i}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,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),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,n=this.shapeModifiers.length;for(t=0;t<n;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,n=0,r=t.length;n<r;){if(t[n].elem===e)return t[n].pos;n+=1}return 0},addProcessedElement:function(e,t){for(var n=this.processedElements,r=n.length;r;)if(n[r-=1].elem===e)return void(n[r].pos=t);n.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,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var r=0,o=e.length;r<o;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=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,n,r){var o;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var i,a=t.length||0;for(o=0;o<a;o+=1)i=PropertyFactory.getProp(e,t[o].v,0,0,this),this.k=i.k||this.k,this.dataProps[o]={n:t[o].n,p:i};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,n){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=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,n){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=n}function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=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",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}function SVGGradientStrokeStyleData(e,t,n){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,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},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,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<n;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 n=0,r=this.o.length/2;n<r;){if(Math.abs(e[4*n]-e[4*t+2*n])>.01)return!1;n+=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,n,r,o=4*this.data.p;for(t=0;t<o;t+=1)n=t%4==0?100:255,r=Math.round(this.prop.v[t]*n),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(o=this.prop.v.length,t=4*this.data.p;t<o;t+=1)n=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){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=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",n),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var o,i,a,s=[];for(a=4*t.g.p,i=0;i<a;i+=4)o=createNS("stop"),r.appendChild(o),s.push(o);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=r,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,r,o,i=createNS("mask"),a=createNS("path");i.appendChild(a);var s=createElementID(),l=createElementID();i.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),o=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(r=4*e.g.p;r<o;r+=2)(n=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);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=i,this.ost=u,this.maskId=l,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,n,r){if(0===t)return"";var o,i=e.o,a=e.i,s=e.v,l=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(o=1;o<t;o+=1)l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[o][0],a[o][1])+" "+r.applyToPointStringified(s[o][0],s[o][1]);return n&&t&&(l+=" C"+r.applyToPointStringified(i[o-1][0],i[o-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function n(e,t,n){(n||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(n||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function o(n,r,o){var i,a,s,l,c,u,d,
31f,p,h,m=r.styles.length,g=r.lvl;for(u=0;
vendor: 5,828 bytes, line 31
31u<m;u+=1){if(l=r.sh._mdf||o,r.styles[u].lvl<g){for(f=t.reset(),p=g-r.styles[u].lvl,h=r.transformers.length-1;!l&&p>0;)l=r.transformers[h].mProps._mdf||l,p-=1,h-=1;if(l)for(p=g-r.styles[u].lvl,h=r.transformers.length-1;p>0;)f.multiply(r.transformers[h].mProps.v),p-=1,h-=1}else f=e;if(a=(d=r.sh.paths)._length,l){for(s="",i=0;i<a;i+=1)(c=d.shapes[i])&&c._length&&(s+=buildShapeString(c,c._length,c.c,f));r.caches[u]=s}else s=r.caches[u];r.styles[u].d+=!0===n.hd?"":s,r.styles[u]._mdf=l||r.styles[u]._mdf}}function i(e,t,n){var r=t.style;(t.c._mdf||n)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function a(e,t,n){s(e,t,n),l(0,t,n)}function s(e,t,n){var r,o,i,a,s,l=t.gf,c=t.g._hasOpacity,u=t.s.v,d=t.e.v;if(t.o._mdf||n){var f="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(f,t.o.v)}if(t.s._mdf||n){var p=1===e.t?"x1":"cx",h="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(h,u[1]),c&&!t.g._collapsable&&(t.of.setAttribute(p,u[0]),t.of.setAttribute(h,u[1]))}if(t.g._cmdf||n){r=t.cst;var m=t.g.c;for(i=r.length,o=0;o<i;o+=1)(a=r[o]).setAttribute("offset",m[4*o]+"%"),a.setAttribute("stop-color","rgb("+m[4*o+1]+","+m[4*o+2]+","+m[4*o+3]+")")}if(c&&(t.g._omdf||n)){var g=t.g.o;for(i=(r=t.g._collapsable?t.cst:t.ost).length,o=0;o<i;o+=1)a=r[o],t.g._collapsable||a.setAttribute("offset",g[2*o]+"%"),a.setAttribute("stop-opacity",g[2*o+1])}if(1===e.t)(t.e._mdf||n)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||n)&&(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[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||n){s||(s=Math.sqrt(Math.pow(u[0]-d[0],2)+Math.pow(u[1]-d[1],2)));var y=Math.atan2(d[1]-u[1],d[0]-u[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=s*v,_=Math.cos(y+t.a.v)*b+u[0],w=Math.sin(y+t.a.v)*b+u[1];l.setAttribute("fx",_),l.setAttribute("fy",w),c&&!t.g._collapsable&&(t.of.setAttribute("fx",_),t.of.setAttribute("fy",w))}}function l(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||n)&&o.dashStr&&(r.pElem.setAttribute("stroke-dasharray",o.dashStr),r.pElem.setAttribute("stroke-dashoffset",o.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return s;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,o,i){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=o,this.p=i,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,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,n,r,o=this.shapes.length,i=this.stylesList.length,a=[],s=!1;for(n=0;n<i;n+=1){for(r=this.stylesList[n],s=!1,a.length=0,e=0;e<o;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(a.push(t),s=t._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,r=new SVGStyleData(e,t),o=r.pElem;return"st"===e.ty?n=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?n=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(n=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),o.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))):"no"===e.ty&&(n=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),o.setAttribute("fill-opacity","0"),1===e.lj&&o.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&o.setAttribute("fill-rule","evenodd"),e.ln&&o.setAttribute("id",e.ln),e.cl&&o.setAttribute("class",e.cl),e.bm&&(o.style["mix-blend-mode"]=getBlendM
vendor: 28,485 bytes, line 31
31ode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,n),n},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 n=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var o=new SVGShapeData(t,n,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,r=this.animatedContents.length;n<r;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,n=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)-1!==n.indexOf(this.stylesList[t])||this.stylesList[t].closed||n.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,n,r,o,i,a){var s,l,c,u,d,f,p=[].concat(i),h=e.length-1,m=[],g=[];for(s=h;s>=0;s-=1){if((f=this.searchProcessedElement(e[s]))?t[s]=n[f-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)f?t[s].style.closed=e[s].hd:t[s]=this.createStyleElement(e[s],o),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(f)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,o+1,p,a),e[s]._render&&t[s].gr.parentNode!==r&&r.appendChild(t[s].gr)}else"tr"===e[s].ty?(f||(t[s]=this.createTransformElement(e[s],r)),u=t[s].transform,p.push(u)):"sh"===e[s].ty||"rc"===e[s].ty||"el"===e[s].ty||"sr"===e[s].ty?(f||(t[s]=this.createShapeElement(e[s],p,o)),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?(f?(d=t[s]).closed=!1:((d=ShapeModifiers.getModifier(e[s].ty)).init(this,e[s]),t[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"===e[s].ty&&(f?(d=t[s]).closed=!0:(d=ShapeModifiers.getModifier(e[s].ty),t[s]=d,d.init(this,e,s,t),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(e[s],s+1)}for(h=m.length,s=0;s<h;s+=1)m[s].closed=!0;for(h=g.length,s=0;s<h;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,n=this.animatedContents.length;for(e=0;e<n;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,n,r,o,i){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!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==o&&(this.m=o,this._mdf.m=!0,a=!0),!i.length||this.p[0]===i[0]&&this.p[1]===i[1]&&this.p[4]===i[4]&&this.p[5]===i[5]&&this.p[12]===i[12]&&this.p[13]===i[13]||(this.p=i,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);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,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var o=this.effectsSequence.length,i=e||this.data.d.k[this.keysIndex].s;for(r=0;r<o;r+=1)i=n!==this.keysIndex?this.effectsSequence[r](i,i.t):this.effectsSequence[r](this.currentData,i.t);t!==i&&this.setCurrentData(i),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,n=0,r=e.length;n<=r-1&&!(n===r-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],o=0,i=e.length,a=!1,s=!1,l="";o<i;)a=s,s=!1,t=e.charCodeAt(o),l=e.charAt(o),FontManager.isCombinedCharacter(t)?a=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,o)?l=e.substr(o,14):(n=e.charCodeAt(o+1))>=56320&&n<=57343&&(FontManager.isModifier(t,n)?(l=e.substr(o,2),a=!0):l=FontManager.isFlagEmoji(e.substr(o,4))?e.substr(o,4):e.substr(o,2)):t>56319?(n=e.charCodeAt(o+1),FontManager.isVariationSelector(t)&&(a=!0)):FontManager.isZeroWidthJoiner(t)&&(a=!0,s=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),o+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,o,i,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],d=0,f=c.m.g,p=0,h=0,m=0,g=[],y=0,v=0,b=l.getFontByName(e.f),_=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var S,E=e.tr/1e3*e.finalSize;if(e.sz)for(var k,T,x=!0,O=e.sz[0],C=e.sz[1];x;){k=0,y=0,n=(T=this.buildFinalText(e.t)).length,E=e.tr/1e3*e.finalSize;var P=-1;for(t=0;t<n;t+=1)S=T[t].charCodeAt(0),r=!1," "===T[t]?P=t:13!==S&&3!==S||(y=0,r=!0,k+=e.finalLineHeight||1.2*e.finalSize),l.chars?(s=l.getCharData(T[t],b.fStyle,b.fFamily),_=r?0:s.w*e.finalSize/100):_=l.measureText(T[t],e.f,e.finalSize),y+_>O&&" "!==T[t]?(-1===P?n+=1:t=P,k+=e.finalLineHeight||1.2*e.finalSize,T.splice(t,P===t?1:0,"\r"),P=-1,y=0):(y+=_,y+=E);k+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&C<k?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=T,n=e.finalText.length,x=!1)}y=-E,_=0;var A,I=0;for(t=0;t<n;t+=1)if(r=!1,13===(S=(A=e.finalText[t]).charCodeAt(0))||3===S?(I=0,g.push(y),v=y>v?y:v,y=-2*E,o="",r=!0,m+=1):o=A,l.chars?(s=l.getCharData(A,b.fStyle,l.getFontByName(e.f).fFamily),_=r?0:s.w*e.finalSize/100):_=l.measureText(o,e.f,e.finalSize)," "===A?I+=_+E:(y+=_+E+I,I=0),u.push({l:_,an:_,add:p,n:r,anIndexes:[],val:o,line:m,animatorJustifyOffset:0}),2==f){if(p+=_,""===o||" "===o||t===n-1){for(""!==o&&" "!==o||(p-=_);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=_,h+=1;d+=1,p=0}}else if(3==f){if(p+=_,""===o||t===n-1){for(""===o&&(p-=_);h<=t;)u[h].an=p,u[h].ind=d,u[h].extra=_,h+=1;p=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(e.l=u,v=y>v?y:v,g.push(y),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,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 R,j,M,D,N=c.a;a=N.length;var L=[];for(i=0;i<a;i+=1){for((R=N[i]).a.sc&&(e.strokeColorAnim=!0),R.a.sw&&(e.strokeWidthAnim=!0),(R.a.fc||R.a.fh||R.a.fs||R.a.fb)&&(e.fillColorAnim=!0),D=0,M=R.s.b,t=0;t<n;t+=1)(j=u[t]).anIndexes[i]=D,(1==M&&""!==j.val||2==M&&""!==j.val&&" "!==j.val||3==M&&(j.n||" "==j.val||t==n-1)||4==M&&(j.n||t==n-1))&&(1===R.s.rn&&L.push(D),D+=1);c.a[i].s.totalChars=D;var F,B=-1;if(1===R.s.rn)for(t=0;t<n;t+=1)B!=(j=u[t]).anIndexes[i]&&(B=j.anIndexes[i],F=L.splice(Math.floor(Math.random()*L.length),1)[0]),j.anIndexes[i]=F}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),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,n=Math.floor;function r(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 r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var o=0,i=0,a=1,s=1;this.ne.v>0?o=this.ne.v/100:i=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:s=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(o,i,a,s).get,c=0,u=this.finalS,d=this.finalE,f=this.data.sh;if(2===f)c=l(c=d===u?r>=d?1:0:e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(3===f)c=l(c=d===u?r>=d?0:1:1-e(0,t(.5/(d-u)+(r-u)/(d-u),1)));else if(4===f)d===u?c=0:(c=e(0,t(.5/(d-u)+(r-u)/(d-u),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===f){if(d===u)c=0;else{var p=d-u,h=-p/2+(r=t(e(0,r+.5-u),d-u)),m=p/2;c=Math.sqrt(1-h*h/(m*m))}c=l(c)}else 6===f?(d===u?c=0:(r=t(e(0,r+.5-u),d-u),c=(1+Math.cos(Math.PI+2*Math.PI*r/(d-u)))/2),c=l(c)):(r>=n(u)&&(c=e(0,t(r-u<0?t(d,1)-(u-r):d-r,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,n=this.o.v/t,r=this.s.v/t+n,o=this.e.v/t+n;if(r>o){var i=r;r=o,o=i}this.finalS=r,this.finalE=o}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},o=PropertyFactory.getProp,i=t.a;this.a={r:i.r?o(e,i.r,0,degToRads,n):r,rx:i.rx?o(e,i.rx,0,degToRads,n):r,ry:i.ry?o(e,i.ry,0,degToRads,n):r,sk:i.sk?o(e,i.sk,0,degToRads,n):r,sa:i.sa?o(e,i.sa,0,degToRads,n):r,s:i.s?o(e,i.s,1,.01,n):r,a:i.a?o(e,i.a,1,0,n):r,o:i.o?o(e,i.o,0,.01,n):r,p:i.p?o(e,i.p,1,0,n):r,sw:i.sw?o(e,i.sw,0,0,n):r,sc:i.sc?o(e,i.sc,1,0,n):r,fc:i.fc?o(e,i.fc,1,0,n):r,fh:i.fh?o(e,i.fh,0,0,n):r,fs:i.fs?o(e,i.fs,0,.01,n):r,fb:i.fb?o(e,i.fb,0,.01,n):r,t:i.t?o(e,i.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<n;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:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(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=r(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 n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,y,v,b,_,w=this._moreOptions.alignment.v,S=this._animatorsData,E=this._textData,k=this.mHelper,T=this._renderType,x=this.renderedLetters.length,O=e.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var C,P=_.v;for(this._pathData.r.v&&(P=P.reverse()),a={tLength:0,segments:[]},i=P._length-1,y=0,o=0;o<i;o+=1)C=bez.buildBezierData(P.v[o],P.v[o+1],[P.o[o][0]-P.v[o][0],P.o[o][1]-P.v[o][1]],[P.i[o+1][0]-P.v[o+1][0],P.i[o+1][1]-P.v[o+1][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength;o=i,_.v.c&&(C=bez.buildBezierData(P.v[o],P.v[0],[P.o[o][0]-P.v[o][0],P.o[o][1]-P.v[o][1]],[P.i[0][0]-P.v[0][0],P.i[0][1]-P.v[0][1]]),a.tLength+=C.segmentLength,a.segments.push(C),y+=C.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,f=0,d=1,c=0,u=!0,m=a.segments,s<0&&_.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),d=(h=m[f=m.length-1].points).length-1;s<0;)s+=h[d].partialLength,(d-=1)<0&&(d=(h=m[f-=1].points).length-1);p=(h=m[f].points)[d-1],g=(l=h[d]).partialLength}i=O.length,n=0,r=0;var A,I,R,j,M,D=1.2*e.finalSize*.714,N=!0;R=S.length;var L,F,B,z,U,H,V,q,G,W,$,Y,K=-1,J=s,Q=f,X=d,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ne=0,re=0,oe=2===e.j?-.5:-1,ie=0,ae=!0;for(o=0;o<i;o+=1)if(O[o].n){for(ne&&(ne+=re);ie<o;)O[ie].animatorJustifyOffset=ne,ie+=1;ne=0,ae=!0}else{for(I=0;I<R;I+=1)(A=S[I].a).t.propType&&(ae&&2===e.j&&(re+=A.t.v*oe),(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?ne+=A.t.v*M[0]*oe:ne+=A.t.v*M*oe);ae=!1}for(ne&&(ne+=re);ie<o;)O[ie].animatorJustifyOffset=ne,ie+=1}for(o=0;o<i;o+=1){if(k.reset(),z=1,O[o].n)n=0,r+=e.yOffset,r+=N?1:0,s=J,N=!1,this._hasMaskedPath&&(d=X,p=(h=m[f=Q].points)[d-1],g=(l=h[d]).partialLength,c=0),ee="",$="",G="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==O[o].line){switch(e.j){case 1:s+=y-e.lineWidths[O[o].line];break;case 2:s+=(y-e.lineWidths[O[o].line])/2}Z=O[o].line}K!==O[o].ind&&(O[K]&&(s+=O[K].extra),s+=O[o].an/2,K=O[o].ind),s+=w[0]*O[o].an*.005;var se=0;for(I=0;I<R;I+=1)(A=S[I].a).p.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?se+=A.p.v[0]*M[0]:se+=A.p.v[0]*M),A.a.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?se+=A.a.v[0]*M[0]:se+=A.a.v[0]*M);for(u=!0,this._pathData.a.v&&(s=.5*O[0].an+(y-this._pathData.f.v-.5*O[0].an-.5*O[O.length-1].an)*K/(i-1),s+=this._pathData.f.v);u;)c+g>=s+se||!h?(v=(s+se-c)/l.partialLength,F=p.point[0]+(l.point[0]-p.point[0])*v,B=p.point[1]+(l.point[1]-p.point[1])*v,k.translate(-w[0]*O[o].an*.005,-w[1]*D*.01),u=!1):h&&(c+=l.partialLength,(d+=1)>=h.length&&(d=0,m[f+=1]?h=m[f].points:_.v.c?(d=0,h=m[f=0].points):(c-=l.partialLength,h=null)),h&&(p=l,g=(l=h[d]).partialLength));L=O[o].an/2-O[o].add,k.translate(-L,0,0)}else L=O[o].an/2-O[o].add,k.translate(-L,0,0),k.translate(-w[0]*O[o].an*.005,-w[1]*D*.01,0);for(I=0;I<R;I+=1)(A=S[I].a).t.propType&&(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),0===n&&0===e.j||(this._hasMaskedPath?M.length?s+=A.t.v*M[0]:s+=A.t.v*M:M.length?n+=A.t.v*M[0]:n+=A.t.v*M));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(U=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(V=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<R;I+=1)(A=S[I].a).a.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?k.translate(-A.a.v[0]*M[0],-A.a.v[1]*M[1],A.a.v[2]*M[2]):k.translate(-A.a.v[0]*M,-A.a.v[1]*M,A.a.v[2]*M));for(I=0;I<R;I+=1)(A=S[I].a).s.propType&&((M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars)).length?k.scale(1+(A.s.v[0]-1)*M[0],1+(A.s.v[1]-1)*M[1],1):k.scale(1+(A.s.v[0]-1)*M,1+(A.s.v[1]-1)*M,1));for(I=0;I<R;I+=1){if(A=S[I].a,M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),A.sk.propType&&(M.length?k.skewFromAxis(-A.sk.v*M[0],A.sa.v*M[1]):k.skewFromAxis(-A.sk.v*M,A.sa.v*M)),A.r.propType&&(M.length?k.rotateZ(-A.r.v*M[2]):k.rotateZ(-A.r.v*M)),A.ry.propType&&(M.length?k.rotateY(A.ry.v*M[1]):k.rotateY(A.ry.v*M)),A.rx.propType&&(M.length?k.rotateX(A.rx.v*M[0]):k.rotateX(A.rx.v*M)),A.o.propType&&(M.length?z+=(A.o.v*M[0]-z)*M[0]:z+=(A.o.v*M-z)*M),e.strokeWidthAnim&&A.sw.propType&&(M.length?H+=A.sw.v*M[0]:H+=A.sw.v*M),e.strokeColorAnim&&A.sc.propType)for(q=0;q<3;q+=1)M.length?U[q]+=(A.sc.v[q]-U[q])*M[0]:U[q]+=(A.sc.v[q]-U[q])*M;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(q=0;q<3;q+=1)M.length?V[q]+=(A.fc.v[q]-V[q])*M[0]:V[q]+=(A.fc.v[q]-V[q])*M;A.fh.propType&&(V=M.length?addHueToRGB(V,A.fh.v*M[0]):addHueToRGB(V,A.fh.v*M)),A.fs.propType&&(V=M.length?addSaturationToRGB(V,A.fs.v*M[0]):addSaturationToRGB(V,A.fs.v*M)),A.fb.propType&&(V=M.length?addBrightnessToRGB(V,A.fb.v*M[0]):addBrightnessToRGB(V,A.fb.v*M))}}for(I=0;I<R;I+=1)(A=S[I].a).p.propType&&(M=S[I].s.getMult(O[o].anIndexes[I],E.a[I].s.totalChars),this._hasMaskedPath?M.length?k.translate(0,A.p.v[1]*M[0],-A.p.v[2]*M[1]):k.translate(0,A.p.v[1]*M,-A.p.v[2]*M):M.length?k.translate(A.p.v[0]*M[0],A.p.v[1]*M[1],-A.p.v[2]*M[2]):k.translate(A.p.v[0]*M,A.p.v[1]*M,-A.p.v[2]*M));if(e.strokeWidthAnim&&(G=H<0?0:H),e.strokeColorAnim&&(W="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),e.fillColorAnim&&e.fc&&($="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(k.translate(0,-e.ls),k.translate(0,w[1]*D*.01+r,0),this._pathData.p.v){b=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<p.point[0]&&(le+=180),k.rotate(-le*Math.PI/180)}k.translate(F,B,0),s-=w[0]*O[o].an*.005,O[o+1]&&K!==O[o+1].ind&&(s+=O[o].an/2,s+=.001*e.tr*e.finalSize)}else{switch(k.translate(n,r,0),e.ps&&k.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:k.translate(O[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[o].line]),0,0);break;case 2:k.translate(O[o].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[O[o].line])/2,0,0)}k.translate(0,-e.ls),k.translate(L,0,0),k.translate(w[0]*O[o].an*.005,w[1]*D*.01,0),n+=O[o].l+.001*e.tr*e.finalSize}"html"===T?ee=k.toCSS():"svg"===T?ee=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],Y=z}x<=o?(j=new LetterProps(Y,G,W,$,ee,te),this.renderedLetters.push(j),x+=1,this.lettersChangedFlag=!0):(j=this.renderedLetters[o],this.lettersChangedFlag=j.update(Y,G,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,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),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 n,r,o=t.length,i="";for(n=0;n<o;n+=1)"sh"===t[n].ty&&(r=t[n].ks.k,i+=buildShapeString(r,r.i.length,!0,e));return i},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,n,r,o){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[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0)}t.translate(r,o,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,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}function ISolidElement(e,t,n){this.initElement(e,t,n)}function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),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 n="";if(t&&t.title){var r=createNS("title"),o=createElementID();r.setAttribute("id",o),r.textContent=t.title,this.svgElement.appendChild(r),n+=o}if(t&&t.description){var i=createNS("desc"),a=createElementID();i.setAttribute("id",a),i.textContent=t.description,this.svgElement.appendChild(i),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);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,n=e.length,r=[],o="";t<n;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(o),o=""):o+=e[t],t+=1;return r.push(o),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var r=n.it[n.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var r=this.globalData.fontManager.getFontByName(n.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var o=n.fWeight,i=n.fStyle;this.layerElement.setAttribute("font-style",i),this.layerElement.setAttribute("font-weight",o)}this.layerElement.setAttribute("aria-label",n.t);var a,s=n.l||[],l=!!this.globalData.fontManager.chars;t=s.length;var c=this.mHelper,u=this.data.singleShape,d=0,f=0,p=!0,h=.001*n.tr*n.finalSize;if(!u||l||n.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&&(d=-h,f+=n.yOffset,f+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(n,c,s[e].line,d,f),d+=s[e].l||0,d+=h),l){var v;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var _=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.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 w=this.textContainer,S="start";switch(n.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}w.setAttribute("text-anchor",S),w.setAttribute("letter-spacing",h);var E=this.buildTextContents(n.finalText);for(t=E.length,f=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)(a=this.textSpans[e].span||createNS("tspan")).textContent=E[e],a.setAttribute("x",0),a.setAttribute("y",f),a.style.display="inherit",w.appendChild(a),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=a,f+=n.finalLineHeight;this.layerElement.appendChild(w
vendor: 26,231 bytes, line 31
31)}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,n=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<n;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 n,r,o,i=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=a.length,e=0;e<t;e+=1)a[e].n||(n=i[e],r=this.textSpans[e].span,(o=this.textSpans[e].glyph)&&o.renderFrame(),n._mdf.m&&r.setAttribute("transform",n.m),n._mdf.o&&r.setAttribute("opacity",n.o),n._mdf.sw&&r.setAttribute("stroke-width",n.sw),n._mdf.sc&&r.setAttribute("stroke",n.sc),n._mdf.fc&&r.setAttribute("fill",n.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 n=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var o=createElementID();n.setAttribute("id",o),n.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),t.appendChild(n),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,n=this.layers.length;for(t=0;t<n;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 n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var o=t[r].getMatte(this.layers[e].tt);n.setMatte(o)}else this.buildItem(r),this.addPendingElement(n)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,o=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(o);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 n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-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<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var r,o=0;o<t;)this.elements[o]&&!0!==this.elements[o]&&this.elements[o].getBaseElement()&&(r=this.elements[o].getBaseElement()),o+=1;r?this.layerElement.insertBefore(n,r):this.layerElement.appendChild(n)}},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,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),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 n,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._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,n=e.length,r="_";for(t=0;t<n;t+=1)r+=e[t].transform.key+"_";var o=this.sequences[r];return o||(o={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=o,this.sequenceList.push(o)),o},processSequence:function(e,t){for(var n=0,r=e.transforms.length,o=t;n<r&&!t;){if(e.transforms[n].transform.mProps._mdf){o=!0;break}n+=1}if(o)for(e.finalTransform.reset(),n=r-1;n>=0;n-=1)e.finalTransform.multiply(e.transforms[n].transform.mProps.v);e._mdf=o},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t<n;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,n=null,r=null;function o(){var o,i,a;t||(o=createNS("svg"),i=createNS("filter"),a=createNS("feColorMatrix"),i.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"),i.appendChild(a),o.appendChild(i),o.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(o.style.display="none"),r=o,document.body.appendChild(r),t=createTag("canvas"),(n=t.getContext("2d")).filter="url(#"+e+")",n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1))}return{load:o,get:function(r){return t||o(),t.width=r.width,t.height=r.height,n.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,n,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){n=null;var o=e.data.ef[t].ty;registeredEffects[o]&&(n=new(0,registeredEffects[o].effect)(e.effectsManager.effectElements[t],e)),n&&this.filters.push(n)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var n;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,o=!1;for(n=0;n<r;n+=1)"n"!==this.masksProperties[n].mode&&(o=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=o,o&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,r=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,n,r,o=this.element.finalTransform.mat,i=this.element.canvasContext,a=this.masksProperties.length;for(i.beginPath(),e=0;e<a;e+=1)if("n"!==this.masksProperties[e].mode){var s;this.masksProperties[e].inv&&(i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0)),r=this.viewData[e].v,t=o.applyToPointArray(r.v[0][0],r.v[0][1],0),i.moveTo(t[0],t[1]);var l=r._length;for(s=1;s<l;s+=1)n=o.applyToTriplePoints(r.o[s-1],r.i[s],r.v[s]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=o.applyToTriplePoints(r.o[s-1],r.i[0],r.v[0]),i.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),i.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,n,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var o,i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,i,e);var a,s=n.length;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:r.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}function CVTextElement(e,t,n){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,n)}function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}function CVSolidElement(e,t,n){this.initElement(e,t,n)}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}this._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,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),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,n){this.initElement(e,t,n)}function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var o,i=e.ks.or.k.length;for(o=0;o<i;o+=1)e.ks.or.k[o].to=null,e.ks.or.k[o].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(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,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}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,n){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,n),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 n=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(n),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 n=assetLoader.getLumaCanvas(this.canvasContext.canvas);n.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,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 n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(n.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],1==e.lj&&(n.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(n.wi=r.w.v),e.d){var o=new DashProperty(this,e.d,"canvas",this);r.d=o,r.d.k||(n.da=r.d.dashArray,n.do=r.d.dashoffset[0])}}else n.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(n),r.style=n,r},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,n=this.stylesList.length;for(t=0;t<n;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,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,r,o){var i,a,s,l,c,u,d=e.length-1,
vendor: 8,981 bytes, line 31
31f=[],p=[],h=[].concat(o);for(i=d;i>=0;i-=1){if((l=this.searchProcessedElement(e[i]))?t[i]=n[l-1]:e[i]._shouldRender=r,"fl"===e[i].ty||"st"===e[i].ty||"gf"===e[i].ty||"gs"===e[i].ty)l?t[i].style.closed=!1:t[i]=this.createStyleElement(e[i],h),f.push(t[i].style);else if("gr"===e[i].ty){if(l)for(s=t[i].it.length,a=0;a<s;a+=1)t[i].prevViewData[a]=t[i].it[a];else t[i]=this.createGroupElement(e[i]);this.searchShapes(e[i].it,t[i].it,t[i].prevViewData,r,h)}else"tr"===e[i].ty?(l||(u=this.createTransformElement(e[i]),t[i]=u),h.push(t[i]),this.addTransformToStyleList(t[i])):"sh"===e[i].ty||"rc"===e[i].ty||"el"===e[i].ty||"sr"===e[i].ty?l||(t[i]=this.createShapeElement(e[i])):"tm"===e[i].ty||"rd"===e[i].ty||"pb"===e[i].ty||"zz"===e[i].ty||"op"===e[i].ty?(l?(c=t[i]).closed=!1:((c=ShapeModifiers.getModifier(e[i].ty)).init(this,e[i]),t[i]=c,this.shapeModifiers.push(c)),p.push(c)):"rp"===e[i].ty&&(l?(c=t[i]).closed=!0:(c=ShapeModifiers.getModifier(e[i].ty),t[i]=c,c.init(this,e,i,t),this.shapeModifiers.push(c),r=!1),p.push(c));this.addProcessedElement(e[i],i+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),d=p.length,i=0;i<d;i+=1)p[i].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,n,r,o,i,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,d=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(),i=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&&d.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=i.length,t=0;t<n;t+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),o=(a=i[t].trNodes).length,r=0;r<o;r+=1)"m"===a[r].t?d.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?d.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(u.ctxStroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,r){var o,i;for(i=e,o=t.length-1;o>=0;o-=1)"tr"===t[o].ty?(i=n[o].transform,this.renderShapeTransform(e,i)):"sh"===t[o].ty||"el"===t[o].ty||"rc"===t[o].ty||"sr"===t[o].ty?this.renderPath(t[o],n[o]):"fl"===t[o].ty?this.renderFill(t[o],n[o],i):"st"===t[o].ty?this.renderStroke(t[o],n[o],i):"gf"===t[o].ty||"gs"===t[o].ty?this.renderGradientFill(t[o],n[o],i):"gr"===t[o].ty?this.renderShape(i,t[o].it,n[o].it):t[o].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,o,i=e.trNodes,a=t.paths,s=a._length;i.length=0;var l=e.transforms.finalTransform;for(o=0;o<s;o+=1){var c=a.shapes[o];if(c&&c.v){for(r=c._length,n=1;n<r;n+=1)1===n&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===r&&i.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(i.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var n,r=t.styledShapes.length;for(n=0;n<r;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var r,o=t.style;if(!o.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var i,a=this.globalData.canvasContext,s=t.s.v,l=t.e.v;if(1===e.t)r=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]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var f=c*d,p=Math.cos(u+t.a.v)*f+s[0],h=Math.sin(u+t.a.v)*f+s[1];r=a.createRadialGradient(p,h,0,s[0],s[1],c)}var m=e.g.p,g=t.g.c,y=1;for(i=0;i<m;i+=1)t.g._hasOpacity&&t.g._collapsable&&(y=t.g.o[2*i+1]),r.addColorStop(g[4*i]/100,"rgba("+g[4*i+1]+","+g[4*i+2]+","+g[4*i+3]+","+y+")");o.grd=r}o.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var r=t.style,o=t.d;o&&(o._mdf||this._isFirstFrame)&&(r.da=o.dashArray,r.do=o.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(r.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 n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,o,i,a,s,l,c,u,d,f,p,h,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,y=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,_=0,w=0,S=!0,E=0;for(r=0;r<o;r+=1){a=(i=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&i.data||{},y.reset(),v&&g[r].n&&(_=-b,w+=e.yOffset,w+=S?1:0,S=!1),d=(c=a.shapes?a.shapes[0].it:[]).length,y.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,y,g[r].line,_,w),p=createSizedArray(d-1);var k=0;for(u=0;u<d;u+=1)if("sh"===c[u].ty){for(l=c[u].ks.k.i.length,f=c[u].ks.k,h=[],s=1;s<l;s+=1)1===s&&h.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),h.push(y.applyToX(f.o[s-1][0],f.o[s-1][1],0),y.applyToY(f.o[s-1][0],f.o[s-1][1],0),y.applyToX(f.i[s][0],f.i[s][1],0),y.applyToY(f.i[s][0],f.i[s][1],0),y.applyToX(f.v[s][0],f.v[s][1],0),y.applyToY(f.v[s][0],f.v[s][1],0));h.push(y.applyToX(f.o[s-1][0],f.o[s-1][1],0),y.applyToY(f.o[s-1][0],f.o[s-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),p[k]=h,k+=1}v&&(_+=g[r].l,_+=b),this.textSpans[E]?this.textSpans[E].elem=p:this.textSpans[E]={elem:p},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,n,r,o,i;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,d=null,f=null,p=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((a=s[e])&&(h.save(),h.ctxTransform(a.p),h.ctxOpacity(a.o)),this.fill){for(a&&a.fc?d!==a.fc&&(h.ctxFillStyle(a.fc),d=a.fc):d!==this.values.fill&&(d=this.values.fill,h.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,h.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,h.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),n=0;n<r;n+=1)for(i=(u=c[n]).length,this.globalData.canvasContext.moveTo(u[0],u[1]),o=2;o<i;o+=6)this.globalData.canvasContext.bezierCurveTo(u[o],u[o+1],u[o+2],u[o+3],u[o+4],u[o+5]);this.globalData.canvasContext.closePath(),h
vendor: 18,314 bytes, line 31
31.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,n,r=e.getContext("2d"),o=this.img.width,i=this.img.height,a=o/i,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=(n=i)*s:n=(t=o)/s,r.drawImage(this.img,(o-t)/2,(i-n)/2,t,n,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,n,r){this.canvasContext.fillRect(e,t,n,r)},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 n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,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 n,r,o,i;if(this.reset(),e?(n=e,r=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=r*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);o=n/r,(i=this.transformCanvas.w/this.transformCanvas.h)>o&&"meet"===s||i<o&&"slice"===s?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(i<o&&"meet"===s||i>o&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(i<o&&"meet"===s||i>o&&"slice"===s)?(n-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(i>o&&"meet"===s||i<o&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(i>o&&"meet"===s||i<o&&"slice"===s)?(r-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(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 n;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 r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=r-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].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 n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.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,n=this.stack[this.cArrPos],r=n.transform,o=this.cTr.props;for(t=0;t<16;t+=1)o[t]=r[t];if(e){this.nativeContext.restore();var i=this.stack[this.cArrPos+1];this.appliedFillStyle=i.fillStyle,this.appliedStrokeStyle=i.strokeStyle,this.appliedLineWidth=i.lineWidth,this.appliedLineCap=i.lineCap,this.appliedLineJoin=i.lineJoin,this.appliedMiterLimit=i.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==n.opacity&&this.currentOpacity!==n.opacity)&&(this.nativeContext.globalAlpha=n.opacity,this.currentOpacity=n.opacity),this.currentFillStyle=n.fillStyle,this.currentStrokeStyle=n.strokeStyle,this.currentLineWidth=n.lineWidth,this.currentLineCap=n.lineCap,this.currentLineJoin=n.lineJoin,this.currentMiterLimit=n.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n,r=this.stack[this.cArrPos];for(n=0;n<16;n+=1)r.transform[n]=t[n];this.cArrPos+=1;var o=this.stack[this.cArrPos];o.opacity=r.opacity,o.fillStyle=r.fillStyle,o.strokeStyle=r.strokeStyle,o.lineWidth=r.lineWidth,o.lineCap=r.lineCap,o.lineJoin=r.lineJoin,o.miterLimit=r.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 n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[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,n,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,r)},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 n,r=e.length;for(n=0;n<r;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n,r,o,i,a,s=e.sh.v,l=e.transformers,c=s._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(r,o,i,a,t);s.c&&(r=this.getTransformedPoint(l,s.v[n]),o=this.getTransformedPoint(l,s.o[n]),i=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(r,o,i,a,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,r,o){this.getBoundsOfCurve(e,t,n,r);var i=this.shapeBoundingBox;o.x=bmMin(i.left,o.x),o.xMax=bmMax(i.right,o.xMax),o.y=bmMin(i.top,o.y),o.yMax=bmMax(i.bottom,o.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,n,r){for(var o,i,a,s,l,c,u,d=[[e[0],r[0]],[e[1],r[1]]],
vendor: 10,716 bytes, line 31
31f=0;f<2;++f)i=6*e[f]-12*t[f]+6*n[f],o=-3*e[f]+9*t[f]-9*n[f]+3*r[f],a=3*t[f]-3*e[f],i|=0,a|=0,0==(o|=0)&&0===i||(0===o?(s=-a/i)>0&&s<1&&d[f].push(this.calculateF(s,e,t,n,r,f)):(l=i*i-4*a*o)>=0&&((c=(-i+bmSqrt(l))/(2*o))>0&&c<1&&d[f].push(this.calculateF(c,e,t,n,r,f)),(u=(-i-bmSqrt(l))/(2*o))>0&&u<1&&d[f].push(this.calculateF(u,e,t,n,r,f))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,o,i){return bmPow(1-e,3)*t[i]+3*bmPow(1-e,2)*e*n[i]+3*(1-e)*bmPow(e,2)*r[i]+bmPow(e,3)*o[i]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var o=e.keyframes[r].s;o>n&&(n=o)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},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 n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||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 r=this.shapeCont.style,o="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=o,r.webkitTransform=o}}},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,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,o,i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var a=e.fWeight,s=e.fStyle;t.fontStyle=s,t.fontWeight=a}var l,c,u,d=e.l;o=d.length;var f,p=this.mHelper,h="",m=0;for(r=0;r<o;r+=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[r],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(f=g.shapes[0].it,p.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(p,f),l.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=u.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,d[r].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else if(l.textContent=d[r].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 w=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=S,w.webkitTransform=S}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 n,r,o,i,a,s=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,n=0;n<r;n+=1)c[n].n?s+=1:(i=this.textSpans[n],a=this.textPaths[n],o=l[s],s+=1,o._mdf.m&&(this.isMasked?i.setAttribute("transform",o.m):(i.style.webkitTransform=o.m,i.style.transform=o.m)),i.style.opacity=o.o,o.sw&&o._mdf.sw&&a.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&a.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(a.setAttribute("fill",o.fc),a.style.color=o.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 d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,n,r,o=this.comp.threeDElements.length;for(e=0;e<o;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){n=t.perspectiveElem.style,r=t.container.style;var i=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)";n.perspective=i,n.webkitPerspective=i,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,n.transform=s,n.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,n=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)n=this.hierarchy[e].finalTransform.mProp._mdf||n;if(n||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 r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 o;o=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 i=Math.sqrt(Math.pow(o[0],2)+Math.pow(o[1],2)+Math.pow(o[2],2)),a=[o[0]/i,o[1]/i,o[2]/i],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 d,f,p;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(u){var h=this.mat.toCSS();(p=d.container.style).transform=h,p.webkitTransform=h}this.pe._mdf&&((f=d.perspectiveElem.style).perspective=this.pe.v+"px",f.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 n=e.getBaseElement();if(n){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(n,t);else if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var o,i,a=0;a<t;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(i=this.elements[a],o=(this.layers[a].ddd?this.getThreeDContainerByPos(a):i.getBaseElement())||o),a+=1;o?r.ddd&&this.supports3d||this.layerElement.insertBefore(n,o):r.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},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,n=this.threeDElements.length;t<n;){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 n,r,o=createTag("div");styleDiv(o);var i=createTag("div");if(styleDiv(i),"3d"===t){(n=o.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var a="50% 50%";n.webkitTransformOrigin=a,n.mozTransformOrigin=a,n.transformOrigin=a;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=i.style).transform=s,r.webkitTransform=s}o.appendChild(i);var l={container:i,perspectiveElem:o,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e<n;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(n=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;n<r;){if(t<=this.threeDElements[n].endPos){for(var o,i=this.threeDElements[n].startPos;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),r.overflow="hidden";var o=createNS("svg");o.setAttribute("width","1"),o.setAttribute("height","1"),styleDiv(o),this.resizerElem.appendChild(o);var i=createNS("defs");o.appendChild(i),this.data=e,this.setupGlobalData(e,o),this.globalData.defs=i,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,n,r,o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i;this.globalData.compSize.w/this.globalData.compSize.h>a?(e=o/this.globalData.compSize.w,t=o/this.globalData.compSize.w,n=0,r=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2):(e=i/this.globalData.compSize.h,t=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",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,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var o=this.threeDElements[e].perspectiveElem.style;o.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(n,2))+"px",o.perspective=o.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,r=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var o=this.createComp(e[t],r,this.globalData.comp,null);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},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 n,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.layerElement.insertBefore(e,n):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 n=0,r=e.layers.length;n<r;){if(e.layers[n].nm===t||e.layers[n].ind===t)return e.elements[n].layerInterface;n+=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 n=this,r=256,o="random",i=t.pow(r,6),a=t.pow(2,52),s=2*a,l=255;function c(e){var t,n=e.length,o=this,i=0,a=o.i=o.j=0,s=o.S=[];for(n||(e=[n++]);i<r;)s[i]=i++;for(i=0;i<r;i++)s[i]=s[a=l&a+e[i%n]+(t=s[i])],s[a]=t;o.g=function(e){for(var t,n=0,i=o.i,a=o.j,s=o.S;e--;)t=s[i=l&i+1],n=n*r+s[l&(s[i]=s[a=l&a+t])+(s[a]=t)];return o.i=i,o.j=a,n}}function u(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function d(e,t){var n,r=[],o=_typeof$2(e);if(t&&"object"==o)for(n in e)try{r.push(d(e[n],t-1))}catch(e){}return r.length?r:"string"==o?e:e+"\0"}function f(e,t){for(var n,r=e+"",o=0;o<r.length;)t[l&o]=l&(n^=19*t[l&o])+r.charCodeAt(o++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t["seed"+o]=function(l,h,m){var g=[],y=f(d((h=!0===h?{entropy:!0}:h||{}).entropy?[l,p(e)]:null===l?function(){try{var t=new Uint8Array(r);return(n.crypto||n.msCrypto).getRandomValues(t),p(t)}catch(t){var o=n.navigator,i=o&&o.plugins;return[+new Date,n,i,n.screen,p(e)]}}():l,3),g),v=new c(g),b=function(){for(var e=v.g(6),t=i,n=0;e<a;)e=(e+n)*r,t*=r,n=v.g(1);for(;e>=s;)e/=2,t/=2,n>>>=1;return(e+n)/t};return b.int32=function(){return 0|v.g(4)},b.quick=function(){return v.g(4)/4294967296},b.double=b,f(p(v.S),e),(h.pass||m||function(e,n,r,i){return i&&(i.S&&u(i,v),e.state=function(){return u(v,{})}),r?(t[o]=e,n):e})(b,y,"global"in h?h.global:this==t,h.state)},f(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: 4,292 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 n,r=e.length,o=[];for(n=0;n<r;n+=1)o[n]=-e[n];return o}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 n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t)||"string"===n||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]+t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return"string"===n&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var o=0,i=e.length,a=t.length,s=[];o<i||o<a;)("number"==typeof e[o]||e[o]instanceof Number)&&("number"==typeof t[o]||t[o]instanceof Number)?s[o]=e[o]-t[o]:s[o]=void 0===t[o]?e[o]:e[o]||t[o],o+=1;return s}return 0}function mul(e,t){var n,r,o,i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e[r]*t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e*t[r];return n}return 0}function div(e,t){var n,r,o,i=_typeof$1(e),a=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(a,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t)){for(o=e.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e[r]/t;return n}if(isNumerable(i,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,n=createTypedArray("float32",o),r=0;r<o;r+=1)n[r]=e/t[r];return n}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,n){if(t>n){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}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 n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),o=0;for(n=0;n<r;n+=1)o+=Math.pow(t[n]-e[n],2);return Math.sqrt(o)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,n,r=e[0],o=e[1],i=e[2],a=Math.max(r,o,i),s=Math.min(r,o,i),l=(a+s)/2;if(a===s)t=0,n=0;else{var c=a-s;switch(n=l>.5?c/(2-a-s):c/(a+s),a){case r:t=(o-i)/c+(o<i?6:0);break;case o:t=(i-r)/c+2;break;case i:t=(r-o)/c+4}t/=6}return[t,n,l,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,o=e[0],i=e[1],a=e[2];if(0===i)t=a,r=a,n=a;else{var s=a<.5?a*(1+i):a+i-a*i,l=2*a-s;t=hue2rgb(l,s,o+1/3),n=hue2rgb(l,s,o),r=hue2rgb(l,s,o-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,o){if(void 0!==r&&void 0!==o||(r=t,o=n,t=0,n=1),n<t){var i=n;n=t,t=i}if(e<=t)return r;if(e>=n)return o;var a,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(o-r)*s;var l=r.length,c=createTypedArray("float32",l);for(a=0;a<l;a+=1)c[a]=r[a]+(o[a]-r[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 n,r=t.length;e||(e=createTypedArray("float32",r));
vendor: 6,189 bytes, line 31
31var o=createTypedArray("float32",r),i=BMMath.random();for(n=0;n<r;n+=1)o[n]=e[n]+i*(t[n]-e[n]);return o}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,n,r){var o,i=e.length,a=shapePool.newElement();a.setPathData(!!r,i);var s,l,c=[0,0];for(o=0;o<i;o+=1)s=t&&t[o]?t[o]:c,l=n&&n[o]?n[o]:c,a.setTripleAt(e[o][0],e[o][1],l[0]+e[o][0],l[1]+e[o][1],s[0]+e[o][0],s[1]+e[o][1],o,!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 n,r,o=this.pv.length?this.pv.length:1,i=createTypedArray("float32",o),a=Math.floor(5*time);for(n=0,r=0;n<a;){for(r=0;r<o;r+=1)i[r]+=-t+2*t*BMMath.random();n+=1}var s=5*time,l=s-Math.floor(s),c=createTypedArray("float32",o);if(o>1){for(r=0;r<o;r+=1)c[r]=this.pv[r]+i[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+i[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 n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,r,0]}function easeOut(e,t,n,r,o){return applyEase(easeOutBez,e,t,n,r,o)}function easeIn(e,t,n,r,o){return applyEase(easeInBez,e,t,n,r,o)}function ease(e,t,n,r,o){return applyEase(easeInOutBez,e,t,n,r,o)}function applyEase(e,t,n,r,o,i){void 0===o?(o=n,i=r):t=(t-n)/(r-n),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(o)){var s,l=o.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(i[s]-o[s])*a+o[s];return c}return(i-o)*a+o}function nearestKey(e){var t,n,r,o=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,r=data.k[0].t;else{for(t=0;t<o-1;t+=1){if(e===data.k[t].t){n=t+1,r=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?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var i={};return i.index=n,i.time=r/elem.comp.globalData.frameRate,i}function key(e){var t,n,r;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 o=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=o.length,n=0;n<r;n+=1)t[n]=o[n],t.value[n]=o[n];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,numKe
vendor: 6,836 bytes, line 31
31ys,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,n=[];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=n.length;for(e=0;e<t;e+=1)n[e].release();n.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===n.indexOf(e)&&n.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 n,r=createSizedArray(t.viewData.length),o=t.viewData.length;for(n=0;n<o;n+=1)r[n]=new e(t.viewData[n],t.masksProperties[n]);return function(e){for(n=0;n<o;){if(t.masksProperties[n].nm===e)return r[n];n+=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 n(e,t,n){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var o="";o="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var i="unidimensional"===n?new Number(o):Object.assign({},o);return i.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,i.value="unidimensional"===n?o[0]:o,i},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(o){return o?"unidimensional"===o.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,o=t.pv*r,i=new Number(o);return i.value=o,n(i,t,"unidimensional"),function(){return t.k&&t.getValue(),o=t.v*r,i.value!==o&&((i=new Number(o)).value=o,i[0]=o,n(i,t,"unidimensional")),i}}(o):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,o=e.data&&e.data.l||e.pv.length,i=createTypedArray("float32",o),a=createTypedArray("float32",o);return i.value=a,n(i,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<o;t+=1)a[t]=e.v[t]*r,i[t]=a[t];return i}}(o):r}}(),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 n,r,o,i;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?i=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(o=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?i():[n(),r(),o?o():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 n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.applyPoint(n,e)}function n(e,t){var n=this.getMatrix(t);return this.applyPoint(n,e)}function r(e,t){var n=this.getMatrix(t);return n.props[12]=0,n.props[13]=0,n.props[14]=0,this.invertPoint(n,e)}function o(e,t){var n=this.getMatrix(t);return this.invertPoint(n,e)}function i(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].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 n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].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 n,r=this._elem.hierarchy.length;for(n=0;n<r;n+=1)this._elem.hierarchy[n].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 d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.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 d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=a,d.applyPoint=i,d.toWorld=n,d.toWorldVec=t,d.fromWorld=o,d.fromWorldVec=r,d.toComp=n,d.fromComp=s,d.sampleImage=l,d.sourceRectAtTime=c.sourceRectAtTime.bind(c),d._elem=c;
vendor: 20,254 bytes, line 31
31var f=getDescriptor(u=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{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:f,anchor_point:f,transform:{get:function(){return u}},active:{get:function(){return c.isInRange}}}),d.startTime=c.data.st,d.index=c.data.ind,d.source=c.data.refId,d.height=0===c.data.ty?c.data.h:100,d.width=0===c.data.ty?c.data.w:100,d.inPoint=c.data.ip/c.comp.globalData.frameRate,d.outPoint=c.data.op/c.comp.globalData.frameRate,d._name=c.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,c)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(n){return(n=void 0===n?1:n)<=0?e:t(n-1)}},PropertyInterface=function(e,t){var n={_name:e};return function(e){return(e=void 0===e?1:e)<=0?n:t(e-1)}},EffectsExpressionInterface=function(){function e(n,r,o,i){function a(e){for(var t=n.ef,r=0,o=t.length;r<o;){if(e===t[r].nm||e===t[r].mn||e===t[r].ix)return 5===t[r].ty?c[r]:c[r]();r+=1}throw new Error}var s,l=propertyGroupFactory(a,o),c=[],u=n.ef.length;for(s=0;s<u;s+=1)5===n.ef[s].ty?c.push(e(n.ef[s],r.effectElements[s],r.effectElements[s].propertyGroup,i)):c.push(t(r.effectElements[s],n.ef[s].ty,i,l));return"ADBE Color Control"===n.mn&&Object.defineProperty(a,"color",{get:function(){return c[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:l}}),a.enabled=0!==n.en,a.active=a.enabled,a}function t(e,t,n,r){var o=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?n.comp.compInterface(e.p.v):o()}}return{createEffectsInterface:function(t,n){if(t.effectsManager){var r,o=[],i=t.data.ef,a=t.effectsManager.effectElements.length;for(r=0;r<a;r+=1)o.push(e(i[r],t.effectsManager.effectElements[r],n,t));var s=t.data.ef||[],l=function(e){for(r=0,a=s.length;r<a;){if(e===s[r].nm||e===s[r].mn||e===s[r].ix)return o[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return s.length}}),l}return null}}}(),ShapePathInterface=function(e,t,n){var r=t.sh;function o(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?o.path:null}var i=propertyGroupFactory(o,n);return r.setGroupProperty(PropertyInterface("Path",i)),Object.defineProperties(o,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:n}}),o},ShapeExpressionInterface=function(){function e(e,s,p){var h,m=[],g=e?e.length:0;for(h=0;h<g;h+=1)"gr"===e[h].ty?m.push(t(e[h],s[h],p)):"fl"===e[h].ty?m.push(n(e[h],s[h],p)):"st"===e[h].ty?m.push(i(e[h],s[h],p)):"tm"===e[h].ty?m.push(a(e[h],s[h],p)):"tr"===e[h].ty||("el"===e[h].ty?m.push(l(e[h],s[h],p)):"sr"===e[h].ty?m.push(c(e[h],s[h],p)):"sh"===e[h].ty?m.push(ShapePathInterface(e[h],s[h],p)):"rc"===e[h].ty?m.push(u(e[h],s[h],p)):"rd"===e[h].ty?m.push(d(e[h],s[h],p)):"rp"===e[h].ty?m.push(f(e[h],s[h],p)):"gf"===e[h].ty?m.push(r(e[h],s[h],p)):m.push(o(e[h],s[h])));return m}function t(t,n,r){var o=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return o.content;default:return o.transform}};o.propertyGroup=propertyGroupFactory(o,r);var i=function(t,n,r){var o,i=function(e){for(var t=0,n=o.length;t<n;){if(o[t]._name===e||o[t].mn===e||o[t].propertyIndex===e||o[t].ix===e||o[t].ind===e)return o[t];t+=1}return"number"==typeof e?o[e-1]:null};i.propertyGroup=propertyGroupFactory(i,r),o=e(t.it,n.it,i.propertyGroup),i.numProperties=o.length;var a=s(t.it[t.it.length-1],n.it[n.it.length-1],i.propertyGroup);return i.transform=a,i.propertyIndex=t.cix,i._name=t.nm,i}(t,n,o.propertyGroup),a=s(t.it[t.it.length-1],n.it[n.it.length-1],o.propertyGroup);return o.content=i,o.transform=a,Object.defineProperty(o,"_name",{get:function(){return t.nm}}),o.numProperties=t.np,o.propertyIndex=t.ix,o.nm=t.nm,o.mn=t.mn,o}function n(e,t,n){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function r(e,t,n){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{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",n)),t.e.setGroupProperty(PropertyInterface("End Point",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),r}function o(){return function(){return null}}function i(e,t,n){var r,o=propertyGroupFactory(c,n),i=propertyGroupFactory(l,o);function a(n){Object.defineProperty(l,e.d[n].nm,{get:ExpressionPropertyInterface(t.d.dataProps[n].p)})}var s=e.d?e.d.length:0,l={};for(r=0;r<s;r+=1)a(r),t.d.dataProps[r].p.setGroupProperty(i);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",o)),t.o.setGroupProperty(PropertyInterface("Opacity",o)),t.w.setGroupProperty(PropertyInterface("Stroke Width",o)),c}function a(e,t,n){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var o=propertyGroupFactory(r,n);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",o)),t.e.setGroupProperty(PropertyInterface("End",o)),t.o.setGroupProperty(PropertyInterface("Offset",o)),r.propertyIndex=e.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function s(e,t,n){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var o=propertyGroupFactory(r,n);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",o)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",o)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",o)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",o)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",o)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",o)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",o))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",o)),Object.defineProperties(r,{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}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=n,r}function l(e,t,n){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var o=propertyGroupFactory(r,n);r.propertyIndex=e.ix;var i="tm"===t.sh.ty?t.sh.prop:t.sh;return i.s.setGroupProperty(PropertyInterface("Size",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(i.s)},position:{get:ExpressionPropertyInterface(i.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var o=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.or.setGroupProperty(PropertyInterface("Outer Radius",o)),i.os.setGroupProperty(PropertyInterface("Outer Roundness",o)),i.pt.setGroupProperty(PropertyInterface("Points",o)),i.p.setGroupProperty(PropertyInterface("Position",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),e.ir&&(i.ir.setGroupProperty(PropertyInterface("Inner Radius",o)),i.is.setGroupProperty(PropertyInterface("Inner Roundness",o))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},rotation:{get:ExpressionPropertyInterface(i.r)},points:{get:ExpressionPropertyInterface(i.pt)},outerRadius:{get:ExpressionPropertyInterface(i.or)},outerRoundness:{get:ExpressionPropertyInterface(i.os)},innerRadius:{get:ExpressionPropertyInterface(i.ir)},innerRoundness:{get:ExpressionPropertyInterface(i.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,n){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var o=propertyGroupFactory(r,n),i="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,i.p.setGroupProperty(PropertyInterface("Position",o)),i.s.setGroupProperty(PropertyInterface("Size",o)),i.r.setGroupProperty(PropertyInterface("Rotation",o)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(i.p)},roundness:{get:ExpressionPropertyInterface(i.r)},size:{get:ExpressionPropertyInterface(i.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function d(e,t,n){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var o=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.rd.setGroupProperty(PropertyInterface("Radius",o)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(i.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function f(e,t,n){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var o=propertyGroupFactory(r,n),i=t;return r.propertyIndex=e.ix,i.c.setGroupProperty(PropertyInterface("Copies",o)),i.o.setGroupProperty(PropertyInterface("Offset",o)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(i.c)},offset:{get:ExpressionPropertyInterface(i.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,n,r){var o;function i(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:o[e-1];for(var t=0,n=o.length;t<n;){if(o[t]._name===e)return o[t];t+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return r}),o=e(t,n,i.propertyGroup),i.numProperties=o.length,i._name="Contents",i}}(),TextExpressionInterface=function(e){var t;function n(e){return"ADBE Text Document"===e?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var n=e.textProperty.currentData.t;return t&&n===t.value||((t=new String(n)).value=n||new String(n),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n};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="",n=e.getFootageData();function r(e){if(n[e])return t=e,"object"===_typeof(n=n[e])?r:n;var o=e.indexOf(t);if(-1!==o){var i=parseInt(e.substr(o+t.length),10);return"object"===_typeof(n=n[i])?r:n}return""}return function(){return t="",n=e.getFootageData(),r}}(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,n){t.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(e,t,n).bind(n)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),n=this.getValueAtTime(e+-.01),r=0;if(t.length){var o;for(o=0;o<t.length;o+=1)r+=Math.pow(n[o]-t[o],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,n,r=-.001,o=this.getValueAtTime(e),i=this.getValueAtTime(e+r);if(o.length)for(t=createTypedArray("float32",o.length),n=0;n<o.length;n+=1)t[n]=(i[n]-o[n])/r;else t=(i-o)/r;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,n){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[c.length-1].t;if(l<=u)return this.pv;if(n?o=u-(r=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),r=u-(o=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-o)/r)%2!=0)return this.getValueAtTime((r-(l-o)%r+o)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(o/this.comp.globalData.frameRate,0),f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0),h=Math.floor((l-o)/r);if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=(f[i]-d[i])*h+p[i];return s}return(f-d)*h+p}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,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*((l-u)/this.comp.globalData.frameRate)/5e-4;return s}return m+(l-u)/.001*(m-g)}}return this.getValueAtTime(((l-o)%r+o)/this.comp.globalData.frameRate,0)}function t(e,t,n){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,o,i,a,s,l=this.comp.renderedFrame,c=this.keyframes,u=c[0].t;if(l>=u)return this.pv;if(n?o=u+(r=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),r=(o=c[t].t)-u),"pingpong"===e){if(Math.floor((u-l)/r)%2==0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(o/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),h=Math.floor((u-l)/r)+1;if(this.pv.length){for(a=(s=new Array(d.length)).length,i=0;i<a;i+=1)s[i]=p[i]-(f[i]-d[i])*h;return s}return p-(f-d)*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,i=0;i<a;i+=1)s[i]=m[i]+(m[i]-g[i])*(u-l)/.001;return s}return m+(m-g)*(u-l)/.001}}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function n(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var n,r,o=this.comp.renderedFrame/this.comp.globalData.frameRate,i=o-e,a=t>1?(o+e-i)/(t-1):1,s=0,l=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;s<t;){if(r=this.getValueAtTime(i+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=r[l];else n+=r;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=t;else n/=t;return n}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var n=this.a.getValueAtTime(e);t.translate(-n[0]*this.a.mult,-n[1]*this.a.mult,n[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var o=this.sk.getValueAtTime(e),i=this.sa.getValueAtTime(e);t.skewFromAxis(-o*this.sk.mult,i*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 d=this.px.getValueAtTime(e),f=this.py.getValueAtTime(e);if(this.data.p.z){var p=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,f*this.py.mult,-p*this.pz.mult)}else t.translate(d*this.px.mult,f*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function o(){return this.v.clone(new Matrix)}var i=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,n){var a=i(e,t,n);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=o.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(r,o,i,s,l){var c=a(r,o,i,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=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===o.a?o.k.length:0,c.propertyIndex=o.ix;var u=0;return 0!==i&&(u=createTypedArray("float32",1===o.a?o.k[0].s.length:o.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,o,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 n,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var o=r._length,i=r[e],a=r.v,s=createSizedArray(o);for(n=0;n<o;n+=1)s[n]="i"===e||"o"===e?[i[n][0]-a[n][0],i[n][1]-a[n][1]]:[i[n][0],i[n][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 n=this.v;void 0!==t&&(n=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var r,o=this._segmentsLength,i=o.lengths,a=o.totalLength*e,s=0,l=i.length,c=0;s<l;){if(c+i[s].addedLength>a){var u=s,d=n.c&&s===l-1?0:s+1,f=(a-c)/i[s].addedLength;r=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],f
vendor: 9,799 bytes, line 31
31,i[s]);break}c+=i[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),o=this.pointOnPath(e+.001,t),i=o[0]-r[0],a=o[1]-r[1],s=Math.sqrt(Math.pow(i,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[i/s,a/s]:[-a/s,i/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,n,r,o){var i=u(e,t,n,r,o);return i.propertyIndex=t.ix,i.lock=!1,3===n?expressionHelpers.searchExpressions(e,t.pt,i):4===n&&expressionHelpers.searchExpressions(e,t.ks,i),i.k&&e.addDynamicProperty(i),i}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var n=this.calculateExpression(t);if(e.t!==n){var r={};return this.copyData(r,e),r.t=n.toString(),r.__complete=!1,r}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 n,r,o=createNS("feMerge");for(o.setAttribute("result",e),r=0;r<t.length;r+=1)(n=createNS("feMergeNode")).setAttribute("in",t[r]),o.appendChild(n),o.appendChild(n);return o}};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,n,r,o){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=i,i.setAttribute("result",r+"_tint_1"),e.appendChild(i),(i=createNS("feColorMatrix")).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",r+"_tint_2"),e.appendChild(i),this.matrixFilter=i;var a=this.createMergeNode(r,[o,r+"_tint_1",r+"_tint_2"]);e.appendChild(a)}function SVGFillFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.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",r),e.appendChild(o),this.matrixFilter=o}function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}function SVGTritoneFilter(e,t,n,r){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.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.appendChild(o);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),this.matrixFilter=i;var a=createNS("feFuncR");a.setAttribute("type","table"),i.appendChild(a),this.feFuncR=a;var s=createNS("feFuncG");s.setAttribute("type","table"),i.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),i.appendChild(l),this.feFuncB=l,e.appendChild(i)}function SVGProLevelsFilter(e,t,n,r){this.filterManager=t;var o=this.filterManager.effectElements,i=createNS("feComponentTransfer");(o[10].p.k||0!==o[10].p.v||o[11].p.k||1!==o[11].p.v||o[12].p.k||1!==o[12].p.v||o[13].p.k||0!==o[13].p.v||o[14].p.k||1!==o[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(o[17].p.k||0!==o[17].p.v||o[18].p.k||1!==o[18].p.v||o[19].p.k||1!==o[19].p.v||o[20].p.k||0!==o[20].p.v||o[21].p.k||1!==o[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(o[24].p.k||0!==o[24].p.v||o[25].p.k||1!==o[25].p.v||o[26].p.k||1!==o[26].p.v||o[27].p.k||0!==o[27].p.v||o[28].p.k||1!==o[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(o[31].p.k||0!==o[31].p.v||o[32].p.k||1!==o[32].p.v||o[33].p.k||1!==o[33].p.v||o[34].p.k||0!==o[34].p.v||o[35].p.k||1!==o[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(i)),(o[3].p.k||0!==o[3].p.v||o[4].p.k||1!==o[4].p.v||o[5].p.k||1!==o[5].p.v||o[6].p.k||0!==o[6].p.v||o[7].p.k||1!==o[7].p.v)&&((i=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("result",r),e.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(e,t,n,r,o){var i=t.container.globalData.renderConfig.filterSize,a=t.data.fs||i;e.setAttribute("x",a.x||i.x),e.setAttribute("y",a.y||i.y),e.setAttribute("width",a.width||i.width),e.setAttribute("height",a.height||i.height),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",r+"_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",r+"_drop_shadow_1"),l.setAttribute("result",r+"_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",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(u);var d=this.createMergeNode(r,[r+"_drop_shadow_4",o]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[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,n=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 "+n+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,n,r,o=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,n=0):r=1+(n=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);n<r;n+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:n});if(3===this.filterManager.effectElements[10].p.v){var i=createNS("mask"),a=createElementID();i.setAttribute("id",a),i.setAttribute("mask-type","alpha"),i.appendChild(t),this.elem.globalData.defs.appendChild(i);var s=createNS("g");for(s.setAttribute("mask","url("+getLocationHref()+"#"+a+")");o[0];)s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=i,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(o=this.elem.layerElement.children||this.elem.layerElement.childNodes;o.length;)this.elem.layerElement.removeChild(o[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 n,r,o=this.paths.length;for(t=0;t<o;t+=1)if(-1!==this.paths[t].m&&(n=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||n.prop._mdf)&&r.setAttribute("d",n.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||n.prop._mdf)){var i;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=r.getTotalLength();i="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,
vendor: 3,831 bytes, line 31
31f=Math.floor(u/d);for(c=0;c<f;c+=1)i+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";i+="0 "+10*l+" 0 0"}else i="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",i)}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 p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,o=r[0]+" "+n[0]+" "+t[0],i=r[1]+" "+n[1]+" "+t[1],a=r[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",o),this.feFuncG.setAttribute("tableValues",i),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,r,o){for(var i,a,s=0,l=Math.min(e,t),c=Math.max(e,t),u=Array.call(null,{length:256}),d=0,f=o-r,p=t-e;s<=256;)a=(i=s/256)<=l?p<0?o:r:i>=c?p<0?r:o:r+f*Math.pow((i-e)/p,1/n),u[d]=a,d+=1,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[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 n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=n*Math.cos(r),i=n*Math.sin(r);
vendor: 5,434 bytes, line 31
31this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",i)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("result",r),e.appendChild(o),this.feGaussianBlur=o}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,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var r,o=n.children,i=0,a=o.length;i<a&&o[i]!==e.layerElement;)i+=1;i<=a-2&&(r=o[i+1]);var s=createNS("use");s.setAttribute("href","#"+t),r?n.insertBefore(s,r):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var o=e.globalData.defs;o.appendChild(r);var i=createNS("symbol");i.setAttribute("id",n),this.replaceInParent(t,n),i.appendChild(t.layerElement),o.appendChild(i);var a=createNS("use");a.setAttribute("href","#"+n),r.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,n=0,r=t.length;n<r;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=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,n=this.filterManager.effectElements[1].p.v,r=3==n?0:t,o=2==n?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+o);var i=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",i)}},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,n=t[0].p.v,r=t[1].p.v,o=1===t[2].p.v,i=t[3].p.v,a=o?i: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(-n[0],-n[1],n[2]),this.matrix.scale(.01*a,.01*i,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[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,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}return e}()({1:[function(e,t,n){"use strict";var r=e("../renderer/Renderer"),o=e("../helpers/layerAPIBuilder");function i(e){var t={animation:e,elements:e.renderer.elements.map(function(t){return o(t,e)}),boundingRect:null,scaleData:null};function n(){return e.currentFrame}function i(){return e.currentFrame/e.frameRate}function a(e,t){var n,r=e.length;for(n=0;n<r;n+=1)e.getPropertyAtIndex(n).setValue(t)}function s(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=1)o.push(e.getPropertyAtIndex(n).toKeypathLayerPoint(t));return 1===o.length?o[0]:o}function l(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=1)o.push(e.getPropertyAtIndex(n).fromKeypathLayerPoint(t));return 1===o.length?o[0]:o}function c(t){var n,r,o,i=e.animationData.w,a=e.animationData.h,s=i/a,l=t.width,c=t.height,u=l/c,d=e.renderer.renderConfig.preserveAspectRatio.split(" ");return n="meet"===d[1]?u>s?c/a:l/i:u>
31s?l/i:c/a,r=d[0].substr(0,4),{scaleYOffset:"YMin"===(o=d[0].substr(4))?0:"YMid"===o?(c-a*n)/2:c-a*n,scaleXOffset:"xMin"===r?0:"xMid"===r?(l-i*n)/2:l-i*n,scale:n}}function u(n){n=e.wrapper,t.boundingRect=n.getBoundingClientRect(),t.scaleData=c(t.boundingRect)}function d(n){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return n;t.boundingRect||u();var r=t.boundingRect,o=[n[0]-r.left,n[1]-r.top],i=t.scaleData;return o[0]=(o[0]-i.scaleXOffset)/i.scale,o[1]=(o[1]-i.scaleYOffset)/i.scale,o}function f(n){if(!e.wrapper||!e.wrapper.getBoundingClientRect)return n;t.boundingRect||u();var r,o=t.boundingRect,i=t.scaleData;return r=[(r=[n[0]*i.scale+i.scaleXOffset,n[1]*i.scale+i.scaleYOffset])[0]+o.left,r[1]+o.top]}function p(){return t.scaleData}var h={recalculateSize:u,getScaleData:p,toContainerPoint:d,fromContainerPoint:f,getCurrentFrame:n,getCurrentTime:i,addValueCallback:a,toKeypathLayerPoint:s,fromKeypathLayerPoint:l};return Object.assign({},r(t),h)}t.exports=i},{"../helpers/layerAPIBuilder":6,"../renderer/Renderer":42}],2:[function(e,t,n){"use strict";t.exports=","},{}],3:[function(e,t,n){"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,n){"use strict";t.exports={LAYER_TRANSFORM:"transform"}},{}],5:[function(e,t,n){"use strict";var r=e("../enums/key_path_separator"),o=e("./stringSanitizer");t.exports=function(e){var t=e.split(r),n=t.shift();return{selector:o(n),propertyPath:t.join(r)}}},{"../enums/key_path_separator":2,"./stringSanitizer":7}],6:[function(e,t,n){"use strict";var r=e("../layer/text/TextElement"),o=e("../layer/shape/Shape"),i=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,n){var u=t.data.ty,d=e("../layer/composition/Composition");switch(u){case 0:return d(t,n);case 1:return a(t,n);case 2:return s(t,n);case 3:return i(t,n);case 4:return o(t,n,t.data.shapes,t.itemsData);case 5:return r(t,n);case 13:return l(t,n);default:return c(t,n)}}},{"../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,n){"use strict";function r(e){return e.trim()}t.exports=r},{}],8:[function(e,t,n){"use strict";var r=e("./typedArrays"),o=function(){var e=Math.cos,t=Math.sin,n=Math.tan,o=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 a(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function s(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(1,0,0,0,0,r,-o,0,0,o,r,0,0,0,0,1)}function l(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,0,o,0,0,1,0,0,-o,0,r,0,0,0,0,1)}function c(n){if(0===n)return this;var r=e(n),o=t(n);return this._t(r,-o,0,0,o,r,0,0,0,0,1,0,0,0,0,1)}function u(e,t){return this._t(1,t,e,1,0,0)}function d(e,t){return this.shear(n(e),n(t))}function f(r,o){var i=e(o),a=t(o);return this._t(i,a,0,0,-a,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(r),1,0,0,0,0,1,0,0,0,0,1)._t(i,-a,0,0,a,i,0,0,0,0,1,0,0,0,0,1)}function p(e,t,n){return n=isNaN(n)?1:n,1==e&&1==t&&1==n?this:this._t(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1)}function h(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m){return this.props[0]=e,this.props[1]=t,this.props[2]=n,this.props[3]=r,this.props[4]=o,this.props[5]=i,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=f,this.props[13]=p,this.props[14]=h,this.props[15]=m,this}function m(e,t,n){return n=n||0,0!==e||0!==t||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1):this}function g(e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m){var g=this.props;if(1===e&&0===t&&0===n&&0===r&&0===o&&1===i&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*e+g[15]*f,g[13]=g[13]*i+g[15]*p,g[14]=g[14]*u+g[15]*h,g[15]=g[15]*m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],_=g[3],w=g[4],S=g[5],E=g[6],k=g[7],T=g[8],x=g[9],O=g[10],C=g[11],P=g[12],A=g[13],I=g[14],R=g[15];return g[0]=y*e+v*o+b*l+_*f,g[1]=y*t+v*i+b*c+_*p,g[2]=y*n+v*a+b*u+_*h,g[3]=y*r+v*s+b*d+_*m,g[4]=w*e+S*o+E*l+k*f,g[5]=w*t+S*i+E*c+k*p,g[6]=w*n+S*a+E*u+k*h,g[7]=w*r+S*s+E*d+k*m,g[8]=T*e+x*o+O*l+C*f,g[9]=T*t+x*i+O*c+C*p,g[10]=T*n+x*a+O*u+C*h,g[11]=T*r+x*s+O*d+C*m,g[12]=P*e+A*o+I*l+R*f,g[13]=P*t+A*i+I*c+R*p,g[14]=P*n+A*a+I*u+R*h,g[15]=P*r+A*s+I*d+R*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 v(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(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 w(e,t,n){return{x:e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}}function S(e,t,n){return e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12]}function E(e,t,n){return e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13]}function k(e,t,n){return e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]}function T(e){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],n=this.props[5]/t,r=-this.props[1]/t,o=-this.props[4]/t,i=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]*n+e[1]*o+a,e[0]*r+e[1]*i+s,0]}function x(e){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r[t]=T(e[t]);return r}function O(e,t,n){var o=r("float32",6);if(this.isIdentity())o[0]=e[0],o[1]=e[1],o[2]=t[0],o[3]=t[1],o[4]=n[0],o[5]=n[1];else{var i=this.props[0],a=this.props[1],s=this.props[4],l=this.props[5],c=this.props[12],u=this.props[13];o[0]=e[0]*i+e[1]*s+c,o[1]=e[0]*a+e[1]*l+u,o[2]=t[0]*i+t[1]*s+c,o[3]=t[0]*a+t[1]*l+u,o[4]=n[0]*i+n[1]*s+c,o[5]=n[0]*a+n[1]*l+u}return o}function C(e,t,n){return this.isIdentity()?[e,t,n]:[e*this.props[0]+t*this.props[4]+n*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+n*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+n*this.props[10]+this.props[14]]}function P(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 A(){for(var e=0,t=this.props,n="matrix3d(",r=1e4;e<16;)n+=o(t[e]*r)/r,n+=15===e?")":",",e+=1;return n}function I(){var e=1e4,t=this.props;return"matrix("+o(t[0]*e)/e+","+o(t[1]*e)/e+","+o(t[4]*e)/e+","+o(t[5]*e)/e+","+o(t[12]*e)/e+","+o(t[13]*e)/e+")"}function R(){this.reset=i,this.rotate=a,this.rotateX=s,this.rotateY=l,this.rotateZ=c,this.skew=d,this.skewFromAxis=f,this.shear=u,this.scale=p,this.setTransform=h,this.translate=m,this.transform=g,this.applyToPoint=w,this.applyToX=S,this.applyToY=E,this.applyToZ=k,this.applyToPointArray=C,this.applyToTriplePoints=O,this.applyToPointStringified=P,this.toCSS=A,this.to2dCSS=I,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=x,this.inversePoint=T,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=r("float32",16),this.reset()}return function(){return new R}}();
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=o},{"./typedArrays":9}],9:[function(e,t,n){"use strict";var r=function(){function e(e,t){var n,r=0,o=[];switch(e){case"int16":case"uint8c":n=1;break;default:n=1.1}for(r=0;r<t;r+=1)o.push(n);return o}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=r},{}],10:[function(e,t,n){"use strict";var r=e("./animation/AnimationItem");function o(e){return Object.assign({},r(e))}t.exports={createAnimationApi:o}},{"./animation/AnimationItem":1}],11:[function(e,t,n){"use strict";var r=e("../helpers/keyPathBuilder"),o=e("../enums/layer_types");function i(e,t){function n(){return e.length}function a(e,t){return e.filter(function(e){return e.getTargetLayer().data.ty===o[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 i(a(e,t),"layer")}function u(t){return i(s(e,t),"layer")}function d(t){return i(e.filter(function(e){return e.hasProperty(t)}).map(function(e){return e.getProperty(t)}),"property")}function f(t){return i(l(e,t).map(function(e){return e.getProperty(t)}),"property")}function p(e){var n,o,i,a=r(e),s=a.selector;return"renderer"===t||"layer"===t?(n=u(s),o=c(s),i=0===n.length&&0===o.length?f(s):n.concat(o),a.propertyPath?i.getKeyPath(a.propertyPath):i):"property"===t?(i=d(s),a.propertyPath?i.getKeyPath(a.propertyPath):i):void 0}function h(n){var r=n.getElements();return i(e.concat(r),t)}function m(){return e}function g(t){return e[t]}var y={getKeyPath:p,concat:h,getElements:m,getPropertyAtIndex:g};return Object.defineProperty(y,"length",{get:n}),y}t.exports=i},{"../enums/layer_types":3,"../helpers/keyPathBuilder":5}],12:[function(e,t,n){"use strict";function r(e){function t(t,n){for(var r=e.properties||[],o=0,i=r.length;o<i;){if(r[o].name===t)return r[o].value;o+=1}return null}function n(e){return!!t(e)}function r(e){return t(e)}function o(t){return e.parent.fromKeypathLayerPoint(t)}function i(t){return e.parent.toKeypathLayerPoint(t)}return{hasProperty:n,getProperty:r,fromKeypathLayerPoint:o,toKeypathLayerPoint:i}}e("../enums/key_path_separator"),e("../enums/property_names"),t.exp
39orts=r},{"../enums/key_path_separator":2,"../enums/property_names":4}],13:[function(e,t,n){"use strict";var r=e("../key_path/KeyPathNode"),o=e("./transform/Transform"),i=e("./effects/Effects"),a=e("../helpers/transformationMatrix");function s(e){var t=o(e.element.finalTransform.mProp,e),n=i(e.element.effectsManager.effectElements||[],e);function s(){e.properties.push({name:"transform",value:t},{name:"Transform",value:t},{name:"Effects",value:n},{name:"effects",value:n})}function l(t){var n=e.element;e.parent.toKeypathLayerPoint&&(t=e.parent.toKeypathLayerPoint(t));var r=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(r),n.hierarchy&&n.hierarchy.length){var o,i=n.hierarchy.length;for(o=0;o<i;o+=1)n.hierarchy[o].finalTransform.mProp.applyToMatrix(r)}return r.inversePoint(t)}function c(t){var n=e.element,r=a();if(e.getProperty("Transform").getTargetTransform().applyToMatrix(r),n.hierarchy&&n.hierarchy.length){var o,i=n.hierarchy.length;for(o=0;o<i;o+=1)n.hierarchy[o].finalTransform.mProp.applyToMatrix(r)}return t=r.applyToPointArray(t[0],t[1],t[2]||0),e.parent.fromKeypathLayerPoint?e.parent.fromKeypathLayerPoint(t):t}function u(){return e.element}var d={getTargetLayer:u,toKeypathLayerPoint:l,fromKeypathLayerPoint:c};return s(),Object.assign(e,r(e),d)}t.exports=s},{"../helpers/transformationMatrix":8,"../key_path/KeyPathNode":12,"./effects/Effects":19,"./transform/Transform":39}],14:[function(e,t,n){"use strict";var r=e("../enums/layer_types"),o=e("../helpers/layerAPIBuilder");function i(e){function t(){return e.length}function n(e,t){return e.filter(function(e){return e.data.ty===r[t]})}function a(e,t){return e.filter(function(e){return e.data.nm===t})}function s(){return i(e)}function l(t){return i(n(e,t))}function c(t){return i(a(e,t))}function u(t){return t>=e.length?[]:o(e[parseInt(t)])}function d(t,n){t.reduce(function(t,n){var r=n;return t[n]=function(){var t=arguments;return e.map(function(e){var n=o(e);return n[r]?n[r].apply(null,t):null})},t},h)}function f(){return e}function p(t){return e.concat(t.getTargetElements())}var h={getLayers:s,getLayersByType:l,getLayersByName:c,layer:u,concat:p,getTargetElements:f};return d(["setTranslate","getType","getDuration"]),d(["setText","getText","setDocumentData","canResizeFont","setMinimumFontSize"]),Object.defineProperty(h,"length",{get:t}),h}t.exports=i},{"../enums/layer_types":3,"../helpers/layerAPIBuilder":6}],15:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={},i={element:e,parent:t,properties:a()};function a(){return[{name:"Point of Interest",value:o(e.a,t)},{name:"Zoom",value:o(e.pe,t)},{name:"Position",value:o(e.p,t)},{name:"X Rotation",value:o(e.rx,t)},{name:"Y Rotation",value:o(e.ry,t)},{name:"Z Rotation",value:o(e.rz,t)},{name:"Orientation",value:o(e.or,t)}]}function s(){return i.element}var l={getTargetLayer:s};return Object.assign(n,r(i),l)}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],16:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathList"),o=e("../LayerBase"),i=e("../../helpers/layerAPIBuilder"),a=(e("../../property/Property"),e("./TimeRemap"));function s(e,t){var n={},s={element:e,parent:t,properties:c()};function l(t,n){var r=null,o={name:t.nm};function a(){return r||(r=i(e.elements[n],s)),r}return Object.defineProperty(o,"value",{get:a}),o}function c(){var t=e.layers.map(l);return[{name:"Time Remap",value:a(e.tm)}].concat(t)}var u={};return Object.assign(n,o(s),r(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,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/ValueProperty");function i(e,t){var n,i={property:e,parent:t},a=!1,s=0,l=0,c=0,u=0,d=!0,f=1,p=!1,h=!1,m=[],g={time:-1};function y(e,t,n){p=!1,n&&(_(),u=e),h&&console.log(e,t),c=Date.now(),s=e,l=t,S()}function v(){var e=m.shift();y(e[0],e[1])}function b(e,t){m.push([e,t])}function _(){m.length=0}function w(e){if(s===l)u=s;else if(!p){var t=Date.now(),n=f*(t-c)/1e3;c=t,s<l?(u+=n)>l&&(m.length?v():d?u%=l-s:u=l):(u-=n)<l&&(m.length?v():u=d?s-(l-u):l),h&&console.log(u)}
39return I.onEnterFrame&&g.time!==u&&(g.time=u,I.onEnterFrame(g)),u}function S(){a||(a=!0,n=I.setValue(w,h))}function E(e,t){p=!1,t&&_(),S(),l=e}function k(){return a?u:e.v/e.mult}function T(e){d=e}function x(e){f=e}function O(e){h=e}function C(){p=!0}function P(){n&&(n(),i.property=null,i.parent=null)}var A={playSegment:y,playTo:E,queueSegment:b,clearQueue:_,setLoop:T,setSpeed:x,pause:C,setDebugging:O,getCurrentTime:k,onEnterFrame:null,destroy:P},I={};return Object.assign(I,A,o(i),r(i))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/ValueProperty":41}],18:[function(e,t,n){"use strict";var r=e("../../property/Property");function o(e,t){return r(e.p,t)}t.exports=o},{"../../property/Property":40}],19:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:s()};function a(e,n){return{name:e.data?e.data.nm:n.toString(),value:e.data?i(e.effectElements,t):o(e.p,t)}}function s(){var t,n=e.length,r=[];for(t=0;t<n;t+=1)r.push(a(e[t],t));return r}var l={};return Object.assign(l,r(n))}e("./EffectElement"),t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./EffectElement":18}],20:[function(e,t,n){"use strict";var r=e("../LayerBase");function o(e){var t={element:e,parent,properties:n()};function n(){return[]}var o={};return Object.assign({},r(t),o)}t.exports=o},{"../LayerBase":13}],21:[function(e,t,n){"use strict";var r=e("../LayerBase");function o(e,t){var n={},o={element:e,parent:t,properties:i()};function i(){return[]}var a={};return Object.assign(n,r(o),a)}t.exports=o},{"../LayerBase":13}],22:[function(e,t,n){"use strict";var r=e("../LayerBase"),o=e("./ShapeContents");function i(e,t){var n={properties:[],parent:t,element:e},i=o(e.data.shapes,e.itemsData,n);function a(){n.properties.push({name:"Contents",value:i})}var s={};return a(),Object.assign(n,r(n),s)}t.exports=i},{"../LayerBase":13,"./ShapeContents":23}],23:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=(e("../../property/Property"),e("./ShapeRectangle")),i=e("./ShapeFill"),a=e("./ShapeStroke"),s=e("./ShapeEllipse"),l=e("./ShapeGradientFill"),c=e("./ShapeGradientStroke"),u=e("./ShapeTrimPaths"),d=e("./ShapeRepeater"),f=e("./ShapePolystar"),p=e("./ShapeRoundCorners"),h=e("./ShapePath"),m=e("../transform/Transform"),g=e("../../helpers/transformationMatrix");function y(e,t,n){var v={properties:w(),parent:n},b=[];function _(n,r){var g={name:n.nm};return Object.defineProperty(g,"value",{get:function(){return b[r]?b[r]:("gr"===n.ty?g=y(e[r].it,t[r].it,v):"rc"===n.ty?g=o(t[r],v):"el"===n.ty?g=s(t[r],v):"fl"===n.ty?g=i(t[r],v):"st"===n.ty?g=a(t[r],v):"gf"===n.ty?g=l(t[r],v):"gs"===n.ty?g=c(t[r],v):"tm"===n.ty?g=u(t[r],v):"rp"===n.ty?g=d(t[r],v):"sr"===n.ty?g=f(t[r],v):"rd"===n.ty?g=p(t[r],v):"sh"===n.ty?g=h(t[r],v):"tr"===n.ty?g=m(t[r].transform.mProps,v):console.log(n.ty),b[r]=g,g);var g}}),g}function w(){return e.map(function(e,t){return _(e,t)})}function S(e){if(v.hasProperty("Transform")){var t=g();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.applyToPointArray(e[0],e[1],e[2]||0)}return v.parent.fromKeypathLayerPoint(e)}function E(e){if(e=v.parent.toKeypathLayerPoint(e),v.hasProperty("Transform")){var t=g();v.getProperty("Transform").getTargetTransform().applyToMatrix(t),e=t.inversePoint(e)}return e}var k={fromKeypathLayerPoint:S,toKeypathLayerPoint:E};return Object.assign(v,r(v),k)}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,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Size",value:o(e.sh.s,t)},{name:"Position",value:o(e.sh.p,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],25:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Color",value:o(e.c,t)},{name:"Opacity",value:{setValue:o(e.o,t)}}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],26:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Start Point",value:o(e.s,t)},{name:"End Point",value:o(e.s,t)},{name:"Opacity",value:o(e.o,t)},{name:"Highlight Length",value:o(e.h,t)},{name:"Highlight Angle",value:o(e.a,t)},{name:"Colors",value:o(e.g.prop,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],27:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Start Point",value:o(e.s,t)},{name:"End Point",value:o(e.e,t)},{name:"Opacity",value:o(e.o,t)},{name:"Highlight Length",value:o(e.h,t)},{name:"Highlight Angle",value:o(e.a,t)},{name:"Colors",value:o(e.g.prop,t)},{name:"Stroke Width",value:o(e.w,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],28:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"path",value:o(e.sh,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],29:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Points",value:o(e.sh.pt,t)},{name:"Position",value:o(e.sh.p,t)},{name:"Rotation",value:o(e.sh.r,t)},{name:"Inner Radius",value:o(e.sh.ir,t)},{name:"Outer Radius",value:o(e.sh.or,t)},{name:"Inner Roundness",value:o(e.sh.is,t)},{name:"Outer Roundness",value:o(e.sh.os,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],30:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Size",value:o(e.sh.s,t)},{name:"Position",value:o(e.sh.p,t)},{name:"Roundness",value:o(e.sh.r,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],31:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property"),i=e("../transform/Transform");function a(e,t){var n={parent:t,properties:a()};function a(){return[{name:"Copies",value:o(e.c,t)}
39,{name:"Offset",value:o(e.o,t)},{name:"Transform",value:i(e.tr,t)}]}var s={};return Object.assign(s,r(n))}t.exports=a},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"../transform/Transform":39}],32:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Radius",value:o(e.rd,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],33:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Color",value:o(e.c,t)},{name:"Stroke Width",value:o(e.w,t)},{name:"Opacity",value:o(e.o,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],34:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={parent:t,properties:i()};function i(){return[{name:"Start",value:o(e.s,t)},{name:"End",value:o(e.e,t)},{name:"Offset",value:o(e.o,t)}]}var a={};return Object.assign(a,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],35:[function(e,t,n){"use strict";var r=e("../LayerBase");function o(e,t){var n={element:e,parent:t,properties:o()};function o(){return[]}var i={};return Object.assign({},r(n),i)}t.exports=o},{"../LayerBase":13}],36:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=(e("../../property/Property"),e("./TextAnimator"));function i(e,t){var n={},i={element:e,parent:t,properties:l()};function a(t){var n,r=function(r){var o=t(e.textProperty.currentData);return n!==o?(n=o,Object.assign({},r,o,{__complete:!1})):r};e.textProperty.addEffect(r)}
39function s(){var t,n,r=[],i=e.textAnimator._animatorsData,a=i.length;for(t=0;t<a;t+=1)n=o(i[t]),r.push({name:e.textAnimator._textData.a[t].nm||"Animator "+(t+1),value:n});return r}function l(){return[{name:"Source",value:{setValue:a}}].concat(s())}var c={};return Object.assign(n,c,r(i))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40,"./TextAnimator":37}],37:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e){var t={},n={properties:T()};function i(t){o(e.a.a).setValue(t)}function a(t){o(e.a.fb).setValue(t)}function s(t){o(e.a.fc).setValue(t)}function l(t){o(e.a.fh).setValue(t)}function c(t){o(e.a.fs).setValue(t)}function u(t){o(e.a.fo).setValue(t)}function d(t){o(e.a.o).setValue(t)}function f(t){o(e.a.p).setValue(t)}function p(t){o(e.a.rx).setValue(t)}function h(t){o(e.a.ry).setValue(t)}function m(t){o(e.a.s).setValue(t)}function g(t){o(e.a.sa).setValue(t)}function y(t){o(e.a.sc).setValue(t)}function v(t){o(e.a.sk).setValue(t)}function b(t){o(e.a.so).setValue(t)}function _(t){o(e.a.sw).setValue(t)}function w(t){o(e.a.sb).setValue(t)}function S(t){o(e.a.sh).setValue(t)}function E(t){o(e.a.ss).setValue(t)}function k(t){o(e.a.t).setValue(t)}function T(){return[{name:"Anchor Point",value:{setValue:i}},{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:d}},{name:"Position",value:{setValue:f}},{name:"Rotation X",value:{setValue:p}},{name:"Rotation Y",value:{setValue:h}},{name:"Scale",value:{setValue:m}},{name:"Skew Axis",value:{setValue:g}},{name:"Stroke Color",value:{setValue:y}},{name:"Skew",value:{setValue:v}},{name:"Stroke Width",value:{setValue:_}},{name:"Tracking Amount",value:{setValue:k}},{name:"Stroke Opacity",value:{setValue:b}},{name:"Stroke Brightness",value:{setValue:w}},{name:"Stroke Saturation",value:{setValue:E}},{name:"Stroke Hue",value:{setValue:S}}]}var x={};return Object.assign(t,x,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],38:[function(e,t,n){"use strict";var r=e("../LayerBase"),o=e("./Text");function i(e){var t={},n=o(e),i={element:e,properties:a()};function a(){return[{name:"text",value:n},{name:"Text",value:n}]}function s(){return e.textProperty.currentData.t}function l(e,t){c({t:e},t)}function c(t,n){return e.updateDocumentData(t,n)}function u(t){return e.canResizeFont(t)}function d(t){return e.setMinimumFontSize(t)}var f={getText:s,setText:l,canResizeFont:u,setDocumentData:c,setMinimumFontSize:d};return Object.assign(t,r(i),f)}t.exports=i},{"../LayerBase":13,"./Text":36}],39:[function(e,t,n){"use strict";var r=e("../../key_path/KeyPathNode"),o=e("../../property/Property");function i(e,t){var n={properties:i()};function i(){return[{name:"Anchor Point",value:o(e.a,t)},{name:"Point of Interest",value:o(e.a,t)},{name:"Position",value:o(e.p,t)},{name:"Scale",value:o(e.s,t)},{name:"Rotation",value:o(e.r,t)},{name:"X Position",value:o(e.px,t)},{name:"Y Position",value:o(e.py,t)},{name:"Z Position",value:o(e.pz,t)},{name:"X Rotation",value:o(e.rx,t)},{name:"Y Rotation",value:o(e.ry,t)},{name:"Z Rotation",value:o(e.rz,t)},{name:"Opacity",value:o(e.o,t)}]}function a(){return e}var s={getTargetTransform:a};return Object.assign(s,r(n))}t.exports=i},{"../../key_path/KeyPathNode":12,"../../property/Property":40}],40:[function(e,t,n){"use strict";var r=e("../key_path/KeyPathNode"),o=e("./ValueProperty");function i(e,t){var n={property:e,parent:t};function i(){n.property=null,n.parent=null}var a={destroy:i};return Object.assign({},a,o(n),r(n))}t.exports=i},{"../key_path/KeyPathNode":12,"./ValueProperty":41}],41:[function(e,t,n){"use strict";var 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};function o(e){function t(t){var n=e.property;if(n&&n.addEffect)return"function"==typeof t?n.addEffect(t):"multidimensional"===n.propType&&"object"===(void 0===t?"undefined":r(t))&&2===t.length||"unidimensional"===n.propType&&"number"==typeof t?n.addEffect(function(){return t}):void 0}function n(){return e.property.v}return{setValue:t,getValue:n}}t.exports=o},{}],42:[function(e,t,n){"use strict";var r=e("../layer/LayerList"),o=e("../key_path/KeyPathList");function i(e){function t(){return e.animation.animType}return e._type="renderer",Object.assign({getRendererType:t},r(e.elements),o(e.elements,"renderer"))}t.exports=i},{"../key_path/KeyPathList":11,"../layer/LayerList":14}]},{},[10])(10)},,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{ENTERED:()=>f,ENTERING:()=>d,EXITED:()=>u,EXITING:()=>p,UNMOUNTED:()=>c,default:()=>g});var r=n(1160),o=n(1161),i=n(396),a=n(1163),s=n(1164),l=n(1165),c="unmounted",u="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=u,r.appearStatus=d):o=f:o=t.unmountOnExit||t.mountOnEnter?c:u,r.state={status:o},r.nextCallback=null,r}(0,o.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
39ppear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this);n&&(0,l.forceReflow)(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:c})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[i.default.findDOMNode(this),r],s=o[0],l=o[1],c=this.getTimeouts(),u=r?c.appear:c.enter;!e&&!n||a.default.disabled?this.safeSetState({status:f},function(){t.props.onEntered(s)}):(this.props.onEnter(s,l),this.safeSetState({status:d},function(){t.props.onEntering(s,l),t.onTransitionEnd(u,function(){t.safeSetState({status:f},function(){t.props.onEntered(s,l)})})}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:i.default.findDOMNode(this);t&&!a.default.disabled?(this.props.onExit(r),this.safeSetState({status:p},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:u},function(){e.props.onExited(r)})})})):this.safeSetState({status:u},function(){e.props.onExited(r)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:i.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],s=o[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,o=(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,r.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.default.createElement(s.default.Provider,{value:null},"function"==typeof n?n(e,o):i.default.cloneElement(i.default.Children.only(n),o))},t}(i.default.Component);function m(){}h.contextType=s.default,h.propTypes={},h.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},h.UNMOUNTED=c,h.EXITED=u,h.ENTERING=d,h.ENTERED=f,h.EXITING=p;const g=h},(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(1162);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.default)(e,t)}},(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r={disabled:!1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=n(396).default.createContext(null)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{forceReflow:()=>r});var r=function(e){return e.scrollTop}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{forceLoad:()=>T,getDefaultIntegrations:()=>E,init:()=>k,onLoad:()=>x});var r=n(1388),o=n(1389),i=n(1390),a=n(1391),s=n(1393),l=n(1394),c=n(417),u=n(419),d=n(1395),f=n(1425),p=n(1439),h=n(1440),m=n(1441),g=n(1444),y=n(1447),v=n(1448),b=n(1450),_=n(1451),w=n(1454),S=n(1456);function E(e){return[(0,a.inboundFiltersIntegration)(),(0,i.functionToStringIntegration)(),(0,l.conversationIdIntegration)(),(0,p.browserApiErrorsIntegration)(),(0,f.breadcrumbsIntegration)(),(0,g.globalHandlersIntegration)(),(0,v.linkedErrorsIntegration)(),(0,s.dedupeIntegration)(),(0,y.httpContextIntegration)(),(0,m.cultureContextIntegration)(),(0,h.browserSessionIntegration)()]}function k(e={}){const t=!e.skipBrowserExtensionCheck&&(0,S.checkAndWarnIfIsEmbeddedBrowserExtension)();let n=null==e.defaultIntegrations?E():e.defaultIntegrations;const i={...e,enabled:!t&&e.enabled,stackParser:(0,u.stackParserFromStackParserOptions)(e.stackParser||b.defaultStackParser),integrations:(0,o.getIntegrationsToSetup)({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||_.makeFetchTransport};return(0,c.setNormalizeStringifier)(w.normalizeStringifyValue),(0,r.initAndBind)(d.BrowserClient,i)}function T(){}function x(e){e()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{initAndBind:()=>a,setCurrentClient:()=>s});var r=n(401),o=n(409),i=n(413);function a(e,t){!0===t.debug&&(o.DEBUG_BUILD?i.debug.enable():(0,i.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));(0,r.getCurrentScope)().update(t.initialScope);const n=new e(t);return s(n),n.init(),n}function s(e){(0,r.getCurrentScope)().setClient(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addIntegration:()=>d,afterSetupIntegrations:()=>c,defineIntegration:()=>f,getIntegrationsToSetup:()=>s,installedIntegrations:()=>a,setupIntegration:()=>u,setupIntegrations:()=>l});var r=n(401),o=n(409),i=n(413);const a=[];function s(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;
39if(t.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))r=[...t,...n];else if("function"==typeof n){const e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return function(e){const t={};return e.forEach(e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}(r)}function l(e,t){const n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&u(e,t,n)}),n}function c(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function u(e,t,n){if(n[t.name])o.DEBUG_BUILD&&i.debug.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[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 n=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,r)=>n(t,r,e))}if("function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}["processSpan","processSegmentSpan"].forEach(n=>{const r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),o.DEBUG_BUILD&&i.debug.log(`Integration installed: ${t.name}`)}}function d(e){const t=(0,r.getClient)();t?t.addIntegration(e):o.DEBUG_BUILD&&i.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`)}function f(e){return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{functionToStringIntegration:()=>l});var r=n(401),o=n(1389),i=n(412);let a;const s=new WeakMap,l=(0,o.defineIntegration)(()=>({name:"FunctionToString",setupOnce(){a=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,i.getOriginalFunction)(this),n=s.has((0,r.getClient)())&&void 0!==t?t:this;return a.apply(n,e)}}catch{}},setup(e){s.set(e,!0)}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{eventFiltersIntegration:()=>u,inboundFiltersIntegration:()=>d});var r=n(409),o=n(1389),i=n(413),a=n(1392),s=n(411),l=n(416);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,o.defineIntegration)((e={})=>{let t;return{name:"EventFilters",setup(n){const r=n.getOptions();t=f(e,r)},processEvent(n,o,c){if(!t){const n=c.getOptions();t=f(e,n)}return function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;const n=e.transaction;return!!n&&(0,l.stringMatchesSomePattern)(n,t)}(e,t.ignoreTransactions))return r.DEBUG_BUILD&&i.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 r.DEBUG_BUILD&&i.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 r.DEBUG_BUILD&&i.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 n=p(e);return!!n&&(0,l.stringMatchesSomePattern)(n,t)}(e,t.denyUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${p(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;const n=p(e);return!n||(0,l.stringMatchesSomePattern)(n,t)}(e,t.allowUrls))return r.DEBUG_BUILD&&i.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,s.getEventDescription)(e)}.\nUrl: ${p(e)}`),!0}return!1}(n,t)?null:n}}}),d=(0,o.defineIntegration)((e={})=>({...u(e),name:"InboundFilters"}));function f(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 p(e){try{const t=[...e.exception?.values??[]].reverse().find(e=>void 0===e.mechanism?.parent_id&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch{return r.DEBUG_BUILD&&i.debug.error(`Cannot extract url for event ${(0,s.getEventDescription)(e)}`),null}}},(e,t,n)=>{"use strict";function r(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}n.r(t),n.d(t,{getPossibleEventMessages:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_shouldDropEvent:()=>l,dedupeIntegration:()=>s});var r=n(409),o=n(1389),i=n(413),a=n(419);const s=(0,o.defineIntegration)(()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{if(l(t,e))return r.DEBUG_BUILD&&i.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 n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t)||!!function(e,t){const n=d(t),r=d(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!u(e,t))return!1;if(!c(e,t))return!1;return!0}(e,t))}function c(e,t){let n=(0,a.getFramesFromEvent)(e),r=(0,a.getFramesFromEvent)(t);
39if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++){const t=r[e],o=n[e];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function)return!1}return!0}function u(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch{return!1}}function d(e){return e.exception?.values?.[0]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{conversationIdIntegration:()=>s});var r=n(401),o=n(1389),i=n(427),a=n(434);const s=(0,o.defineIntegration)(()=>({name:"ConversationId",setup(e){e.on("spanStart",e=>{const t=(0,r.getCurrentScope)().getScopeData(),n=(0,r.getIsolationScope)().getScopeData(),o=t.conversationId||n.conversationId;if(o){const{op:t,data:n,description:r}=(0,a.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!r?.startsWith("ai."))return;e.setAttribute(i.GEN_AI_CONVERSATION_ID_ATTRIBUTE,o)}})}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserClient:()=>d,applyDefaultOptions:()=>f});var r=n(1396),o=n(1419),i=n(1420),a=n(1398),s=n(1406),l=n(1405),c=n(1421),u=n(1423);class d extends r.Client{constructor(e){const t=f(e),n=u.WINDOW.SENTRY_SDK_SOURCE||(0,l.getSDKSource)();(0,i.applySdkMetadata)(t,"browser",["browser"],n),super(t);const{userInfo:r}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:c,enableLogs:d,_experiments:p,enableMetrics:h}=this._options,m=h??p?.enableMetrics??!0;u.WINDOW.document&&(c||d||m)&&u.WINDOW.document.addEventListener("visibilitychange",()=>{"hidden"===u.WINDOW.document.visibilityState&&(c&&this._flushOutcomes(),d&&(0,a._INTERNAL_flushLogsBuffer)(this),m&&(0,s._INTERNAL_flushMetricsBuffer)(this))}),r&&this.on("beforeSendSession",o.addAutoIpAddressToSession)}eventFromException(e,t){return(0,c.eventFromException)(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return(0,c.eventFromMessage)(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}function f(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:u.WINDOW.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Client:()=>V});var r=n(1397),o=n(441),i=n(401),a=n(409),s=n(446),l=n(1389),c=n(1398),u=n(1406),d=n(410),f=n(440),p=n(447),h=n(1408),m=n(1410),g=n(1414),y=n(413),v=n(439),b=n(448),_=n(1392),w=n(414),S=n(421),E=n(411),k=n(433),T=n(450),x=n(1411),O=n(415),C=n(431),P=n(434),A=n(452),I=n(1412),R=n(1415),j=n(1416);const M="Not capturing exception because it's already been captured.",D="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 z(e){return!!e&&"object"==typeof e&&N in e}function U(e){return!!e&&"object"==typeof e&&L in e}function H(e,t,n,r,o){let i,a=0,s=!1;e.on(n,()=>{a=0,clearTimeout(i),s=!1}),e.on(t,t=>{if(a+=r(t),a>=8e5)o(e);else if(!s){const t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,i=(0,I.safeUnref)(setTimeout(()=>{o(e)},t)))}}),e.on("flush",()=>{o(e)})}class V{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=(0,x.makePromiseBuffer)(e.transportOptions?.bufferSize??m.DEFAULT_TRANSPORT_BUFFER_SIZE),this._dataCollection=(0,j.resolveDataCollectionOptions)(e),e.dsn?this._dsn=(0,v.makeDsn)(e.dsn):a.DEBUG_BUILD&&y.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=(0,r.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,this._options.enableLogs&&H(this,"afterCaptureLog","flushLogs",Y,c._INTERNAL_flushLogsBuffer);(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&H(this,"afterCaptureMetric","flushMetrics",$,u._INT
39ERNAL_flushMetricsBuffer)}captureException(e,t,n){const r=(0,E.uuid4)();if((0,E.checkOrSetAlreadyCaught)(e))return a.DEBUG_BUILD&&y.debug.log(M),r;const o={event_id:r,...t};return this._process(()=>this.eventFromException(e,o).then(e=>this._captureEvent(e,o,n)).then(e=>e),"error"),o.event_id}captureMessage(e,t,n,r){const o={event_id:(0,E.uuid4)(),...n},i=(0,w.isParameterizedString)(e)?e:String(e),a=(0,w.isPrimitive)(e),s=a?this.eventFromMessage(i,t,o):this.eventFromException(e,o);return this._process(()=>s.then(e=>this._captureEvent(e,o,r)),a?"unknown":"error"),o.event_id}captureEvent(e,t,n){const r=(0,E.uuid4)();if(t?.originalException&&(0,E.checkOrSetAlreadyCaught)(t.originalException))return a.DEBUG_BUILD&&y.debug.log(M),r;const o={event_id:r,...t},i=e.sdkProcessingMetadata||{},s=i.capturedSpanScope,l=i.capturedSpanIsolationScope,c=q(e.type);return this._process(()=>this._captureEvent(e,o,s||n,l),c),o.event_id}captureSession(e){this.sendSession(e),(0,d.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 n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){(0,c._INTERNAL_flushLogsBuffer)(this);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 n=(0,h.extractGenAiSpansFromEvent)(e,this);let r=(0,s.createEventEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])r=(0,b.addItemToEnvelope)(r,(0,b.createAttachmentEnvelopeItem)(e));n&&(r=(0,b.addItemToEnvelope)(r,n)),this.sendEnvelope(r).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){const{release:t,environment:n=o.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){const r=e.attrs||{};if(!r.release&&!t)return void(a.DEBUG_BUILD&&y.debug.warn(D));r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t)return void(a.DEBUG_BUILD&&y.debug.warn(D));e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=(0,s.createSessionEnvelope)(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;a.DEBUG_BUILD&&y.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.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 n="fatal"===t.level,r=!1;const o=t.exception?.values;if(o){r=!0,n=!1;for(const e of o)if(!1===e.mechanism?.handled){n=!0;break}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,d.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),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,n,r){const o=this.getOptions(),a=this.getIntegrationNames();
39return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,T.prepareEvent)(o,e,t,n,this,r).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,i.getTraceContextFromScope)(n)},...e.contexts};const r=(0,f.getDynamicSamplingContextFromScope)(this,n);return e.sdkProcessingMetadata={dynamicSamplingContext:r,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},n=(0,i.getCurrentScope)(),r=(0,i.getIsolationScope)()){return a.DEBUG_BUILD&&G(e)&&y.debug.log(`Captured error event \`${(0,_.getPossibleEventMessages)(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{a.DEBUG_BUILD&&(U(e)?y.debug.log(e.message):z(e)?y.debug.warn(e.message):y.debug.warn(e))})}_processEvent(e,t,n,r){const o=this.getOptions(),{sampleRate:i}=o,a=W(e),s=G(e),l=`before send for type \`${e.type||"error"}\``,c=void 0===i?void 0:(0,k.parseSampleRate)(i);if(s&&"number"==typeof c&&(0,O.safeMathRandom)()>c)return this.recordDroppedEvent("sample_rate","error"),(0,A.rejectedSyncPromise)(B(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const u=q(e.type);return this._prepareEvent(e,t,n,r).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 n=function(e,t,n,r){const{beforeSend:o,beforeSendTransaction:i,ignoreSpans:a}=t,s=!(0,p.isStreamedBeforeSendSpanCallback)(t.beforeSendSpan)&&t.beforeSendSpan;let l=n;if(G(l)&&o)return o(l,r);if(W(l)){if(s||a){const t=(0,R.convertTransactionEventToSpanJson)(l);if(a?.length&&(0,C.shouldIgnoreSpan)({description:t.description,op:t.op,attributes:t.data},a))return null;if(s){const e=s(t);e?l=(0,S.merge)(n,(0,R.convertSpanJsonToTransactionEvent)(e)):(0,P.showSpanDropWarning)()}if(l.spans){const t=[],n=l.spans;for(const e of n)if(a?.length&&(0,C.shouldIgnoreSpan)({description:e.description,op:e.op,attributes:e.data},a))(0,C.reparentChildSpans)(n,e);else if(s){const n=s(e);n?t.push(n):((0,P.showSpanDropWarning)(),t.push(e))}else t.push(e);const r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(i){if(l.spans){const e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,r)}}return l}(this,o,e,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,w.isThenable)(e))return e.then(e=>{if(!(0,w.isPlainObject)(e)&&null!==e)throw F(n);return e},e=>{throw F(`${t} rejected with ${e}`)});if(!(0,w.isPlainObject)(e)&&null!==e)throw F(n);return e}(n,l)}).then(o=>{if(null===o){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 i=n.getSession()||r.getSession();if(s&&i&&this._updateSessionFromEvent(i,o),a){const e=(o.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(o.spans?o.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}const c=o.transaction_info;if(a&&c&&o.transaction!==e.transaction){const e="custom";o.transaction_info={...c,source:e}}return this.sendEvent(o,t),o}).then(null,e=>{if(U(e)||z(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===x.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[n,r]=e.split(":");return{reason:n,category:r,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,v.dsnToString)(this._dsn));this.sendEnvelope(t)}}function q(e){return"replay_event"===e?"replay":e||"error"}function G(e){return void 0===e.type}function W(e){return"transaction"===e.type}function $(e){let t=0;return e.name&&(t+=2*e.name.length),t+=8,t+K(e.attributes)}function Y(e){let t=0;return e.message&&(t+=2*e.message.length),t+K(e.attributes)}function K(e){if(!e)return 0;let t=0;
39return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*J(e[0]):(0,w.isPrimitive)(e)?t+=J(e):t+=100}),t}function J(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:"boolean"==typeof e?4:0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SENTRY_API_VERSION:()=>o,getEnvelopeEndpointWithUrlEncodedAuth:()=>a,getReportDialogEndpoint:()=>s});var r=n(439);const o="7";function i(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function a(e,t,n){return t||`${function(e){return`${i(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){const n={sentry_version:o};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}(e,n)}`}function s(e,t){const n=(0,r.makeDsn)(e);if(!n)return"";const o=`${i(n)}embed/error-page/`;let a=`dsn=${(0,r.dsnToString)(n)}`;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`${o}?${a}`}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_INTERNAL_captureLog:()=>b,_INTERNAL_captureSerializedLog:()=>v,_INTERNAL_flushLogsBuffer:()=>_,_INTERNAL_getLogBuffer:()=>w,_removeLoneSurrogates:()=>k});var r=n(435),o=n(403),i=n(401),a=n(409),s=n(413),l=n(414),c=n(454),u=n(423),d=n(420),f=n(1399),p=n(1400),h=n(1401),m=n(1402);const g=100;function y(e,t,n,r=!0){!n||e[t]&&!r||(e[t]=n)}function v(e,t){const n=S(),r=w(e);void 0===r?n.set(e,[t]):r.length>=g?(_(e,r),n.set(e,[t])):n.set(e,[...r,t])}function b(e,t=(0,i.getCurrentScope)(),n=v){const o=t?.getClient()??(0,i.getClient)();if(!o)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture log."));const{release:m,environment:g,enableLogs:b=!1,beforeSendLog:_}=o.getOptions();if(!b)return void(a.DEBUG_BUILD&&s.debug.warn("logging option not enabled, log will not be captured."));const[,w]=(0,p._getTraceInfoFromScope)(o,t),S={...e.attributes},{user:{id:T,email:x,username:O},attributes:C={}}=(0,c.getCombinedScopeData)((0,i.getIsolationScope)(),t);y(S,"user.id",T,!1),y(S,"user.email",x,!1),y(S,"user.name",O,!1),y(S,"sentry.release",m),y(S,"sentry.environment",g);const{name:P,version:A}=o.getSdkMetadata()?.sdk??{};y(S,"sentry.sdk.name",P),y(S,"sentry.sdk.version",A);const I=o.getIntegrationByName("Replay"),R=I?.getReplayId(!0);y(S,"sentry.replay_id",R),R&&"buffer"===I?.getRecordingMode()&&y(S,"sentry._internal.replay_is_buffering",!0);const j=e.message;if((0,l.isParameterizedString)(j)){const{__sentry_template_string__:e,__sentry_template_values__:t=[]}=j;t?.length&&(S["sentry.message.template"]=e),t.forEach((e,t)=>{S[`sentry.message.parameter.${t}`]=e})}const M=(0,u._getSpanForScope)(t);y(S,"sentry.trace.parent_span_id",M?.spanContext().spanId);const D={...e,attributes:S};o.emit("beforeCaptureLog",D);const N=_?(0,s.consoleSandbox)(()=>_(D)):D;if(!N)return o.recordDroppedEvent("before_send","log_item",1),void(a.DEBUG_BUILD&&s.debug.warn("beforeSendLog returned null, log will not be captured."));const{level:L,message:F,attributes:B={},severityNumber:z}=N,U=(0,d.timestampInSeconds)(),H=(0,f.getSequenceAttribute)(U);n(o,{timestamp:U,level:L,body:k(String(F)),trace_id:w?.trace_id,severity_number:z??h.SEVERITY_TEXT_TO_SEVERITY_NUMBER[L],attributes:E({...(0,r.serializeAttributes)(C),...(0,r.serializeAttributes)(B,!0),[H.key]:H.value})}),o.emit("afterCaptureLog",N)}function _(e,t){const n=t??w(e)??[];if(0===n.length)return;const r=e.getOptions(),o=(0,m.createLogEnvelope)(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);S().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function w(e){return S().get(e)}function S(){return(0,o.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function E(e){const t={};for(const[n,r]of Object.entries(e)){const e=k(n);"string"===r.type?t[e]={...r,value:k(r.value)}:t[e]=r}return t}function k(e){const t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getSequenceAttribute:()=>a});const r="sentry.timestamp.sequence";let o,i=0;function a(e){const t=Math.floor(1e3*e);void 0!==o&&t!==o&&(i=0);const n=i;return i++,o=t,{key:r,value:{value:n,type:"integer"}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_getTraceInfoFromScope:()=>a});var r=n(401),o=n(440),i=n(434);function a(e,t){return t?(0,r.withScope)(t,()=>{const n=(0,i.getActiveSpan)(),a=n?(0,i.spanToTraceContext)(n):(0,r.getTraceContextFromScope)(t);return[n?(0,o.getDynamicSamplingContextFromSpan)(n):(0,o.getDynamicSamplingContextFromScope)(e,t),a]}):[void 0,void 0]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SEVERITY_TEXT_TO_SEVERITY_NUMBER:()=>r});const r={trace:1,debug:5,info:9,warn:13,error:17,fatal:21}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createLogContainerEnvelopeItem:()=>a,createLogEnvelope:()=>s});var r=n(439),o=n(448),i=n(1403);function a(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...(0,i.isBrowser)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function s(e,t,n,i,s){const l={};return t?.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(l.dsn=(0,r.dsnToString)(i)),(0,o.createEnvelope)(l,[a(e,s)])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isBrowser:()=>i});var r=n(1404),o=n(405);function i(){return"undefined"!=typeof window&&(!(0,r.isNodeEnv)()||function(){const e=o.GLOBAL_OBJ.process;return"renderer"===e?.type}())}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isNodeEnv:()=>o,loadModule:()=>a});var r=n(1405);
39function o(){return!(0,r.isBrowserBundle)()&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function i(e,t){return e.require(t)}function a(e,t=module){let n;try{n=i(t,e)}catch{}if(!n)try{const{cwd:r}=i(t,"process");n=i(t,`${r()}/node_modules/${e}`)}catch{}return n}},(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}function o(){
40/*! __SENTRY_SDK_SOURCE__ */
41return"npm"}n.r(t),n.d(t,{getSDKSource:()=>o,isBrowserBundle:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_INTERNAL_captureMetric:()=>y,_INTERNAL_captureSerializedMetric:()=>g,_INTERNAL_flushMetricsBuffer:()=>v,_INTERNAL_getMetricBuffer:()=>b});var r=n(435),o=n(403),i=n(401),a=n(409),s=n(413),l=n(454),c=n(423),u=n(420),d=n(1399),f=n(1400),p=n(1407);const h=1e3;function m(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function g(e,t){const n=_(),r=b(e);void 0===r?n.set(e,[t]):r.length>=h?(v(e,r),n.set(e,[t])):n.set(e,[...r,t])}function y(e,t){const n=t?.scope??(0,i.getCurrentScope)(),o=t?.captureSerializedMetric??g,p=n?.getClient()??(0,i.getClient)();if(!p)return void(a.DEBUG_BUILD&&s.debug.warn("No client available to capture metric."));const{_experiments:h,enableMetrics:y,beforeSendMetric:v}=p.getOptions();if(!(y??h?.enableMetrics??!0))return void(a.DEBUG_BUILD&&s.debug.warn("metrics option not enabled, metric will not be captured."));const{user:b,attributes:_}=(0,l.getCombinedScopeData)((0,i.getIsolationScope)(),n),w=function(e,t,n){const{release:r,environment:o}=t.getOptions(),i={...e.attributes};m(i,"user.id",n.id,!1),m(i,"user.email",n.email,!1),m(i,"user.name",n.username,!1),m(i,"sentry.release",r),m(i,"sentry.environment",o);const{name:a,version:s}=t.getSdkMetadata()?.sdk??{};m(i,"sentry.sdk.name",a),m(i,"sentry.sdk.version",s);const l=t.getIntegrationByName("Replay"),c=l?.getReplayId(!0);return m(i,"sentry.replay_id",c),c&&"buffer"===l?.getRecordingMode()&&m(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}(e,p,b);p.emit("processMetric",w);const S=v||h?.beforeSendMetric,E=S?S(w):w;if(!E)return void(a.DEBUG_BUILD&&s.debug.log("`beforeSendMetric` returned `null`, will not send metric."));const k=function(e,t,n,o){const[,i]=(0,f._getTraceInfoFromScope)(t,n),a=(0,c._getSpanForScope)(n),s=a?a.spanContext().traceId:i?.trace_id,l=a?a.spanContext().spanId:void 0,p=(0,u.timestampInSeconds)(),h=(0,d.getSequenceAttribute)(p);return{timestamp:p,trace_id:s??"",span_id:l,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,r.serializeAttributes)(o),...(0,r.serializeAttributes)(e.attributes,"skip-undefined"),[h.key]:h.value}}}(E,p,n,_);a.DEBUG_BUILD&&s.debug.log("[Metric]",k),o(p,k),p.emit("afterCaptureMetric",E)}function v(e,t){const n=t??b(e)??[];if(0===n.length)return;const r=e.getOptions(),o=(0,p.createMetricEnvelope)(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);_().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function b(e){return _().get(e)}function _(){return(0,o.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createMetricContainerEnvelopeItem:()=>a,createMetricEnvelope:()=>s});var r=n(439),o=n(448),i=n(1403);function a(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...(0,i.isBrowser)()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function s(e,t,n,i,s){const l={};return t?.sdk&&(l.sdk={name:t.sdk.name,version:t.sdk.version}),n&&i&&(l.dsn=(0,r.dsnToString)(i)),(0,o.createEnvelope)(l,[a(e,s)])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractGenAiSpansFromEvent:()=>a});var r=n(1403),o=n(432),i=n(1409);function a(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!t.getOptions().streamGenAiSpans||(0,o.hasSpanStreamingEnabled)(t))return;const n=[],a=[];for(const t of e.spans)t.op?.startsWith("gen_ai.")?n.push((0,i.spanJsonToSerializedStreamedSpan)(t)):a.push(t);if(0===n.length)return;e.spans=a;const s=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,r.isBrowser)()&&{ingest_settings:{infer_ip:s,infer_user_agent:s}},items:n}]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{spanJsonToSerializedStreamedSpan:()=>o});var r=n(434);function o(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,r.streamedSpanJsonToSerializedSpan)(t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_TRANSPORT_BUFFER_SIZE:()=>l,createTransport:()=>c});var r=n(409),o=n(413),i=n(448),a=n(1411),s=n(1413);const l=64;function c(e,t,n=(0,a.makePromiseBuffer)(e.bufferSize||l)){let c={};return{send:function(l){const u=[];
41if((0,i.forEachEnvelopeItem)(l,(t,n)=>{const r=(0,i.envelopeItemTypeToDataCategory)(n);(0,s.isRateLimited)(c,r)?e.recordDroppedEvent("ratelimit_backoff",r):u.push(t)}),0===u.length)return Promise.resolve({});const d=(0,i.createEnvelope)(l[0],u),f=t=>{(0,i.envelopeContainsItemType)(d,["client_report"])?r.DEBUG_BUILD&&o.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`):(0,i.forEachEnvelopeItem)(d,(n,r)=>{e.recordDroppedEvent(t,(0,i.envelopeItemTypeToDataCategory)(r))})};return n.add(()=>t({body:(0,i.serializeEnvelope)(d)}).then(e=>413===e.statusCode?(r.DEBUG_BUILD&&o.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),e):(r.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&o.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),c=(0,s.updateRateLimits)(c,e),e),e=>{throw f("network_error"),r.DEBUG_BUILD&&o.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>{if(e===a.SENTRY_BUFFER_FULL_ERROR)return r.DEBUG_BUILD&&o.debug.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SENTRY_BUFFER_FULL_ERROR:()=>i,makePromiseBuffer:()=>a});var r=n(452),o=n(1412);const i=Symbol.for("SentryBufferFullError");function a(e=100){const t=new Set;function n(e){t.delete(e)}return{get $(){return Array.from(t)},add:function(o){if(!(t.size<e))return(0,r.rejectedSyncPromise)(i);const a=o();return t.add(a),a.then(()=>n(a),()=>n(a)),a},drain:function(e){if(!t.size)return(0,r.resolvedSyncPromise)(!0);const n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;const i=[n,new Promise(t=>(0,o.safeUnref)(setTimeout(()=>t(!1),e)))];return Promise.race(i)}}}},(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}n.r(t),n.d(t,{safeUnref:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_RETRY_AFTER:()=>o,disabledUntil:()=>a,isRateLimited:()=>s,parseRetryAfterHeader:()=>i,updateRateLimits:()=>l});var r=n(415);const o=6e4;function i(e,t=(0,r.safeDateNow)()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const i=Date.parse(`${e}`);return isNaN(i)?o:i-t}function a(e,t){return e[t]||e.all||0}function s(e,t,n=(0,r.safeDateNow)()){return a(e,t)>n}function l(e,{statusCode:t,headers:n},o=(0,r.safeDateNow)()){const a={...e},s=n?.["x-sentry-rate-limits"],l=n?.["retry-after"];if(s)for(const e of s.trim().split(",")){const[t,n,,,r]=e.split(":",5),i=parseInt(t,10),s=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))"metric_bucket"===e&&r&&!r.split(";").includes("custom")||(a[e]=o+s);else a.all=o+s}else l?a.all=o+i(l,o):429===t&&(a.all=o+6e4);return a}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createClientReportEnvelope:()=>i});var r=n(448),o=n(420);function i(e,t,n){const i=[{type:"client_report"},{timestamp:n||(0,o.dateTimestampInSeconds)(),discarded_events:e}];return(0,r.createEnvelope)(t?{dsn:t}:{},[i])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{convertSpanJsonToTransactionEvent:()=>i,convertTransactionEventToSpanJson:()=>o});var r=n(427);function o(e){const{trace_id:t,parent_span_id:n,span_id:o,status:i,origin:a,data:s,op:l}=e.contexts?.trace??{};return{data:s??{},description:e.transaction,op:l,parent_span_id:n,span_id:o??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:a,profile_id:s?.[r.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:s?.[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}function i(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&&{[r.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveDataCollectionOptions:()=>i});var r=n(1417);const o={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0}
41,stackFrameVariables:!0,frameContextLines:5};function i(e){const t=null!=e.dataCollection?o:(0,r.defaultPiiToCollectionOptions)(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,queryParams:n.queryParams??t.queryParams,genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{defaultPiiToCollectionOptions:()=>o});var r=n(1418);function o(e){return!0===e?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],queryParams:!0,genAI:{inputs:!0,outputs:!0},stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:r.PII_HEADER_SNIPPETS},httpHeaders:{request:{deny:r.PII_HEADER_SNIPPETS},response:{deny:r.PII_HEADER_SNIPPETS}},httpBodies:[],queryParams:{deny:r.PII_HEADER_SNIPPETS},genAI:{inputs:!1,outputs:!1},stackFrameVariables:!0,frameContextLines:7}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FILTERED_VALUE:()=>r,PII_HEADER_SNIPPETS:()=>o,SENSITIVE_COOKIE_NAME_SNIPPETS:()=>a,SENSITIVE_KEY_SNIPPETS:()=>i});const r="[Filtered]",o=["forwarded","-ip","remote-","via","-user"],i=["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,n)=>{"use strict";function r(e){void 0===e.user?.ip_address&&(e.user={...e.user,ip_address:"{{auto}}"})}function o(e){"aggregates"in e?void 0===e.attrs?.ip_address&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}n.r(t),n.d(t,{addAutoIpAddressToSession:()=>o,addAutoIpAddressToUser:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applySdkMetadata:()=>o});var r=n(404);function o(e,t,n=[t],o="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${o}:@sentry/${e}`,version:r.SDK_VERSION})),i.version=r.SDK_VERSION)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{eventFromException:()=>v,eventFromMessage:()=>b,eventFromUnknownInput:()=>_,exceptionFromError:()=>u,extractMessage:()=>y,extractType:()=>g});var r=n(401),o=n(414),i=n(411),a=n(417),s=n(412),l=n(452),c=n(1422);function u(e,t){const n=p(e,t),r={type:g(t),value:y(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function d(e,t,n,i){const s=(0,r.getClient)(),l=s?.getOptions().normalizeDepth,c=(d=t,Object.values(d).find(e=>e instanceof Error));var d;const f={__serialized__:(0,a.normalizeToSize)(t,l)};if(c)return{exception:{values:[u(e,c)]},extra:f};const h={exception:{values:[{type:(0,o.isEvent)(t)?t.constructor.name:i?"UnhandledRejection":"Error",value:S(t,{isUnhandledRejection:i})}]},extra:f};if(n){const t=p(e,n);t.length&&(h.exception.values[0].stacktrace={frames:t})}return h}function f(e,t){return{exception:{values:[u(e,t)]}}}function p(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e&&h.test(e.message))return 1;return 0}(t),o=function(e){if("number"==typeof e.framesToPop)return e.framesToPop;return 0}(t);try{return e(n,r,o)}catch{}return[]}const h=/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 v(e,t,n,r){const o=_(e,t,n?.syntheticException||void 0,r);return(0,i.addExceptionMechanism)(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),(0,l.resolvedSyncPromise)(o)}function b(e,t,n="info",r,o){const i=w(e,t,r?.syntheticException||void 0,o);return i.level=n,r?.event_id&&(i.event_id=r.event_id),(0,l.resolvedSyncPromise)(i)}function _(e,t,n,r,a){let s;if((0,o.isErrorEvent)(t)&&t.error){return f(e,t.error)}if((0,o.isDOMError)(t)||(0,o.isDOMException)(t)){const a=t;if("stack"in t){s=f(e,t);const o=s.exception?.values?.[0];if(r&&n&&o&&!o.stacktrace){const t=p(e,n);t.length&&(o.stacktrace={frames:t},(0,i.addExceptionMechanism)(s,{synthetic:!0}))}}else{const t=a.name||((0,o.isDOMError)(a)?"DOMError":"DOMException"),l=a.message?`${t}: ${a.message}`:t;s=w(e,l,n,r),(0,i.addExceptionTypeValue)(s,l)}return"code"in a&&(s.tags={...s.tags,"DOMException.code":`${a.code}`}),s}if((0,o.isError)(t))return f(e,t);if((0,o.isPlainObject)(t)||(0,o.isEvent)(t)){return s=d(e,t,n,a),(0,i.addExceptionMechanism)(s,{synthetic:!0}),s}return s=w(e,t,n,r),(0,i.addExceptionTypeValue)(s,`${t}`,void 0),(0,i.addExceptionMechanism)(s,{synthetic:!0}),s}function w(e,t,n,r){const a={};if(r&&n){const r=p(e,n);r.length&&(a.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,i.addExceptionMechanism)(a,{synthetic:!0})}
41if((0,o.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}function S(e,{isUnhandledRejection:t}){const n=(0,s.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";if((0,o.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,o.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 ${r}`}return`Object captured as ${r} with keys: ${n}`}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_enhanceErrorWithSentryInfo:()=>l,eventFromMessage:()=>p,eventFromUnknownInput:()=>f,exceptionFromError:()=>c,parseStackFrames:()=>s});var r=n(414),o=n(411),i=n(417),a=n(412);function s(e,t){return e(t.stack||"",1)}function l(e){return function(e){return(0,r.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 n={type:t.name||t.constructor.name,value:l(t)},r=s(e,t);return r.length&&(n.stacktrace={frames:r}),n}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,r.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as exception with message \`${e.message}\``;const n=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`${n&&"Object"!==n?`'${n}'`:"Object"} captured as exception with keys: ${t}`}function d(e,t,n,o){if((0,r.isError)(n))return[n,void 0];if(t.synthetic=!0,(0,r.isPlainObject)(n)){const t=e?.getOptions().normalizeDepth,r={__serialized__:(0,i.normalizeToSize)(n,t)},a=function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const n=e[t];if(n instanceof Error)return n}}(n);if(a)return[a,r];const s=u(n),l=o?.syntheticException||new Error(s);return l.message=s,[l,r]}const a=o?.syntheticException||new Error(n);return a.message=`${n}`,[a,void 0]}function f(e,t,n,r){const i=r?.data&&r.data.mechanism||{handled:!0,type:"generic"},[a,s]=d(e,i,n,r),l={exception:{values:[c(t,a)]}};return s&&(l.extra=s),(0,o.addExceptionTypeValue)(l,void 0,void 0),(0,o.addExceptionMechanism)(l,i),{...l,event_id:r?.event_id}}function p(e,t,n="info",i,a){const l={event_id:i?.event_id,level:n};if(a&&i?.syntheticException){const n=s(e,i.syntheticException);n.length&&(l.exception={values:[{value:t,stacktrace:{frames:n}}]},(0,o.addExceptionMechanism)(l,{synthetic:!0}))}if((0,r.isParameterizedString)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return l.logentry={message:e,params:n},l}return l.message=t,l}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{WINDOW:()=>c,getHttpRequestData:()=>h,ignoreNextOnError:()=>f,shouldIgnoreOnError:()=>d,wrap:()=>p});var r=n(400),o=n(401),i=n(405),a=n(411),s=n(412),l=n(1424);const c=i.GLOBAL_OBJ;let u=0;function d(){return u>0}function f(){u++,setTimeout(()=>{u--})}function p(e,t={}){if("function"!=typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return"function"==typeof t?t:e;if((0,s.getOriginalFunction)(e))return e}catch{return e}const n=function(...n){i.GLOBAL_OBJ._sentryWrappedDepth=(i.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{const r=n.map(e=>p(e,t));return e.apply(this,r)}catch(e){throw f(),(0,o.withScope)(o=>{o.addEventProcessor(e=>(t.mechanism&&((0,a.addExceptionTypeValue)(e,void 0,void 0),(0,a.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,r.captureException)(e)}),e}finally{i.GLOBAL_OBJ._sentryWrappedDepth=(i.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,s.markFunctionWrapped)(n,e),(0,s.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function h(){const e=(0,l.getLocationHref)(),{referrer:t}=c.document||{},{userAgent:n}=c.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getComponentName:()=>c,getLocationHref:()=>l,htmlTreeAsString:()=>a});var r=n(414);const o=n(405).GLOBAL_OBJ,i=80;function a(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let a=0,l=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||i;for(;n&&a++<r&&(d=s(n,f),!("html"===d||a>1&&l+o.length*u+d.length>=p));)o.push(d),l+=d.length,n=n.parentNode;return o.reverse().join(c)}catch{return"<unknown>"}}function s(e,t){const n=e,i=[];if(!n?.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}i.push(n.tagName.toLowerCase());const a=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;
41if(a?.length)a.forEach(e=>{i.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&i.push(`#${n.id}`);const e=n.className;if(e&&(0,r.isString)(e)){const t=e.split(/\s+/);for(const e of t)i.push(`.${e}`)}}for(const e of["aria-label","type","name","title","alt"]){const t=n.getAttribute(e);t&&i.push(`[${e}="${t}"]`)}return i.join("")}function l(){try{return o.document.location.href}catch{return""}}function c(e,t=5){if(!o.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{breadcrumbsIntegration:()=>S});var r=n(401),o=n(1389),i=n(642),a=n(1426),s=n(1427),l=n(1429),c=n(413),u=n(411),d=n(1431),f=n(416),p=n(1432),h=n(1424),m=n(1433),g=n(1435),y=n(1436),v=n(1437),b=n(1438),_=n(1423);const w=1024,S=(0,o.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,r.getClient)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:(0,d.severityLevelFromString)(t.level),message:(0,f.safeJoin)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,f.safeJoin)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,i.addBreadcrumb)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(0,m.addClickKeypressInstrumentationHandler)(function(e,t){return function(n){if((0,r.getClient)()!==e)return;let o,a,s="object"==typeof t?t.serializeAttribute:void 0,l="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;l&&l>w&&(b.DEBUG_BUILD&&c.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${l} was configured. Sentry will use 1024 instead.`),l=w),"string"==typeof s&&(s=[s]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;o=(0,v.htmlTreeAsString)(t,{keyAttrs:s,maxStringLength:l}),a=(0,h.getComponentName)(t)}catch{o="<unknown>"}if(0===o.length)return;const u={category:`ui.${n.name}`,message:o};a&&(u.data={"ui.component_name":a}),(0,i.addBreadcrumb)(u,{event:n.event,name:n.name,global:n.global})}}(e,t.dom)),t.xhr&&(0,y.addXhrInstrumentationHandler)(function(e){return function(t){if((0,r.getClient)()!==e)return;const{startTimestamp:n,endTimestamp:o}=t,s=t.xhr[y.SENTRY_XHR_DATA_KEY];if(!n||!o||!s)return;const{method:l,url:c,status_code:u,body:d}=s,f={method:l,url:c,status_code:u},p={xhr:t.xhr,input:d,startTimestamp:n,endTimestamp:o},h={category:"xhr",data:f,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(u)};e.emit("beforeOutgoingRequestBreadcrumb",h,p),(0,i.addBreadcrumb)(h,p)}}(e)),t.fetch&&(0,l.addFetchInstrumentationHandler)(function(e){return function(t){if((0,r.getClient)()!==e)return;const{startTimestamp:n,endTimestamp:o}=t;if(o&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const r={data:t.error,input:t.args,startTimestamp:n,endTimestamp:o},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,r),(0,i.addBreadcrumb)(a,r)}else{const r=t.response,s={...t.fetchData,status_code:r?.status},l={input:t.args,response:r,startTimestamp:n,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:(0,a.getBreadcrumbLogLevelFromHttpStatusCode)(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),(0,i.addBreadcrumb)(c,l)}}}(e)),t.history&&(0,g.addHistoryInstrumentationHandler)(function(e){return function(t){if((0,r.getClient)()!==e)return;let n=t.from,o=t.to;const a=(0,p.parseUrl)(_.WINDOW.location.href);let s=n?(0,p.parseUrl)(n):void 0;const l=(0,p.parseUrl)(o);s?.path||(s=a),a.protocol===l.protocol&&a.host===l.host&&(o=l.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),(0,i.addBreadcrumb)({category:"navigation",data:{from:n,to:o}})}}(e)),t.sentry&&e.on("beforeSendEvent",function(e){return function(t){(0,r.getClient)()===e&&(0,i.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,n)=>{"use strict";function r(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}n.r(t),n.d(t,{getBreadcrumbLogLevelFromHttpStatusCode:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addConsoleInstrumentationFilter:()=>d,addConsoleInstrumentationHandler:()=>u});var r=n(409),o=n(413),i=n(412),a=n(416),s=n(405),l=n(1428);const c=new Set([]);function u(e){const t="console",n=(0,l.addHandler)(t,e);return(0,l.maybeInstrument)(t,f),n}function d(e){for(const t of e)c.add(t);return()=>{for(const t of e)c.delete(t)}}function f(){"console"in s.GLOBAL_OBJ&&o.CONSOLE_LEVELS.forEach(function(e){e in s.GLOBAL_OBJ.console&&(0,i.fill)(s.GLOBAL_OBJ.console,e,function(t){return o.originalConsoleMethods[e]=t,function(...t){const n=t[0],i=o.originalConsoleMethods[e],u=c.size&&"string"==typeof n&&(0,a.stringMatchesSomePattern)(n,c);u||(0,l.triggerHandlers)("console",{args:t,level:e}),(!u||r.DEBUG_BUILD&&o.debug.isEnabled())&&i?.apply(s.GLOBAL_OBJ.console,t)}})})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addHandler:()=>l,maybeInstrument:()=>u,resetInstrumentationHandlers:()=>c,triggerHandlers:()=>d});var r=n(409),o=n(413),i=n(419);const a={},s={};function l(e,t){return a[e]=a[e]||[],a[e].push(t),()=>{const n=a[e];if(n){const e=n.indexOf(t);-1!==e&&n.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){r.DEBUG_BUILD&&o.debug.error(`Error while instrumenting ${e}`,t)}}}function d(e,t){const n=e&&a[e];if(n)for(const a of n)try{a(t)}catch(t){r.DEBUG_BUILD&&o.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,i.getFunctionName)(a)}\nError:`,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addFetchEndInstrumentationHandler:()=>d,addFetchInstrumentationHandler:()=>u,parseFetchArgs:()=>g});var r=n(401),o=n(414),i=n(412),a=n(1430),s=n(420),l=n(405),c=n(1428);function u(e,t){const n="fetch",r=(0,c.addHandler)(n,e);return(0,c.maybeInstrument)(n,()=>f(void 0,t)),r}function d(e){const t="fetch-body-resolved",n=(0,c.addHandler)(t,e);return(0,c.maybeInstrument)(t,()=>f(p)),n}function f(e,t=!1){t&&!(0,a.supportsNativeFetch)()||(0,i.fill)(l.GLOBAL_OBJ,"fetch",function(t){return function(...n){const a=new Error,{method:u,url:d}=g(n),f={args:n,fetchData:{method:u,url:d},startTimestamp:1e3*(0,s.timestampInSeconds)(),virtualError:a,headers:y(n)};return e||(0,c.triggerHandlers)("fetch",{...f}),t.apply(l.GLOBAL_OBJ,n).then(async t=>(e?e(t):(0,c.triggerHandlers)("fetch",{...f,endTimestamp:1e3*(0,s.timestampInSeconds)(),response:t}),t),e=>{(0,c.triggerHandlers)("fetch",{...f,endTimestamp:1e3*(0,s.timestampInSeconds)(),error:e}),(0,o.isError)(e)&&void 0===e.stack&&(e.stack=a.stack,(0,i.addNonEnumerableProperty)(e,"framesToPop",1));const t=(0,r.getClient)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{const t=new URL(f.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,i.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}function p(e){let t;try{t=e.clone()}catch{return}!async function(e,t){if(e?.body){const n=e.body,r=n.getReader(),o=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4);let i=!0;for(;i;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:o}=await r.read();clearTimeout(e),o&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(o),r.releaseLock(),n.cancel().then(null,()=>{})}}(t,()=>{(0,c.triggerHandlers)("fetch-body-resolved",{endTimestamp:1e3*(0,s.timestampInSeconds)(),response:e})})}function h(e,t){return!!e&&"object"==typeof e&&!!e[t]}function m(e){return"string"==typeof e?e:e?h(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,n]=e;return{url:m(t),method:h(n,"method")?String(n.method).toUpperCase():(0,o.isRequest)(t)&&h(t,"method")?String(t.method).toUpperCase():"GET"}}const t=e[0];return{url:m(t),method:h(t,"method")?String(t.method).toUpperCase():"GET"}}function y(e){const[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,o.isRequest)(t))return new Headers(t.headers)}catch{}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isNativeFunction:()=>f,supportsDOMError:()=>s,supportsDOMException:()=>l,supportsErrorEvent:()=>a,supportsFetch:()=>u,supportsHistory:()=>c,supportsNativeFetch:()=>p,supportsReferrerPolicy:()=>m,supportsReportingObserver:()=>h});var r=n(409),o=n(413);const i=n(405).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 i&&!!i.history}const u=d;function d(){if(!("fetch"in i))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function f(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function p(){if("string"==typeof EdgeRuntime)return!0;if(!d())return!1;if(f(i.fetch))return!0;let e=!1;const t=i.document;if(t&&"function"==typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=f(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r.DEBUG_BUILD&&o.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function h(){return"ReportingObserver"in i}function m(){if(!d())return!1;
41try{return new Request("_",{referrerPolicy:"origin"}),!0}catch{return!1}}},(e,t,n)=>{"use strict";function r(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}n.r(t),n.d(t,{severityLevelFromString:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getHttpSpanDetailsFromUrlObject:()=>c,getSanitizedUrlString:()=>f,getSanitizedUrlStringFromUrlObject:()=>s,isURLObjectRelative:()=>i,parseStringToURLObject:()=>a,parseUrl:()=>u,stripDataUrlContent:()=>p,stripUrlQueryAndFragment:()=>d});var r=n(427);const o="thismessage:/";function i(e){return"isRelative"in e}function a(e,t){const n=e.indexOf("://")<=0&&0!==e.indexOf("//"),r=t??(n?o:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function s(e){if(i(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 l(e,t,n,r){return`${n?.method?.toUpperCase()??"GET"} ${r||(e?"client"===t?s(e):e.pathname:"/")}`}function c(e,t,n,o,a){const s={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n,[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"};return a&&(s["server"===t?"http.route":"url.template"]=a,s[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route"),o?.method&&(s[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]=o.method.toUpperCase()),e&&(e.search&&(s["url.query"]=e.search),e.hash&&(s["url.fragment"]=e.hash),e.pathname&&(s["url.path"]=e.pathname,"/"===e.pathname&&(s[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="route")),i(e)||(s[r.SEMANTIC_ATTRIBUTE_URL_FULL]=e.href,e.port&&(s["url.port"]=e.port),e.protocol&&(s["url.scheme"]=e.protocol),e.hostname&&(s["server"===t?"server.address":"url.domain"]=e.hostname))),[l(e,t,o,a),s]}function u(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function d(e){return e.split(/[?#]/,1)[0]}function f(e){const{protocol:t,host:n,path:r}=e;return`${t?`${t}://`:""}${n?.replace(/^.*@/,"[filtered]:[filtered]@").replace(/(:80)$/,"").replace(/(:443)$/,"")||""}${r}`}function p(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",o=e.includes(";base64,"),i=e.indexOf(",");let a="";if(t&&-1!==i){const t=e.slice(i+1);a=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${o?",base64":""}${a?`,${a}`:""}`}return e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addClickKeypressInstrumentationHandler:()=>d,instrumentDOM:()=>f});var r=n(1428),o=n(411),i=n(412),a=n(1434);const s=1e3;let l,c,u;function d(e){(0,r.addHandler)("dom",e),(0,r.maybeInstrument)("dom",f)}function f(){if(!a.WINDOW.document)return;const e=r.triggerHandlers.bind(null,"dom"),t=p(e,!0);a.WINDOW.document.addEventListener("click",t,!1),a.WINDOW.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{const n=a.WINDOW,r=n[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,i.fill)(r,"addEventListener",function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){const r=p(e);i.handler=r,t.call(this,n,r,o)}i.refCount++}catch{}return t.call(this,n,r,o)}}),(0,i.fill)(r,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this.__sentry_instrumentation_handlers__||{},o=n[t];o&&(o.refCount--,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function p(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch{return null}}(n);if(function(e,t){return"keypress"===e&&(!t?.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,i.addNonEnumerableProperty)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,i.addNonEnumerableProperty)(r,"_sentryId",(0,o.uuid4)());const d="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==c)return!1;try{if(!e.target||e.target._sentryId!==u)return!1}catch{}return!0}(n)){e({event:n,name:d,global:t}),c=n.type,u=r?r._sentryId:void 0}clearTimeout(l),l=a.WINDOW.setTimeout(()=>{u=void 0,c=void 0},s)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{WINDOW:()=>r});const r=n(405).GLOBAL_OBJ},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addHistoryInstrumentationHandler:()=>l,instrumentHistory:()=>c});var r=n(1428),o=n(412),i=n(1430),a=n(1434);let s;function l(e){const t="history";(0,r.addHandler)(t,e),(0,r.maybeInstrument)(t,c)}function c(){function e(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const o=s,i=function(e){try{return new URL(e,a.WINDOW.location.origin).toString()}catch{return e}}(String(n));if(s=i,o===i)return e.apply(this,t);const l={from:o,to:i};(0,r.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 n={from:t,to:e};(0,r.triggerHandlers)("history",n)}),(0,i.supportsHistory)()&&((0,o.fill)(a.WINDOW.history,"pushState",e),(0,o.fill)(a.WINDOW.history,"replaceState",e))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SENTRY_XHR_DATA_KEY:()=>s,addXhrInstrumentationHandler:()=>l,instrumentXHR:()=>c});var r=n(1428),o=n(414),i=n(420),a=n(1434);const s="__sentry_xhr_v3__";function l(e){(0,r.addHandler)("xhr",e),(0,r.maybeInstrument)("xhr",c)}function c(){if(!a.WINDOW.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){const a=new Error,l=1e3*(0,i.timestampInSeconds)(),c=(0,o.isString)(n[0])?n[0].toUpperCase():void 0,u=function(e){if((0,o.isString)(e))return e;try{return e.toString()}catch{}return}(n[1]);if(!c||!u)return e.apply(t,n);t[s]={method:c,url:u,request_headers:{}}
41,"POST"===c&&u.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const d=()=>{const e=t[s];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}const n={endTimestamp:1e3*(0,i.timestampInSeconds)(),startTimestamp:l,xhr:t,virtualError:a};(0,r.triggerHandlers)("xhr",n)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(d(),e.apply(t,n))}):t.addEventListener("readystatechange",d),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){const[r,i]=n,a=t[s];return a&&(0,o.isString)(r)&&(0,o.isString)(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){const o=t[s];if(!o)return e.apply(t,n);void 0!==n[0]&&(o.body=n[0]);const a={startTimestamp:1e3*(0,i.timestampInSeconds)(),xhr:t};return(0,r.triggerHandlers)("xhr",a),e.apply(t,n)}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{htmlTreeAsString:()=>i});var r=n(414);const o=80;function i(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let s=0,l=0;const c=" > ",u=c.length;let d;const f=Array.isArray(t)?t:t.keyAttrs,p=!Array.isArray(t)&&t.maxStringLength||o;for(;n&&s++<r&&(d=a(n,f),!("html"===d||s>1&&l+i.length*u+d.length>=p));)i.push(d),l+=d.length,n=n.parentNode;return i.reverse().join(c)}catch{return"<unknown>"}}function a(e,t){const n=e,o=[];if(!n?.tagName)return"";if("undefined"!=typeof HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}o.push(n.tagName.toLowerCase());const i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{o.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&o.push(`#${n.id}`);const e=n.className;if(e&&(0,r.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=n.getAttribute(e);t&&o.push(`[${e}="${t}"]`)}return o.join("")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEBUG_BUILD:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,n)=>{"use strict";n.r(t),n.d(t,{browserApiErrorsIntegration:()=>l});var r=n(1389),o=n(412),i=n(419),a=n(1423);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,r.defineIntegration)((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,o.fill)(a.WINDOW,"setTimeout",c),t.setInterval&&(0,o.fill)(a.WINDOW,"setInterval",c),t.requestAnimationFrame&&(0,o.fill)(a.WINDOW,"requestAnimationFrame",u),t.XMLHttpRequest&&"XMLHttpRequest"in a.WINDOW&&(0,o.fill)(XMLHttpRequest.prototype,"send",d);const e=t.eventTarget;if(e){(Array.isArray(e)?e:s).forEach(e=>function(e,t){const n=a.WINDOW,r=n[e]?.prototype;if(!r?.hasOwnProperty?.("addEventListener"))return;(0,o.fill)(r,"addEventListener",function(n){return function(r,o,s){try{"function"==typeof o.handleEvent&&(o.handleEvent=(0,a.wrap)(o.handleEvent,{mechanism:{data:{handler:(0,i.getFunctionName)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&function(e,t,n){e&&"object"==typeof e&&"removeEventListener"in e&&"function"==typeof e.removeEventListener&&e.removeEventListener(t,n)}(this,r,o),n.apply(this,[r,(0,a.wrap)(o,{mechanism:{data:{handler:(0,i.getFunctionName)(o),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),s])}}),(0,o.fill)(r,"removeEventListener",function(e){return function(t,n,r){try{const o=n.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch{}return e.call(this,t,n,r)}})}(e,t))}}}});function c(e){return function(...t){const n=t[0];return t[0]=(0,a.wrap)(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,i.getFunctionName)(e)}`}}),e.apply(this,t)}}function u(e){return function(t){return e.apply(this,[(0,a.wrap)(t,{mechanism:{data:{handler:(0,i.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function d(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
41=>{e in n&&"function"==typeof n[e]&&(0,o.fill)(n,e,function(t){const n={mechanism:{data:{handler:(0,i.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,o.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,i.getFunctionName)(r)),(0,a.wrap)(t,n)})}),e.apply(this,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{browserSessionIntegration:()=>u});var r=n(400),o=n(401),i=n(1389),a=n(413),s=n(1435),l=n(1438),c=n(1423);const u=(0,i.defineIntegration)((e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===c.WINDOW.document)return void(l.DEBUG_BUILD&&a.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported."));(0,r.startSession)({ignoreDuration:!0}),(0,r.captureSession)();const e=(0,o.getIsolationScope)();let n=e.getUser();e.addScopeListener(e=>{const t=e.getUser();n?.id===t?.id&&n?.ip_address===t?.ip_address||((0,r.captureSession)(),n=t)}),"route"===t&&(0,s.addHistoryInstrumentationHandler)(({from:e,to:t})=>{e!==t&&((0,r.startSession)({ignoreDuration:!0}),(0,r.captureSession)())})}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{cultureContextIntegration:()=>a});var r=n(1442),o=n(1389),i=n(1423);const a=(0,o.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,r.safeSetSpanJSONAttributes)(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}));function s(){try{const e=i.WINDOW.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyBeforeSendSpanCallback:()=>f,captureSpan:()=>u,inferSpanDataFromOtelAttributes:()=>m,safeSetSpanJSONAttributes:()=>d});var r=n(427),o=n(454),i=n(1432),a=n(434),s=n(437),l=n(447),c=n(1443);function u(e,t){const n=(0,a.spanToStreamedSpanJSON)(e),i=(0,a.INTERNAL_getSegmentSpan)(e),u=(0,a.spanToStreamedSpanJSON)(i),{isolationScope:p,scope:h}=(0,s.getCapturedScopesOnSpan)(e),g=(0,o.getCombinedScopeData)(p,h);!function(e,t,n,o){const i=n.getSdkMetadata(),{release:a,environment:s}=n.getOptions();d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:a,[r.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:s,[r.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME]:t.name,[r.SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID]:t.span_id,[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME]:i?.sdk?.name,[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION]:i?.sdk?.version,[r.SEMANTIC_ATTRIBUTE_USER_ID]:o.user?.id,[r.SEMANTIC_ATTRIBUTE_USER_EMAIL]:o.user?.email,[r.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:o.user?.ip_address,[r.SEMANTIC_ATTRIBUTE_USER_USERNAME]:o.user?.username,...o.attributes})}(n,u,t,g);m(n,e.kind),n.is_segment&&(!function(e,t){const n=(0,c.scopeContextsToSpanAttributes)(t.contexts);d(e,n)}(n,g),function(e,t){const n=t.getIntegrationNames();if(!n.length)return;d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:n})}(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);const{beforeSendSpan:y}=t.getOptions(),v=y&&(0,l.isStreamedBeforeSendSpanCallback)(y)?f(n,y):n,b=v.attributes?.[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return b&&d(v,{"sentry.span.source":b}),{...(0,a.streamedSpanJsonToSerializedSpan)(v),_segmentSpan:i}}function d(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}function f(e,t){const n=t(e);return n||((0,a.showSpanDropWarning)(),e)}const p=1,h=2;function m(e,t){const n=e.attributes;if(!n)return;const o=n["http.request.method"]||n["http.method"];if(o)return void function(e,t,n,o){const a=["http"];n===h?a.push("client"):n===p&&a.push("server");t["sentry.http.prefetch"]&&a.push("prefetch");d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:a.join(".")});const s=t[r.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];if("string"==typeof s)return void(e.name=s);if("custom"===t[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE])return;const l=t["http.route"];if("string"==typeof l)e.name=`${o} ${l}`,d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route"});else{if(n===h||n===p){const r=function(e,t){const n=e["http.url"]||e["url.full"],r=e["http.target"],o="string"==typeof n?(0,i.parseUrl)(n):void 0,a=o?(0,i.getSanitizedUrlString)(o):void 0;if(t===p&&"string"==typeof r)return(0,i.stripUrlQueryAndFragment)(r);if(a)return a;
41if("string"==typeof r)return(0,i.stripUrlQueryAndFragment)(r);return}(t,n);r&&(e.name=`${o} ${r}`)}d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"})}}(e,n,t,o);const a=n["db.system.name"]||n["db.system"],s="string"==typeof n[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&`${n[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]}`.startsWith("cache.");if(a&&!s)return void function(e,t){d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"});const n=t[r.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];if("string"==typeof n)return void(e.name=n);if("custom"===t[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE])return;const o=t["db.statement"];o&&(e.name=`${o}`,d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"task"}))}(e,n);if(n["rpc.service"])return void d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"rpc"});if(n["messaging.system"])return void d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"message"});const l=n["faas.trigger"];l&&d(e,{[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`${l}`})}},(e,t,n)=>{"use strict";function r(e){const t={},{response:n,profile:r,cloud_resource:o,culture:i,state:a}=e;if(n&&(null!=n.status_code&&(t["http.response.status_code"]=n.status_code),null!=n.body_size&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),o)for(const[e,n]of Object.entries(o))null!=n&&(t[e]=n);i&&(i.locale&&(t["culture.locale"]=i.locale),i.timezone&&(t["culture.timezone"]=i.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}n.r(t),n.d(t,{scopeContextsToSpanAttributes:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_eventFromRejectionWithPrimitive:()=>v,_getUnhandledRejectionError:()=>y,globalHandlersIntegration:()=>g});var r=n(400),o=n(401),i=n(1389),a=n(1445),s=n(1446),l=n(414),c=n(413),u=n(419),d=n(1432),f=n(1424),p=n(1438),h=n(1421),m=n(1423);const g=(0,i.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:n,attachStacktrace:i}=_();if((0,o.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const{msg:a,url:s,line:l,column:c,error:d}=t,p=function(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},l=s.frames=s.frames||[];0===l.length&&l.push({colno:r,lineno:n,filename:w(t)??(0,f.getLocationHref)(),function:u.UNKNOWN_FUNCTION,in_app:!0});return e}((0,h.eventFromUnknownInput)(n,d||a,void 0,i,!1),s,l,c);p.level="error",(0,r.captureEvent)(p,{originalException:d,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}(e),b("onerror")),t.onunhandledrejection&&(!function(e){(0,s.addGlobalUnhandledRejectionInstrumentationHandler)(t=>{const{stackParser:n,attachStacktrace:i}=_();if((0,o.getClient)()!==e||(0,m.shouldIgnoreOnError)())return;const a=y(t),s=(0,l.isPrimitive)(a)?v(a):(0,h.eventFromUnknownInput)(n,a,void 0,i,!0);s.level="error",(0,r.captureEvent)(s,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}(e),b("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 v(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function b(e){p.DEBUG_BUILD&&c.debug.log(`Global Handler attached: ${e}`)}function _(){const e=(0,o.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function w(e){if((0,l.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${(0,d.stripDataUrlContent)(e,!1)}>`:e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGlobalErrorInstrumentationHandler:()=>a});var r=n(405),o=n(1428);let i=null;function a(e){const t="error";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,s)}function s(){i=r.GLOBAL_OBJ.onerror,r.GLOBAL_OBJ.onerror=function(e,t,n,r,a){const s={column:r,error:a,line:n,msg:e,url:t};return(0,o.triggerHandlers)("error",s),!!i&&i.apply(this,arguments)},r.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addGlobalUnhandledRejectionInstrumentationHandler:()=>a});var r=n(405),o=n(1428);let i=null;function a(e){const t="unhandledrejection";(0,o.addHandler)(t,e),(0,o.maybeInstrument)(t,s)}function s(){i=r.GLOBAL_OBJ.onunhandledrejection,r.GLOBAL_OBJ.onunhandledrejection=function(e){const t=e;return(0,o.triggerHandlers)("unhandledrejection",t),!i||i.apply(this,arguments)},r.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{httpContextIntegration:()=>a});var r=n(1442),o=n(1389),i=n(1423);const a=(0,o.defineIntegration)(()=>({name:"HttpContext",preprocessEvent(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;const t=(0,i.getHttpRequestData)(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!i.WINDOW.navigator&&!i.WINDOW.location&&!i.WINDOW.document)return;const t=(0,i.getHttpRequestData)();(0,r.safeSetSpanJSONAttributes)(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{linkedErrorsIntegration:()=>a});var r=n(1389),o=n(1449),i=n(1421);const a=(0,r.defineIntegration)((e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,a){const s=a.getOptions();(0,o.applyAggregateErrorsToEvent)(i.exceptionFromError,s.stackParser,n,t,e,r)}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyAggregateErrorsToEvent:()=>o});var r=n(414);
41function o(e,t,n,o,a,s){if(!a.exception?.values||!s||!(0,r.isInstanceOf)(s.originalException,Error))return;const l=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;l&&(a.exception.values=i(e,t,o,s.originalException,n,a.exception.values,l,0))}function i(e,t,n,o,c,u,d,f){if(u.length>=n+1)return u;let p=[...u];if((0,r.isInstanceOf)(o[c],Error)){s(d,f,o);const r=e(t,o[c]),a=p.length;l(r,c,a,f),p=i(e,t,n,o[c],c,[r,...p],r,a)}return a(o)&&o.errors.forEach((a,u)=>{if((0,r.isInstanceOf)(a,Error)){s(d,f,o);const r=e(t,a),h=p.length;l(r,`errors[${u}]`,h,f),p=i(e,t,n,a,c,[r,...p],r,h)}}),p}function a(e){return Array.isArray(e.errors)}function s(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...a(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function l(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{chromeStackLineParser:()=>c,defaultStackLineParsers:()=>b,defaultStackParser:()=>_,geckoStackLineParser:()=>f,opera10StackLineParser:()=>g,opera11StackLineParser:()=>v,winjsStackLineParser:()=>h});var r=n(419);function o(e,t,n,o){const i={filename:e,function:"<anonymous>"===t?r.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==o&&(i.colno=o),i}const i=/^\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 n=i.exec(e);if(n){const[,e,t,i]=n;return o(e,r.UNKNOWN_FUNCTION,+t,+i)}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]=w(c[1]||r.UNKNOWN_FUNCTION,c[2]);return o(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,d=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,f=[50,e=>{const t=u.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=d.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||r.UNKNOWN_FUNCTION;return[n,e]=w(n,e),o(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],p=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=[40,e=>{const t=p.exec(e);return t?o(t[2],t[1]||r.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?o(t[2],t[3]||r.UNKNOWN_FUNCTION,+t[1]):void 0}],y=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,v=[20,e=>{const t=y.exec(e);return t?o(t[5],t[3]||t[4]||r.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],b=[c,f],_=(0,r.createStackParser)(...b),w=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:r.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{makeFetchTransport:()=>s});var r=n(1410),o=n(1411),i=n(1452);const a=40;function s(e,t=(0,i.getNativeImplementation)("fetch")){let n=0,s=0;return(0,r.createTransport)(e,async function(r){const o=r.body.length;n+=o,s++;const a={body:r.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&s<15,...e.fetchOptions};try{const n=await t(e.url,a);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw(0,i.clearCachedImplementation)("fetch"),e}finally{n-=o,s--}},(0,o.makePromiseBuffer)(e.bufferSize||a))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearCachedImplementation:()=>c,fetch:()=>u,getNativeImplementation:()=>l,setTimeout:()=>d});var r=n(413),o=n(1430),i=n(1453),a=n(1434);const s={};function l(e){const t=s[e];if(t)return t;let n=a.WINDOW[e];if((0,o.isNativeFunction)(n))return s[e]=n.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 r=t.contentWindow;r?.[e]&&(n=r[e]),l.head.removeChild(t)}catch(t){i.DEBUG_BUILD&&r.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?s[e]=n.bind(a.WINDOW):n}function c(e){s[e]=void 0}function u(...e){return l("fetch")(...e)}function d(...e){return l("setTimeout")(...e)}
41},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEBUG_BUILD:()=>r});const r="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__},(e,t,n)=>{"use strict";n.r(t),n.d(t,{normalizeStringifyValue:()=>a});var r=n(1437),o=n(1455);const i=/^HTML(\w*)Element$/;function a(e){if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if((0,o.isElement)(e)){const t=function(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(e);if(i.test(t))return`[HTMLElement: ${(0,r.htmlTreeAsString)(e)}]`}}},(e,t,n)=>{"use strict";function r(e){if("undefined"==typeof Element)return!1;try{return e instanceof Element}catch{return!1}}n.r(t),n.d(t,{isElement:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{checkAndWarnIfIsEmbeddedBrowserExtension:()=>s});var r=n(413),o=n(1424),i=n(1438),a=n(1423);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 n=(0,o.getLocationHref)();return!(a.WINDOW===a.WINDOW.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}()&&(i.DEBUG_BUILD&&(0,r.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,n)=>{"use strict";n.r(t),n.d(t,{BROWSER_TRACING_INTEGRATION_ID:()=>P,browserTracingIntegration:()=>j,getMetaContent:()=>N,getServerTiming:()=>L,isBotUserAgent:()=>I,startBrowserTracingNavigationSpan:()=>D,startBrowserTracingPageLoadSpan:()=>M});var r=n(1458),o=n(1459),i=n(426),a=n(440),s=n(427),l=n(401),c=n(430),u=n(434),d=n(432),f=n(405),p=n(413),h=n(412),m=n(420),g=n(438),y=n(1432),v=n(422),b=n(1424),_=n(1460),w=n(1435),S=n(1438),E=n(1423),k=n(1488),T=n(1489),x=n(1492),O=n(1493),C=n(1494);const P="BrowserTracing",A=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function I(){const e=E.WINDOW.navigator;return!!e?.userAgent&&A.test(e.userAgent)}const R={...o.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:{},...C.defaultRequestInstrumentationOptions},j=(e={})=>{"enableElementTiming"in e&&(0,p.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},n=E.WINDOW.document,{enableInp:h,enableLongTask:A,enableLongAnimationFrame:j,_experiments:{enableInteractions:F,enableStandaloneClsSpans:H,enableStandaloneLcpSpans:V},beforeStartSpan:q,idleTimeout:G,finalTimeout:W,childSpanTimeout:$,markBackgroundSpan:Y,traceFetch:K,traceXHR:J,trackFetchStreamPerformance:Q,shouldCreateSpanForRequest:X,enableHTTPTimings:Z,ignoreResourceSpans:ee,ignorePerformanceApiSpans:te,instrumentPageLoad:ne,instrumentNavigation:re,detectRedirects:oe,linkPreviousTrace:ie,consistentTraceSampling:ae,enableReportPageLoaded:se,onRequestSpanStart:le,onRequestSpanEnd:ce}={...R,...e},ue=I();let de,fe;function pe(e,r,c=!0){const f="pageload"===r.op,p=r.name,h=q?q(r):r,g=h.attributes||{};if(p!==h.name&&(g[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom",h.attributes=g),!c){const e=(0,m.dateTimestampInSeconds)();return void(0,i.startInactiveSpan)({...h,startTime:e}).end(e)}t.name=h.name,t.source=g[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];const y=(0,o.startIdleSpan)(h,{idleTimeout:G,finalTimeout:W,childSpanTimeout:$,disableAutoFinish:f,beforeSpanEnd:t=>{(0,_.addPerformanceEntries)(t,{ignoreResourceSpans:ee,ignorePerformanceApiSpans:te,spanStreamingEnabled:(0,d.hasSpanStreamingEnabled)(e)}),z(e,void 0);const n=(0,l.getCurrentScope)(),r=n.getPropagationContext();n.setPropagationContext({...r,traceId:y.spanContext().traceId,sampled:(0,u.spanIsSampled)(y),dsc:(0,a.getDynamicSamplingContextFromSpan)(t)}),f&&(fe=void 0)},trimIdleSpanEndTimestamp:!se});function v(){n&&["interactive","complete"].includes(n.readyState)&&e.emit("idleSpanEnableAutoFinish",y)}f&&se&&(fe=y),z(e,y),f&&!se&&n&&(n.addEventListener("readystatechange",()=>{v()}),v())}return{name:P,setup(e){if(ue)S.DEBUG_BUILD&&p.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");else{if((0,r.registerSpanErrorInstrumentation)(),j&&f.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?(0,_.startTrackingLongAnimationFrames)():A&&(0,_.startTrackingLongTasks)(),F&&(0,_.startTrackingInteractions)(),oe&&n){const e=()=>{de=(0,m.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}e.on("startNavigationSpan",(n,r)=>{if((0,l.getClient)()!==e)return;if(r?.isRedirect)return S.DEBUG_BUILD&&p.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),void pe(e,{op:"navigation.redirect",...n},!1);de=void 0,t(),(0,l.getIsolationScope)().setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()});const o=(0,l.getCurrentScope)();o.setPropagationContext({traceId:(0,v.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,c.hasSpansEnabled)()?void 0:(0,v.generateSpanId)()}),o.setSDKProcessingMetadata({normalizedRequest:void 0}),pe(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0})}),e.on("startPageLoadSpan",(n,r={})=>
41{if((0,l.getClient)()!==e)return;t();const o=r.sentryTrace||N("sentry-trace")||L("sentry-trace"),i=r.baggage||N("baggage")||L("baggage"),a=(0,g.propagationContextFromHeaders)(o,i),s=(0,l.getCurrentScope)();s.setPropagationContext(a),(0,c.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,v.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:(0,E.getHttpRequestData)()}),pe(e,{op:"pageload",...n})}),e.on("endPageloadSpan",()=>{se&&fe&&(fe.setAttribute(s.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),fe.end())})}function t(){const t=B(e);t&&!(0,u.spanToJSON)(t).timestamp&&(S.DEBUG_BUILD&&p.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(ue)return;e.addIntegration&&!e.getIntegrationByName?.(T.WEB_VITALS_INTEGRATION_NAME)&&e.addIntegration((0,T.webVitalsIntegration)({ignore:h?[]:["inp"],_experiments:{enableStandaloneClsSpans:H,enableStandaloneLcpSpans:V}}));let n=(0,b.getLocationHref)();if("off"!==ie&&(0,O.linkTraces)(e,{linkPreviousTrace:ie,consistentTraceSampling:ae}),E.WINDOW.location){if(ne){const t=(0,m.browserPerformanceTimeOrigin)();M(e,{name:E.WINDOW.location.pathname,startTime:t?t/1e3:void 0,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}re&&(0,w.addHistoryInstrumentationHandler)(({to:t,from:r})=>{if(void 0===r&&-1!==n?.indexOf(t))return void(n=void 0);n=void 0;const o=(0,y.parseStringToURLObject)(t),i=B(e),a=i&&oe&&function(e,t){const n=(0,u.spanToJSON)(e),r=(0,m.dateTimestampInSeconds)(),o=n.start_timestamp;if(r-o>U)return!1;if(t&&r-t<=U)return!1;return!0}(i,de);D(e,{name:o?.pathname||E.WINDOW.location.pathname,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[s.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:t,isRedirect:a})})}Y&&(0,x.registerBackgroundTabDetection)(),F&&function(e,t,n,r,i){const a=E.WINDOW.document;let l;const c=()=>{const a="ui.action.click",c=B(e);if(c){const e=(0,u.spanToJSON)(c).op;if(["navigation","pageload"].includes(e))return void(S.DEBUG_BUILD&&p.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),i.name?l=(0,o.startIdleSpan)({name:i.name,op:a,attributes:{[s.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r}):S.DEBUG_BUILD&&p.debug.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`)};a&&addEventListener("click",c,{capture:!0})}(e,G,W,$,t),(0,C.instrumentOutgoingRequests)(e,{traceFetch:K,traceXHR:J,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:X,enableHTTPTimings:Z,onRequestSpanStart:le,onRequestSpanEnd:ce}),Q&&e.addIntegration((0,k.fetchStreamPerformanceIntegration)())}}};function M(e,t,n){e.emit("startPageLoadSpan",t,n),(0,l.getCurrentScope)().setTransactionName(t.name);const r=B(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function D(e,t,n){const{url:r,isRedirect:o}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:o}),e.emit("startNavigationSpan",t,{isRedirect:o});const i=(0,l.getCurrentScope)();return i.setTransactionName(t.name),r&&!o&&i.setSDKProcessingMetadata({normalizedRequest:{...(0,E.getHttpRequestData)(),url:r}}),B(e)}function N(e){const t=E.WINDOW.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function L(e){const t=E.WINDOW.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}const F="_sentry_idleSpan";function B(e){return e[F]}function z(e,t){(0,h.addNonEnumerableProperty)(e,F,t)}const U=1.5},(e,t,n)=>{"use strict";n.r(t),n.d(t,{registerSpanErrorInstrumentation:()=>u});var r=n(409),o=n(1445),i=n(1446),a=n(413),s=n(434),l=n(436);let c=!1;function u(){function e(){const e=(0,s.getActiveSpan)(),t=e&&(0,s.getRootSpan)(e);if(t){const e="internal_error";r.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,o.addGlobalErrorInstrumentationHandler)(e),(0,i.addGlobalUnhandledRejectionInstrumentationHandler)(e))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TRACING_DEFAULTS:()=>y,startIdleSpan:()=>S});var r=n(401),o=n(409),i=n(427),a=n(413),s=n(430),l=n(431),c=n(423),u=n(434),d=n(420),f=n(440),p=n(444),h=n(445),m=n(436),g=n(426);const y={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},v="heartbeatFailed",b="idleTimeout",_="finalTimeout",w="externalFinish";function S(e,t={}){const n=new Map;let S,E=!1,k=w,T=!t.disableAutoFinish;const x=[],{idleTimeout:O=y.idleTimeout,finalTimeout:C=y.finalTimeout,childSpanTimeout:P=y.childSpanTimeout,beforeSpanEnd:A,trimIdleSpanEndTimestamp:I=!0}=t,R=(0,r.getClient)();if(!R||!(0,s.hasSpansEnabled)()){const e=new p.SentryNonRecordingSpan,t={sample_rate:"0",sampled:"false",...(0,f.getDynamicSamplingContextFromSpan)(e)};return(0,f.freezeDscOnSpan)(e,t),e}const j=(0,r.getCurrentScope)(),M=(0,u.getActiveSpan)(),D=function(e){const t=(0,g.startInactiveSpan)(e);return(0,c._setSpanForScope)((0,r.getCurrentScope)(),t),o.DEBUG_BUILD&&a.debug.log("[Tracing] Started span is an i
41dle span"),t}(e);function N(){S&&(clearTimeout(S),S=void 0)}function L(e){N(),S=setTimeout(()=>{!E&&0===n.size&&T&&(k=b,D.end(e))},O)}function F(e){S=setTimeout(()=>{!E&&T&&(k=v,D.end(e))},P)}function B(e){E=!0,n.clear(),x.forEach(e=>e()),(0,c._setSpanForScope)(j,M);const t=(0,u.spanToJSON)(D),{start_timestamp:r}=t;if(!r)return;t.data[i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||D.setAttribute(i.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,k);const s=t.status;s&&"unknown"!==s||D.setStatus({code:m.SPAN_STATUS_OK}),a.debug.log(`[Tracing] Idle span "${t.op}" finished`);const l=(0,u.getSpanDescendants)(D).filter(e=>e!==D);let d=0;l.forEach(t=>{t.isRecording()&&(t.setStatus({code:m.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),o.DEBUG_BUILD&&a.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));const n=(0,u.spanToJSON)(t),{timestamp:r=0,start_timestamp:i=0}=n,s=i<=e,l=r-i<=(C+O)/1e3;if(o.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)(D,t),d++)}),d>0&&D.setAttribute("sentry.idle_span_discarded_spans",d)}return D.end=new Proxy(D.end,{apply(e,t,n){if(A&&A(D),t instanceof p.SentryNonRecordingSpan)return;const[r,...o]=n,i=r||(0,d.timestampInSeconds)(),a=(0,u.spanTimeInputToSeconds)(i),s=(0,u.getSpanDescendants)(D).filter(e=>e!==D),c=(0,u.spanToJSON)(D);if(!s.length||!I)return B(a),Reflect.apply(e,t,[a,...o]);const f=R.getOptions().ignoreSpans,h=s?.reduce((e,t)=>{const n=(0,u.spanToJSON)(t);return n.timestamp?f&&(0,l.shouldIgnoreSpan)({description:n.description,op:n.op,attributes:n.data},f)?e:e?Math.max(e,n.timestamp):n.timestamp:e},void 0),m=c.start_timestamp,g=Math.min(m?m+C/1e3:1/0,Math.max(m||-1/0,Math.min(a,h||1/0)));return B(g),Reflect.apply(e,t,[g,...o])}}),x.push(R.on("spanStart",e=>{if(E||e===D||(0,u.spanToJSON)(e).timestamp||e instanceof h.SentrySpan&&e.isStandaloneSpan())return;var t;(0,u.getSpanDescendants)(D).includes(e)&&(t=e.spanContext().spanId,N(),n.set(t,!0),F((0,d.timestampInSeconds)()+P/1e3))})),x.push(R.on("spanEnd",e=>{var t;E||(t=e.spanContext().spanId,n.has(t)&&n.delete(t),0===n.size&&L((0,d.timestampInSeconds)()+O/1e3))})),x.push(R.on("idleSpanEnableAutoFinish",e=>{e===D&&(T=!0,L(),n.size&&F())})),t.disableAutoFinish||L(),setTimeout(()=>{E||(D.setStatus({code:m.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),k=_,D.end())},C),D}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_addMeasureSpans:()=>D,_addNavigationSpans:()=>N,_addResourceSpans:()=>F,_setResourceRequestAttributes:()=>B,addPerformanceEntries:()=>R,addWebVitalsToSpan:()=>j,startTrackingInteractions:()=>I,startTrackingLongAnimationFrames:()=>A,startTrackingLongTasks:()=>P,startTrackingWebVitals:()=>C});var r=n(449),o=n(427),i=n(434),a=n(414),s=n(413),l=n(416),c=n(420),u=n(1432),d=n(1424),f=n(1437),p=n(1434),h=n(1461),m=n(1462),g=n(1486),y=n(1487),v=n(1484),b=n(1466),_=n(1467),w=n(1465),S=n(1453);const E=2147483647;let k,T,x=0,O={};function C({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=(0,v.getBrowserPerformanceAPI)();if(r&&(0,c.browserPerformanceTimeOrigin)()){r.mark&&p.WINDOW.performance.mark("sentry-tracing-init");const o=t?(0,g.trackLcpAsStandaloneSpan)(n):!1===t?(0,m.addLcpInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(0,g.isValidLcpMetric)(e.value)&&(O.lcp={value:e.value,unit:"millisecond"},k=t)},!0):void 0,i=e?(0,h.trackClsAsStandaloneSpan)(n):!1===e?(0,m.addClsInstrumentationHandler)(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(O.cls={value:e.value,unit:""},T=t)},!0):void 0,a=(0,m.addTtfbInstrumentationHandler)(({metric:e})=>{e.entries[e.entries.length-1]&&(O.ttfb={value:e.value,unit:"millisecond"})}),s=(0,m.addPerformanceInstrumentationHandler)("paint",({entries:e})=>{const t=(0,w.getVisibilityWatcher)();for(const n of e){const e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(O.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(O.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{a(),s(),o?.(),i?.()}}return()=>{}}function P(){(0,m.addPerformanceInstrumentationHandler)("longtask",({entries:e})=>{const t=(0,i.getActiveSpan)();if(!t)return;const{op:n,start_timestamp:r}=(0,i.spanToJSON)(t);for(const i of e){const e=(0,v.msToSec)((0,c.browserPerformanceTimeOrigin)()+i.startTime),a=(0,v.msToSec)(i.duration);
41"navigation"===n&&r&&e<r||(0,v.startAndEndSpan)(t,e,e+a,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}})}function A(){new PerformanceObserver(e=>{const t=(0,i.getActiveSpan)();if(t)for(const n of e.getEntries()){if(!n.scripts[0])continue;const e=(0,v.msToSec)((0,c.browserPerformanceTimeOrigin)()+n.startTime),{start_timestamp:r,op:a}=(0,i.spanToJSON)(t);if("navigation"===a&&r&&e<r)continue;const s=(0,v.msToSec)(n.duration),l={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"},u=n.scripts[0],{invoker:d,invokerType:f,sourceURL:p,sourceFunctionName:h,sourceCharPosition:m}=u;l["browser.script.invoker"]=d,l["browser.script.invoker_type"]=f,p&&(l["code.filepath"]=p),h&&(l["code.function"]=h),-1!==m&&(l["browser.script.source_char_position"]=m),(0,v.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 I(){(0,m.addPerformanceInstrumentationHandler)("event",({entries:e})=>{const t=(0,i.getActiveSpan)();if(t)for(const n of e)if("click"===n.name){const e=(0,v.msToSec)((0,c.browserPerformanceTimeOrigin)()+n.startTime),r=(0,v.msToSec)(n.duration),i={name:(0,f.htmlTreeAsString)(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},a=(0,d.getComponentName)(n.target);a&&(i.attributes["ui.component_name"]=a),(0,v.startAndEndSpan)(t,e,e+r,i)}})}function R(e,t){const n=(0,v.getBrowserPerformanceAPI)(),o=(0,c.browserPerformanceTimeOrigin)();if(!n?.getEntries||!o)return;const{spanStreamingEnabled:a,ignorePerformanceApiSpans:s,ignoreResourceSpans:l}=t,u=(0,v.msToSec)(o),d=n.getEntries(),{op:f,start_timestamp:h}=(0,i.spanToJSON)(e);d.slice(x).forEach(t=>{const n=(0,v.msToSec)(t.startTime),r=(0,v.msToSec)(Math.max(0,t.duration));if(!("navigation"===f&&h&&u+n<h))switch(t.entryType){case"navigation":N(e,t,u);break;case"mark":case"paint":case"measure":D(e,t,n,r,u,s);break;case"resource":F(e,t,t.name,n,r,u,l)}}),x=Math.max(d.length-1,0),function(e,t){const n=p.WINDOW.navigator;if(!n)return;const o=n.connection;o&&(o.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",o.effectiveType),o.type&&e.setAttribute(t?"network.connection.type":"connectionType",o.type),(0,v.isMeasurementValue)(o.rtt)&&(t?e.setAttribute("network.connection.rtt",o.rtt):"pageload"===(0,i.spanToJSON)(e).op&&(0,r.setMeasurement)("connection.rtt",o.rtt,"millisecond")));(0,v.isMeasurementValue)(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`));(0,v.isMeasurementValue)(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,a)}function j(e,t){const n=(0,c.browserPerformanceTimeOrigin)();if(!(0,v.getBrowserPerformanceAPI)()?.getEntries||!n)return void M();const{spanStreamingEnabled:o,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:l}=t,u=(0,v.msToSec)(n);if("pageload"===(0,i.spanToJSON)(e).op){if(function(e){const t=(0,_.getNavigationEntry)(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(O),o){const t=(t,n,r)=>{const o=r??`browser.web_vital.${t}.value`;e.setAttribute(o,n),S.DEBUG_BUILD&&s.debug.log("Setting web vital attribute",{[o]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{O[e]&&t(e,O[e].value)}),O["ttfb.requestTime"]&&t("ttfb.requestTime",O["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete O.cls,l||delete O.lcp,Object.entries(O).forEach(([t,n])=>{(0,r.setMeasurement)(t,n.value,n.unit,e)}),function(e,t){k&&t.recordLcpOnPageloadSpan&&(k.element&&e.setAttribute("lcp.element",(0,f.htmlTreeAsString)(k.element)),k.id&&e.setAttribute("lcp.id",k.id),k.url&&e.setAttribute("lcp.url",k.url.trim().slice(0,200)),null!=k.loadTime&&e.setAttribute("lcp.loadTime",k.loadTime),null!=k.renderTime&&e.setAttribute("lcp.renderTime",k.renderTime),e.setAttribute("lcp.size",k.size));
41T?.sources&&t.recordClsOnPageloadSpan&&T.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,(0,f.htmlTreeAsString)(t.node)))}(e,t);e.setAttribute(o?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(o?"browser.performance.navigation.activation_start":"performance.activationStart",(0,b.getActivationStart)())}M()}function M(){k=void 0,T=void 0,O={}}function D(e,t,n,r,i,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,v.msToSec)(c?c.requestStart:0),d=i+Math.max(n,u),f=i+n,p=f+r,h={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};d!==f&&(h["sentry.browser.measure_happened_before_request"]=!0,h["sentry.browser.measure_start_time"]=d),function(e,t){try{const n=t.detail;if(!n)return;if("object"==typeof n){for(const[t,r]of Object.entries(n))if(r&&(0,a.isPrimitive)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,a.isPrimitive)(n))return void(e["sentry.browser.measure.detail"]=n);try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(h,t),d<=p&&(0,v.startAndEndSpan)(e,d,p,{name:t.name,op:t.entryType,attributes:h})}function N(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{L(e,t,r,n)}),L(e,t,"secureConnection",n,"TLS/SSL"),L(e,t,"fetch",n,"cache"),L(e,t,"domainLookup",n,"DNS"),function(e,t,n){const r=n+(0,v.msToSec)(t.requestStart),i=n+(0,v.msToSec)(t.responseEnd),a=n+(0,v.msToSec)(t.responseStart);t.responseEnd&&((0,v.startAndEndSpan)(e,r,i,{op:"browser.request",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),(0,v.startAndEndSpan)(e,a,i,{op:"browser.response",name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}))}(e,t,n)}function L(e,t,n,r,i=n){const a=function(e){if("secureConnection"===e)return"connectEnd";if("fetch"===e)return"domainLookupStart";return`${e}End`}(n),s=t[a],l=t[`${n}Start`];l&&s&&(0,v.startAndEndSpan)(e,r+(0,v.msToSec)(l),r+(0,v.msToSec)(s),{op:`browser.${i}`,name:t.name,attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function F(e,t,n,r,i,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={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=(0,u.parseUrl)(n);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=n.includes(p.WINDOW.location.origin),B(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 f={...c,...(0,y.resourceTimingToSpanAttributes)(t)},h=a+r,m=h+i;(0,v.startAndEndSpan)(e,h,m,{name:n.replace(p.WINDOW.location.origin,""),op:l,attributes:f})}function B(e,t,n){n.forEach(([n,r])=>{const o=e[n];null!=o&&("number"==typeof o&&o<E||"string"==typeof o)&&(t[r]=o)})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_sendStandaloneClsSpan:()=>f,trackClsAsStandaloneSpan:()=>d});var r=n(427),o=n(401),i=n(413),a=n(420),s=n(1453),l=n(1437),c=n(1462),u=n(1484);function d(e){let t,n=0;if(!(0,u.supportsWebVital)("layout-shift"))return;const r=(0,c.addClsInstrumentationHandler)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,o)=>{f(n,t,o,e),r()})}function f(e,t,n,c){s.DEBUG_BUILD&&i.debug.log(`Sending CLS span (${e})`);const d=t?(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,a.timestampInSeconds)(),f=(0,o.getCurrentScope)().getScopeData().transactionName,p=t?(0,l.htmlTreeAsString)(t.sources[0]?.node):"Layout shift",h={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":c};
41t?.sources&&t.sources.forEach((e,t)=>{h[`cls.source.${t+1}`]=(0,l.htmlTreeAsString)(e.node)});const m=(0,u.startStandaloneWebVitalSpan)({name:p,transaction:f,attributes:h,startTime:d});m&&(m.addEvent("cls",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),m.end(d))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addClsInstrumentationHandler:()=>y,addInpInstrumentationHandler:()=>_,addLcpInstrumentationHandler:()=>v,addPerformanceInstrumentationHandler:()=>w,addTtfbInstrumentationHandler:()=>b,isPerformanceEventTiming:()=>A});var r=n(413),o=n(419),i=n(1453),a=n(1463),s=n(1477),l=n(1481),c=n(1473),u=n(1483);const d={},f={};let p,h,m,g;function y(e,t=!1){return O("cls",e,E,p,t)}function v(e,t=!1){return O("lcp",e,k,h,t)}function b(e){return O("ttfb",e,T,m)}function _(e){return O("inp",e,x,g)}function w(e,t){return C(e,t),f[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);(0,c.observe)(e,t=>{S(e,{entries:t})},t)}(e),f[e]=!0),P(e,t)}function S(e,t){const n=d[e];if(n?.length)for(const a of n)try{a(t)}catch(t){i.DEBUG_BUILD&&r.debug.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,o.getFunctionName)(a)}\nError:`,t)}}function E(){return(0,a.onCLS)(e=>{S("cls",{metric:e}),p=e},{reportAllChanges:!0})}function k(){return(0,l.onLCP)(e=>{S("lcp",{metric:e}),h=e},{reportAllChanges:!0})}function T(){return(0,u.onTTFB)(e=>{S("ttfb",{metric:e}),m=e})}function x(){return(0,s.onINP)(e=>{S("inp",{metric:e}),g=e})}function O(e,t,n,r,o=!1){let i;return C(e,t),f[e]||(i=n(),f[e]=!0),r&&t({metric:r}),P(e,t,o?i:void 0)}function C(e,t){d[e]=d[e]||[],d[e].push(t)}function P(e,t,n){return()=>{n&&n();const r=d[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function A(e){return"duration"in e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CLSThresholds:()=>f,onCLS:()=>p});var r=n(1434),o=n(1464),i=n(1465),a=n(1469),s=n(1471),l=n(1472),c=n(1473),u=n(1474),d=n(1475);const f=[.1,.25],p=(e,t={})=>{(0,d.onFCP)((0,u.runOnce)(()=>{const n=(0,a.initMetric)("CLS",0);let u;const d=(0,i.getVisibilityWatcher)(),p=(0,s.initUnique)(t,l.LayoutShiftManager),h=e=>{for(const t of e)p._processEntry(t);p._sessionValue>n.value&&(n.value=p._sessionValue,n.entries=p._sessionEntries,u())},m=(0,c.observe)("layout-shift",h);m&&(u=(0,o.bindReporter)(e,n,f,t.reportAllChanges),d.onHidden(()=>{h(m.takeRecords()),u(!0)}),r.WINDOW?.setTimeout?.(u))}))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bindReporter:()=>r});const r=(e,t,n,r)=>{let o,i;return a=>{t.value>=0&&(a||r)&&(i=t.value-(o??0),(i||void 0===o)&&(o=t.value,t.delta=i,t.rating=((e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good")(t.value,n),e(t)))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getVisibilityWatcher:()=>c});var r=n(1434),o=n(1466),i=n(1468);let a=-1;const s=new Set,l=e=>{if(function(e){return"pagehide"===e.type||"hidden"===r.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,i.removePageListener)("prerenderingchange",l,!0))}},c=()=>{if(r.WINDOW.document&&a<0){const e=(0,o.getActivationStart)(),t=r.WINDOW.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;a=t??("hidden"!==r.WINDOW.document?.visibilityState||r.WINDOW.document?.prerendering?1/0:0),(0,i.addPageListener)("visibilitychange",l,!0),(0,i.addPageListener)("pagehide",l,!0),(0,i.addPageListener)("prerenderingchange",l,!0)}return{get firstHiddenTime(){return a},onHidden(e){s.add(e)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getActivationStart:()=>o});var r=n(1467);const o=()=>{const e=(0,r.getNavigationEntry)();return e?.activationStart??0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getNavigationEntry:()=>o});var r=n(1434);const o=(e=!0)=>{const t=r.WINDOW.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPageListener:()=>o,removePageListener:()=>i});var r=n(1434);function o(e,t,n){r.WINDOW.document&&r.WINDOW.addEventListener(e,t,n)}function i(e,t,n){r.WINDOW.document&&r.WINDOW.removeEventListener(e,t,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{initMetric:()=>s});var r=n(1434),o=n(1470),i=n(1466),a=n(1467);const s=(e,t=-1)=>{const n=(0,a.getNavigationEntry)();let s="navigate";n&&(r.WINDOW.document?.prerendering||(0,i.getActivationStart)()>0?s="prerender":r.WINDOW.document?.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-")));return{name:e,value:t,rating:"good",delta:0,entries:[],id:(0,o.generateUniqueID)(),navigationType:s}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{generateUniqueID:()=>r});const r=()=>`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`},(e,t,n)=>{"use strict";n.r(t),n.d(t,{initUnique:()=>
41o});const r=new WeakMap;function o(e,t){try{return r.get(e)||r.set(e,new t),r.get(e)}catch(e){return new t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LayoutShiftManager:()=>r});class r{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;const t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.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,n)=>{"use strict";n.r(t),n.d(t,{observe:()=>r});const r=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{runOnce:()=>r});const r=e=>{let t=!1;return()=>{t||(e(),t=!0)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FCPThresholds:()=>c,onFCP:()=>u});var r=n(1464),o=n(1466),i=n(1465),a=n(1469),s=n(1473),l=n(1476);const c=[1800,3e3],u=(e,t={})=>{(0,l.whenActivated)(()=>{const n=(0,i.getVisibilityWatcher)(),l=(0,a.initMetric)("FCP");let u;const d=(0,s.observe)("paint",e=>{for(const t of e)"first-contentful-paint"===t.name&&(d.disconnect(),t.startTime<n.firstHiddenTime&&(l.value=Math.max(t.startTime-(0,o.getActivationStart)(),0),l.entries.push(t),u(!0)))});d&&(u=(0,r.bindReporter)(e,l,c,t.reportAllChanges))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{whenActivated:()=>o});var r=n(1434);const o=e=>{r.WINDOW.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{INPThresholds:()=>f,onINP:()=>p});var r=n(1464),o=n(1465),i=n(1469),a=n(1471),s=n(1478),l=n(1473),c=n(1479),u=n(1476),d=n(1480);const f=[200,500],p=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=(0,o.getVisibilityWatcher)();(0,u.whenActivated)(()=>{(0,c.initInteractionCountPolyfill)();const o=(0,i.initMetric)("INP");let u;const p=(0,a.initUnique)(t,s.InteractionManager),h=e=>{(0,d.whenIdleOrHidden)(()=>{for(const t of e)p._processEntry(t);const t=p._estimateP98LongestInteraction();t&&t._latency!==o.value&&(o.value=t._latency,o.entries=t.entries,u())})},m=(0,l.observe)("event",h,{durationThreshold:t.durationThreshold??40});u=(0,r.bindReporter)(e,o,f,t.reportAllChanges),m&&(m.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{h(m.takeRecords()),u(!0)}))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{InteractionManager:()=>i});var r=n(1479);let o=0;class i{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){o=(0,r.getInteractionCount)(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const e=Math.min(this._longestInteractionList.length-1,Math.floor(((0,r.getInteractionCount)()-o)/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 n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),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?.(n)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getInteractionCount:()=>c,initInteractionCountPolyfill:()=>u});var r=n(1473);let o=0,i=1/0,a=0;const s=e=>{e.forEach(e=>{e.interactionId&&(i=Math.min(i,e.interactionId),a=Math.max(a,e.interactionId),o=a?(a-i)/7+1:0)})};let l;const c=()=>l?o:performance.interactionCount||0,u=()=>{"interactionCount"in performance||l||(l=(0,r.observe)("event",s,{type:"event",buffered:!0,durationThreshold:0}))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{whenIdleOrHidden:()=>a});var r=n(1434),o=n(1468),i=n(1474);const a=e=>{const t=r.WINDOW.requestIdleCallback||r.WINDOW.setTimeout;"hidden"===r.WINDOW.document?.visibilityState?e():(e=(0,i.runOnce)(e),(0,o.addPageListener)("visibilitychange",e,{once:!0,capture:!0}),(0,o.addPageListener)("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),(0,o.removePageListener)("visibilitychange",e,{capture:!0}),(0,o.removePageListener)("pagehide",e,{capture:!0})}
41))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LCPThresholds:()=>h,onLCP:()=>m});var r=n(1464),o=n(1466),i=n(1465),a=n(1468),s=n(1469),l=n(1471),c=n(1482),u=n(1473),d=n(1474),f=n(1476),p=n(1480);const h=[2500,4e3],m=(e,t={})=>{(0,f.whenActivated)(()=>{const n=(0,i.getVisibilityWatcher)(),f=(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<n.firstHiddenTime&&(f.value=Math.max(t.startTime-(0,o.getActivationStart)(),0),f.entries=[t],m())},v=(0,u.observe)("largest-contentful-paint",y);if(v){m=(0,r.bindReporter)(e,f,h,t.reportAllChanges);const n=(0,d.runOnce)(()=>{y(v.takeRecords()),v.disconnect(),m(!0)}),o=e=>{e.isTrusted&&((0,p.whenIdleOrHidden)(n),(0,a.removePageListener)(e.type,o,{capture:!0}))};for(const e of["keydown","click","visibilitychange"])(0,a.addPageListener)(e,o,{capture:!0})}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LCPEntryManager:()=>r});class r{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{TTFBThresholds:()=>c,onTTFB:()=>d});var r=n(1434),o=n(1464),i=n(1466),a=n(1467),s=n(1469),l=n(1476);const c=[800,1800],u=e=>{r.WINDOW.document?.prerendering?(0,l.whenActivated)(()=>u(e)):"complete"!==r.WINDOW.document?.readyState?addEventListener("load",()=>u(e),!0):setTimeout(e)},d=(e,t={})=>{const n=(0,s.initMetric)("TTFB"),r=(0,o.bindReporter)(e,n,c,t.reportAllChanges);u(()=>{const e=(0,a.getNavigationEntry)();e&&(n.value=Math.max(e.responseStart-(0,i.getActivationStart)(),0),n.entries=[e],r(!0))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractNetworkProtocol:()=>p,getBrowserPerformanceAPI:()=>d,isMeasurementValue:()=>l,listenForWebVitalReportEvents:()=>m,msToSec:()=>f,startAndEndSpan:()=>c,startStandaloneWebVitalSpan:()=>u,supportsWebVital:()=>h});var r=n(426),o=n(401),i=n(434),a=n(1434),s=n(1485);function l(e){return"number"==typeof e&&isFinite(e)}function c(e,t,n,{...o}){const a=(0,i.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),(0,r.withActiveSpan)(e,()=>{const e=(0,r.startInactiveSpan)({startTime:t,...o});return e&&e.end(n),e})}function u(e){const t=(0,o.getClient)();if(!t)return;const{name:n,transaction:i,attributes:s,startTime:l}=e,{release:c,environment:u}=t.getOptions(),{userInfo:d}=t.getDataCollectionOptions(),f=t.getIntegrationByName("Replay"),p=f?.getReplayId(),h=(0,o.getCurrentScope)(),m=h.getUser(),g=void 0!==m?m.email||m.id||m.ip_address:void 0;let y;try{y=h.getScopeData().contexts.profile.profile_id}catch{}const v={release:c,environment:u,user:g||void 0,profile_id:y||void 0,replay_id:p||void 0,transaction:i,"user_agent.original":a.WINDOW.navigator?.userAgent,"client.address":d?"{{auto}}":void 0,...s};return(0,r.startInactiveSpan)({name:n,attributes:v,startTime:l,experimental:{standalone:!0}})}function d(){return a.WINDOW.addEventListener&&a.WINDOW.performance}function f(e){return e/1e3}function p(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}return r===e&&(t=r),{name:t,version:n}}function h(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function m(e,t){let n,r=!1;function o(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}(0,s.onHidden)(()=>{o("pagehide")});const i=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(o("navigation"),i(),a())}),a=e.on("afterStartPageLoadSpan",e=>{n=e,a()})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{onHidden:()=>i});var r=n(1434),o=n(1468);const i=e=>{const t=t=>{"pagehide"!==t.type&&"hidden"!==r.WINDOW.document?.visibilityState||e(t)};(0,o.addPageListener)("visibilitychange",t,{capture:!0,once:!0}),(0,o.addPageListener)("pagehide",t,{capture:!0,once:!0})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_PLAUSIBLE_LCP_DURATION:()=>d,_sendStandaloneLcpSpan:()=>h,isValidLcpMetric:()=>f,trackLcpAsStandaloneSpan:()=>p});var r=n(427),o=n(401),i=n(413),a=n(420),s=n(1453),l=n(1437),c=n(1462),u=n(1484);const d=6e4;function f(e){return null!=e&&e>0&&e<=d}function p(e){let t,n=0;if(!(0,u.supportsWebVital)("largest-contentful-paint"))return;const r=(0,c.addLcpInstrumentationHandler)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&f(e.value)&&(n=e.value,t=r)},!0);(0,u.listenForWebVitalReportEvents)(e,(e,o)=>{h(n,t,o,e),r()})}function h(e,t,n,c){if(!f(e))return;s.DEBUG_BUILD&&i.debug.log(`Sending LCP span (${e})`);const d=(0,u.msToSec)(((0,a.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),p=(0,o.getCurrentScope)().getScopeData().transactionName,h=t?(0,l.htmlTreeAsString)(t.element):"Largest contentful paint",m={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"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:h,transaction:p,attributes:m,startTime:d});g&&(g.addEvent("lcp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),g.end(d))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resourceTimingToSpanAttributes:()=>a});var r=n(420),o=n(1484);function i(e){return e?(((0,r.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function a(e){const t={};if(null!=e.nextHopProtocol){const{name:n,version:r}=(0,o.extractNetworkProtocol)(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,r.browserPerformanceTimeOrigin)()||(0,o.getBrowserPerformanceAPI)()?.timeOrigin?(n={...t,"http.request.redirect_start":i(e.redirectStart),"http.request.redirect_end":i(e.redirectEnd),"http.request.worker_start":i(e.workerStart),"http.request.fetch_start":i(e.fetchStart),"http.request.domain_lookup_start":i(e.domainLookupStart),"http.request.domain_lookup_end":i(e.domainLookupEnd),"http.request.connect_start":i(e.connectStart),"http.request.secure_connection_start":i(e.secureConnectionStart),"http.request.connection_end":i(e.connectEnd),"http.request.request_start":i(e.requestStart),"http.request.response_start":i(e.responseStart),"http.request.response_end":i(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0},Object.fromEntries(Object.entries(n).filter(([,e])=>null!=e))):t;var n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{fetchStreamPerformanceIntegration:()=>d});var r=n(426),o=n(427),i=n(1389),a=n(1429),s=n(1432);const l=new WeakMap,c=new WeakMap,u=["text/event-stream","application/x-ndjson","application/stream+json"],d=(0,i.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 n=c.get(e.response);n&&clearTimeout(n)}}}),(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 n=e.fetchData?.url||"",i=e.fetchData?.method||"GET",a=(0,s.parseStringToURLObject)(n),d=n.startsWith("data:")?(0,s.stripDataUrlContent)(n):a?(0,s.getSanitizedUrlStringFromUrlObject)(a):n,f=(0,r.startInactiveSpan)({name:`${i} ${d}`,startTime:e.endTimestamp,attributes:{url:(0,s.stripDataUrlContent)(n),"http.method":i,type:"fetch",[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});l.set(e.response,f);const p=setTimeout(()=>{f.isRecording()&&f.end()},9e4);c.set(e.response,p)}})}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{WEB_VITALS_INTEGRATION_NAME:()=>l,webVitalsIntegration:()=>c});var r=n(1389),o=n(432),i=n(1460),a=n(1490),s=n(1491);const l="WebVitals",c=(0,r.defineIntegration)((e={})=>{const t=new Set(e.ignore??[]);return{name:l,setup(n){const r=(0,o.hasSpanStreamingEnabled)(n),{enableStandaloneClsSpans:l,enableStandaloneLcpSpans:c}=e._experiments??{},u=r||t.has("cls")?void 0:l||!1,d=r||t.has("lcp")?void 0:c||!1,f=(0,i.startTrackingWebVitals)({recordClsStandaloneSpans:u,recordLcpStandaloneSpans:d,client:n}),p=new WeakSet;n.on("afterStartPageLoadSpan",e=>{p.add(e)}),n.on("spanEnd",e=>{p.delete(e)&&(f(),(0,i.addWebVitalsToSpan)(e,{recordClsOnPageloadSpan:!1===u,recordLcpOnPageloadSpan:!1===d,spanStreamingEnabled:r}))}),r?(t.has("lcp")||(0,a.trackLcpAsSpan)(n),t.has("cls")||(0,a.trackClsAsSpan)(n),t.has("inp")||(0,a.trackInpAsSpan)()):t.has("inp")||(0,s.startTrackingINP)()},afterAllSetup(){t.has("inp")||(0,s.registerInpInteractionListener)()}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_emitWebVitalSpan:()=>g,_sendClsSpan:()=>_,_sendInpSpan:()=>S,_sendLcpSpan:()=>v,trackClsAsSpan:()=>b,trackInpAsSpan:()=>w,trackLcpAsSpan:()=>y});var r=n(426),o=n(427),i=n(401),a=n(434),s=n(413),l=n(420),c=n(1453),u=n(1437),d=n(1434),f=n(1491),p=n(1462),h=n(1486),m=n(1484);function g(e){const{name:t,op:n,origin:s,metricName:l,value:c,attributes:u,parentSpan:f,reportEvent:p,startTime:h,endTime:m}=e,g=(0,i.getCurrentScope)().getScopeData().transactionName,y={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:n,[o.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${l}.value`]:c,"sentry.transaction":g,"user_agent.original":d.WINDOW.navigator?.userAgent,...u};f&&"pageload"===(0,a.spanToStreamedSpanJSON)(f).attributes?.[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]&&(y["sentry.pageload.span_id"]=f.spanContext().spanId),p&&(y[`browser.web_vital.${l}.report_event`]=p);const v=(0,r.startInactiveSpan)({name:t,attributes:y,startTime:h,parentSpan:f});v&&v.end(m??h)}function y(e){let t,n=0;if(!(0,m.supportsWebVital)("largest-contentful-paint"))return;const r=(0,p.addLcpInstrumentationHandler)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(0,h.isValidLcpMetric)(e.value)&&(n=e.value,t=r)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,o,i)=>{v(n,t,i,e),r()})}function v(e,t,n,r){if(!(0,h.isValidLcpMetric)(e))return;c.DEBUG_BUILD&&s.debug.log(`Sending LCP span (${e})`);const o=(0,l.browserPerformanceTimeOrigin)()||0,i=(0,m.msToSec)(o),a=(0,m.msToSec)(o+(t?.startTime||0)),d=t?(0,u.htmlTreeAsString)(t.element):"Largest contentful paint",f={};t?.element&&(f["browser.web_vital.lcp.element"]=(0,u.htmlTreeAsString)(t.element)),t?.id&&(f["browser.web_vital.lcp.id"]=t.id),t?.url&&(f["browser.web_vital.lcp.url"]=t.url),null!=t?.loadTime&&(f["browser.web_vital.lcp.load_time"]=t.loadTime),null!=t?.renderTime&&(f["browser.web_vital.lcp.render_time"]=t.renderTime),null!=t?.size&&(f["browser.web_vital.lcp.size"]=t.size),g({name:d,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:f,parentSpan:n,reportEvent:r,startTime:i,endTime:a})}function b(e){let t,n=0;if(!(0,m.supportsWebVital)("layout-shift"))return;const r=(0,p.addClsInstrumentationHandler)(({metric:e})=>{const r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);(0,m.listenForWebVitalReportEvents)(e,(e,o,i)=>{_(n,t,i,e),r()})}function _(e,t,n,r){c.DEBUG_BUILD&&s.debug.log(`Sending CLS span (${e})`);const o=t?(0,m.msToSec)(((0,l.browserPerformanceTimeOrigin)()||0)+t.startTime):(0,l.timestampInSeconds)(),i=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)}),g({name:i,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:a,parentSpan:n,reportEvent:r,startTime:o})}function w(){if(!(0,m.getBrowserPerformanceAPI)()||!(0,l.browserPerformanceTimeOrigin)())return;(0,p.addInpInstrumentationHandler)(({metric:e})=>{if(null==e.value)return;if((0,m.msToSec)(e.value)>f.MAX_PLAUSIBLE_INP_DURATION)return;const t=e.entries.find(t=>t.duration===e.value&&f.INP_ENTRY_MAP[t.name]);t&&S(e.value,t)})}function S(e,t){c.DEBUG_BUILD&&s.debug.log(`Sending INP span (${e})`);const n=(0,m.msToSec)((0,l.browserPerformanceTimeOrigin)()+t.startTime),r=(0,m.msToSec)(e),d=f.INP_ENTRY_MAP[t.name],p=(0,f.getCachedInteractionContext)(t.interactionId),h=(0,a.getActiveSpan)(),y=h?(0,a.getRootSpan)(h):void 0,v=p?.span||y,b=v?(0,a.spanToStreamedSpanJSON)(v).name:(0,i.getCurrentScope)().getScopeData().transactionName;g({name:p?.elementName||(0,u.htmlTreeAsString)(t.target),op:`ui.interaction.${d}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[o.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:t.duration,"sentry.transaction":b},startTime:n,endTime:n+r,parentSpan:v})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{INP_ENTRY_MAP:()=>y,MAX_PLAUSIBLE_INP_DURATION:()=>m,_onInp:()=>b,_trackINP:()=>v,getCachedInteractionContext:()=>_,registerInpInteractionListener:()=>w,startTrackingINP:()=>g});var r=n(427),o=n(401),i=n(434),a=n(1403),s=n(420),l=n(1437),c=n(1434),u=n(1462),d=n(1484);const f=[],p=new Map,h=new Map,m=60;function g(){if((0,d.getBrowserPerformanceAPI)()&&(0,s.browserPerformanceTimeOrigin)()){const e=v();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 v(){return(0,u.addInpInstrumentationHandler)(b)}const b=({metric:e})=>{if(null==e.value)return;const t=(0,d.msToSec)(e.value);if(t>m)return;const n=e.entries.find(t=>t.duration===e.value&&y[t.name]);if(!n)return;const{interactionId:a}=n,c=y[n.name],u=(0,d.msToSec)((0,s.browserPerformanceTimeOrigin)()+n.startTime),f=(0,i.getActiveSpan)(),h=f?(0,i.getRootSpan)(f):void 0,g=null!=a?p.get(a):void 0,v=g?.span||h,b=v?(0,i.spanToJSON)(v).description:(0,o.getCurrentScope)().getScopeData().transactionName,_=g?.elementName||(0,l.htmlTreeAsString)(n.target),w={[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${c}`,[r.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},S=(0,d.startStandaloneWebVitalSpan)({name:_,transaction:b,attributes:w,startTime:u});S&&(S.addEvent("inp",{[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[r.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),S.end(u+t))};function _(e){return null!=e?p.get(e):void 0}function w(){const e=Object.keys(y);function t(e){const t=e.target;if(!t)return;const n=(0,l.htmlTreeAsString)(t),r=Math.round(e.timeStamp);if(h.set(r,n),h.size>50){const e=h.keys().next().value;void 0!==e&&h.delete(e)}}(0,a.isBrowser)()&&e.forEach(e=>{c.WINDOW.addEventListener(e,t,{capture:!0,passive:!0})});const n=({entries:e})=>{const t=(0,i.getActiveSpan)(),n=t&&(0,i.getRootSpan)(t);e.forEach(e=>{if(!(0,u.isPerformanceEventTiming)(e))return;const t=e.interactionId;if(null==t)return;if(p.has(t))return;const r=e.target?(0,l.htmlTreeAsString)(e.target):function(e){const t=Math.round(e.startTime);let n=h.get(t);if(!n)for(let e=-5;e<=5;e++){const r=h.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(f.length>10){const e=f.shift();p.delete(e)}f.push(t),p.set(t,{span:n,elementName:r})})};(0,u.addPerformanceInstrumentationHandler)("event",n),(0,u.addPerformanceInstrumentationHandler)("first-input",n)}},(e,t,n)=>{"use strict";
41n.r(t),n.d(t,{registerBackgroundTabDetection:()=>l});var r=n(436),o=n(434),i=n(413),a=n(1438),s=n(1423);function l(){s.WINDOW.document?s.WINDOW.document.addEventListener("visibilitychange",()=>{const e=(0,o.getActiveSpan)();if(!e)return;const t=(0,o.getRootSpan)(e);if(s.WINDOW.document.hidden&&t){const e="cancelled",{op:n,status:s}=(0,o.spanToJSON)(t);a.DEBUG_BUILD&&i.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),s||t.setStatus({code:r.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):a.DEBUG_BUILD&&i.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{PREVIOUS_TRACE_KEY:()=>u,PREVIOUS_TRACE_MAX_DURATION:()=>c,PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE:()=>d,addPreviousTraceSpanLink:()=>p,getPreviousTraceFromSessionStorage:()=>m,linkTraces:()=>f,spanContextSampled:()=>g,storePreviousTraceInSessionStorage:()=>h});var r=n(427),o=n(401),i=n(434),a=n(413),s=n(1438),l=n(1423);const c=3600,u="sentry_previous_trace",d="sentry.previous_trace";function f(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const a="session-storage"===t;let s=a?m():void 0;e.on("spanStart",e=>{if((0,i.getRootSpan)(e)!==e)return;const t=(0,o.getCurrentScope)().getPropagationContext();s=p(s,e,t),a&&h(s)});let l=!0;n&&e.on("beforeSampling",e=>{if(!s)return;const t=(0,o.getCurrentScope)(),n=t.getPropagationContext();l&&n.parentSpanId?l=!1:(t.setPropagationContext({...n,dsc:{...n.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,[r.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:s.sampleRate})})}function p(e,t,n){const o=(0,i.spanToJSON)(t);const l={spanContext:t.spanContext(),startTimestamp:o.start_timestamp,sampleRate:function(){try{const e=Number(o.data?.[r.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return l;const u=e.spanContext;return u.traceId===o.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:o.op,...t.spanContext()})}\``),t.addLink({context:u,attributes:{[r.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute(d,`${u.traceId}-${u.spanId}-${g(u)?1:0}`)),l)}function h(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,n)=>{"use strict";n.r(t),n.d(t,{defaultRequestInstrumentationOptions:()=>E,instrumentOutgoingRequests:()=>k,shouldAttachHeaders:()=>O});var r=n(444),o=n(436),i=n(426),a=n(427),s=n(401),l=n(430),c=n(434),u=n(1495),d=n(1496),f=n(432),p=n(1429),h=n(416),m=n(420),g=n(1432),y=n(1424),v=n(1462),b=n(1436),_=n(1497),w=n(1487),S=n(1498);const E={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function k(e,t){const{traceFetch:n,traceXHR:h,shouldCreateSpanForRequest:m,enableHTTPTimings:y,tracePropagationTargets:v,onRequestSpanStart:w,onRequestSpanEnd:k}={...E,...t},T="function"==typeof m?m:e=>!0,C=e=>O(e,v),P={},A=e.getOptions().propagateTraceparent;n&&(0,p.addFetchInstrumentationHandler)(t=>{const n=(0,d.instrumentFetchRequest)(t,T,C,P,{propagateTraceparent:A,onRequestSpanEnd:k});if(n){const r=(0,S.getFullURL)(t.fetchData.url),o=r?(0,g.parseUrl)(r).host:void 0;n.setAttributes({"http.url":r?(0,g.stripDataUrlContent)(r):void 0,"server.address":o}),y&&x(n,e),w?.(n,{headers:t.headers})}}),h&&(0,b.addXhrInstrumentationHandler)(t=>{const n=function(e,t,n,d,p,h){const m=e.xhr,y=m?.[b.SENTRY_XHR_DATA_KEY];if(!m||m.__sentry_own_request__||!y)return;const{url:v,method:w}=y,E=(0,l.hasSpansEnabled)()&&t(v);if(e.endTimestamp){const t=m.__sentry_xhr_span_id__;if(!t)return;const n=d[t];return void(n&&(E&&void 0!==y.status_code&&((0,o.setHttpStatus)(n,y.status_code),n.end(),h?.(n,{headers:(0,S.createHeadersSafely)((0,_.parseXhrResponseHeaders)(m)),error:e.error})),delete d[t]))}const k=(0,S.getFullURL)(v),T=k?(0,g.parseUrl)(k):(0,g.parseUrl)(v),x=(0,g.stripDataUrlContent)((0,g.stripUrlQueryAndFragment)(v)),O=(0,s.getClient)(),C=!!(0,c.getActiveSpan)()||!!O&&(0,f.hasSpanStreamingEnabled)(O),P=E&&C?(0,i.startInactiveSpan)({name:`${w} ${x}`,attributes:{url:(0,g.stripDataUrlContent)(v),type:"xhr","http.method":w,"http.url":k?(0,g.stripDataUrlContent)(k):void 0,"server.address":T?.host,[a.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[a.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...T?.search&&{"http.query":T?.search},...T?.hash&&{"http.fragment":T?.hash}}}):new r.SentryNonRecordingSpan;E&&!C&&O?.recordDroppedEvent("no_parent_span","span");m.__sentry_xhr_span_id__=P.spanContext().spanId,d[m.__sentry_xhr_span_id__]=P,
41n(v)&&function(e,t,n){const{"sentry-trace":r,baggage:o,traceparent:i}=(0,u.getTraceData)({span:t,propagateTraceparent:n});r&&function(e,t,n,r){const o=e.__sentry_xhr_v3__?.request_headers;if(o?.["sentry-trace"]||!e.setRequestHeader)return;try{if(e.setRequestHeader("sentry-trace",t),r&&!o?.traceparent&&e.setRequestHeader("traceparent",r),n){const t=o?.baggage;t&&(0,S.baggageHeaderHasSentryValues)(t)||e.setRequestHeader("baggage",n)}}catch{}}(e,r,o,i)}(m,(0,l.hasSpansEnabled)()&&C?P:void 0,p);O&&O.emit("beforeOutgoingRequestSpan",P,e);return P}(t,T,C,P,A,k);n&&(y&&x(n,e),w?.(n,{headers:(0,S.createHeadersSafely)(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}const T=300;function x(e,t){const{url:n}=(0,c.spanToJSON)(e).data;if(!n||"string"!=typeof n)return;let r=()=>{setTimeout(o)};if((0,f.hasSpanStreamingEnabled)(t)){const t=e.end.bind(e);e.end=e=>{const n=e??(0,m.timestampInSeconds)();let i=!1;const a=()=>{i||(i=!0,setTimeout(o),t(n),clearTimeout(s))};r=a;const s=setTimeout(a,T)}}const o=(0,v.addPerformanceInstrumentationHandler)("resource",({entries:t})=>{t.forEach(t=>{(0,S.isPerformanceResourceTiming)(t)&&t.name.endsWith(n)&&(e.setAttributes((0,w.resourceTimingToSpanAttributes)(t)),r())})})}function O(e,t){const n=(0,y.getLocationHref)();if(n){let r,o;try{r=new URL(e,n),o=new URL(n).origin}catch{return!1}const i=r.origin===o;return t?(0,h.stringMatchesSomePattern)(r.toString(),t)||i&&(0,h.stringMatchesSomePattern)(r.pathname,t):i}{const n=!!e.match(/^\/(?!\/)/);return t?(0,h.stringMatchesSomePattern)(e,t):n}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getTraceData:()=>f});var r=n(402),o=n(403),i=n(401),a=n(400),s=n(413),l=n(434),c=n(440),u=n(428),d=n(438);function f(e={}){const t=e.client||(0,i.getClient)();if(!(0,a.isEnabled)()||!t)return{};const n=(0,o.getMainCarrier)(),f=(0,r.getAsyncContextStrategy)(n);if(f.getTraceData)return f.getTraceData(e);const p=e.scope||(0,i.getCurrentScope)(),h=e.span||(0,l.getActiveSpan)();if(!h&&(0,i.hasExternalPropagationContext)())return{};const m=h?(0,l.spanToTraceHeader)(h):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,d.generateSentryTraceHeader)(t,r,n)}(p),g=h?(0,c.getDynamicSamplingContextFromSpan)(h):(0,c.getDynamicSamplingContextFromScope)(t,p),y=(0,u.dynamicSamplingContextToSentryBaggageHeader)(g);if(!d.TRACEPARENT_REGEXP.test(m))return s.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const v={"sentry-trace":m,baggage:y};return e.propagateTraceparent&&(v.traceparent=h?(0,l.spanToTraceparentHeader)(h):function(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,d.generateTraceparentHeader)(t,r,n)}(p)),v}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_INTERNAL_getTracingHeadersForFetchRequest:()=>y,_callOnRequestSpanEnd:()=>g,instrumentFetchRequest:()=>m});var r=n(401),o=n(427),i=n(434),a=n(436),s=n(414),l=n(430),c=n(428),u=n(444),d=n(432),f=n(426),p=n(1432),h=n(1495);function m(e,t,n,o,s){if(!e.fetchData)return;const{method:c,url:h}=e.fetchData,m=(0,l.hasSpansEnabled)()&&t(h);if(e.endTimestamp){const t=e.fetchData.__span;if(!t)return;const n=o[t];return void(n&&(m&&(!function(e,t){if(t.response){(0,a.setHttpStatus)(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const t=parseInt(n);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:a.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(n,e),g(n,e,s)),delete o[t]))}const{spanOrigin:v="auto.http.browser",propagateTraceparent:_=!1}="object"==typeof s?s:{spanOrigin:s},w=(0,r.getClient)(),S=!!(0,i.getActiveSpan)()||!!w&&(0,d.hasSpanStreamingEnabled)(w),E=m&&S?(0,f.startInactiveSpan)(function(e,t,n){if(e.startsWith("data:")){return{name:`${t} ${(0,p.stripDataUrlContent)(e)}`,attributes:b(e,void 0,t,n)}}const r=(0,p.parseStringToURLObject)(e),o=r?(0,p.getSanitizedUrlStringFromUrlObject)(r):e;return{name:`${t} ${o}`,attributes:b(e,r,t,n)}}(h,c,v)):new u.SentryNonRecordingSpan;if(m&&!S&&w?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=E.spanContext().spanId,o[E.spanContext().spanId]=E,n(e.fetchData.url)){const t=e.args[0],n={...e.args[1]||{}},r=y(t,n,(0,l.hasSpansEnabled)()&&S?E:void 0,_);r&&(e.args[1]=n,n.headers=r)}if(w){const t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};w.emit("beforeOutgoingRequestSpan",E,t)}return E}function g(e,t,n){const r="object"==typeof n&&null!==n?n.onRequestSpanEnd:void 0;r?.(e,{headers:t.response?.headers,error:t.error})}function y(e,t,n,r){const o=(0,h.getTraceData)({span:n,propagateTraceparent:r}),i=o["sentry-trace"],a=o.baggage,l=o.traceparent;if(!i)return;const c=t.headers||((0,s.isRequest)(e)?e.headers:void 0);if(c){if(u=c,"undefined"!=typeof Headers&&(0,s.isInstanceOf)(u,Headers)){const e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",i),r&&l&&!e.get("traceparent")&&e.set("traceparent",l),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",i]),r&&l&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",l]);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,n="baggage"in c?c.baggage:void 0,o=n?Array.isArray(n)?[...n]:[n]:[],s=n&&(Array.isArray(n)?n.find(e=>v(e)):v(n));a&&!s&&o.push(a);const u=Object.assign({},c,{"sentry-trace":e??i,baggage:o.length>0?o.join(","):void 0});return r&&l&&!t&&(u.traceparent=l),u}}return{...o};var u}function v(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(c.SENTRY_BAGGAGE_KEY_PREFIX))}function b(e,t,n,r){const i={url:(0,p.stripDataUrlContent)(e),type:"fetch","http.method":n,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&((0,p.isURLObjectRelative)(t)||(i["http.url"]=(0,p.stripDataUrlContent)(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ORIGINAL_REQ_BODY:()=>i,getBodyString:()=>s,getFetchRequestArgBody:()=>l,parseXhrResponseHeaders:()=>c,serializeFormData:()=>a});var r=n(413),o=n(1453);const i=Symbol.for("sentry__originalRequestBody");function a(e){return new URLSearchParams(e).toString()}function s(e,t=r.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(n){return o.DEBUG_BUILD&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return o.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][i];return void 0!==t?t:void 0}}function c(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return o.DEBUG_BUILD&&r.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>
vendor: 15,537 bytes, line 41
41{const[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{baggageHeaderHasSentryValues:()=>o,createHeadersSafely:()=>s,getFullURL:()=>i,isPerformanceResourceTiming:()=>a});var r=n(1423);function o(e){return e.split(",").some(e=>e.trim().startsWith("sentry-"))}function i(e){try{return new URL(e,r.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,n)=>{"use strict";n.r(t),n.d(t,{excludeGraphQLFetch:()=>r,withoutGraphQLFetch:()=>o});const r=e=>{if("fetch"===e.category){if((e.data?.url??"").includes("/graphql"))return null}return e};function o(e){return(t,n)=>{const o=r(t,n);return null===o?null:e(o,n)}}},,,,,,,function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var n=t[0],r=t[1];if(10===n)switch(r){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(n){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,l=e.map([t,n],function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]<l[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var s=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){r[t]=e[t]})};for(t=0,n=i.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n,r;return e.getParser=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t,n)},e.parse=function(e,t){return void 0===t&&(t=null),new o.default(e,t).getResult()},t=e,r=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}],(n=null)&&a(t.prototype,n),r&&a(t,r),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n(92)),o=l(n(93)),i=l(n(94)),a=l(n(95)),s=l(n(17));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var r=!1;"boolean"==typeof t?(r=t,this._hints=n):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==r&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),n=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return n?n.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,o={},i=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(n[t]=a,r+=1)}),r>0){var a=Object.keys(n),l=s.default.find(a,function(e){return t.isOS(e)});if(l){var c=this.satisfies(n[l]);if(void 0!==c)return c}var u=s.default.find(a,function(e){return t.isPlatform(e)});if(u){var d=this.satisfies(n[u]);if(void 0!==d)return d}}if(i>0){var f=Object.keys(o),p=s.default.find(f,function(e){return t.isBrowser(e,!0)});if(void 0!==p)return this.compareVersion(o[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=c,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},n=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},n=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},n=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"}
vendor: 11,280 bytes, line 41
41,n=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},n=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},n=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},n=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},n=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},n=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},n=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},n=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},n=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},n=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},n=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},n=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},n=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},n=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},n=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},n=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},n=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},n=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},n=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),r=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),i=o.default.getFirstMatch(/se ([\d.]+)x/i,e),a=n||r||i;return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var n={name:"DuckDuckGo"};if(t){var r=t.getBrandVersion("DuckDuckGo");if(r)return n.version=r,n}var i=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return i&&(n.version=i),n}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var n={name:"Brave"};if(t){var r=t.getBrandVersion("Brave");
vendor: 10,773 bytes, line 41
41if(r)return n.version=r,n}return n}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:i.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:i.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventStreamCodec:()=>r.EventStreamCodec,EventStreamMarshaller:()=>u.EventStreamMarshaller,EventStreamSerde:()=>g.EventStreamSerde,HeaderMarshaller:()=>o.HeaderMarshaller,Int64:()=>
41i.Int64,MessageDecoderStream:()=>a.MessageDecoderStream,MessageEncoderStream:()=>s.MessageEncoderStream,SmithyMessageDecoderStream:()=>l.SmithyMessageDecoderStream,SmithyMessageEncoderStream:()=>c.SmithyMessageEncoderStream,UniversalEventStreamMarshaller:()=>f.EventStreamMarshaller,eventStreamSerdeProvider:()=>u.eventStreamSerdeProvider,getChunkedStream:()=>p.getChunkedStream,getMessageUnmarshaller:()=>h.getMessageUnmarshaller,getUnmarshalledStream:()=>h.getUnmarshalledStream,iterableToReadableStream:()=>d.iterableToReadableStream,readableStreamToIterable:()=>d.readableStreamToIterable,resolveEventStreamSerdeConfig:()=>m.resolveEventStreamSerdeConfig,universalEventStreamSerdeProvider:()=>f.eventStreamSerdeProvider});var r=n(1508),o=n(1511),i=n(1512),a=n(1514),s=n(1515),l=n(1516),c=n(1517),u=n(1518),d=n(1522),f=n(1519),p=n(1520),h=n(1521),m=n(1523),g=n(1524)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventStreamCodec:()=>a});var r=n(1509),o=n(1511),i=n(1513);class a{headerMarshaller;messageBuffer;isEndOfStream;constructor(e,t){this.headerMarshaller=new o.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 n=this.headerMarshaller.format(e),o=n.byteLength+t.byteLength+16,i=new Uint8Array(o),a=new DataView(i.buffer,i.byteOffset,i.byteLength),s=new r.Crc32;return a.setUint32(0,o,!1),a.setUint32(4,n.byteLength,!1),a.setUint32(8,s.update(i.subarray(0,8)).digest(),!1),i.set(n,12),i.set(t,n.byteLength+12),a.setUint32(o-4,s.update(i.subarray(8,o-4)).digest(),!1),i}decode(e){const{headers:t,body:n}=(0,i.splitMessage)(e);return{headers:this.headerMarshaller.parse(t),body:n}}formatHeaders(e){return this.headerMarshaller.format(e)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AwsCrc32:()=>i.AwsCrc32,Crc32:()=>s,crc32:()=>a});var r=n(314),o=n(301),i=n(1510);function a(e){return(new s).update(e).digest()}var s=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,n;try{for(var o=(0,r.__values)(e),i=o.next();!i.done;i=o.next()){var a=i.value;this.checksum=this.checksum>>>8^l[255&(this.checksum^a)]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),l=(0,o.uint32ArrayFrom)([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AwsCrc32:()=>a});var r=n(314),o=n(301),i=n(1509),a=function(){function e(){this.crc32=new i.Crc32}return e.prototype.update=function(e){(0,o.isEmptyData)(e)||this.crc32.update((0,o.convertToBuffer)(e))},e.prototype.digest=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return[2,(0,o.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new i.Crc32},e}()},(e,t,n)=>{"use strict";n.r(t),n.d(t,{HeaderMarshaller:()=>a});var r,o=n(239),i=n(1512);class a{toUtf8;fromUtf8;constructor(e,t){this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const n of Object.keys(e)){const r=this.fromUtf8(n);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[
41n]))}const n=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let r=0;for(const e of t)n.set(e,r),r+=e.byteLength;return n}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 n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":const a=new DataView(new ArrayBuffer(3+e.value.byteLength));a.setUint8(0,6),a.setUint16(1,e.value.byteLength,!1);const s=new Uint8Array(a.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 d=new Uint8Array(9);return d[0]=8,d.set(i.Int64.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!g.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const f=new Uint8Array(17);return f[0]=9,f.set((0,o.fromHex)(e.value.replace(/\-/g,"")),1),f}}parse(e){const t={};let n=0;for(;n<e.byteLength;){const r=e.getUint8(n++),a=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,r));switch(n+=r,e.getUint8(n++)){case 0:t[a]={type:s,value:!0};break;case 1:t[a]={type:s,value:!1};break;case 2:t[a]={type:l,value:e.getInt8(n++)};break;case 3:t[a]={type:c,value:e.getInt16(n,!1)},n+=2;break;case 4:t[a]={type:u,value:e.getInt32(n,!1)},n+=4;break;case 5:t[a]={type:d,value:new i.Int64(new Uint8Array(e.buffer,e.byteOffset+n,8))},n+=8;break;case 6:const r=e.getUint16(n,!1);n+=2,t[a]={type:f,value:new Uint8Array(e.buffer,e.byteOffset+n,r)},n+=r;break;case 7:const g=e.getUint16(n,!1);n+=2,t[a]={type:p,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+n,g))},n+=g;break;case 8:t[a]={type:h,value:new Date(new i.Int64(new Uint8Array(e.buffer,e.byteOffset+n,8)).valueOf())},n+=8;break;case 9:const y=new Uint8Array(e.buffer,e.byteOffset+n,16);n+=16,t[a]={type:m,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"}(r||(r={}));const s="boolean",l="byte",c="short",u="integer",d="long",f="binary",p="string",h="timestamp",m="uuid",g=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Int64:()=>o});var r=n(239);class o{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 n=7,r=Math.abs(Math.round(e));n>-1&&r>0;n--,r/=256)t[n]=r;return e<0&&i(t),new o(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&i(e),parseInt((0,r.toHex)(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function i(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,n)=>{"use strict";n.r(t),n.d(t,{splitMessage:()=>l});var r=n(1509);const o=4,i=2*o,a=4,s=i+2*a;function l({byteLength:e,byteOffset:t,buffer:n}){if(e<s)throw new Error("Provided message too short to accommodate event stream message overhead");const l=new DataView(n,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(o,!1),d=l.getUint32(i,!1),f=l.getUint32(e-a,!1),p=(new r.Crc32).update(new Uint8Array(n,t,i));if(d!==p.digest())throw new Error(`The prelude checksum specified in the message (${d}) does not match the calculated CRC32 checksum (${p.digest()})`);
41if(p.update(new Uint8Array(n,t+i,e-(i+a))),f!==p.digest())throw new Error(`The message checksum (${p.digest()}) did not match the expected value of ${f}`);return{headers:new DataView(n,t+i+a,u),body:new Uint8Array(n,t+i+a+u,c-u-(i+a+a))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MessageDecoderStream:()=>r});class r{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,n)=>{"use strict";n.r(t),n.d(t,{MessageEncoderStream:()=>r});class r{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,n)=>{"use strict";n.r(t),n.d(t,{SmithyMessageDecoderStream:()=>r});class r{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,n)=>{"use strict";n.r(t),n.d(t,{SmithyMessageEncoderStream:()=>r});class r{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,n)=>{"use strict";n.r(t),n.d(t,{EventStreamMarshaller:()=>i,eventStreamSerdeProvider:()=>s});var r=n(1519),o=n(1522);class i{universalMarshaller;constructor({utf8Encoder:e,utf8Decoder:t}){this.universalMarshaller=new r.EventStreamMarshaller({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const n=a(e)?(0,o.readableStreamToIterable)(e):e;return this.universalMarshaller.deserialize(n,t)}serialize(e,t){const n=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(0,o.iterableToReadableStream)(n):n}}const a=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,s=e=>new i(e)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventStreamMarshaller:()=>u,eventStreamSerdeProvider:()=>d});var r=n(1508),o=n(1514),i=n(1515),a=n(1516),s=n(1517),l=n(1520),c=n(1521);class u{eventStreamCodec;utfEncoder;constructor({utf8Encoder:e,utf8Decoder:t}){this.eventStreamCodec=new r.EventStreamCodec(e,t),this.utfEncoder=e}deserialize(e,t){const n=(0,l.getChunkedStream)(e);return new a.SmithyMessageDecoderStream({messageStream:new o.MessageDecoderStream({inputStream:n,decoder:this.eventStreamCodec}),deserializer:(0,c.getMessageUnmarshaller)(t,this.utfEncoder)})}serialize(e,t){return new i.MessageEncoderStream({messageStream:new s.SmithyMessageEncoderStream({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}}const d=e=>new u(e)},(e,t,n)=>{"use strict";function r(e){let t=0,n=0,r=null,o=null;const i=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,n=4,r=new Uint8Array(e);new DataView(r.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!==n)throw new Error("Truncated event message received.");return void(yield r)}const l=e.length;let c=0;for(;c<l;){if(!r){const t=l-c;o||(o=new Uint8Array(4));const r=Math.min(4-n,t);if(o.set(e.slice(c,c+r),n),n+=r,c+=r,n<4)break;i(new DataView(o.buffer).getUint32(0,!1)),o=null}const a=Math.min(t-n,l-c);r.set(e.slice(c,c+a),n),n+=a,c+=a,t&&t===n&&(yield r,r=null,t=0,n=0)}}}}}n.r(t),n.d(t,{getChunkedStream:()=>r})},(e,t,n)=>{"use strict";function r(e,t){const n=o(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(const r of e){const e=t.eventStreamCodec.decode(r),o=await n(e);void 0!==o&&(yield o)}}}}function o(e,t){return async function(n){const{value:r}=n.headers[":message-type"];if("error"===r){const e=new Error(n.headers[":error-message"].value||"UnknownError");throw e.name=n.headers[":error-code"].value,e}if("exception"===r){const r=n.headers[":exception-type"].value,o={[r]:n},i=await e(o);if(i.$unknown){const e=new Error(t(n.body));throw e.name=r,e}throw i[r]}if("event"===r){const t={[n.headers[":event-type"].value]:n},r=await e(t);if(r.$unknown)return;return r}throw Error(`Unrecognizable event type: ${n.headers[":event-type"].value}`)}}n.r(t),n.d(t,{getMessageUnmarshaller:()=>o,getUnmarshalledStream:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{iterableToReadableStream:()=>o,readableStreamToIterable:()=>r});const r=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)return;yield n}}finally{t.releaseLock()}}}),o=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:n,value:r}=await t.next();if(n)return e.close();e.enqueue(r)}})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{resolveEventStreamSerdeConfig:()=>r});const r=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventStreamSerde:()=>i});var r=n(226),o=n(228);class i{marshaller;
41serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:r,defaultContentType:o}){this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=r,this.defaultContentType=o}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const r=this.marshaller,o=t.getEventStreamMember(),i=t.getMemberSchema(o),a=this.serializer,s=this.defaultContentType,l=Symbol("initialRequestMarker"),c={async*[Symbol.asyncIterator](){if(n){const e={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:s}};a.write(t,n);const r=a.flush();yield{[l]:!0,headers:e,body:r}}for await(const t of e)yield t}};return r.serialize(c,e=>{if(e[l])return{headers:e.headers,body:e.body};let t="";for(const n in e)if("__type"!==n){t=n;break}const{additionalHeaders:n,body:r,eventType:o,explicitPayloadContentType:a}=this.writeEventBody(t,i,e);return{headers:{":event-type":{type:"string",value:o},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:a??s},...n},body:r}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const r=this.marshaller,i=t.getEventStreamMember(),a=t.getMemberSchema(i).getMemberSchemas(),s=Symbol("initialResponseMarker"),l=r.deserialize(e.body,async e=>{let n="";for(const t in e)if("__type"!==t){n=t;break}const r=e[n].body;if("initial-response"===n){const e=await this.deserializer.read(t,r);return delete e[i],{[s]:!0,...e}}if(n in a){const t=a[n];if(t.isStructSchema()){const i={};let a=!1;for(const[s,l]of t.structIterator()){const{eventHeader:t,eventPayload:c}=l.getMergedTraits();if(a=a||Boolean(t||c),c)l.isBlobSchema()?i[s]=r:l.isStringSchema()?i[s]=(this.serdeContext?.utf8Encoder??o.toUtf8)(r):l.isStructSchema()&&(i[s]=await this.deserializer.read(l,r));else if(t){const t=e[n].headers[s]?.value;null!=t&&(l.isNumericSchema()?i[s]=t&&"object"==typeof t&&"bytes"in t?BigInt(t.toString()):Number(t):i[s]=t)}}if(a)return{[n]:i};if(0===r.byteLength)return{[n]:{}}}return{[n]:await this.deserializer.read(t,r)}}return{$unknown:e}}),c=l[Symbol.asyncIterator](),u=await c.next();if(u.done)return l;if(u.value?.[s]){if(!t)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const e in u.value)n[e]=u.value[e]}return{async*[Symbol.asyncIterator](){for(u?.value?.[s]||(yield u.value);;){const{done:e,value:t}=await c.next();if(e)break;yield t}}}}writeEventBody(e,t,n){const o=this.serializer;let i,a=e,s=null;const l={};if(t.getSchema()[4].includes(e)){const r=t.getMemberSchema(e);if(r.isStructSchema()){for(const[t,o]of r.structIterator()){const{eventHeader:r,eventPayload:i}=o.getMergedTraits();if(i)s=t;else if(r){const r=n[e][t];let i="binary";o.isNumericSchema()?i=(-2)**31<=r&&r<=2**31-1?"integer":"long":o.isTimestampSchema()?i="timestamp":o.isStringSchema()?i="string":o.isBooleanSchema()&&(i="boolean"),null!=r&&(l[t]={type:i,value:r},delete n[e][t])}}if(null!==s){const t=r.getMemberSchema(s);t.isBlobSchema()?i="application/octet-stream":t.isStringSchema()&&(i="text/plain"),o.write(t,n[e][s])}else o.write(r,n[e])}else{if(!r.isUnitSchema())throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");o.write(r,{})}}else{const[t,r]=n[e];a=t,o.write(15,r)}const c=o.flush()??new Uint8Array;return{body:"string"==typeof c?(this.serdeContext?.utf8Decoder??r.fromUtf8)(c):c,eventType:a,explicitPayloadContentType:i,additionalHeaders:l}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{const r=n(1575),o=n(1576),i=n(1599),a=n(1601);function s(e,t,n,i,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=i=void 0):2!==l||t.getContext||(i=n,n=t,t=void 0),new Promise(function(r,a){try{const a=o.create(n,i);r(e(a,t,i))}catch(e){a(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=t,t=i=void 0):3===l&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0));try{const r=o.create(n,i);a(null,e(r,t,i))}catch(e){a(e)}}t.create=o.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},(e,t,n)=>{const r=n(1577),o=n(1578),i=n(1579),a=n(1580),s=n(1581),l=n(1582),c=n(1583),u=n(1584),d=n(1585),f=n(1588),p=n(1592),h=n(1589),m=n(1593);function g(e,t,n){const r=e.size,o=p.getEncodedBits(t,n);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(r-15+i,8,a,!0),i<8?e.set(8,r-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(r-8,8,1,!0)}function y(e,t,n){const o=new i;
vendor: 7,129 bytes, line 41
41n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)});const a=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(a-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),i=u.getTotalCodewordsCount(t,n),a=o-i,s=u.getBlocksCount(t,n),l=o%s,c=s-l,f=Math.floor(o/s),p=Math.floor(a/s),h=p+1,m=f-p,g=new d(m);let y=0;const v=new Array(s),b=new Array(s);let _=0;const w=new Uint8Array(e.buffer);for(let e=0;e<s;e++){const t=e<c?p:h;v[e]=w.slice(y,y+t),b[e]=g.encode(v[e]),y+=t,_=Math.max(_,t)}const S=new Uint8Array(o);let E,k,T=0;for(E=0;E<_;E++)for(k=0;k<s;k++)E<v[k].length&&(S[T++]=v[k][E]);for(E=0;E<m;E++)for(k=0;k<s;k++)S[T++]=b[k][E];return S}(o,e,t)}function v(e,t,n,o){let i;if(Array.isArray(e))i=m.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=m.rawSplit(e);r=f.getBestVersionForData(t,n)}i=m.fromString(e,r||40)}}const u=f.getBestVersionForData(i,n);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 d=y(t,n,i),p=r.getSymbolSize(t),h=new a(p);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(h),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(h,t),g(h,n,0),t>=7&&function(e,t){const n=e.size,r=f.getEncodedBits(t);let o,i,a;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,a=1==(r>>t&1),e.set(o,i,a,!0),e.set(i,o,a,!0)}(h,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;a<t.length&&(r=1==(t[a]>>>i&1)),e.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(h,d),isNaN(o)&&(o=c.getBestMask(h,g.bind(null,h,n))),c.applyMask(o,h),g(h,n,o),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:o,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,a=o.M;return void 0!==t&&(a=o.from(t.errorCorrectionLevel,o.M),n=f.from(t.version),i=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),v(e,n,a,i)}},(e,t)=>{let n;const r=[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 r[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.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(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,n){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 n}}},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 n=0;n<t;n++)this.putBit(1==(e>>>t-n-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,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},(e,t,n)=>{const r=n(1577).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},(e,t,n)=>{const r=n(1577).getSymbolSize;t.getPositions=function(e){const t=r(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 n=3,r=3,o=40,i=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%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 r=0,o=0,i=0,a=null,s=null;for(let l=0;l<t;l++){o=i=0,a=s=null;for(let c=0;c<t;c++){let t=e.get(l,c);t===a?o++:(o>=5&&(r+=n+(o-5)),a=t,o=1),t=e.get(c,l),t===s?i++:(i>=5&&(r+=n+(i-5)),s=t,i=1)}o>=5&&(r+=n+(o-5)),i>=5&&(r+=n+(i-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,i=0;for(let o=0;o<t;o++){r=i=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(o,a),a>=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(a,o),a>=10&&(1488===i||93===i)&&n++}return n*o},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*i}
vendor: 13,348 bytes, line 41
41,t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)t.isReserved(o,r)||t.xor(o,r,a(e,o,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let a=0;a<r;a++){n(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<i&&(i=r,o=a)}return o}},(e,t,n)=>{const r=n(1578),o=[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],i=[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,192,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 r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},(e,t,n)=>{const r=n(1586);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.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 n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},(e,t,n)=>{const r=n(1587);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)n[o+i]^=r.mul(e[o],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},(e,t,n)=>{const r=n(1577),o=n(1584),i=n(1578),a=n(1589),s=n(1590),l=r.getBCHDigit(7973);function c(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===a.MIXED)return i;const l=i-c(n,e);switch(n){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,n){let r;const o=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},(e,t,n)=>{const r=n(1590),o=n(1591);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(!r.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 o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.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,n){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 n}}},(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},(e,t,n)=>{const r=n(1577),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-o>=0;)i^=1335<<r.getBCHDigit(i)-o;return 21522^(n<<10|i)}},(e,t,n)=>{const r=n(1589),o=n(1594),i=n(1595),a=n(1596),s=n(1597),l=n(1591),c=n(1577),u=n(1598);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function p(e){const t=f(l.NUMERIC,r.NUMERIC,e),n=f(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,i;c.isKanjiModeEnabled()?(o=f(l.BYTE,r.BYTE,e),i=f(l.KANJI,r.KANJI,e)):(o=f(l.BYTE_KANJI,r.BYTE,e),i=[]);return t.concat(n,o,i).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new s(e);case r.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,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),i=function(e,t){const n={},o={start:{}};let i=["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),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<i.length;e++){const a=i[e];n[a]&&n[a].node.mode===c.mode?(o[a][u]=h(n[a].lastCount+c.length,c.mode)-h(n[a].lastCount,c.mode),n[a].lastCount+=c.length):(n[a]&&(n[a].lastCount=c.length),o[a][u]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}i=l}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:n}}(o,n),a=u.find_path(i.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(i.table[a[e]].node);return t.fromArray(function(e){return e.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},(e,t,n)=>{const r=n(1589);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},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,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},(e,t,n)=>{const r=n(1589),o=["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 i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},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;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},(e,t,n)=>{const r=n(1589);function o(e){this.mode=r.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},(e,t,n)=>{const r=n(1589),o=n(1577);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},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;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var a,s,l,c,u,d,f,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],f=i[l],(void 0===i[l]||f>d)&&(i[l]=d,p.push(l,d),o[l]=s));if(void 0!==r&&void 0===i[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},(e,t,n)=>{const r=n(1600);t.render=function(e,t,n){let o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const a=r.getImageWidth(e.modules.size,o),s=i.getContext("2d"),l=s.createImageData(a,a);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,a),s.putImageData(l,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),a=o.type||"image/png",s=o.rendererOpts||{};return i.toDataURL(a,s.quality)}},(e,t)=>{function n(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("");
41if(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 n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,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,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(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,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;if(t>=l&&n>=l&&t<s-l&&n<s-l){d=c[i[Math.floor((t-l)/a)*o+Math.floor((n-l)/a)]?1:0]}e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},(e,t,n)=>{const r=n(1600);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const a=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=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]||(r+=a?i("M",c+n,.5+u+n):i("m",o,0),o=0,a=!1),c+1<t&&e[l+1]||(r+=i("h",s),s=0)):o++}return r}(l,s,a.margin)+'"/>',f='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+f+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,p),p}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,e=>{var t=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=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,d=Math.min,f=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(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(p(e)){var a="function"==typeof e.valueOf?e.valueOf():e;e=p(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(t,"");var s=r.test(e);return s||o.test(e)?i(e.slice(2),s?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||g&&e-c>=i}function _(){var e=f();if(b(e))return w(e);s=setTimeout(_,function(e){var n=t-(e-l);return g?d(n,i-(e-c)):n}(e))}function w(e){return s=void 0,y&&r?v(e):(r=o=void 0,a)}function S(){var e=f(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(_,t),m?v(e):a}(l);if(g)return s=setTimeout(_,t),v(l)}return void 0===s&&(s=setTimeout(_,t)),a}return t=h(t)||0,p(n)&&(m=!!n.leading,i=(g="maxWait"in n)?u(h(n.maxWait)||0,t):i,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?a:w(f())},S}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(1994),o=n(1160),i=n(1161),a=n(1995),s=n(1997),l=n(396),c=n(1159),u=n(1165),d=function(e,t){return e&&t&&t.split(" ").forEach(function(t){return(0,s.default)(e,t)})},f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];
vendor: 9,314 bytes, line 41
41return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}(0,i.default)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&(0,u.forceReflow)(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach(function(t){return(0,a.default)(e,t)})}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&d(e,r),o&&d(e,o),i&&d(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,o.default)(e,["classNames"]));return l.default.createElement(c.default,(0,r.default)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.default.Component);f.defaultProps={classNames:""},f.propTypes={};const p=f},(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(1996);function o(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},(e,t,n)=>{"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function o(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.r(t),n.d(t,{default:()=>o})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});var r=n(1160),o=n(1994),i=n(1999),a=n(1161),s=n(396),l=n(1164),c=n(2e3),u=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind((0,i.default)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}(0,a.default)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,c.getInitialChildMapping)(e,r):(0,c.getNextChildMapping)(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=(0,c.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=(0,o.default)({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,r.default)(e,["component","childFactory"]),i=this.state.contextValue,a=u(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?s.default.createElement(l.default.Provider,{value:i},a):s.default.createElement(l.default.Provider,{value:i},s.default.createElement(t,o,a))},t}(s.default.Component);d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};const f=d},(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getChildMapping:()=>o,getInitialChildMapping:()=>s,getNextChildMapping:()=>l,mergeChildMappings:()=>i});var r=n(396);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}).forEach(function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)}),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}function s(e,t){return o(e.children,function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})})}function l(e,t,n){var s=o(e.children),l=i(t,s);return Object.keys(l).forEach(function(o){var i=l[o];if((0,r.isValidElement)(i)){var c=o in t,u=o in s,d=t[o],f=(0,r.isValidElement)(d)&&!d.props.in;!u||c&&!f?u||!c||f?u&&c&&(0,r.isValidElement)(d)&&(l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:d.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):l[o]=(0,r.cloneElement)(i,{in:!1}):l[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}}),l}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{AbstractSeries:()=>r.default,ArcSeries:()=>o.default,AreaSeries:()=>i.default,AxisUtils:()=>ne.default,Borders:()=>a.default,ChartLabel:()=>s.default,CircularGridLines:()=>l.default,ContentClipPath:()=>ee.default,ContinuousColorLegend:()=>q.default,ContinuousSizeLegend:()=>G.default,ContourSeries:()=>c.default,Crosshair:()=>u.default,CustomSVGSeries:()=>d.default,DecorativeAxis:()=>f.default,DiscreteColorLegend:()=>W.default,FlexibleHeightXYPlot:()=>te.FlexibleHeightXYPlot,FlexibleWidthXYPlot:()=>te.FlexibleWidthXYPlot,FlexibleXYPlot:()=>te.FlexibleXYPlot,GradientDefs:()=>p.default,GridLines:()=>h.default,HeatmapSeries:()=>m.default,HexbinSeries:()=>g.default,Highlight:()=>y.default,Hint:()=>v.default,HorizontalBarSeries:()=>b.default,HorizontalBarSeriesCanvas:()=>_.default,HorizontalGridLines:()=>w.default,HorizontalRectSeries:()=>S.default,HorizontalRectSeriesCanvas:()=>E.default,LabelSeries:()=>k.default,LineMarkSeries:()=>T.default,LineMarkSeriesCanvas:()=>x.default,LineSeries:()=>O.default,LineSeriesCanvas:()=>C.default,MarkSeries:()=>P.default,MarkSeriesCanvas:()=>A.default,ParallelCoordinates:()=>Y.default,PolygonSeries:()=>I.default,RadarChart:()=>K.default,RadialChart:()=>J.default,RectSeries:()=>F.default,RectSeriesCanvas:()=>B.default,Sankey:()=>Q.default,ScaleUtils:()=>re.default,SearchableDiscreteColorLegend:()=>$.default,Sunburst:()=>X.default,Treemap:()=>Z.default,VerticalBarSeries:()=>R.default,VerticalBarSeriesCanvas:()=>j.default,VerticalGridLines:()=>M.default,VerticalRectSeries:()=>D.default,VerticalRectSeriesCanvas:()=>N.default,Voronoi:()=>L.default,WhiskerSeries:()=>z.default,XAxis:()=>H.default,XYPlot:()=>U.default,YAxis:()=>V.default,makeHeightFlexible:()=>te.makeHeightFlexible,makeVisFlexible:()=>te.makeVisFlexible,makeWidthFlexible:()=>te.makeWidthFlexible});var r=n(2057),o=n(2158),i=n(2167),a=n(2224),s=n(2225),l=n(2226),c=n(2228),u=n(2254),d=n(2255),f=n(2256),p=n(2258),h=n(2259),m=n(2260),g=n(2261),y=n(2264),v=n(2265),b=n(2266),_=n(2268),w=n(2270),S=n(2271),E=n(2273),k=n(2275),T=n(2276),x=n(2279),O=n(2277),C=n(2281),P=n(2278),A=n(2280),I=n(2282),R=n(2283),j=n(2284),M=n(2285),D=n(2286),N=n(2287),L=n(2288),F=n(2272),B=n(2274),z=n(2289),U=n(2290),H=n(2352),V=n(2357),q=n(2358),G=n(2359),W=n(2360),$=n(2362),Y=n(2363),K=n(2364),J=n(2365),Q=n(2366),X=n(2382),Z=n(2401),ee=n(2418),te=n(2419),ne=n(2227),re=n(2098)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(787),o=n.n(r),i=n(2058),a=n(396),s=n(2068),l=n(2098);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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
41function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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 n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=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:o().number,height:o().number,data:o().arrayOf(o().oneOfType([o().object,o().array])),onValueMouseOver:o().func,onValueMouseOut:o().func,onValueClick:o().func,onValueRightClick:o().func,onSeriesMouseOver:o().func,onSeriesMouseOut:o().func,onSeriesClick:o().func,onSeriesRightClick:o().func,onNearestX:o().func,onNearestXY:o().func,style:o().object,animation:s.AnimationPropType,stack:o().bool}),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&&d(e,t)}(a,e);var t,n,r,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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(p(e=o.call.apply(o,[this].concat(n))),"_seriesClickHandler",function(t){var n=e.props.onSeriesClick;n&&n({event:t})}),y(p(e),"_seriesMouseOutHandler",function(t){var n=e.props.onSeriesMouseOut;n&&n({event:t})}),y(p(e),"_seriesMouseOverHandler",function(t){var n=e.props.onSeriesMouseOver;n&&n({event:t})}),y(p(e),"_seriesRightClickHandler",function(t){var n=e.props.onSeriesRightClick;n&&n({event:t})}),y(p(e),"_valueClickHandler",function(t,n){var r=e.props,o=r.onValueClick,i=r.onSeriesClick;o&&o(t,{event:n}),i&&i({event:n})}),y(p(e),"_valueMouseOutHandler",function(t,n){var r=e.props,o=r.onValueMouseOut,i=r.onSeriesMouseOut;o&&o(t,{event:n}),i&&i({event:n})}),y(p(e),"_valueMouseOverHandler",function(t,n){var r=e.props,o=r.onValueMouseOver,i=r.onSeriesMouseOver;o&&o(t,{event:n}),i&&i({event:n})}),y(p(e),"_valueRightClickHandler",function(t,n){var r=e.props,o=r.onValueRightClick,i=r.onSeriesRightClick;o&&o(t,{event:n}),i&&i({event:n})}),e}return t=a,r=[{key:"getParentConfig",value:function(){return{}}},{key:"requiresSVG",get:function(){return!0}}],(n=[{key:"onParentMouseMove",value:function(e){var t=this.props,n=t.onNearestX,r=t.onNearestXY,o=t.data;(n||r)&&o&&(r?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,n=t.marginTop,r=void 0===n?0:n,o=t.marginLeft,i=void 0===o?0:o,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-i,y:u-l.top-s.clientTop-r}}},{key:"_handleNearestX",value:function(e){var t=this.props,n=t.onNearestX,r=t.data,o=Number.POSITIVE_INFINITY,i=null,a=null,s=this._getXYCoordinateInContainer(e),l=this._getAttributeFunctor("x");r.forEach(function(e,t){var n=l(e),r=Math.abs(s.x-n);r<o&&(o=r,i=e,a=t)}),i&&n(i,{innerX:l(i),index:a,event:e.nativeEvent})}},{key:"_handleNearestXY",value:function(e){var t=this.props,n=t.onNearestXY,r=t.data,o=this._getXYCoordinateInContainer(e),a=this._getAttributeFunctor("x"),s=this._getAttributeFunctor("y"),l=(0,i.voronoi)().x(a).y(s)(r).find(o.x,o.y),c=l.data;c&&n(c,{innerX:l[0],innerY:l[1],index:l.index,event:e.nativeEvent})}}])&&u(t.prototype,n),r&&u(t,r),a}
41(a.PureComponent);b.displayName="AbstractSeries",b.propTypes=v,b.defaultProps={className:"",stack:!1,style:{}};const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{voronoi:()=>r.default});var r=n(2059)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);var r=n(2060),o=n(2061),i=n(2062);function a(){var e=o.x,t=o.y,n=null;function a(r){return new i.default(r.map(function(n,o){var a=[Math.round(e(n,o,r)/i.epsilon)*i.epsilon,Math.round(t(n,o,r)/i.epsilon)*i.epsilon];return a.index=o,a.data=n,a}),n)}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,r.default)(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),a):t},a.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],a):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},a.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],a):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},a}},(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return e[0]}function o(e){return e[1]}n.r(t),n.d(t,{x:()=>r,y:()=>o})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{beaches:()=>r,cells:()=>o,circles:()=>i,default:()=>g,edges:()=>a,epsilon:()=>f,epsilon2:()=>p});var r,o,i,a,s=n(2063),l=n(2065),c=n(2067),u=n(2066),d=n(2064),f=1e-6,p=1e-12;function h(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function m(e,t){return t[1]-e[1]||t[0]-e[0]}function g(e,t){var n,f,p,h=e.sort(m).pop();for(a=[],o=new Array(e.length),r=new d.default,i=new d.default;;)if(p=c.firstCircle,h&&(!p||h[1]<p.y||h[1]===p.y&&h[0]<p.x))h[0]===n&&h[1]===f||((0,s.addBeach)(h),n=h[0],f=h[1]),h=e.pop();else{if(!p)break;(0,s.removeBeach)(p.arc)}if((0,l.sortCellHalfedges)(),t){var g=+t[0][0],y=+t[0][1],v=+t[1][0],b=+t[1][1];(0,u.clipEdges)(g,y,v,b),(0,l.clipCells)(g,y,v,b)}this.edges=a,this.cells=o,r=i=a=o=null}g.prototype={constructor:g,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return(0,l.cellHalfedgeStart)(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(i=(o=n.halfedges).length)for(var o,i,a,s=n.site,l=-1,c=t[o[i-1]],u=c.left===s?c.right:c.left;++l<i;)a=u,u=(c=t[o[l]]).left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&h(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,n){for(var r,o,i=this,a=i._found||0,s=i.cells.length;!(o=i.cells[a]);)if(++a>=s)return null;var l=e-o.site[0],c=t-o.site[1],u=l*l+c*c;
41do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var l=e-s[0],c=t-s[1],d=l*l+c*c;d<u&&(u=d,a=s.index)}})}while(null!==a);return i._found=r,null==n||u<=n*n?o.site:null}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addBeach:()=>p,removeBeach:()=>f});var r=n(2064),o=n(2065),i=n(2067),a=n(2066),s=n(2062),l=[];function c(){(0,r.RedBlackNode)(this),this.edge=this.site=this.circle=null}function u(e){var t=l.pop()||new c;return t.site=e,t}function d(e){(0,i.detachCircle)(e),s.beaches.remove(e),l.push(e),(0,r.RedBlackNode)(e)}function f(e){var t=e.circle,n=t.x,r=t.cy,o=[n,r],l=e.P,c=e.N,u=[e];d(e);for(var f=l;f.circle&&Math.abs(n-f.circle.x)<s.epsilon&&Math.abs(r-f.circle.cy)<s.epsilon;)l=f.P,u.unshift(f),d(f),f=l;u.unshift(f),(0,i.detachCircle)(f);for(var p=c;p.circle&&Math.abs(n-p.circle.x)<s.epsilon&&Math.abs(r-p.circle.cy)<s.epsilon;)c=p.N,u.push(p),d(p),p=c;u.push(p),(0,i.detachCircle)(p);var h,m=u.length;for(h=1;h<m;++h)p=u[h],f=u[h-1],(0,a.setEdgeEnd)(p.edge,f.site,p.site,o);f=u[0],(p=u[m-1]).edge=(0,a.createEdge)(f.site,p.site,null,o),(0,i.attachCircle)(f),(0,i.attachCircle)(p)}function p(e){for(var t,n,r,l,c=e[0],d=e[1],f=s.beaches._;f;)if((r=h(f,d)-c)>s.epsilon)f=f.L;else{if(!((l=c-m(f,d))>s.epsilon)){r>-s.epsilon?(t=f.P,n=f):l>-s.epsilon?(t=f,n=f.N):t=n=f;break}if(!f.R){t=f;break}f=f.R}(0,o.createCell)(e);var p=u(e);if(s.beaches.insert(t,p),t||n){if(t===n)return(0,i.detachCircle)(t),n=u(t.site),s.beaches.insert(p,n),p.edge=n.edge=(0,a.createEdge)(t.site,p.site),(0,i.attachCircle)(t),void(0,i.attachCircle)(n);if(n){(0,i.detachCircle)(t),(0,i.detachCircle)(n);var g=t.site,y=g[0],v=g[1],b=e[0]-y,_=e[1]-v,w=n.site,S=w[0]-y,E=w[1]-v,k=2*(b*E-_*S),T=b*b+_*_,x=S*S+E*E,O=[(E*T-_*x)/k+y,(b*x-S*T)/k+v];(0,a.setEdgeEnd)(n.edge,g,w,O),p.edge=(0,a.createEdge)(g,e,null,O),n.edge=(0,a.createEdge)(e,w,null,O),(0,i.attachCircle)(t),(0,i.attachCircle)(n)}else p.edge=(0,a.createEdge)(t.site,p.site)}}function h(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],c=l-t;if(!c)return s;var u=s-r,d=1/i-1/c,f=u/c;return d?(-f+Math.sqrt(f*f-2*d*(u*u/(-2*c)-l+c/2+o-i/2)))/d+r:(r+s)/2}function m(e,t){var n=e.N;if(n)return h(n,t);var r=e.site;return r[1]===t?r[0]:1/0}},(e,t,n)=>{"use strict";function r(){this._=null}function o(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function i(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function a(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function s(e){for(;e.L;)e=e.L;return e}n.r(t),n.d(t,{RedBlackNode:()=>o,default:()=>l}),r.prototype={constructor:r,insert:function(e,t){var n,r,o;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;n=e}else this._?(e=s(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(i(this,n),n=(e=n).U),n.C=!1,r.C=!0,a(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(a(this,n),n=(e=n).U),n.C=!1,r.C=!0,i(this,r)),n=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,n,r,o=e.U,l=e.L,c=e.R;if(n=l?c?s(c):l:c,o?o.L===e?o.L=n:o.R=n:this._=n,l&&c?(r=n.C,n.C=e.C,n.L=l,l.U=n,n!==c?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=c,c.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===o.L){if((t=o.R).C&&(t.C=!1,o.C=!0,i(this,o),t=o.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=o.R),t.C=o.C,o.C=t.R.C=!1,i(this,o),e=this._;break}}else if((t=o.L).C&&(t.C=!1,o.C=!0,a(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,i(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,a(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}};const l=r},(e,t,n)=>{"use strict";n.r(t),n.d(t,{cellHalfedgeEnd:()=>l,cellHalfedgeStart:()=>s,clipCells:()=>u,createCell:()=>i,sortCellHalfedges:()=>c});var r=n(2066),o=n(2062);function i(e){return o.cells[e.index]={site:e,halfedges:[]}}function a(e,t){var n=e.site,r=t.left,o=t.right;return n===o&&(o=r,r=n),o?Math.atan2(o[1]-r[1],o[0]-r[0]):(n===r?(r=t[1],o=t[0]):(r=t[0],o=t[1]),Math.atan2(r[0]-o[0],o[1]-r[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,n,r,i=0,s=o.cells.length;i<s;++i)if((e=o.cells[i])&&(r=(t=e.halfedges).length)){var l=new Array(r),c=new Array(r);for(n=0;n<r;++n)l[n]=n,c[n]=a(e,o.edges[t[n]]);for(l.sort(function(e,t){return c[t]-c[e]}),n=0;n<r;++n)c[n]=t[l[n]];for(n=0;n<r;++n)t[n]=c[n]}}function u(e,t,n,i){var a,c,u,d,f,p,h,m,g,y,v,b,_=o.cells.length,w=!0;for(a=0;a<_;++a)if(c=o.cells[a]){for(u=c.site,d=(f=c.halfedges).length;d--;)o.edges[f[d]]||f.splice(d,1);for(d=0,p=f.length;d<p;)v=(y=l(c,o.edges[f[d]]))[0],b=y[1],m=(h=s(c,o.edges[f[++d%p]]))[0],g=h[1],(Math.abs(v-m)>o.epsilon||Math.abs(b-g)>o.epsilon)&&(f.splice(d,0,o.edges.push((0,r.createBorderEdge)(u,y,Math.abs(v-e)<o.epsilon&&i-b>o.epsilon?[e,Math.abs(m-e)<o.epsilon?g:i]:Math.abs(b-i)<o.epsilon&&n-v>o.epsilon?[Math.abs(g-i)<o.epsilon?m:n,i]:Math.abs(v-n)<o.epsilon&&b
41-t>o.epsilon?[n,Math.abs(m-n)<o.epsilon?g:t]:Math.abs(b-t)<o.epsilon&&v-e>o.epsilon?[Math.abs(g-t)<o.epsilon?m:e,t]:null))-1),++p);p&&(w=!1)}if(w){var S,E,k,T=1/0;for(a=0,w=null;a<_;++a)(c=o.cells[a])&&(k=(S=(u=c.site)[0]-e)*S+(E=u[1]-t)*E)<T&&(T=k,w=c);if(w){var x=[e,t],O=[e,i],C=[n,i],P=[n,t];w.halfedges.push(o.edges.push((0,r.createBorderEdge)(u=w.site,x,O))-1,o.edges.push((0,r.createBorderEdge)(u,O,C))-1,o.edges.push((0,r.createBorderEdge)(u,C,P))-1,o.edges.push((0,r.createBorderEdge)(u,P,x))-1)}}for(a=0;a<_;++a)(c=o.cells[a])&&(c.halfedges.length||delete o.cells[a])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{clipEdges:()=>c,createBorderEdge:()=>i,createEdge:()=>o,setEdgeEnd:()=>a});var r=n(2062);function o(e,t,n,o){var i=[null,null],s=r.edges.push(i)-1;return i.left=e,i.right=t,n&&a(i,e,t,n),o&&a(i,t,e,o),r.cells[e.index].halfedges.push(s),r.cells[t.index].halfedges.push(s),i}function i(e,t,n){var r=[t,n];return r.left=e,r}function a(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function s(e,t,n,r,o){var i,a=e[0],s=e[1],l=a[0],c=a[1],u=0,d=1,f=s[0]-l,p=s[1]-c;if(i=t-l,f||!(i>0)){if(i/=f,f<0){if(i<u)return;i<d&&(d=i)}else if(f>0){if(i>d)return;i>u&&(u=i)}
vendor: 4,209 bytes, line 41
41if(i=r-l,f||!(i<0)){if(i/=f,f<0){if(i>d)return;i>u&&(u=i)}else if(f>0){if(i<u)return;i<d&&(d=i)}if(i=n-c,p||!(i>0)){if(i/=p,p<0){if(i<u)return;i<d&&(d=i)}else if(p>0){if(i>d)return;i>u&&(u=i)}if(i=o-c,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>u&&(u=i)}else if(p>0){if(i<u)return;i<d&&(d=i)}return!(u>0||d<1)||(u>0&&(e[0]=[l+u*f,c+u*p]),d<1&&(e[1]=[l+d*f,c+d*p]),!0)}}}}}function l(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,l=e[0],c=e.left,u=e.right,d=c[0],f=c[1],p=u[0],h=u[1],m=(d+p)/2,g=(f+h)/2;if(h===f){if(m<t||m>=r)return;if(d>p){if(l){if(l[1]>=o)return}else l=[m,n];i=[m,o]}else{if(l){if(l[1]<n)return}else l=[m,o];i=[m,n]}}else if(s=g-(a=(d-p)/(h-f))*m,a<-1||a>1)if(d>p){if(l){if(l[1]>=o)return}else l=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(l){if(l[1]<n)return}else l=[(o-s)/a,o];i=[(n-s)/a,n]}else if(f<h){if(l){if(l[0]>=r)return}else l=[t,a*t+s];i=[r,a*r+s]}else{if(l){if(l[0]<t)return}else l=[r,a*r+s];i=[t,a*t+s]}return e[0]=l,e[1]=i,!0}function c(e,t,n,o){for(var i,a=r.edges.length;a--;)l(i=r.edges[a],e,t,n,o)&&s(i,e,t,n,o)&&(Math.abs(i[0][0]-i[1][0])>r.epsilon||Math.abs(i[0][1]-i[1][1])>r.epsilon)||delete r.edges[a]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{attachCircle:()=>l,detachCircle:()=>c,firstCircle:()=>r});var r,o=n(2064),i=n(2062),a=[];function s(){(0,o.RedBlackNode)(this),this.x=this.y=this.arc=this.site=this.cy=null}function l(e){var t=e.P,n=e.N;if(t&&n){var o=t.site,l=e.site,c=n.site;if(o!==c){var u=l[0],d=l[1],f=o[0]-u,p=o[1]-d,h=c[0]-u,m=c[1]-d,g=2*(f*m-p*h);if(!(g>=-i.epsilon2)){var y=f*f+p*p,v=h*h+m*m,b=(m*y-p*v)/g,_=(f*v-h*y)/g,w=a.pop()||new s;w.arc=e,w.site=l,w.x=b+u,w.y=(w.cy=_+d)+Math.sqrt(b*b+_*_),e.circle=w;for(var S=null,E=i.circles._;E;)if(w.y<E.y||w.y===E.y&&w.x<=E.x){if(!E.L){S=E.P;break}E=E.L}else{if(!E.R){S=E;break}E=E.R}i.circles.insert(S,w),S||(r=w)}}}}function c(e){var t=e.circle;t&&(t.P||(r=t.N),i.circles.remove(t),a.push(t),(0,o.RedBlackNode)(t),e.circle=null)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnimationPropType:()=>k,default:()=>E,extractAnimatedPropValues:()=>w});var r=n(396),o=n(787),i=n.n(o),a=n(2069),s=n(2083);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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 n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return p(e)}(this,n)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=i().oneOfType([i().string,i().shape({stiffness:i().number,nonAnimatedProps:i().arrayOf(i().string),damping:i().number}),i().bool]),_={animatedProps:i().arrayOf(i().string).isRequired,animation:b,onStart:i().func,onEnd:i().func};function w(e){var t=e.animatedProps,n=m(e,["animatedProps"]);return t.reduce(function(e,t){return Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]),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&&d(e,t)}(l,e);var t,n,o,i=f(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),v(p(t=i.call(this,e)),"_motionEndHandler",function(){t.props.onEnd&&t.props.onEnd()}),v(p(t),"_renderChildren",function(e){var n=e.i,o=t.props.children,i=t._interpolator,a=r.default.Children.only(o),s=i?i(n):i,l=s&&s.data||null;return l&&a.props._data&&(l=l.map(function(e,t){var n=a.props._data[t];return y(y({},e),{},{parent:n.parent,children:n.children})})),r.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,n=[{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)(w(e),t?w(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,n=e.stiffness;return y(y({},e),{},{damping:t||s.presets.noWobble.damping,stiffness:n||s.presets.noWobble.stiffness})}(this.props.animation),t={i:(0,s.spring)(1,e)},n=Math.random();return r.default.createElement(s.Motion,c({defaultStyle:{i:0},style:t,key:n},{onRest:this._motionEndHandler}),this._renderChildren)}}],n&&u(t.prototype,n),o&&u(t,o),l}(r.PureComponent);S.propTypes=_,S.displayName="Animation";const E=S;var k=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f}),n.dn(f);var r=n(2070),o=n(2072),i=n(2077),a=n(2079),s=n(2080),l=n(2081),c=n(2082),u=n(2076),d=n(2078);function f(e,t){var n,f=typeof t;return null==t||"boolean"===f?(0,u.default)(t):("number"===f?s.default:"string"===f?(n=(0,r.default)(t))?(t=n,o.default):c.default:t instanceof r.default?o.default:t instanceof Date?a.default:(0,d.isNumberArray)(t)?d.default:Array.isArray(t)?i.genericArray:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?l.default:s.default)(e,t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Color:()=>o,Rgb:()=>T,brighter:()=>a,darker:()=>i,default:()=>_,hsl:()=>j,hslConvert:()=>R,rgb:()=>k,rgbConvert:()=>E});var r=n(2071);function o(){}var i=.7,a=1/i,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,d=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),p=new RegExp(`^rgba\\(${s},${s},${s},${l}\\)$`),h=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 v(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?
vendor: 7,720 bytes, line 41
41new T(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?S(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?S(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=d.exec(e))?new T(t[1],t[2],t[3],1):(t=f.exec(e))?new T(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?S(t[1],t[2],t[3],t[4]):(t=h.exec(e))?S(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=m.exec(e))?I(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?I(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?w(y[e]):"transparent"===e?new T(NaN,NaN,NaN,0):null}function w(e){return new T(e>>16&255,e>>8&255,255&e,1)}function S(e,t,n,r){return r<=0&&(e=t=n=NaN),new T(e,t,n,r)}function E(e){return e instanceof o||(e=_(e)),e?new T((e=e.rgb()).r,e.g,e.b,e.opacity):new T}function k(e,t,n,r){return 1===arguments.length?E(e):new T(e,t,n,r??1)}function T(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function x(){return`#${A(this.r)}${A(this.g)}${A(this.b)}`}function O(){const e=C(this.opacity);return`${1===e?"rgb(":"rgba("}${P(this.r)}, ${P(this.g)}, ${P(this.b)}${1===e?")":`, ${e})`}`}function C(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function P(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function A(e){return((e=P(e))<16?"0":"")+e.toString(16)}function I(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,n,r)}function R(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=_(e)),!e)return new M;if(e instanceof M)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=NaN,l=a-i,c=(a+i)/2;return l?(s=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=c<.5?a+i:2-a-i,s*=60):l=c>0&&c<1?0:s,new M(s,l,c,e.opacity)}function j(e,t,n,r){return 1===arguments.length?R(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D(e){return(e=(e||0)%360)<0?e+360:e}function N(e){return Math.max(0,Math.min(1,e||0))}function L(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}(0,r.default)(o,_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:b,toString:b}),(0,r.default)(T,k,(0,r.extend)(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new T(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?i:Math.pow(i,e),new T(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new T(P(this.r),P(this.g),P(this.b),C(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:x,formatHex:x,formatHex8:function(){return`#${A(this.r)}${A(this.g)}${A(this.b)}${A(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:O,toString:O})),(0,r.default)(M,j,(0,r.extend)(o,{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?i:Math.pow(i,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,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new T(L(e>=240?e-240:e+120,o,r),L(e,o,r),L(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new M(D(this.h),N(this.s),N(this.l),C(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=C(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*N(this.s)}%, ${100*N(this.l)}%${1===e?")":`, ${e})`}`}}))},(e,t,n)=>{"use strict";function r(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.r(t),n.d(t,{default:()=>r,extend:()=>o}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,rgbBasis:()=>c,rgbBasisClosed:()=>u});var r=n(2070),o=n(2073),i=n(2074),a=n(2075);const s=function e(t){var n=(0,a.gamma)(t);function o(e,t){var o=n((e=(0,r.rgb)(e)).r,(t=(0,r.rgb)(t)).r),i=n(e.g,t.g),s=n(e.b,t.b),l=(0,a.default)(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=i(t),e.b=s(t),e.opacity=l(t),e+""}}return o.gamma=e,o}(1);function l(e){return function(t){var n,o,i=t.length,a=new Array(i),s=new Array(i),l=new Array(i);for(n=0;n<i;++n)o=(0,r.rgb)(t[n]),a[n]=o.r||0,s[n]=o.g||0,l[n]=o.b||0;return a=e(a),s=e(s),l=e(l),o.opacity=1,function(e){return o.r=a(e),o.g=s(e),o.b=l(e),o+""}}}var c=l(o.default),u=l(i.default)},(e,t,n)=>{"use strict";function r(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function o(e){var t=e.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[o],a=e[o+1],s=o>0?e[o-1]:2*i-a,l=o<t-1?e[o+2]:2*a-i;return r((n-o/t)*t,s,i,a,l)}}n.r(t),n.d(t,{basis:()=>r,default:()=>o}),n.dn(o)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2073);function o(e){var t=e.length;return function(n){var o=Math.floor(((n%=1)<0?++n:n)*t),i=e[(o+t-1)%t],a=e[o%t],s=e[(o+1)%t],l=e[(o+2)%t];return(0,r.basis)((n-o/t)*t,i,a,s,l)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,gamma:()=>a,hue:()=>i});var r=n(2076);function o(e,t){return function(n){return e+n*t}}function i(e,t){var n=t-e;return n?o(e,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.default)(isNaN(e)?t:e)}function a(e){return 1===(e=+e)?s:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):(0,r.default)(isNaN(t)?n:t)}}function s(e,t){var n=t-e;return n?o(e,n):(0,r.default)(isNaN(e)?t:e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=e=>()=>e;n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,genericArray:()=>a}),n.dn(i);var r=n(2069),o=n(2078);function i(e,t){return((0,o.isNumberArray)(t)?o.default:a)(e,t)}function a(e,t){var n,o=t?t.length:0,i=e?Math.min(o,e.length):0,a=new Array(i),s=new Array(o);for(n=0;n<i;++n)a[n]=(0,r.default)(e[n],t[n]);for(;n<o;++n)s[n]=t[n];return function(e){for(n=0;n<i;++n)s[n]=a[n](e);return s}}},(e,t,n)=>{"use strict";function r(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function o(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}n.r(t),n.d(t,{default:()=>r,isNumberArray:()=>o}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2069);function o(e,t){var n,o={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?o[n]=(0,r.default)(e[n],t[n]):i[n]=t[n];return function(e){for(n in o)i[n]=o[n](e);return i}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);var r=n(2080),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=new RegExp(o.source,"g");function a(e,t){var n,a,s,l=o.lastIndex=i.lastIndex=0,c=-1,u=[],d=[];for(e+="",t+="";(n=o.exec(e))&&(a=i.exec(t));)(s=a.index)>l&&(s=t.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(n=n[0])===(a=a[0])?u[c]?u[c]+=a:u[++c]=a:(u[++c]=null,d.push({i:c,x:(0,r.default)(n,a)})),l=i.lastIndex;return l<t.length&&(s=t.slice(l),u[c]?u[c]+=s:u[++c]=s),u.length<2?d[0]?function(e){return function(t){return e(t)+""}}(d[0].x):function(e){return function(){return e}}(t):(t=d.length,function(e){for(var n,r=0;r<t;++r)u[(n=d[r]).i]=n.x(e);return u.join("")})}},(e,t,n)=>{"use strict";
vendor: 20,285 bytes, line 41
41function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var o=n(2084);t.Motion=r(o);var i=n(2092);t.StaggeredMotion=r(i);var a=n(2093);t.TransitionMotion=r(a);var s=n(2095);t.spring=r(s);var l=n(2096);t.presets=r(l);var c=n(2086);t.stripStyle=r(c);var u=n(2097);t.reorderKeys=r(u)},(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(2085)),s=i(n(2086)),l=i(n(2087)),c=i(n(2088)),u=i(n(2089)),d=i(n(2091)),f=i(n(396)),p=i(n(787)),h=1e3/60,m=function(e){function t(n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,n=o.state,i=n.currentStyle,a=n.currentVelocity,s=n.lastIdealStyle,l=n.lastIdealVelocity;for(var c in e)if(Object.prototype.hasOwnProperty.call(e,c)){var u=e[c];"number"==typeof u&&(t||(t=!0,i=r({},i),a=r({},a),s=r({},s),l=r({},l)),i[c]=u,a[c]=0,s[c]=u,l[c]=0)}t&&o.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:l})},this.startAnimationIfNecessary=function(){o.animationID=u.default(function(e){var t=o.props.style;if(d.default(o.state.currentStyle,t,o.state.currentVelocity))return o.wasAnimating&&o.props.onRest&&o.props.onRest(),o.animationID=null,o.wasAnimating=!1,void(o.accumulatedTime=0);o.wasAnimating=!0;var n=e||c.default(),r=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+r,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),s={},u={},f={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)f[m]=g,p[m]=0,s[m]=g,u[m]=0;else{for(var y=o.state.lastIdealStyle[m],v=o.state.lastIdealVelocity[m],b=0;b<a;b++){var _=l.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision);y=_[0],v=_[1]}var w=l.default(h/1e3,y,v,g.val,g.stiffness,g.damping,g.precision),S=w[0],E=w[1];f[m]=y+(S-y)*i,p[m]=v+(E-v)*i,s[m]=y,u[m]=v}}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyle:f,currentVelocity:p,lastIdealStyle:s,lastIdealVelocity:u}),o.unreadPropStyle=null,o.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),o(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,r=t||s.default(n),o=a.default(r);return{currentStyle:r,currentVelocity:o,lastIdealStyle:r,lastIdealVelocity:o}},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&&f.default.Children.only(e)},t}(f.default.Component);t.default=m,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,r,o,i,a,s){var l=r+(-i*(t-o)+-a*r)*e,c=t+l*e;if(Math.abs(l)<s&&Math.abs(c-o)<s)return n[0]=o,n[1]=0,n;return n[0]=c,n[1]=l,n};var n=[0,0];e.exports=t.default},function(e){(function(){var t,n,r;"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()-r)/1e6},n=process.hrtime,r=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},(e,t,n)=>{for(var r=n(2090),o="undefined"==typeof window?globalThis:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],l=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,f=[],p=1e3/60;s=function(e){if(0===f.length){var t=r(),n=Math.max(0,p-(t-u));u=n+t,setTimeout(function(){var e=f.slice(0);f.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(n))}return f.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<f.length;t++)f[t].handle===e&&(f[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}},function(e){(function(){var t,n,r,o,i,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()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(0!==n[r])return!1;var o="number"==typeof t[r]?t[r]:t[r].val;if(e[r]!==o)return!1}return!0},e.exports=t.default},(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(2085)),s=i(n(2086)),l=i(n(2087)),c=i(n(2088)),u=i(n(2089)),d=i(n(2091)),f=i(n(396)),p=i(n(787)),h=1e3/60;var m=function(e){function t(n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=o.state,n=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,l=!1,c=0;c<e.length;c++){var u=e[c],d=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(d||(d=!0,l=!0,n[c]=r({},n[c]),i[c]=r({},i[c]),a[c]=r({},a[c]),s[c]=r({},s[c])),n[c][f]=p,i[c][f]=0,a[c][f]=p,s[c][f]=0)}}l&&o.setState({currentStyles:n,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){o.animationID=u.default(function(e){var t=o.props.styles(o.state.lastIdealStyles);if(function(e,t,n){for(var r=0;r<e.length;r++)if(!d.default(e[r],t[r],n[r]))return!1;return!0}(o.state.currentStyles,t,o.state.currentVelocities))return o.animationID=null,void(o.accumulatedTime=0);var n=e||c.default(),r=n-o.prevTime;if(o.prevTime=n,o.accumulatedTime=o.accumulatedTime+r,o.accumulatedTime>10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),s=[],u=[],f=[],p=[],m=0;m<t.length;m++){var g=t[m],y={},v={},b={},_={};for(var w in g)if(Object.prototype.hasOwnProperty.call(g,w)){var S=g[w];if("number"==typeof S)y[w]=S,v[w]=0,b[w]=S,_[w]=0;else{for(var E=o.state.lastIdealStyles[m][w],k=o.state.lastIdealVelocities[m][w],T=0;T<a;T++){var x=l.default(h/1e3,E,k,S.val,S.stiffness,S.damping,S.precision);E=x[0],k=x[1]}var O=l.default(h/1e3,E,k,S.val,S.stiffness,S.damping,S.precision),C=O[0],P=O[1];y[w]=E+(C-E)*i,v[w]=k+(P-k)*i,b[w]=E,_[w]=k}}f[m]=y,p[m]=v,s[m]=b,u[m]=_}o.animationID=null,o.accumulatedTime-=a*h,o.setState({currentStyles:f,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:u}),o.unreadPropStyles=null,o.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),o(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,r=t||n().map(s.default),o=r.map(function(e){return a.default(e)});return{currentStyles:r,currentVelocities:o,lastIdealStyles:r,lastIdealVelocities:o}},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&&f.default.Children.only(e)},t}(f.default.Component);t.default=m,e.exports=t.default},(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(2085)),s=i(n(2086)),l=i(n(2087)),c=i(n(2094)),u=i(n(2088)),d=i(n(2089)),f=i(n(2091)),p=i(n(396)),h=i(n(787)),m=1e3/60;function g(e,t,n){var r=t;return null==r?e.map(function(e,t){return{key:e.key,data:e.data,style:n[t]}}):e.map(function(e,t){for(var o=0;o<r.length;o++)if(r[o].key===e.key)return{key:r[o].key,data:r[o].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}})}function y(e,t,n,r,o,i,s,l,u){for(var d=c.default(r,o,function(e,r){var o=t(r);return null==o||f.default(i[e],o,s[e])?(n({key:r.key,data:r.data}),null):{key:r.key,data:r.data,style:o}}),p=[],h=[],m=[],g=[],y=0;y<d.length;y++){for(var v=d[y],b=null,_=0;_<r.length;_++)if(r[_].key===v.key){b=_;break}if(null==b){var w=e(v);p[y]=w,m[y]=w;var S=a.default(v.style);h[y]=S,g[y]=S}else p[y]=i[b],m[y]=l[b],h[y]=s[b],g[y]=u[b]}return[d,p,h,m,g]}var v=function(e){function t(n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=y(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,e,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),n=t[0],i=t[1],a=t[2],s=t[3],l=t[4],c=0;c<e.length;c++){var u=e[c].style,d=!1;for(var f in u)if(Object.prototype.hasOwnProperty.call(u,f)){var p=u[f];"number"==typeof p&&(d||(d=!0,i[c]=r({},i[c]),a[c]=r({},a[c]),s[c]=r({},s[c]),l[c]=r({},l[c]),n[c]={key:n[c].key,data:n[c].data,style:r({},n[c].style)}),i[c][f]=p,a[c][f]=0,s[c][f]=p,l[c][f]=0,n[c].style[f]=p)}}o.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:n,lastIdealStyles:s,lastIdealVelocities:l})},this.startAnimationIfNecessary=function(){o.unmounting||(o.animationID=d.default(function(e){if(!o.unmounting){var t=o.props.styles,n="function"==typeof t?t(g(o.state.mergedPropsStyles,o.unreadPropStyles,o.state.lastIdealStyles)):t;if(function(e,t,n,r){if(r.length!==t.length)return!1;for(var o=0;o<r.length;o++)if(r[o].key!==t[o].key)return!1;for(o=0;o<r.length;o++)if(!f.default(e[o],t[o].style,n[o]))return!1;return!0}(o.state.currentStyles,n,o.state.currentVelocities,o.state.mergedPropsStyles))return o.animationID=null,void(o.accumulatedTime=0);var r=e||u.default(),i=r-o.prevTime;if(o.prevTime=r,o.accumulatedTime=o.accumulatedTime+i,o.accumulatedTime>10*m&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/m)*m)/m,s=Math.floor(o.accumulatedTime/m),c=y(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,n,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),d=c[0],p=c[1],h=c[2],v=c[3],b=c[4],_=0;_<d.length;_++){var w=d[_].style,S={},E={},k={},T={};for(var x in w)if(Object.prototype.hasOwnProperty.call(w,x)){var O=w[x];if("number"==typeof O)S[x]=O,E[x]=0,k[x]=O,T[x]=0;else{for(var C=v[_][x],P=b[_][x],A=0;A<s;A++){var I=l.default(m/1e3,C,P,O.val,O.stiffness,O.damping,O.precision);C=I[0],P=I[1]}var R=l.default(m/1e3,C,P,O.val,O.stiffness,O.damping,O.precision),j=R[0],M=R[1];S[x]=C+(j-C)*a,E[x]=P+(M-P)*a,k[x]=C,T[x]=P}}v[_]=k,b[_]=T,p[_]=S,h[_]=E}o.animationID=null,o.accumulatedTime-=s*m,o.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:v,lastIdealVelocities:b,mergedPropsStyles:d}),o.unreadPropStyles=null,o.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),o(t,null,[{key:"propTypes",value:{defaultStyles:h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.number).isRequired})),styles:h.default.oneOfType([h.default.func,h.default.arrayOf(h.default.shape({key:h.default.string.isRequired,data:h.default.any,style:h.default.objectOf(h.default.oneOfType([h.default.number,h.default.object])).isRequired}))]).isRequired,children:h.default.func.isRequired,willEnter:h.default.func,willLeave:h.default.func,didLeave:h.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,n=e.styles,r=e.willEnter,o=e.willLeave,i=e.didLeave,l="function"==typeof n?n(t):n,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)}),d=null==t?l.map(function(e){return a.default(e.style)}):t.map(function(e){return a.default(e.style)}),f=y(r,o,i,c,l,u,d,u,d),p=f[0];return{currentStyles:f[1],currentVelocities:f[2],lastIdealStyles:f[3],lastIdealVelocities:f[4],mergedPropsStyles:p}},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&&(d.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&&p.default.Children.only(t)},t}(p.default.Component);t.default=v,e.exports=t.default},(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var r={},o=0;o<e.length;o++)r[e[o].key]=o;var i={};for(o=0;o<t.length;o++)i[t[o].key]=o;var a=[];for(o=0;o<t.length;o++)a[o]=t[o];for(o=0;o<e.length;o++)if(!Object.prototype.hasOwnProperty.call(i,e[o].key)){var s=n(o,e[o]);null!=s&&a.push(s)}return a.sort(function(e,n){var o=i[e.key],a=i[n.key],s=r[e.key],l=r[n.key];if(null!=o&&null!=a)return i[e.key]-i[n.key];if(null!=s&&null!=l)return r[e.key]-r[n.key];if(null!=o){for(var c=0;c<t.length;c++){var u=t[c].key;if(Object.prototype.hasOwnProperty.call(r,u)){if(o<i[u]&&l>r[u])return-1;if(o>i[u]&&l<r[u])return 1}}return 1}for(c=0;c<t.length;c++){u=t[c].key;if(Object.prototype.hasOwnProperty.call(r,u)){if(a<i[u]&&s>r[u])return 1;if(a>i[u]&&s<r[u])return-1}}return-1})},e.exports=t.default},(e,t,n)=>{"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t){return r({},s,t,{val:e})};var o,i=n(2096),a=(o=i)&&o.__esModule?o:{default:o},s=r({},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,n)=>{"use strict";n.r(t),n.d(t,{_adjustCategoricalScale:()=>F,_getScaleDistanceAndAdjustedDomain:()=>L,_getSmallestDistanceIndex:()=>j,default:()=>ee,extractScalePropsFromProps:()=>$,getAttr0Functor:()=>q,getAttributeFunctor:()=>V,getAttributeScale:()=>z,getAttributeValue:()=>G,getDomainByAccessor:()=>D,getFontColorFromBackground:()=>J,getMissingScaleProps:()=>Y,getOptionalScaleProps:()=>Z,getScaleFnFromScaleObject:()=>M,getScaleObjectFromProps:()=>B,getScalePropTypesByAttribute:()=>W,getXYPlotValues:()=>Q,literalScale:()=>K});var r,o=n(2099),i=n(2104),a=n(2131),s=n(2102),l=n(2133),c=n(2147),u=n(2148),d=n(2149),f=n(2070),p=n(787),h=n.n(p),m=n(2156),g=n(2157);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){E(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||w(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 n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||w(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 w(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k="linear",T="ordinal",x="category",O="literal",C="log",P="time",A=(E(r={},k,i.default),E(r,T,o.point),E(r,x,s.default),E(r,O,K),E(r,C,a.default),E(r,P,l.default),E(r,"time-utc",c.default),r),I=["color","fill","opacity","stroke"];function R(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}function j(e,t){var n=M(t),r=0;if(n)for(var o,i,a=n(e[0]),s=1/0,l=1;l<e.length;l++)o=n(e[l]),(i=Math.abs(o-a))<s&&(s=i,r=l),a=o;return r}function M(e){if(!e)return null;var t=e.type,n=e.domain,r=e.range,o=n[0]===n[1]?0===n[0]?[-1,0]:[-n[0],n[0]]:n;if(t===O)return K(r[0]);var i=A[t]().domain(o).range(r);return t===T&&(i.padding(.5),function(e){e.invert||(e.invert=function(t){var n=_(e.range(),2),r=n[0],o=n[1],i=Math.min(r,o),a=Math.max(r,o);if(t<i+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-i-e.padding()*e.step())/e.step());return e.domain()[s]})}(i)),i}function D(e,t,n,r){var o=e.reduce(function(e,r){var o=t(r),i=n(r);return H(o)&&e.push(o),H(i)&&e.push(i),e},[]);return o.length?r!==T&&r!==x?(0,u.default)(o):(0,d.set)(o).values():[]}function N(e,t,n,r,o){return n===O?{type:O,domain:[],range:[t],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:o}:void 0===t?null:{type:x,range:[t],domain:[],distance:0,attr:e,baseValue:void 0,isValue:!0,accessor:r,accessor0:o}}function L(e,t){var n=t.domain,r=t.type,o=t.accessor,i=t.accessor0,a=function(e,t,n,r){return r===P&&1===t.length?[n(e[0])].concat(b(t)):t}(e,(0,g.getUniquePropertyValues)(e,o),i,r),s=j(a,t),l=[].concat(n);l[0]-=function(e){return e.length>1?(e[1]-e[0])/2:1===e.length?e[0]-.5:0}(a),l[n.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),r===C&&n[0]<=0&&(l[0]=Math.min(n[1]/10,1));var c=function(e,t,n,r){if(e.length>1){var o=Math.max(n,1);return Math.abs(r(e[o])-r(e[o-1]))}return 1===e.length?Math.abs(r(t[1])-r(t[0])):0}(a,l,s,M(v(v({},t),{},{domain:l})));return{domain0:l[0],domainN:l[l.length-1],distance:c}}function F(e){var t=M(e),n=e.domain,r=e.range;return n.length>1?e.distance=Math.abs(t(n[1])-t(n[0])):e.distance=Math.abs(r[1]-r[0]),e}function B(e,t){var n=function(e,t){var n,r=e[t],o=e["_".concat(t,"Value")],i=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?k:c,d=e["".concat(t,"NoFallBack")],f=e["get".concat(R(t))],p=void 0===f?function(e){return e[t]}:f,h=e["get".concat(R(t),"0")],m=void 0===h?function(e){return e["".concat(t,"0")]}:h,y=e["".concat(t,"Domain")];return d||void 0===r?(void 0!==l&&(y=(0,g.addValueToArray)(y,l)),i&&y&&y.length?{domain:(n={domain:y,range:i,type:u,distance:s,attr:t,baseValue:l,accessor:p,accessor0:m}).domain,range:n.range,type:n.type,distance:n.distance,attr:n.attr,baseValue:n.baseValue,isValue:!1,accessor:n.accessor,accessor0:n.accessor0}:N(t,o,e["".concat(t,"Type")],p,m)):N(t,r,e["".concat(t,"Type")],p,m)}(e,t);if(!n)return null;
41if(!function(e,t){var n=t.attr,r=e._adjustBy,o=void 0===r?[]:r,i=e._adjustWhat;return(void 0===i?[]:i).length&&o.length&&-1!==o.indexOf(n)}(e,n))return n;var r=n.type;return r===T||r===x?F(n):function(e,t){var n=e._allData,r=e._adjustWhat,o=void 0===r?[]:r,i=t.domain.length,a=t.domain,s=a[0],l=a[i-1],c=t.distance;return n.forEach(function(e,n){if(-1!==o.indexOf(n)&&e&&e.length){var r=L(e,t),i=r.domain0,a=r.domainN,u=r.distance;s=Math.min(s,i),l=Math.max(l,a),c=Math.max(c,u)}}),t.domain=[s].concat(b(a.slice(1,-1)),[l]),t.distance=c,t}(e,n)}function z(e,t){return M(B(e,t))}function U(e,t){return t(e.data?e.data:e)}function H(e){return void 0!==e}function V(e,t){var n=B(e,t);if(n){var r=M(n);return function(e){return r(U(e,n.accessor))}}return null}function q(e,t){var n=B(e,t);if(n){var r=n.domain,o=n.baseValue,i=void 0===o?r[0]:o,a=M(n);return function(e){var t=U(e,n.accessor0);return a(H(t)?t:i)}}return null}function G(e,t){var n=B(e,t);return n?(n.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")]||n.range[0]):null}function W(e){var t;return E(t={},"_".concat(e,"Value"),h().any),E(t,"".concat(e,"Domain"),h().array),E(t,"get".concat(R(e)),h().func),E(t,"get".concat(R(e),"0"),h().func),E(t,"".concat(e,"Range"),h().array),E(t,"".concat(e,"Type"),h().oneOf(Object.keys(A))),E(t,"".concat(e,"Distance"),h().number),E(t,"".concat(e,"BaseValue"),h().any),t}function $(e,t){var n={};return Object.keys(e).forEach(function(r){t.find(function(e){var t=0===r.indexOf(e),n=0===r.indexOf("_".concat(e)),o=0===r.indexOf("get".concat(R(e)));return t||n||o})&&(n[r]=e[r])}),n}function Y(e,t,n){var r={};return n.forEach(function(n){e["get".concat(R(n))]||(r["get".concat(R(n))]=function(e){return e[n]}),e["get".concat(R(n),"0")]||(r["get".concat(R(n),"0")]=function(e){return e["".concat(n,"0")]}),e["".concat(n,"Domain")]||(r["".concat(n,"Domain")]=D(t,e["get".concat(R(n))]||r["get".concat(R(n))],e["get".concat(R(n),"0")]||r["get".concat(R(n),"0")],e["".concat(n,"Type")]),e["".concat(n,"Padding")]&&(r["".concat(n,"Domain")]=function(e,t){if(!e)return e;if(isNaN(parseFloat(e[0]))||isNaN(parseFloat(e[1])))return e;var n=_(e,2),r=n[0],o=n[1],i=.01*t*(o-r);return[r-i,o+i]}(r["".concat(n,"Domain")],e["".concat(n,"Padding")])))}),r}function K(e){function t(t){return void 0===t?e:t}function n(){return t}return t.domain=n,t.range=n,t.unknown=n,t.copy=n,t}function J(e){return e?(0,f.hsl)(e).l>.57?"#222":"#fff":null}function Q(e,t){var n=I.reduce(function(t,n){var r=e["".concat(n,"Domain")],o=e["".concat(n,"Range")],i=e["".concat(n,"Type")];return r&&o&&i?v(v({},t),{},E({},n,A[i]().domain(r).range(o))):t},{});return t.map(function(e){return I.reduce(function(t,r){if(e.props&&void 0!==e.props[r]){var o=e.props[r],i=n[r],a=i?i(o):o;return v(v({},t),{},E({},"_".concat(r,"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,n){return X.every(function(e){return!n.match(e)})||(t[n]=e[n]),t},{})}const ee={extractScalePropsFromProps:$,getAttributeScale:z,getAttributeFunctor:V,getAttr0Functor:q,getAttributeValue:G,getDomainByAccessor:D,getFontColorFromBackground:J,getMissingScaleProps:Y,getOptionalScaleProps:Z,getScaleObjectFromProps:B,getScalePropTypesByAttribute:W,getXYPlotValues:Q,literalScale:K}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,point:()=>l});var r=n(2100),o=n(2101),i=n(2102);function a(){var e,t,n=(0,i.default)().unknown(void 0),s=n.domain,l=n.range,c=0,u=1,d=!1,f=0,p=0,h=.5;function m(){var n=s().length,o=u<c,i=o?u:c,a=o?c:u;e=(a-i)/Math.max(1,n-f+2*p),d&&(e=Math.floor(e)),i+=(a-i-e*(n-f))*h,t=e*(1-f),d&&(i=Math.round(i),t=Math.round(t));var m=(0,r.default)(n).map(function(t){return i+e*t});return l(o?m.reverse():m)}return delete n.unknown,n.domain=function(e){return arguments.length?(s(e),m()):s()},n.range=function(e){return arguments.length?([c,u]=e,c=+c,u=+u,m()):[c,u]},n.rangeRound=function(e){return[c,u]=e,c=+c,u=+u,d=!0,m()},n.bandwidth=function(){return t},n.step=function(){return e}
vendor: 4,190 bytes, line 41
41,n.round=function(e){return arguments.length?(d=!!e,m()):d},n.padding=function(e){return arguments.length?(f=Math.min(1,p=+e),m()):f},n.paddingInner=function(e){return arguments.length?(f=Math.min(1,e),m()):f},n.paddingOuter=function(e){return arguments.length?(p=+e,m()):p},n.align=function(e){return arguments.length?(h=Math.max(0,Math.min(1,e)),m()):h},n.copy=function(){return a(s(),[c,u]).round(d).paddingInner(f).paddingOuter(p).align(h)},o.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,n)=>{"use strict";function r(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(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}n.r(t),n.d(t,{initInterpolator:()=>o,initRange:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,implicit:()=>i});var r=n(2103),o=n(2101);const i=Symbol("implicit");function a(){var e=new r.InternMap,t=[],n=[],s=i;function l(r){let o=e.get(r);if(void 0===o){if(s!==i)return s;e.set(r,o=t.push(r)-1)}return n[o%n.length]}return l.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r.InternMap;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return l},l.range=function(e){return arguments.length?(n=Array.from(e),l):n.slice()},l.unknown=function(e){return arguments.length?(s=e,l):s},l.copy=function(){return a(t,n).unknown(s)},o.initRange.apply(l,arguments),l}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{InternMap:()=>r,InternSet:()=>o});class r extends Map{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class o 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(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function s({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,linearish:()=>s});var r=n(2105),o=n(2106),i=n(2101),a=n(2115);function s(e){var t=e.domain;return e.ticks=function(e){var n=t();return(0,r.default)(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return(0,a.default)(r[0],r[r.length-1],e??10,n)},e.nice=function(n){null==n&&(n=10);var o,i,a=t(),s=0,l=a.length-1,c=a[s],u=a[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=(0,r.tickIncrement)(c,u,n))===o)return a[s]=c,a[l]=u,t(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}o=i}return e},e}function l(){var e=(0,o.default)();return e.copy=function(){return(0,o.copy)(e,l())},i.initRange.apply(e,arguments),s(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,tickIncrement:()=>l,tickStep:()=>c});const r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){const s=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(s)),c=s/Math.pow(10,l),u=c>=r?10:c>=o?5:c>=i?2:1;let d,f,p;return l<0?(p=Math.pow(10,-l)/u,d=Math.round(e*p),f=Math.round(t*p),d/p<e&&++d,f/p>t&&--f,p=-p):(p=Math.pow(10,l)*u,d=Math.round(e/p),f=Math.round(t/p),d*p<e&&++d,f*p>t&&--f),f<d&&.5<=n&&n<2?a(e,t,2*n):[d,f,p]}function s(e,t,n){if(!((n=+n)>0))return[];
41if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,s]=r?a(t,e,n):a(e,t,n);if(!(i>=o))return[];const l=i-o+1,c=new Array(l);if(r)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;else 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;return c}function l(e,t,n){return a(e=+e,t=+t,n=+n)[2]}function c(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?l(t,e,n):l(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{copy:()=>h,default:()=>g,identity:()=>u,transformer:()=>m});var r=n(2107),o=n(2069),i=n(2080),a=n(2112),s=n(2113),l=n(2114),c=[0,1];function u(e){return e}function d(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(0,s.default)(isNaN(t)?NaN:.5)}function f(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=d(o,r),i=n(a,i)):(r=d(r,o),i=n(i,a)),function(e){return i(r(e))}}function p(e,t,n){var o=Math.min(e.length,t.length)-1,i=new Array(o),a=new Array(o),s=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<o;)i[s]=d(e[s],e[s+1]),a[s]=n(t[s],t[s+1]);return function(t){var n=(0,r.default)(e,t,1,o)-1;return a[n](i[n](t))}}function h(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){var e,t,n,r,s,d,h=c,m=c,g=o.default,y=u;function v(){var e,t,n,o=Math.min(h.length,m.length);return y!==u&&(e=h[0],t=h[o-1],e>t&&(n=e,e=t,t=n),y=function(n){return Math.max(e,Math.min(t,n))}),r=o>2?p:f,s=d=null,b}function b(t){return null==t||isNaN(t=+t)?n:(s||(s=r(h.map(e),m,g)))(e(y(t)))}return b.invert=function(n){return y(t((d||(d=r(m,h.map(e),i.default)))(n)))},b.domain=function(e){return arguments.length?(h=Array.from(e,l.default),v()):h.slice()},b.range=function(e){return arguments.length?(m=Array.from(e),v()):m.slice()},b.rangeRound=function(e){return m=Array.from(e),g=a.default,v()},b.clamp=function(e){return arguments.length?(y=!!e||u,v()):y!==u},b.interpolate=function(e){return arguments.length?(g=e,v()):g},b.unknown=function(e){return arguments.length?(n=e,b):n},function(n,r){return e=n,t=r,v()}}function g(){return m()(u,u)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bisectCenter:()=>c,bisectLeft:()=>l,bisectRight:()=>s,default:()=>u});var r=n(2108),o=n(2109),i=n(2111);const a=(0,o.default)(r.default),s=a.right,l=a.left,c=(0,o.default)(i.default).center,u=s},(e,t,n)=>{"use strict";function r(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2108),o=n(2110);function i(e){let t,n,i;function s(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=r.default,n=(t,n)=>(0,r.default)(e(t),n),i=(t,n)=>e(t)-n):(t=e===r.default||e===o.default?e:a,n=e,i=e),{left:s,center:function(e,t,n=0,r=e.length){const o=s(e,t,n,r-1);return o>n&&i(e[o-1],t)>-i(e[o],t)?o-1:o},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function a(){return 0}},(e,t,n)=>{"use strict";function r(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e){return null===e?NaN:+e}function*o(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}n.r(t),n.d(t,{default:()=>r,numbers:()=>o})},(e,t,n)=>{"use strict";function r(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e){return+e}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(2105),o=n(2116),i=n(2122),a=n(2128),s=n(2129),l=n(2130);function c(e,t,n,c){var u,d=(0,r.tickStep)(e,t,n);switch((c=(0,i.default)(c??",f")).type){case"s":var f=Math.max(Math.abs(e),Math.abs(t));return null!=c.precision||isNaN(u=(0,s.default)(d,f))||(c.precision=u),(0,o.formatPrefix)(c,f);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(u=(0,l.default)(d,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)(d))||(c.precision=u-2*("%"===c.type))}return(0,o.format)(c)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,format:()=>o,formatPrefix:()=>i});var r,o,i,a=n(2117);function s(e){return r=(0,a.default)(e),o=r.format,i=r.formatPrefix,r}s({thousands:",",grouping:[3],currency:["$",""]})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p}),n.dn(p);var r=n(2118),o=n(2120),i=n(2121),a=n(2122),s=n(2123),l=n(2124),c=n(2125),u=n(2127),d=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function p(e){var t=void 0===e.grouping||void 0===e.thousands?u.default:(0,o.default)(d.call(e.grouping,Number),e.thous
vendor: 4,179 bytes, line 41
41ands+""),n=void 0===e.currency?"":e.currency[0]+"",p=void 0===e.currency?"":e.currency[1]+"",h=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?u.default:(0,i.default)(d.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"−":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function b(e,r){var o=(e=(0,a.default)(e)).fill,i=e.align,u=e.sign,d=e.symbol,b=e.zero,_=e.width,w=e.comma,S=e.precision,E=e.trim,k=e.type;"n"===k?(w=!0,k="g"):l.default[k]||(void 0===S&&(S=12),E=!0,k="g"),(b||"0"===o&&"="===i)&&(b=!0,o="0",i="=");var T=(r&&void 0!==r.prefix?r.prefix:"")+("$"===d?n:"#"===d&&/[boxX]/.test(k)?"0"+k.toLowerCase():""),x=("$"===d?p:/[%p]/.test(k)?g:"")+(r&&void 0!==r.suffix?r.suffix:""),O=l.default[k],C=/[defgprs%]/.test(k);function P(e){var n,r,a,l=T,d=x;if("c"===k)d=O(e)+d,e="";else{var p=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:O(Math.abs(e),S),E&&(e=(0,s.default)(e)),p&&0===+e&&"+"!==u&&(p=!1),l=(p?"("===u?u:y:"-"===u||"("===u?"":u)+l,d=("s"!==k||isNaN(e)||void 0===c.prefixExponent?"":f[8+c.prefixExponent/3])+d+(p&&"("===u?")":""),C)for(n=-1,r=e.length;++n<r;)if(48>(a=e.charCodeAt(n))||a>57){d=(46===a?h+e.slice(n+1):e.slice(n))+d,e=e.slice(0,n);break}}w&&!b&&(e=t(e,1/0));var g=l.length+e.length+d.length,P=g<_?new Array(_-g+1).join(o):"";switch(w&&b&&(e=t(P+e,P.length?_-d.length:1/0),P=""),i){case"<":e=l+e+d+P;break;case"=":e=l+P+e+d;break;case"^":e=P.slice(0,g=P.length>>1)+l+e+d+P.slice(g);break;default:e=P+l+e+d}return m(e)}return S=void 0===S?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S)),P.toString=function(){return e+""},P}return{format:b,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor((0,r.default)(t)/3))),o=Math.pow(10,-n),i=b(((e=(0,a.default)(e)).type="f",e),{suffix:f[8+n/3]});return function(e){return i(o*e)}}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2119);function o(e){return(e=(0,r.formatDecimalParts)(Math.abs(e)))?e[1]:NaN}},(e,t,n)=>{"use strict";function r(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function o(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.r(t),n.d(t,{default:()=>r,formatDecimalParts:()=>o}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormatSpecifier:()=>i,default:()=>o});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({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 i(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+""}o.prototype=i.prototype,i.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,n)=>{"use strict";function r(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2119),o=n(2125),i=n(2126);const a={"%":(e,t)=>
vendor: 8,747 bytes, line 41
41(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r.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,i.default)(100*e,t),r:i.default,s:o.default,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,prefixExponent:()=>r}),n.dn(i);var r,o=n(2119);function i(e,t){var n=(0,o.formatDecimalParts)(e,t);if(!n)return r=void 0,e.toPrecision(t);var i=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,o.formatDecimalParts)(e,Math.max(0,t+s-1))[0]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2119);function o(e,t){var n=(0,r.formatDecimalParts)(e,t);if(!n)return e+"";var o=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}},(e,t,n)=>{"use strict";function r(e){return e}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2118);function o(e){return Math.max(0,-(0,r.default)(Math.abs(e)))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2118);function o(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,r.default)(t)/3)))-(0,r.default)(Math.abs(e)))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2118);function o(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,r.default)(t)-(0,r.default)(e))+1}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g,loggish:()=>m});var r=n(2105),o=n(2116),i=n(2122),a=n(2132),s=n(2106),l=n(2101);function c(e){return Math.log(e)}function u(e){return Math.exp(e)}function d(e){return-Math.log(-e)}function f(e){return-Math.exp(-e)}function p(e){return isFinite(e)?+("1e"+e):e<0?0:e}function h(e){return(t,n)=>-e(-t,n)}function m(e){const t=e(c,u),n=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?p:e===Math.E?Math.exp:t=>Math.pow(e,t)}(m),n()[0]<0?(s=h(s),l=h(l),e(d,f)):e(c,u),t}return t.base=function(e){return arguments.length?(m=+e,g()):m},t.domain=function(e){return arguments.length?(n(e),g()):n()},t.ticks=e=>{const t=n();let o=t[0],i=t[t.length-1];const a=i<o;a&&([o,i]=[i,o]);let c,u,d=s(o),f=s(i);const p=null==e?10:+e;let h=[];if(!(m%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),o>0){for(;d<=f;++d)for(c=1;c<m;++c)if(u=d<0?c/l(-d):c*l(d),!(u<o)){if(u>i)break;h.push(u)}}else for(;d<=f;++d)for(c=m-1;c>=1;--c)if(u=d>0?c/l(-d):c*l(d),!(u<o)){if(u>i)break;h.push(u)}2*h.length<p&&(h=(0,r.default)(o,i,p))}else h=(0,r.default)(d,f,Math.min(f-d,p)).map(l);return a?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===m?"s":","),"function"!=typeof n&&(m%1||null!=(n=(0,i.default)(n)).precision||(n.trim=!0),n=(0,o.format)(n)),e===1/0)return n;const r=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<=r?n(e):""}},t.nice=()=>n((0,a.default)(n(),{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,n)=>{"use strict";function r(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{calendar:()=>y,default:()=>v});var r=n(2134),o=n(2137),i=n(2138),a=n(2139),s=n(2140),l=n(2141),c=n(2142),u=n(2143),d=n(2145),f=n(2106),p=n(2101),h=n(2132);function m(e){return new Date(e)}function g(e){return e instanceof Date?+e:+new Date(+e)}function y(e,t,n,r,o,i,a,s,l,c){var u=(0,f.default)(),d=u.invert,p=u.domain,v=c(".%L"),b=c(":%S"),_=c("%I:%M"),w=c("%I %p"),S=c("%a %d"),E=c("%b %d"),k=c("%B"),T=c("%Y");function x(e){return(l(e)<e?v:s(e)<e?b:a(e)<e?_:i(e)<e?w:r(e)<e?o(e)<e?S:E:n(e)<e?k:T)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?p(Array.from(e,g)):p().map(m)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return null==t?x:c(t)},u.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],e??10)),e?p((0,h.default)(n,e)):u},u.copy=function(){return(0,f.copy)(u,y(e,t,n,r,o,i,a,s,l,c))},u}function v(){return p.initRange.apply(y(u.timeTicks,u.timeTickInterval,c.timeYear,l.timeMonth,s.timeSunday,a.timeDay,i.timeHour,o.timeMinute,r.second,d.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{second:()=>i,seconds:()=>a});var r=n(2135),o=n(2136);const i=(0,r.timeInterval)(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*o.durationSecond)},(e,t)=>(t-e)/o.durationSecond,e=>e.getUTCSeconds()),a=i.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeInterval:()=>i});const r=new Date,o=new Date;function i(e,t,n,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=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),s.round=e=>{const t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),s.range=(n,r,o)=>{const i=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return i;let a;do{i.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return i},s.filter=n=>i(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(s.count=(t,i)=>(r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))),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,n)=>{"use strict";n.r(t),n.d(t,{durationDay:()=>a,durationHour:()=>i,durationMinute:()=>o,durationMonth:()=>l,durationSecond:()=>r,durationWeek:()=>s,durationYear:()=>c});const r=1e3,o=60*r,i=60*o,a=24*i,s=7*a,l=30*a,c=365*a},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeMinute:()=>i,timeMinutes:()=>a,utcMinute:()=>s,utcMinutes:()=>l});var r=n(2135),o=n(2136);const i=(0,r.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.durationSecond)},(e,t)=>{e.setTime(+e+t*o.durationMinute)},(e,t)=>(t-e)/o.durationMinute,e=>e.getMinutes()),a=i.range,s=(0,r.timeInterval)(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*o.durationMinute)},(e,t)=>(t-e)/o.durationMinute,e=>e.getUTCMinutes()),l=s.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeHour:()=>i,timeHours:()=>a,utcHour:()=>s,utcHours:()=>l});var r=n(2135),o=n(2136);const i=(0,r.timeInterval)(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.durationSecond-e.getMinutes()*o.durationMinute)},(e,t)=>{e.setTime(+e+t*o.durationHour)},(e,t)=>(t-e)/o.durationHour,e=>e.getHours()),a=i.range,s=(0,r.timeInterval)(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*o.durationHour)},(e,t)=>(t-e)/o.durationHour,e=>e.getUTCHours()),l=s.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeDay:()=>i,timeDays:()=>a,unixDay:()=>c,unixDays:()=>u,utcDay:()=>s,utcDays:()=>l});var r=n(2135),o=n(2136);const i=(0,r.timeInterval)(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.durationMinute)/o.durationDay,e=>e.getDate()-1),a=i.range,s=(0,r.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/o.durationDay,e=>e.getUTCDate()-1),l=s.range,c=(0,r.timeInterval)(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/o.durationDay,e=>Math.floor(e/o.durationDay)),u=c.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeFriday:()=>d,timeFridays:()=>v,timeMonday:()=>s,timeMondays:()=>h,timeSaturday:()=>f,timeSaturdays:()=>b,timeSunday:()=>a,timeSundays:()=>p,timeThursday:()=>u,timeThursdays:()=>y,timeTuesday:()=>l,timeTuesdays:()=>m,timeWednesday:()=>c,timeWednesdays:()=>g,utcFriday:()=>x,utcFridays:()=>j,utcMonday:()=>S,utcMondays:()=>P,utcSaturday:()=>O,utcSaturdays:()=>M,utcSunday:()=>w,utcSundays:()=>C,utcThursday:()=>T,utcThursdays:()=>R,utcTuesday:()=>E,utcTuesdays:()=>A,utcWednesday:()=>k,utcWednesdays:()=>I});var r=n(2135),o=n(2136);function i(e){return(0,r.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())*o.durationMinute)/o.durationWeek)}const a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),f=i(6),p=a.range,h=s.range,m=l.range,g=c.range,y=u.range,v=d.range,b
41=f.range;function _(e){return(0,r.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)/o.durationWeek)}const w=_(0),S=_(1),E=_(2),k=_(3),T=_(4),x=_(5),O=_(6),C=w.range,P=S.range,A=E.range,I=k.range,R=T.range,j=x.range,M=O.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeMonth:()=>o,timeMonths:()=>i,utcMonth:()=>a,utcMonths:()=>s});var r=n(2135);const o=(0,r.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()),i=o.range,a=(0,r.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,n)=>{"use strict";n.r(t),n.d(t,{timeYear:()=>o,timeYears:()=>i,utcYear:()=>a,utcYears:()=>s});var r=n(2135);const o=(0,r.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());o.every=e=>isFinite(e=Math.floor(e))&&e>0?(0,r.timeInterval)(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;const i=o.range,a=(0,r.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,r.timeInterval)(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;const s=a.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{timeTickInterval:()=>v,timeTicks:()=>y,utcTickInterval:()=>g,utcTicks:()=>m});var r=n(2109),o=n(2105),i=n(2136),a=n(2144),s=n(2134),l=n(2137),c=n(2138),u=n(2139),d=n(2140),f=n(2141),p=n(2142);function h(e,t,n,l,c,u){const d=[[s.second,1,i.durationSecond],[s.second,5,5*i.durationSecond],[s.second,15,15*i.durationSecond],[s.second,30,30*i.durationSecond],[u,1,i.durationMinute],[u,5,5*i.durationMinute],[u,15,15*i.durationMinute],[u,30,30*i.durationMinute],[c,1,i.durationHour],[c,3,3*i.durationHour],[c,6,6*i.durationHour],[c,12,12*i.durationHour],[l,1,i.durationDay],[l,2,2*i.durationDay],[n,1,i.durationWeek],[t,1,i.durationMonth],[t,3,3*i.durationMonth],[e,1,i.durationYear]];function f(t,n,s){const l=Math.abs(n-t)/s,c=(0,r.default)(([,,e])=>e).right(d,l);if(c===d.length)return e.every((0,o.tickStep)(t/i.durationYear,n/i.durationYear,s));if(0===c)return a.millisecond.every(Math.max((0,o.tickStep)(t,n,s),1));const[u,f]=d[l/d[c-1][2]<d[c][2]/l?c-1:c];return u.every(f)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:f(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},f]}const[m,g]=h(p.utcYear,f.utcMonth,d.utcSunday,u.unixDay,c.utcHour,l.utcMinute),[y,v]=h(p.timeYear,f.timeMonth,d.timeSunday,u.timeDay,c.timeHour,l.timeMinute)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{millisecond:()=>o,milliseconds:()=>i});var r=n(2135);const o=(0,r.timeInterval)(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,r.timeInterval)(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):o:null);const i=o.range},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c,timeFormat:()=>o,timeParse:()=>i,utcFormat:()=>a,utcParse:()=>s});var r,o,i,a,s,l=n(2146);function c(e){return r=(0,l.default)(e),o=r.format,i=r.parse,a=r.utcFormat,s=r.utcParse,r}c({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","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,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(2139),o=n(2140),i=n(2142);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,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function c(e){var t=e.dateTime,n=e.date,i=e.time,c=e.periods,d=e.days,f=e.shortDays,p=e.months,h=e.shortMonths,m=g(c),K=y(c),me=g(d),Oe=y(d),Ce=g(f),Pe=y(f),Ae=g(p),Ie=y(p),Re=g(h),je=y(h),Me={a:function(e){return f[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return h[e.getMonth()]},B:function(e){return p[e.getMonth()]},c:null,d:F,e:F,f:V,g:ee,G:ne,H:B,I:z,j:U,L:H,m:q,M:G,p:function(e){return c[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Te,s:xe,S:W,u:$,U:Y,V:J,w:Q,W:X,x:null,X:null,y:Z,Y:te,Z:re,"%":ke},De={a:function(e){return f[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return h[e.getUTCMonth()]},B:function(e){return p[e.getUTCMonth()]},c:null,d:oe,e:oe,f:ce,g:_e,G:Se,H:ie,I:ae,j:se,L:le,m:ue,M:de,p:function(e){return c[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Te,s:xe,S:fe,u:pe,U:he,V:ge,w:ye,W:ve,x:null,X:null,y:be,Y:we,Z:Ee,"%":ke},Ne={a:function(e,t,n){var r=Ce.exec(t.slice(n));return r?(e.w=Pe.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=me.exec(t.slice(n));return r?(e.w=Oe.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=Re.exec(t.slice(n));return r?(e.m=je.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=Ie.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return Be(e,t,n,r)},d:C,e:C,f:M,g:k,G:E,H:A,I:A,j:P,L:j,m:O,M:I,p:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.p=K.get(r[0].toLowerCase()),n+r[0].length):-1},q:x,Q:N,s:L,S:R,u:b,U:_,V:w,w:v,W:S,x:function(e,t,r){return Be(e,n,t,r)},X:function(e,t,n){return Be(e,i,t,n)}
vendor: 6,659 bytes, line 41
41,y:k,Y:E,Z:T,"%":D};function Le(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=u[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Fe(e,t){return function(n){var i,c,u=l(1900,void 0,1);if(Be(u,e,n+="",0)!=n.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=(i=s(l(u.y,0,1))).getUTCDay(),i=c>4||0===c?o.utcMonday.ceil(i):(0,o.utcMonday)(i),i=r.utcDay.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(c=(i=a(l(u.y,0,1))).getDay(),i=c>4||0===c?o.timeMonday.ceil(i):(0,o.timeMonday)(i),i=r.timeDay.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.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 Be(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=Ne[o in u?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return Me.x=Le(n,Me),Me.X=Le(i,Me),Me.c=Le(t,Me),De.x=Le(n,De),De.X=Le(i,De),De.c=Le(t,De),{format:function(e){var t=Le(e+="",Me);return t.toString=function(){return e},t},parse:function(e){var t=Fe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Le(e+="",De);return t.toString=function(){return e},t},utcParse:function(e){var t=Fe(e+="",!0);return t.toString=function(){return e},t}}}var u={"-":"",_:" ",0:"0"},d=/^\s*\d+/,f=/^%/,p=/[\\^$*+?|[\]().{}]/g;function h(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function m(e){return e.replace(p,"\\$&")}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 v(e,t,n){var r=d.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function b(e,t,n){var r=d.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function _(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function w(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function S(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function E(e,t,n){var r=d.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function k(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function x(e,t,n){var r=d.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function O(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function C(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function P(e,t,n){var r=d.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function A(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function I(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function R(e,t,n){var r=d.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function j(e,t,n){var r=d.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function M(e,t,n){var r=d.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function D(e,t,n){var r=f.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function N(e,t,n){var r=d.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function L(e,t,n){var r=d.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function F(e,t){return h(e.getDate(),t,2)}function B(e,t){return h(e.getHours(),t,2)}function z(e,t){return h(e.getHours()%12||12,t,2)}function U(e,t){return h(1+r.timeDay.count((0,i.timeYear)(e),e),t,3)}function H(e,t){return h(e.getMilliseconds(),t,3)}function V(e,t){return H(e,t)+"000"}function q(e,t){return h(e.getMonth()+1,t,2)}function G(e,t){return h(e.getMinutes(),t,2)}function W(e,t){return h(e.getSeconds(),t,2)}function $(e){var t=e.getDay();return 0===t?7:t}function Y(e,t){return h(o.timeSunday.count((0,i.timeYear)(e)-1,e),t,2)}function K(e){var t=e.getDay();return t>=4||0===t?(0,o.timeThursday)(e):o.timeThursday.ceil(e)}function J(e,t){return e=K(e),h(o.timeThursday.count((0,i.timeYear)(e),e)+(4===(0,i.timeYear)(e).getDay()),t,2)}function Q(e){return e.getDay()}function X(e,t){return h(o.timeMonday.count((0,i.timeYear)(e)-1,e),t,2)}function Z(e,t){return h(e.getFullYear()%100,t,2)}function ee(e,t){return h((e=K(e)).getFullYear()%100,t,2)}function te(e,t){return h(e.getFullYear()%1e4,t,4)}function ne(e,t){var n=e.getDay();return h((e=n>=4||0===n?(0,o.timeThursday)(e):o.timeThursday.ceil(e)).getFullYear()%1e4,t,4)}function re(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+h(t/60|0,"0",2)+h(t%60,"0",2)}function oe(e,t){return h(e.getUTCDate(),t,2)}function ie(e,t){return h(e.getUTCHours(),t,2)}function ae(e,t){return h(e.getUTCHours()%12||12,t,2)}function se(e,t){return h(1+r.utcDay.count((0,i.utcYear)(e),e),t,3)}function le(e,t){return h(e.getUTCMilliseconds(),t,3)}function ce(e,t){return le(e,t)+"000"}function ue(e,t){return h(e.getUTCMonth()+1,t,2)}function de(e,t){return h(e.getUTCMinutes(),t,2)}function fe(e,t){return h(e.getUTCSeconds(),t,2)}function pe(e){var t=e.getUTCDay();return 0===t?7:t}function he(e,t){return h(o.utcSunday.count((0,i.utcYear)(e)-1,e),t,2)}function me(e){var t=e.getUTCDay();return t>=4||0===t?(0,o.utcThursday)(e):o.utcThursday.ceil(e)}function ge(e,t){return e=me(e),h(o.utcThursday.count((0,i.utcYear)(e),e)+(4===(0,i.utcYear)(e).getUTCDay()),t,2)}function ye(e){return e.getUTCDay()}function ve(e,t){return h(o.utcMonday.count((0,i.utcYear)(e)-1,e),t,2)}function be(e,t){return h(e.getUTCFullYear()%100,t,2)}function _e(e,t){return h((e=me(e)).getUTCFullYear()%100,t,2)}function we(e,t){return h(e.getUTCFullYear()%1e4,t,4)}function Se(e,t){var n=e.getUTCDay();return h((e=n>=4||0===n?(0,o.utcThursday)(e):o.utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function Ee(){return"+0000"}function ke(){return"%"}function Te(e){return+e}function xe(e){return Math.floor(+e/1e3)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});
41var r=n(2134),o=n(2137),i=n(2138),a=n(2139),s=n(2140),l=n(2141),c=n(2142),u=n(2143),d=n(2145),f=n(2133),p=n(2101);function h(){return p.initRange.apply((0,f.calendar)(u.utcTicks,u.utcTickInterval,c.utcYear,l.utcMonth,s.utcSunday,a.utcDay,i.utcHour,o.utcMinute,r.second,d.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}},(e,t,n)=>{"use strict";function r(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{entries:()=>l.default,keys:()=>a.default,map:()=>i.default,nest:()=>r.default,set:()=>o.default,values:()=>s.default});var r=n(2150),o=n(2152),i=n(2151),a=n(2153),s=n(2154),l=n(2155)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2151);function o(){var e,t,n,o=[],c=[];function u(n,i,a,s){if(i>=o.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,c,d,f=-1,p=n.length,h=o[i++],m=(0,r.default)(),g=a();++f<p;)(d=m.get(l=h(c=n[f])+""))?d.push(c):m.set(l,[c]);return m.each(function(e,t){s(g,t,u(e,i,a,s))}),g}function d(e,n){if(++n>o.length)return e;var r,i=c[n-1];return null!=t&&n>=o.length?r=e.entries():(r=[],e.each(function(e,t){r.push({key:t,values:d(e,n)})})),null!=i?r.sort(function(e,t){return i(e.key,t.key)}):r}return n={object:function(e){return u(e,0,i,a)},map:function(e){return u(e,0,s,l)},entries:function(e){return d(u(e,0,s,l),0)},key:function(e){return o.push(e),n},sortKeys:function(e){return c[o.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}function i(){return{}}function a(e,t,n){e[t]=n}function s(){return(0,r.default)()}function l(e,t,n){e.set(t,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,prefix:()=>r});var r="$";function o(){}function i(e,t){var n=new o;if(e instanceof o)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,a=e.length;if(null==t)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t(r=e[i],i,e),r)}else if(e)for(var s in e)n.set(s,e[s]);return n}o.prototype=i.prototype={constructor:o,has:function(e){return r+e in this},get:function(e){return this[r+e]},set:function(e,t){return this[r+e]=t,this},remove:function(e){var t=r+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===r&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===r&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===r&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===r&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===r&&++e;return e},empty:function(){for(var e in this)if(e[0]===r)return!1;return!0},each:function(e){for(var t in this)t[0]===r&&e(this[t],t.slice(1),this)}};const a=i},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(2151);function o(){}var i=r.default.prototype;function a(e,t){var n=new o;if(e instanceof o)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}o.prototype=a.prototype={constructor:o,has:i.has,add:function(e){return e+="",this[r.prefix+e]=e,this},remove:i.remove,clear:i.clear,values:i.keys,size:i.size,empty:i.empty,each:i.each};const s=a},(e,t,n)=>{"use strict";function r(e){var t=[];for(var n in e)t.push(n);return t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){var t=[];for(var n in e)t.push(e[n]);return t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.r(t),n.d(t,{getDOMNode:()=>f,isReactDOMSupported:()=>d,warnOnce:()=>g,warning:()=>m});var o,i,a=n(396).default.version.split("."),s=(i=2,function(e){if(Array.isArray(e))return e}(o=a)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(o,i)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}
41(o,i)||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,d=function(){return u},f=function(e){return d()?e:e&&e.getDOMNode()},p={},h={test:!0,production:!0};function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];globalThis.process&&h.production||t&&p[e]||(console.warn(e),p[e]=!0)}function g(e){m(e,!0)}},(e,t,n)=>{"use strict";function r(e,t){var n=new Set(e.map(t));return Array.from(n)}function o(e,t){var n=[].concat(e);return n[0]>t&&(n[0]=t),n[n.length-1]<t&&(n[n.length-1]=t),n}function i(e){return"[object Date]"===Object.prototype.toString.call(e)?e.toDateString():e}n.r(t),n.d(t,{addValueToArray:()=>o,getUniquePropertyValues:()=>r,transformValueToString:()=>i})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2159),l=n(2164),c=n(2057),u=n(2098),d=n(2166);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 p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach(function(t){_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w="rv-xy-plot__series rv-xy-plot__series--arc",S=["radius","angle"],E=b(b({},c.default.defaultProps),{},{center:{x:0,y:0},arcClassName:"",className:"",style:{},padAngle:0});function k(e){var t=e.radius,n=e.angle,r=e.angle0,o=-1*n+Math.PI/2,i=-1*r+Math.PI/2;return b(b({},e),{},{x:t*Math.cos(o),y:t*Math.sin(o),angle:o,angle0:i})}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&&m(e,t)}(c,e);var t,n,o,i=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 n=(t=i.call(this,e))._getAllScaleProps(e);return t.state={scaleProps:n},t}return t=c,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.setState({scaleProps:this._getAllScaleProps(e)})}},{key:"_getAllScaleProps",value:function(e){var t=this._getDefaultScaleProps(e),n=(0,u.extractScaleProps
41FromProps)(e,S),r=(0,u.getMissingScaleProps)(b(b({},t),n),e.data,S);return b(b(b({},t),n),r)}},{key:"_getDefaultScaleProps",value:function(e){var t=e.innerWidth,n=e.innerHeight,r=Math.min(t/2,n/2);return{radiusRange:[0,r],_radiusValue:r,angleType:"literal"}}},{key:"render",value:function(){var e=this,t=this.props,n=t.arcClassName,o=t.animation,i=t.className,f=t.center,h=t.data,m=t.disableSeries,g=t.hideSeries,y=t.marginLeft,v=t.marginTop,_=t.padAngle,S=t.style;if(!h)return null;if(o){var E=h.map(function(e){return b({},e)});return r.default.createElement("g",{className:"rv-xy-plot__series--arc__animation-wrapper"},r.default.createElement(a.default,p({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS,data:E}),r.default.createElement(c,p({},this.props,{animation:null,disableSeries:!0,data:E}))),r.default.createElement(c,p({},this.props,{animation:null,hideSeries:!0,style:{stroke:"red"}})))}var T=this.state.scaleProps,x=T.radiusDomain,O=(0,u.getAttributeFunctor)(T,"radius"),C=(0,u.getAttr0Functor)(T,"radius"),P=(0,u.getAttributeFunctor)(T,"angle"),A=(0,u.getAttr0Functor)(T,"angle"),I=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),R=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),j=this._getAttributeFunctor("opacity"),M=this._getAttributeFunctor("x"),D=this._getAttributeFunctor("y");return r.default.createElement("g",{className:(0,d.getCombinedClassName)(w,i),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(f),",").concat(v+D(f),")")},h.map(function(t,o){var i={innerRadius:x[1]===x[0]?0:C(t),outerRadius:O(t),startAngle:A(t)||0,endAngle:P(t)},a=(0,s.default)().padAngle(_),l=t.style||{},c=t.className||"";return r.default.createElement("path",{key:"path-".concat(o),style:b(b({opacity:j&&j(t),stroke:R&&R(t),fill:I&&I(t)},S),l),onClick:function(n){return e._valueClickHandler(k(t),n)},onContextMenu:function(n){return e._valueRightClickHandler(k(t),n)},onMouseOver:function(n){return e._valueMouseOverHandler(k(t),n)},onMouseOut:function(n){return e._valueMouseOutHandler(k(t),n)},className:"".concat(w,"-path ").concat(n," ").concat(c),d:a(i)})}))}}])&&h(t.prototype,n),o&&h(t,o),c}(c.default);T.propTypes=b(b(b(b({},c.default.propTypes),(0,u.getScalePropTypesByAttribute)("radius")),(0,u.getScalePropTypesByAttribute)("angle")),{},{center:i().shape({x:i().number,y:i().number}),arcClassName:i().string,padAngle:i().oneOfType([i().func,i().number])}),T.defaultProps=E,T.displayName="ArcSeries";const x=T},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f}),n.dn(f);var r=n(2160),o=n(2161),i=n(2162);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 d(e,t,n,r,i,a,s){var l=e-n,c=t-r,u=(s?a:-a)/(0,o.sqrt)(l*l+c*c),d=u*c,f=-u*l,p=e+d,h=t+f,m=n+d,g=r+f,y=(p+m)/2,v=(h+g)/2,b=m-p,_=g-h,w=b*b+_*_,S=i-a,E=p*g-m*h,k=(_<0?-1:1)*(0,o.sqrt)((0,o.max)(0,S*S*w-E*E)),T=(E*_-b*k)/w,x=(-E*b-_*k)/w,O=(E*_+b*k)/w,C=(-E*b+_*k)/w,P=T-y,A=x-v,I=O-y,R=C-v;return P*P+A*A>I*I+R*R&&(T=O,x=C),{cx:T,cy:x,x01:-d,y01:-f,x11:T*(i/S-1),y11:x*(i/S-1)}}function f(){var e=a,t=s,n=(0,r.default)(0),f=null,p=l,h=c,m=u,g=null,y=(0,i.withPath)(v);function v(){var r,i,a=+e.apply(this,arguments),s=+t.apply(this,arguments),l=p.apply(this,arguments)-o.halfPi,c=h.apply(this,arguments)-o.halfPi,u=(0,o.abs)(c-l),v=c>l;if(g||(g=r=y()),s<a&&(i=s,s=a,a=i),s>o.epsilon)if(u>o.tau-o.epsilon)g.moveTo(s*(0,o.cos)(l),s*(0,o.sin)(l)),g.arc(0,0,s,l,c,!v),a>o.epsilon&&(g.moveTo(a*(0,o.cos)(c),a*(0,o.sin)(c)),g.arc(0,0,a,c,l,v));else{var b,_,w=l,S=c,E=l,k=c,T=u,x=u,O=m.apply(this,arguments)/2,C=O>o.epsilon&&(f?+f.apply(this,arguments):(0,o.sqrt)(a*a+s*s)),P=(0,o.min)((0,o.abs)(s-a)/2,+n.apply(this,arguments)),A=P,I=P;if(C>o.epsilon){var R=(0,o.asin)(C/a*(0,o.sin)(O)),j=(0,o.asin)(C/s*(0,o.sin)(O));(T-=2*R)>o.epsilon?(E+=R*=v?1:-1,k-=R):(T=0,E=k=(l+c)/2),(x-=2*j)>o.epsilon?(w+=j*=v?1:-1,S-=j):(x=0,w=S=(l+c)/2)}var M=s*(0,o.cos)(w),D=s*(0,o.sin)(w),N=a*(0,o.cos)(k),L=a*(0,o.sin)(k);if(P>o.epsilon){var F,B=s*(0,o.cos)(S),z=s*(0,o.sin)(S),U=a*(0,o.cos)(E),H=a*(0,o.sin)(E);if(u<o.pi)if(F=function(e,t,n,r,i,a,s,l){var c=n-e,u=r-t,d=s-i,f=l-a,p=f*c-d*u;if(!(p*p<o.epsilon))return[e+(p=(d*(t-a)-f*(e-i))/p)*c,t+p*u]}(M,D,U,H,B,z,N,L)){var V=M-F[0],q=D-F[1],G=B-F[0],W=z-F[1],$=1/(0,o.sin)((0,o.acos)((V*G+q*W)/((0,o.sqrt)(V*V+q*q)*(0,o.sqrt)(G*G+W*W)))/2),Y=(0,o.sqrt)(F[0]*F[0]+F[1]*F[1]);A=(0,o.min)(P,(a-Y)/($-1)),I=(0,o.min)(P,(s-Y)/($+1))}else A=I=0}x>o.epsilon?I>o.epsilon?(b=d(U,H,M,D,s,I,v),_=d(B,z,N,L,s,I,v),g.moveTo(b.cx+b.x01,b.cy+b.y01),I<P?g.arc(b.cx,b.cy,I,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,I,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(b.y11,b.x11),!v),g.arc(0,0,s,(0,o.atan2)(b.cy+b.y11,b.cx+b.x11),(0,o.atan2)(_.cy+_.y11,_.cx+_.x11),!v),g.arc(_.cx,_.cy,I,(0,o.atan2)(_.y11,_.x11),(0,o.atan2)(_.y01,_.x01),!v))):(g.moveTo(M,D),g.arc(0,0,s,w,S,!v)):g.moveTo(M,D),a>o.epsilon&&T>o.epsilon?A>
vendor: 4,611 bytes, line 41
41o.epsilon?(b=d(N,L,B,z,a,-A,v),_=d(M,D,U,H,a,-A,v),g.lineTo(b.cx+b.x01,b.cy+b.y01),A<P?g.arc(b.cx,b.cy,A,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(_.y01,_.x01),!v):(g.arc(b.cx,b.cy,A,(0,o.atan2)(b.y01,b.x01),(0,o.atan2)(b.y11,b.x11),!v),g.arc(0,0,a,(0,o.atan2)(b.cy+b.y11,b.cx+b.x11),(0,o.atan2)(_.cy+_.y11,_.cx+_.x11),v),g.arc(_.cx,_.cy,A,(0,o.atan2)(_.y11,_.x11),(0,o.atan2)(_.y01,_.x01),!v))):g.arc(0,0,a,k,E,v):g.lineTo(N,L)}else g.moveTo(0,0);if(g.closePath(),r)return g=null,r+""||null}return v.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+p.apply(this,arguments)+ +h.apply(this,arguments))/2-o.pi/2;return[(0,o.cos)(r)*n,(0,o.sin)(r)*n]},v.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.default)(+t),v):e},v.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),v):t},v.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:(0,r.default)(+e),v):n},v.padRadius=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:(0,r.default)(+e),v):f},v.startAngle=function(e){return arguments.length?(p="function"==typeof e?e:(0,r.default)(+e),v):p},v.endAngle=function(e){return arguments.length?(h="function"==typeof e?e:(0,r.default)(+e),v):h},v.padAngle=function(e){return arguments.length?(m="function"==typeof e?e:(0,r.default)(+e),v):m},v.context=function(e){return arguments.length?(g=e??null,v):g},v}},(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{abs:()=>r,acos:()=>h,asin:()=>m,atan2:()=>o,cos:()=>i,epsilon:()=>u,halfPi:()=>f,max:()=>a,min:()=>s,pi:()=>d,sin:()=>l,sqrt:()=>c,tau:()=>p});const r=Math.abs,o=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,d=Math.PI,f=d/2,p=2*d;function h(e){return e>1?0:e<-1?d:Math.acos(e)}function m(e){return e>=1?f:e<=-1?-f:Math.asin(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{withPath:()=>o});var r=n(2163);function o(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new r.Path(t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Path:()=>l,path:()=>c,pathRound:()=>u});const r=Math.PI,o=2*r,i=1e-6,a=o-i;function s(e){this._+=e[0];for(let t=1,n=e.length;t<n;++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 n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+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,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,o,a){if(e=+e,t=+t,n=+n,o=+o,(a=+a)<0)throw new Error(`negative radius: ${a}`);let s=this._x1,l=this._y1,c=n-e,u=o-t,d=s-e,f=l-t,p=d*d+f*f;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>i)if(Math.abs(f*c-u*d)>i&&a){let h=n-s,m=o-l,g=c*c+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(p),_=a*Math.tan((r-Math.acos((g+p-y)/(2*v*b)))/2),w=_/b,S=_/v;Math.abs(w-1)>i&&this._append`L${e+w*d},${t+w*f}`,this._append`A${a},${a},0,0,${+(f*h>d*m)},${this._x1=e+S*c},${this._y1=t+S*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,n,s,l,c){if(e=+e,t=+t,c=!!c,(n=+n)<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(s),d=n*Math.sin(s),f=e+u,p=t+d,h=1^c,m=c?s-l:l-s;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>i||Math.abs(this._y1-p)>i)&&this._append`L${f},${p}`,n&&(m<0&&(m=m%o+o),m>a?this._append`A${n},${n},0,1,${h},${e-u},${t-d}A${n},${n},0,1,${h},${this._x1=f},${this._y1=p}`:m>i&&this._append`A${n},${n},0,${+(m>=r)},${h},${this._x1=e+n*Math.cos(l)},${this._y1=t+n*Math.sin(l)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function c(){return new l}function u(e=3){return new l(+e)}c.prototype=l.prototype},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ANIMATED_SERIES_PROPS:()=>h,getRadialDomain:()=>p,getSeriesChildren:()=>u,getSeriesPropsFromChildren:()=>f,getStackParams:()=>m,getStackedData:()=>d,isSeriesChild:()=>c});
41var r=n(396),o=n(2057),i=n(2165);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){return e.type.prototype instanceof o.default}function u(e){return r.default.Children.toArray(e).filter(function(e){return e&&c(e)})}function d(e,t){var n=e.some(function(e){return e&&e.props.stack}),r={};return e.reduce(function(e,o){if(!o)return e.push(null),e;var i=o.type.displayName,a=o.props,c=a.data,u=a.cluster,d=void 0===u?"default":u,f=a.stack,p=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||!p||!p.length||n&&!f)return e.push(p),e;var h="".concat(t,"0"),m="y"===t?"x":"y";return e.push(p.map(function(e){var n,o;r[d]||(r[d]={}),r[d][i]||(r[d][i]={});var a,c=r[d][i][e[m]];if(!c)return r[d][i][e[m]]=(l(a={},h,e[h]),l(a,t,e[t]),a),s({},e);var u=s(s({},e),{},(l(n={},h,c[t]),l(n,t,c[t]+e[t]-(e[h]||0)),n));return r[d][i][e[m]]=(l(o={},h,u[h]),l(o,t,u[t]),o),u})),e},[])}function f(e){var t=[],n=function(e){var t={};return e.filter(c).forEach(function(e){var n=e.type.displayName,r=e.props.cluster;t[n]||(t[n]={sameTypeTotal:0,sameTypeIndex:0,clusters:new Set}),t[n].clusters.add(r),t[n].sameTypeTotal++}),t}(e),r=0,o=i.DEFAULT_OPACITY;return e.forEach(function(e){var a;if(c(e)){var l=n[e.type.displayName],u=i.DISCRETE_COLOR_RANGE[r%i.DISCRETE_COLOR_RANGE.length];a=s(s({},l),{},{seriesIndex:r,_colorValue:u,_opacityValue:o}),l.sameTypeIndex++,r++,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 p(e){return e.reduce(function(e,t){return Math.max(t.radius,e)},0)}var h=["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,n=e.valuePosAttr,r=e.cluster,o=e.sameTypeTotal,i=void 0===o?1:o,a=e.sameTypeIndex,s=void 0===a?0:a;return t!==n||r||(i=1,s=0),{sameTypeTotal:i,sameTypeIndex:s}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CONTINUOUS_COLOR_RANGE:()=>i,DEFAULT_COLOR:()=>d,DEFAULT_OPACITY:()=>c,DEFAULT_SIZE:()=>u,DEFAULT_TICK_SIZE:()=>f,DISCRETE_COLOR_RANGE:()=>r,EXTENDED_DISCRETE_COLOR_RANGE:()=>o,OPACITY_RANGE:()=>s,OPACITY_TYPE:()=>l,SIZE_RANGE:()=>a});var r=["#12939A","#79C7E3","#1A3177","#FF9833","#EF5D28"],o=["#19CDD7","#DDB27C","#88572C","#FF991F","#F15C17","#223F9A","#DA70BF","#125C77","#4DC19C","#776E57","#12939A","#17B8BE","#F6D18A","#B7885E","#FFCB99","#F89570","#829AE3","#E79FD5","#1E96BE","#89DAC1","#B3AD9E"],i=["#EF5D28","#FF9833"],a=[1,10],s=[.1,1],l="literal",c=1,u=5,d=r[0],f=7},(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e&&"string"==typeof e}).join(" ")}n.r(t),n.d(t,{getCombinedClassName:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(396),o=n(787),i=n.n(o),a=n(2168),s=n(2169),l=n(2068),c=n(2165),u=n(2164),d=n(2156),f=n(2166),p=n(2057);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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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 n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(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&&_(e,t)}(p,e);var t,n,o,i=w(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:"_renderArea",value:function(e,t,n,r,o,i){var l=s.default();return null!==o&&("string"==typeof o&&a[o]?l=l.curve(a[o]):"function"==typeof o&&(l=l.curve(o))),(l=(l=l.defined(i)).x(t).y0(n).y1(r))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,o=e.curve,i=e.data,a=e.marginLeft,s=e.marginTop,h=e.style;if(this.props.nullAccessor&&(0,d.warning)("nullAccessor has been renamed to getNull",!0),!i)return null;if(t)return r.default.createElement(l.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),r.default.createElement(p,v({},this.props,{animation:null})));var m=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),b=this._getAttr0Functor("y"),_=this._getAttributeValue("stroke")||this._getAttributeValue("color"),w=this._getAttributeValue("fill")||this._getAttributeValue("color"),S=this._getAttributeValue("opacity"),E=Number.isFinite(S)?S:c.DEFAULT_OPACITY,k=this.props.nullAccessor||this.props.getNull,T=this._renderArea(i,m,b,y,o,k);return r.default.createElement("path",{d:T,className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",n),transform:"translate(".concat(a,",").concat(s,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:E,stroke:_,fill:w},h)})}}])&&b(t.prototype,n),o&&b(t,o),p}(p.default);E.displayName="AreaSeries",E.propTypes=g(g({},p.default.propTypes),{},{getNull:i().func}),E.defaultProps=g(g({},p.default.defaultProps),{},{getNull:function(){return!0}});const k=E},(e,t,n)=>{"use strict";n.r(t),n.d(t,{arc:()=>r.default,area:()=>o.default,areaRadial:()=>s.default,curveBasis:()=>O.default,curveBasisClosed:()=>T.default,curveBasisOpen:()=>x.default,curveBumpX:()=>C.bumpX,curveBumpY:()=>C.bumpY,curveBundle:()=>P.default,curveCardinal:()=>R.default,curveCardinalClosed:()=>A.default,curveCardinalOpen:()=>I.default,curveCatmullRom:()=>D.default,curveCatmullRomClosed:()=>j.default,curveCatmullRomOpen:()=>M.default,curveLinear:()=>L.default,curveLinearClosed:()=>N.default,curveMonotoneX:()=>F.monotoneX,curveMonotoneY:()=>F.monotoneY,curveNatural:()=>B.default,curveStep:()=>z.default,curveStepAfter:()=>z.stepAfter,curveStepBefore:()=>z.stepBefore,line:()=>i.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:()=>U.default,stackOffsetDiverging:()=>V.default,stackOffsetExpand:()=>H.default,stackOffsetNone:()=>q.default,stackOffsetSilhouette:()=>G.default,stackOffsetWiggle:()=>W.default,stackOrderAppearance:()=>$.default,stackOrderAscending:()=>Y.default,stackOrderDescending:()=>K.default,stackOrderInsideOut:()=>J.default,stackOrderNone:()=>Q.default,stackOrderReverse:()=>
41X.default,symbol:()=>d.default,symbolAsterisk:()=>f.default,symbolCircle:()=>p.default,symbolCross:()=>h.default,symbolDiamond:()=>m.default,symbolDiamond2:()=>g.default,symbolPlus:()=>y.default,symbolSquare:()=>v.default,symbolSquare2:()=>b.default,symbolStar:()=>_.default,symbolTimes:()=>k.default,symbolTriangle:()=>w.default,symbolTriangle2:()=>S.default,symbolWye:()=>E.default,symbolX:()=>k.default,symbols:()=>d.symbolsFill,symbolsFill:()=>d.symbolsFill,symbolsStroke:()=>d.symbolsStroke});var r=n(2159),o=n(2169),i=n(2172),a=n(2174),s=n(2177),l=n(2179),c=n(2180),u=n(2181),d=n(2183),f=n(2184),p=n(2185),h=n(2186),m=n(2187),g=n(2188),y=n(2189),v=n(2190),b=n(2191),_=n(2192),w=n(2193),S=n(2194),E=n(2195),k=n(2196),T=n(2197),x=n(2200),O=n(2199),C=n(2182),P=n(2201),A=n(2202),I=n(2204),R=n(2203),j=n(2205),M=n(2207),D=n(2206),N=n(2208),L=n(2171),F=n(2209),B=n(2210),z=n(2211),U=n(2212),H=n(2215),V=n(2216),q=n(2213),G=n(2217),W=n(2218),$=n(2219),Y=n(2220),K=n(2221),J=n(2222),Q=n(2214),X=n(2223)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c}),n.dn(c);var r=n(2170),o=n(2160),i=n(2171),a=n(2172),s=n(2162),l=n(2173);function c(e,t,n){var c=null,u=(0,o.default)(!0),d=null,f=i.default,p=null,h=(0,s.withPath)(m);function m(o){var i,a,s,l,m,g=(o=(0,r.default)(o)).length,y=!1,v=new Array(g),b=new Array(g);for(null==d&&(p=f(m=h())),i=0;i<=g;++i){if(!(i<g&&u(l=o[i],i,o))===y)if(y=!y)a=i,p.areaStart(),p.lineStart();else{for(p.lineEnd(),p.lineStart(),s=i-1;s>=a;--s)p.point(v[s],b[s]);p.lineEnd(),p.areaEnd()}y&&(v[i]=+e(l,i,o),b[i]=+t(l,i,o),p.point(c?+c(l,i,o):v[i],n?+n(l,i,o):b[i]))}if(m)return p=null,m+""||null}function g(){return(0,a.default)().defined(u).curve(f).context(d)}return e="function"==typeof e?e:void 0===e?l.x:(0,o.default)(+e),t="function"==typeof t?t:void 0===t?(0,o.default)(0):(0,o.default)(+t),n="function"==typeof n?n:void 0===n?l.y:(0,o.default)(+n),m.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),c=null,m):e},m.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),m):e},m.x1=function(e){return arguments.length?(c=null==e?null:"function"==typeof e?e:(0,o.default)(+e),m):c},m.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),n=null,m):t},m.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),m):t},m.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,o.default)(+e),m):n},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(n)},m.lineX1=function(){return g().x(c).y(t)},m.defined=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(!!e),m):u},m.curve=function(e){return arguments.length?(f=e,null!=d&&(p=f(d)),m):f},m.context=function(e){return arguments.length?(null==e?d=p=null:p=f(d=e),m):d},m}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,slice:()=>r}),n.dn(o);var r=Array.prototype.slice;function o(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}},(e,t,n)=>{"use strict";function r(e){this._context=e}function o(e){return new r(e)}n.r(t),n.d(t,{default:()=>o}),n.dn(o),r.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,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n.dn(l);var r=n(2170),o=n(2160),i=n(2171),a=n(2162),s=n(2173);function l(e,t){var n=(0,o.default)(!0),l=null,c=i.default,u=null,d=(0,a.withPath)(f);function f(o){var i,a,s,f=(o=(0,r.default)(o)).length,p=!1;for(null==l&&(u=c(s=d())),i=0;i<=f;++i)!(i<f&&n(a=o[i],i,o))===p&&((p=!p)?u.lineStart():u.lineEnd()),p&&u.point(+e(a,i,o),+t(a,i,o));if(s)return u=null,s+""||null}return e="function"==typeof e?e:void 0===e?s.x:(0,o.default)(e),t="function"==typeof t?t:void 0===t?s.y:(0,o.default)(t),f.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),f):e},f.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,o.default)(+e),f):t},f.defined=function(e){return arguments.length?(n="function"==typeof e?e:(0,o.default)(!!e),f):n},f.curve=function(e){return arguments.length?(c=e,null!=l&&(u=c(l)),f):c},f.context=function(e){return arguments.length?(null==e?l=u=null:u=c(l=e),f):l},f}},(e,t,n)=>{"use strict";function r(e){return e[0]}function o(e){return e[1]}n.r(t),n.d(t,{x:()=>r,y:()=>o})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n.dn(l);var r=n(2170),o=n(2160),i=n(2175),a=n(2176),s=n(2161);function l(){var e=a.default,t=i.default,n=null,l=(0,o.default)(0),c=(0,o.default)(s.tau),u=(0,o.default)(0);function d(o){var i,a,d,f,p,h=(o=(0,r.default)(o)).length,m=0,g=new Array(h),y=new Array(h),v=+l.apply(this,arguments),b=Math.min(s.tau,Math.max(-s.tau,c.apply(this,arguments)-v)),_=Math.min(Math.abs(b)/h,u.apply(this,arguments)),w=_*(b<0?-1:1);for(i=0;i<h;++i)(p=y[g[i]=i]=+e(o[i],i,o))>0&&(m+=p);for(null!=t?g.sort(function(e,n){return t(y[e],y[n])}):null!=n&&g.sort(function(e,t){return n(o[e],o[t])}),i=0,d=m?(b-h*w)/m:0;i<h;++i,v=f)a=g[i],f=v+((p=y[a])>0?p*d:0)+w,y[a]={data:o[a],index:i,value:p,startAngle:v,endAngle:f,padAngle:_};return y}return d.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(+t),d):e},d.sortValues=function(e){return arguments.length?(t=e,n=null,d):t},d.sort=function(e){return arguments.length?(n=e,t=null,d):n},d.startAngle=function(e){return arguments.length?(l="function"==typeof e?e:(0,o.default)(+e),d):l},d.endAngle=function(e){return arguments.length?(c="function"==typeof e?e:(0,o.default)(+e),d):c},d.padAngle=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),d):u},d}},(e,t,n)=>{"use strict";function r(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return e}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);var r=n(2178),o=n(2169),i=n(2179);function a(){var e=(0,o.default)().curve(r.curveRadialLinear),t=e.curve,
vendor: 26,739 bytes, line 41
41n=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,i.lineRadial)(n())},delete e.lineX0,e.lineEndAngle=function(){return(0,i.lineRadial)(a())},delete e.lineX1,e.lineInnerRadius=function(){return(0,i.lineRadial)(s())},delete e.lineY0,e.lineOuterRadius=function(){return(0,i.lineRadial)(l())},delete e.lineY1,e.curve=function(e){return arguments.length?t((0,r.default)(e)):t()._curve},e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{curveRadialLinear:()=>r,default:()=>i});var r=i(n(2171).default);function o(e){this._curve=e}function i(e){function t(t){return new o(e(t))}return t._curve=e,t}o.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,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a,lineRadial:()=>i}),n.dn(a);var r=n(2178),o=n(2172);function i(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,r.default)(e)):t()._curve},e}function a(){return i((0,o.default)().curve(r.curveRadialLinear))}},(e,t,n)=>{"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{link:()=>u,linkHorizontal:()=>d,linkRadial:()=>p,linkVertical:()=>f});var r=n(2170),o=n(2160),i=n(2182),a=n(2162),s=n(2173);function l(e){return e.source}function c(e){return e.target}function u(e){let t=l,n=c,i=s.x,u=s.y,d=null,f=null,p=(0,a.withPath)(h);function h(){let o;const a=r.slice.call(arguments),s=t.apply(this,a),l=n.apply(this,a);if(null==d&&(f=e(o=p())),f.lineStart(),a[0]=s,f.point(+i.apply(this,a),+u.apply(this,a)),a[0]=l,f.point(+i.apply(this,a),+u.apply(this,a)),f.lineEnd(),o)return f=null,o+""||null}return h.source=function(e){return arguments.length?(t=e,h):t},h.target=function(e){return arguments.length?(n=e,h):n},h.x=function(e){return arguments.length?(i="function"==typeof e?e:(0,o.default)(+e),h):i},h.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,o.default)(+e),h):u},h.context=function(t){return arguments.length?(null==t?d=f=null:f=e(d=t),h):d},h}function d(){return u(i.bumpX)}function f(){return u(i.bumpY)}function p(){const e=u(i.bumpRadial);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{bumpRadial:()=>l,bumpX:()=>a,bumpY:()=>s});var r=n(2180);class o{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 i{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 n=(0,r.default)(this._x0,this._y0),o=(0,r.default)(this._x0,this._y0=(this._y0+t)/2),i=(0,r.default)(e,this._y0),a=(0,r.default)(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...o,...i,...a)}this._x0=e,this._y0=t}}function a(e){return new o(e,!0)}function s(e){return new o(e,!1)}function l(e){return new i(e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_,symbolsFill:()=>v,symbolsStroke:()=>b});var r=n(2160),o=n(2162),i=n(2184),a=n(2185),s=n(2186),l=n(2187),c=n(2188),u=n(2189),d=n(2190),f=n(2191),p=n(2192),h=n(2193),m=n(2194),g=n(2195),y=n(2196);const v=[a.default,s.default,l.default,d.default,p.default,h.default,g.default],b=[a.default,u.default,y.default,m.default,i.default,f.default,c.default];function _(e,t){let n=null,i=(0,o.withPath)(s);function s(){let r;if(n||(n=r=i()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"==typeof e?e:(0,r.default)(e||a.default),t="function"==typeof t?t:(0,r.default)(void 0===t?64:+t),s.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,r.default)(t),s):e},s.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),s):t},s.context=function(e){return arguments.length?(n=e??null,s):n},s}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2161);const o=(0,r.sqrt)(3),i={draw(e,t){const n=.59436*(0,r.sqrt)(t+(0,r.min)(t/28,.75)),i=n/2,a=i*o;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-i),e.lineTo(a,i),e.moveTo(-a,i),e.lineTo(a,-i)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=(0,r.sqrt)(t/r.pi);e.moveTo(n,0),e.arc(0,0,n,0,r.tau)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=(0,r.sqrt)(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2161);const o=(0,r.sqrt)(1/3),i=2*o,a={draw(e,t){const n=(0,r.sqrt)(t/i),a=n*o;e.moveTo(0,-n),e.lineTo(a,0),e.lineTo(0,n),e.lineTo(-a,0),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=.62625*(0,r.sqrt)(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=.87559*(0,r.sqrt)(t-(0,r.min)(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=(0,r.sqrt)(t),o=-n/2;e.rect(o,o,n,n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=.4431*(0,r.sqrt)(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(2161);const o=(0,r.sin)(r.pi/10)/(0,r.sin)(7*r.pi/10),i=(0,r.sin)(r.tau/10)*o,a=-(0,r.cos)(r.tau/10)*o,s={draw(e,t){const n=(0,r.sqrt)(.8908130915292852*t),o=i*n,s=a*n;e.moveTo(0,-n),e.lineTo(o,s);for(let t=1;t<5;++t){const i=r.tau*t/5,a=(0,r.cos)(i),l=(0,r.sin)(i);e.lineTo(l*n,-a*n),e.lineTo(a*o-l*s,l*o+a*s)}e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2161);const o=(0,r.sqrt)(3),i={draw(e,t){const n=-(0,r.sqrt)(t/(3*o));e.moveTo(0,2*n),e.lineTo(-o*n,-n),e.lineTo(o*n,-n),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2161);const o=(0,r.sqrt)(3),i={draw(e,t){const n=.6824*(0,r.sqrt)(t),i=n/2,a=n*o/2;e.moveTo(0,-n),e.lineTo(a,i),e.lineTo(-a,i),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(2161);const o=-.5,i=(0,r.sqrt)(3)/2,a=1/(0,r.sqrt)(12),s=3*(a/2+1),l={draw(e,t){const n=(0,r.sqrt)(t/s),l=n/2,c=n*a,u=l,d=n*a+n,f=-u,p=d;e.moveTo(l,c),e.lineTo(u,d),e.lineTo(f,p),e.lineTo(o*l-i*c,i*l+o*c),e.lineTo(o*u-i*d,i*u+o*d),e.lineTo(o*f-i*p,i*f+o*p),e.lineTo(o*l+i*c,o*c-i*l),e.lineTo(o*u+i*d,o*d-i*u),e.lineTo(o*f+i*p,o*p-i*f),e.closePath()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2161);const o={draw(e,t){const n=.6189*(0,r.sqrt)(t-(0,r.min)(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);var r=n(2198),o=n(2199);function i(e){this._context=e}function a(e){return new i(e)}i.prototype={areaStart:r.default,areaEnd:r.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,o.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,n)=>{"use strict";function r(){}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t,n){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+n)/6)}function o(e){this._context=e}function i(e){return new o(e)}n.r(t),n.d(t,{Basis:()=>o,default:()=>i,point:()=>r}),n.dn(i),o.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:r(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:r(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n.dn(i);var r=n(2199);function o(e){this._context=e}function i(e){return new o(e)}o.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 n=(this._x0+4*this._x1+e)/6,o=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,o):this._context.moveTo(n,o);break;case 3:this._point=4;default:(0,r.point)(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2199);function o(e,t){this._basis=new r.Basis(e),this._beta=t}o.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const i=function e(t){function n(e){return 1===t?new r.Basis(e):new o(e,t)}return n.beta=function(t){return e(+t)},n}(.85)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CardinalClosed:()=>i,default:()=>a});var r=n(2198),o=n(2203);function i(e,t){this._context=e,this._k=(1-t)/6}i.prototype={areaStart:r.default,areaEnd:r.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,o.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 n(e){return new i(e,t)}return n.tension=function(t){return e(+t)},n}(0)},(e,t,n)=>{"use strict";function r(e,t,n){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-n),e._x2,e._y2)}function o(e,t){this._context=e,this._k=(1-t)/6}n.r(t),n.d(t,{Cardinal:()=>o,default:()=>i,point:()=>r}),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._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(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:r(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 i=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CardinalOpen:()=>o,default:()=>i});var r=n(2203);function o(e,t){this._context=e,this._k=(1-t)/6}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._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,r.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 i=function e(t){function n(e){return new o(e,t)}return n.tension=function(t){return e(+t)},n}(0)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(2202),o=n(2198),i=n(2206);function a(e,t){this._context=e,this._alpha=t}a.prototype={areaStart:o.default,areaEnd:o.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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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,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 s=function e(t){function n(e){return t?new a(e,t):new r.CardinalClosed(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,point:()=>i});var r=n(2161),o=n(2203);function i(e,t,n){var o=e._x1,i=e._y1,a=e._x2,s=e._y2;if(e._l01_a>r.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);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>r.epsilon){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(o,i,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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:i(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 n(e){return t?new a(e,t):new o.Cardinal(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2204),o=n(2206);function i(e,t){this._context=e,this._alpha=t}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._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 n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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,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 a=function e(t){function n(e){return t?new i(e,t):new r.CardinalOpen(e,0)}return n.alpha=function(t){return e(+t)},n}(.5)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n.dn(i);var r=n(2198);function o(e){this._context=e}function i(e){return new o(e)}o.prototype={areaStart:r.default,areaEnd:r.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,n)=>{"use strict";function r(e){return e<0?-1:1}function o(e,t,n){var o=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(o||i<0&&-0),s=(n-e._y1)/(i||o<0&&-0),l=(a*i+s*o)/(o+i);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(l))||0}function i(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function a(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,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 d(e){return new l(e)}n.r(t),n.d(t,{monotoneX:()=>u,monotoneY:()=>d}),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,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=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,i(this,n=o(this,e,t)),n);break;default:a(this,this._t0,n=o(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(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,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}}},(e,t,n)=>{"use strict";function r(e){this._context=e}function o(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function i(e){return new r(e)}n.r(t),n.d(t,{default:()=>i}),n.dn(i),r.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=o(e),i=o(t),a=0,s=1;s<n;++a,++s)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[s],t[s]);(this._line||0!==this._line&&1===n)&&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,n)=>{"use strict";function r(e,t){this._context=e,this._t=t}function o(e){return new r(e,.5)}function i(e){return new r(e,0)}function a(e){return new r(e,1)}n.r(t),n.d(t,{default:()=>o,stepAfter:()=>a,stepBefore:()=>i}),n.dn(o),r.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c}),n.dn(c);var r=n(2170),o=n(2160),i=n(2213),a=n(2214);function s(e,t){return e[t]}function l(e){const t=[];return t.key=e,t}function c(){var e=(0,o.default)([]),t=a.default,n=i.default,c=s;function u(o){var i,a,s=Array.from(e.apply(this,arguments),l),u=s.length,d=-1;for(const e of o)for(i=0,++d;i<u;++i)(s[i][d]=[0,+c(e,s[i].key,d,o)]).data=e;for(i=0,a=(0,r.default)(t(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return u.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,o.default)(Array.from(t)),u):e},u.value=function(e){return arguments.length?(c="function"==typeof e?e:(0,o.default)(+e),u):c},u.order=function(e){return arguments.length?(t=null==e?a.default:"function"==typeof e?e:(0,o.default)(Array.from(e)),u):t},u.offset=function(e){return arguments.length?(n=e??i.default,u):n},u}},(e,t,n)=>{"use strict";function r(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2213);function o(e,t){if((o=e.length)>0){for(var n,o,i,a=0,s=e[0].length;a<s;++a){for(i=n=0;n<o;++n)i+=e[n][a][1]||0;if(i)for(n=0;n<o;++n)e[n][a][1]/=i}(0,r.default)(e,t)}}},(e,t,n)=>{"use strict";function r(e,t){if((s=e.length)>0)for(var n,r,o,i,a,s,l=0,c=e[t[0]].length;l<c;++l)for(i=a=0,n=0;n<s;++n)(o=(r=e[t[n]][l])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2213);function o(e,t){if((n=e.length)>0){for(var n,o=0,i=e[t[0]],a=i.length;o<a;++o){for(var s=0,l=0;s<n;++s)l+=e[s][o][1]||0;i[o][1]+=i[o][0]=-l/2}(0,r.default)(e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2213);function o(e,t){if((i=e.length)>0&&(o=(n=e[t[0]]).length)>0){for(var n,o,i,a=0,s=1;s<o;++s){for(var l=0,c=0,u=0;l<i;++l){for(var d=e[t[l]],f=d[s][1]||0,p=(f-(d[s-1][1]||0))/2,h=0;h<l;++h){var m=e[t[h]];p+=(m[s][1]||0)-(m[s-1][1]||0)}c+=f,u+=p*f}n[s-1][1]+=n[s-1][0]=a,c&&(a-=u/c)}n[s-1][1]+=n[s-1][0]=a,(0,r.default)(e,t)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2214);function o(e){var t=e.map(i);return(0,r.default)(e).sort(function(e,n){return t[e]-t[n]})}function i(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o,sum:()=>i}),n.dn(o);var r=n(2214);function o(e){var t=e.map(i);return(0,r.default)(e).sort(function(e,n){return t[e]-t[n]})}function i(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2220);function o(e){return(0,r.default)(e).reverse()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n.dn(i);var r=n(2219),o=n(2220);function i(e){var t,n,i=e.length,a=e.map(o.sum),s=(0,r.default)(e),l=0,c=0,u=[],d=[];for(t=0;t<i;++t)n=s[t],l<c?(l+=a[n],u.push(n)):(c+=a[n],d.push(n));return d.reverse().concat(u)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n.dn(o);var r=n(2214);function o(e){return(0,r.default)(e).reverse()}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(396),o=n(787),i=n.n(o),a=n(2166);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={style:i().shape({bottom:i().object,left:i().object,right:i().object,top:i().object}),marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},d="rv-xy-plot__borders-bottom",f="rv-xy-plot__borders",p="rv-xy-plot__borders-left",h="rv-xy-plot__borders-right",m="rv-xy-plot__borders-top";function g(e){var t=e.marginTop,n=e.marginBottom,o=e.marginLeft,i=e.marginRight,s=e.innerWidth,c=e.innerHeight,u=e.style,g=e.className,y=c+t+n,v=s+o+i;return r.default.createElement("g",{className:(0,a.getCombinedClassName)(f,g)},r.default.createElement("rect",{className:(0,a.getCombinedClassName)(d,"".concat(g,"-bottom")),style:l(l({},u.all),u.bottom),x:0,y:y-n,width:v,height:n}),r.default.createElement("rect",{className:(0,a.getCombinedClassName)(p,"".concat(g,"-left")),style:l(l({},u.all),u.left),x:0,y:0,width:o,height:y}),r.default.createElement("rect",{className:(0,a.getCombinedClassName)(h,"".concat(g,"-right")),style:l(l({},u.all),u.right),x:v-i,y:0,width:i,height:y}),r.default.createElement("rect",{className:(0,a.getCombinedClassName)(m,"".concat(g,"-top")),style:l(l({},u.all),u.top),x:0,y:0,width:v,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,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(787),i=n.n(o),a=n(2166);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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&c(e,t)}(s,e);var t,n,o,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return t=s,o=[{key:"requiresSVG",get:function(){return!0}}],(n=[{key:"render",value:function(){var e=this.props,t=e.innerHeight,n=e.innerWidth,o=e.marginBottom,i=e.marginLeft,s=e.marginRight,l=e.marginTop,c=e.className,u=e.includeMargin,d=e.style,f=e.text,p=(n+(u?i+s:0))*e.xPercent+(u?0:i),h=(t+(u?l+o:0))*e.yPercent+(u?l:0);return r.default.createElement("g",{transform:"translate(".concat(p,", ").concat(h,")"),className:(0,a.getCombinedClassName)("rv-xy-plot__axis__title",c)},r.default.createElement("text",d,f))}}])&&l(t.prototype,n),o&&l(t,o),s}(r.default.PureComponent);f.displayName="ChartLabel",f.propTypes={className:i().string,includeMargin:i().bool,style:i().object,text:i().string.isRequired,xPercent:i().number.isRequired,yPercent:i().number.isRequired},f.defaultProps={className:"",includeMargin:!0,text:"",xPercent:0,yPercent:0,style:{}};const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2098),s=n(2068),l=n(2227);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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var v=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],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,n,o,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:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop;return{left:e.marginLeft,top:r,width:t,height:n,style:{},tickTotal:(0,l.getTicksTotalFromSize)(Math.min(t,n))}}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.centerX,o=e.centerY;if(t)return r.default.createElement(s.default,p({},this.props,{animatedProps:v}),r.default.createElement(c,p({},this.props,{animation:null})));var i=d(d({},this._getDefaultProps()),this.props),u=i.tickTotal,f=i.tickValues,h=i.marginLeft,m=i.marginTop,g=i.rRange,y=i.style,b=(0,a.getAttributeScale)(i,"x"),_=(0,a.getAttributeScale)(i,"y"),w=(0,l.getTickValues)(b,u,f);return r.default.createElement("g",{transform:"translate(".concat(b(n)+h,",").concat(_(o)+m,")"),className:"rv-xy-plot__circular-grid-lines"},w.reduce(function(e,t,n){var o=b(t);return g&&(o<g[0]||o>g[1])?e:e.concat([r.default.createElement("circle",p({cx:0,cy:0,r:o},{key:n,className:"rv-xy-plot__circular-grid-lines__line",style:y}))])},[]))}}])&&h(t.prototype,n),o&&h(t,o),c}(r.PureComponent);b.displayName="CircularGridLines",b.propTypes={centerX:i().number,centerY:i().number,width:i().number,height:i().number,top:i().number,left:i().number,rRange:i().arrayOf(i().number),style:i().object,tickValues:i().arrayOf(i().number),tickTotal:i().number,animation:s.AnimationPropType,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},b.defaultProps={centerX:0,centerY:0},b.requiresSVG=!0;const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DIRECTION:()=>a,ORIENTATION:()=>i,default:()=>f,generateFit:()=>c,generatePoints:()=>u,getAxisAngle:()=>d,getTickValues:()=>l,getTicksTotalFromSize:()=>s});var r=n(2100),o=n(2104),i={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,n){return n||(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 n=(e.y-t.y)/(e.x-t.x);return{left:e.x,right:t.x,slope:n,offset:e.y-n*e.x}}function u(e){var t=e.axisStart,n=e.axisEnd,i=e.numberOfTicks,a=e.axisDomain,s=c(t,n),l=s.left,u=s.right,d=s.slope,f=s.offset,p=(u-l)/i,h=(0,o.default)().domain([l,u]).range(a),m=t.x===n.x;return{slope:m?1/0:d,points:(0,r.default)(l,u+p,p).map(function(e){return m?{y:e,x:d*e+f,text:h(e)}:{x:e,y:d*e+f,text:h(e)}}).slice(0,i+1)}}function d(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 f={DIRECTION:a,ORIENTATION:i,getTicksTotalFromSize:s,getTickValues:l}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(396),o=n(787),i=n.n(o),a=n(2229),s=n(2242),l=n(2104),c=n(2057),u=n(2068),d=n(2164),f=n(2166),p=n(2165);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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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 n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(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&&_(e,t)}(c,e);var t,n,o,i=w(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:"render",value:function(){var e=this.props,t=e.animation,n=e.bandwidth,o=e.className,i=e.colorRange,h=e.data,m=e.innerHeight,y=e.innerWidth,b=e.marginLeft,_=e.marginTop,w=e.style;if(!h||!y||!m)return null;if(t)return r.default.createElement(u.default,v({},this.props,{animatedProps:d.ANIMATED_SERIES_PROPS}),r.default.createElement(c,v({},this.props,{animation:null})));var S=this._getAttributeFunctor("x"),E=this._getAttributeFunctor("y"),k=(0,a.default)().x(function(e){return S(e)}).y(function(e){return E(e)}).size([y,m]).bandwidth(n)(h),T=(0,s.default)(),x=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})}(k),O=x.min,C=x.max,P=(0,l.default)().domain([O,C]).range(i||p.CONTINUOUS_COLOR_RANGE);return r.default.createElement("g",{className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--contour",o),transform:"translate(".concat(b,",").concat(_,")")},k.map(function(e,t){return r.default.createElement("path",{className:"rv-xy-plot__series--contour-line",key:"rv-xy-plot__series--contour-line-".concat(t),d:T(e),style:g({fill:P(e.value)},w)})}))}}])&&b(t.prototype,n),o&&b(t,o),c}(c.default);E.propTypes=g(g({},c.default.propTypes),{},{animation:i().bool,bandwidth:i().number,className:i().string,marginLeft:i().number,marginTop:i().number,style:i().object}),E.defaultProps=g(g({},c.default.defaultProps),{},{bandwidth:40,style:{}});const k=E},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f}),n.dn(f);var r=n(2230),o=n(2231),i=n(2105),a=n(2232),s=n(2233),l=n(2234);function c(e){return e[0]}function u(e){return e[1]}function d(){return 1}function f(){var e=c,t=u,n=d,f=960,p=500,h=20,m=2,g=3*h,y=f+2*g>>m,v=p+2*g>>m,b=(0,s.default)(20);function _(o){var i=new Float32Array(y*v),a=Math.pow(2,-m),s=-1;for(const r of o){var l=(e(r,++s,o)+g)*a,c=(t(r,s,o)+g)*a,u=+n(r,s,o);if(u&&l>=0&&l<y&&c>=0&&c<v){var d=Math.floor(l),f=Math.floor(c),p=l-d-.5,b=c-f-.5;i[d+f*y]+=(1-p)*(1-b)*u,i[d+1+f*y]+=p*(1-b)*u,i[d+1+(f+1)*y]+=p*b*u,i[d+(f+1)*y]+=(1-p)*b*u}}return(0,r.blur2)({data:i,width:y,height:v},h*a),i}function w(e){var t=_(e),n=b(t),r=Math.pow(2,2*m);return Array.isArray(n)||(n=(0,i.default)(Number.MIN_VALUE,(0,o.default)(t)/r,n)),(0,l.default)().size([y,v]).thresholds(n.map(e=>e*r))(t).map((e,t)=>(e.value=+n[t],S(e)))}
vendor: 2,022 bytes, line 41
41function S(e){return e.coordinates.forEach(E),e}function E(e){e.forEach(k)}function k(e){e.forEach(T)}function T(e){e[0]=e[0]*Math.pow(2,m)-g,e[1]=e[1]*Math.pow(2,m)-g}function x(){return y=f+2*(g=3*h)>>m,v=p+2*g>>m,w}return w.contours=function(e){var t=_(e),n=(0,l.default)().size([y,v]),r=Math.pow(2,2*m),i=e=>{e=+e;var o=S(n.contour(t,e*r));return o.value=e,o};return Object.defineProperty(i,"max",{get:()=>(0,o.default)(t)/r}),i},w.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,s.default)(+t),w):e},w.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,s.default)(+e),w):t},w.weight=function(e){return arguments.length?(n="function"==typeof e?e:(0,s.default)(+e),w):n},w.size=function(e){if(!arguments.length)return[f,p];var t=+e[0],n=+e[1];if(!(t>=0&&n>=0))throw new Error("invalid size");return f=t,p=n,x()},w.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),x()},w.thresholds=function(e){return arguments.length?(b="function"==typeof e?e:Array.isArray(e)?(0,s.default)(a.slice.call(e)):(0,s.default)(e),w):b},w.bandwidth=function(e){if(!arguments.length)return Math.sqrt(h*(h+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return h=(Math.sqrt(4*e*e+1)-1)/2,x()},w}},(e,t,n)=>{"use strict";function r(e,t){if(!((t=+t)>=0))throw new RangeError("invalid r");let n=e.length;if(!((n=Math.floor(n))>=0))throw new RangeError("invalid length");if(!n||!t)return e;const r=c(t),o=e.slice();return r(e,o,0,n,1),r(o,e,0,n,1),r(e,o,0,n,1),e}n.r(t),n.d(t,{blur:()=>r,blur2:()=>o,blurImage:()=>i});const o=a(c),i=a(function(e){const t=c(e);return(e,n,r,o,i)=>{t(e,n,(r<<=2)+0,(o<<=2)+0,i<<=2),t(e,n,r+1,o+1,i),t(e,n,r+2,o+2,i),t(e,n,r+3,o+3,i)}});function a(e){return function(t,n,r=n){if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((r=+r)>=0))throw new RangeError("invalid ry");let{data:o,width:i,height:a}=t;if(!((i=Math.floor(i))>=0))throw new RangeError("invalid width");
vendor: 5,193 bytes, line 41
41if(!((a=Math.floor(void 0!==a?a:o.length/i))>=0))throw new RangeError("invalid height");if(!i||!a||!n&&!r)return t;const c=n&&e(n),u=r&&e(r),d=o.slice();return c&&u?(s(c,d,o,i,a),s(c,o,d,i,a),s(c,d,o,i,a),l(u,o,d,i,a),l(u,d,o,i,a),l(u,o,d,i,a)):c?(s(c,o,d,i,a),s(c,d,o,i,a),s(c,o,d,i,a)):u&&(l(u,o,d,i,a),l(u,d,o,i,a),l(u,o,d,i,a)),t}}function s(e,t,n,r,o){for(let i=0,a=r*o;i<a;)e(t,n,i,i+=r,1)}function l(e,t,n,r,o){for(let i=0,a=r*o;i<r;++i)e(t,n,i,i+a,r)}function c(e){const t=Math.floor(e);if(t===e)return function(e){const t=2*e+1;return(n,r,o,i,a)=>{if(!((i-=a)>=o))return;let s=e*r[o];const l=a*e;for(let e=o,t=o+l;e<t;e+=a)s+=r[Math.min(i,e)];for(let e=o,c=i;e<=c;e+=a)s+=r[Math.min(i,e+l)],n[e]=s/t,s-=r[Math.max(o,e-l)]}}(e);const n=e-t,r=2*e+1;return(e,o,i,a,s)=>{if(!((a-=s)>=i))return;let l=t*o[i];const c=s*t,u=c+s;for(let e=i,t=i+c;e<t;e+=s)l+=o[Math.min(a,e)];for(let t=i,d=a;t<=d;t+=s)l+=o[Math.min(a,t+c)],e[t]=(l+n*(o[Math.max(i,t-u)]+o[Math.min(a,t+u)]))/r,l-=o[Math.max(i,t-c)]}}},(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{slice:()=>r});var r=Array.prototype.slice},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=e=>()=>e;n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h}),n.dn(h);var r=n(2148),o=n(2235),i=n(2237),a=n(2105),s=n(2232),l=n(2238),c=n(2239),u=n(2233),d=n(2240),f=n(2241),p=[[],[[[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 h(){var e=1,t=1,n=o.default,h=S;function b(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(l.default);else{const n=(0,r.default)(e,m);for(t=(0,a.default)(...(0,i.default)(n[0],n[1],t),t);t[t.length-1]>=n[1];)t.pop();for(;t[1]<n[0];)t.shift()}return t.map(t=>_(e,t))}function _(n,r){const o=null==r?NaN:+r;if(isNaN(o))throw new Error(`invalid value: ${r}`);var i=[],a=[];return function(n,r,o){var i,a,s,l,c,u,d=new Array,f=new Array;i=a=-1,l=g(n[0],r),p[l<<1].forEach(h);for(;++i<e-1;)s=l,l=g(n[i+1],r),p[s|l<<1].forEach(h);p[l|0].forEach(h);for(;++a<t-1;){for(i=-1,l=g(n[a*e+e],r),c=g(n[a*e],r),p[l<<1|c<<2].forEach(h);++i<e-1;)s=l,l=g(n[a*e+e+i+1],r),u=c,c=g(n[a*e+i+1],r),p[s|l<<1|c<<2|u<<3].forEach(h);p[l|c<<3].forEach(h)}i=-1,c=n[a*e]>=r,p[c<<2].forEach(h);for(;++i<e-1;)u=c,c=g(n[a*e+i+1],r),p[c<<2|u<<3].forEach(h);function h(e){var t,n,r=[e[0][0]+i,e[0][1]+a],s=[e[1][0]+i,e[1][1]+a],l=w(r),c=w(s);(t=f[l])?(n=d[c])?(delete f[t.end],delete d[n.start],t===n?(t.ring.push(s),o(t.ring)):d[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(s),f[t.end=c]=t):(t=d[c])?(n=f[l])?(delete d[t.start],delete f[n.end],t===n?(t.ring.push(s),o(t.ring)):d[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete d[t.start],t.ring.unshift(r),d[t.start=l]=t):d[l]=f[c]={start:l,end:c,ring:[r,s]}}p[c<<3].forEach(h)}(n,o,function(e){h(e,n,o),(0,c.default)(e)>0?i.push([e]):a.push(e)}),a.forEach(function(e){for(var t,n=0,r=i.length;n<r;++n)if(-1!==(0,d.default)((t=i[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:r,coordinates:i}}function w(t){return 2*t[0]+t[1]*(e+1)*4}function S(n,r,o){n.forEach(function(n){var i=n[0],a=n[1],s=0|i,l=0|a,c=y(r[l*e+s]);i>0&&i<e&&s===i&&(n[0]=v(i,y(r[l*e+s-1]),c,o)),a>0&&a<t&&l===a&&(n[1]=v(a,y(r[(l-1)*e+s]),c,o))})}return b.contour=_,b.size=function(n){if(!arguments.length)return[e,t];var r=Math.floor(n[0]),o=Math.floor(n[1]);if(!(r>=0&&o>=0))throw new Error("invalid size");return e=r,t=o,b},b.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?(0,u.default)(s.slice.call(e)):(0,u.default)(e),b):n},b.smooth=function(e){return arguments.length?(h=e?S:f.default,b):h===S},b}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 v(e,t,n,r){const o=r-t,i=n-t,a=isFinite(o)||isFinite(i)?o/i:Math.sign(o)/Math.sign(i);return isNaN(a)?e:e+a-.5}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2236);function o(e){return Math.max(1,Math.ceil(Math.log((0,r.default)(e))/Math.LN2)+1)}},(e,t,n)=>{"use strict";function r(e,t){let n=0;if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&++n;else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(o=+o)>=o&&++n}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2105);function o(e,t,n){let o;for(;;){const i=(0,r.tickIncrement)(e,t,n);if(i===o||0===i||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),o=i}}},(e,t,n)=>{"use strict";function r(e,t){return e-t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;
vendor: 4,490 bytes, line 41
41)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=o(e,t[r]))return n;return 0}function o(e,t){for(var n=t[0],r=t[1],o=-1,a=0,s=e.length,l=s-1;a<s;l=a++){var c=e[a],u=c[0],d=c[1],f=e[l],p=f[0],h=f[1];if(i(c,f,t))return 0;d>r!=h>r&&n<(p-u)*(r-d)/(h-d)+u&&(o=-o)}return o}function i(e,t,n){var r,o,i,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(o=e[r=+(e[0]===t[0])],i=n[r],a=t[r],o<=i&&i<=a||a<=i&&i<=o)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(){}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d}),n.dn(d);var r=n(2243),o=n(2244),i=n(2245),a=n(2249),s=n(2250),l=n(2251),c=n(2252),u=n(2253);function d(e,t){let n,d,f=3,p=4.5;function h(e){return e&&("function"==typeof p&&d.pointRadius(+p.apply(this,arguments)),(0,o.default)(e,n(d))),d.result()}return h.area=function(e){return(0,o.default)(e,n(i.default)),i.default.result()},h.measure=function(e){return(0,o.default)(e,n(c.default)),c.default.result()},h.bounds=function(e){return(0,o.default)(e,n(a.default)),a.default.result()},h.centroid=function(e){return(0,o.default)(e,n(s.default)),s.default.result()},h.projection=function(t){return arguments.length?(n=null==t?(e=null,r.default):(e=t).stream,h):e},h.context=function(e){return arguments.length?(d=null==e?(t=null,new u.default(f)):new l.default(t=e),"function"!=typeof p&&d.pointRadius(p),h):t},h.pointRadius=function(e){return arguments.length?(p="function"==typeof e?e:(d.pointRadius(+e),+e),h):p},h.digits=function(e){if(!arguments.length)return f;if(null==e)f=null;else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);f=t}return null===t&&(d=new u.default(f)),h},h.projection(e).digits(f).context(t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=e=>e;n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){e&&i.hasOwnProperty(e.type)&&i[e.type](e,t)}n.r(t),n.d(t,{default:()=>l}),n.dn(l);var o={Feature:function(e,t){r(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,o=-1,i=n.length;++o<i;)r(n[o].geometry,t)}},i={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 n=e.coordinates,r=-1,o=n.length;++r<o;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){a(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)a(n[r],t,0)},Polygon:function(e,t){s(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)s(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,o=-1,i=n.length;++o<i;)r(n[o],t)}};function a(e,t,n){var r,o=-1,i=e.length-n;for(t.lineStart();++o<i;)r=e[o],t.point(r[0],r[1],r[2]);t.lineEnd()}function s(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)a(e[n],t,1);t.polygonEnd()}function l(e,t){e&&o.hasOwnProperty(e.type)?o[e.type](e,t):r(e,t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r,o,i,a,s=n(2246),l=n(2247),c=n(2248),u=new s.Adder,d=new s.Adder,f={point:c.default,lineStart:c.default,lineEnd:c.default,polygonStart:function(){f.lineStart=p,f.lineEnd=g},polygonEnd:function(){f.lineStart=f.lineEnd=f.point=c.default,u.add((0,l.abs)(d)),d=new s.Adder},result:function(){var e=u/2;return u=new s.Adder,e}};function p(){f.point=h}function h(e,t){f.point=m,r=i=e,o=a=t}function m(e,t){d.add(a*e-i*t),i=e,a=t}function g(){m(r,o)}const y=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Adder:()=>r,fcumsum:()=>i,fsum:()=>o});class r{constructor(){this._partials=new Float64Array(32),this._n=0}add(e){const t=this._partials;let n=0;for(let r=0;r<this._n&&r<32;r++){const o=t[r],i=e+o,a=Math.abs(e)<Math.abs(o)?e-(i-o):o-(i-e);a&&(t[n++]=a),e=i}return t[n]=e,this._n=n+1,this}valueOf(){const e=this._partials;let t,n,r,o=this._n,i=0;if(o>0){for(i=e[--o];o>0&&(t=i,n=e[--o],i=t+n,r=n-(i-t),!r););o>0&&(r<0&&e[o-1]<0||r>0&&e[o-1]>0)&&(n=2*r,t=i+n,n==t-i&&(i=t))}return i}}function o(e,t){const n=new r;if(void 0===t)for(let t of e)(t=+t)&&n.add(t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&n.add(o)}return+n}function i(e,t){const n=new r;let o=-1;return Float64Array.from(e,void 0===t?e=>n.add(+e||0):r=>n.add(+t(r,++o,e)||0))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{abs:()=>d,acos:()=>T,asin:()=>x,atan:()=>f,atan2:()=>p,ceil:()=>m,cos:()=>h,degrees:()=>c,epsilon:()=>r,epsilon2:()=>
vendor: 4,523 bytes, line 41
41o,exp:()=>g,floor:()=>y,halfPi:()=>a,haversin:()=>O,hypot:()=>v,log:()=>b,pi:()=>i,pow:()=>_,quarterPi:()=>s,radians:()=>u,sign:()=>S,sin:()=>w,sqrt:()=>E,tan:()=>k,tau:()=>l});var r=1e-6,o=1e-12,i=Math.PI,a=i/2,s=i/4,l=2*i,c=180/i,u=i/180,d=Math.abs,f=Math.atan,p=Math.atan2,h=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,v=Math.hypot,b=Math.log,_=Math.pow,w=Math.sin,S=Math.sign||function(e){return e>0?1:e<0?-1:0},E=Math.sqrt,k=Math.tan;function T(e){return e>1?0:e<-1?i:Math.acos(e)}function x(e){return e>1?a:e<-1?-a:Math.asin(e)}function O(e){return(e=w(e/2))*e}},(e,t,n)=>{"use strict";function r(){}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(2248),o=1/0,i=o,a=-o,s=a;const l={point:function(e,t){e<o&&(o=e);e>a&&(a=e);t<i&&(i=t);t>s&&(s=t)},lineStart:r.default,lineEnd:r.default,polygonStart:r.default,polygonEnd:r.default,result:function(){var e=[[o,i],[a,s]];return a=s=-(i=o=1/0),e}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var r,o,i,a,s=n(2247),l=0,c=0,u=0,d=0,f=0,p=0,h=0,m=0,g=0,y={point:v,lineStart:b,lineEnd:S,polygonStart:function(){y.lineStart=E,y.lineEnd=k},polygonEnd:function(){y.point=v,y.lineStart=b,y.lineEnd=S},result:function(){var e=g?[h/g,m/g]:p?[d/p,f/p]:u?[l/u,c/u]:[NaN,NaN];return l=c=u=d=f=p=h=m=g=0,e}};function v(e,t){l+=e,c+=t,++u}function b(){y.point=_}function _(e,t){y.point=w,v(i=e,a=t)}function w(e,t){var n=e-i,r=t-a,o=(0,s.sqrt)(n*n+r*r);d+=o*(i+e)/2,f+=o*(a+t)/2,p+=o,v(i=e,a=t)}function S(){y.point=v}function E(){y.point=T}function k(){x(r,o)}function T(e,t){y.point=x,v(r=i=e,o=a=t)}function x(e,t){var n=e-i,r=t-a,o=(0,s.sqrt)(n*n+r*r);d+=o*(i+e)/2,f+=o*(a+t)/2,p+=o,h+=(o=a*e-i*t)*(i+e),m+=o*(a+t),g+=3*o,v(i=e,a=t)}const O=y},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(2247),o=n(2248);function i(e){this._context=e}i.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,r.tau)}},result:o.default}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r,o,i,a,s,l=n(2246),c=n(2247),u=n(2248),d=new l.Adder,f={point:u.default,lineStart:function(){f.point=p},lineEnd:function(){r&&h(o,i),f.point=u.default},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var e=+d;return d=new l.Adder,e}};function p(e,t){f.point=h,o=a=e,i=s=t}function h(e,t){a-=e,s-=t,d.add((0,c.sqrt)(a*a+s*s)),a=e,s=t}const m=f},(e,t,n)=>{"use strict";let r,o,i,a;n.r(t),n.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!==r){const e=10**t;r=t,o=function(t){let n=1;this._+=t[0];for(const r=t.length;n<r;++n)this._+=Math.round(arguments[n]*e)/e+t[n]}}return o}(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!==i||this._append!==o){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`,i=e,o=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 n=e.length;t<n;++t)this._+=arguments[t]+e[t]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(396),o=n(787),i=n.n(o),a=n(2157),s=n(2098),l=n(2166);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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e){var t=b(e);if(t)return{title:"x",value:(0,a.transformValueToString)(t.x)}}function v(e){return e.map(function(e,t){if(e)return{value:e.y,title:t}})}function b(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&&h(e,t)}(c,e);var t,n,o,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,o=[{key:"defaultProps",get:function(){return{titleFormat:y,itemsFormat:v,style:{line:{},title:{},box:{}}}}},{key:"propTypes",get:function(){return{className:i().string,values:i().arrayOf(i().oneOfType([i().number,i().string,i().object,i().bool])),series:i().object,innerWidth:i().number,innerHeight:i().number,marginLeft:i().number,marginTop:i().number,orientation:i().oneOf(["left","right"]),itemsFormat:i().func,titleFormat:i().func,style:i().shape({line:i().object,title:i().object,box:i().object})}}}],(n=[{key:"_renderCrosshairItems",value:function(){var e=this.props,t=e.values,n=(0,e.itemsFormat)(t);return n?n.filter(function(e){return e}).map(function(e,t){return r.default.createElement("div",{className:"rv-crosshair__item",key:"item".concat(t)},r.default.createElement("span",{className:"rv-crosshair__item__title"},e.title),": ",r.default.createElement("span",{className:"rv-crosshair__item__value"},e.value))}):null}},{key:"_renderCrosshairTitle",value:function(){var e=this.props,t=e.values,n=e.titleFormat,o=e.style,i=n(t);return i?r.default.createElement("div",{className:"rv-crosshair__title",key:"title",style:o.title},r.default.createElement("span",{className:"rv-crosshair__title__title"},i.title),": ",r.default.createElement("span",{className:"rv-crosshair__title__value"},i.value)):null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.values,i=e.marginTop,a=e.marginLeft,c=e.innerWidth,u=e.innerHeight,f=e.style,p=b(o);if(!p)return null;var h=(0,s.getAttributeFunctor)(this.props,"x")(p),m=this.props.orientation,g=a+h,y=i,v="rv-crosshair__inner rv-crosshair__inner--".concat(void 0===m?h>c/2?"left":"right":m);return r.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-crosshair",n),style:{left:"".concat(g,"px"),top:"".concat(y,"px")}},r.default.createElement("div",{className:"rv-crosshair__line",style:d({height:"".concat(u,"px")},f.line)}),r.default.createElement("div",{className:v},t||r.default.createElement("div",{className:"rv-crosshair__inner__content",style:f.box},r.default.createElement("div",null,this._renderCrosshairTitle(),this._renderCrosshairItems())
41)))}}])&&p(t.prototype,n),o&&p(t,o),c}(r.PureComponent);_.displayName="Crosshair";const w=_},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(396),o=n(787),i=n.n(o),a=n(2057),s=n(2068),l=n(2164),c=n(2166);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 d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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 n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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 n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w={stroke:"blue",fill:"blue"};function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;switch(e){case"diamond":return r.default.createElement("polygon",{style:n,points:"0 0 ".concat(t/2," ").concat(t/2," 0 ").concat(t," ").concat(-t/2," ").concat(t/2," 0 0")});case"star":var o=b(new Array(5)).map(function(e,n){var r=n/5*Math.PI*2,o=r+Math.PI/10,i=r-Math.PI/10,a=t/2.61;return"\n        ".concat(Math.cos(i)*t," ").concat(Math.sin(i)*t,"\n        ").concat(Math.cos(o)*a," ").concat(Math.sin(o)*a,"\n      ")}).join(" ");return r.default.createElement("polygon",{points:o,x:"0",y:"0",height:t,width:t,style:n});case"square":return r.default.createElement("rect",{x:"".concat(-t/2),y:"".concat(-t/2),height:t,width:t,style:n});default:return r.default.createElement("circle",{cx:"0",cy:"0",r:t/2,style:n})}}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)}(a,e);var t,n,o,i=h(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.className,i=t.customComponent,u=t.data,f=t.innerHe
41ight,p=t.innerWidth,h=t.marginLeft,m=t.marginTop,g=t.style,v=t.size;if(!u||!p||!f)return null;if(n)return r.default.createElement(s.default,d({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),r.default.createElement(a,d({},this.props,{animation:!1})));var b=this._getAttributeFunctor("x"),_=this._getAttributeFunctor("y"),w=u.map(function(t,n){var o={x:b(t),y:_(t)},a=function(e){var t=e.customComponent,n=e.defaultType,r=e.positionInPixels,o=e.positionFunctions,i=e.style,a=e.propsSize,s=t.size,l=y(y({},i),t.style||{}),c=t.customComponent;return c||"string"!=typeof n?c?"string"==typeof c?S(c||n,s,l):c(t,r,l,o):n(t,r,l,o):S(n,s||a,l)}({customComponent:t,positionInPixels:o,defaultType:i,positionFunctions:{x:b,y:_},style:g,propsSize:v});return r.default.createElement("g",{className:"rv-xy-plot__series--custom-svg",key:"rv-xy-plot__series--custom-svg-".concat(n),transform:"translate(".concat(o.x,",").concat(o.y,")"),onMouseEnter:function(n){return e._valueMouseOverHandler(t,n)},onMouseLeave:function(n){return e._valueMouseOutHandler(t,n)}},a)});return r.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--custom-svg-wrapper",o),transform:"translate(".concat(h,",").concat(m,")")},w)}}])&&f(t.prototype,n),o&&f(t,o),a}(a.default);E.propTypes={animation:i().bool,className:i().string,customComponent:i().oneOfType([i().string,i().func]),data:i().arrayOf(i().shape({x:i().oneOfType([i().string,i().number]).isRequired,y:i().oneOfType([i().string,i().number]).isRequired})).isRequired,marginLeft:i().number,marginTop:i().number,style:i().object,size:i().number,onValueMouseOver:i().func,onValueMouseOut:i().func},E.defaultProps=y(y({},a.default.defaultProps),{},{animation:!1,customComponent:"circle",style:{},size:2});const k=E},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(396),o=n(2116),i=n(787),a=n.n(i),s=n(2057),l=n(2257),c=n(2068),u=n(2166);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 f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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 n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var _=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","t
41ickTotal","tickSizeInner","tickSizeOuter"],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&&y(e,t)}(a,e);var t,n,o,i=v(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,o=e.marginLeft,i=e.marginTop,s=e.axisStart,d=e.axisEnd,f=e.axisDomain,h=e.numberOfTicks,g=e.tickValue,y=e.tickSize,v=e.style;if(t)return r.default.createElement(c.default,m({},this.props,{animatedProps:_}),r.default.createElement(a,m({},this.props,{animation:null})));var b=this._getAttributeFunctor("x"),w=this._getAttributeFunctor("y");return r.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-manipulable-axis rv-xy-plot__axis",n),transform:"translate(".concat(o,",").concat(i,")")},r.default.createElement("line",m({},p({x1:b({x:s.x}),x2:b({x:d.x}),y1:w({y:s.y}),y2:w({y:d.y})},v.line),{className:"rv-xy-plot__axis__line"})),r.default.createElement("g",{className:"rv-xy-manipulable-axis__ticks"},(0,l.default)({axisDomain:f,axisEnd:{x:b(d),y:w(d)},axisStart:{x:b(s),y:w(s)},numberOfTicks:h,tickValue:g,tickSize:y,style:v})))}}])&&g(t.prototype,n),o&&g(t,o),a}(s.default),S=(0,o.format)(".2r");w.defaultProps={className:"",numberOfTicks:10,tickValue:function(e){return S(e)},tickSize:5,style:{line:{strokeWidth:1},ticks:{strokeWidth:2},text:{}}},w.propTypes=p(p({},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})}),w.displayName="DecorativeAxis";const E=w},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(396),o=n(2227);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){var t=e.axisDomain,n=e.numberOfTicks,a=e.axisStart,l=e.axisEnd,c=e.tickValue,u=e.tickSize,d=e.style,f=(0,o.generatePoints)({axisStart:a,axisEnd:l,numberOfTicks:n,axisDomain:t}).points,p=(0,o.getAxisAngle)(a,l)+Math.PI/2;return f.map(function(e,t){var n=s({x1:0,y1:0,x2:u*Math.cos(p),y2:u*Math.sin(p)},d.ticks),o=s({x:u*Math.cos(p),y:u*Math.sin(p),textAnchor:"start"},d.text);return r.default.createElement("g",{key:t,transform:"translate(".concat(e.x,", ").concat(e.y,")"),className:"rv-xy-plot__axis__tick"},r.default.createElement("line",i({},n,{className:"rv-xy-plot__axis__tick__line"})),r.default.createElement("text",i({},o,{className:"rv-xy-plot__axis__tick__text"}),c(e.text)))})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(396),o=n(787),i=n.n(o),a=n(2166);function s(e){var t=e.className;return r.default.createElement("defs",{className:(0,a.getCombinedClassName)("rv-gradient-defs",t)},e.children)}s.displayName="GradientDefs",s.requiresSVG=!0,s.propTypes={className:i().string},s.defaultProps={className:""};const l=s},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(396),o=n(787),i=n.n(o),a=n(2098),s=n(2166),l=n(2068),c=n(2227);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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=c.DIRECTION.VERTICAL,_=c.DIRECTION.HORIZONTAL,w={direction:i().oneOf([b,_]),attr:i().string.isRequired,width:i().number,height:i().number,top:i().number,left:i().number,style:i().object,tickValues:i().arrayOf(i().oneOfType([i().number,i().string])),tickTotal:i().number,animation:l.AnimationPropType,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},S={direction:b},E=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickTotal"],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&&g(e,t)}(u,e);var t,n,o,i=y(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"_getDefaultProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop,o=e.marginLeft,i=e.direction;return{left:o,top:r,width:t,height:n,tickTotal:(0,c.getTicksTotalFromSize)(i===b?t:n)}}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className;if(t)return r.default.createElement(l.default,h({},this.props,{animatedProps:E}),r.default.createElement(u,h({},this.props,{animation:null})));var o=f(f({},this._getDefaultProps()),this.props),i=o.attr,d=o.direction,m=o.width,g=o.height,y=o.style,v=o.tickTotal,_=o.tickValues,w=o.top,S=o.left,k=d===b,T=k?"y":"x",x=k?"x":"y",O=k?g:m,C=(0,a.getAttributeScale)(o,i),P=(0,c.getTickValues)(C,v,_);return r.default.createElement("g",{transform:"translate(".concat(S,",").concat(w,")"),className:(0,s.getCombinedClassName)("rv-xy-plot__grid-lines",n)},P.map(function(e,t){var n,o=C(e),i=(p(n={},"".concat(x,"1"),o),p(n,"".concat(x,"2"),o),p(n,"".concat(T,"1"),0),p(n,"".concat(T,"2"),O),n);return r.default.createElement("line",h({},i,{key:t,className:"rv-xy-plot__grid-lines__line",style:y}))}))}}])&&m(t.prototype,n),o&&m(t,o),u}(r.PureComponent);k.displayName="GridLines",k.defaultProps=S,k.propTypes=w,k.requiresSVG=!0;const T=k},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(396),o=n(2068),i=n(2164),a=n(2166),s=n(2057);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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}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&&h(e,t)}(c,e);var t,n,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}}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,s=t.className,l=t.data,d=t.marginLeft,p=t.marginTop,h=t.style;if(!l)return null;if(n)return r.default.createElement(o.default,f({},this.props,{animatedProps:i.ANIMATED_SERIES_PROPS}),r.default.createElement(c,f({},this.props,{animation:null})));var m=u({rectStyle:{}},h).rectStyle,g=this._getAttributeFunctor("x"),y=this._getAttributeFunctor("y"),v=this._getAttributeFunctor("opacity"),b=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),_=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),w=this._getScaleDistance("x"),S=this._getScaleDistance("y");return r.default.createElement("g",{className:(0,a.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--heatmap",s),transform:"translate(".concat(d,",").concat(p,")")},l.map(function(t,n){var o=u(u({style:u({stroke:_&&_(t),fill:b&&b(t),opacity:v&&v(t)},h)},m),{},{x:g(t)-w/2,y:y(t)-S/2,width:w,height:S,onClick:function(n){return e._valueClickHandler(t,n)},onContextMenu:function(n){return e._valueRightClickHandler(t,n)},onMouseOver:function(n){return e._valueMouseOverHandler(t,n)},onMouseOut:function(n){return e._valueMouseOutHandler(t,n)}});return r.default.createElement("rect",f({key:n},o))}))}}])&&p(t.prototype,n),s&&p(t,s),c}(s.default);y.propTypes=u({},s.default.propTypes),y.displayName="HeatmapSeries";const v=y},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2262),l=n(2104),c=n(2164),u=n(2166),d=n(2165),f=n(2057);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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 n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(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)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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&&b(e,t)}(d,e);var t,n,o,i=_(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.className,i=t.colorRange,f=t.data,p=t.innerHeight,h=t.innerWidth,m=t.marginLeft,g=t.marginTop,v=t.radius,b=t.sizeHexagonsWithCount,_=t.style,w=t.xOffset,E=t.yOffset;if(!f)return null;if(n)return r.default.createElement(a.default,y({},this.props,{animatedProps:c.ANIMATED_SERIES_PROPS}),r.default.createElement(d,y({},this.props,{animation:null})));var k=this._getAttributeFunctor("x"),T=this._getAttributeFunctor("y"),x=(0,s.hexbin)().x(function(e){return k(e)+w}).y(function(e){return T(e)+E}).radius(v).size([h,p]),O=x.hexagon(),C=x(f),P=function(e,t){var n=e.countDomain;return n||[0,Math.max.apply(Math,S(t.map(function(e){return e.length})))]}(this.props,C),A=(0,l.default)().domain(P).range(i),I=(0,l.default)().domain(P).range([0,v]);return r.default.createElement("g",{className:(0,u.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--hexbin",o),transform:"translate(".concat(m,",").concat(g,")")},C.map(function(t,n){var o={style:_,d:b?x.hexagon(I(t.length)):O,fill:A(t.length),transform:"translate(".concat(t.x,", ").concat(t.y,")"),onClick:function(n){return e._valueClickHandler(t,n)},onContextMenu:function(n){return e._valueRightClickHandler(t,n)},onMouseOver:function(n){return e._valueMouseOverHandler(t,n)},onMouseOut:function(n){return e._valueMouseOutHandler(t,n)}};return r.default.createElement("path",y({key:String(n)},o))}))}}])&&v(t.prototype,n),o&&v(t,o),d}(f.default);k.propTypes=h(h({}
41,f.default.propTypes),{},{radius:i().number}),k.defaultProps={radius:20,colorRange:d.CONTINUOUS_COLOR_RANGE,xOffset:0,yOffset:0},k.displayName="HexbinSeries";const T=k},(e,t,n)=>{"use strict";n.r(t),n.d(t,{hexbin:()=>r.default});var r=n(2263)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n.dn(s);var r=Math.PI/3,o=[0,r,2*r,3*r,4*r,5*r];function i(e){return e[0]}function a(e){return e[1]}function s(){var e,t,n,s=0,l=0,c=1,u=1,d=i,f=a;function p(e){var r,o={},i=[],a=e.length;for(r=0;r<a;++r)if(!isNaN(l=+d.call(null,s=e[r],r,e))&&!isNaN(c=+f.call(null,s,r,e))){var s,l,c,u=Math.round(c/=n),p=Math.round(l=l/t-(1&u)/2),h=c-u;if(3*Math.abs(h)>1){var m=l-p,g=p+(l<p?-1:1)/2,y=u+(c<u?-1:1),v=l-g,b=c-y;m*m+h*h>v*v+b*b&&(p=g+(1&u?1:-1)/2,u=y)}var _=p+"-"+u,w=o[_];w?w.push(s):(i.push(w=o[_]=[s]),w.x=(p+(1&u)/2)*t,w.y=u*n)}return i}function h(e){var t=0,n=0;return o.map(function(r){var o=Math.sin(r)*e,i=-Math.cos(r)*e,a=o-t,s=i-n;return t=o,n=i,[a,s]})}return p.hexagon=function(t){return"m"+h(null==t?e:+t).join("l")+"z"},p.centers=function(){for(var r=[],o=Math.round(l/n),i=Math.round(s/t),a=o*n;a<u+e;a+=n,++o)for(var d=i*t+(1&o)*t/2;d<c+t/2;d+=t)r.push([d,a]);return r},p.mesh=function(){var t=h(e).slice(0,4).join("l");return p.centers().map(function(e){return"M"+e+"m"+t}).join("")},p.x=function(e){return arguments.length?(d=e,p):d},p.y=function(e){return arguments.length?(f=e,p):f},p.radius=function(o){return arguments.length?(t=2*(e=+o)*Math.sin(r),n=1.5*e,p):e},p.size=function(e){return arguments.length?(s=l=0,c=+e[0],u=+e[1],p):[c-s,u-l]},p.extent=function(e){return arguments.length?(s=+e[0][0],l=+e[0][1],c=+e[1][0],u=+e[1][1],p):[[s,l],[c,u]]},p.radius(1)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2057),s=n(2098),l=n(2166);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return 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 f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;return m(e)}(this,n)}}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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return{xLoc:"touchstart"===e.type?e.pageX:e.offsetX,yLoc:"touchstart"===e.type?e.pageY:e.offsetY}}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)}(a,e);var t,n,o,i=h(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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return y(m(e=i.call.apply(i,[this].concat(n))),"state",{dragging:!1,brushArea:{top:0,right:0,bottom:0,left:0},brushing:!1,startLocX:0,startLocY:0,dragArea:null}),e}return t=a,(n=[{key:"_getDrawArea",value:function(e,t){var n=this.state,r=n.startLocX,o=n.startLocY,i=this.props,a=i.enableX,s=i.enableY,l=i.highlightWidth,c=i.highlightHeight,u=i.innerWidth,d=i.innerHeight,f=i.marginLeft,p=i.marginRight,h=i.marginBottom,m=i.marginTop,g=l||u+f+p,y=c||d+m+h;return{bottom:s?Math.max(o,t):y,right:a?Math.max(r,e):g,left:a?Math.min(e,r):0,top:s?Math.min(t,o):0}}},{key:"_getDragArea",value:function(e,t){var n=this.props,r=n.enableX,o=n.enableY,i=this.state,a=i.startLocX,s=i.startLocY,l=i.dragArea;return{bottom:l.bottom+(o?t-s:0),left:l.left+(r?e-a:0),right:l.right+(r?e-a:0),top:l.top+(o?t-s:0)}}},{key:"_clickedOutsideDrag",value:function(e,t){var n=this.props,r=n.enableX,o=n.enableY,i=this.state,a=i.dragArea,s=i.brushArea,l=s.left,c=s.right,u=s.top,d=s.bottom,f=a&&(e<l||e>c),p=a&&(t<u||t>d);return r&&o?f||p:r?f:!o||p}},{key:"_convertAreaToCoordinates",value:function(e){var t=this.props,n=t.enableX,r=t.enableY,o=t.marginLeft,i=t.marginTop,a=(0,s.getAttributeScale)(this.props,"x"),l=(0,s.getAttributeScale)(this.props,"y");return n&&r?{bottom:l.invert(e.bottom),left:a.invert(e.left-o),right:a.invert(e.right-o),top:l.invert(e.top)}:r?{bottom:l.invert(e.bottom-i),top:l.invert(e.top-i)}:n?{left:a.invert(e.left-o),right:a.invert(e.right-o)}:{}}},{key:"startBrushing",value:function(e){var t=this,n=this.props,r=n.onBrushStart,o=n.onDragStart,i=n.drag,a=this.state.dragArea,s=v(e.nativeEvent),l=s.xLoc,c=s.yLoc,u=function(e,n){var r={bottom:c,left:l,right:l,top:c};t.setState({dragging:e,brushArea:a&&!n?a:r,brushing:!e,startLocX:l,startLocY:c})},d=this._clickedOutsideDrag(l,c);if(i&&!a||!i||d)return u(!1,d),void(r&&r(e));i&&a&&(u(!0,d),o&&o(e))}},{key:"stopBrushing",value:function(){var e=this.state,t=e.brushing,n=e.dragging,r=e.brushArea;if(t||n){var o=this.props,i=o.onBrushEnd,a=o.onDragEnd,s=o.drag,l=Math.abs(r.right-r.left)<5,c=Math.abs(r.top-r.bottom)<5||l;this.setState({brushing:!1,dragging:!1,brushArea:s?r:{top:0,right:0,bottom:0,left:0},startLocX:0,startLocY:0,dragArea:s&&!c&&r}),t&&i&&i(c?null:this._convertAreaToCoordinates(r)),s&&a&&a(c?null:this._convertAreaToCoordinates(r))}}},{key:"onBrush",value:function(e){var t=this.props,n=t.onBrush,r=t.onDrag,o=t.drag,i=this.state,a=i.brushing,s=i.dragging,l=v(e.n
41ativeEvent),c=l.xLoc,u=l.yLoc;if(a){var d=this._getDrawArea(c,u);this.setState({brushArea:d}),n&&n(this._convertAreaToCoordinates(d))}if(o&&s){var f=this._getDragArea(c,u);this.setState({brushArea:f}),r&&r(this._convertAreaToCoordinates(f))}}},{key:"render",value:function(){var e=this,t=this.props,n=t.color,o=t.className,i=t.highlightHeight,a=t.highlightWidth,c=t.highlightX,u=t.highlightY,d=t.innerWidth,f=t.innerHeight,p=t.marginLeft,h=t.marginRight,m=t.marginTop,g=t.marginBottom,y=t.opacity,v=this.state.brushArea,b=v.left,_=v.right,w=v.top,S=v.bottom,E=0;c&&(E=(0,s.getAttributeScale)(this.props,"x")(c));var k=0;u&&(k=(0,s.getAttributeScale)(this.props,"y")(u));var T=a||p+h+d,x=i||m+g+f;return r.default.createElement("g",{transform:"translate(".concat(E,", ").concat(k,")"),className:(0,l.getCombinedClassName)(o,"rv-highlight-container")},r.default.createElement("rect",{className:"rv-mouse-target",fill:"black",opacity:"0",x:"0",y:"0",width:Math.max(T,0),height:Math.max(x,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()}}),r.default.createElement("rect",{className:"rv-highlight",pointerEvents:"none",opacity:y,fill:n,x:b,y:w,width:Math.min(Math.max(0,_-b),T),height:Math.min(Math.max(0,S-w),x)}))}}])&&f(t.prototype,n),o&&f(t,o),a}(a.default);b.displayName="HighlightOverlay",b.defaultProps={color:"rgb(77, 182, 172)",className:"",enableX:!0,enableY:!0,opacity:.3},b.propTypes=u(u({},a.default.propTypes),{},{enableX:i().bool,enableY:i().bool,highlightHeight:i().number,highlightWidth:i().number,highlightX:i().oneOfType([i().string,i().number]),highlightY:i().oneOfType([i().string,i().number]),onBrushStart:i().func,onDragStart:i().func,onBrush:i().func,onDrag:i().func,onBrushEnd:i().func,onDragEnd:i().func});const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(396),o=n(787),i=n.n(o),a=n(2157),s=n(2098),l=n(2166);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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}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"},v={BOTTOM_LEFT:"bottomleft",BOTTOM_RIGHT:"bottomright",TOP_LEFT:"topleft",TOP_RIGHT:"topright"};function b(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&&h(e,t)}(c,e);var t,n,o,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,o=[{key:"defaultProps",get:function(){return{format:b,align:{horizontal:y.AUTO,vertical:y.AUTO},style:{}}}},{key:"propTypes",get:function(){return{marginTop:i().number,marginLeft:i().number,innerWidth:i().number,innerHe
41ight:i().number,scales:i().object,value:i().object,format:i().func,style:i().object,className:i().string,align:i().shape({horizontal:i().oneOf([y.AUTO,y.LEFT,y.RIGHT,y.LEFT_EDGE,y.RIGHT_EDGE]),vertical:i().oneOf([y.AUTO,y.BOTTOM,y.TOP,y.BOTTOM_EDGE,y.TOP_EDGE])}),getAlignStyle:i().func,orientation:i().oneOf([v.BOTTOM_LEFT,v.BOTTOM_RIGHT,v.TOP_LEFT,v.TOP_RIGHT])}}}],(n=[{key:"_getAlign",value:function(e,t){var n=this.props,r=n.innerWidth,o=n.innerHeight,i=n.orientation,a=n.align,s=a.horizontal,l=a.vertical,c=i?this._mapOrientationToAlign(i):{horizontal:s,vertical:l};return s===y.AUTO&&(c.horizontal=e>r/2?y.LEFT:y.RIGHT),l===y.AUTO&&(c.vertical=t>o/2?y.TOP:y.BOTTOM),c}},{key:"_getAlignClassNames",value:function(e){var t=this.props.orientation,n=t?"rv-hint--orientation-".concat(t):"";return"".concat(n," rv-hint--horizontalAlign-").concat(e.horizontal,"\n     rv-hint--verticalAlign-").concat(e.vertical)}},{key:"_getAlignStyle",value:function(e,t,n){return d(d({},this._getXCSS(e.horizontal,t)),this._getYCSS(e.vertical,n))}},{key:"_getCSSBottom",value:function(e){if(null==e)return{bottom:0};var t=this.props,n=t.innerHeight;return{bottom:t.marginBottom+n-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,n=t.innerWidth;return{right:t.marginRight+n-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,n=e.getAlignStyle,r=(0,s.getAttributeFunctor)(this.props,"x")(t),o=(0,s.getAttributeFunctor)(this.props,"y")(t),i=this._getAlign(r,o);return{position:n?n(i,r,o):this._getAlignStyle(i,r,o),positionClassName:this._getAlignClassNames(i)}}},{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 v.BOTTOM_LEFT:return{horizontal:y.LEFT,vertical:y.BOTTOM};case v.BOTTOM_RIGHT:return{horizontal:y.RIGHT,vertical:y.BOTTOM};case v.TOP_LEFT:return{horizontal:y.LEFT,vertical:y.TOP};case v.TOP_RIGHT:return{horizontal:y.RIGHT,vertical:y.TOP}}}},{key:"render",value:function(){var e=this.props,t=e.value,n=e.format,o=e.children,i=e.style,a=e.className,s=this._getPositionInfo(),c=s.position,u=s.positionClassName;return r.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-hint",u,a),style:d(d(d({},i),c),{},{position:"absolute"})},o||r.default.createElement("div",{className:"rv-hint__content",style:i.content},n(t).map(function(e,t){return r.default.createElement("div",{key:"rv-hint".concat(t),style:i.row},r.default.createElement("span",{className:"rv-hint__title",style:i.title},e.title),": ",r.default.createElement("span",{className:"rv-hint__value",style:i.value},e.value))})))}}])&&p(t.prototype,n),o&&p(t,o),c}(r.PureComponent);_.displayName="Hint",_.ORIENTATION=v,_.ALIGN=y;const w=_},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(2057),i=n(2267);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}
41function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&c(e,t)}(d,e);var t,n,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}}],(n=[{key:"render",value:function(){return r.default.createElement(i.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,n),o&&l(t,o),d}(o.default);f.displayName="HorizontalBarSeries";const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2164),l=n(2166),c=n(2057);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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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&&g(e,t)}(d,e);var t,n,o,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,o=[{key:"propTypes",get:function(){return f(f({},c.default.propTypes),{},{linePosAttr:i().string,valuePosAttr:i().string,lineSizeAttr:i().string,valueSizeAttr:i().string,cluster:i().string,barWidth:i().number})}},{key:"defaultProps",get:function(){return{barWidth:.85}}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.className,i=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr,_=t.barWidth;if(!i)return null;if(n)return r.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),r.default.createElement(d,h({},this.props,{animation:null})));var w=(0,s.getStackParams)(this.props),S=w.sameTypeTotal,E=w.sameTypeIndex,k=this._getScaleDistance(c),T=this._getAttributeFunctor(c),x=this._getAttributeFunctor(v),O=this._getAttr0Functor(v),C=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),P=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),A=this._getAttributeFunctor("op
41acity"),I=k/2*_;return r.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--bar",o),transform:"translate(".concat(m,",").concat(g,")")},i.map(function(t,n){var o,i=2*I,a=T(t),s=i/S-(S-1)/S,l=a-I+s*E+E,d=(p(o={style:f({opacity:A&&A(t),stroke:P&&P(t),fill:C&&C(t)},y)},c,l),p(o,u,s),p(o,v,Math.min(O(t),x(t))),p(o,b,Math.abs(-O(t)+x(t))),p(o,"onClick",function(n){return e._valueClickHandler(t,n)}),p(o,"onContextMenu",function(n){return e._valueRightClickHandler(t,n)}),p(o,"onMouseOver",function(n){return e._valueMouseOverHandler(t,n)}),p(o,"onMouseOut",function(n){return e._valueMouseOutHandler(t,n)}),o);return r.default.createElement("rect",h({key:"".concat(n)},d))}))}}])&&m(t.prototype,n),o&&m(t,o),d}(c.default);b.displayName="BarSeries";const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2057),o=n(2269);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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 n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(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,n)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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,n,r,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"y"===e,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){o.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}}],(n=[{key:"render",value:function(){return null}}])&&c(t.prototype,n),r&&c(t,r),a}(r.default);p.displayName="HorizontalBarSeriesCanvas",p.propTypes=s({},r.default.propTypes);const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(787),o=n.n(r),i=n(2070),a=n(2165),s=n(2098),l=n(2164),c=n(2057);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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&&m(e,t)}(c,e);var t,n,r,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:"renderLayer",value:function(e,t){var n=e.data,r=e.linePosAttr,o=e.lineSizeAttr,c=e.valuePosAttr,u=e.marginTop,d=e.marginBottom;if(n&&0!==n.length){var f=function(e,t){var n=(0,s.getScaleObjectFromProps)(e,t);return n?n.distance:0}(e,r),p=(0,s.getAttributeFunctor)(e,r),h=(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"),v=(0,s.getAttributeFunctor)(e,"opacity"),b=f/2*.85,_=2*b,w=(0,l.getStackParams)(e),S=w.sameTypeTotal,E=w.sameTypeIndex;n.forEach(function(e){var n=p(e)-b,r=_/S-(S-1)/S,s=(0,i.rgb)(g(e)),l=(0,i.rgb)(y(e)),f=v(e)||a.DEFAULT_OPACITY,w=n+r*E+E,k=Math.min(m(e),h(e)),T="x"===c?k:w,x="y"===c?k:w,O=Math.abs(-m(e)+h(e)),C="height"===o?r:O,P="width"===o?r:O;t.beginPath(),t.rect(T+d,x+u,P,C),t.fillStyle="rgba(".concat(s.r,", ").concat(s.g,", ").concat(s.b,", ").concat(f,")"),t.fill(),t.strokeStyle="rgba(".concat(l.r,", ").concat(l.g,", ").concat(l.b,", ").concat(f,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(n=[{key:"render",value:function(){return null}}])&&h(t.prototype,n),r&&h(t,r),c}(c.default);v.displayName="BarSeriesCanvas",v.defaultProps=d(d({},c.default.defaultProps),{},{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),v.propTypes=d({},c.default.propTypes);const b=v},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(396),o=n(787),i=n.n(o),a=n(2227),s=n(2259);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEac
41h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=a.DIRECTION.HORIZONTAL,f=c(c({},s.default.propTypes),{},{direction:i().oneOf([d])}),p={direction:d,attr:"y"};function h(e){return r.default.createElement(s.default,e)}h.displayName="HorizontalGridLines",h.propTypes=f,h.defaultProps=p,h.requiresSVG=!0;const m=h},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(2057),i=n(2272);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&c(e,t)}(d,e);var t,n,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}}],(n=[{key:"render",value:function(){return r.default.createElement(i.default,s({},this.props,{linePosAttr:"y",valuePosAttr:"x",lineSizeAttr:"height",valueSizeAttr:"width"}))}}])&&l(t.prototype,n),o&&l(t,o),d}(o.default);f.displayName="HorizontalRectSeries";const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2164),l=n(2166),c=n(2057);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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(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&&g(e,t)}(d,e);var t,n,o,u=y(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return t=d,o=[{key:"propTypes",get:function(){return f(f({}
41,c.default.propTypes),{},{linePosAttr:i().string,valuePosAttr:i().string,lineSizeAttr:i().string,valueSizeAttr:i().string})}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.className,i=t.data,c=t.linePosAttr,u=t.lineSizeAttr,m=t.marginLeft,g=t.marginTop,y=t.style,v=t.valuePosAttr,b=t.valueSizeAttr;if(!i)return null;if(n)return r.default.createElement(a.default,h({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),r.default.createElement(d,h({},this.props,{animation:null})));var _=this._getAttributeFunctor(c),w=this._getAttr0Functor(c),S=this._getAttributeFunctor(v),E=this._getAttr0Functor(v),k=this._getAttributeFunctor("fill")||this._getAttributeFunctor("color"),T=this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),x=this._getAttributeFunctor("opacity");return r.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--rect",o),transform:"translate(".concat(m,",").concat(g,")")},i.map(function(t,n){var o,i=(p(o={style:f({opacity:x&&x(t),stroke:T&&T(t),fill:k&&k(t)},y)},c,w(t)),p(o,u,Math.abs(_(t)-w(t))),p(o,v,Math.min(E(t),S(t))),p(o,b,Math.abs(-E(t)+S(t))),p(o,"onClick",function(n){return e._valueClickHandler(t,n)}),p(o,"onContextMenu",function(n){return e._valueRightClickHandler(t,n)}),p(o,"onMouseOver",function(n){return e._valueMouseOverHandler(t,n)}),p(o,"onMouseOut",function(n){return e._valueMouseOutHandler(t,n)}),o);return r.default.createElement("rect",h({key:String(n)},i))}))}}])&&m(t.prototype,n),o&&m(t,o),d}(c.default);b.displayName="RectSeries";const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2057),o=n(2274);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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 n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(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,n)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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,n,r,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"x"===e}}},{key:"renderLayer",value:function(e,t){o.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}}],(n=[{key:"render",value:function(){return null}}])&&c(t.prototype,n),r&&c(t,r),a}(r.default);p.displayName="HorizontalRectSeriesCanvas",p.propTypes=s({}
41,r.default.propTypes);const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(787),o=n.n(r),i=n(2070),a=n(2165),s=n(2098),l=n(2057);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}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&&h(e,t)}(l,e);var t,n,r,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:"renderLayer",value:function(e,t){var n=e.data,r=e.linePosAttr,o=e.lineSizeAttr,l=e.marginLeft,c=e.marginTop,u=e.valuePosAttr;if(n&&0!==n.length){var d=(0,s.getAttributeFunctor)(e,r),f=(0,s.getAttr0Functor)(e,r),p=(0,s.getAttributeFunctor)(e,u),h=(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");n.forEach(function(e){var n=(0,i.rgb)(m(e)),r=(0,i.rgb)(g(e)),s=y(e)||a.DEFAULT_OPACITY,v=f(e),b=Math.min(h(e),p(e)),_="x"===u?b:v,w="y"===u?b:v,S=Math.abs(d(e)-f(e)),E=Math.abs(-h(e)+p(e)),k="height"===o?S:E,T="width"===o?S:E;t.beginPath(),t.rect(_+l,w+c,T,k),t.fillStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(s,")"),t.fill(),t.strokeStyle="rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(s,")"),t.stroke()})}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(n=[{key:"render",value:function(){return null}}])&&p(t.prototype,n),r&&p(t,r),l}(l.default);y.displayName="RectSeriesCanvas",y.defaultProps=u(u({},l.default.defaultProps),{},{linePosAttr:o().string.isRequired,valuePosAttr:o().string.isRequired,lineSizeAttr:o().string.isRequired,valueSizeAttr:o().string.isRequired}),y.propTypes=u({},l.default.propTypes);const v=y},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(396),o=n(787),i=n.n(o),a=n(2057),s=n(2068),l=n(2164),c=n(2166);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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var b=function(e,t){return e||(t?"start":"end")},_=function(e,t){return e||(t?"text-before-edge":"text-after-edge")},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)}(a,e);var t,n,o,i=y(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.allowOffsetToBeReversed,i=t.className,u=t.data,d=t._data,p=t.getLabel,m=t.marginLeft,g=t.marginTop,y=t.rotation,v=t.style,w=t.xRange,S=t.yRange,E=t.labelAnchorX,k=t.labelAnchorY;if(!u)return null;if(n)return r.default.createElement(s.default,h({},this.props,{animatedProps:l.ANIMATED_SERIES_PROPS}),r.default.createElement(a,h({},this.props,{animation:null,_data:u})));var T=this._getAttributeFunctor("x"),x=this._getAttributeFunctor("y");return r.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--label",i),transform:"translate(".concat(m,",").concat(g,")"),style:v},u.reduce(function(t,n,i){var a=n.style,s=n.xOffset,l=n.yOffset;if(!p(n))return t;var c=T(n),u=x(n),m=c<(w[1]-w[0])/2,g=u<Math.abs(S[1]-S[0])/2,v=c+(o&&m?-1:1)*(s||0),O=u+(o&&g?-1:1)*(l||0),C=0===n.rotation||n.rotation?n.rotation:y,P=f({dominantBaseline:_(k,g),className:"rv-xy-plot__series--label-text",onClick:function(t){return e._valueClickHandler(n,t)},onContextMenu:function(t){return e._valueRightClickHandler(n,t)},onMouseOver:function(t){return e._valueMouseOverHandler(n,t)},onMouseOut:function(t){return e._valueMouseOutHandler(n,t)},textAnchor:b(E,m),x:v,y:O,transform:"rotate(".concat(C,",").concat(v,",").concat(O,")")},a),A=p(d?d[i]:n);return t.concat([r.default.createElement("text",h({key:String(i)},P),A)])},[]))}}])&&m(t.prototype,n),o&&m(t,o),a}(a.default);w.propTypes={animation:i().bool,allowOffsetToBeReversed:i().bool,className:i().string,data:i().arrayOf(i().shape({x:i().oneOfType([i().number,i().string]),y:i().oneOfType([i().number,i().string]),angle:i().number,radius:i().number,label:i().string,xOffset:i().number,yOffset:i().number,style:i().object})).isRequired,marginLeft:i().number,marginTop:i().number,rotation:i().number,style:i().object,xRange:i().arrayOf(i().number),yRange:i().arrayOf(i().number),labelAnchorX:i().string,labelAnchorY:i().string},w.defaultProps=f(f({},a.default.defaultProps),{},{animation:!1,rotation:0,getLabel:function(e){return e.label}}),w.displayName="LabelSeries";const S=w},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2057),s=n(2277),l=n(2278);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(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 n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}
41function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=g(g({},s.default.propTypes),{},{lineStyle:i().object,markStyle:i().object}),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&&f(e,t)}(a,e);var t,n,o,i=p(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,o=[{key:"defaultProps",get:function(){return g(g({},s.default.defaultProps),{},{lineStyle:{},markStyle:{}})}}],(n=[{key:"render",value:function(){var e=this.props,t=e.lineStyle,n=e.markStyle,o=e.style;return r.default.createElement("g",{className:"rv-xy-plot__series rv-xy-plot__series--linemark"},r.default.createElement(s.default,u({},this.props,{style:g(g({},o),t)})),r.default.createElement(l.default,u({},this.props,{style:g(g({},o),n)})))}}])&&d(t.prototype,n),o&&d(t,o),a}(a.default);b.displayName="LineMarkSeries",b.propTypes=v;const _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(396),o=n(787),i=n.n(o),a=n(2168),s=n(2172),l=n(2068),c=n(2165),u=n(2164),d=n(2156),f=n(2166),p=n(2057);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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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 n,r=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var E={dashed:"6, 2",solid:null},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)}(p,e);var t,n,o,i=w(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:"_renderLine",value:function(e,t,n,r,o){var i=s.default();return null!==r&&("string"==typeof r&&a[r]?i=i.curve(a[r]):"function"==typeof r&&(i=i.curve(r))),(i=(i=i.defined(o)).x(t).y(n))(e)}},{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,o=e.data;if(this.props.nullAccessor&&(0,d.warning)("nullAccessor has been renamed to getNull",!0),!o)return null;if(t)return r.default.createElement(l.default,v({},this.props,{animatedProps:u.ANIMATED_SERIES_PROPS}),r.default.createElement(p,v({},this.props,{animation:null})));var i=this.props,a=i.curve,s=i.marginLeft,h=i.marginTop,m=i.strokeDasharray,y=i.strokeStyle,b=i.strokeWidth,_=i.style,w=this._getAttributeFunctor("x"),S=this._getAttributeFunctor("y"),k=this._getAttributeValue("stroke")||this._getAttributeValue("color"),T=this._getAttributeValue("opacity"),x=Number.isFinite(T)?T:c.DEFAULT_OPACITY,O=this.props.nullAccessor||this.props.getNull,C=this._renderLine(o,w,S,a,O);return r.default.createElement("path",{d:C,className:(0,f.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--line",n),transform:"translate(".concat(s,",").concat(h,")"),onMouseOver:this._seriesMouseOverHandler,onMouseOut:this._seriesMouseOutHandler,onClick:this._seriesClickHandler,onContextMenu:this._seriesRightClickHandler,style:g({opacity:x,strokeDasharray:E[y]||m,strokeWidth:b,stroke:k},_)})}}])&&b(t.prototype,n),o&&b(t,o),p}(p.default);k.displayName="LineSeries",k.propTypes=g(g({}
41,p.default.propTypes),{},{strokeStyle:i().oneOf(Object.keys(E)),curve:i().oneOfType([i().string,i().func]),getNull:i().func}),k.defaultProps=g(g({},p.default.defaultProps),{},{strokeStyle:"solid",style:{},opacity:1,curve:null,className:"",getNull:function(){return!0}});const T=k},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2164),l=n(2156),c=n(2166),u=n(2165),d=n(2057);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 p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(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 n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}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)}(d,e);var t,n,o,i=b(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),i.apply(this,arguments)}return t=d,(n=[{key:"_renderCircle",value:function(e,t,n,o,i){var a=this,s=i.fill,l=i.opacity,c=i.size,d=i.stroke,f=i.x,p=i.y,h={r:c?c(e):u.DEFAULT_SIZE,cx:f(e),cy:p(e),style:m({opacity:l?l(e):u.DEFAULT_OPACITY,stroke:d&&d(e),fill:s&&s(e),strokeWidth:n||1},o),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 r.default.createElement("circle",h)}},{key:"render",value:function(){var e=this,t=this.props,n=t.animation,o=t.className,i=t.data,u=t.marginLeft,f=t.marginTop,h=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(!i)return null;if(n)return r.default.createElement(a.default,p({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),r.default.createElement(d,p({},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 r.default.createElement("g",{className:(0,c.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--mark",o),transform:"translate(".concat(u,",").concat(f,")")},i.map(function(t,n){return g(t)&&e._renderCircle(t,n,h,m,y)}))}}])&&y(t.prototype,n),o&&y(t,o),d}(d.default);w.displayName="MarkSeries",w.propTypes=m(m({},d.default.propTypes),{},{getNull:i().func,strokeWidth:i().number}),w.defaultProps={getNull:function(){return!0}};const S=w},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2057),o=n(2280),i=n(2281);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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 n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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,n,r,a=d(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,r=[{key:"renderLayer",value:function(e,t){i.default.renderLayer(e,t),o.default.renderLayer(e,t)}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(n=[{key:"render",value:function(){return null}}])&&c(t.prototype,n),r&&c(t,r),s}(r.default);p.displayName="LineMarkSeriesCanvas",p.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r.default.propTypes);const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});var r=n(2070),o=n(2165),i=n(2098),a=n(2057);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
41function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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 n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(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&&d(e,t)}(l,e);var t,n,a,s=f(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 n=e.data,a=e.marginLeft,s=e.marginTop,l=(0,i.getAttributeFunctor)(e,"x"),c=(0,i.getAttributeFunctor)(e,"y"),u=(0,i.getAttributeFunctor)(e,"size")||function(){return o.DEFAULT_SIZE},d=(0,i.getAttributeFunctor)(e,"fill")||(0,i.getAttributeFunctor)(e,"color"),f=(0,i.getAttributeFunctor)(e,"stroke")||(0,i.getAttributeFunctor)(e,"color"),p=(0,i.getAttributeFunctor)(e,"opacity");n.forEach(function(e){var n=(0,r.rgb)(d(e)),i=(0,r.rgb)(f(e)),h=p(e)||o.DEFAULT_OPACITY;t.beginPath(),t.arc(l(e)+a,c(e)+s,u(e),0,2*Math.PI),t.fillStyle="rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(h,")"),t.fill(),t.strokeStyle="rgba(".concat(i.r,", ").concat(i.g,", ").concat(i.b,", ").concat(h,")"),t.stroke()})}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(n=[{key:"render",value:function(){return null}}])&&u(t.prototype,n),a&&u(t,a),l}(a.default);h.displayName="MarkSeriesCanvas",h.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},a.default.propTypes);const m=h},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(787),o=n.n(r),i=n(2070),a=n(2168),s=n(2172),l=n(396),c=n(2165),u=n(2098),d=n(2057);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(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 n,r=b(e);
41if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(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)}(d,e);var t,n,r,o=v(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),o.apply(this,arguments)}return t=d,r=[{key:"renderLayer",value:function(e,t){var n=e.curve,r=e.data,o=e.marginLeft,l=e.marginTop,d=e.strokeWidth,f=e.strokeDasharray;if(r&&0!==r.length){var p=(0,u.getAttributeFunctor)(e,"x"),h=(0,u.getAttributeFunctor)(e,"y"),m=(0,u.getAttributeValue)(e,"stroke")||(0,u.getAttributeValue)(e,"color"),g=(0,i.rgb)(m),y=(0,u.getAttributeValue)(e,"opacity"),v=Number.isFinite(y)?y:c.DEFAULT_OPACITY,b=s.default().x(function(e){return p(e)+o}).y(function(e){return h(e)+l});"string"==typeof n&&a[n]?b=b.curve(a[n]):"function"==typeof n&&(b=b.curve(n)),t.beginPath(),t.strokeStyle="rgba(".concat(g.r,", ").concat(g.g,", ").concat(g.b,", ").concat(v,")"),t.lineWidth=d,f&&t.setLineDash(f),b.context(t)(r),t.stroke(),t.closePath(),t.lineWidth=1,t.setLineDash([])}}},{key:"requiresSVG",get:function(){return!1}},{key:"isCanvas",get:function(){return!0}}],(n=[{key:"render",value:function(){return l.default.createElement("div",null)}}])&&g(t.prototype,n),r&&g(t,r),d}(d.default);_.displayName="LineSeriesCanvas",_.defaultProps=p(p({},d.default.defaultProps),{},{strokeWidth:2}),_.propTypes=p(p({},d.default.propTypes),{},{strokeWidth:o().number});const w=_},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>v});var r=n(396),o=n(2068),i=n(2164),a=n(2166),s=n(2057);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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(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 n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e,t,n){return"".concat(e.reduce(function(e,r,o){return"".concat(e," ").concat(o?"L":"M").concat(t(r)," ").concat(n(r))},"")," 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&&p(e,t)}(y,e);var t,n,l,m=h(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 n=null!=arguments[t]?arguments[t]:{};
41t%2?c(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s.default.propTypes)}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=t.animation,s=t.color,l=t.className,c=t.data,u=t.marginLeft,f=t.marginTop,p=t.style;if(!c)return null;if(n)return r.default.createElement(o.default,d({},this.props,{animatedProps:i.ANIMATED_SERIES_PROPS}),r.default.createElement(y,d({},this.props,{animation:null})));var h=this._getAttributeFunctor("x"),m=this._getAttributeFunctor("y");return r.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:p,d:g(c,h,m),transform:"translate(".concat(u,",").concat(f,")")})}}])&&f(t.prototype,n),l&&f(t,l),y}(s.default);y.displayName="PolygonSeries";const v=y},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(2057),i=n(2267);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&c(e,t)}(d,e);var t,n,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}}],(n=[{key:"render",value:function(){return r.default.createElement(i.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,n),o&&l(t,o),d}(o.default);f.displayName="VerticalBarSeries";const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2057),o=n(2269);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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 n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(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,n)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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,n,r,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:"x"===e,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){o.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}}],(n=[{key:"render",value:function(){return null}}])&&c(t.prototype,n),r&&c(t,r),a}(r.default);p.displayName="HorizontalBarSeriesCanvas",p.propTypes=s({},r.default.propTypes);const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(396),o=n(787),i=n.n(o),a=n(2259);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=n(2227).DIRECTION.VERTICAL,d=l(l({},a.default.propTypes),{},{direction:i().oneOf([u])}),f={direction:u,attr:"x"};function p(e){return r.default.createElement(a.default,e)}p.displayName="VerticalGridLines",p.propTypes=d,p.defaultProps=f,p.requiresSVG=!0;const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(2057),i=n(2272);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
41function 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 n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(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&&c(e,t)}(d,e);var t,n,o,a=u(d);function d(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),a.apply(this,arguments)}return t=d,o=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}}],(n=[{key:"render",value:function(){return r.default.createElement(i.default,s({},this.props,{linePosAttr:"x",valuePosAttr:"y",lineSizeAttr:"width",valueSizeAttr:"height"}))}}])&&l(t.prototype,n),o&&l(t,o),d}(o.default);f.displayName="VerticalRectSeries";const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(2057),o=n(2274);function i(e){return i="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},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(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 n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(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,n)}}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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,n,r,i=d(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return t=a,r=[{key:"getParentConfig",value:function(e){return{isDomainAdjustmentNeeded:!1,zeroBaseValue:"y"===e}}},{key:"renderLayer",value:function(e,t){o.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}}],(n=[{key:"render",value:function(){return null}}])&&c(t.prototype,n),r&&c(t,r),a}(r.default);p.displayName="HorizontalRectSeriesCanvas",p.propTypes=s({}
41,r.default.propTypes);const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(396),o=n(787),i=n.n(o),a=n(2058),s=n(2098),l=n(2166);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){return e};function p(e){var t,n,o,i,c,d=e.className,f=e.extent,p=e.nodes,h=e.onBlur,m=e.onClick,g=e.onMouseUp,y=e.onMouseDown,v=e.onHover,b=e.polygonStyle,_=e.style,w=e.x,S=e.y,E=(0,a.voronoi)().x(w||(0,s.getAttributeFunctor)(e,"x")).y(S||(0,s.getAttributeFunctor)(e,"y")).extent(f||(n=(t=e).innerWidth,o=t.innerHe
41ight,i=t.marginLeft,c=t.marginTop,[[i,c],[n+i,o+c]])).polygons(p),k=function(e){return function(t){t.preventDefault();var n=function(e){var t=e.nativeEvent,n=t.pageX,r=t.pageY,o=document.elementFromPoint(n,r);if(!o)return-1;var i=o.parentNode;return Array.prototype.indexOf.call(i.childNodes,o)}(t);if(n>-1&&n<E.length){var r=E[n];e(r.data)}}};return r.default.createElement("g",{className:(0,l.getCombinedClassName)(d,"rv-voronoi"),style:_,onTouchEnd:k(g),onTouchStart:k(y),onTouchMove:k(v),onTouchCancel:k(h)},E.map(function(e,t){return r.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 v(e.data)},onMouseOut:function(){return h(e.data)},fill:"none",style:u(u({pointerEvents:"all"},b),e.data&&e.data.style),key:t})}))}p.requiresSVG=!0,p.displayName="Voronoi",p.defaultProps={className:"",onBlur:f,onClick:f,onHover:f,onMouseDown:f,onMouseUp:f},p.propTypes={className:i().string,extent:i().arrayOf(i().arrayOf(i().number)),nodes:i().arrayOf(i().object).isRequired,onBlur:i().func,onClick:i().func,onHover:i().func,onMouseDown:i().func,onMouseUp:i().func,x:i().func,y:i().func};const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2164),l=n(2166),c=n(2165),u=n(2057);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 f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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&&h(e,t)}(u,e);var t,n,o,i=m(u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=e.animation,n=e.className,o=e.crossBarWidth,i=e.data,d=e.marginLeft,p=e.marginTop,h=e.strokeWidth,m=e.style;if(!i)return null;if(t)return r.default.createElement(a.default,f({},this.props,{animatedProps:s.ANIMATED_SERIES_PROPS}),r.default.createElement(u,f({},this.props,{animation:null})));var g={crossBarWidth:o,opacityFunctor:this._getAttributeFunctor("op
41acity"),sizeFunctor:this._getAttributeFunctor("size"),strokeFunctor:this._getAttributeFunctor("stroke")||this._getAttributeFunctor("color"),strokeWidth:h,style:m,xFunctor:this._getAttributeFunctor("x"),yFunctor:this._getAttributeFunctor("y"),valueClickHandler:this._valueClickHandler,valueRightClickHandler:this._valueRightClickHandler,valueMouseOverHandler:this._valueMouseOverHandler,valueMouseOutHandler:this._valueMouseOutHandler};return r.default.createElement("g",{className:(0,l.getCombinedClassName)("rv-xy-plot__series rv-xy-plot__series--whisker",n),transform:"translate(".concat(d,",").concat(p,")")},i.map(function(e){return function(t,n){var o=e.crossBarWidth,i=e.opacityFunctor,a=e.sizeFunctor,s=e.strokeFunctor,l=e.strokeWidth,u=e.style,d=e.valueClickHandler,f=e.valueMouseOutHandler,p=e.valueMouseOverHandler,h=e.valueRightClickHandler,m=e.xFunctor,g=e.yFunctor,y=a?a(t):0,b=m(t),_=g(t),w=m({x:t.x+t.xVariance/2}),S=m({x:t.x-t.xVariance/2}),E=g({y:t.y+t.yVariance/2}),k=g({y:t.y-t.yVariance/2}),T=w&&b+y<w,x=E&&_-y>E;if(!T&&!x)return null;var O=v({opacity:i?i(t):c.DEFAULT_OPACITY,stroke:s&&s(t),strokeWidth:l||1},u),C=o/2,P={x1:b+y,y1:_,x2:w,y2:_,style:O},A={x1:b-y,y1:_,x2:S,y2:_,style:O},I={x1:w,y1:_-C,x2:w,y2:_+C,style:O},R={x1:S,y1:_-C,x2:S,y2:_+C,style:O},j={x1:b,y1:_-y,x2:b,y2:E,style:O},M={x1:b,y1:_+y,x2:b,y2:k,style:O},D={x1:b-C,y1:E,x2:b+C,y2:E,style:O},N={x1:b-C,y1:k,x2:b+C,y2:k,style:O};return r.default.createElement("g",{className:"mark-whiskers",key:n,onClick:function(e){return d(t,e)},onContextMenu:function(e){return h(t,e)},onMouseOver:function(e){return p(t,e)},onMouseOut:function(e){return f(t,e)}},T?r.default.createElement("g",{className:"x-whiskers"},r.default.createElement("line",P),r.default.createElement("line",A),r.default.createElement("line",I),r.default.createElement("line",R)):null,x?r.default.createElement("g",{className:"y-whiskers"},r.default.createElement("line",j),r.default.createElement("line",M),r.default.createElement("line",D),r.default.createElement("line",N)):null)}}(g)))}}])&&p(t.prototype,n),o&&p(t,o),u}(u.default);_.displayName="WhiskerSeries",_.propTypes=v(v({},u.default.propTypes),{},{strokeWidth:i().number}),_.defaultProps=v(v({},u.default.defaultProps),{},{crossBarWidth:6,size:0,strokeWidth:1});const w=_},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(396),o=n(787),i=n.n(o),a=n(2291),s=n.n(a),l=n(2166),c=n(2098),u=n(2164),d=n(2350),f=n(2068),p=n(2165),h=n(2351);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 n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))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 n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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 n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;return S(e)}(this,n)}}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
41function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=["x","y","radius","angle","color","fill","stroke","opacity","size"];function C(e){return e.map(function(e){return Array.isArray(e)?e.map(function(e){return T(T({},e),{},{parent:null})}):e})}var P=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)}(n,e);var t=w(n);function n(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),x(S(r=t.call(this,e)),"_clickHandler",function(e){var t=r.props.onClick;t&&t(e)}),x(S(r),"_doubleClickHandler",function(e){var t=r.props.onDoubleClick;t&&t(e)}),x(S(r),"_mouseDownHandler",function(e){var t=r.props,n=t.onMouseDown,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentMouseDown&&o.onParentMouseDown(e)})}),x(S(r),"_mouseEnterHandler",function(e){var t=r.props,n=t.onMouseEnter,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentMouseEnter&&o.onParentMouseEnter(e)})}),x(S(r),"_mouseLeaveHandler",function(e){var t=r.props,n=t.onMouseLeave,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentMouseLeave&&o.onParentMouseLeave(e)})}),x(S(r),"_mouseMoveHandler",function(e){var t=r.props,n=t.onMouseMove,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentMouseMove&&o.onParentMouseMove(e)})}),x(S(r),"_mouseUpHandler",function(e){var t=r.props,n=t.onMouseUp,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentMouseUp&&o.onParentMouseUp(e)})}),x(S(r),"_touchCancelHandler",function(e){var t=r.props.onTouchCancel;t&&t(e)}),x(S(r),"_touchEndHandler",function(e){var t=r.props.onTouchEnd;t&&t(e)}),x(S(r),"_touchMoveHandler",function(e){var t=r.props,n=t.onTouchMove,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentTouchMove&&o.onParentTouchMove(e)})}),x(S(r),"_touchStartHandler",function(e){var t=r.props,n=t.onTouchStart,o=t.children;n&&n(e),(0,u.getSeriesChildren)(o).forEach(function(t,n){var o=r["series".concat(n)];o&&o.onParentTouchStart&&o.onParentTouchStart(e)})});var o=e.stackBy,i=(0,u.getSeriesChildren)(e.children),a=(0,u.getStackedData)(i,o);return r.state={scaleMixins:r._getScaleMixins(a,e),data:a},r}return b(n,null,[{key:"defaultProps",get:function(){return{className:""}}},{key:"propTypes",get:function(){return{animation:f.AnimationPropType,className:i().string,dontCheckIfEmpty:i().bool,height:i().number.isRequired,margin:d.MarginPropType,onClick:i().func,onDoubleClick:i().func,onMouseDown:i().func,onMouseUp:i().func,onMouseEnter:i().func,onMouseLeave:i().func,onMouseMove:i().func,onTouchStart:i().func,onTouchMove:i().func,onTouchEnd:i().func,onTouchCancel:i().func,onWheel:i().func,stackBy:i().oneOf(O),style:i().object,width:i().number.isRequired}}}]),b(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=(0,u.getSeriesChildren)(e.children),n=(0,u.getStackedData)(t,e.stackBy),r=this.state.scaleMixins,o=this._getScaleMixins(n,e);(function(e,t,n){var r=T(T({},e),{},{_allData:n?C(e._allData):e._allData}),o=T(T({},t),{},{_allData:n?C(t._allData):t._allData});return s()(r,o)})(o,r,e.hasTreeStructure)||this.setState({scaleMixins:o,data:n})}},{key:"_getClonedChildComponents",value:function(){var e=this,t=this.props,n=this.props.animation,o=this.state,i=o.scaleMixins,a=o.data,s=(0,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),l=r.default.Children.toArray(this.props.children),f=(0,u.getSeriesPropsFromChildren)(l),p=(0,c.getXYPlotValues)(t,l);return l.map(function(t,o){var l=null;if(f[o]){var c=f[o].seriesIndex;l={data:a[c]}}return r.default.cloneElement(t,T(T(T(T(T(T(T({},s),{},{animation:n},l&&t.type.prototype&&t.type.prototype.render?{ref:function(t){return e["series".concat(f[o].seriesIndex)]=t}}:{}),f[o]),i),t.props),p[o]),l))})}},{key:"_getDefaultScaleProps",value:function(e){var t=(0,d.getInnerDimensions)(e,d.DEFAULT_MARGINS),n=t.innerWidth,r=t.innerHe
41ight,o=["color","fill","stroke"].reduce(function(t,n){var r="category"===e["".concat(n,"Type")]?p.EXTENDED_DISCRETE_COLOR_RANGE:p.CONTINUOUS_COLOR_RANGE;return T(T({},t),{},x({},"".concat(n,"Range"),r))},{});return T(T({xRange:[0,n],yRange:[r,0]},o),{},{opacityType:p.OPACITY_TYPE,sizeRange:p.SIZE_RANGE})}},{key:"_getScaleMixins",value:function(e,t){var n,r=e.filter(function(e){return e}),o=(n=[]).concat.apply(n,g(r)),i=this._getDefaultScaleProps(t),a=(0,c.getOptionalScaleProps)(t),s=(0,c.extractScalePropsFromProps)(t,O),l=(0,c.getMissingScaleProps)(T(T(T({},i),a),s),o,O),d=(0,u.getSeriesChildren)(t.children),f={},p=new Set,h=new Set;return d.forEach(function(n,r){n&&e[r]&&O.forEach(function(e){var o=n.type.getParentConfig(e,n.props),i=o.isDomainAdjustmentNeeded,a=o.zeroBaseValue;if(i&&(p.add(e),h.add(r)),a){var s=t["".concat(e,"Domain")];f["".concat(e,"BaseValue")]=s?s[0]:0}})}),T(T(T(T(T({},i),f),s),l),{},{_allData:e,_adjustBy:Array.from(p),_adjustWhat:Array.from(h),_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 n=t[0].props,o=n.marginLeft,i=n.marginTop,a=n.marginBottom,s=n.marginRight,l=n.innerHeight,c=n.innerWidth;return r.default.createElement(h.default,{innerHeight:l,innerWidth:c,marginLeft:o,marginTop:i,marginBottom:a,marginRight:s},t)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.dontCheckIfEmpty,o=e.style,i=e.width,a=e.height,s=e.onWheel;if(!n&&this._isPlotEmpty())return r.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-xy-plot",t),style:T({width:"".concat(i,"px"),height:"".concat(a,"px")},this.props.style)});var c=this._getClonedChildComponents();return r.default.createElement("div",{style:{width:"".concat(i,"px"),height:"".concat(a,"px")},className:(0,l.getCombinedClassName)("rv-xy-plot",t)},r.default.createElement("svg",{className:"rv-xy-plot__inner",width:i,height:a,style:o,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}))}}]),n}(r.default.Component);P.displayName="XYPlot";const A=P},(e,t,n)=>{var r=n(2292),o=n(2295),i=n(2332),a=n(2342),s=n(2343),l=n(2349),c=Date.prototype.getTime;function u(e,t,n){var p=n||{};return!!(p.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?p.strict?i(e,t):e==t:function(e,t,n){var i,p;if(typeof e!=typeof t)return!1;if(d(e)||d(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&s(e)===s(t);if(l(e)&&l(t))return c.call(e)===c.call(t);var g=f(e),y=f(t);if(g!==y)return!1;if(g||y){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var v=r(e),b=r(t)}catch(e){return!1}if(v.length!==b.length)return!1;for(v.sort(),b.sort(),i=v.length-1;i>=0;i--)if(v[i]!=b[i])return!1;for(i=v.length-1;i>=0;i--)if(!u(e[p=v[i]],t[p],n))return!1;return!0}(e,t,p))}function d(e){return null==e}function f(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,n)=>{"use strict";var r=Array.prototype.slice,o=n(2293),i=Object.keys,a=i?function(e){return i(e)}:n(2294),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);
vendor: 4,525 bytes, line 41
41e||(Object.keys=function(e){return o(e)?s(r.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 n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(2293),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$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},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)f.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)f.push(String(g));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||f.push(String(y));if(l)for(var v=function(e){if("undefined"==typeof window||!p)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!o.call(e,u[b])||f.push(u[b]);return f}}e.exports=r},(e,t,n)=>{"use strict";var r=n(2296)(),o=n(2298)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=s?i:a},(e,t,n)=>{"use strict";var r=n(2297);e.exports=function(){return r()&&!!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"),n=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(n))return!1;for(var r 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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},(e,t,n)=>{"use strict";var r=n(2299),o=n(2324),i=o([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o([n]):n}},(e,t,n)=>{"use strict";var r,o=n(2300),i=n(2301),a=n(2302),s=n(2303),l=n(2304),c=n(2305),u=n(2306),d=n(2307),f=n(2308),p=n(2309),h=n(2310),m=n(2311),g=n(2312),y=n(2313),v=n(2314),b=Function,_=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(2316),S=n(2318),E=function(){throw new u},k=w?function(){try{return E}catch(e){try{return w(arguments,"callee").get}catch(e){return E}}}():E,T=n(2319)(),x=n(2320),O=n(2322),C=n(2321),P=n(2329),A=n(2327),I={},R="undefined"!=typeof Uint8Array&&x?x(Uint8Array):r,j={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":T&&x?x([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?r:Atom
vendor: 7,189 bytes, line 41
41ics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&x?x(x([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&x?x((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&x?x((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&x?x(""[Symbol.iterator]()):r,"%Symbol%":T?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":P,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":O,"%Math.abs%":f,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":C};if(x)try{null.error}catch(e){var M=x(x(e));j["%Error.prototype%"]=M}var D=function e(t){var n;if("%AsyncFunction%"===t)n=_("async function () {}");else if("%GeneratorFunction%"===t)n=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=_("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&x&&(n=x(o.prototype))}return j[t]=n,n},N={__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"]},L=n(2325),F=n(2331),B=L.call(A,Array.prototype.concat),z=L.call(P,Array.prototype.splice),U=L.call(A,String.prototype.replace),H=L.call(A,String.prototype.slice),V=L.call(A,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,W=function(e,t){var n,r=e;if(F(N,r)&&(r="%"+(n=N[r])[0]+"%"),F(j,r)){var o=j[r];if(o===I&&(o=D(r)),void 0===o&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return U(e,q,function(e,t,n,o){r[r.length]=n?U(o,G,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=W("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],z(n,B([0,1],l)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],h=H(p,0,1),m=H(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&f||(s=!0),F(j,i="%"+(r+="."+p)+"%"))a=j[i];
vendor: 4,756 bytes, line 41
41else if(null!=a){if(!(p in a)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var g=w(a,p);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=F(a,p),a=a[p];f&&!s&&(j[i]=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,n)=>{"use strict";var r=n(2315);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},(e,t,n)=>{"use strict";var r=n(2317);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},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,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(2297);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},(e,t,n)=>{"use strict";var r=n(2321),o=n(2322),i=n(2323);e.exports=r?function(e){return r(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:i?function(e){return i(e)}:null},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},(e,t,n)=>{"use strict";var r=n(2300);e.exports=r.getPrototypeOf||null},(e,t,n)=>{"use strict";var r,o=n(2324),i=n(2316);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!r&&i&&i(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof l&&function(e){return l(null==e?e:s(e))}},(e,t,n)=>{"use strict";var r=n(2325),o=n(2306),i=n(2327),a=n(2328);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(r,i,e)}},(e,t,n)=>{"use strict";var r=n(2326);e.exports=Function.prototype.bind||r},e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e,t){for(var n=[],r=t||0,o=0;r<e.length;r+=1,o+=1)n[o]=e[r];return n}(arguments,1),s=n(0,o.length-a.length),l=[],c=0;c<s;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n}(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var t=o.apply(this,r(a,arguments));return Object(t)===t?t:this}return o.apply(e,r(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i}},e=>{"use strict";e.exports=Function.prototype.call},(e,t,n)=>{"use strict";var r=n(2325),o=n(2329),i=n(2327),a=n(2330);e.exports=a||r.call(i,o)},e=>{"use strict";e.exports=Function.prototype.apply},e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},(e,t,n)=>{"use strict";var r=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=n(2325);e.exports=i.call(r,o)},(e,t,n)=>{"use strict";var r=n(2333),o=n(2336),i=n(2339),a=n(2340),s=n(2341),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},(e,t,n)=>{"use strict";var r=n(2292),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=n(2334),l=n(2335)(),c=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?s(e,t,n,!0):s(e,t,n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)c(e,i[s],t[i[s]],n[i[s]])};u.supportsDescriptors=!!l,e.exports=u},(e,t,n)=>{"use strict";var r=n(2318),o=n(2305),i=n(2306),a=n(2316);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new i("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new i("`property` must be a string or a symbol`");
vendor: 5,717 bytes, line 41
41if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new i("`loose`, if provided, must be a boolean");var 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],d=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},(e,t,n)=>{"use strict";var r=n(2318),o=function(){return!!r};o.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},(e,t,n)=>{"use strict";var r=n(2337),o=n(2318),i=n(2324),a=n(2338);e.exports=function(e){var t=i(arguments),n=1+e.length-(arguments.length-1);return r(t,n>0?n:0,!0)},o?o(e.exports,"apply",{value:a}):e.exports.apply=a},(e,t,n)=>{"use strict";var r=n(2299),o=n(2334),i=n(2335)(),a=n(2316),s=n(2306),l=r("%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 n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&a){var u=a(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},(e,t,n)=>{"use strict";var r=n(2325),o=n(2329),i=n(2328);e.exports=function(){return i(r,o,arguments)}},e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},(e,t,n)=>{"use strict";var r=n(2339);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},(e,t,n)=>{"use strict";var r=n(2340),o=n(2333);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},(e,t,n)=>{"use strict";var r,o=n(2298),i=n(2296)(),a=n(2331),s=n(2316);if(i){var l=o("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"==typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!=typeof e)return!1;var t=s(e,"lastIndex");if(!(t&&a(t,"value")))return!1;try{l(e,d)}catch(e){return e===c}}}else{var f=o("Object.prototype.toString");r=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===f(e)}}e.exports=r},(e,t,n)=>{"use strict";var r=n(2333),o=n(2336),i=n(2344),a=n(2347),s=n(2348),l=o(a());r(l,{getPolyfill:a,implementation:i,shim:s}),e.exports=l},(e,t,n)=>{"use strict";var r=n(2345),o=n(2306),i=Object;e.exports=r(function(){if(null==this||this!==i(this))throw new o("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,n)=>{"use strict";var r=n(2334),o=n(2335)(),i=n(2346).functionsHaveConfigurableNames(),a=n(2306);e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!i||(o?r(e,"name",t,!0,!0):r(e,"name",t)),e}},e=>{"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n(function(){},"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},(e,t,n)=>{"use strict";var r=n(2344),o=n(2333).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),"dy"===t)return e.get}}return r}},(e,t,n)=>{"use strict";var r=n(2333).supportsDescriptors,o=n(2347),i=n(2316),a=Object.defineProperty,s=n(2301),l=n(2320),c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=l(c),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},(e,t,n)=>{"use strict";var r=n(2298),o=r("Date.prototype.getDay"),i=r("Object.prototype.toString"),a=n(2296)();e.exports=function(e){return"object"==typeof e&&null!==e&&(a?function(e){try{return o(e),!0}catch(e){return!1}}(e):"[object Date]"===i(e))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_MARGINS:()=>d,MarginPropType:()=>u,getInnerDimensions:()=>l,getRadialLayoutMargin:()=>c});var r=n(787),o=n.n(r);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?i(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=e.margin,r=e.width,o=e.height,i=a(a({},t),"number"==typeof n?{left:n,right:n,top:n,bottom:n}:n),s=i.left,l=void 0===s?0:s,c=i.top,u=void 0===c?0:c,d=i.right,f=void 0===d?0:d,p=i.bottom,h=void 0===p?0:p;return{marginLeft:l,marginTop:u,marginRight:f,marginBottom:h,innerHeight:o-h-u,innerWidth:r-l-f}}function c(e,t,n){var r=e/2-n,o=t/2-n;return{bottom:o,left:r,right:r,top:o}}var u=o().oneOfType([o().shape({left:o().number,top:o().number,right:o().number,bottom:o().number}),o().number]),d={left:40,right:10,top:10,bottom:40}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(396),o=n(787),i=n.n(o),a=n(2069),s=n(2068),l=n(2164);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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(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 n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t,n,r,o){e.clearRect(0,0,n,t),r.forEach(function(t){var n=t.interpolator,r=t.newProps,i=t.animation?n?n(o/30):n:function(){return{}};t.renderLayer(m(m({},r),i),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&&d(e,t)}(c,e);var t,n,o,i=f(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,o=[{key:"defaultProps",get:function(){return{pixelRatio:window&&window.devicePixelRatio||1}}}],(n=[{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,n){var r=t.children,o=t.innerHe
41ight,i=t.innerWidth,c=t.marginBottom,u=t.marginLeft,d=t.marginRight,f=t.marginTop;if(n){var p,h,g=r.find(function(e){return e.props.animation}),v=o+f+c,b=i+u+d,_=(p=t.children,h=e?e.children:[],p.map(function(e,t){var n=h[t]?h[t].props:{},r=e.props,o=(0,s.extractAnimatedPropValues)(m(m({},n),{},{animatedProps:l.ANIMATED_SERIES_PROPS})),i=r?(0,s.extractAnimatedPropValues)(m(m({},r),{},{animatedProps:l.ANIMATED_SERIES_PROPS})):null,c=(0,a.default)(o,i);return{renderLayer:e.type.renderLayer,newProps:e.props,animation:e.props.animation,interpolator:c}}));g?function(e,t,n,r){var o=0,i=setInterval(function(){e?(y(e,t,n,r,o),o>30&&clearInterval(i),o+=1):clearInterval(i)},1)}(n,v,b,_):y(n,v,b,_)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.innerHeight,o=t.innerWidth,i=t.marginBottom,a=t.marginLeft,s=t.marginRight,l=t.marginTop,c=t.pixelRatio,u=n+l+i,d=o+a+s;return r.default.createElement("div",{style:{left:0,top:0},className:"rv-xy-canvas"},r.default.createElement("canvas",{className:"rv-xy-canvas-element",height:u*c,width:d*c,style:{height:"".concat(u,"px"),width:"".concat(d,"px")},ref:function(t){return e.canvas=t}}),this.props.children)}}])&&u(t.prototype,n),o&&u(t,o),c}(r.Component);v.displayName="CanvasWrapper",v.propTypes={marginBottom:i().number.isRequired,marginLeft:i().number.isRequired,marginRight:i().number.isRequired,marginTop:i().number.isRequired,innerHeight:i().number.isRequired,innerWidth:i().number.isRequired,pixelRatio:i().number.isRequired};const b=v},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(396),o=n(787),i=n.n(o),a=n(2227),s=n(2353);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=a.ORIENTATION.TOP,f=a.ORIENTATION.BOTTOM,p=c(c({},s.default.propTypes),{},{orientation:i().oneOf([d,f])}),h={orientation:f,attr:"x",attrAxis:"y"};function m(e){return r.default.createElement(s.default,e)}m.displayName="XAxis",m.propTypes=p,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2227),l=n(2098),c=n(2166),u=n(2354),d=n(2355),f=n(2356);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 h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){g(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(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 n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}
41function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var S=["xRange","yRange","xDomain","yDomain","width","height","marginLeft","marginTop","marginRight","marginBottom","tickSize","tickTotal","tickSizeInner","tickSizeOuter"],E=s.ORIENTATION.LEFT,k=s.ORIENTATION.RIGHT,T=s.ORIENTATION.TOP,x=s.ORIENTATION.BOTTOM,O={orientation:i().oneOf([E,k,T,x]),attr:i().string.isRequired,attrAxis:i().string,width:i().number,height:i().number,top:i().number,left:i().number,title:i().string,style:i().object,className:i().string,hideTicks:i().bool,hideLine:i().bool,on0:i().bool,tickLabelAngle:i().number,tickSize:i().number,tickSizeInner:i().number,tickSizeOuter:i().number,tickPadding:i().number,tickValues:i().arrayOf(i().oneOfType([i().number,i().string])),tickFormat:i().func,tickTotal:i().number,marginTop:i().number,marginBottom:i().number,marginLeft:i().number,marginRight:i().number,innerWidth:i().number,innerHeight:i().number},C={className:"",on0:!1,style:{},tickSize:6,tickPadding:8,orientation:x},P=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,n,o,i=_(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:"_getDefaultAxisProps",value:function(){var e=this.props,t=e.innerWidth,n=e.innerHeight,r=e.marginTop,o=e.marginBottom,i=e.marginLeft,a=e.marginRight,l=e.orientation;return l===x?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:n+r,left:i,width:t,height:o}:l===T?{tickTotal:(0,s.getTicksTotalFromSize)(t),top:0,left:i,width:t,height:r}:l===E?{tickTotal:(0,s.getTicksTotalFromSize)(n),top:r,left:0,width:i,height:n}:{tickTotal:(0,s.getTicksTotalFromSize)(n),top:r,left:i+t,width:a,height:n}}},{key:"render",value:function(){var e=this.props.animation;if(e){var t=e.nonAnimatedProps?S.filter(function(t){return e.nonAnimatedProps.indexOf(t)<0}):S;return r.default.createElement(a.default,y({},this.props,{animatedProps:t}),r.default.createElement(p,y({},this.props,{animation:null})))}var n=m(m({},this._getDefaultAxisProps()),this.props),o=n.attrAxis,i=n.className,s=n.height,h=n.hideLine,g=n.hideTicks,v=n.left,b=n.marginTop,_=n.on0,w=n.orientation,T=n.position,x=n.style,O=n.title,C=n.top,P=n.width,A=[E,k].indexOf(w)>-1,I=A?"rv-xy-plot__axis--vertical":"rv-xy-plot__axis--horizontal",R=v,j=C;if(_){var M=(0,l.getAttributeScale)(n,o);A?R=M(0):j=b+M(0)}return r.default.createElement("g",{transform:"translate(".concat(R,",").concat(j,")"),className:(0,c.getCombinedClassName)("rv-xy-plot__axis",I,i),style:x},!h&&r.default.createElement(u.default,{height:s,width:P,orientation:w,style:m(m({},x),x.line)}),!g&&r.default.createElement(d.default,y({},n,{style:m(m({},x),x.ticks)})),O?r.default.createElement(f.default,{position:T,title:O,height:s,width:P,style:m(m({},x),x.title),orientation:w}):null)}}])&&v(t.prototype,n),o&&v(t,o),p}(r.PureComponent);P.displayName="Axis",P.propTypes=O,P.defaultProps=C,P.requiresSVG=!0;const A=P},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(396),o=n(787),i=n.n(o),a=n(2227);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var l=a.ORIENTATION.LEFT,c=a.ORIENTATION.RIGHT,u=a.ORIENTATION.TOP,d=a.ORIENTATION.BOTTOM,f={height:i().number.isRequired,style:i().object,orientation:i().oneOf([l,c,u,d]).isRequired,width:i().number.isRequired};function p(e){var t,n=e.orientation,o=e.width,i=e.height,a=e.style;return t=n===l?{x1:o,x2:o,y1:0,y2:i}:n===c?{x1:0,x2:0,y1:0,y2:i}:n===u?{x1:0,x2:o,y1:i,y2:i}:{x1:0,x2:o,y1:0,y2:0},r.default.createElement("line",s({},t,{className:"rv-xy-plot__axis__line",style:a}))}p.defaultProps={style:{}},p.displayName="AxisLine",p.propTypes=f;const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E});var r=n(396),o=n(787),i=n.n(o),a=n(2227),s=n(2098);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(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 n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var y=a.ORIENTATION.LEFT,v=a.ORIENTATION.RIGHT,b=a.ORIENTATION.TOP,_=a.ORIENTATION.BOTTOM,w={height:i().number.isRequired,orientation:i().oneOf([y,v,b,_]).isRequired,style:i().object,width:i().number.isRequired};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&&h(e,t)}(l,e);var t,n,o,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:"_areTicksWrapped",value:function(){var e=this.props.orientation;return e===y||e===b}},{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,n=t.orientation,r=t.tickLabelAngle,o=t.tickSize,i=t.tickSizeOuter,a=void 0===i?o:i,s=t.tickPadding,l=void 0===s?o:s;e=n===y||n===_&&r?"end":n===v||n===b&&r?"start":"middle";var c=this._isAxisVertical(),u=(this._areTicksWrapped()?-1:1)*(a+l),d=(c?"translate(".concat(u,", 0)"):"translate(0, ".concat(u,")"))+(r?" rotate(".concat(r,")"):"");return{textAnchor:e,dy:n===b||r?"0":n===_?"0.72em":"0.32em",transform:d}}},{key:"_getTickLineProps",value:function(){var e,t=this.props,n=t.tickSize,r=t.tickSizeOuter,o=void 0===r?n:r,i=t.tickSizeInner,a=void 0===i?n:i,s=this._isAxisVertical(),l=s?"y":"x",c=s?"x":"y",u=this._areTicksWrapped()?-1:1;return f(e={},"".concat(l,"1"),0),f(e,"".concat(l,"2"),0),f(e,"".concat(c,"1"),-u*a),f(e,"".concat(c,"2"),u*o),e}},{key:"_isAxisVertical",value:function(){var e=this.props.orientation;return e===y||e===v}},{key:"render",value:function(){var e=this.props,t=e.attr,n=e.orientation,o=e.width,i=e.height,l=e.style,u=e.tickFormat,f=e.tickTotal,p=e.tickValues,h=n===y?o:0,m=n===b?i:0,g=(0,s.getAttributeScale)(this.props,t),v=(0,a.getTickValues)(g,f,p),_=function(e,t,n){return n||(e.tickFormat?e.tickFormat(t):function(e){return e})}(g,f,u),w=this._getTickContainerPropsGetterFn(),S=this._getTickLineProps(),E=this._getTickLabelProps(),k=v.map(function(e,t){var n=g(e),i=_(e,t,g,f),a=r.default.isValidElement(i)&&!["tspan","textPath"].includes(i.type),s=i&&"string"!=typeof i.type;return r.default.createElement("g",c({key:t},w(n,0),{className:"rv-xy-plot__axis__tick",style:l}),r.default.createElement("line",c({},S,{className:"rv-xy-plot__axis__tick__line",style:d(d({},l),l.line)})),a?r.default.cloneElement(i,s?d(d({},E),{},{containerWidth:o,tickCount:v.length}):void 0):r.default.createElement("text",c({},E,{className:"rv-xy-plot__axis__tick__text",style:d(d({},l),l.text)}),i))});return r.default.createElement("g",{transform:"translate(".concat(h,", ").concat(m,")"),className:"rv-xy-plot__axis__ticks"},k)}}])&&p(t.prototype,n),o&&p(t,o),l}(r.default.Component);S.defaultProps={style:{}},S.displayName="AxisTicks",S.propTypes=w,S.requiresSVG=!0;const E=S},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(396),o=n(787),i=n.n(o),a=n(2227);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=16,d=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,p=a.ORIENTATION.TOP,h=a.ORIENTATION.BOTTOM,m={width:i().number.isRequired,height:i().number.isRequired,orientation:i().oneOf([d,f,p,h]).isRequired,style:i().object,title:i().string.isRequired};function g(e){var t=e.orientation,n=e.position,o=e.width,i=e.height,a=e.style,s=e.title,m=t===p?i:0,g="translate(".concat(t===d?o:0,", ").concat(m,")"),y=function(e,t){var n;return c(n={},d,{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(n,f,{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(n,p,{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(n,h,{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"}}),n}(o,i)[t][n],v=y.x,b=y.y,_=y.rotation,w=y.textAnchor,S="translate(".concat(v,", ").concat(b,") rotate(").concat(_,")");return r.default.createElement("g",{transform:g,className:"rv-xy-plot__axis__title"},r.default.createElement("g",{style:l({textAnchor:w},a),transform:S},r.default.createElement("text",{style:a},s)))}g.displayName="AxisTitle",g.propTypes=m,g.defaultProps={position:"end"};const y=g},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var r=n(396),o=n(787),i=n.n(o),a=n(2227),s=n(2353);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=a.ORIENTATION.LEFT,f=a.ORIENTATION.RIGHT,p=c(c({},s.default.propTypes),{},{orientation:i().oneOf([d,f])}),h={orientation:d,attr:"y",attrAxis:"x"};function m(e){return r.default.createElement(s.default,e)}m.displayName="YAxis",m.propTypes=p,m.defaultProps=h,m.requiresSVG=!0;const g=m},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(396),o=n(787),i=n.n(o),a=n(2165),s=n(2166),l={className:i().string,height:i().number,endColor:i().string,endTitle:i().oneOfType([i().number,i().string]).isRequired,midColor:i().string,midTitle:i().oneOfType([i().number,i().string]),startColor:i().string,startTitle:i().oneOfType([i().number,i().string]).isRequired,width:i().number},c={className:"",startColor:a.CONTINUOUS_COLOR_RANGE[0],endColor:a.CONTINUOUS_COLOR_RANGE[1]};function u(e){var t=e.startColor,n=e.midColor,o=e.endColor,i=e.startTitle,a=e.midTitle,l=e.endTitle,c=e.height,u=e.width,d=e.className,f=[t];return n&&f.push(n),f.push(o),r.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-continuous-color-legend",d),style:{width:u,height:c}},r.default.createElement("div",{className:"rv-gradient",style:{background:"linear-gradient(to right, ".concat(f.join(","),")")}}),r.default.createElement("div",{className:"rv-legend-titles"},r.default.createElement("span",{className:"rv-legend-titles__left"},i),r.default.createElement("span",{className:"rv-legend-titles__right"},l),a?r.default.createElement("span",{className:"rv-legend-titles__center"},a):null))}
41u.displayName="ContinuousColorLegend",u.propTypes=l,u.defaultProps=c;const d=u},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=n(396),o=n(787),i=n.n(o),a=n(2166),s={className:i().string,circlesTotal:i().number,endSize:i().number,endTitle:i().oneOfType([i().number,i().string]).isRequired,height:i().number,startSize:i().number,startTitle:i().oneOfType([i().number,i().string]).isRequired,width:i().number};function l(e){for(var t=e.startTitle,n=e.endTitle,o=e.startSize,i=e.endSize,s=e.circlesTotal,l=e.height,c=e.width,u=e.className,d=[],f=(i-o)/(s-1),p=0;p<s;p++){var h=f*p+o;d.push(r.default.createElement("div",{key:p,className:"rv-bubble",style:{width:h,height:h,borderRadius:h/2}})),d.push(" ")}return r.default.createElement("div",{className:(0,a.getCombinedClassName)("rv-continuous-size-legend",u),style:{width:c,height:l}},r.default.createElement("div",{className:"rv-bubbles",style:{height:i}},d,r.default.createElement("div",{className:"rv-spacer"})),r.default.createElement("div",{className:"rv-legend-titles"},r.default.createElement("span",{className:"rv-legend-titles__left"},t),r.default.createElement("span",{className:"rv-legend-titles__right"},n)))}l.displayName="ContinuousSizeLegend",l.propTypes=s,l.defaultProps={circlesTotal:10,className:"",endSize:20,startSize:2};const c=l},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var r=n(396),o=n(787),i=n.n(o),a=n(2361),s=n(2165),l=n(2166);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=e.className,n=e.colors,o=e.height,i=e.items,s=e.onItemClick,c=e.onItemMouseEnter,d=e.onItemMouseLeave,f=e.orientation,p=e.style,h=e.width;return r.default.createElement("div",{className:(0,l.getCombinedClassName)("rv-discrete-color-legend",f,t),style:u({width:h,height:o},p)},i.map(function(e,t){return r.default.createElement(a.default,{title:e.title?e.title:e,color:e.color?e.color:n[t%n.length],strokeDasharray:e.strokeDasharray,strokeStyle:e.strokeStyle,strokeWidth:e.strokeWidth,disabled:Boolean(e.disabled),orientation:f,key:t,onClick:s?function(n){return s(e,t,n)}:null,onMouseEnter:c?function(n){return c(e,t,n)}:null,onMouseLeave:c?function(n){return d(e,t,n)}:null})}))}f.displayName="DiscreteColorLegendItem",f.propTypes={className:i().string,items:i().arrayOf(i().oneOfType([i().shape({title:i().oneOfType([i().string,i().element]).isRequired,color:i().string,disabled:i().bool}),i().string.isRequired,i().element])).isRequired,onItemClick:i().func,onItemMouseEnter:i().func,onItemMouseLeave:i().func,height:i().number,width:i().number,orientation:i().oneOf(["vertical","horizontal"])},f.defaultProps={className:"",colors:s.DISCRETE_COLOR_RANGE,orientation:"vertical"};const p=f},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(396),o=n(787),i=n.n(o);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c={dashed:"6, 2",solid:null};function u(e){var t=e.color,n=e.strokeDasharray,o=e.strokeStyle,i=e.strokeWidth,a=e.disabled,l=e.onClick,u=e.orientation,d=e.onMouseEnter,f=e.onMouseLeave,p=e.title,h="rv-discrete-color-legend-item ".concat(u);a&&(h+=" disabled"),l&&(h+=" clickable");var m=c[o]||n;return r.default.createElement("div",{className:h,onClick:l,onMouseEnter:d,onMouseLeave:f},r.default.createElement("svg",{className:"rv-discrete-color-legend-item__color",height:2,width:14},r.default.createElement("path",{className:"rv-discrete-color-legend-item__color__path",d:"M 0, 1 L 14, 1",style:s(s(s({},i?{strokeWidth:i}:{}),m?{strokeDasharray:m}:{}),{},{stroke:a?null:t})})),r.default.createElement("span",{className:"rv-discrete-color-legend-item__title"},p))}
41u.propTypes={color:i().string.isRequired,disabled:i().bool,title:i().oneOfType([i().string,i().element]).isRequired,onClick:i().func,onMouseEnter:i().func,onMouseLeave:i().func,orientation:i().oneOf(["vertical","horizontal"]).isRequired,strokeDasharray:i().string,strokeWidth:i().number,strokeStyle:i().oneOf(Object.keys(c))},u.defaultProps={disabled:!1,strokeStyle:"solid"},u.displayName="DiscreteColorLegendItem";const d=u},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(396),o=n(787),i=n.n(o),a=n(2360),s=n(2166);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=c(c({},a.default.propTypes),{},{searchText:i().string,onSearchChange:i().func,searchPlaceholder:i().string,searchFn:i().func}),f={className:"",searchText:"",searchFn:function(e,t){return e.filter(function(e){return-1!==String(e.title||e).toLowerCase().indexOf(t)})}};function p(e){var t=e.className,n=e.colors,o=e.height,i=e.items,l=e.onItemClick,c=e.onItemMouseEnter,u=e.onItemMouseLeave,d=e.onSearchChange,f=e.orientation,p=e.searchFn,h=e.searchPlaceholder,m=e.searchText,g=e.width,y=d?function(e){var t=e.target.value;return d(t)}:null,v=p(i,m);return r.default.createElement("div",{className:(0,s.getCombinedClassName)("rv-search-wrapper",t),style:{width:g,height:o}},r.default.createElement("form",{className:"rv-search-wrapper__form"},r.default.createElement("input",{type:"search",placeholder:h,className:"rv-search-wrapper__form__input",value:m,onChange:y})),r.default.createElement("div",{className:"rv-search-wrapper__contents"},r.default.createElement(a.default,{colors:n,items:v,onItemClick:l,onItemMouseEnter:c,onItemMouseLeave:u,orientation:f})))}p.propTypes=d,p.defaultProps=f,p.displayName="SearchableDiscreteColorLegend";const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>I});var r=n(396),o=n(787),i=n.n(o),a=n(2104),s=n(2116),l=n(2068),c=n(2290),u=n(2165),d=n(2350),f=n(2166),p=n(2277),h=n(2276),m=n(2275),g=n(2256),y=n(2264);function v(e){return v="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},v(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(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 n,r=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;return S(e)}(this,n)}}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?k(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O="rv-parallel-coordinates-chart",C=(0,s.format)(".2r");function P(e){var t=e.domains,n=e.style;return t.map(function(e){return{x:e.name,y:1.1,label:e.name,style:n}})}var A=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,n,o,i=w(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,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return x(S(e=i.call.apply(i,[this].concat(n))),"state",{brushFilters:{}}),e}return t=s,(n=[{key:"render",value:function(){var e=this,t=this.state.brushFilters,n=this.props,o=n.animation,i=n.brushing,s=n.className,l=n.children,u=n.colorRange,v=n.data,b=n.domains,_=n.height,w=n.hideInnerMostValues,S=n.margin,E=n.onMouseLeave,k=n.onMouseEnter,C=n.showMarks,A=n.style,I=n.tickFormat,R=n.width,j=function(e){var t=e.animation,n=e.domains,o=e.style,i=e.tickFormat;return n.map(function(e,n){var a=e.domain;return r.default.createElement(g.default,{animation:t,key:"".concat(n,"-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):i(t)},style:o.axes})})}({domains:b,animation:o,hideInnerMostValues:w,style:A,tickFormat:I}),M=function(e){var t=e.animation,n=e.brushFilters,o=e.colorRange,i=e.domains,s=e.data,l=e.style,c=e.showMarks,u=i.reduce(function(e,t){var n=t.domain;return e[t.name]=(0,a.default)().domain(n).range([0,1]),e},{});return s.map(function(e,a){var s=!0,d=i.map(function(t){var r=t.getValue,o=t.name,i=u[o](r?r(e):e[o]),a=n[o];return a&&(i<a.min||i>a.max)&&(s=!1),{x:o,y:i}}),f="".concat(O,"-line"),m="".concat(f," ").concat(O,"-line-unselected"),g={animation:t,className:s?f:m,key:"".concat(a,"-polygon"),data:d,color:e.color||o[a%o.length],style:T(T({},l.lines),e.style||{})};return s||(g.style=T(T({},g.style),l.deselectedLineStyle)),c?r.default.createElement(h.default,g):r.default.createElement(p.default,g)})}({animation:o,brushFilters:t,colorRange:u,domains:b,data:v,showMarks:C,style:A}),D=r.default.createElement(m.default,{animation:!0,key:s,className:"".concat(O,"-label"),data:P({domains:b,style:A.labels})}),N=(0,d.getInnerDimensions)(this.props,d.DEFAULT_MARGINS),L=N.marginLeft,F=N.marginRight;return r.default.createElement(c.default,{height:_,width:R,margin:S,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(s,O),onMouseLeave:E,onMouseEnter:k,xType:"ordinal",yDomain:[0,1]},l,j.concat(M).concat(D),i&&b.map(function(n){var o=function(r){e.setState({brushFilters:T(T({},t),{},x({},n.name,r?{min:r.bottom,max:r.top}:null))})};return r.default.createElement(y.default,{key:n.name,drag:!0,highlightX:n.name,onBrushEnd:o,onDragEnd:o,highlightWidth:(R-L-F)/b.length,enableX:!1})}))}}])&&b(t.prototype,n),o&&b(t,o),s}(r.Component);A.displayName="ParallelCoordinates",A.propTypes={animation:l.AnimationPropType,brushing:i().bool,className:i().string,colorType:i().string,colorRange:i().arrayOf(i().string),data:i().arrayOf(i().object).isRequired,domains:i().arrayOf(i().shape({name:i().string.isRequired,domain:i().arrayOf(i().number).isRequired,tickFormat:i().func})).isRequired,height:i().number.isRequired,margin:d.MarginPropType,style:i().shape({axes:i().object,labels:i().object,lines:i().object}),showMarks:i().bool,tickFormat:i().func,width:i().number.isRequired},A.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:C};const I=A},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(396),o=n(787),i=n.n(o),a=n(2104),s=n(2116),l=n(2068),c=n(2290),u=n(2165),d=n(2350),f=n(2166),p=n(2278),h=n(2282),m=n(2275),g=n(2256);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?y(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="rv-radar-chart",w=(0,s.format)(".2r");function S(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 E(e){var t=e.domains,n=e.startingAngle,r=e.style;return t.map(function(e,o){var i=e.name,a=o/t.length*Math.PI*2+n;return{x:1.2*Math.cos(a),y:1.2*Math.sin(a),label:i,style:r}})}function k(e){var t=e.animation,n=e.className,o=e.children,i=e.colorRange,s=e.data,l=e.domains,u=e.height,d=e.hideInnerMostValues,y=e.margin,b=e.onMouseLeave,w=e.onMouseEnter,k=e.startingAngle,T=e.style,x=e.tickFormat,O=e.width,C=e.renderAxesOverPolygons,P=e.onValueMouseOver,A=e.onValueMouseOut,I=e.onSeriesM
41ouseOver,R=e.onSeriesMouseOut,j=function(e){var t=e.animation,n=e.domains,o=e.startingAngle,i=e.style,a=e.tickFormat,s=e.hideInnerMostValues;return n.map(function(e,l){var c=l/n.length*Math.PI*2+o,u=e.domain;return r.default.createElement(g.default,{animation:t,key:"".concat(l,"-axis"),axisStart:{x:0,y:0},axisEnd:{x:S(Math.cos(c)),y:S(Math.sin(c))},axisDomain:u,numberOfTicks:5,tickValue:function(t){return s&&t===u[0]?"":e.tickFormat?e.tickFormat(t):a(t)},style:i.axes})})}({domains:l,animation:t,hideInnerMostValues:d,startingAngle:k,style:T,tickFormat:x}),M=function(e){var t=e.animation,n=e.colorRange,o=e.domains,i=e.data,s=e.style,l=e.startingAngle,c=e.onSeriesMouseOver,u=e.onSeriesMouseOut,d=o.reduce(function(e,t){var n=t.domain;return e[t.name]=(0,a.default)().domain(n).range([0,1]),e},{});return i.map(function(e,i){var a=o.map(function(t,n){var r=t.name,i=t.getValue,a=i?i(e):e[r],s=n/o.length*Math.PI*2+l,c=Math.max(d[r](a),0);return{x:c*Math.cos(s),y:c*Math.sin(s),name:e.name}});return r.default.createElement(h.default,{animation:t,className:"".concat(_,"-polygon"),key:"".concat(i,"-polygon"),data:a,style:v({stroke:e.color||e.stroke||n[i%n.length],fill:e.color||e.fill||n[i%n.length]},s.polygons),onSeriesMouseOver:c,onSeriesMouseOut:u})})}({animation:t,colorRange:i,domains:l,data:s,startingAngle:k,style:T,onSeriesMouseOver:I,onSeriesMouseOut:R}),D=function(e){var t=e.animation,n=e.domains,o=e.data,i=e.startingAngle,s=e.style,l=e.onValueMouseOver,c=e.onValueMouseOut;if(l){var u=n.reduce(function(e,t){var n=t.domain;return e[t.name]=(0,a.default)().domain(n).range([0,1]),e},{});return o.map(function(e,o){var a=n.map(function(t,r){var o=t.name,a=t.getValue,s=a?a(e):e[o],l=r/n.length*Math.PI*2+i,c=Math.max(u[o](s),0);return{x:c*Math.cos(l),y:c*Math.sin(l),domain:o,value:s,dataName:e.name}});return r.default.createElement(p.default,{animation:t,className:"".concat(_,"-polygonPoint"),key:"".concat(o,"-polygonPoint"),data:a,size:10,style:v(v({},s.polygons),{},{fill:"transparent",stroke:"transparent"}),onValueMouseOver:l,onValueMouseOut:c})})}}({animation:t,colorRange:i,domains:l,data:s,startingAngle:k,style:T,onValueMouseOver:P,onValueMouseOut:A}),N=r.default.createElement(m.default,{animation:t,key:n,className:"".concat(_,"-label"),data:E({domains:l,style:T.labels,startingAngle:k})});return r.default.createElement(c.default,{height:u,width:O,margin:y,dontCheckIfEmpty:!0,className:(0,f.getCombinedClassName)(n,_),onMouseLeave:b,onMouseEnter:w,xDomain:[-1,1],yDomain:[-1,1]},o,!C&&j.concat(M).concat(N).concat(D),C&&M.concat(N).concat(j).concat(D))}k.displayName="RadarChart",k.propTypes={animation:l.AnimationPropType,className:i().string,colorType:i().string,colorRange:i().arrayOf(i().string),data:i().arrayOf(i().object).isRequired,domains:i().arrayOf(i().shape({name:i().string.isRequired,domain:i().arrayOf(i().number).isRequired,tickFormat:i().func})).isRequired,height:i().number.isRequired,hideInnerMostValues:i().bool,margin:d.MarginPropType,startingAngle:i().number,style:i().shape({axes:i().object,labels:i().object,polygons:i().object}),tickFormat:i().func,width:i().number.isRequired,renderAxesOverPolygons:i().bool,onValueMouseOver:i().func,onValueMouseOut:i().func,onSeriesMouseOver:i().func,onSeriesMouseOut:i().func},k.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:w,renderAxesOverPolygons:!1};const T=k},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>_});var r=n(396),o=n(787),i=n.n(o),a=n(2174),s=n(2068),l=n(2158),c=n(2275),u=n(2290),d=n(2165),f=n(2350),p=n(2164),h=n(2166);function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?g(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=e.animation,n=e.className,o=e.children,i=e.colorType,s=e.data,d=e.getAngle,g=e.getLabel,v=e.getSubLabel,b=e.height,_=e.hideRootNode,w=e.innerRadius,S=e.labelsAboveChildren,E=e.labelsRadiusMultiplier,k=e.labelsStyle,T=e.margin,x=e.onMouseLeave,O=e.onMouseEnter,C=e.radius,P=e.showLabels,A=e.style,I=e.width,R=function(e){var t=e.data,n=e.getAngle;return(0,a.default)().sort(null).value(n)(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:b,hideRootNode:_,width:I,getAngle:d}),j=(0,p.getRadialDomain)(R),M=y(y({colorType:i},e),{},{animation:t,radiusDomain:[0,j],data:R,radiusNoFallBack:!0,style:A,arcClassName:"rv-radial-chart__series--pie__slice"});C&&(M.radiusDomain=[0,1],M.radiusRange=[w||0,C],M.radiusType="linear");var D=C||function(e,t){return Math.min(e,t)/2-15}(I,b),N=(0,f.getRadialLayoutMargin)(I,b,D),L=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1.1,r=t.getLabel,o=t.getSubLabel;return e.reduce(function(e,t){var i=t.angle,a=t.angle0,s=t.radius,l=(i+a)/2*-1+Math.PI/2,c=[];return r(t)&&c.push({angle:l,radius:s*n,label:r(t)}),o(t)&&c.push({angle:l,radius:s*n,label:o(t),style:{fontSize:10},yOffset:12}),e.concat(c)},[])}(R,{getLabel:g,getSubLabel:v},E);return r.default.createElement(u.default,{height:b,width:I,margin:y(y({},N),T),className:(0,h.getCombinedClassName)(n,"rv-radial-chart"),onMouseLeave:x,onMouseEnter:O,xDomain:[-j,j],yDomain:[-j,j]},r.default.createElement(l.default,m({},M,{getAngle:function(e){return e.angle}})),P&&!S&&r.default.createElement(c.default,{data:L,style:k}),o,P&&S&&r.default.createElement(c.default,{data:L,style:k}))}b.displayName="RadialChart",b.propTypes={animation:s.AnimationPropType,className:i().string,colorType:i().string,data:i().arrayOf(i().shape({angle:i().number,className:i().string,label:i().string,radius:i().number,style:i().object})).isRequired,getAngle:i().func,getAngle0:i().func,padAngle:i().oneOfType([i().func,i().number]),getRadius:i().func,getRadius0:i().func,getLabel:i().func,height:i().number.isRequired,labelsAboveChildren:i().bool,labelsStyle:i().object,margin:f.MarginPropType,onValueClick:i().func,onValueMouseOver:i().func,onValueMouseOut:i().func,showLabels:i().bool,style:i().object,subLabel:i().func,width:i().number.isRequired},b.defaultProps={className:"",colorType:"category",colorRange:d.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 _=b},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(396),o=n(787),i=n.n(o),a=n(2367),s=n(2290),l=n(2350),c=n(2166),u=n(2286),d=n(2275),f=n(2288),p=n(2165),h=n(2381);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return function(e){if(Array.isArray(e))return b(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 b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(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 b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}var w=function(e){return e},S={justify:a.sankeyJustify,center:a.sankeyCenter,left:a.sankeyLeft,right:a.sankeyRight}
41,E={top:20,left:20,right:20,bottom:20};function k(e){var t=e.align,n=e.animation,o=e.children,i=e.className,m=e.hasVoronoi,y=e.height,b=e.hideLabels,w=e.labelRotation,k=e.layout,T=e.links,x=e.linkOpacity,O=e.margin,C=e.nodePadding,P=e.nodes,A=e.nodeWidth,I=e.onValueClick,R=e.onValueMouseOver,j=e.onValueMouseOut,M=e.onLinkClick,D=e.onLinkMouseOver,N=e.onLinkMouseOut,L=e.style,F=e.width;if(0===P.length)return r.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",i)}));var B=v(new Array(P.length)).map(function(e,t){return g({},P[t])}),z=v(new Array(T.length)).map(function(e,t){return g({},T[t])}),U=(0,l.getInnerDimensions)({margin:O,height:y,width:F},E),H=U.marginLeft,V=U.marginTop,q=U.marginRight,G=U.marginBottom,W=(0,a.sankey)().extent([[H,V],[F-q,y-G-V]]).nodeWidth(A).nodePadding(C).nodes(B).links(z).nodeAlign(S[t]).iterations(k);W(B);var $=W.nodeWidth(),Y=(0,a.sankeyLinkHorizontal)();return r.default.createElement(s.default,_({},e,{yType:"literal",className:(0,c.getCombinedClassName)("rv-sankey",i)}),z.map(function(e,t){return r.default.createElement(h.default,{style:L.links,data:Y(e),opacity:e.opacity||x,color:e.color,onLinkClick:M,onLinkMouseOver:D,onLinkMouseOut:N,strokeWidth:Math.max(e.width,1),node:e,nWidth:$,key:"link-".concat(t)})}),r.default.createElement(u.default,{animation:n,className:(0,c.getCombinedClassName)(i,"rv-sankey__node"),data:B.map(function(e){return g(g({},e),{},{y:e.y1-V,y0:e.y0-V,x:e.x1,x0:e.x0,color:e.color||p.DISCRETE_COLOR_RANGE[0],sourceLinks:null,targetLinks:null})}),style:L.rects,onValueClick:I,onValueMouseOver:R,onValueMouseOut:j,colorType:"literal"}),!b&&r.default.createElement(d.default,{animation:n,className:i,rotation:w,labelAnchorY:"text-before-edge",data:B.map(function(e,t){return g({x:e.x0+(e.x0<F/2?$+10:-10),y:(e.y0+e.y1)/2-V,label:e.name,style:g({textAnchor:e.x0<F/2?"start":"end",dy:"-.5em"},L.labels)},P[t])})}),m&&r.default.createElement(f.default,{className:"rv-sankey__voronoi",extent:[[-H,-V],[F+q,y+G]],nodes:B,onClick:I,onHover:R,onBlur:j,x:function(e){return e.x0+(e.x1-e.x0)/2},y:function(e){return e.y0+(e.y1-e.y0)/2}}),o)}k.defaultProps={align:"justify",className:"",hasVoronoi:!1,hideLabels:!1,labelRotation:0,layout:50,margin:E,nodePadding:10,nodeWidth:10,onValueMouseOver:w,onValueClick:w,onValueMouseOut:w,onLinkClick:w,onLinkMouseOver:w,onLinkMouseOut:w,style:{links:{},rects:{},labels:{}}},k.propTypes={align:i().oneOf(["justify","left","right","center"]),className:i().string,hasVoronoi:i().bool,height:i().number.isRequired,hideLabels:i().bool,labelRotation:i().number,layout:i().number,links:i().arrayOf(i().shape({source:i().oneOfType([i().number,i().object]).isRequired,target:i().oneOfType([i().number,i().object]).isRequired})).isRequired,margin:l.MarginPropType,nodePadding:i().number,nodes:i().arrayOf(i().object).isRequired,nodeWidth:i().number,onValueMouseOver:i().func,onValueClick:i().func,onValueMouseOut:i().func,onLinkClick:i().func,onLinkMouseOver:i().func,onLinkMouseOut:i().func,style:i().shape({links:i().object,rects:i().object,labels:i().object}),width:i().number.isRequired};const T=k},(e,t,n)=>{"use strict";n.r(t),n.d(t,{sankey:()=>r.default,sankeyCenter:()=>o.center,sankeyJustify:()=>o.justify,sankeyLeft:()=>o.left,sankeyLinkHorizontal:()=>i.default,sankeyRight:()=>o.right});var r=n(2368),o=n(2372),i=n(2374)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var r=n(2369),o=n(2370),i=n(2371),a=n(2372),s=n(2373);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 d(e){return e.value}function f(e){return e.index}function p(e){return e.nodes}function h(e){return e.links}function m(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function g({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function y(){let e,t,n,y=0,v=0,b=1,_=1,w=24,S=8,E=f,k=a.justify,T=p,x=h,O=6;function C(){const a={nodes:T.apply(null,arguments),links:x.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map((t,n)=>[E(t,n,e),t]));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=m(r,t)),"object"!=typeof o&&(o=n.target=m(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(a),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max((0,i.default)(t.sourceLinks,d),(0,i.default)(t.targetLinks,d)):t.fixedValue}(a),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(a),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(a),function(n){const a=function({nodes:e}){const n=(0,r.default)(e,e=>e.depth)+1,o=(b-y-w)/(n-1),i=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(k.call(null,t,n))));t.layer=e,t.x0=y+e*o,t.x1=t.x0+w,i[e]?i[e].push(t):i[e]=[t]}if(t)for(const e of i)e.sort(t);return i}(n);e=Math.min(S,(_-v)/((0,r.default)(a,e=>e.length)-1)),function(t){const n=(0,o.default)(t,t=>(_-v-(t.length-1)*e)/(0,i.default)(t,d));for(const r of t){let t=v;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.sourceLinks)e.width=e.value*n}t=(_-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}D(r)}}(a);for(let e=0;e<O;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/O);A(a,t,n),P(a,t,n)}}(a),g(a),a}function P(e,n,r){for(let o=1,i=e.length;o<i;++o){const i=e[o];for(const e of i){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let i=o*(e.layer-n.layer);t+=N(n,e)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,M(e)}void 0===t&&i.sort(u),I(i,r)}}function A(e,n,r){for(let o=e.length-2;o>=0;--o){const i=e[o];for(const e of i){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let i=o*(n.layer-e.layer);t+=L(e,n)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,M(e)}void 0===t&&i.sort(u),I(i,r)}}function I(t,n){const r=t.length>>1,o=t[r];j(t,o.y0-e,r-1,n),R(t,o.y1+e,r+1,n),j(t,_,t.length-1,n),R(t,v,0,n)}function R(t,n,r,o){for(;r<t.length;++r){const i=t[r],a=(n-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),n=i.y1+e}}function j(t,n,r,o){for(;r>=0;--r){const i=t[r],a=(i.y1-n)*o;a>1e-6&&(i.y0-=a,i.y1-=a),n=i.y0-e}}function M({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(c);for(const{target:{targetLinks:t}}of e)t.sort(l)}}function D(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(c),n.sort(l)}function N(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:i}of t.sourceLinks){if(o===n)break;r+=i+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function L(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:i}of n.targetLinks){if(o===t)break;r+=i+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return C.update=function(e){return g(e),e},C.nodeId=function(e){return arguments.length?(E="function"==typeof e?e:(0,s.default)(e),C):E},C.nodeAlign=function(e){return arguments.length?(k="function"==typeof e?e:(0,s.default)(e),C):k},C.nodeSort=function(e){return arguments.length?(t=e,C):t},C.nodeWidth=function(e){return arguments.length?(w=+e,C):w},C.nodePadding=function(t){return arguments.length?(S=e=+t,C):S},C.nodes=function(e){return arguments.length?(T="function"==typeof e?e:(0,s.default)(e),C):T},C.links=function(e){return arguments.length?(x="function"==typeof e?e:(0,s.default)(e),C):x},C.linkSort=function(e){return arguments.length?(n=e,C):n},C.size=function(e){return arguments.length?(y=v=0,b=+e[0],_=+e[1],C):[b-y,_-v]},C.extent=function(e){return arguments.length?(y=+e[0][0],b=+e[1][0],v=+e[0][1],_=+e[1][1],C):[[y,v],[b,_]]},C.iterations=function(e){return arguments.length?(O=+e,C):O},C}},(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";function r(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{center:()=>l,justify:()=>s,left:()=>i,right:()=>a});var r=n(2370);function o(e){return e.target.depth}function i(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}
41function l(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,r.default)(e.sourceLinks,o)-1:0}},(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.r(t),n.d(t,{default:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);var r=n(2375);function o(e){return[e.source.x1,e.y0]}function i(e){return[e.target.x0,e.y1]}function a(){return(0,r.linkHorizontal)().source(o).target(i)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{linkHorizontal:()=>h,linkRadial:()=>g,linkVertical:()=>m});var r=n(2376),o=n(2377),i=n(2378),a=n(2379),s=n(2380);function l(e){return e.source}function c(e){return e.target}function u(e){var t=l,n=c,s=a.x,u=a.y,d=null;function f(){var i,a=o.slice.call(arguments),l=t.apply(this,a),c=n.apply(this,a);if(d||(d=i=(0,r.default)()),e(d,+s.apply(this,(a[0]=l,a)),+u.apply(this,a),+s.apply(this,(a[0]=c,a)),+u.apply(this,a)),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?(n=e,f):n},f.x=function(e){return arguments.length?(s="function"==typeof e?e:(0,i.default)(+e),f):s},f.y=function(e){return arguments.length?(u="function"==typeof e?e:(0,i.default)(+e),f):u},f.context=function(e){return arguments.length?(d=e??null,f):d},f}function d(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function f(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function p(e,t,n,r,o){var i=(0,s.default)(t,n),a=(0,s.default)(t,n=(n+o)/2),l=(0,s.default)(r,n),c=(0,s.default)(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],l[0],l[1],c[0],c[1])}function h(){return u(d)}function m(){return u(f)}function g(){var e=u(p);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var r=Math.PI,o=2*r,i=1e-6,a=o-i;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,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,o,a){e=+e,t=+t,n=+n,o=+o,a=+a;var s=this._x1,l=this._y1,c=n-e,u=o-t,d=s-e,f=l-t,p=d*d+f*f;if(a<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>i)if(Math.abs(f*c-u*d)>i&&a){var h=n-s,m=o-l,g=c*c+u*u,y=h*h+m*m,v=Math.sqrt(g),b=Math.sqrt(p),_=a*Math.tan((r-Math.acos((g+p-y)/(2*v*b)))/2),w=_/b,S=_/v;Math.abs(w-1)>i&&(this._+="L"+(e+w*d)+","+(t+w*f)),this._+="A"+a+","+a+",0,0,"+ +(f*h>d*m)+","+(this._x1=e+S*c)+","+(this._y1=t+S*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,s,l,c){e=+e,t=+t,c=!!c;var u=(n=+n)*Math.cos(s),d=n*Math.sin(s),f=e+u,p=t+d,h=1^c,m=c?s-l:l-s;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+p:(Math.abs(this._x1-f)>i||Math.abs(this._y1-p)>i)&&(this._+="L"+f+","+p),n&&(m<0&&(m=m%o+o),m>a?this._+="A"+n+","+n+",0,1,"+h+","+(e-u)+","+(t-d)+"A"+n+","+n+",0,1,"+h+","+(this._x1=f)+","+(this._y1=p):m>i&&(this._+="A"+n+","+n+",0,"+ +(m>=r)+","+h+","+(this._x1=e+n*Math.cos(l))+","+(this._y1=t+n*Math.sin(l))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const c=l},(e,t,n)=>{"use strict";n.r(t),n.d(t,{slice:()=>r});var r=Array.prototype.slice},(e,t,n)=>{"use strict";function r(e){return function(){return e}}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return e[0]}function o(e){return e[1]}n.r(t),n.d(t,{x:()=>r,y:()=>o})},(e,t,n)=>{"use strict";function r(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(396),o=n(2165),i=n(2068),a=n(2164);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var l=o.DISCRETE_COLOR_RANGE[1];function c(e){var t=e.animation,n=e.data,o=e.node,u=e.opacity,d=e.color,f=e.strokeWidth,p=e.style,h=e.onLinkClick,m=e.onLinkMouseOver,g=e.onLinkMouseOut;return t?r.default.createElement(i.default,s({},e,{animatedProps:a.ANIMATED_SERIES_PROPS}),r.default.createElement(c,s({},e,{animation:null}))):r.default.createElement("path",s({d:n},p,{className:"rv-sankey__link",opacity:Number.isFinite(u)?u:.7,stroke:d||l,onClick:function(e){return h(o,e)},onMouseOver:function(e){return m(o,e)},onMouseOut:function(e){return g(o,e)},strokeWidth:f,fill:"none"}))}c.displayName="SankeyLink",c.requiresSVG=!0;const u=c},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=n(396),o=n(787),i=n.n(o),a=n(2383),s=n(2397),l=n(2104),c=n(2400),u=n(2068),d=n(2275),f=n(2158),p=n(2290),h=n(2164),m=n(2350),g=n(2166);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?y(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="rv-sunburst",w=["onValueMouseOver","onValueMouseOut","onValueClick","onValueRightClick","onSeriesMouseOver","onSeriesMouseOut","onSeriesClick","onSeriesRightClick"];var S=function(){};function E(e){var t=e.getAngle,n=e.getAngle0,o=e.animation,i=e.className,u=e.children,y=e.data,b=e.height,E=e.hideRootNode,k=e.getLabel,T=e.width,x=e.getSize,O=e.colorType,C=function(e){var t=e.data,n=e.height,r=e.hideRootNode,o=e.width,i=e.getSize,u=(0,s.default)(),d=(0,a.default)(t).sum(i),f=Math.min(o,n)/2-10,p=(0,l.default)().range([0,2*Math.PI]),h=(0,c.sqrt)().range([0,f]);return u(d).descendants().reduce(function(e,t,n){return r&&0===n?e:e.concat([v({angle0:Math.max(0,Math.min(2*Math.PI,p(t.x0))),angle:Math.max(0,Math.min(2*Math.PI,p(t.x1))),radius0:Math.max(0,h(t.y0)),radius:Math.max(0,h(t.y1)),depth:t.depth,parent:t.parent},t.data)])},[])}({data:y,height:b,hideRootNode:E,width:T,getSize:x}),P=(0,h.getRadialDomain)(C),A=(0,m.getRadialLayoutMargin)(T,b,P),I=function(e,t){var n=t.getAngle,r=t.getAngle0,o=t.getLabel,i=t.getRadius0;return e.filter(o).map(function(e){var t=-1*n(e)+Math.PI/2,o=(-1*r(e)+Math.PI/2+t)/2,a=!e.dontRotateLabel,s=-o/(2*Math.PI)*360;return v(v({},e),{},{children:null,angle:null,radius:null,x:i(e)*Math.cos(o),y:i(e)*Math.sin(o),style:v({textAnchor:s>90?"end":"start"},e.labelStyle),rotation:a?s>90?s+180:90===s?90:s:null})})}(C,{getAngle:t,getAngle0:n,getLabel:k,getRadius0:function(e){return e.radius0}});return r.default.createElement(p.default,{height:b,hasTreeStructure:!0,width:T,className:(0,g.getCombinedClassName)(_,i),margin:A,xDomain:[-P,P],yDomain:[-P,P]},r.default.createElement(f.default,v(v({colorType:O},e),{},{animation:o,radiusDomain:[0,P],data:o?C.map(function(e,t){return v(v({},e),{},{parent:null,children:null,index:t})}):C,_data:o?C:null,arcClassName:"".concat(_,"__series--radial__arc")},w.reduce(function(t,n){var r,i=e[n];return t[n]=o?(r=i,function(e,t){return r?r(C[e.index],t):S}):i,t},{}))),I.length>0&&r.default.createElement(d.default,{data:I,getLabel:k}),u)}E.displayName="Sunburst",E.propTypes={animation:u.AnimationPropType,getAngle:i().func,getAngle0:i().func,className:i().string,colorType:i().string,data:i().object.isRequired,height:i().number.isRequired,hideRootNode:i().bool,getLabel:i().func,onValueClick:i().func,onValueMouseOver:i().func,onValueMouseOut:i().func,getSize:i().func,width:i().number.isRequired,padAngle:i().oneOfType([i().func,i().number])},E.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 k=E},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Node:()=>w,computeHeight:()=>_,default:()=>g});var r=n(2384),o=n(2385),i=n(2386),a=n(2387),s=n(2388),l=n(2389),c=n(2390),u=n(2391),d=n(2392),f=n(2393),p=n(2394),h=n(2395),m=n(2396);function g(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=v)):void 0===t&&(t=y);for(var n,r,o,i,a,s=new w(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new w(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_)}function y(e){return e.children}function v(e){return Array.isArray(e)?e[1]:null}function b(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 w(e){this.data=e,this.depth=this.height=0,this.parent=null}w.prototype=g.prototype={constructor:w,count:r.default,each:o.default,eachAfter:a.default,eachBefore:i.default,find:s.default,sum:l.default,sort:c.default,path:u.default,ancestors:d.default,descendants:f.default,leaves:p.default,links:h.default,copy:function(){return g(this).eachBefore(b)},[Symbol.iterator]:m.default}},(e,t,n)=>{"use strict";function r(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function o(){return this.eachAfter(r)}n.r(t),n.d(t,{default:()=>o}),n.dn(o)},(e,t,n)=>{"use strict";function r(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();
41)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;e=n.pop(),t=r.pop();for(;e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(){return Array.from(this)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function*r(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n.dn(i);var r=n(2398),o=n(2399);function i(){var e=1,t=1,n=0,i=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(function(e,t){return function(r){r.children&&(0,o.default)(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,a=r.y0,s=r.x1-n,l=r.y1-n;s<i&&(i=s=(i+s)/2),l<a&&(a=l=(a+l)/2),r.x0=i,r.y0=a,r.x1=s,r.y1=l}}(t,s)),i&&a.eachBefore(r.default),a}return a.round=function(e){return arguments.length?(i=!!e,a):i},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a}},(e,t,n)=>{"use strict";function r(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)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t,n,r,o){for(var i,a=e.children,s=-1,l=a.length,c=e.value&&(r-t)/e.value;++s<l;)(i=a[s]).y0=n,i.y1=o,i.x0=t,i.x1=t+=i.value*c}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,powish:()=>c,sqrt:()=>d});var r=n(2104),o=n(2106),i=n(2101);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(o.identity,o.identity),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(o.identity,o.identity):.5===n?e(s,l):e(a(n),a(1/n)):n},(0,r.linearish)(t)}function u(){var e=c((0,o.transformer)());return e.copy=function(){return(0,o.copy)(e,u()).exponent(e.exponent())},i.initRange.apply(e,arguments),e}function d(){return u.apply(null,arguments).exponent(.5)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var r=n(396),o=n(787),i=n.n(o),a=n(2383),s=n(2402),l=n(2397),c=n(2409),u=n(2412),d=n(2399),f=n(2411),p=n(2413),h=n(2410),m=n(2414),g=n(2165),y=n(2068),v=n(2098),b=n(2350),_=n(2415),w=n(2417);function S(){return S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?E(Object(n),!0).forEach(function(t){T(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x={squarify:h.default,resquarify:m.default,slice:f.default,dice:d.default,slicedice:p.default,binary:u.default},O=function(e){return e},C=["opacity","color"];function P(e){var t=function(e){var t=e.data.children||[],n=k(k(k({},e),(0,v.getMissingScaleProps)(e,t,C)),{},{_allData:t});return{opacity:(0,v.getAttributeFunctor)(n,"opacity"),color:(0,v.getAttributeFunctor)(n,"color")}}(e),n=(0,b.getInnerDimensions)(e,e.margin);var o=e.renderMode,i=function(){var t=n.innerWidth,r=n.innerHeight,o=e.data,i=e.mode,u=e.padding,d=e.sortFunction,f=e.getSize;if(!o)return[];if("partition"===i||"partition-pivot"===i){var p=(0,l.default)().size("partition-pivot"===i?[r,t]:[t,r]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants();return"partition-pivot"===i?p.map(function(e){return k(k({},e),{},{x0:e.y0,x1:e.y1,y0:e.x0,y1:e.x1})}):p}if("circlePack"===i)return(0,s.default)().size([t,r]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants();var h=x[i];return(0,c.default)(h).tile(h).size([t,r]).padding(u)((0,a.default)(o).sum(f).sort(function(e,t){return d(e,t,f)})).descendants()}(),u="SVG"===o?w.default:_.default;return r.default.createElement(u,S({},e,{nodes:i,scales:t}))}P.displayName="Treemap",P.propTypes={animation:y.AnimationPropType,className:i().string,data:i().object.isRequired,height:i().number.isRequired,hideRootNode:i().bool,margin:b.MarginPropType,mode:i().oneOf(Object.keys(x).concat(["circlePack","partition","partition-pivot"])),onLeafClick:i().func,onLeafMouseOver:i().func,onLeafMouseOut:i().func,useCirclePacking:i().bool,padding:i().number.isRequired,sortFunction:i().func,width:i().number.isRequired,getSize:i().func,getColor:i().func},P.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:O,onLeafMouseOver:O,onLeafMouseOut:O,opacityType:g.OPACITY_TYPE,_opacityValue:g.DEFAULT_OPACITY,padding:1,sortFunction:function(e,t,n){return n?n(e)-n(t):0},getSize:function(e){return e.size},getColor:function(e){return e.color},getLabel:function(e){return e.title}};const A=P},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n.dn(l);var r=n(2403),o=n(2404),i=n(2405),a=n(2406);function s(e){return Math.sqrt(e.value)}function l(){var e=null,t=1,n=1,a=o.constantZero;function l(r){const l=(0,i.default)();return r.x=t/2,r.y=n/2,e?r.eachBefore(c(e)).eachAfter(u(a,.5,l)).eachBefore(d(1)):r.eachBefore(c(s)).eachAfter(u(o.constantZero,1,l)).eachAfter(u(a,r.r/Math.min(t,n),l)).eachBefore(d(Math.min(t,n)/(2*r.r))),r}return l.radius=function(t){return arguments.length?(e=(0,r.optional)(t),l):e},l.size=function(e){return arguments.length?(t=+e[0],n=+e[1],l):[t,n]},l.padding=function(e){return arguments.length?(a="function"==typeof e?e:(0,o.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,n){return function(r){if(o=r.children){var o,i,s,l=o.length,c=e(r)*t||0;if(c)for(i=0;i<l;++i)o[i].r+=c;if(s=(0,a.packSiblingsRandom)(o,n),c)for(i=0;i<l;++i)o[i].r-=c;r.r=s+c}}}function d(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}},(e,t,n)=>{"use strict";function r(e){return null==e?null:o(e)}function o(e){if("function"!=typeof e)throw new Error;return e}n.r(t),n.d(t,{optional:()=>r,required:()=>o})},(e,t,n)=>{"use strict";function r(){return 0}function o(e){return function(){return e}}n.r(t),n.d(t,{constantZero:()=>r,default:()=>o}),n.dn(o)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n.dn(a);const r=1664525,o=1013904223,i=4294967296;function a(){let e=1;return()=>(e=(r*e+o)%i)/i}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d,packSiblingsRandom:()=>u}),n.dn(d);var r=n(2407),o=n(2405),i=n(2408);function a(e,t,n){var r,o,i,a,s=e.x-t.x,l=e.y-t.y,c=s*s+l*l;c?(o=t.r+n.r,o*=o,a=e.r+n.r,o>(a*=a)?(r=(c+a-o)/(2*c),i=Math.sqrt(Math.max(0,a/c-r*r)),n.x=e.x-r*s-i*l,n.y=e.y-r*l+i*s):(r=(c+o-a)/(2*c),i=Math.sqrt(Math.max(0,o/c-r*r)),n.x=t.x+r*s-i*l,n.y=t.y+r*l+i*s)):(n.x=t.x+n.r,n.y=t.y)}function s(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function l(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function c(e){this._=e,this.next=null,this.previous=null}function u(e,t){if(!(d=(e=(0,r.default)(e)).length))return 0;var n,o,u,d,f,p,h,m,g,y,v;if((n=e[0]).x=0,n.y=0,!(d>1))return n.r;if(o=e[1],n.x=-o.r,o.x=n.r,o.y=0,!(d>2))return n.r+o.r;a(o,n,u=e[2]),n=new c(n),o=new c(o),u=new c(u),n.next=u.previous=o,o.next=n.previous=u,u.next=o.previous=n;e:for(h=3;h<d;++h){a(n._,o._,u=e[h]),u=new c(u),m=o.next,g=n.previous,y=o._.r,v=n._.r;do{if(y<=v){if(s(m._,u._)){o=m,n.next=o,o.previous=n,--h;continue e}y+=m._.r,m=m.next}else{if(s(g._,u._)){(n=g).next=o,o.previous=n,--h;continue e}v+=g._.r,g=g.previous}}while(m!==g.next);for(u.previous=n,u.next=o,n.next=o.previous=o=u,f=l(n);(u=u.next)!==o;)(p=l(u))<f&&(n=u,f=p);o=n.next}for(n=[o._],u=o;(u=u.next)!==o;)n.push(u._);for(u=(0,i.packEncloseRandom)(n,t),h=0;h<d;++h)(n=e[h]).x-=u.x,n.y-=u.y;return u.r}function d(e){return u(e,(0,o.default)()),e}},(e,t,n)=>{"use strict";function r(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function o(e,t){let n,r,o=e.length;for(;o;
vendor: 5,088 bytes, line 41
41)r=t()*o--|0,n=e[o],e[o]=e[r],e[r]=n;return e}n.r(t),n.d(t,{default:()=>r,shuffle:()=>o}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i,packEncloseRandom:()=>a}),n.dn(i);var r=n(2407),o=n(2405);function i(e){return a(e,(0,o.default)())}function a(e,t){for(var n,o,i=0,a=(e=(0,r.shuffle)(Array.from(e),t)).length,l=[];i<a;)n=e[i],o&&c(o,n)?++i:(o=d(l=s(l,n)),i=0);return o}function s(e,t){var n,r;if(u(t,e))return[t];for(n=0;n<e.length;++n)if(l(t,e[n])&&u(f(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(l(f(e[n],e[r]),t)&&l(f(e[n],t),e[r])&&l(f(e[r],t),e[n])&&u(p(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function l(e,t){var n=e.r-t.r,r=t.x-e.x,o=t.y-e.y;return n<0||n*n<r*r+o*o}function c(e,t){var n=e.r-t.r+1e-9*Math.max(e.r,t.r,1),r=t.x-e.x,o=t.y-e.y;return n>0&&n*n>r*r+o*o}function u(e,t){for(var n=0;n<t.length;++n)if(!c(e,t[n]))return!1;return!0}function d(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return f(e[0],e[1]);case 3:return p(e[0],e[1],e[2])}var t}function f(e,t){var n=e.x,r=e.y,o=e.r,i=t.x,a=t.y,s=t.r,l=i-n,c=a-r,u=s-o,d=Math.sqrt(l*l+c*c);return{x:(n+i+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+o+s)/2}}function p(e,t,n){var r=e.x,o=e.y,i=e.r,a=t.x,s=t.y,l=t.r,c=n.x,u=n.y,d=n.r,f=r-a,p=r-c,h=o-s,m=o-u,g=l-i,y=d-i,v=r*r+o*o-i*i,b=v-a*a-s*s+l*l,_=v-c*c-u*u+d*d,w=p*h-f*m,S=(h*_-m*b)/(2*w)-r,E=(m*g-h*y)/w,k=(p*b-f*_)/(2*w)-o,T=(f*y-p*g)/w,x=E*E+T*T-1,O=2*(i+S*E+k*T),C=S*S+k*k-i*i,P=-(Math.abs(x)>1e-6?(O+Math.sqrt(O*O-4*x*C))/(2*x):C/O);return{x:r+S+E*P,y:o+k+T*P,r:P}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n.dn(s);var r=n(2398),o=n(2410),i=n(2403),a=n(2404);function s(){var e=o.default,t=!1,n=1,s=1,l=[0],c=a.constantZero,u=a.constantZero,d=a.constantZero,f=a.constantZero,p=a.constantZero;function h(e){return e.x0=e.y0=0,e.x1=n,e.y1=s,e.eachBefore(m),l=[0],t&&e.eachBefore(r.default),e}function m(t){var n=l[t.depth],r=t.x0+n,o=t.y0+n,i=t.x1-n,a=t.y1-n;i<r&&(r=i=(r+i)/2),a<o&&(o=a=(o+a)/2),t.x0=r,t.y0=o,t.x1=i,t.y1=a,t.children&&(n=l[t.depth+1]=c(t)/2,r+=p(t)-n,o+=u(t)-n,(i-=d(t)-n)<r&&(r=i=(r+i)/2),(a-=f(t)-n)<o&&(o=a=(o+a)/2),e(t,r,o,i,a))}return h.round=function(e){return arguments.length?(t=!!e,h):t},h.size=function(e){return arguments.length?(n=+e[0],s=+e[1],h):[n,s]},h.tile=function(t){return arguments.length?(e=(0,i.required)(t),h):e},h.padding=function(e){return arguments.length?h.paddingInner(e).paddingOuter(e):h.paddingInner()},h.paddingInner=function(e){return arguments.length?(c="function"==typeof e?e:(0,a.default)(+e),h):c},h.paddingOuter=function(e){return arguments.length?h.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):h.paddingTop()},h.paddingTop=function(e){return arguments.length?(u="function"==typeof e?e:(0,a.default)(+e),h):u},h.paddingRight=function(e){return arguments.length?(d="function"==typeof e?e:(0,a.default)(+e),h):d},h.paddingBottom=function(e){return arguments.length?(f="function"==typeof e?e:(0,a.default)(+e),h):f},h.paddingLeft=function(e){return arguments.length?(p="function"==typeof e?e:(0,a.default)(+e),h):p},h}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,phi:()=>i,squarifyRatio:()=>a});var r=n(2399),o=n(2411),i=(1+Math.sqrt(5))/2;function a(e,t,n,i,a,s){for(var l,c,u,d,f,p,h,m,g,y,v,b=[],_=t.children,w=0,S=0,E=_.length,k=t.value;w<E;){u=a-n,d=s-i;do{f=_[S++].value}while(!f&&S<E);for(p=h=f,v=f*f*(y=Math.max(d/u,u/d)/(k*e)),g=Math.max(h/v,v/p);S<E;++S){if(f+=c=_[S].value,c<p&&(p=c),c>h&&(h=c),v=f*f*y,(m=Math.max(h/v,v/p))>g){f-=c;break}g=m}b.push(l={value:f,dice:u<d,children:_.slice(w,S)}),l.dice?(0,r.default)(l,n,i,a,k?i+=d*f/k:s):(0,o.default)(l,n,i,k?n+=u*f/k:a,s),k-=f,w=S}return b}const s=function e(t){function n(e,n,r,o,i){a(t,e,n,r,o,i)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(i)},(e,t,n)=>{"use strict";function r(e,t,n,r,o){for(var i,a=e.children,s=-1,l=a.length,c=e.value&&(o-n)/e.value;++s<l;)(i=a[s]).x0=t,i.x1=r,i.y0=n,i.y1=n+=i.value*c}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";function r(e,t,n,r,o){var i,a,s=e.children,l=s.length,c=new Array(l+1);for(c[0]=a=i=0;i<l;++i)c[i+1]=a+=s[i].value;!function e(t,n,r,o,i,a,l){if(t>=n-1){var u=s[t];return u.x0=o,u.y0=i,u.x1=a,void(u.y1=l)}var d=c[t],f=r/2+d,p=t+1,h=n-1;for(;p<h;){var m=p+h>>>1;c[m]<f?p=m+1:h=m}f-c[p-1]<c[p]-f&&t+1<p&&--p;var g=c[p]-d,y=r-g;if(a-o>l-i){var v=r?(o*y+a*g)/r:a;e(t,p,g,o,i,v,l),e(p,n,y,v,i,a,l)}else{var b=r?(i*y+l*g)/r:l;e(t,p,g,o,i,a,b),e(p,n,y,o,b,a,l)}}(0,l,e.value,t,n,r,o)}n.r(t),n.d(t,{default:()=>r}),n.dn(r)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n.dn(i);var r=n(2399),o=n(2411);function i(e,t,n,i,a){(1&e.depth?o.default:r.default)(e,t,n,i,a)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var r=n(2399),o=n(2411),i=n(2410);const a=function e(t){function n(e,n,a,s,l){if((c=e._squarify)&&c.ratio===t)for(var c,u,d,f,p,h=-1,m=c.length,g=e.value;++h<m;){for(d=(u=c[h]).children,f=u.value=0,p=d.length;f<p;++f)u.value+=d[f].value;u.dice?(0,r.default)(u,n,a,s,g?a+=(l-a)*u.value/g:l):(0,o.default)(u,n,a,g?n+=(s-n)*u.value/g:s,l),g
41-=u.value}else e._squarify=c=(0,i.squarifyRatio)(t,e,n,a,s,l),c.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(i.phi)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var r=n(396),o=n(2416),i=n(2166);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=e.animation,n=e.className,s=e.height,c=e.hideRootNode,u=e.getLabel,d=e.mode,f=e.nodes,p=e.width,h=e.scales,m=e.style,g="circlePack"===d;return r.default.createElement("div",{className:(0,i.getCombinedClassName)("rv-treemap",g&&"rv-treemap-circle-paked",n),style:{height:s,width:p}},f.map(function(n,i){if(c&&!i)return null;var s=l(l({animation:t,node:n,getLabel:u},e),{},{x0:g?n.x:n.x0,x1:g?n.x:n.x1,y0:g?n.y:n.y0,y1:g?n.y:n.y1,r:g?n.r:1,scales:h,style:m});return r.default.createElement(o.default,a({},s,{key:"leaf-".concat(i)}))}))}u.displayName="TreemapDOM";const d=u},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var r=n(396),o=n(787),i=n.n(o),a=n(2068),s=n(2098);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}var f=["colorRange","colorDomain","color","opacityRange","opacityDomain","opacity","x0","x1","y0","y1","r"];function p(e){var t=e.animation,n=e.getLabel,o=e.mode,i=e.node,l=e.onLeafClick,u=e.onLeafMouseOver,h=e.onLeafMouseOut,m=e.r,g=e.scales,y=e.x0,v=e.x1,b=e.y0,_=e.y1,w=e.style;if(t)return r.default.createElement(a.default,d({},e,{animatedProps:f}),r.default.createElement(p,d({},e,{animation:null})));var S="circlePack"===o,E=g.color(i),k=g.opacity(i),T=(0,s.getFontColorFromBackground)(E),x=n(i.data),O=c(c({top:S?b-m:b,left:S?y-m:y,width:S?2*m:v-y,height:S?2*m:_-b,background:E,opacity:k,color:T},w),i.data.style);return r.default.createElement("div",{className:"rv-treemap__leaf ".concat(S?"rv-treemap__leaf--circle":""),onMouseEnter:function(e){return u(i,e)},onMouseLeave:function(e){return h(i,e)},onClick:function(e){return l(i,e)},style:O},r.default.createElement("div",{className:"rv-treemap__leaf__content"},x))}p.propTypes={animation:a.AnimationPropType,height:i().number.isRequired,mode:i().string,node:i().object.isRequired,onLeafClick:i().func,onLeafMouseOver:i().func,onLeafMouseOut:i().func,scales:i().object.isRequired,width:i().number.isRequired,r:i().number.isRequired,x0:i().number.isRequired,x1:i().number.isRequired,y0:i().number.isRequired,y1:i().number.isRequired};const h=p},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var r=n(396),o=n(2290),i=n(2282),a=n(2278),s=n(2275),l=n(2166);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
41t%2?d(Object(n),!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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 n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.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,n)}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(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&&m(e,t)}(p,e);var t,n,c,d=g(p);function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),d.apply(this,arguments)}return t=p,(n=[{key:"getCircularNodes",value:function(){var e=this.props,t=e.animation,n=e.hideRootNode,o=e.nodes,i=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,d=o.reduce(function(e,t,r){if(!r&&n)return e;var o=t.x,i=t.y,a=t.r;return{maxY:Math.max(i+a,e.maxY),minY:Math.min(i-a,e.minY),maxX:Math.max(o+1.2*a,e.maxX),minX:Math.min(o-1.2*a,e.minX),rows:e.rows.concat([{x:o,y:i,size:a,color:c.color(t)}])}},{rows:[],maxY:-1/0,minY:1/0,maxX:-1/0,minX:1/0}),f=d.rows,p=d.minY,h=d.maxY,m=d.minX,g=d.maxX;return{updatedNodes:r.default.createElement(a.default,{animation:t,className:"rv-treemap__leaf rv-treemap__leaf--circle",onSeriesMouseEnter:i,onSeriesMouseLeave:s,onSeriesClick:l,data:f,colorType:"literal",getColor:function(e){return e.color},sizeType:"literal",getSize:function(e){return e.size},style:u}),minY:p,maxY:h,minX:m,maxX:g}}},{key:"getNonCircularNodes",value:function(){var e=this.props,t=e.animation,n=e.hideRootNode,o=e.nodes,a=e.onLeafMouseOver,s=e.onLeafMouseOut,l=e.onLeafClick,c=e.scales,u=e.style,d=c.color;return o.reduce(function(e,o,c){if(!c&&n)return e;var p=o.x0,h=o.x1,m=o.y1,g=o.y0,y=p,v=g,b=m-g,_=h-p;e.maxY=Math.max(v+b,e.maxY),e.minY=Math.min(v,e.minY),e.maxX=Math.max(y+_,e.maxX),e.minX=Math.min(y,e.minX);var w=[{x:y,y:v},{x:y,y:v+b},{x:y+_,y:v+b},{x:y+_,y:v}];return e.updatedNodes=e.updatedNodes.concat([r.default.createElement(i.default,{animation:t,className:"rv-treemap__leaf",key:c,color:d(o),type:"literal",onSeriesMouseEnter:a,onSeriesMouseLeave:s,onSeriesClick:l,data:w,style:f(f({},u),o.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,n=e.height,i=e.mode,a=e.nodes,c=e.width,d="circlePack"===i,p=d?this.getCircularNodes():this.getNonCircularNodes(),h=p.minY,m=p.maxY,g=p.minX,y=p.maxX,v=p.updatedNodes,b=a.reduce(function(e,t){return t.data.title?e.concat(f(f({},t.data),{},{x:t.x0||t.x,y:t.y0||t.y,label:"".concat(t.data.title)})):e},[]);return r.default.createElement(o.default,u({className:(0,l.getCombinedClassName)("rv-treemap",d&&"rv-treemap-circle-paked",t),width:c,height:n,yDomain:[m,h],xDomain:[g,y],colorType:"literal",hasTreeStructure:!0},this.props),v,r.default.createElement(s.default,{data:b}))}}])&&h(t.prototype,n),c&&h(t,c),p}(r.default.Component);v.displayName="TreemapSVG";const b=v},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(396);function o(e){var t=e.id,n=void 0===t?"content-area":t,o=e.innerWidth,i=e.innerHe
41ight;return r.default.createElement("defs",null,r.default.createElement("clipPath",{id:n},r.default.createElement("rect",{x:0,y:0,width:o,height:i})))}o.requiresSVG=!0,o.displayName="ContentClipPath"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{FlexibleHeightXYPlot:()=>R,FlexibleWidthXYPlot:()=>I,FlexibleXYPlot:()=>j,makeHeightFlexible:()=>C,makeVisFlexible:()=>P,makeWidthFlexible:()=>A});var r=n(396),o=n(2420),i=n.n(o),a=n(2290),s=n(2156);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 n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),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 n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;return y(e)}(this,n)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _="container",w=[],S=100,E=null;function k(){i().clearTimeout(E),E=i().setTimeout(T,S)}function T(){w.forEach(function(e){return e()})}function x(e){return w.push(e),1===w.length&&i().addEventListener("resize",k),function(){!function(e){var t=w.indexOf(e);t>-1&&w.splice(t,1)}(e),0===w.length&&(i().clearTimeout(E),i().removeEventListener("resize",k))}}function O(e,t,n){var o,i=(o=function(o){!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,o);var i=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),b(y(t=i.call(this,e)),"_onResize",function(){var e=(0,s.getDOMNode)(t[_]),n=e.offsetHeight,r=e.offsetWidth,o=t.state.height===n?{}:{height:n},i=t.state.width===r?{}:{width:r};t.setState(d(d({},o),i))}),t.state={height:0,width:0},t}return h(a,null,[{key:"propTypes",get:function(){var t=e.propTypes;t.height,t.width;return f(t,["height","width"])}}
41]),h(a,[{key:"componentDidMount",value:function(){this._onResize(),this.cancelSubscription=x(this._onResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(){this._onResize()}},{key:"componentWillUnmount",value:function(){this.cancelSubscription()}},{key:"render",value:function(){var o=this,i=this.state,a=i.height,s=i.width,l=d(d({},this.props),{},{animation:0===a&&0===s?null:this.props.animation}),u=d(d({},n?{height:a}:{}),t?{width:s}:{});return r.default.createElement("div",{ref:function(e){return o[_]=e},style:{width:"100%",height:"100%"}},r.default.createElement(e,c({},u,l)))}}]),a}(r.default.Component),o);return i.displayName="Flexible".concat(function(e){return e.displayName||e.name||"Component"}(e)),i}function C(e){return O(e,!1,!0)}function P(e){return O(e,!0,!0)}function A(e){return O(e,!0,!1)}var I=A(a.default),R=C(a.default),j=P(a.default)},e=>{var t;t="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e.exports=t},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{compareVersions:()=>o});var r=n(2702);const o=(e,t)=>{const n=(0,r.validateAndParse)(e),o=(0,r.validateAndParse)(t),i=n.pop(),a=o.pop(),s=(0,r.compareSegments)(n,o);return 0!==s?s:i&&a?(0,r.compareSegments)(i.split("."),a.split(".")):i||a?i?-1:1:0}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{compareSegments:()=>l,semver:()=>r,validateAndParse:()=>o});const r=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,o=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(r);
41if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},i=e=>"*"===e||"x"===e||"X"===e,a=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},s=(e,t)=>{if(i(e)||i(t))return 0;const[n,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(a(e),a(t));return n>r?1:n<r?-1:0},l=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=s(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{Container:()=>m});var r=n(919),o=n(917),i=n(2792),a=n(2794),s=n(931),l=n(950),c=n(2795),u=n(2798),d=n(932),f=n(952);function p(e){return!e.destroyed}function h(e,t,...n){const r=new l.Options(e,t);return(0,f.loadOptions)(r,...n),r}class m{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;#w;#S;#E={value:0,factor:0};#k;#T;#x;#O;#C;#P;#A;#I;#R;#j;#M;#p;#D;#N;constructor(e){const{dispatchCallback:t,pluginManager:n,id:r,onDestroy:o,sourceOptions:l}=e;this.#p=n,this.#k=t,this.#R=o,this.id=Symbol(r),this.fpsLimit=120,this.hdr=!1,this.#D=!1,this.#w=0,this.#x=0,this.#I=0,this.#C=!0,this.started=!1,this.destroyed=!1,this.#M=!0,this.#A=0,this.zLayers=100,this.pageHidden=!1,this.#N=l,this.#P=l,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new u.Retina(this),this.canvas=new i.CanvasManager(this.#p,this),this.particles=new c.ParticlesManager(this.#p,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this.#j=h(this.#p,this),this.actualOptions=h(this.#p,this),this.#O=new a.EventListeners(this),this.dispatchEvent(s.EventType.containerBuilt)}get animationStatus(){return!this.#M&&!this.pageHidden&&p(this)}get options(){return this.#j}get sourceOptions(){return this.#N}addLifeTime(e){this.#I+=e}alive(){return!this.#x||this.#I<=this.#x}destroy(e=!0){if(p(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.#p.clearPlugins(this),this.destroyed=!0,this.#R(e),this.dispatchEvent(s.EventType.containerDestroyed)}}dispatchEvent(e,t){this.#k(e,{container:this,data:t})}draw(e){if(!p(this))return;let t=e;this.#T=(0,r.animate)(e=>{t&&(this.#A=void 0,t=!1),this.#L(e)})}async export(e,t={}){for(const n of this.plugins){if(!n.export)continue;const r=await n.export(e,t);if(r.supported)return r.blob}(0,d.getLogger)().error(`Export plugin with type ${e} not found`)}
vendor: 4,810 bytes, line 41
41async init(){if(!p(this))return;const e=new Map;for(const t of this.#p.plugins){const n=await t.getPlugin(this);n.preInit&&await n.preInit(),e.set(t,n)}await this.initDrawersAndUpdaters(),this.#j=h(this.#p,this,this.#P,this.sourceOptions),this.actualOptions=h(this.#p,this,this.#j),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[t,n]of e)t.needsPlugin(this.actualOptions)&&(this.plugins.push(n),n.particleCreated&&this.particleCreatedPlugins.push(n),n.particleDestroyed&&this.particleDestroyedPlugins.push(n),n.particlePosition&&this.particlePositionPlugins.push(n));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:t,duration:n,fpsLimit:i,hdr:a,smooth:l,zLayers:c}=this.actualOptions;this.hdr=a,this.zLayers=c,this.#x=(0,r.getRangeValue)(n)*o.millisecondsToSeconds,this.#w=(0,r.getRangeValue)(t)*o.millisecondsToSeconds,this.#I=0,this.fpsLimit=i>o.minFpsLimit?i:o.defaultFpsLimit,this.#D=l;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.#p;this.effectDrawers=await e.getEffectDrawers(this,!0),this.shapeDrawers=await e.getShapeDrawers(this,!0),this.particleUpdaters=await e.getUpdaters(this,!0)}pause(){if(p(this)&&(void 0!==this.#T&&((0,r.cancelAnimation)(this.#T),this.#T=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(!p(this))return;const t=this.#M||e;if(!this.#C||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.#C=!1}async refresh(){if(p(this))return this.stop(),this.start()}async reset(e){if(p(this))return this.#P=e,this.#N=e,this.#j=h(this.#p,this,this.#P,this.sourceOptions),this.actualOptions=h(this.#p,this,this.#j),this.refresh()}async start(){p(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(e=>{const t=async()=>{this.#O.addListeners();for(const e of this.plugins)await(e.start?.());this.dispatchEvent(s.EventType.containerStarted),this.play(),e()};this.#S=setTimeout(()=>{t()},this.#w)}))}stop(){if(p(this)&&this.started){this.#S&&(clearTimeout(this.#S),this.#S=void 0),this.#C=!0,this.started=!1,this.#O.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.#N=this.#j,this.dispatchEvent(s.EventType.containerStopped)}}updateActualOptions(){let e=!1;for(const t of this.plugins)t.updateActualOptions&&(e=t.updateActualOptions()||e);return e}#L=e=>{try{if(!this.#D&&void 0!==this.#A&&e<this.#A+o.millisecondsToSeconds/this.fpsLimit)return void this.draw(!1);if(this.#A??=e,function(e,t,n=o.defaultFps,r=!1){e.value=t,e.factor=r?o.defaultFps/n:o.defaultFps*t/o.millisecondsToSeconds}(this.#E,e-this.#A,this.fpsLimit,this.#D),this.addLifeTime(this.#E.value),this.#A=e,this.#E.value>o.millisecondsToSeconds)return void this.draw(!1);if(this.canvas.render.drawParticles(this.#E),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(e){(0,d.getLogger)().error("error in animation loop",e)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{CanvasManager:()=>c});var r=n(918),o=n(917),i=n(974),a=n(2793);const s=new WeakMap;function l(e,t,n=!1){if(!t)return;const r=e.style,o=new Set;for(let e=0;e<r.length;e++){const t=r.item(e);t&&o.add(t)}for(let e=0;e<t.length;e++){const n=t.item(e);n&&o.add(n)}for(const e of o){const o=t.getPropertyValue(e);o?r.setProperty(e,o,n?"important":""):r.removeProperty(e)}}class c{domElement;render;renderCanvas;size;zoom=o.defaultZoom;#f;#F;#B;#z;#p;#U;#H;#V;#q;constructor(e,t){this.#p=e,this.#f=t,this.render=new a.RenderManager(e,t,this),this.#V={height:0,width:0};const n=t.retina.pixelRatio,r=this.#V;this.size={height:r.height*n,width:r.width*n},this.#F=!1,this.#H=[],this.#U="none"}get#G(){return this.#f.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this.#F){const e=this.domElement;e?.remove(),this.domElement=void 0,this.renderCanvas=void 0}else this.#W();this.render.destroy(),this.#H=[]}getZoomCenter(){const e=this.#f.retina.pixelRatio,{width:t,height:n}=this.size;return this.#q?this.#q:{x:t*o.half/e,y:n*o.half/e}}init(){this.#$(e=>{e.disconnect()}),this.#B=(0,r.safeMutationObserver)(e=>{for(const t of e)"attributes"===t.type&&"style"===t.attributeName&&this.#Y()}
41),this.resize(),this.#K(),this.initBackground(),this.#$(e=>{const t=this.domElement;t&&t instanceof Node&&e.observe(t,{attributes:!0})}),this.initPlugins(),this.render.init()}initBackground(){const e=this.#f,t=e.actualOptions.background,n=this.domElement;if(!n)return;const r=n.style,o=(0,i.rangeColorToRgb)(this.#p,t.color);r.backgroundColor=o?(0,i.getStyleFromRgb)(o,e.hdr,t.opacity):"",r.backgroundImage=t.image||"",r.backgroundPosition=t.position||"",r.backgroundRepeat=t.repeat||"",r.backgroundSize=t.size||""}initPlugins(){this.#H=[];for(const e of this.#f.plugins)e.resize&&this.#H.push(e)}loadCanvas(e){this.#F&&this.domElement&&this.domElement.remove();const t=this.#f,n=(e=>"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement)(e)?e:void 0;this.domElement=n,this.#F=!!n&&"true"===n.dataset[o.generatedAttribute],this.renderCanvas=n?(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")}})(n):e;const i=this.domElement;i&&(i.ariaHidden="true",this.#z=(0,r.cloneStyle)(i.style));const a=this.#V,l=this.renderCanvas;i?(a.height=i.offsetHeight,a.width=i.offsetWidth):(a.height=l.height,a.width=l.width);const c=this.#f.retina.pixelRatio,u=this.size;l.height=u.height=a.height*c,l.width=u.width=a.width*c;const d=(0,r.safeMatchMedia)("(color-gamut: p3)");this.render.setContextSettings({alpha:!0,colorSpace:d?.matches&&t.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this.render.setContext(l.getContext("2d",this.render.settings)),this.#$(e=>{e.disconnect()}
vendor: 1,327 bytes, line 41
41),t.retina.init(),this.initBackground(),this.#$(e=>{const t=this.domElement;t&&t instanceof Node&&e.observe(t,{attributes:!0})})}resize(){const e=this.domElement;if(!e)return!1;const t=this.#f,n=this.renderCanvas;if(void 0===n)return!1;const r=t.canvas.#V,o={width:e.offsetWidth,height:e.offsetHeight},i=t.retina.pixelRatio,a={width:o.width*i,height:o.height*i};if(o.height===r.height&&o.width===r.width&&a.height===n.height&&a.width===n.width)return!1;const s={...r};r.height=o.height,r.width=o.width;const l=this.size;return n.width=l.width=a.width,n.height=l.height=a.height,this.#f.started&&t.particles.setResizeFactor({width:r.width/s.width,height:r.height/s.height}),!0}setPointerEvents(e){this.domElement&&(this.#U=e,this.#Y())}setZoom(e,t){this.zoom=e,this.#q=t}stop(){this.#$(e=>{e.disconnect()}),this.#B=void 0,this.render.stop()}async windowResize(){if(!this.domElement||!this.resize())return;const e=this.#f,t=e.updateActualOptions();e.particles.setDensity(),this.#J(),t&&await e.refresh()}#J=()=>{for(const e of this.#H)e.resize?.()};#K=()=>{const e=this.domElement,t=this.#f.actualOptions;if(e){this.#G?this.#Q():this.#W();for(const n in t.style){if(!n||!(n in t.style))continue;const r=t.style[n];r&&e.style.setProperty(n,r,"important")}}};#Y=()=>{const e=this.domElement;if(!e)return;this.#$(e=>{e.disconnect()}
41),this.#K(),this.initBackground();const t=this.#U;e.style.pointerEvents=t,e.style.setProperty("pointer-events",t),this.#$(t=>{e instanceof Node&&t.observe(e,{attributes:!0})})};#W=()=>{const e=this.domElement,t=this.#z;e&&t&&l(e,t,!0)};#$=e=>{this.#B&&e(this.#B)};#Q=()=>{const e=this.domElement;e&&l(e,(0,r.getFullScreenStyle)(this.#f.actualOptions.fullScreen.zIndex),!0)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{RenderManager:()=>s});var r=n(973),o=n(917),i=n(974);function a(e,t,n){const r=t[n];void 0!==r&&(e[n]=(e[n]??o.defaultTransformValue)*r)}class s{#X;#Z;#ee;#te;#ne;#f;#re;#oe;#ie;#ae;#se;#le;#ce;#ue;#p;#de;#fe;#pe={};#he=[void 0,void 0];#me={};constructor(e,t,n){this.#p=e,this.#f=t,this.#Z=n,this.#re=null,this.#fe=[],this.#de=[],this.#ne=[],this.#X=[],this.#ee=[],this.#te=[],this.#ie=[],this.#ae=[],this.#se=[],this.#le=[],this.#ue=[],this.#ce=[]}get settings(){return this.#oe}canvasClear(){this.#f.actualOptions.clear&&this.draw(e=>{(0,r.clear)(e,this.#Z.size)})}clear(){let e=!1;for(const t of this.#X)if(e=t.canvasClear?.()??!1,e)break;e||this.canvasClear()}destroy(){this.stop(),this.#fe=[],this.#de=[],this.#ne=[],this.#X=[],this.#ee=[],this.#te=[],this.#ie=[],this.#ae=[],this.#se=[],this.#le=[],this.#ue=[],this.#ce=[]}draw(e){const t=this.#re;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;const n=e.getRadius();if(n<=o.minimumSize)return;const a=e.getFillColor(),s=e.getStrokeColor();let[l,c]=this.#ge(e);if(l??=a,c??=s,!l&&!c)return;const u=this.#f,d=e.options.zIndex,f=o.zIndexFactorOffset-e.zIndexFactor,{fillOpacity:p,opacity:h,strokeOpacity:m}=e.getOpacity(),g=this.#me,y=this.#pe,v=l?(0,i.getStyleFromHsl)(l,u.hdr,p*h):void 0,b=c?(0,i.getStyleFromHsl)(c,u.hdr,m*h):v;g.a=g.b=g.c=g.d=void 0,y.fill=v,y.stroke=b,this.draw(o=>{for(const n of this.#se)n.drawParticleSetup?.(o,e,t);this.#ye(o,e,n,h,y,g),(0,r.drawParticle)({container:u,context:o,particle:e,delta:t,colorStyles:y,radius:n*f**d.sizeRate,opacity:h,transform:g}),this.#ve(e);for(const n of this.#ae)n.drawParticleCleanup?.(o,e,t)})}drawParticlePlugins(e,t){this.draw(n=>{for(const o of this.#ie)(0,r.drawParticlePlugin)(n,o,e,t)})}drawParticles(e){const{particles:t}=this.#f;this.clear(),t.update(e),this.draw(n=>{for(const t of this.#ue)t.drawSettingsSetup?.(n,e);for(const t of this.#le)t.draw?.(n,e);t.drawParticles(e);for(const t of this.#te)t.clearDraw?.(n,e);for(const t of this.#ce)t.drawSettingsCleanup?.(n,e)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this.#ne=[],this.#X=[],this.#ee=[],this.#te=[],this.#ie=[],this.#se=[],this.#ae=[],this.#le=[],this.#ue=[],this.#ce=[];for(const e of this.#f.plugins)(e.particleFillColor??e.particleStrokeColor)&&this.#ne.push(e),e.canvasClear&&this.#X.push(e),e.canvasPaint&&this.#ee.push(e),e.drawParticle&&this.#ie.push(e),e.drawParticleSetup&&this.#se.push(e),e.drawParticleCleanup&&this.#ae.push(e),e.draw&&this.#le.push(e),e.drawSettingsSetup&&this.#ue.push(e),e.drawSettingsCleanup&&this.#ce.push(e),e.clearDraw&&this.#te.push(e)}initUpdaters(){this.#fe=[],this.#de=[];for(const e of this.#f.particleUpdaters)e.afterDraw&&this.#de.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this.#fe.push(e)}paint(){let e=!1;for(const t of this.#ee)if(e=t.canvasPaint?.()??!1,e)break;e||this.paintBase()}paintBase(e){this.draw(t=>{(0,r.paintBase)(t,this.#Z.size,e)})}paintImage(e,t){this.draw(n=>{(0,r.paintImage)(n,this.#Z.size,e,t)})}setContext(e){this.#re=e,this.#re&&(this.#re.globalCompositeOperation=o.defaultCompositeValue)}setContextSettings(e){this.#oe=e}stop(){this.draw(e=>{(0,r.clear)(e,this.#Z.size)})}#ve=e=>{for(const t of this.#de)t.afterDraw?.(e)};#ye=(e,t,n,r,o,i)=>{for(const s of this.#fe){if(s.getColorStyles){const{fill:i,stroke:a}=s.getColorStyles(t,e,n,r);i&&(o.fill=i),a&&(o.stroke=a)}if(s.getTransformValues){const e=s.getTransformValues(t);for(const t in e)a(i,e,t)}s.beforeDraw?.(t)}};#ge=e=>{let t,n;for(const r of this.#ne)if(!t&&r.particleFillColor&&(t=(0,i.rangeColorToHsl)(this.#p,r.particleFillColor(e))),!n&&r.particleStrokeColor&&(n=(0,i.rangeColorToHsl)(this.#p,r.particleStrokeColor(e))),t&&n)break;return this.#he[0]=t,this.#he[1]=n,this.#he}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventListeners:()=>i});var r=n(918),o=n(917);class i{#f;#be;#_e;#we;constructor(e){this.#f=e,this.#be={visibilityChange:()=>{this.#Se()},resize:()=>
41{this.#Ee()}}}addListeners(){this.#ke(!0)}removeListeners(){this.#ke(!1)}#Se=()=>{const e=this.#f;e.actualOptions.pauseOnBlur&&((0,r.safeDocument)().hidden?(e.pageHidden=!0,e.pause()):(e.pageHidden=!1,e.animationStatus?e.play(!0):e.draw(!0)))};#Ee=()=>{this.#we&&(clearTimeout(this.#we),this.#we=void 0);const e=async()=>{const e=this.#f.canvas;await e.windowResize()};this.#we=setTimeout(()=>{e()},this.#f.actualOptions.resize.delay*o.millisecondsToSeconds)};#ke=e=>{const t=this.#be;this.#Te(e),(0,r.manageListener)(document,o.visibilityChangeEvent,t.visibilityChange,e,!1)};#Te=e=>{const t=this.#be,n=this.#f;if(!n.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void(0,r.manageListener)(globalThis,o.resizeEvent,t.resize,e);const i=n.canvas.domElement;this.#_e&&!e?(i&&this.#_e.unobserve(i),this.#_e.disconnect(),this.#_e=void 0):!this.#_e&&e&&i&&(this.#_e=new ResizeObserver(e=>{e.find(e=>e.target===i)&&this.#Ee()}),this.#_e.observe(i))}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ParticlesManager:()=>u});var r=n(917),o=n(931),i=n(937),a=n(2796),s=n(2797),l=n(932),c=n(952);class u{checkParticlePositionPlugins;grid;#xe;#f;#Oe;#Ce;#Pe;#Ae;#Ie;#Re;#p;#je;#Me;#De;#Ne;#Le;#Fe;constructor(e,t){this.#p=e,this.#f=t,this.#Pe=0,this.#xe=[],this.#je=[],this.#Ce=0,this.#Oe=new Map,this.#Ae=new Map,this.#Fe=this.#Be(this.#f.zLayers),this.grid=new s.SpatialHashGrid(r.spatialHashGridCellSize),this.checkParticlePositionPlugins=[],this.#Ie=[],this.#Re=[],this.#De=[],this.#Me=[],this.#Le=[]}get count(){return this.#xe.length}addParticle(e,t,n,s){const c=this.#f.actualOptions.particles.number.limit.mode,u=void 0===n?this.#Ce:this.#Oe.get(n)??this.#Ce,d=this.count;if(u>r.minLimit)switch(c){case i.LimitMode.delete:{const e=d+r.countOffset-u;e>r.minCount&&this.removeQuantity(e);break}case i.LimitMode.wait:if(d>=u)return}try{const r=this.#je.pop()??new a.Particle(this.#p,this.#f);r.init(this.#Pe,e,t,n);let i=!0;return s&&(i=s(r)),i?(this.#xe.push(r),this.#ze(r),this.#Pe++,this.#f.dispatchEvent(o.EventType.particleAdded,{particle:r}),r):void this.#je.push(r)}catch(e){(0,l.getLogger)().warning(`error adding particle: ${e}`)}}clear(){this.#xe=[],this.#Ae.clear(),this.#Ue(this.#f.zLayers)}destroy(){this.#xe=[],this.#je.length=0,this.#Ae.clear(),this.#Fe=[],this.checkParticlePositionPlugins=[],this.#Ie=[],this.#Re=[],this.#De=[],this.#Me=[],this.#Le=[]}drawParticles(e){for(let t=this.#Fe.length-r.one;t>=r.minIndex;t--){const n=this.#Fe[t];if(n)for(const t of n)t.draw(e)}}filter(e){return this.#xe.filter(e)}find(e){return this.#xe.find(e)}get(e){return this.#xe[e]}
41async init(){const e=this.#f,t=e.actualOptions;this.checkParticlePositionPlugins=[],this.#Le=[],this.#Re=[],this.#De=[],this.#Ie=[],this.#Me=[],this.#Ae.clear(),this.#Ue(e.zLayers),this.grid=new s.SpatialHashGrid(r.spatialHashGridCellSize*e.retina.pixelRatio);for(const t of e.plugins)t.redrawInit&&await t.redrawInit(),t.checkParticlePosition&&this.checkParticlePositionPlugins.push(t),t.update&&this.#Le.push(t),t.particleUpdate&&this.#Re.push(t),t.postUpdate&&this.#De.push(t),t.particleReset&&this.#Ie.push(t),t.postParticleUpdate&&this.#Me.push(t);await this.#f.initDrawersAndUpdaters();for(const t of this.#f.effectDrawers.values())await(t.init?.(e));for(const t of this.#f.shapeDrawers.values())await(t.init?.(e));let n=!1;for(const t of e.plugins)if(n=t.particlesInitialization?.()??n,n)break;if(!n){const e=t.particles,n=e.groups;for(const t in n){const r=n[t];if(r)for(let n=this.count,o=0;o<r.number.value&&n<e.number.value;n++,o++)this.addParticle(void 0,r,t)}for(let t=this.count;t<e.number.value;t++)this.addParticle()}}push(e,t,n,r){for(let o=0;o<e;o++)this.addParticle(t,n,r)}async redraw(){this.clear(),await this.init(),this.#f.canvas.render.drawParticles({value:0,factor:0})}remove(e,t,n){this.removeAt(this.#xe.indexOf(e),void 0,t,n)}removeAt(e,t=r.defaultRemoveQuantity,n,o){if(e<r.minIndex||e>this.count)return;let i=0;for(let r=e;i<t&&r<this.count;r++)this.#He(r,n,o)&&(r--,i++)}removeQuantity(e,t){this.removeAt(r.minIndex,e,t)}setDensity(){const e=this.#f.actualOptions,t=e.particles.groups;let n=0;for(const e of this.#f.plugins)e.particlesDensityCount&&(n+=e.particlesDensityCount());for(const e in t){const r=t[e];if(!r)continue;const o=(0,c.loadParticlesOptions)(this.#p,this.#f,r);this.#Ve(o,n,e)}this.#Ve(e.particles,n)}setResizeFactor(e){this.#Ne=e}update(e){this.grid.clear();for(const t of this.#Le)t.update?.(e);const t=this.#qe(e);for(const t of this.#De)t.postUpdate?.(e);if(this.#Ge(e,t),t.size)for(const e of t)this.remove(e);this.#Ne=void 0}#We=(...e)=>{this.#je.push(...e)};#Ve=(e,t,n,o)=>{const i=e.number;if(!i.density.enable)return void(void 0===n?this.#Ce=i.limit.value:(o?.number.limit.value??i.limit.value)&&this.#Oe.set(n,o?.number.limit.value??i.limit.value));const a=this.#$e(i.density),s=i.value,l=i.limit.value>r.minLimit?i.limit.value:s,c=Math.min(s,l)*a+t,u=Math.min(this.count,this.filter(e=>e.group===n).length);void 0===n?this.#Ce=i.limit.value*a:this.#Oe.set(n,i.limit.value*a),u<c?this.push(Math.abs(c-u),void 0,e,n):u>c&&this.removeQuantity(u-c,n)};#Be=e=>{const t=Math.max(Math.floor(e),r.one);return Array.from({length:t},()=>[])};#Ye=e=>{const t=this.#Fe.length-r.one;return t<=r.minIndex?r.minIndex:Math.min(Math.max(Math.floor(e),r.minIndex),t)};#Ke=(e,t)=>{let n=r.minIndex,o=e.length;for(;n<o;){const i=Math.floor((n+o)/r.double),a=e[i];a?a.id<t?n=i+r.one:o=i:o=i}return n};#$e=e=>{const t=this.#f;if(!e.enable)return r.defaultDensityFactor;const n=t.canvas.size,o=t.retina.pixelRatio;return n.width&&n.height?n.width*n.height/(e.height*e.width*o**r.squareExp):r.defaultDensityFactor};#ze=e=>{const t=this.#Ye(e.position.z),n=this.#Fe[t];n&&(n.splice(this.#Ke(n,e.id),r.empty,e),this.#Ae.set(e.id,t))};#He=(e,t,n)=>{const i=this.#xe[e];return!!i&&(i.group===t&&(this.#xe.splice(e,r.deleteCount),this.#Je(i),i.destroy(n),this.#f.dispatchEvent(o.EventType.particleRemoved,{particle:i}),this.#We(i),!0))};#Je=e=>{const t=this.#Ae.get(e.id)??this.#Ye(e.position.z),n=this.#Fe[t];if(!n)return void this.#Ae.delete(e.id);const o=this.#Ke(n,e.id);n[o]?.id===e.id?(n.splice(o,r.deleteCount),this.#Ae.delete(e.id)):this.#Ae.delete(e.id)};#Ue=e=>{const t=Math.max(Math.floor(e),r.one);if(this.#Fe.length===t)for(const e of this.#Fe)e.length=r.minIndex;else this.#Fe=this.#Be(t)};#Qe=e=>{const t=this.#Ye(e.position.z),n=this.#Ae.get(e.id);if(void 0===n)return void this.#ze(e);if(n===t)return;const o=this.#Fe[n];if(o){const t=this.#Ke(o,e.id);o[t]?.id===e.id&&o.splice(t,r.deleteCount)}const i=this.#Fe[t];i?(i.splice(this.#Ke(i,e.id),r.empty,e),this.#Ae.set(e.id,t)):this.#Ae.set(e.id,t)};#qe=e=>{const t=new Set,n=this.#Ne;for(const r of this.#xe){n&&!r.ignoresResizeRatio&&(r.position.x*=n.width,r.position.y*=n.height,r.initialPosition.x*=n.width,r.initialPosition.y*=n.height),r.ignoresResizeRatio=!1;for(const e of this.#Ie)e.particleReset?.(r);for(const t of this.#Re){if(r.destroyed)break;t.particleUpdate?.(r,e)}r.destroyed?t.add(r):this.grid.insert(r)}return t};#Ge=(e,t)=>
41{for(const n of this.#xe)if(n.destroyed)t.add(n);else{for(const t of this.#f.particleUpdaters)t.update(n,e);if(!n.spawning)for(const t of this.#Me)t.postParticleUpdate?.(n,e);this.#Qe(n)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Particle:()=>m});var r=n(921),o=n(974),i=n(919),a=n(918),s=n(917),l=n(931),c=n(920),u=n(938),d=n(926),f=n(941),p=n(952);function h(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)}class m{backColor;bubble;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;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;#Xe={fillOpacity:s.defaultOpacity,opacity:s.defaultOpacity,strokeOpacity:s.defaultOpacity};#Ze=r.Vector3d.origin;#et={sin:0,cos:0};#tt={a:1,b:0,c:0,d:1};#f;#p;constructor(e,t){this.#p=e,this.#f=t}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const t=this.#f,n=this.shape?t.shapeDrawers.get(this.shape):void 0;n?.particleDestroy?.(this);for(const n of t.particleDestroyedPlugins)n.particleDestroyed?.(this,e);for(const n of t.particleUpdaters)n.particleDestroyed?.(this,e);this.#f.dispatchEvent(l.EventType.particleDestroyed,{particle:this})}draw(e){const t=this.#f.canvas.render;t.drawParticlePlugins(this,e),t.drawParticle(this,e)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:s.defaultAngle)}getFillColor(){return this.#nt(this.bubble.color??(0,o.getHslFromAnimation)(this.fillColor))}getMass(){return this.getRadius()**s.squareExp*Math.PI*s.half}getOpacity(){const e=this.options.zIndex,t=(s.zIndexFactorOffset-this.zIndexFactor)**e.opacityRate,n=this.bubble.opacity??(0,i.getRangeValue)(this.opacity?.value??s.defaultOpacity),r=this.fillOpacity??s.defaultOpacity,o=this.strokeOpacity??s.defaultOpacity;return this.#Xe.fillOpacity=n*r*t,this.#Xe.opacity=n*t,this.#Xe.strokeOpacity=n*o*t,this.#Xe}getPosition(){return this.#Ze.x=this.position.x+this.offset.x,this.#Ze.y=this.position.y+this.offset.y,this.#Ze.z=this.position.z,this.#Ze}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const e=this.getAngle();return this.#et.sin=Math.sin(e),this.#et.cos=Math.cos(e),this.#et}getStrokeColor(){return this.#nt(this.bubble.color??(0,o.getHslFromAnimation)(this.strokeColor))}getTransformData(e){const t=this.getRotateData(),n=this.isRotating;return this.#tt.a=t.cos*(e.a??s.defaultTransform.a),this.#tt.b=n?t.sin*(e.b??s.identity):e.b??s.defaultTransform.b,this.#tt.c=n?-t.sin*(e.c??s.identity):e.c??s.defaultTransform.c,this.#tt.d=t.cos*(e.d??s.defaultTransform.d),this.#tt}init(e,t,n,r){const o=this.#f;this.id=e,this.group=r,this.justWarped=!1,this.effectClose=!0,this.shapeClose=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},this.size={value:1,max:1,min:1,enable:!1},this.outType=f.ParticleOutType.normal,this.ignoresResizeRatio=!0;const l=o.actualOptions,c=(0,p.loadParticlesOptions)(this.#p,o,l.particles),u=c.reduceDuplicates,d=c.effect.type,h=c.shape.type;this.effect=(0,a.itemFromSingleOrMultiple)(d,this.id,u),this.shape=(0,a.itemFromSingleOrMultiple)(h,this.id,u);const m=c.effect,g=c.shape;if(n){if(n.effect){const e=n.effect.type;if(e&&e!==this.effect){const t=(0,a.itemFromSingleOrMultiple)(e,this.id,u);t&&(this.effect=t)}m.load(n.effect)}if(n.shape){const e=n.shape.type;if(e&&e!==this.shape){const t=(0,a.itemFromSingleOrMultiple)(e,this.id,u);t&&(this.shape=t)}g.load(n.shape)}}if(this.effect===s.randomColorValue){const e=[...this.#f.effectDrawers.keys()];this.effect=e[Math.floor((0,i.getRandom)()*e.length)]}if(this.shape===s.randomColorValue){const e=[...this.#f.shapeDrawers.keys()];this.shape=e[Math.floor((0,i.getRandom)()*e.length)]}this.effectData=this.effect?function(e,t,n,r){const o=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(o,n,r))}(this.effect,m,this.id,u):void 0,this.shapeData=this.shape?function(e,t,n,r){const o=t.options[e];return(0,a.deepExtend)({close:t.close},(0,a.itemFromSingleOrMultiple)(o,n,r))}(this.shape,g,this.id,u):void 0,c.load(n);const y=this.effectData,v=this.shapeData;y&&c.load(y.particles),v&&c.load(v.particles),this.effectClose=y?.close??c.effect.close,this.shapeClose=v?.close??c.shape.close,this.options=c,o.retina.initParticle(this);for(const e of o.particleUpdaters)e.preInit?.(this);let b,_;this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this.#rt(t),this.initialVelocity=this.#ot(),this.velocity=this.initialVelocity.copy(),this.zIndexFactor=this.position.z/o.zLayers,this.sides=24,this.effect&&(b=o.effectDrawers.get(this.effect)),b?.loadEffect&&b.loadEffect(this),this.shape&&(_=o.shapeDrawers.get(this.shape)),_?.loadShape&&_.loadShape(this);const w=_?.getSidesCount;w&&(this.sides=w(this)),this.spawning=!1;for(const e of o.particleUpdaters)e.init(this);b?.particleInit?.(o,this),_?.particleInit?.(o,this);for(const e of o.particleCreatedPlugins)e.particleCreated?.(this)}isInsideCanvas(e){return this.#it({direction:e}).inside}isInsideCanvasForOutMode(e,t){return this.#it({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=e%s.doublePI,n=t<s.defaultAngle?t+s.doublePI:t;return n>=Math.PI*s.half&&n<Math.PI*s.triple*s.half}if(this.roll.horizontal){const t=(e+Math.PI*s.half)%(Math.PI*s.double),n=t<s.defaultAngle?t+Math.PI*s.double:t;return n>=Math.PI&&n<Math.PI*s.double}if(this.roll.vertical){const t=e%(Math.PI*s.double),n=t<s.defaultAngle?t+Math.PI*s.double:t;return n>=Math.PI&&n<Math.PI*s.double}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const e of this.#f.particleUpdaters)e.reset?.(this)}#at=(e,t)=>
41{let n=s.defaultRetryCount,o=e?r.Vector3d.create(e.x,e.y,t):void 0;const a=this.#f,l=a.particlePositionPlugins,c=this.options.move.outModes,u=this.getRadius(),d=a.canvas.size,f=new AbortController,{signal:p}=f;for(;!p.aborted;){for(const e of l){const n=e.particlePosition?.(o,this);if(n)return r.Vector3d.create(n.x,n.y,t)}const e=(0,i.calcExactPositionOrRandomFromSize)({size:d,position:o}),f=r.Vector3d.create(e.x,e.y,t);this.#st(f,u,c.left??c.default),this.#st(f,u,c.right??c.default),this.#lt(f,u,c.top??c.default),this.#lt(f,u,c.bottom??c.default);let p=!0;for(const e of a.particles.checkParticlePositionPlugins)if(p=e.checkParticlePosition?.(this,f,n)??!0,!p)break;if(p)return f;n+=s.tryCountIncrement,o=void 0}return o};#ot=()=>{const e=this.options.move,t=(0,i.getParticleBaseVelocity)(this.direction).copy();if(e.direction===c.MoveDirection.inside||e.direction===c.MoveDirection.outside)return t;const n=(0,i.degToRad)((0,i.getRangeValue)(e.angle.value)),r=(0,i.degToRad)((0,i.getRangeValue)(e.angle.offset)),o={left:r-n*s.half,right:r+n*s.half};return e.straight||(t.angle+=(0,i.randomInRangeValue)((0,i.setRangeValue)(o.left,o.right))),e.random&&"number"==typeof e.speed&&(t.length*=(0,i.getRandom)()),t};#st=(e,t,n)=>{h({outMode:n,checkModes:[u.OutMode.bounce],coord:e.x,maxCoord:this.#f.canvas.size.width,setCb:t=>e.x+=t,radius:t})};#lt=(e,t,n)=>{h({outMode:n,checkModes:[u.OutMode.bounce],coord:e.y,maxCoord:this.#f.canvas.size.height,setCb:t=>e.y+=t,radius:t})};#ct=(e,t)=>{const n=this.getRadius(),r=this.#f.canvas.size,o=this.position,i=t===u.OutMode.bounce;return e===d.OutModeDirection.bottom?{inside:i?o.y+n<r.height:o.y-n<r.height,reason:"default"}:e===d.OutModeDirection.left?{inside:i?o.x-n>s.defaultAngle:o.x+n>s.defaultAngle,reason:"default"}:e===d.OutModeDirection.right?{inside:i?o.x+n<r.width:o.x-n<r.width,reason:"default"}:e===d.OutModeDirection.top?{inside:i?o.y-n>s.defaultAngle:o.y+n>s.defaultAngle,reason:"default"}:{inside:o.x>=-n&&o.y>=-n&&o.y<=r.height+n&&o.x<=r.width+n,reason:"default"}};#ut=(e,t)=>({canvasSize:this.#f.canvas.size,direction:e,outMode:t,particle:this,radius:this.getRadius()});#it=e=>{const t=this.#ct(e.direction,e.outMode),n=this.#f,r=this.shape?n.shapeDrawers.get(this.shape):void 0,o=this.effect?n.effectDrawers.get(this.effect):void 0,i=r?.isInsideCanvas,a=o?.isInsideCanvas;if(!i&&!a)return t;const l=this.#ut(e.direction,e.outMode),c=i?this.#dt(i(l),"shape"):void 0,u=a?this.#dt(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};#nt=e=>e&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?(0,o.alterHsl)(e,this.roll.alter.type,this.roll.alter.value):e:e;#rt=e=>{const t=this.#f,n=Math.floor((0,i.getRangeValue)(this.options.zIndex.value)),o=this.#at(e,(0,i.clamp)(n,s.minZ,t.zLayers));if(!o)throw new Error("a valid position cannot be found for particle");this.position=o,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,i.getParticleDirectionAngle)(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case c.MoveDirection.inside:this.outType=f.ParticleOutType.inside;break;case c.MoveDirection.outside:this.outType=f.ParticleOutType.outside}this.offset=r.Vector.origin};#dt=(e,t)=>"boolean"==typeof e?{inside:e,reason:t}:{inside:e.inside,margin:e.margin,reason:e.reason??t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SpatialHashGrid:()=>o});var r=n(934);class o{#ft;#pt=new Map;#ht=[];#mt;#gt;#yt=[];#vt;constructor(e){this.#ft=e,this.#mt=0,this.#vt=0}clear(){this.#pt.clear();const e=this.#gt;e&&(this.#ft=e),this.#gt=void 0}insert(e){const{x:t,y:n}=e.getPosition(),r=this.#bt(t,n);this.#pt.has(r)||this.#pt.set(r,[]),this.#pt.get(r)?.push(e)}query(e,t,n=[]){const r=this.#_t(e);if(!r)return n;const o=Math.floor(r.minX/this.#ft),i=Math.floor(r.maxX/this.#ft),a=Math.floor(r.minY/this.#ft),s=Math.floor(r.maxY/this.#ft);for(let r=o;r<=i;r++)for(let o=a;o<=s;o++){const i=`${r}_${o}`,a=this.#pt.get(i);if(a)for(const r of a)t&&!t(r)||e.contains(r.getPosition())&&n.push(r)}return n}queryCircle(e,t,n,r=[]){const o=this.#wt(e.x,e.y,t),i=this.query(o,n,r);return this.#St(),i}queryRectangle(e,t,n,r=[]){const o=this.#Et(e.x,e.y,t.width,t.height),i=this.query(o,n,r);return this.#St(),i}setCellSize(e){this.#gt=e}#wt(e,t,n){return(this.#ht[this.#mt++]??=new r.Circle(e,t,n)).reset(e,t,n)}#Et(e,t,n,o){return(this.#yt[this.#vt++]??=new r.Rectangle(e,t,n,o)).reset(e,t,n,o)}#bt(e,t){return`${Math.floor(e/this.#ft)}_${Math.floor(t/this.#ft)}`}
41#_t(e){if(e instanceof r.Circle){const t=e.radius,{x:n,y:r}=e.position;return{minX:n-t,maxX:n+t,minY:r-t,maxY:r+t}}if(e instanceof r.Rectangle){const{x:t,y:n}=e.position,{width:r,height:o}=e.size;return{minX:t,maxX:t+r,minY:n,maxY:n+o}}return null}#St(){this.#mt=0,this.#vt=0}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Retina:()=>i});var r=n(917),o=n(919);class i{pixelRatio;reduceFactor;#f;constructor(e){this.#f=e,this.pixelRatio=r.defaultRatio,this.reduceFactor=r.defaultReduceFactor}init(){const e=this.#f,t=e.actualOptions;this.pixelRatio=t.detectRetina?devicePixelRatio:r.defaultRatio,this.reduceFactor=r.defaultReduceFactor;const n=this.pixelRatio,o=e.canvas,i=o.domElement;i&&(o.size.width=i.offsetWidth*n,o.size.height=i.offsetHeight*n)}initParticle(e){const t=e.options,n=this.pixelRatio,r=t.move,i=r.distance,a=e.retina;a.maxSpeed=(0,o.getRangeValue)(r.gravity.maxSpeed)*n,a.moveDrift=(0,o.getRangeValue)(r.drift)*n,a.moveSpeed=(0,o.getRangeValue)(r.speed)*n;const s=a.maxDistance;s.horizontal=void 0===i.horizontal?void 0:i.horizontal*n,s.vertical=void 0===i.vertical?void 0:i.vertical*n}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{BlendPluginInstance:()=>o});var r=n(914);class o{#f;#kt;constructor(e){this.#f=e}drawParticleCleanup(e,t){t.options.blend?.enable&&(e.globalCompositeOperation=t.originalBlendMode??r.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.#kt&&(e.globalCompositeOperation=this.#kt)}drawSettingsSetup(e){const t=e.globalCompositeOperation,n=this.#f.actualOptions.blend;this.#kt=t,e.globalCompositeOperation=n?.enable?n.mode:t}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MovePluginInstance:()=>i});var r=n(914),o=n(2801);class i{availablePathGenerators;pathGenerators;#f;#p;constructor(e,t){this.#p=e,this.#f=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,n=t.gravity,i=t.path;if(e.moveDecay=r.decayOffset-(0,r.getRangeValue)(t.decay),e.pathDelay=(0,r.getRangeValue)(i.delay.value)*r.millisecondsToSeconds,i.generator){let t=this.pathGenerators.get(i.generator);t||(t=this.availablePathGenerators.get(i.generator),t&&(this.pathGenerators.set(i.generator,t),t.init())),e.pathGenerator=t}e.gravity={enable:n.enable,acceleration:(0,r.getRangeValue)(n.acceleration),inverse:n.inverse},(0,o.initSpin)(this.#f,e)}particleDestroyed(e){const t=e.pathGenerator;t?.reset(e)}particleUpdate(e,t){const n=e.options.move;if(!n.enable)return;const i=this.#f,a=(0,o.getProximitySpeedFactor)(e),s=i.retina.reduceFactor,l=e.retina.moveSpeed,c=e.retina.moveDrift,u=e.size.max,d=l*(n.size?e.getRadius()/u:1)*a*(t.factor||1)*r.half,f=e.retina.maxSpeed;n.spin.enable?(0,o.spin)(i,e,d,s):(0,o.move)(e,n,d,f,c,s,t),(0,o.applyDistance)(e)}preInit(){return this.#Tt()}redrawInit(){return this.#Tt()}update(){for(const e of this.pathGenerators.values())e.update()}async#Tt(){const e=await(this.#p.getPathGenerators?.(this.#f,!0));if(e){this.availablePathGenerators=e,this.pathGenerators=new Map;for(const e of this.pathGenerators.values())e.init()}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDistance:()=>d,applyPath:()=>h,getProximitySpeedFactor:()=>m,initSpin:()=>g,move:()=>f,spin:()=>p});var r=n(914);const o=0,i=1,a=60,s=0,l=.01,c=0,u=1;function d(e){const t=e.initialPosition,{dx:n,dy:i}=(0,r.getDistances)(t,e.position),a=Math.abs(n),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 n=e.position,i=e.velocity;c&&(n.x<t.x&&i.x<o||n.x>t.x&&i.x>o)&&(i.x*=-(0,r.getRandom)()),u&&(n.y<t.y&&i.y<o||n.y>t.y&&i.y>o)&&(i.y*=-(0,r.getRandom)())}}else e.misplaced=!!c&&a>c||!!u&&s>u,c&&(e.velocity.x=e.velocity.y*r.half-e.velocity.x),u&&(e.velocity.y=e.velocity.x*r.half-e.velocity.y)}function f(e,t,n,r,s,l,c){h(e,c);const d=e.gravity,f=d?.enable&&d.inverse?-i:i;s&&n&&(e.velocity.x+=s*c.factor/(a*n)),d?.enable&&n&&(e.velocity.y+=f*(d.acceleration*c.factor)/(a*n));const p=e.moveDecay;e.velocity.multTo(p??u);const m=e.velocity.mult(n);d?.enable&&r>o&&(!d.inverse&&m.y>=o&&m.y>=r||d.inverse&&m.y<=o&&m.y<=-r)&&(m.y=f*r,n&&(e.velocity.y=m.y/n));const g=e.options.zIndex,y=(i-e.zIndexFactor)**g.velocityRate;m.multTo(y),m.multTo(l);const{position:v}=e;v.addTo(m),t.vibrate&&(v.x+=Math.sin(v.x*Math.cos(v.y))*l,v.y+=Math.cos(v.y*Math.sin(v.x))*l)}function p(e,t,n,o){if(!t.spin)return;const a=t.spin.direction===r.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),d=u*r.half;t.spin.radius>d?(t.spin.radius=d,t.spin.acceleration*=-i):t.spin.radius<s&&(t.spin.radius=s,t.spin.acceleration*=-i),t.spin.angle+=n*l*(i-t.spin.radius/u)}function h(e,t){const n=e.options.move.path;if(!n.enable)return;const o=e.pathDelay??c;if(e.lastPathTime<=o)return void(e.lastPathTime+=t.value);const a=e.pathGenerator?.generate(e,t);a&&e.velocity.addTo(a),n.clamp&&(e.velocity.x=(0,r.clamp)(e.velocity.x,-i,i),e.velocity.y=(0,r.clamp)(e.velocity.y,-i,i)),e.lastPathTime-=o}function m(e){return e.slow.inRange?e.slow.factor:i}function g(e,t){const n=t.options.move.spin;if(!n.enable)return;const i=n.position??{x:50,y:50},a={x:.01*i.x*e.canvas.size.width,y:.01*i.y*e.canvas.size.height},s=t.getPosition(),l=(0,r.getDistance)(s,a),c=(0,r.getRangeValue)(n.acceleration);t.retina.spinAcceleration=c*e.retina.pixelRatio,t.spin={center:a,direction:t.velocity.x>=o?r.RotateDirection.clockwise:r.RotateDirection.counterClockwise,angle:(0,r.getRandom)()*r.doublePI,radius:l,acceleration:t.retina.spinAcceleration}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmittersPluginInstance:()=>o});var r=n(914);class o{#f;#_;constructor(e,t){this.#_=e,this.#f=t,this.#_.initContainer(t)}
41async init(){const e=this.#f.actualOptions.emitters;if((0,r.isArray)(e))for(const t of e)await this.#_.addEmitter(this.#f,t);else await this.#_.addEmitter(this.#f,e)}pause(){for(const e of this.#_.getArray(this.#f))e.pause()}play(){for(const e of this.#_.getArray(this.#f))e.play()}resize(){for(const e of this.#_.getArray(this.#f))e.resize()}stop(){this.#_.clear(this.#f)}update(e){this.#_.getArray(this.#f).forEach(t=>{t.update(e)})}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ShapeManager:()=>o});const r=new Map;class o{addShapeGenerator(e,t){this.getShapeGenerator(e)||r.set(e,t)}getShapeGenerator(e){return r.get(e)}getSupportedShapeGenerators(){return r.keys()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmittersInstancesManager:()=>i});var r=n(914),o=n(1013);class i{#xt;#p;constructor(e){this.#xt=new Map,this.#p=e}async addEmitter(e,t,r){const i=new o.Emitter;i.load(t);const{EmitterInstance:a}=await n.e("vendors").then(n.bind(n,3329)),s=new a(this.#p,e,t=>{this.removeEmitter(e,t)},i,r);return await s.init(),this.getArray(e).push(s),s}clear(e){this.initContainer(e),this.#xt.set(e,[])}getArray(e){this.initContainer(e);let t=this.#xt.get(e);return t||(t=[],this.#xt.set(e,t)),t}initContainer(e){this.#xt.has(e)||(this.#xt.set(e,[]),e.getEmitter=t=>{const n=this.getArray(e);return void 0===t||(0,r.isNumber)(t)?n[t??0]:n.find(e=>e.name===t)},e.addEmitter=async(t,n)=>this.addEmitter(e,t,n),e.removeEmitter=t=>{const n=e.getEmitter?.(t);n&&this.removeEmitter(e,n)},e.playEmitter=t=>{const n=e.getEmitter?.(t);n&&n.externalPlay()},e.pauseEmitter=t=>{const n=e.getEmitter?.(t);n&&n.externalPause()})}removeEmitter(e,t){const n=this.getArray(e).indexOf(t);n>=0&&this.getArray(e).splice(n,1)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MotionPluginInstance:()=>o});var r=n(914);class o{#f;constructor(e){this.#f=e}async init(){const e=this.#f,t=e.actualOptions.motion;if(!t||!t.disable&&!t.reduce.value)return void(e.retina.reduceFactor=1);const n=(0,r.safeMatchMedia)("(prefers-reduced-motion: reduce)");if(!n)return void(e.retina.reduceFactor=1);this.#Ot(n);n.addEventListener("change",()=>{(async()=>{this.#Ot(n);try{await e.refresh()}catch{}})()}),await Promise.resolve()}#Ot=e=>{const t=this.#f,n=t.actualOptions.motion;n&&(e.matches?n.disable?t.retina.reduceFactor=0:t.retina.reduceFactor=n.reduce.value?1/n.reduce.factor:1:t.retina.reduceFactor=1)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{DragDropContext:()=>jr,Draggable:()=>Jr,Droppable:()=>wo,useKeyboardSensor:()=>ur,useMouseSensor:()=>ar,useTouchSensor:()=>hr});var r=n(396),o=n(3080),i=n(3081),a=n(3084),s=n(3086),l=n(1994);function c(e,t){}c.bind(null,"warn"),c.bind(null,"error");function u(){}function d(e,t,n){const r=t.map(t=>{const r=function(e,t){return{...e,...t}}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}});return function(){r.forEach(e=>{e()})}}const f=!0,p="Invariant failed";
41class h extends Error{}function m(e,t){throw new h(f?p:`${p}: ${t||""}`)}h.prototype.toString=function(){return this.message};class g extends r.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 h&&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=d(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof h))throw e;this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const y=e=>e+1,v=(e,t)=>{const n=e.droppableId===t.droppableId,r=y(e.index),o=y(t.index);return n?`\n      You have moved the item from position ${r}\n      to position ${o}\n    `:`\n    You have moved the item from position ${r}\n    in list ${e.droppableId}\n    to list ${t.droppableId}\n    in position ${o}\n  `},b=(e,t,n)=>t.droppableId===n.droppableId?`\n      The item ${e}\n      has been combined with ${n.draggableId}`:`\n      The item ${e}\n      in list ${t.droppableId}\n      has been combined with ${n.draggableId}\n      in list ${n.droppableId}\n    `,_=e=>`\n  The item has returned to its starting position\n  of ${y(e.index)}\n`,w={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 v(e.source,t);const n=e.combine;return n?b(e.draggableId,e.source,n):"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,n=e.combine;return t?`\n      You have dropped the item.\n      ${v(e.source,t)}\n    `:n?`\n      You have dropped the item.\n      ${b(e.draggableId,e.source,n)}\n    `:`\n    The item has been dropped while not over a drop area.\n    ${_(e.source)}\n  `}};function S(e,t){return e===t||!(!Number.isNaN(e)||!Number.isNaN(t))}function E(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!S(e[n],t[n]))return!1;return!0}function k(e,t){const n=(0,r.useState)(()=>({inputs:t,result:e()}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&E(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)(()=>{o.current=!1,i.current=a},[a]),a.result}function T(e,t){return k(()=>e,t)}const x={x:0,y:0},O=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),C=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),P=(e,t)=>e.x===t.x&&e.y===t.y,A=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),I=(e,t,n=0)=>"x"===e?{x:t,y:n}:{x:n,y:t},R=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),j=(e,t)=>Math.min(...t.map(t=>R(e,t))),M=e=>t=>({x:e(t.x),y:e(t.y)});const D=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),N=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}],L=(e,t)=>t&&t.shouldClipSubject?((e,t)=>{const n=(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 n.width<=0||n.height<=0?null:n})(t.pageMarginBox,e):(0,a.getRect)(e);var F=({page:e,withPlaceholder:t,axis:n,frame:r})=>{const o=((e,t)=>t?D(e,t.scroll.diff.displacement):e)(e.marginBox,r),i=((e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e)(o,n,t);return{page:e,withPlaceholder:t,active:L(i,r)}},B=(e,t)=>{e.frame||m();const n=e.frame,r=C(t,n.scroll.initial),o=A(r),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}},a=F({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};function z(e,t=E){let n=null;function r(...r){if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;const o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}const U=z(e=>e.reduce((e,t)=>
41(e[t.descriptor.id]=t,e),{})),H=z(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),V=z(e=>Object.values(e)),q=z(e=>Object.values(e));var G=z((e,t)=>{const n=q(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index);return n});function W(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function $(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Y=z((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),K=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const J={point:x,value:0},Q={invisible:{},visible:{},all:[]},X={displaced:Q,displacedBy:J,at:null};var Z=(e,t)=>n=>e<=n&&n<=t,ee=e=>{const t=Z(e.top,e.bottom),n=Z(e.left,e.right);return r=>{if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;const o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;const a=r.top<e.top&&r.bottom>e.bottom,s=r.left<e.left&&r.right>e.right;if(a&&s)return!0;return a&&i||s&&o}},te=e=>{const t=Z(e.top,e.bottom),n=Z(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)};const ne={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},re={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};const oe=({target:e,destination:t,viewport:n,withDroppableDisplacement:r,isVisibleThroughFrameFn:o})=>{const i=r?((e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:x;return D(e,n)})(e,t):e;return((e,t,n)=>!!t.subject.active&&n(t.subject.active)(e))(i,t,o)&&((e,t,n)=>n(t)(e))(i,n,o)},ie=e=>oe({...e,isVisibleThroughFrameFn:te});function ae({afterDragging:e,destination:t,displacedBy:n,viewport:r,forceShouldAnimate:o,last:i}){return e.reduce(function(e,s){const l=function(e,t){const n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,a.getRect)((0,a.expand)(n,r))}(s,n),c=s.descriptor.id;e.all.push(c);var u;if(!(u={target:l,destination:t,viewport:r,withDroppableDisplacement:!0},oe({...u,isVisibleThroughFrameFn:ee})))return e.invisible[s.descriptor.id]=!0,e;const d=((e,t,n)=>{if("boolean"==typeof n)return n;if(!t)return!0;const{invisible:r,visible:o}=t;if(r[e])return!1;const i=o[e];return!i||i.shouldAnimate})(c,i,o),f={draggableId:c,shouldAnimate:d};return e.visible[c]=f,e},{all:[],visible:{},invisible:{}})}function se({insideDestination:e,inHomeList:t,displacedBy:n,destination:r}){const o=function(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(e,{inHomeList:t});return{displaced:Q,displacedBy:n,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function le({draggable:e,insideDestination:t,destination:n,viewport:r,displacedBy:o,last:i,index:a,forceShouldAnimate:s}){const l=K(e,n);if(null==a)return se({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const c=t.find(e=>e.descriptor.index===a);if(!c)return se({insideDestination:t,inHomeList:l,displacedBy:o,destination:n});const u=Y(e,t),d=t.indexOf(c);return{displaced:ae({afterDragging:u.slice(d),destination:n,displacedBy:o,last:i,viewport:r.frame,forceShouldAnimate:s}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:a}}}}function ce(e,t){return Boolean(t.effected[e])}var ue=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:r,destination:o,insideDestination:i,previousImpact:a,viewport:s,afterCritical:l})=>{const c=a.at;if(c||m(),"REORDER"===c.type){const r=(({isMovingForward:e,isInHomeList:t,insideDestination:n,location:r})=>{if(!n.length)return null;const o=r.index,i=e?o+1:o-1,a=n[0].descriptor.index,s=n[n.length-1].descriptor.index;return i<a||i>(t?s:s+1)?null:i})({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:i});return null==r?null:le({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:r})}const u=(({isMovingForward:e,destination:t,draggables:n,combine:r,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=r.draggableId,a=n[i].descriptor.index;return ce(i,o)?e?a:a-1:e?a+1:a})({isMovingForward:e,destination:o,displaced:a.displaced,draggables:r,combine:c.combine,afterCritical:l});return null==u?null:le({draggable:n,insideDestination:i,destination:o,viewport:s,last:a.displaced,displacedBy:a.displacedBy,index:u})},de=({afterCritical:e,impact:t,draggables:n})=>{const r=$(t);r||m();
41const o=r.draggableId,i=n[o].page.borderBox.center,a=(({displaced:e,afterCritical:t,combineWith:n,displacedBy:r})=>{const o=Boolean(e.visible[n]||e.invisible[n]);return ce(n,t)?o?x:A(r.point):o?r.point:x})({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return O(i,a)};const fe=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,pe=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,he=({axis:e,moveRelativeTo:t,isMoving:n})=>I(e.line,t.marginBox[e.end]+fe(e,n),pe(e,t.marginBox,n)),me=({axis:e,moveRelativeTo:t,isMoving:n})=>I(e.line,t.marginBox[e.start]-((e,t)=>t.margin[e.end]+t.borderBox[e.size]/2)(e,n),pe(e,t.marginBox,n));var ge=({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o})=>{const i=G(r.descriptor.id,n),s=t.page,l=r.axis;if(!i.length)return(({axis:e,moveInto:t,isMoving:n})=>I(e.line,t.contentBox[e.start]+fe(e,n),pe(e,t.contentBox,n)))({axis:l,moveInto:r.page,isMoving:s});const{displaced:c,displacedBy:u}=e,d=c.all[0];if(d){const e=n[d];if(ce(d,o))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 f=i[i.length-1];if(f.descriptor.id===t.descriptor.id)return s.borderBox.center;if(ce(f.descriptor.id,o)){const e=(0,a.offset)(f.page,A(o.displacedBy.point));return he({axis:l,moveRelativeTo:e,isMoving:s})}return he({axis:l,moveRelativeTo:f.page,isMoving:s})},ye=(e,t)=>{const n=e.frame;return n?O(t,n.scroll.diff.displacement):t};var ve=e=>{const t=(({impact:e,draggable:t,droppable:n,draggables:r,afterCritical:o})=>{const i=t.page.borderBox.center,a=e.at;return n&&a?"REORDER"===a.type?ge({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o}):de({impact:e,draggables:r,afterCritical:o}):i})(e),n=e.droppable;return n?ye(n,t):t},be=(e,t)=>{const n=C(t,e.scroll.initial),r=A(n);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:n,displacement:r}}}};function _e(e,t){return e.map(e=>t[e])}var we=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const r=((e,t)=>O(e.scroll.diff.displacement,t))(n,e),o=C(r,t.page.borderBox.center);return O(t.client.borderBox.center,o)},Se=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:r,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const a=C(n,e.page.borderBox.center),s={target:D(e.page.borderBox,a),destination:t,withDroppableDisplacement:o,viewport:r};return i?(e=>{return oe({...e,isVisibleThroughFrameFn:(t=e.destination.axis,e=>{const n=Z(e.top,e.bottom),r=Z(e.left,e.right);return e=>t===ne?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)})});var t})(s):ie(s)},Ee=({isMovingForward:e,draggable:t,destination:n,draggables:r,previousImpact:o,viewport:i,previousPageBorderBoxCenter:a,previousClientSelection:s,afterCritical:l})=>{if(!n.isEnabled)return null;const c=G(n.descriptor.id,r),u=K(t,n),d=(({isMovingForward:e,draggable:t,destination:n,insideDestination:r,previousImpact:o})=>{if(!n.isCombineEnabled)return null;if(!W(o))return null;function i(e){const t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...o,at:t}}const a=o.displaced.all,s=a.length?a[0]:null;if(e)return s?i(s):null;const l=Y(t,r);if(!s)return l.length?i(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:i(l[u].descriptor.id)})({isMovingForward:e,draggable:t,destination:n,insideDestination:c,previousImpact:o})||ue({isMovingForward:e,isInHomeList:u,draggable:t,draggables:r,destination:n,insideDestination:c,previousImpact:o,viewport:i,afterCritical:l});if(!d)return null;const f=ve({impact:d,draggable:t,droppable:n,draggables:r,afterCritical:l});if(Se({draggable:t,destination:n,newPageBorderBoxCenter:f,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})){return{clientSelection:we({pageBorderBoxCenter:f,draggable:t,viewport:i}),impact:d,scrollJumpRequest:null}}const p=C(f,a),h=(({impact:e,viewport:t,destination:n,draggables:r,maxScrollChange:o})=>{const i=be(t,O(t.scroll.current,o)),a=n.frame?B(n,O(n.frame.scroll.current,o)):n,s=e.displaced,l=ae({afterDragging:_e(s.all,r),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:s,forceShouldAnimate:!1}),c=ae({afterDragging:_e(s.all,r),destination:a,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},d={},f=[s,l,c];
41return s.all.forEach(e=>{const t=function(e,t){for(let n=0;n<t.length;n++){const r=t[n].visible[e];if(r)return r}return null}(e,f);t?d[e]=t:u[e]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:d}}})({impact:d,viewport:i,destination:n,draggables:r,maxScrollChange:p});return{clientSelection:s,impact:h,scrollJumpRequest:p}};const ke=e=>{const t=e.subject.active;return t||m(),t};const Te=(e,t)=>{const n=e.page.borderBox.center;return ce(e.descriptor.id,t)?C(n,t.displacedBy.point):n},xe=(e,t)=>{const n=e.page.borderBox;return ce(e.descriptor.id,t)?D(n,A(t.displacedBy.point)):n};var Oe=z(function(e,t){const n=t[e.line];return{value:n,point:I(e.line,n)}});const Ce=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),Pe=(e,t,n)=>{const r=e.frame;K(t,e)&&m(),e.subject.withPlaceholder&&m();const o=Oe(e.axis,t.displaceBy).point,i=((e,t,n)=>{const r=e.axis;if("virtual"===e.descriptor.mode)return I(r.line,t[r.line]);const o=e.subject.page.contentBox[r.size],i=G(e.descriptor.id,n).reduce((e,t)=>e+t.client.marginBox[r.size],0)+t[r.line]-o;return i<=0?null:I(r.line,i)})(e,o,n),a={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){const t=F({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}const s=i?O(r.scroll.max,i):r.scroll.max,l=Ce(r,s),c=F({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:l});return{...e,subject:c,frame:l}};var Ae=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:r,draggables:o,droppables:i,viewport:a,afterCritical:s})=>{const l=(({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:r,viewport:o})=>{const i=n.subject.active;if(!i)return null;const a=n.axis,s=Z(i[a.start],i[a.end]),l=V(r).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>ee(o.frame)(ke(e))).filter(t=>{const n=ke(t);return e?i[a.crossAxisEnd]<n[a.crossAxisEnd]:n[a.crossAxisStart]<i[a.crossAxisStart]}).filter(e=>{const t=ke(e),n=Z(t[a.start],t[a.end]);return s(t[a.start])||s(t[a.end])||n(i[a.start])||n(i[a.end])}).sort((t,n)=>{const r=ke(t)[a.crossAxisStart],o=ke(n)[a.crossAxisStart];return e?r-o:o-r}).filter((e,t,n)=>ke(e)[a.crossAxisStart]===ke(n[0])[a.crossAxisStart]);if(!l.length)return null;if(1===l.length)return l[0];const c=l.filter(e=>Z(ke(e)[a.start],ke(e)[a.end])(t[a.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>ke(e)[a.start]-ke(t)[a.start])[0]:l.sort((e,n)=>{const r=j(t,N(ke(e))),o=j(t,N(ke(n)));return r!==o?r-o:ke(e)[a.start]-ke(n)[a.start]})[0]})({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:i,viewport:a});if(!l)return null;const c=G(l.descriptor.id,o),u=(({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:r,afterCritical:o})=>{const i=r.filter(e=>ie({target:xe(e,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((t,r)=>{const i=R(e,ye(n,Te(t,o))),a=R(e,ye(n,Te(r,o)));return i<a?-1:a<i?1:t.descriptor.index-r.descriptor.index});return i[0]||null})({pageBorderBoxCenter:t,viewport:a,destination:l,insideDestination:c,afterCritical:s}),d=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:r,draggables:o,destination:i,viewport:a,afterCritical:s})=>{if(!t){if(n.length)return null;const e={displaced:Q,displacedBy:J,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},t=ve({impact:e,draggable:r,droppable:i,draggables:o,afterCritical:s}),l=K(r,i)?i:Pe(i,r,o);return Se({draggable:r,destination:l,newPageBorderBoxCenter:t,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}const l=Boolean(e[i.axis.line]<=t.page.borderBox.center[i.axis.line]),c=(()=>{const e=t.descriptor.index;return t.descriptor.id===r.descriptor.id||l?e:e+1})(),u=Oe(i.axis,r.displaceBy);return le({draggable:r,insideDestination:n,destination:i,viewport:a,displacedBy:u,last:Q,index:c})})({previousPageBorderBoxCenter:t,destination:l,draggable:n,draggables:o,moveRelativeTo:u,insideDestination:c,viewport:a,afterCritical:s});if(!d)return null;const f=ve({impact:d,draggable:n,droppable:l,draggables:o,afterCritical:s});return{clientSelection:we({pageBorderBoxCenter:f,draggable:n,viewport:
41a}),impact:d,scrollJumpRequest:null}},Ie=e=>{const t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};var Re=({state:e,type:t})=>{const n=((e,t)=>{const n=Ie(e);return n?t[n]:null})(e.impact,e.dimensions.droppables),r=Boolean(n),o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,a=i.axis.direction,s="vertical"===a&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===a&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);if(s&&!r)return null;const l="MOVE_DOWN"===t||"MOVE_RIGHT"===t,c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:d,droppables:f}=e.dimensions;return s?Ee({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:i,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Ae({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:i,draggables:d,droppables:f,viewport:e.viewport,afterCritical:e.afterCritical})};function je(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Me(e){const t=Z(e.top,e.bottom),n=Z(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function De({pageBorderBox:e,draggable:t,droppables:n}){const r=V(n).filter(t=>{if(!t.isEnabled)return!1;const n=t.subject.active;if(!n)return!1;if(o=n,!((r=e).left<o.right&&r.right>o.left&&r.top<o.bottom&&r.bottom>o.top))return!1;var r,o;if(Me(n)(e.center))return!0;const i=t.axis,a=n.center[i.crossAxisLine],s=e[i.crossAxisStart],l=e[i.crossAxisEnd],c=Z(n[i.crossAxisStart],n[i.crossAxisEnd]),u=c(s),d=c(l);return!u&&!d||(u?s<a:l>a)});return r.length?1===r.length?r[0].descriptor.id:function({pageBorderBox:e,draggable:t,candidates:n}){const r=t.page.borderBox.center,o=n.map(t=>{const n=t.axis,o=I(t.axis.line,e.center[n.line],t.page.borderBox.center[n.crossAxisLine]);return{id:t.descriptor.id,distance:R(r,o)}}).sort((e,t)=>t.distance-e.distance);return o[0]?o[0].id:null}({pageBorderBox:e,draggable:t,candidates:r}):null}const Ne=(e,t)=>(0,a.getRect)(D(e,t));function Le({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var Fe=({pageOffset:e,draggable:t,draggables:n,droppables:r,previousImpact:o,viewport:i,afterCritical:a})=>{const s=Ne(t.page.borderBox,e),l=De({pageBorderBox:s,draggable:t,droppables:r});if(!l)return X;const c=r[l],u=G(c.descriptor.id,n),d=((e,t)=>{const n=e.frame;return n?Ne(t,n.scroll.diff.value):t})(c,s);return(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:r,insideDestination:o,afterCritical:i})=>{if(!r.isCombineEnabled)return null;const a=r.axis,s=Oe(r.axis,e.displaceBy),l=s.value,c=t[a.start],u=t[a.end],d=Y(e,o).find(e=>{const t=e.descriptor.id,r=e.page.borderBox,o=r[a.size]/4,s=ce(t,i),d=Le({displaced:n.displaced,id:t});return s?d?u>r[a.start]+o&&u<r[a.end]-o:c>r[a.start]-l+o&&c<r[a.end]-l-o:d?u>r[a.start]+l+o&&u<r[a.end]+l-o:c>r[a.start]+o&&c<r[a.end]-o});return d?{displacedBy:s,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:c,insideDestination:u,afterCritical:a})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:r,last:o,viewport:i,afterCritical:a})=>{const s=n.axis,l=Oe(n.axis,t.displaceBy),c=l.value,u=e[s.start],d=e[s.end],f=function({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}({draggable:t,closest:Y(t,r).find(e=>{const t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=ce(t,a),i=Le({displaced:o,id:t});return r?i?d<=n:u<n-c:i?d<=n+c:u<n})||null,inHomeList:K(t,n)});return le({draggable:t,insideDestination:r,destination:n,viewport:i,last:o,displacedBy:l,index:f})})({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:u,last:o.displaced,viewport:i,afterCritical:a})},Be=(e,t)=>({...e,[t.descriptor.id]:t});const ze=({previousImpact:e,impact:t,droppables:n})=>{const r=Ie(e),o=Ie(t);if(!r)return n;if(r===o)return n;const i=n[r];if(!i.subject.withPlaceholder)return n;const a=(e=>{const t=e.subject.withPlaceholder;
41t||m();const n=e.frame;if(!n){const t=F({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}const r=t.oldFrameMaxScroll;r||m();const o=Ce(n,r),i=F({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}})(i);return Be(n,a)};var Ue=({state:e,clientSelection:t,dimensions:n,viewport:r,impact:o,scrollJumpRequest:i})=>{const a=r||e.viewport,s=n||e.dimensions,l=t||e.current.client.selection,c=C(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:O(e.initial.client.borderBoxCenter,c)},d={selection:O(u.selection,a.scroll.current),borderBoxCenter:O(u.borderBoxCenter,a.scroll.current),offset:O(u.offset,a.scroll.diff.value)},f={client:u,page:d};if("COLLECTING"===e.phase)return{...e,dimensions:s,viewport:a,current:f};const p=s.draggables[e.critical.draggable.id],h=o||Fe({pageOffset:d.offset,draggable:p,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:a,afterCritical:e.afterCritical}),m=(({draggable:e,draggables:t,droppables:n,previousImpact:r,impact:o})=>{const i=ze({previousImpact:r,impact:o,droppables:n}),a=Ie(o);if(!a)return i;const s=n[a];if(K(e,s))return i;if(s.subject.withPlaceholder)return i;const l=Pe(s,e,t);return Be(i,l)})({draggable:p,impact:h,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:f,dimensions:{draggables:s.draggables,droppables:m},impact:h,viewport:a,scrollJumpRequest:i||null,forceShouldAnimate:!i&&null}};var He=({impact:e,viewport:t,draggables:n,destination:r,forceShouldAnimate:o})=>{const i=e.displaced,a=function(e,t){return e.map(e=>t[e])}(i.all,n),s=ae({afterDragging:a,destination:r,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:s}},Ve=({impact:e,draggable:t,droppable:n,draggables:r,viewport:o,afterCritical:i})=>{const a=ve({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i});return we({pageBorderBoxCenter:a,draggable:t,viewport:o})},qe=({state:e,dimensions:t,viewport:n})=>{"SNAP"!==e.movementMode&&m();const r=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:a,droppables:s}=i,l=a[e.critical.draggable.id],c=Ie(r);c||m();const u=s[c],d=He({impact:r,viewport:o,destination:u,draggables:a}),f=Ve({impact:d,draggable:l,droppable:u,draggables:a,viewport:o,afterCritical:e.afterCritical});return Ue({impact:d,clientSelection:f,state:e,dimensions:i,viewport:o})},Ge=({draggable:e,home:t,draggables:n,viewport:r})=>{const o=Oe(t.axis,e.displaceBy),i=G(t.descriptor.id,n),a=i.indexOf(e);-1===a&&m();const s=i.slice(a+1),l=s.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:o,effected:l};var u;return{impact:{displaced:ae({afterDragging:s,destination:t,displacedBy:o,last:null,viewport:r.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:(u=e.descriptor,{index:u.index,droppableId:u.droppableId})}},afterCritical:c}};const We=e=>{0},$e=e=>{0};var Ye=({additions:e,updatedDroppables:t,viewport:n})=>{const r=n.scroll.diff.value;return e.map(e=>{const o=e.descriptor.droppableId,i=(e=>{const t=e.frame;return t||m(),t})(t[o]),s=i.scroll.diff.value,l=(({draggable:e,offset:t,initialWindowScroll:n})=>{const r=(0,a.offset)(e.client,t),o=(0,a.withScroll)(r,n);return{...e,placeholder:{...e.placeholder,client:r},client:r,page:o}})({draggable:e,offset:O(r,s),initialWindowScroll:n.scroll.initial});return l})};const Ke=e=>"SNAP"===e.movementMode,Je=(e,t,n)=>{const r=((e,t)=>({draggables:e.draggables,droppables:Be(e.droppables,t)}))(e.dimensions,t);return!Ke(e)||n?Ue({state:e,dimensions:r}):qe({state:e,dimensions:r})};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:n,clientSelection:r,viewport:o,dimensions:i,movementMode:a}=t.payload,s=i.draggables[n.draggable.id],l=i.droppables[n.droppable.id],c={selection:r,borderBoxCenter:s.client.borderBox.center,offset:x},u={client:c,page:{selection:O(c.selection,o.scroll.initial),borderBoxCenter:O(c.selection,o.scroll.initial),offset:O(c.selection,o.scroll.diff.value)}},d=V(i.droppables).every(e=>!e.isFixedOnPage),{impact:f,afterCritical:p}=Ge({draggable:s,home:l,draggables:i.draggables,viewport:o});
41return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:a,dimensions:i,initial:u,current:u,isWindowScrollAllowed:d,impact:f,afterCritical:p,onLiftImpact:f,viewport:o,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})=>{We();const n=t.modified.map(t=>{const n=e.dimensions.droppables[t.droppableId];return B(n,t.scroll)}),r={...e.dimensions.droppables,...U(n)},o=H(Ye({additions:t.additions,updatedDroppables:r,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(e=>{delete i[e]});const a={droppables:r,draggables:i},s=Ie(e.impact),l=s?a.droppables[s]:null,c=a.draggables[e.critical.draggable.id],u=a.droppables[e.critical.droppable.id],{impact:d,afterCritical:f}=Ge({draggable:c,home:u,draggables:i,viewport:e.viewport}),p=l&&l.isCombineEnabled?e.impact:d,h=Fe({pageOffset:e.current.page.offset,draggable:a.draggables[e.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:p,viewport:e.viewport,afterCritical:f});$e();const m={...e,phase:"DRAGGING",impact:h,onLiftImpact:d,dimensions:a,afterCritical:f,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;je(e)||m();const{client:n}=t.payload;return P(n,e.current.client.selection)?e:Ue({state:e,clientSelection:n,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);je(e)||m();const{id:n,newScroll:r}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=B(o,r);return Je(e,i,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;je(e)||m();const{id:n,isEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||m(),o.isEnabled===r&&m();const i={...o,isEnabled:r};return Je(e,i,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;je(e)||m();const{id:n,isCombineEnabled:r}=t.payload,o=e.dimensions.droppables[n];o||m(),o.isCombineEnabled===r&&m();const i={...o,isCombineEnabled:r};return Je(e,i,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;je(e)||m(),e.isWindowScrollAllowed||m();const n=t.payload.newScroll;if(P(e.viewport.scroll.current,n))return Qe(e);const r=be(e.viewport,n);return Ke(e)?qe({state:e,viewport:r}):Ue({state:e,viewport:r})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!je(e))return e;const n=t.payload.maxScroll;if(P(n,e.viewport.scroll.max))return e;const r={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:r}}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 n=Re({state:e,type:t.type});return n?Ue({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){const n=t.payload.reason;"COLLECTING"!==e.phase&&m();return{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if("DROP_ANIMATE"===t.type){const{completed:n,dropDuration:r,newHomeClientOffset:o}=t.payload;"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&m();return{phase:"DROP_ANIMATING",completed:n,dropDuration:r,newHomeClientOffset:o,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}),nt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),rt=()=>({type:"COLLECTION_STARTING",payload:null}),ot=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),it=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}),dt=()=>({type:"MOVE_LEFT",payload:null}),ft=()=>({type:"FLUSH",payload:null}),pt=e=>({type:"DROP_COMPLETE",payload:e}),ht=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},vt={drop:.75},bt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},_t=`${bt.outOfTheWay}s ${"cubic-bezier(0.2, 0, 0, 1)"}`,wt={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}`},St=e=>P(e,x)?void 0:`translate(${e.x}px, ${e.y}px)`,Et=St,kt=(e,t)=>
41{const n=St(e);if(n)return t?`${n} scale(${vt.drop})`:n},{minDropTime:Tt,maxDropTime:xt}=bt,Ot=xt-Tt;const Ct=({getState:e,dispatch:t})=>n=>r=>{if(!et(r,"DROP"))return void n(r);const o=e(),i=r.payload.reason;if("COLLECTING"===o.phase)return void t((e=>({type:"DROP_PENDING",payload:e}))({reason:i}));if("IDLE"===o.phase)return;"DROP_PENDING"===o.phase&&o.isWaiting&&m(),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&m();const a=o.critical,s=o.dimensions,l=s.draggables[o.critical.draggable.id],{impact:c,didDropInsideDroppable:u}=(({draggables:e,reason:t,lastImpact:n,home:r,viewport:o,onLiftImpact:i})=>{if(!n.at||"DROP"!==t)return{impact:He({draggables:e,impact:i,destination:r,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1};return"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Q},didDropInsideDroppable:!0}})({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=u?W(c):null,f=u?$(c):null,p={index:a.draggable.index,droppableId:a.droppable.id},h={draggableId:l.descriptor.id,type:l.descriptor.type,source:p,reason:i,mode:o.movementMode,destination:d,combine:f},g=(({impact:e,draggable:t,dimensions:n,viewport:r,afterCritical:o})=>{const{draggables:i,droppables:a}=n,s=Ie(e),l=s?a[s]:null,c=a[t.descriptor.droppableId],u=Ve({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:l||c,viewport:r});return C(u,t.client.borderBox.center)})({impact:c,draggable:l,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:h,impact:c};if(!(!P(o.current.client.offset,g)||Boolean(h.combine)))return void t(pt({completed:y}));const v=(({current:e,destination:t,reason:n})=>{const r=R(e,t);if(r<=0)return Tt;if(r>=1500)return xt;const o=Tt+Ot*(r/1500);return Number(("CANCEL"===n?.6*o:o).toFixed(2))})({current:o.current.client.offset,destination:g,reason:i});t((e=>({type:"DROP_ANIMATE",payload:e}))({newHomeClientOffset:g,dropDuration:v,completed:y}))};var Pt=()=>({x:window.pageXOffset,y:window.pageYOffset});function At({onWindowScroll:e}){const t=(0,s.default)(function(){e(Pt())}),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}(t);let r=u;function o(){return r!==u}return{start:function(){o()&&m(),r=d(window,[n])},stop:function(){o()||m(),t.cancel(),r(),r=u},isActive:o}}const It=e=>{const t=At({onWindowScroll:t=>{e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return e=>n=>{!t.isActive()&&et(n,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&(e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(n)&&t.stop(),e(n)}};var Rt=()=>{const e=[];return{add:t=>{const n=setTimeout(()=>(t=>{const n=e.findIndex(e=>e.timerId===t);-1===n&&m();const[r]=e.splice(n,1);r.callback()})(n)),r={timerId:n,callback:t};e.push(r)},flush:()=>
41{if(!e.length)return;const t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};const jt=(e,t)=>{We(),t(),$e()},Mt=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Dt(e,t,n,r){if(!e)return void n(r(t));const o=(e=>{let t=!1,n=!1;const r=setTimeout(()=>{n=!0}),o=o=>{t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=()=>t,o})(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}var Nt=(e,t)=>{const n=((e,t)=>{const n=Rt();let r=null;const o=n=>{r||m(),r=null,jt(0,()=>Dt(e().onDragEnd,n,t,w.onDragEnd))};return{beforeCapture:(t,n)=>{r&&m(),jt(0,()=>{const r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})})},beforeStart:(t,n)=>{r&&m(),jt(0,()=>{const r=e().onBeforeDragStart;r&&r(Mt(t,n))})},start:(o,i)=>{r&&m();const a=Mt(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add(()=>{jt(0,()=>Dt(e().onDragStart,a,t,w.onDragStart))})},update:(o,i)=>{const a=W(i),s=$(i);r||m();const l=!((e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r})(o,r.lastCritical);l&&(r.lastCritical=o);const c=(d=a,!(null==(u=r.lastLocation)&&null==d||null!=u&&null!=d&&u.droppableId===d.droppableId&&u.index===d.index));var u,d;c&&(r.lastLocation=a);const f=!((e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId)(r.lastCombine,s);if(f&&(r.lastCombine=s),!l&&!c&&!f)return;const p={...Mt(o,r.mode),combine:s,destination:a};n.add(()=>{jt(0,()=>Dt(e().onDragUpdate,p,t,w.onDragUpdate))})},flush:()=>{r||m(),n.flush()},drop:o,abort:()=>{if(!r)return;const e={...Mt(r.lastCritical,r.mode),combine:null,destination:null,reason:"CANCEL"};o(e)}}})(e,t);return e=>t=>r=>{if(et(r,"BEFORE_INITIAL_CAPTURE"))return void n.beforeCapture(r.payload.draggableId,r.payload.movementMode);if(et(r,"INITIAL_PUBLISH")){const e=r.payload.critical;return n.beforeStart(e,r.payload.movementMode),t(r),void n.start(e,r.payload.movementMode)}if(et(r,"DROP_COMPLETE")){const e=r.payload.completed.result;return n.flush(),t(r),void n.drop(e)}if(t(r),et(r,"FLUSH"))return void n.abort();const o=e.getState();"DRAGGING"===o.phase&&n.update(o.critical,o.impact)}};const Lt=e=>t=>n=>{if(!et(n,"DROP_ANIMATION_FINISHED"))return void t(n);const r=e.getState();"DROP_ANIMATING"!==r.phase&&m(),e.dispatch(pt({completed:r.completed}))},Ft=e=>{let t=null,n=null;return r=>o=>{if((et(o,"FLUSH")||et(o,"DROP_COMPLETE")||et(o,"DROP_ANIMATION_FINISHED"))&&(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),!et(o,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame(()=>{n=null,t=d(window,[i])})}};var Bt=e=>t=>n=>r=>{if((e=>et(e,"DROP_COMPLETE")||et(e,"DROP_ANIMATE")||et(e,"FLUSH"))(r))return e.stop(),void n(r);if(et(r,"INITIAL_PUBLISH")){n(r);const o=t.getState();return"DRAGGING"!==o.phase&&m(),void e.start(o)}n(r),e.scroll(t.getState())};const zt=e=>t=>n=>{if(t(n),!et(n,"PUBLISH_WHILE_DRAGGING"))return;const r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(ht({reason:r.reason})))},Ut=o.compose;var Ht=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:r,announce:i,autoScroller:a})=>{return(0,o.createStore)(Ze,Ut((0,o.applyMiddleware)((s=n,()=>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=>n=>{(et(n,"DROP_COMPLETE")||et(n,"FLUSH")||et(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)})(e),(e=>({getState:t,dispatch:n})=>r=>o=>{if(!et(o,"LIFT"))return void r(o);const{id:i,clientSelection:a,movementMode:s}=o.payload,l=t();"DROP_ANIMATING"===l.phase&&n(pt({completed:l.completed})),"IDLE"!==t().phase&&m(),n(ft()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:s}});const c={draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},{critical:u,dimensions:d,viewport:f}=e.startPublishing(c);n({type:"INITIAL_PUBLISH",payload:{critical:u,dimensions:d,clientSelection:a,movementMode:s,viewport:f}})})(e),Ct,Lt,Ft,zt,Bt(a),It,(e=>{let t=!1;return()=>n=>r=>{if(et(r,"INITIAL_PUBLISH"))return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if(et(r,"FLUSH"))return t=!1,void e.tryRestoreFocusRecorded();if(et(r,"DROP_COMPLETE")){t=!1;const n=r.payload.completed.result;n.combine&&e.tryShiftRecord(n.draggableId,n.combine.draggableId),e.tryRestoreFocusRecorded()}}}})(t),Nt(r,i))));var s};var Vt=({scrollHeight:e,scrollWidth:t,height:n,width:r})=>{const o=C({x:t,y:e},{x:r,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},qt=()=>{const e=document.documentElement;return e||m(),e},Gt=()=>{const e=qt();return Vt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Wt=({critical:e,scrollOptions:t,registry:n})=>{We();const r=(()=>{const e=Pt(),t=Gt(),n=e.y,r=e.x,o=qt(),i=r+o.clientWidth,s=n+o.clientHeight;return{frame:(0,a.getRect)({top:n,left:r,right:i,bottom:s}),scroll:{initial:e,current:e,max:t,diff:{value:x,displacement:x}}}})(),o=r.scroll.current,i=e.droppable,s=n.droppable.getAllByType(i.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,t)),l=n.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o)),c={draggables:H(l),droppables:U(s)};
41$e();return{dimensions:c,critical:e,viewport:r}};function $t(e,t,n){if(n.descriptor.id===t.id)return!1;if(n.descriptor.type!==t.type)return!1;return"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode}var Yt=(e,t)=>{let n=null;const r=function({registry:e,callbacks:t}){let n={additions:{},removals:{},modified:{}},r=null;const o=()=>{r||(t.collectionStarting(),r=requestAnimationFrame(()=>{r=null,We();const{additions:o,removals:i,modified:a}=n,s=Object.keys(o).map(t=>e.draggable.getById(t).getDimension(x)).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(i),modified:l};n={additions:{},removals:{},modified:{}},$e(),t.publish(c)}))};return{add:e=>{const t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],o()},remove:e=>{const t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],o()},stop:()=>{r&&(cancelAnimationFrame(r),r=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=t=>{n||m();const o=n.critical.draggable;"ADDITION"===t.type&&$t(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&$t(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:(r,o)=>{e.droppable.exists(r)||m(),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:(r,o)=>{n&&(e.droppable.exists(r)||m(),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:(t,r)=>{n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:(r,o)=>{n&&(e.droppable.exists(r)||m(),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:t=>{n&&m();const r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},s=e.subscribe(o);return n={critical:a,unsubscribe:s},Wt({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!n)return;r.stop();const t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),n.unsubscribe(),n=null}};return i},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=z(e=>V(e).filter(e=>!!e.isEnabled&&!!e.frame));var Xt=({center:e,destination:t,droppables:n})=>{if(t){const e=n[t];return e.frame?e:null}const r=((e,t)=>{const n=Qt(t).find(t=>(t.frame||m(),Me(t.frame.pageMarginBox)(e)))||null;return n})(e,n);return r};const Zt={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var en=({startOfRange:e,endOfRange:t,current:n})=>{const r=t-e;if(0===r)return 0;return(n-e)/r},tn=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:r,getAutoScrollerOptions:o})=>{const i=((e,t,n=()=>Zt)=>{const r=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return r.maxPixelScroll;if(e===t.startScrollingFrom)return 1;const o=1-en({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=r.maxPixelScroll*r.ease(o);return Math.ceil(i)})(e,t,o);return 0===i?0:r?Math.max(((e,t,n)=>{const r=n(),o=r.durationDampening.accelerateAt,i=r.durationDampening.stopDampeningAt,a=t,s=i,l=Date.now()-a;if(l>=i)return e;if(l<o)return 1;const c=en({startOfRange:o,endOfRange:s,current:l}),u=e*r.ease(c);return Math.ceil(u)})(i,n,o),1):i},nn=({container:e,distanceToEdges:t,dragStartTime:n,axis:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=((e,t,n=()=>Zt)=>{const r=n();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,r,i);return t[r.end]<t[r.start]?tn({distanceToEdge:t[r.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*tn({distanceToEdge:t[r.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})};const rn=M(e=>0===e?0:e);var on=({dragStartTime:e,container:t,subject:n,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a={top:r.y-t.top,right:t.right-r.x,bottom:t.bottom-r.y,left:r.x-t.left},s=nn({container:t,distanceToEdges:a,dragStartTime:e,axis:ne,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),l=nn({container:t,distanceToEdges:a,dragStartTime:e,axis:re,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),c=rn({x:l,y:s});if(P(c,x))return null;const u=(({container:e,subject:t,proposedScroll:n})=>{const r=t.height>e.height,o=t.width>e.width;return o||r?o&&r?null:{x:o?0:n.x,y:r?0:n.y}:n})({container:t,subject:n,proposedScroll:c});return u?P(u,x)?null:u:null};const an=M(e=>0===e?0:e>0?1:-1),sn=(()=>{const e=(e,t)=>
41e<0?e:e>t?e-t:0;return({current:t,max:n,change:r})=>{const o=O(t,r),i={x:e(o.x,n.x),y:e(o.y,n.y)};return P(i,x)?null:i}})(),ln=({max:e,current:t,change:n})=>{const r={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=an(n),i=sn({max:r,current:t,change:o});return!i||(0!==o.x&&0===i.x||0!==o.y&&0===i.y)},cn=(e,t)=>ln({current:e.scroll.current,max:e.scroll.max,change:t}),un=(e,t)=>{const n=e.frame;return!!n&&ln({current:n.scroll.current,max:n.scroll.max,change:t})};var dn=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:r,scrollDroppable:o,getAutoScrollerOptions:i})=>{const a=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const o=(({viewport:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=on({dragStartTime:r,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return a&&cn(e,a)?a:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(o)return void r(o)}const l=Xt({center:a,destination:Ie(e.impact),droppables:e.dimensions.droppables});if(!l)return;const c=(({droppable:e,subject:t,center:n,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const a=e.frame;if(!a)return null;const s=on({dragStartTime:r,container:a.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return s&&un(e,s)?s:null})({dragStartTime:t,droppable:l,subject:s,center:a,shouldUseTimeDampening:n,getAutoScrollerOptions:i});c&&o(l.descriptor.id,c)},fn=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>Zt})=>{const r=(0,s.default)(e),o=(0,s.default)(t);let i=null;const a=e=>{i||m();const{shouldUseTimeDampening:t,dragStartTime:a}=i;dn({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{We(),i&&m();const t=Date.now();let r=!1;const o=()=>{r=!0};dn({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:o,scrollDroppable:o,getAutoScrollerOptions:n}),i={dragStartTime:t,shouldUseTimeDampening:r},$e(),r&&a(e)},stop:()=>{i&&(r.cancel(),o.cancel(),i=null)},scroll:a}},pn=({move:e,scrollDroppable:t,scrollWindow:n})=>{const r=(e,n)=>{if(!un(e,n))return n;const r=((e,t)=>{const n=e.frame;return n&&un(e,t)?sn({current:n.scroll.current,max:n.scroll.max,change:t}):null})(e,n);if(!r)return t(e.descriptor.id,n),null;const o=C(n,r);t(e.descriptor.id,o);return C(n,o)},o=(e,t,r)=>{if(!e)return r;if(!cn(t,r))return r;const o=((e,t)=>{if(!cn(e,t))return null;const n=e.scroll.max,r=e.scroll.current;return sn({current:r,max:n,change:t})})(t,r);if(!o)return n(r),null;const i=C(r,o);n(i);return C(r,i)};return t=>{const n=t.scrollJumpRequest;if(!n)return;const i=Ie(t.impact);i||m();const a=r(t.dimensions.droppables[i],n);if(!a)return;const s=t.viewport,l=o(t.isWindowScrollAllowed,s,a);l&&((t,n)=>{const r=O(t.current.client.selection,n);e({client:r})})(t,l)}},hn=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:r})=>{const o=fn({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:r}),i=pn({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{r().disabled||"DRAGGING"!==e.phase||("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}};const mn="data-rfd",gn=(()=>{const e=`${mn}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),yn=(()=>{const e=`${mn}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),vn=(()=>{const e=`${mn}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),bn={contextId:`${mn}-scroll-container-context-id`},_n=(e,t)=>e.map(e=>{const n=e.styles[t];return n?`${e.selector} { ${n} }`:""}).join(" ");var wn=e=>{const t=(n=e,e=>`[${e}="${n}"]`);var n;const r=(()=>{const e="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ";return{selector:t(gn.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}}})(),o=[(()=>{const e=`\n      transition: ${wt.outOfTheWay};\n    `;return{selector:t(yn.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(vn.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:_n(o,"always"),resting:_n(o,"resting"),dragging:_n(o,"dragging"),dropAnimating:_n(o,"dropAnimating"),userCancel:_n(o,"userCancel")}};const Sn="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,En=()=>{const e=document.querySelector("head");return e||m(),e},kn=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function Tn(e,t){return Array.from(e.querySelectorAll(t))}var xn=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function On(e){return e instanceof xn(e).HTMLElement}function Cn(e,t){const n=`[${gn.contextId}="${e}"]`,r=Tn(document,n);if(!r.length)return null;const o=r.find(e=>e.getAttribute(gn.draggableId)===t);return o&&On(o)?o:null}function Pn(){const e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach(t=>t(e))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:(t,n)=>{const r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{const o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],e.droppables[t.descriptor.droppableId]&&n({type:"REMOVAL",value:t}))},getById:function(e){const t=r(e);return t||m(),t},findById:r,exists:e=>Boolean(r(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 n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){const t=o(e);return t||m(),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var An=r.default.createContext(null),In=()=>{const e=document.body;return e||m(),e};const Rn={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},jn=e=>`rfd-announcement-${e}`;const Mn={separator:"::"};function Dn(e,t=Mn){const n=r.default.useId();return k(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}var Nn=r.default.createContext(null);function Ln(e){0}function Fn(e,t){Ln()}function Bn(e){const t=(0,r.useRef)(e);return(0,r.useEffect)(()=>{t.current=e}),t}function zn(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}const Un=9,Hn=13,Vn=27,qn=32,Gn=33,Wn=34,$n=35,Yn=36,Kn=37,Jn=38,Qn=39,Xn=40,Zn={[Hn]:!0,[Un]:!0};var er=e=>{Zn[e.keyCode]&&e.preventDefault()};const tr=(()=>{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})(),nr=0,rr=5;const or={type:"IDLE"};function ir({cancel:e,completed:t,getPhase:n,setPhase:r}){return[{eventName:"mousemove",fn:e=>{const{button:t,clientX:o,clientY:i}=e;if(t!==nr)return;const a={x:o,y:i},s=n();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)>=rr||Math.abs(u.y-c.y)>=rr))return;var c,u;e.preventDefault();const d=s.actions.fluidLift(a);r({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"mousedown",fn:t=>{"DRAGGING"===n().type&&t.preventDefault(),e()}},{eventName:"keydown",fn:t=>{if("PENDING"!==n().type)return t.keyCode===Vn?(t.preventDefault(),void e()):void er(t);e()}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&e()}},{eventName:"webkitmouseforcedown",fn:t=>{const r=n();"IDLE"===r.type&&m(),r.actions.shouldRespectForcePress()?e():t.preventDefault()}},{eventName:tr,fn:e}]}function ar(e){const t=(0,r.useRef)(or),n=(0,r.useRef)(u),o=k(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented)return;if(t.button!==nr)return;if(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;const r=e.findClosestDraggableId(t);if(!r)return;const o=e.tryGetLock(r,s,{sourceEvent:t});if(!o)return;t.preventDefault();const i={x:t.clientX,y:t.clientY};n.current(),f(o,i)}}),[e]),i=k(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;const n=e.findClosestDraggableId(t);if(!n)return;const r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}),[e]),a=T(function(){n.current=d(window,[i,o],{passive:!1,capture:!0})},[i,o]),s=T(()=>{"IDLE"!==t.current.type&&(t.current=or,n.current(),a())},[a]),l=T(()=>{const e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),c=T(function(){const e=ir({cancel:l,completed:s,getPhase:()=>t.current,setPhase:e=>{t.current=e}});n.current=d(window,e,{capture:!0,passive:!1})},[l,s]),f=T(function(e,n){"IDLE"!==t.current.type&&m(),t.current={type:"PENDING",point:n,actions:e},c()},[c]);Sn(function(){return a(),function(){n.current()}},[a])}function sr(){}const lr={[Wn]:!0,[Gn]:!0,[Yn]:!0,[$n]:!0};function cr(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:r=>r.keyCode===Vn?(r.preventDefault(),void n()):r.keyCode===qn?(r.preventDefault(),t(),void e.drop()):r.keyCode===Xn?(r.preventDefault(),void e.moveDown()):r.keyCode===Jn?(r.preventDefault(),void e.moveUp()):r.keyCode===Qn?(r.preventDefault(),void e.moveRight()):r.keyCode===Kn?(r.preventDefault(),void e.moveLeft()):void(lr[r.keyCode]?r.preventDefault():er(r))},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:tr,fn:n}]}function ur(e){const t=(0,r.useRef)(sr),n=k(()=>({eventName:"keydown",fn:function(n){if(n.defaultPrevented)return;if(n.keyCode!==qn)return;const r=e.findClosestDraggableId(n);if(!r)return;const i=e.tryGetLock(r,l,{sourceEvent:n});if(!i)return;n.preventDefault();let a=!0;const s=i.snapLift();function l(){a||m(),a=!1,t.current(),o()}t.current(),t.current=d(window,cr(s,l),{capture:!0,passive:!1})}}),[e]),o=T(function(){t.current=d(window,[n],{passive:!1,capture:!0})},[n]);Sn(function(){return o(),function(){t.current()}},[o])}const dr={type:"IDLE"},fr=120,pr=.15;function hr(e){const t=(0,r.useRef)(dr),n=(0,r.useRef)(u),o=T(function(){return t.current},[]),i=T(function(e){t.current=e},[]),a=k(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;const r=e.findClosestDraggableId(t);if(!r)return;const o=e.tryGetLock(r,l,{sourceEvent:t});if(!o)return;const i=t.touches[0],{clientX:a,clientY:s}=i,c={x:a,y:s};n.current(),h(o,c)}}),[e]),s=T(function(){n.current=d(window,[a],{capture:!0,passive:!1})},[a]),l=T(()=>{const e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(dr),n.current(),s())},[s,i]),c=T(()=>{const e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[l]),f=T(function(){const e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},r=d(window,function({cancel:e,completed:t,getPhase:n}
41){return[{eventName:"touchmove",options:{capture:!1},fn:t=>{const r=n();if("DRAGGING"!==r.type)return void e();r.hasMoved=!0;const{clientX:o,clientY:i}=t.touches[0],a={x:o,y:i};t.preventDefault(),r.actions.move(a)}},{eventName:"touchend",fn:r=>{const o=n();"DRAGGING"===o.type?(r.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()):e()}},{eventName:"touchcancel",fn:t=>{"DRAGGING"===n().type?(t.preventDefault(),e()):e()}},{eventName:"touchforcechange",fn:t=>{const r=n();"IDLE"===r.type&&m();const o=t.touches[0];if(!o)return;if(!(o.force>=pr))return;const i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void t.preventDefault():void e():void t.preventDefault();i&&e()}},{eventName:tr,fn:e}]}(t),e),i=d(window,function({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:n=>{"DRAGGING"===t().type?(n.keyCode===Vn&&n.preventDefault(),e()):e()}},{eventName:tr,fn:e}]}(t),e);n.current=function(){r(),i()}},[c,o,l]),p=T(function(){const e=o();"PENDING"!==e.type&&m();const t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})},[o,i]),h=T(function(e,t){"IDLE"!==o().type&&m();const n=setTimeout(p,fr);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),f()},[f,o,i,p]);Sn(function(){return s(),function(){n.current();const e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(dr))}},[o,s,i]),Sn(function(){return d(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const mr=["input","button","textarea","select","option","optgroup","video","audio"];function gr(e,t){if(null==t)return!1;if(mr.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&gr(e,t.parentElement)}function yr(e,t){const n=t.target;return!!On(n)&&gr(e,n)}var vr=e=>(0,a.getRect)(e.getBoundingClientRect()).center;const br=(()=>{const e="matches";if("undefined"==typeof document)return e;return[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function _r(e,t){return null==e?null:e[br](t)?e:_r(e.parentElement,t)}function wr(e,t){return e.closest?e.closest(t):_r(e,t)}function Sr(e,t){const n=t.target;if(!((r=n)instanceof xn(r).Element))return null;var r;const o=function(e){return`[${gn.contextId}="${e}"]`}(e),i=wr(n,o);return i&&On(i)?i:null}function Er(e){e.preventDefault()}function kr({expected:e,phase:t,isLockActive:n,shouldWarn:r}){return!!n()&&e===t}function Tr({lockAPI:e,store:t,registry:n,draggableId:r}){if(e.isClaimed())return!1;const o=n.draggable.findById(r);return!!o&&(!!o.options.isEnabled&&!!Kt(t.getState(),r))}function xr({lockAPI:e,contextId:t,store:n,registry:r,draggableId:o,forceSensorStop:i,sourceEvent:a}){if(!Tr({lockAPI:e,store:n,registry:r,draggableId:o}))return null;const l=r.draggable.getById(o),c=function(e,t){const n=`[${yn.contextId}="${e}"]`,r=Tn(document,n).find(e=>e.getAttribute(yn.id)===t);return r&&On(r)?r:null}(t,l.descriptor.id);if(!c)return null;if(a&&!l.options.canDragInteractiveElements&&yr(c,a))return null;const f=e.claim(i||u);let p="PRE_DRAG";function h(){return l.options.shouldRespectForcePress}function g(){return e.isActive(f)}const y=function(e,t){kr({expected:e,phase:p,isLockActive:g,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function v(t){function r(){e.release(),p="COMPLETED"}function o(e,o={shouldBlockNextClick:!1}){if(t.cleanup(),o.shouldBlockNextClick){const e=d(window,[{eventName:"click",fn:Er,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(e)}r(),n.dispatch(ht({reason:e}))}return"PRE_DRAG"!==p&&(r(),m()),n.dispatch(tt(t.liftActionArgs)),p="DRAGGING",{isActive:()=>kr({expected:"DRAGGING",phase:p,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,drop:e=>o("DROP",e),cancel:e=>o("CANCEL",e),...t.actions}}return{isActive:()=>kr({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!1}),shouldRespectForcePress:h,fluidLift:function(e){const t=(0,s.default)(e=>{y(()=>st({client:e}))});return{...v({liftActionArgs:{id:o,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(dt)};return v({liftActionArgs:{id:o,clientSelection:vr(c),movementMode:"SNAP"}
41,cleanup:u,actions:e})},abort:function(){kr({expected:"PRE_DRAG",phase:p,isLockActive:g,shouldWarn:!0})&&e.release()}}}const Or=[ar,ur,hr];function Cr({contextId:e,store:t,registry:n,customSensors:o,enableDefaultSensors:i}){const a=[...i?Or:[],...o||[]],s=(0,r.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 n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}())[0],l=T(function(e,t){zn(e)&&!zn(t)&&s.tryAbandon()},[s]);Sn(function(){let e=t.getState();return t.subscribe(()=>{const n=t.getState();l(e,n),e=n})},[s,t,l]),Sn(()=>s.tryAbandon,[s.tryAbandon]);const c=T(e=>Tr({lockAPI:s,registry:n,store:t,draggableId:e}),[s,n,t]),u=T((r,o,i)=>xr({lockAPI:s,registry:n,contextId:e,store:t,draggableId:r,forceSensorStop:o||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[e,s,n,t]),d=T(t=>function(e,t){const n=Sr(e,t);return n?n.getAttribute(gn.draggableId):null}(e,t),[e]),f=T(e=>{const t=n.draggable.findById(e);return t?t.options:null},[n.draggable]),p=T(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==t.getState().phase&&t.dispatch(ft()))},[s,t]),h=T(()=>s.isClaimed(),[s]),g=k(()=>({canGetLock:c,tryGetLock:u,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:p,isLockClaimed:h}),[c,u,d,f,p,h]);Ln();for(let e=0;e<a.length;e++)a[e](g)}const Pr=e=>({onBeforeCapture:t=>{(0,r.flushSync)(()=>{e.onBeforeCapture&&e.onBeforeCapture(t)})},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),Ar=e=>({...Zt,...e.autoScrollerOptions,durationDampening:{...Zt.durationDampening,...e.autoScrollerOptions}});function Ir(e){return e.current||m(),e.current}function Rr(e){const{contextId:t,setCallbacks:n,sensors:a,nonce:s,dragHandleUsageInstructions:c}=e,u=(0,r.useRef)(null);Fn();const d=Bn(e),f=T(()=>Pr(d.current),[d]),p=T(()=>Ar(d.current),[d]),h=function(e){const t=k(()=>jn(e),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)(function(){const e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,l.default)(e.style,Rn),In().appendChild(e),function(){setTimeout(function(){const t=In();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)})}},[t]),T(e=>{const t=n.current;t&&(t.textContent=e)},[])}(t),g=function({contextId:e,text:t}){const n=Dn("hidden-text",{separator:"-"}),o=k(()=>function({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}({contextId:e,uniqueId:n}),[n,e]);return(0,r.useEffect)(function(){const e=document.createElement("div");return e.id=o,e.textContent=t,e.style.display="none",In().appendChild(e),function(){const t=In();t.contains(e)&&t.removeChild(e)}},[o,t]),o}({contextId:t,text:c}),y=function(e,t){const n=k(()=>wn(e),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=T(z(e=>{const t=i.current;t||m(),t.textContent=e}),[]),s=T(e=>{const t=o.current;t||m(),t.textContent=e},[]);Sn(()=>{(o.current||i.current)&&m();const r=kn(t),l=kn(t);return o.current=r,i.current=l,r.setAttribute(`${mn}-always`,e),l.setAttribute(`${mn}-dynamic`,e),En().appendChild(r),En().appendChild(l),s(n.always),a(n.resting),()=>{const e=e=>{const t=e.current;t||m(),En().removeChild(t),e.current=null};e(o),e(i)}},[t,s,a,n.always,n.resting,e]);const l=T(()=>a(n.dragging),[a,n.dragging]),c=T(e=>{a("DROP"!==e?n.userCancel:n.dropAnimating)},[a,n.dropAnimating,n.userCancel]),u=T(()=>{i.current&&a(n.resting)},[a,n.resting]);return k(()=>({dragging:l,dropping:c,resting:u}),[l,c,u])}(t,s),v=T(e=>{Ir(u).dispatch(e)},[]),b=k(()=>(0,o.bindActionCreators)({publishWhileDragging:nt,updateDroppableScroll:ot,updateDroppableIsEnabled:it,updateDroppableIsCombineEnabled:at,collectionStarting:rt},v),[v]),_=function(){const e=k(Pn,[]);return(0,r.useEffect)(()=>function(){e.clean()},[e]),e}(),w=k(()=>Yt(_,b),[_,b]),S=k(()=>hn({scrollWindow:Jt,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:p,...(0,o.bindActionCreators)({move:st},v)}),[w.scrollDroppable,v,p]),E=function(e){const t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=T(function(e,n){const r={id:e,focus:n};return t.current[e]=r,function(){const n=t.current;n[e]!==r&&delete n[e]}},[]),s=T(function(t){const n=Cn(e,t);n&&n!==document.activeElement&&n.focus()},[e]),l=T(function(e,t){n.current===e&&(n.current=t)},[]),c=T(function(){o.current||i.current&&(o.current=requestAnimationFrame(()=>{o.current=null;const e=n.current;e&&s(e)}))},[s]),u=T(function(e){n.current=null;const t=document.activeElement;t&&t.getAttribute(gn.draggableId)===e&&(n.current=e)},[]);return Sn(()=>(i.current=!0,function(){i.current=!1;const e=o.current;e&&cancelAnimationFrame(e)}),[]),k(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:l}),[a,u,c,l])}(t),x=k(()=>Ht({announce:h,autoScroller:S,dimensionMarshal:w,focusMarshal:E,getResponders:f,
41styleMarshal:y}),[h,S,w,E,f,y]);u.current=x;const O=T(()=>{const e=Ir(u);"IDLE"!==e.getState().phase&&e.dispatch(ft())},[]),C=T(()=>{const e=Ir(u).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);n(k(()=>({isDragging:C,tryAbort:O}),[C,O]));const P=T(e=>Kt(Ir(u).getState(),e),[]),A=T(()=>je(Ir(u).getState()),[]),I=k(()=>({marshal:w,focus:E,contextId:t,canLift:P,isMovementAllowed:A,dragHandleUsageInstructionsId:g,registry:_}),[t,w,g,E,P,A,_]);return Cr({contextId:t,store:x,registry:_,customSensors:a||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)(()=>O,[O]),r.default.createElement(Nn.Provider,{value:I},r.default.createElement(i.Provider,{context:An,store:x},e.children))}function jr(e){const t=r.default.useId(),n=e.dragHandleUsageInstructions||w.dragHandleUsageInstructions;return r.default.createElement(g,null,o=>r.default.createElement(Rr,{nonce:e.nonce,contextId:t,setCallbacks:o,dragHandleUsageInstructions:n,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 Mr=5e3,Dr=4500,Nr=(e,t)=>
41t?wt.drop(t.duration):e?wt.snap:wt.fluid,Lr=(e,t)=>{if(e)return t?yt.drop:yt.combining};function Fr(e){return"DRAGGING"===e.type?function(e){const t=e.dimension.client,{offset:n,combineWith:r,dropping:o}=e,i=Boolean(r),a=(e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode)(e),s=Boolean(o),l=s?kt(n,i):Et(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:Nr(a,o),transform:l,opacity:Lr(i,s),zIndex:s?Dr:Mr,pointerEvents:"none"}}(e):{transform:Et((t=e).offset),transition:t.shouldAnimateDisplacement?void 0:"none"};var t}function Br(e){const t=Dn("draggable"),{descriptor:n,registry:o,getDraggableRef:i,canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}=e,u=k(()=>({canDragInteractiveElements:s,shouldRespectForcePress:l,isEnabled:c}),[s,c,l]),d=T(e=>{const t=i();return t||m(),function(e,t,n=x){const r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=(0,a.calculateBox)(o,r),s=(0,a.withScroll)(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:s}}(n,t,e)},[n,i]),f=k(()=>({uniqueId:t,descriptor:n,options:u,getDimension:d}),[n,d,u,t]),p=(0,r.useRef)(f),h=(0,r.useRef)(!0);Sn(()=>(o.draggable.register(p.current),()=>o.draggable.unregister(p.current)),[o.draggable]),Sn(()=>{if(h.current)return void(h.current=!1);const e=p.current;p.current=f,o.draggable.update(f,e)},[f,o.draggable])}var zr=r.default.createContext(null);function Ur(e){const t=(0,r.useContext)(e);return t||m(),t}function Hr(e){e.preventDefault()}var Vr=(e,t)=>e===t,qr=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};function Gr(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const Wr={mapped:{type:"SECONDARY",offset:x,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Gr(null)}};const $r={dropAnimationFinished:mt},Yr=(0,i.connect)(()=>{const e=function(){const e=z((e,t)=>({x:e,y:t})),t=z((e,t,n=null,r=null,o=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null})),n=z((e,n,r,o,i=null,a=null,s=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:s,snapshot:t(n,o,i,a,null)}}));return(r,o)=>{if(zn(r)){if(r.critical.draggable.id!==o.draggableId)return null;const t=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],s=Ie(r.impact),l=(i=r.impact).at&&"COMBINE"===i.at.type?i.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(t.x,t.y),r.movementMode,a,o.isClone,s,l,c)}var i;if("DROP_ANIMATING"===r.phase){const e=r.completed;if(e.result.draggableId!==o.draggableId)return null;const n=o.isClone,i=r.dimensions.draggables[o.draggableId],a=e.result,s=a.mode,l=qr(a),c=(e=>e.combine?e.combine.draggableId:null)(a),u={duration:r.dropDuration,curve:gt,moveTo:r.newHomeClientOffset,opacity:c?yt.drop:null,scale:c?vt.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:i,dropping:u,draggingOver:l,combineWith:c,mode:s,forceShouldAnimate:null,snapshot:t(s,n,l,c,u)}}}return null}}(),t=function(){const e=z((e,t)=>({x:e,y:t})),t=z(Gr),n=z((e,n=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}})),r=e=>e?n(x,e,!0):null,o=(t,o,i,a)=>{const s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),c=$(i),u=c&&c.draggableId===t?o:null;if(!s){if(!l)return r(u);if(i.displaced.invisible[t])return null;const o=A(a.displacedBy.point),s=e(o.x,o.y);return n(s,u,!0)}if(l)return r(u);const d=i.displacedBy.point,f=e(d.x,d.y);return n(f,u,s.shouldAnimate)};return(e,t)=>{if(zn(e))return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){const n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return(n,r)=>e(n,r)||t(n,r)||Wr},$r,null,{context:An,areStatePropsEqual:Vr})(e=>{const t=(0,r.useRef)(null),n=T((e=null)=>{t.current=e},[]),o=T(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:s}=Ur(Nn),{type:l,droppableId:c}=Ur(zr),u=k(()=>({id:e.draggableId,index:e.index,type:l,droppableId:c}),[e.draggableId,e.index,l,c]),{children:d,draggableId:f,isEnabled:p,shouldRespectForcePress:h,canDragInteractiveElements:m,isClone:g,mapped:y,dropAnimationFinished:v}=e;if(Fn(),Ln(),!g){Br(k(()=>({descriptor:u,registry:s,getDraggableRef:o,canDragInteractiveElements:m,shouldRespectForcePress:h,isEnabled:p}),[u,s,o,m,h,p]))}const b=k(()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:Hr}:null,[i,a,f,p]),_=T(e=>{"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&(0,r.flushSync)(v)},[v,y]),w=k(()=>{const e=Fr(y),t="DRAGGING"===y.type&&y.dropping?_:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:e,onTransitionEnd:t},dragHandleProps:b}},[i,b,f,y,_,n]),S=k(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return r.default.createElement(r.default.Fragment,null,d(w,y.snapshot,S))});function Kr(e){return Ur(zr).isUsingCloneFor!==e.draggableId||e.isClone?r.default.createElement(Yr,e):null}function Jr(e){const t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),o=Boolean(e.shouldRespectForcePress);return r.default.createElement(Kr,(0,l.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:o}))}const Qr=e=>t=>e===t,Xr=Qr("scroll"),Zr=Qr("auto"),eo=(Qr("visible"),(e,t)=>t(e.overflowX)||t(e.overflowY)),to=e=>null==e||e===document.body||e===document.documentElement?null:(e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return eo(n,Xr)||eo(n,Zr)})(e)?e:to(e.parentElement);var no=e=>({x:e.scrollLeft,y:e.scrollTop});const ro=e=>{if(!e)return!1;return"fixed"===window.getComputedStyle(e).position||ro(e.parentElement)};var oo=({ref:e,descriptor:t,env:n,windowScroll:r,direction:o,isDropDisabled:i,isCombine
41Enabled:s,shouldClipSubject:l})=>{const c=n.closestScrollable,u=((e,t)=>{const n=(0,a.getBox)(e);if(!t)return n;if(e!==t)return n;const r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,s={top:r,right:o+t.scrollWidth,bottom:i,left:o},l=(0,a.expand)(s,n.border);return(0,a.createBox)({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})})(e,c),d=(0,a.withScroll)(u,r),f=(()=>{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,r),scroll:no(c),scrollSize:t,shouldClipSubject:l}})(),p=(({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:r,direction:o,client:i,page:a,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:e,client:t}=s,n=Vt({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:n,diff:{value:x,displacement:x}}}})(),c="vertical"===o?ne:re;return{descriptor:e,isCombineEnabled:n,isFixedOnPage:r,axis:c,isEnabled:t,client:i,page:a,frame:l,subject:F({page:a,withPlaceholder:null,axis:c,frame:l})}})({descriptor:t,isEnabled:!i,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:o,client:u,page:d,closest:f});return p};const io={passive:!1},ao={passive:!0};var so=e=>e.shouldPublishImmediately?io:ao;const lo=e=>e&&e.env.closestScrollable||null;function co(e){const t=(0,r.useRef)(null),n=Ur(Nn),o=Dn("droppable"),{registry:i,marshal:a}=n,l=Bn(e),c=k(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),u=(0,r.useRef)(c),d=k(()=>z((e,n)=>{t.current||m();const r={x:e,y:n};a.updateDroppableScroll(c.id,r)}),[c.id,a]),f=T(()=>{const e=t.current;return e&&e.env.closestScrollable?no(e.env.closestScrollable):x},[]),p=T(()=>{const e=f();d(e.x,e.y)},[f,d]),h=k(()=>(0,s.default)(p),[p]),g=T(()=>{const e=t.current,n=lo(e);e&&n||m();e.scrollOptions.shouldPublishImmediately?p():h()},[h,p]),y=T((e,r)=>{t.current&&m();const o=l.current,i=o.getDroppableRef();i||m();const a=(e=>({closestScrollable:to(e),isFixedOnPage:ro(e)}))(i),s={ref:i,descriptor:c,env:a,scrollOptions:r};t.current=s;const u=oo({ref:i,descriptor:c,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),d=a.closestScrollable;return d&&(d.setAttribute(bn.contextId,n.contextId),d.addEventListener("scroll",g,so(s.scrollOptions))),u},[n.contextId,c,g,l]),v=T(()=>{const e=t.current,n=lo(e);return e&&n||m(),no(n)},[]),b=T(()=>{const e=t.current;e||m();const n=lo(e);t.current=null,n&&(h.cancel(),n.removeAttribute(bn.contextId),n.removeEventListener("scroll",g,so(e.scrollOptions)))},[g,h]),_=T(e=>{const n=t.current;n||m();const r=lo(n);r||m(),r.scrollTop+=e.y,r.scrollLeft+=e.x},[]),w=k(()=>({getDimensionAndWatchScroll:y,getScrollWhileDragging:v,dragStopped:b,scroll:_}),[b,y,v,_]),S=k(()=>({uniqueId:o,descriptor:c,callbacks:w}),[w,c,o]);Sn(()=>(u.current=S.descriptor,i.droppable.register(S),()=>{t.current&&b(),i.droppable.unregister(S)}),[w,c,b,S,a,i.droppable]),Sn(()=>{t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Sn(()=>{t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function uo(){}const fo={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},po=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const r=(({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||"close"===n?fo:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin})({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:r.width,height:r.height,marginTop:r.margin.top,marginRight:r.margin.right,marginBottom:r.margin.bottom,marginLeft:r.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?wt.placeholder:null}};var ho=r.default.memo(e=>{const t=(0,r.useRef)(null),n=T(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:o,onTransitionEnd:i,onClose:a,contextId:s}=e,[l,c]=(0,r.useState)("open"===e.animate);(0,r.useEffect)(()=>l?"open"!==o?(n(),c(!1),uo):t.current?uo:(t.current=setTimeout(()=>{t.current=null,c(!1)}),n):uo,[o,l,n]);const u=T(e=>{"height"===e.propertyName&&(i(),"close"===o&&a())},[o,a,i]),d=po({isAnimatingOpenOnMount:l,animate:e.animate,placeholder:e.placeholder});return r.default.createElement(e.placeholder.tagName,{style:d,"data-rfd-placeholder-context-id":s,onTransitionEnd:u,ref:e.innerRef})});class mo extends r.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"}}
41render(){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 go={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||m(),document.body}},yo=e=>{let t,n={...e};for(t in go)void 0===e[t]&&(n={...n,[t]:go[t]});return n},vo=(e,t)=>e===t.droppable.type,bo=(e,t)=>t.draggables[e.draggable.id],_o={updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},wo=(0,i.connect)(()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=z(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),r=z((r,o,i,a,s,l)=>{const c=s.descriptor.id;if(s.descriptor.droppableId===r){const e=l?{render:l,dragging:n(s.descriptor)}:null,t={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:t,useClone:e}}if(!o)return t;if(!a)return e;const u={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:u,useClone:null}});return(n,o)=>{const i=yo(o),a=i.droppableId,s=i.type,l=!i.isDropDisabled,c=i.renderClone;if(zn(n)){const e=n.critical;if(!vo(s,e))return t;const o=bo(e,n.dimensions),i=Ie(n.impact)===a;return r(a,l,i,i,o,c)}if("DROP_ANIMATING"===n.phase){const e=n.completed;if(!vo(s,e.critical))return t;const o=bo(e.critical,n.dimensions);return r(a,l,qr(e.result)===a,Ie(e.impact)===a,o,c)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){const r=n.completed;if(!vo(s,r.critical))return t;const o=Ie(r.impact)===a,i=Boolean(r.impact.at&&"COMBINE"===r.impact.at.type),l=r.critical.droppable.id===a;return o?i?e:t:l?e:t}return t}},_o,(e,t,n)=>({...yo(n),...e,...t}),{context:An,areStatePropsEqual:Vr})(e=>{const t=(0,r.useContext)(Nn);t||m();const{contextId:n,isMovementAllowed:o}=t,i=(0,r.useRef)(null),a=(0,r.useRef)(null),{children:s,droppableId:l,type:c,mode:u,direction:d,ignoreContainerClipping:f,isDropDisabled:p,isCombineEnabled:h,snapshot:g,useClone:y,updateViewportMaxScroll:v,getContainerForClone:b}=e,_=T(()=>i.current,[]),w=T((e=null)=>{i.current=e},[]),S=(T(()=>a.current,[]),T((e=null)=>{a.current=e},[]));Fn();const E=T(()=>{o()&&v({maxScroll:Gt()})},[o,v]);co({droppableId:l,type:c,mode:u,direction:d,isDropDisabled:p,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:_});const x=k(()=>r.default.createElement(mo,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:o})=>r.default.createElement(ho,{placeholder:t,onClose:e,innerRef:S,animate:o,contextId:n,onTransitionEnd:E})),[n,E,e.placeholder,e.shouldAnimatePlaceholder,S]),O=k(()=>({innerRef:w,placeholder:x,droppableProps:{"data-rfd-droppable-id":l,"data-rfd-droppable-context-id":n}}),[n,l,x,w]),C=y?y.dragging.draggableId:null,P=k(()=>({droppableId:l,type:c,isUsingCloneFor:C}),[l,C,c]);return r.default.createElement(zr.Provider,{value:P},s(O,g),function(){if(!y)return null;const{dragging:e,render:t}=y,n=r.default.createElement(Kr,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(n,r)=>t(n,r,e));return r.default.createPortal(n,b())}())})},(e,t,n)=>{"use strict";function r(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. `}n.r(t),n.d(t,{__DO_NOT_USE__ActionTypes:()=>a,applyMiddleware:()=>h,bindActionCreators:()=>f,combineReducers:()=>u,compose:()=>p,createStore:()=>l,isAction:()=>m,isPlainObject:()=>s,legacy_createStore:()=>c});var o=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),a={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};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,n){if("function"!=typeof e)throw new Error(r(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(r(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){
41if("function"!=typeof n)throw new Error(r(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,f=0,p=!1;function h(){d===u&&(d=new Map,u.forEach((e,t)=>{d.set(t,e)}))}function m(){if(p)throw new Error(r(3));return c}function g(e){if("function"!=typeof e)throw new Error(r(4));if(p)throw new Error(r(5));let t=!0;h();const n=f++;return d.set(n,e),function(){if(t){if(p)throw new Error(r(6));t=!1,h(),d.delete(n),u=null}}}function y(e){if(!s(e))throw new Error(r(7));if(void 0===e.type)throw new Error(r(8));if("string"!=typeof e.type)throw new Error(r(17));if(p)throw new Error(r(9));try{p=!0,c=i(c,e)}finally{p=!1}return(u=d).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(r(10));i=e,y({type:a.REPLACE})},[o]:function(){const e=g;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(r(11));function n(){const e=t;e.next&&e.next(m())}n();return{unsubscribe:e(n)}},[o](){return this}}}}}function c(e,t,n){return l(e,t,n)}function u(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}const o=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error(r(12));if(void 0===n(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(r(13))})}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const s={};for(let i=0;i<o.length;i++){const l=o[i],c=n[l],u=e[l],d=c(u,t);if(void 0===d){t&&t.type;throw new Error(r(14))}s[l]=d,a=a||d!==u}return a=a||o.length!==Object.keys(e).length,a?s:e}}function d(e,t){return function(...n){return t(e.apply(this,n))}}function f(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error(r(16));const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=d(o,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function h(...e){return t=>(n,o)=>{const i=t(n,o);let a=()=>{throw new Error(r(15))};const s={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(s));return a=p(...l)(i.dispatch),{...i,dispatch:a}}}function m(e){return s(e)&&"type"in e&&"string"==typeof e.type}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{Provider:()=>re,ReactReduxContext:()=>J,batch:()=>pe,connect:()=>te,createDispatchHook:()=>le,createSelectorHook:()=>de,createStoreHook:()=>ae,legacy_connect:()=>ne,shallowEqual:()=>M,useDispatch:()=>ce,useSelector:()=>fe,useStore:()=>se});var r=n(396),o=n(3082),i=r.version.startsWith("19"),a=Symbol.for(i?"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"),d=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=p,b=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 h:case m:return e;default:switch(e=e&&e.$$typeof){case f:case p:case y:case g:case d:return e;default:return t}}case s:return t}}}function w(e,t,n,r,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:a}){let s,l,c,u,d,f=!1;function p(f,p){const h=!i(p,l),m=!o(f,s,p,l);return s=f,l=p,h&&m?(c=e(s,l),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):h?(e.dependsOnOwnProps&&(c=e(s,l)),t.dependsOnOwnProps&&(u=t(r,l)),d=n(c,u,l),d):m?function(){const t=e(s,l),r=!a(t,c);return c=t,r&&(d=n(c,u,l)),d}():d}return function(o,i){return f?p(o,i):(s=o,l=i,c=e(s,l),u=t(r,l),d=n(c,u,l),f=!0,d)}}function S(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function E(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function k(e,t){return function(t,{displayName:n}){const r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.depen
vendor: 4,477 bytes, line 41
41dsOnOwnProps=E(e);let o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=E(o),o=r(t,n)),o},r}}function T(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function x(e,t,n){return{...n,...e,...t}}function O(e){e()}var C={notify(){},get:()=>[]};function P(e,t){let n,r=C,o=0,i=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){O(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=C)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}var A=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),I=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),R=(()=>A||I?r.useLayoutEffect:r.useEffect)();function j(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(j(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!j(e[n[r]],t[n[r]]))return!1;return!0}var D={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},N={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},L={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F={[v]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[b]:L};function B(e){return _(e)===g?L:F[e.$$typeof]||D}var z=Object.defineProperty,U=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,V=Object.getOwnPropertyDescriptor,q=Object.getPrototypeOf,G=Object.prototype;function W(e,t){if("string"!=typeof t){if(G){const n=q(t);n&&n!==G&&W(e,n)}let n=U(t);H&&(n=n.concat(H(t)));const r=B(e),o=B(t);for(let i=0;i<n.length;++i){const a=n[i];if(!(N[a]||o&&o[a]||r&&r[a])){const n=V(t,a);try{z(e,a,n)}catch(e){}}}}return e}var $=Symbol.for("react-redux-context"),Y="undefined"!=typeof globalThis?globalThis:{};function K(){if(!r.createContext)return{};const e=Y[$]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var J=K(),Q=[null,null];function X(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function Z(e,t){return e===t}function ee(e,t,n,{pure:o,areStatesEqual:i=Z,areOwnPropsEqual:a=M,areStatePropsEqual:s=M,areMergedPropsEqual:l=M,forwardRef:c=!1,context:u=J}={}){const d=u,f=function(e){return e?"function"==typeof e?k(e):T(e,"mapStateToProps"):S(()=>({}))}(e),p=function(e){return e&&"object"==typeof e?S(t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"==typeof o&&(n[r]=(...e)=>t(o(...e)))}return n}(e,t)):e?"function"==typeof e?k(e):T(e,"mapDispatchToProps"):S(e=>({dispatch:e}))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,i=!1;return function(t,n,a){const s=e(t,n,a);return i?r(s,o)||(o=s):(i=!0,o=s),o}}}(e):T(e,"mergeProps"):()=>x}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function u(t){const[n,i,a]=r.useMemo(()=>{const{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),s=r.useMemo(()=>d,[n,d]),l=r.useContext(s),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(l)&&Boolean(l.store);const f=c?t.store:l.store,p=u?l.getServerState:f.getState,h=r.useMemo(()=>
41function(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...o}){return w(t(e,o),n(e,o),r(e,o),e,o)}(f.dispatch,o),[f]),[g,y]=r.useMemo(()=>{if(!m)return Q;const e=P(f,c?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[f,c,l]),v=r.useMemo(()=>c?l:{...l,subscription:g},[c,l,g]),b=r.useRef(void 0),_=r.useRef(a),S=r.useRef(void 0),E=r.useRef(!1),k=r.useRef(!1),T=r.useRef(void 0);R(()=>(k.current=!0,()=>{k.current=!1}),[]);const x=r.useMemo(()=>()=>S.current&&a===_.current?S.current:h(f.getState(),a),[f,a]),O=r.useMemo(()=>e=>g?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(e){p=e,f=e}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,_,b,E,k,S,y,e):()=>{},[g]);var C,A,I;let j;C=X,A=[_,b,E,a,S,y],R(()=>C(...A),I);try{j=r.useSyncExternalStore(O,x,p?()=>h(p(),a):x)}catch(e){throw T.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${T.current.stack}\n\n`),e}R(()=>{T.current=void 0,S.current=void 0,b.current=j});const M=r.useMemo(()=>r.createElement(e,{...j,ref:i}),[i,e,j]);return r.useMemo(()=>m?r.createElement(s.Provider,{value:v},M):M,[s,M,v])}const g=r.memo(u);if(g.WrappedComponent=e,g.displayName=u.displayName=n,c){const t=r.forwardRef(function(e,t){return r.createElement(g,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,W(t,e)}return W(g,e)}}var te=ee,ne=ee;var re=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo(()=>{const e=P(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}},[i,o]),s=r.useMemo(()=>i.getState(),[i]);R(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.get
41State()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,s]);const l=n||J;return r.createElement(l.Provider,{value:a},t)};function oe(e=J){return function(){return r.useContext(e)}}var ie=oe();function ae(e=J){const t=e===J?ie:oe(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var se=ae();function le(e=J){const t=e===J?se:ae(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var ce=le(),ue=(e,t)=>e===t;function de(e=J){const t=e===J?ie:oe(e),n=(e,n={})=>{const{equalityFn:i=ue}="function"==typeof n?{equalityFn:n}:n;const a=t(),{store:s,subscription:l,getServerState:c}=a,u=(r.useRef(!0),r.useCallback({[e.name]:t=>e(t)}[e.name],[e])),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,c||s.getState,u,i);return r.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var fe=de(),pe=O},(e,t,n)=>{"use strict";e.exports=n(3083)},(e,t,n)=>{"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 r=n(396);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!s){if(s=!0,i=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]);var p=i(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateBox:()=>f,createBox:()=>l,expand:()=>i,getBox:()=>p,getRect:()=>o,offset:()=>u,shrink:()=>a,withScroll:()=>d});var r=n(3085),o=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},i=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,n=e.margin,r=void 0===n?s:n,l=e.border,c=void 0===l?s:l,u=e.padding,d=void 0===u?s:u,f=o(i(t,r)),p=o(a(t,c)),h=o(a(p,d));return{marginBox:f,borderBox:o(t),paddingBox:p,contentBox:h,margin:r,border:c,padding:d}},c=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&(0,r.default)(!1),n},u=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,c=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return l({borderBox:c,border:i,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),u(e,t)},f=function(e,t){var n={top:c(t.marginTop),right:c(t.marginRight),bottom:c(t.marginBottom),left:c(t.marginLeft)},r={top:c(t.paddingTop),right:c(t.paddingRight),bottom:c(t.paddingBottom),left:c(t.paddingLeft)},o={top:c(t.borderTopWidth),right:c(t.borderRightWidth),bottom:c(t.borderBottomWidth),left:c(t.borderLeftWidth)};return l({borderBox:e,margin:n,padding:r,border:o})},p=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return f(t,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var r=!0,o="Invariant failed";function i(e,t){if(!e){if(r)throw new Error(o);var n="function"==typeof t?t():t,i=n?"".concat(o,": ").concat(n):o;throw new Error(i)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});const r=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame(function(){n=null,e.apply(void 0,t)}))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{BrowserClient:()=>$.BrowserClient,MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>g.MULTIPLEXED_TRANSPORT_EXTRA_KEY,OpenFeatureIntegrationHook:()=>Ae.OpenFeatureIntegrationHook,SDK_VERSION:()=>q.SDK_VERSION,SEMANTIC_ATTRIBUTE_SENTRY_OP:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_OP,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:()=>u.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Scope:()=>p.Scope,WINDOW:()=>W.WINDOW,addBreadcrumb:()=>S.addBreadcrumb,addEventProcessor:()=>d.addEventProcessor,addIntegration:()=>y.addIntegration,breadcrumbsIntegration:()=>te.breadcrumbsIntegration,browserApiErrorsIntegration:()=>ie.browserApiErrorsIntegration,browserProfilingIntegration:()=>xe.browserProfilingIntegration,browserSessionIntegration:()=>ae.browserSessionIntegration,browserTracingIntegration:()=>ye.browserTracingIntegration,buildLaunchDarklyFlagUsedHandler:()=>Pe.buildLaunchDarklyFlagUsedHandler,captureConsoleIntegration:()=>x.captureConsoleIntegration,captureEvent:()=>d.captureEvent,captureException:()=>
50d.captureException,captureFeedback:()=>M.captureFeedback,captureMessage:()=>d.captureMessage,captureSession:()=>d.captureSession,chromeStackLineParser:()=>J.chromeStackLineParser,close:()=>d.close,consoleLoggingIntegration:()=>N.consoleLoggingIntegration,contextLinesIntegration:()=>ue.contextLinesIntegration,continueTrace:()=>s.continueTrace,createConsolaReporter:()=>F.createConsolaReporter,createLangChainCallbackHandler:()=>H.createLangChainCallbackHandler,createTransport:()=>m.createTransport,createUserFeedbackEnvelope:()=>X.createUserFeedbackEnvelope,cultureContextIntegration:()=>Ce.cultureContextIntegration,dedupeIntegration:()=>O.dedupeIntegration,defaultRequestInstrumentationOptions:()=>ge.defaultRequestInstrumentationOptions,defaultStackLineParsers:()=>J.defaultStackLineParsers,defaultStackParser:()=>J.defaultStackParser,diagnoseSdkConnectivity:()=>Me.diagnoseSdkConnectivity,elementTimingIntegration:()=>ve.elementTimingIntegration,endSession:()=>d.endSession,eventFiltersIntegration:()=>k.eventFiltersIntegration,eventFromException:()=>Q.eventFromException,eventFromMessage:()=>Q.eventFromMessage,exceptionFromError:()=>Q.exceptionFromError,extraErrorDataIntegration:()=>C.extraErrorDataIntegration,featureFlagsIntegration:()=>j.featureFlagsIntegration,feedbackAsyncIntegration:()=>r.feedbackAsyncIntegration,feedbackIntegration:()=>o.feedbackSyncIntegration,feedbackSyncIntegration:()=>o.feedbackSyncIntegration,fetchStreamPerformanceIntegration:()=>Ee.fetchStreamPerformanceIntegration,flush:()=>d.flush,forceLoad:()=>Z.forceLoad,functionToStringIntegration:()=>E.functionToStringIntegration,geckoStackLineParser:()=>J.geckoStackLineParser,getActiveSpan:()=>_.getActiveSpan,getClient:()=>f.getClient,getCurrentScope:()=>f.getCurrentScope,getDefaultIntegrations:()=>Z.getDefaultIntegrations,getFeedback:()=>me.getFeedback,getGlobalScope:()=>f.getGlobalScope,getIsolationScope:()=>f.getIsolationScope,getReplay:()=>pe.getReplay,getRootSpan:()=>_.getRootSpan,getSpanDescendants:()=>_.getSpanDescendants,getSpanStatusFromHttpCode:()=>a.getSpanStatusFromHttpCode,getTraceData:()=>w.getTraceData,globalHandlersIntegration:()=>ne.globalHandlersIntegration,graphqlClientIntegration:()=>de.graphqlClientIntegration,growthbookIntegration:()=>Re.growthbookIntegration,httpClientIntegration:()=>ce.httpClientIntegration,httpContextIntegration:()=>re.httpContextIntegration,inboundFiltersIntegration:()=>k.inboundFiltersIntegration,init:()=>Z.init,instrumentAnthropicAiClient:()=>z.instrumentAnthropicAiClient,instrumentCreateReactAgent:()=>V.instrumentCreateReactAgent,instrumentGoogleGenAIClient:()=>U.instrumentGoogleGenAIClient,instrumentLangChainEmbeddings:()=>G.instrumentLangChainEmbeddings,instrumentLangGraph:()=>V.instrumentLangGraph,instrumentOpenAiClient:()=>B.instrumentOpenAiClient,instrumentOutgoingRequests:()=>ge.instrumentOutgoingRequests,instrumentSupabaseClient:()=>A.instrumentSupabaseClient,isBotUserAgent:()=>ye.isBotUserAgent,isEnabled:()=>d.isEnabled,isInitialized:()=>d.isInitialized,lastEventId:()=>d.lastEventId,launchDarklyIntegration:()=>Pe.launchDarklyIntegration,lazyLoadIntegration:()=>se.lazyLoadIntegration,linkedErrorsIntegration:()=>oe.linkedErrorsIntegration,logger:()=>D,makeBrowserOfflineTransport:()=>Te.makeBrowserOfflineTransport,makeFetchTransport:()=>Y.makeFetchTransport,makeMultiplexedTransport:()=>g.makeMultiplexedTransport,metrics:()=>L,moduleMetadataIntegration:()=>T.moduleMetadataIntegration,normalizeStringifyValue:()=>be.normalizeStringifyValue,onLoad:()=>Z.onLoad,openFeatureIntegration:()=>Ae.openFeatureIntegration,opera10StackLineParser:()=>J.opera10StackLineParser,opera11StackLineParser:()=>J.opera11StackLineParser,parameterize:()=>b.parameterize,registerSpanErrorInstrumentation:()=>i.registerSpanErrorInstrumentation,registerWebWorker:()=>De.registerWebWorker,replayCanvasIntegration:()=>he.replayCanvasIntegration,replayIntegration:()=>pe.replayIntegration,reportPageLoaded:()=>_e.reportPageLoaded,reportingObserverIntegration:()=>le.reportingObserverIntegration,rewriteFramesIntegration:()=>P.rewriteFramesIntegration,sendFeedback:()=>me.sendFeedback,setActiveSpanInBrowser:()=>we.setActiveSpanInBrowser,setContext:()=>d.setContext,setConversationId:()=>d.setConversationId,setCurrentClient:()=>h.setCurrentClient,setExtra:()=>d.setExtra,setExtras:()=>d.setExtras,setHttpStatus:()=>a.setHttpStatus,setMeasurement:()=>c.setMeasurement,setTag:()=>d.setTag,setTags:()=>d.setTags,setUser:()=>d.setUser,showReportDialog:()=>ee.showReportDialog,spanStreamingIntegration:()=>Se.spanStreamingIntegration,spanToBaggageHeader:()=>l.spanToBaggageHeader,spanToJSON:()=>_.spanToJSON,spanToTraceHeader:()=>_.spanToTraceHeader,spotlightBrowserIntegration:()=>Oe.spotlightBrowserIntegration,startBrowserTracingNavigationSpan:()=>ye.startBrowserTracingNavigationSpan,startBrowserTracingPageLoadSpan:()=>ye.startBrowserTracingPageLoadSpan,startInactiveSpan:()=>s.startInactiveSpan,startNewTrace:()=>s.startNewTrace,startSession:()=>d.startSession,startSpan:()=>s.startSpan,startSpanManual:()=>s.startSpanManual,statsigIntegration:()=>je.statsigIntegration,supabaseIntegration:()=>A.supabaseIntegration,suppressTracing:()=>s.suppressTracing,thirdPartyErrorFilterIntegration:()=>R.thirdPartyErrorFilterIntegration,uiProfiler:()=>K.uiProfiler,unleashIntegration:()=>Ie.unleashIntegration,updateSpanName:()=>_.updateSpanName,viewHierarchyIntegration:()=>fe.viewHierarchyIntegration,webVitalsIntegration:()=>ke.webVitalsIntegration,webWorkerIntegration:()=>De.webWorkerIntegration,winjsStackLineParser:()=>J.winjsStackLineParser,withActiveSpan:()=>s.withActiveSpan,withIsolationScope:()=>f.withIsolationScope,withScope:()=>f.withScope,withStreamedSpan:()=>v.withStreamedSpan,zodErrorsIntegration:()=>I.zodErrorsIntegration});var r=n(3240),o=n(3244),i=n(1458),a=n(436),s=n(426),l=n(440),c=n(449),u=n(427),d=n(400),f=n(401),p=n(408),h=n(1388),m=n(1410),g=n(3245),y=n(1389),v=n(447),b=n(3246),_=n(434),w=n(1495),S=n(642),E=n(1390),k=n(1391),T=n(3247),x=n(3249),O=n(1393),C=n(3250),P=n(3251),A=n(3253),I=n(3254),R=n(3255),j=n(3256),M=n(3242),D=n(3258),N=n(3259),L=n(3261),F=n(3262),B=n(3263),z=n(3271),U=n(3275),H=n(3279),V=n(3282),q=n(404),G=n(3285),W=n(1423),$=n(1395),Y=n(1451),K=n(3286),J=n(1450),Q=n(1421),X=n(3287),Z=n(1387),ee=n(3288),te=n(1425),ne=n(1444),re=n(1447),oe=n(1448),ie=n(1439),ae=n(1440),se=n(3243),le=n(3289),ce=n(3290),ue=n(3295),de=n(3296),fe=n(3297),pe=n(3298),he=n(3300),me=n(3241),ge=n(1494),ye=n(1457),ve=n(3301),be=n(1454),_e=n(3302),we=n(3303),Se=n(3304),Ee=n(1488),ke=n(1489),Te=n(3308),xe=n(3310),Oe=n(3314),Ce=n(1441),Pe=n(3315),Ae=n(3316),Ie=n(3317),Re=n(3318),je=n(3320),Me=n(3321),De=n(3322)},(e,t,n)=>{"use strict";n.r(t),n.d(t,{feedbackAsyncIntegration:()=>i});var r=n(3241),o=n(3243);const i=(0,r.buildFeedbackIntegration)({lazyLoadIntegration:o.lazyLoadIntegration})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildFeedbackIntegration:()=>R,feedbackModalIntegration:()=>Je,feedbackScreenshotIntegration:()=>rt,getFeedback:()=>j,sendFeedback:()=>S});var r=n(401),o=n(1389),i=n(3242),a=n(405),s=n(1403),l=n(413),c=n(1424);const u=a.GLOBAL_OBJ,d=u.document,f=u.navigator,p="Report a Bug",h="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.",v="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",b={ERROR_EMPTY_MESSAGE:h,ERROR_NO_CLIENT:m,ERROR_TIMEOUT:g,ERROR_FORBIDDEN:y,ERROR_GENERIC:v};function _(e,t){return t?.[e]??b[e]}function w(e,t){return new Error(_(e,t))}const S=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw w("ERROR_EMPTY_MESSAGE",n);const o=(0,r.getClient)();if(!o)throw w("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&(0,r.getCurrentScope)().setTags(e.tags);const a=(0,i.captureFeedback)({source:"api",url:(0,c.getLocationHref)(),...e},t);return new Promise((e,t)=>
50{const r=setTimeout(()=>{i(),t(_("ERROR_TIMEOUT",n))},3e4),i=o.on("afterSendEvent",(o,s)=>{if(o.event_id===a)return clearTimeout(r),i(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300?e(a):t(_(403===s?.statusCode?"ERROR_FORBIDDEN":"ERROR_GENERIC",n))})})},E="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function k(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function T(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}function x({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const o=d.createElement("button");if(o.type="button",o.className="widget__actor",o.ariaHidden="false",o.ariaLabel=t||e||p,o.appendChild(function(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),n=T(e("g"),{clipPath:"url(#clip0_57_80)"}),r=T(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(n).appendChild(r);const o=e("defs"),i=T(e("clipPath"),{id:"clip0_57_80"}),a=T(e("rect"),{width:"20",height:"20",fill:"white"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}()),e){const t=d.createElement("span");t.appendChild(d.createTextNode(e)),o.appendChild(t)}const i=function(e){const t=d.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}(r);return{el:o,appendToDom(){n.appendChild(i),n.appendChild(o)},removeFromDom(){o.remove(),i.remove()},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const O="rgba(88, 74, 192, 1)",C={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:O,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%)"},P={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:O,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 A(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 I({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const o=d.createElement("style");return o.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  ${A("dark"===e?{...P,...t}:{...C,...n})}\n}\n\n${"system"===e?`\n@media (prefers-color-scheme: dark) {\n  :host {\n    color-scheme: only dark;\n\n    ${A({...P,...t})}\n  }\n}`:""}\n`,r&&o.setAttribute("nonce",r),o}const R=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:i=!0,showBranding:a=!0,isEmailRequired:c=!1,isNameRequired:u=!1,showEmail:b=!0,showName:_=!0,enableScreenshot:w=!0,useSentryUser:T={email:"email",name:"username"},tags:O,styleNonce:C,scriptNonce:P,colorScheme:A="system",themeLight:R={},themeDark:j={},addScreenshotButtonLabel:M="Add a screenshot",cancelButtonLabel:D="Cancel",confirmButtonLabel:N="Confirm",emailLabel:L="Email",emailPlaceholder:F="[email protected]",formTitle:B="Report a Bug",isRequiredLabel:z="(required)",messageLabel:U="Description",messagePlaceholder:H="What's the bug? What did you expect?",nameLabel:V="Name",namePlaceholder:q="Your Name",removeScreenshotButtonLabel:G="Remove screenshot",submitButtonLabel:W="Send Bug Report",successMessageText:$="Thank y
50ou for your report!",triggerLabel:Y=p,triggerAriaLabel:K="",highlightToolText:J="Highlight",hideToolText:Q="Hide",removeHighlightText:X="Remove",errorEmptyMessageText:Z=h,errorNoClientText:ee=m,errorTimeoutText:te=g,errorForbiddenText:ne=y,errorGenericText:re=v,onFormOpen:oe,onFormClose:ie,onSubmitSuccess:ae,onSubmitError:se,onFormSubmitted:le}={})=>{const ce={id:r,autoInject:i,showBranding:a,isEmailRequired:c,isNameRequired:u,showEmail:b,showName:_,enableScreenshot:w,useSentryUser:T,tags:O,styleNonce:C,scriptNonce:P,colorScheme:A,themeDark:j,themeLight:R,triggerLabel:Y,triggerAriaLabel:K,cancelButtonLabel:D,submitButtonLabel:W,confirmButtonLabel:N,formTitle:B,emailLabel:L,emailPlaceholder:F,messageLabel:U,messagePlaceholder:H,nameLabel:V,namePlaceholder:q,successMessageText:$,isRequiredLabel:z,addScreenshotButtonLabel:M,removeScreenshotButtonLabel:G,highlightToolText:J,hideToolText:Q,removeHighlightText:X,errorEmptyMessageText:Z,errorNoClientText:ee,errorTimeoutText:te,errorForbiddenText:ne,errorGenericText:re,onFormClose:ie,onFormOpen:oe,onSubmitError:se,onSubmitSuccess:ae,onFormSubmitted:le};let ue=null,de=null,fe=[];const pe=e=>{if(!ue){const t=d.createElement("div");t.id=String(e.id),d.body.appendChild(t),ue=t.attachShadow({mode:"open"}),de=I(e),ue.appendChild(de)}return ue},he=async r=>{const i=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(f.userAgent)||/Macintosh/i.test(f.userAgent)&&f.maxTouchPoints&&f.maxTouchPoints>1||!isSecureContext);let a,s;try{a=(t?t():await e("feedbackModalIntegration",P))(),(0,o.addIntegration)(a)}catch{throw E&&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=i?n?n():await e("feedbackScreenshotIntegration",P):void 0;t&&(s=t(),(0,o.addIntegration)(s))}catch{E&&l.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const c={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},u=a.createDialog({options:{...r,onFormClose:()=>{u?.close(),r.onFormClose?.()},onFormSubmitted:()=>{u?.close(),r.onFormSubmitted?.()}},screenshotIntegration:s,sendFeedback:(e,t)=>S(e,{includeReplay:!0,...t,errorMessages:c}),shadow:pe(r)});return u},me=(e,t={})=>{const n=k(ce,t),r="string"==typeof e?d.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw E&&l.debug.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let o=null;const i=async()=>{o||(o=await he({...n,onFormSubmitted:()=>{o?.removeFromDom(),n.onFormSubmitted?.()}})),o.appendToDom(),o.open()};r.addEventListener("click",i);const a=()=>{fe=fe.filter(e=>e!==a),o?.removeFromDom(),o=null,r.removeEventListener("click",i)};return fe.push(a),a},ge=(e={})=>{const t=k(ce,e),n=pe(t),r=x({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:C});return me(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){(0,s.isBrowser)()&&ce.autoInject&&("loading"===d.readyState?d.addEventListener("DOMContentLoaded",()=>ge().appendToDom()):ge().appendToDom())},attachTo:me,createWidget(e={}){const t=ge(k(ce,e));return t.appendToDom(),t},createForm:async(e={})=>he(k(ce,e)),setTheme(e){if(ce.colorScheme=e,ue){const e=I(ce);de?ue.replaceChild(e,de):ue.prepend(e),de=e}},remove(){ue&&(ue.parentElement?.remove(),ue=null,de=null),fe.forEach(e=>e()),fe=[]}}};function j(){const e=(0,r.getClient)();return e?.getIntegrationByName("Feedback")}var M,D,N,L,F,B,z,U={},H=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,q=Array.isArray;function G(e,t){for(var n in t)e[n]=t[n];return e}function W(e){var t=e.parentNode;t&&t.removeChild(e)}function $(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?M.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return Y(e,a,r,o,null)}function Y(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++N,__i:-1,__u:0};return null==o&&null!=D.vnode&&D.vnode(i),i}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 n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Q(e):null}
vendor: 2,476 bytes, line 50
50function X(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=G({},o)).__v=o.__v+1,D.vnode&&D.vnode(r),ce(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,i??Q(o),!!(32&o.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&Z(r),r}function Z(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Z(e)}}function ee(e){(!e.__d&&(e.__d=!0)&&L.push(e)&&!te.__r++||F!==D.debounceRendering)&&((F=D.debounceRendering)||B)(te)}function te(){var e,t,n,r=[],o=[];for(L.sort(z);e=L.shift();)e.__d&&(n=L.length,t=X(e,r,o)||t,0===n||L.length>n?(ue(r,t,o),o.length=r.length=0,t=void 0,L.sort(z)):t&&D.__c&&D.__c(t,H));t&&ue(r,t,o),te.__r=0}function ne(e,t,n,r,o,i,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||H,y=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?Y(null,o,null,null,o):q(o)?Y(K,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?Y(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=oe(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=Q(i)),pe(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Q(i)),pe(i,i))}(n,t,g),l=n.__d,d=0;d<y;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?U:g[p.__i]||U,p.__i=d,ce(e,p,f,o,i,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&fe(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=re(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function re(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=re(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function oe(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>
vendor: 5,062 bytes, line 50
50=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function ie(e,t,n){"-"===t[0]?e.setProperty(t,n??""):e[t]=null==n?"":"number"!=typeof n||V.test(t)?n:n+"px"}function ae(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ie(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ie(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=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+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?le:se,i)):e.removeEventListener(t,i?le:se,i);else{if(o)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]=n??"";break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}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(D.event?D.event(e):e)}}function le(e){if(this.l)return this.l[e.type+!0](D.event?D.event(e):e)}function ce(e,t,n,r,o,i,a,s,l,c){var u,d,f,p,h,m,g,y,v,b,_,w,S,E,k,T=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(u=D.__b)&&u(t);e:if("function"==typeof T)try{if(y=t.props,v=(u=T.contextType)&&r[u.__c],b=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?t.__c=d=new T(y,b):(t.__c=d=new J(y,b),d.constructor=T,d.render=he),v&&v.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=G({},d.__s)),G(d.__s,T.getDerivedStateFromProps(y,d.__s))),p=d.props,h=d.state,d.__v=t,f)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&y!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,h,m)})}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,w=D.__r,S=0,"prototype"in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++S<25);d.state=d.__s,null!=d.getChildContext&&(r=G(G({},r),d.getChildContext())),f||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(p,h)),ne(e,q(k=null!=u&&u.type===K&&null==u.key?u.props.children:u)?k:[k],t,n,r,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),D.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=de(n.__e,t,n,r,o,i,a,l,c);(u=D.diffed)&&u(t)}function ue(e,t,n){for(var r=0;r<n.length;r++)fe(n[r],n[++r],n[++r]);D.__c&&D.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){D.__e(e,t.__v)}})}function de(e,t,n,r,o,i,a,s,l){var c,u,d,f,p,h,m,g=n.props,y=t.props,v=t.type;if("svg"===v&&(o=!0),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!v&&(v?p.localName===v:3===p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),i=null,s=!1}if(null===v)g===y||s&&e.data===y||(e.data=y);else{if(i=i&&M.call(e.childNodes),g=n.props||U,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)p=g[c],"children"==c||("dangerouslySetInnerHTML"==c?d=p:"key"===c||c in y||ae(e,c,null,p,o));for(c in y)p=y[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||ae(e,c,p,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),ne(e,q(f)?f:[f],t,n,r,o&&"foreignObject"!==v,i,a,i?i[0]:n.__k&&Q(n,0),s,l),null!=i)for(c=i.length;c--;)null!=i[c]&&W(i[c]);s||(c="value",void 0!==h&&(h!==e[c]||"progress"===v&&!h||"option"===v&&h!==g[c])&&ae(e,c,h,g[c],!1),c="checked",void 0!==m&&m!==e[c]&&ae(e,c,m,g[c],!1))}return e}function fe(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){D.__e(e,n)}}function pe(e,t,n){var r,o;
vendor: 1,084 bytes, line 50
50if(D.unmount&&D.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||fe(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){D.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&pe(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||W(e.__e),e.__=e.__e=e.__d=void 0}function he(e,t,n){return this.constructor(e,n)}M=H.slice,D={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},N=0,J.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=G({},this.state),"function"==typeof e&&(e=e(G({},n),this.props)),e&&G(n,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,L=[],B="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 5,218 bytes, line 50
50ise.resolve()):setTimeout,z=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0;var me,ge,ye,ve,be=0,_e=[],we=[],Se=D,Ee=Se.__b,ke=Se.__r,Te=Se.diffed,xe=Se.__c,Oe=Se.unmount,Ce=Se.__;function Pe(e,t){Se.__h&&Se.__h(ge,e,be||t),be=0;var n=ge.__H||(ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:we}),n.__[e]}function Ae(e){return be=1,Ie(Ue,e)}function Ie(e,t,n){var r=Pe(me++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=ge,!ge.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return!!e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var a=!1;return o.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};ge.u=!0;var i=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},ge.shouldComponentUpdate=o}return r.__N||r.__}function Re(e,t){var n=Pe(me++,4);!Se.__s&&ze(n.__H,t)&&(n.__=e,n.i=t,ge.__h.push(n))}function je(e,t){var n=Pe(me++,7);return ze(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Me(e,t){return be=8,je(function(){return e},t)}function De(){for(var e;e=_e.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fe),e.__H.__h.forEach(Be),e.__H.__h=[]}catch(t){e.__H.__h=[],Se.__e(t,e.__v)}}Se.__b=function(e){ge=null,Ee&&Ee(e)},Se.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ce&&Ce(e,t)},Se.__r=function(e){ke&&ke(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=we,e.__N=e.i=void 0})):(t.__h.forEach(Fe),t.__h.forEach(Be),t.__h=[],me=0)),ye=ge},Se.diffed=function(e){Te&&Te(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==_e.push(t)&&ve===Se.requestAnimationFrame||((ve=Se.requestAnimationFrame)||Le)(De)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==we&&(e.__=e.__V),e.i=void 0,e.__V=we})),ye=ge=null},Se.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Fe),e.__h=e.__h.filter(function(e){return!e.__||Be(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],Se.__e(n,e.__v)}}),xe&&xe(e,t)},Se.unmount=function(e){Oe&&Oe(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Fe(e)}catch(e){t=e}}),n.__H=void 0,t&&Se.__e(t,n.__v))};var Ne="function"==typeof requestAnimationFrame;function Le(e){var t,n=function(){clearTimeout(r),Ne&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ne&&(t=requestAnimationFrame(n))}function Fe(e){var t=ge,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ge=t}function Be(e){var t=ge;e.__c=e.__(),ge=t}function ze(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Ue(e,t){return"function"==typeof t?t(e):t}const He=Object.defineProperty({__proto__:null,useCallback:Me,useContext:function(e){var t=ge.context[e.__c],n=Pe(me++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(ge)),t.props.value):e.__},useDebugValue:function(e,t){Se.useDebugValue&&Se.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=Pe(me++,3);!Se.__s&&ze(n.__H,t)&&(n.__=e,n.i=t,ge.__H.__h.push(n))},useErrorBoundary:function(e){var t=Pe(me++,10),n=Ae();return t.__=e,ge.componentDidCatch||(ge.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=Pe(me++,11);if(!e.__){for(var t=ge.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){be=6,Re(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:Re,useMemo:je,useReducer:Ie,useRef:function(e){return be=5,je(function(){return{current:e}},[])},useState:Ae},Symbol.toStringTag,{value:"Module"});function Ve(){const e=e=>d.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=T(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(n),t}function qe({options:e}){const t=je(()=>({__html:Ve().outerHTML}),[]);return $("h2",{class:"dialog__header"},$("span",{class:"dialog__title"},e.formTitle),e.showBranding?$("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function Ge(e,t){const n=e.get(t);return"string"==typeof n?n.trim():""}function We({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:a,showEmail
50:s,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:f,removeScreenshotButtonLabel:p,cancelButtonLabel:h,emailLabel:m,emailPlaceholder:g,isEmailRequired:y,isNameRequired:v,messageLabel:b,messagePlaceholder:_,nameLabel:w,namePlaceholder:S,submitButtonLabel:k,isRequiredLabel:T}=e,[x,O]=Ae(!1),[C,P]=Ae(null),[A,I]=Ae(!1),R=u?.input,[j,M]=Ae(null),D=Me(e=>{M(e),I(!1)},[]),N=Me(e=>{const t=function(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}(e,{emailLabel:m,isEmailRequired:y,isNameRequired:v,messageLabel:b,nameLabel:w});return t.length>0?P(`Please enter in the following required fields: ${t.join(", ")}`):P(null),0===t.length},[m,y,v,b,w]),L=Me(async e=>{O(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;const t=new FormData(e.target),n=await(u&&A?u.value():void 0),r={name:Ge(t,"name"),email:Ge(t,"email"),message:Ge(t,"message"),attachments:n?[n]:void 0};if(!N(r))return;try{const e=await o({name:r.name,email:r.email,message:r.message,source:"widget",tags:d},{attachments:r.attachments});i(r,e)}catch(e){E&&l.debug.error(e);const t=e instanceof Error?e:new Error(String(e));P(t.message),a(t)}}finally{O(!1)}},[u&&A,i,a]);return $("form",{class:"form",onSubmit:L},R&&A?$(R,{onError:D}):null,$("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:x},$("div",{class:"form__top"},C?$("div",{class:"form__error-container"}
50,C):null,c?$("label",{for:"name",class:"form__label"},$($e,{label:w,isRequiredLabel:T,isRequired:v}),$("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:v,type:"text"})):$("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?$("label",{for:"email",class:"form__label"},$($e,{label:m,isRequiredLabel:T,isRequired:y}),$("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:y,type:"email"})):$("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),$("label",{for:"message",class:"form__label"},$($e,{label:b,isRequiredLabel:T,isRequired:!0}),$("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),R?$("label",{for:"screenshot",class:"form__label"},$("button",{class:"btn btn--default",disabled:x,type:"button",onClick:()=>{M(null),I(e=>!e)}},A?p:f),j?$("div",{class:"form__error-container"},j.message):null):null),$("div",{class:"btn-group"},$("button",{class:"btn btn--primary",disabled:x,type:"submit"},k),$("button",{class:"btn btn--default",disabled:x,type:"button",onClick:r},h))))}function $e({label:e,isRequired:t,isRequiredLabel:n}){return $("span",{class:"form__label__text"},e,t&&$("span",{class:"form__label__text--required"},n))}function Ye(){const e=e=>u.document.createElementNS("http://www.w3.org/2000/svg",e),t=T(e("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=T(e("g"),{clipPath:"url(#clip0_57_156)"}),r=T(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"}),o=T(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 10.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(n).append(o,r);const i=e("defs"),a=T(e("clipPath"),{id:"clip0_57_156"}),s=T(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"});return a.appendChild(s),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(s),t}function Ke({open:e,onFormSubmitted:t,...n}){const r=n.options,o=je(()=>({__html:Ye().outerHTML}),[]),[i,a]=Ae(null),s=Me(()=>{i&&(clearTimeout(i),a(null)),t()},[i]),l=Me((e,r)=>{n.onSubmitSuccess(e,r),a(setTimeout(()=>{t(),a(null)},5e3))},[t]);return $(K,null,i?$("div",{class:"success__position",onClick:s},$("div",{class:"success__content"},r.successMessageText,$("span",{class:"success__icon",dangerouslySetInnerHTML:o}))):$("dialog",{class:"dialog",onClick:r.onFormClose,open:e},$("div",{class:"dialog__position"},$("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},$(qe,{options:r}),$(We,{...n,onSubmitSuccess:l})))))}const Je=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:o})=>{const i=o,a=e.useSentryUser,s=function(){const e=(0,r.getCurrentScope)().getUser(),t=(0,r.getIsolationScope)().getUser(),n=(0,r.getGlobalScope)().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}(),l=d.createElement("div"),c=function(e){const t=d.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 f={get el(){return l},appendToDom(){i.contains(c)||i.contains(l)||(i.appendChild(c),i.appendChild(l))},removeFromDom(){l.remove(),c.remove(),d.body.style.overflow=u},open(){h(!0),e.onFormOpen?.(),(0,r.getClient)()?.emit("openFeedbackWidget"),u=d.body.style.overflow,d.body.style.overflow="hidden"},close(){h(!1),d.body.style.overflow=u}},p=t?.createInput({h:$,hooks:He,dialog:f,options:e}),h=t=>{!function(e,t){var n,r,o;D.__&&D.__(e,t),n=t.__k,r=[],o=[],ce(t,e=t.__k=$(K,null,[e]),n||U,U,void 0!==t.ownerSVGElement,n?null:t.firstChild?M.call(t.childNodes):null,r,n?n.__e:t.firstChild,!1,o),e.__d=void 0,ue(r,e,o)}($(Ke,{options:e,screenshotInput:p,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&s?.[a.name]||""),defaultEmail:String(a&&s?.[a.email]||""),onFormClose:()=>{h(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{h(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),l)};return f}});function Qe(e){const t=d.createElement("style"),n="#1A141F",r="#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: ${n};\n  background-image: repeating-linear-gradient(\n      -145deg,\n      transparent,\n      transparent 8px,\n      ${n} 8px,\n      ${n} 11px\n    ),\n    repeating-linear-gradient(\n      -45deg,\n      transparent,\n      transparent 15px,\n      ${r} 15px,\n      ${r} 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:n,onAfterScreenshot:r,onError:o}){const i=function(){const[t,n]=e.useState(u.devicePixelRatio??1);return e.useEffect(()=>{const e=()=>{n(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 f.mediaDevices.getDisplayMedia({video:{width:u.innerWidth*i,height:u.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),o=d.createElement("video");await new Promise((t,r)=>{o.srcObject=e,o.onloadedmetadata=()=>{n(o,i),e.getTracks().forEach(e=>e.stop()),t()},o.play().catch(r)}),r()})().catch(o)},[])}}function Ze(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function et(e,t){Ze(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function tt(e,t,n){Ze(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEac
50h(e=>{!function(e,t,n){switch(e.type){case"highlight":t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,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,r,t)})})}function nt({h:e,hooks:t,outputBuffer:n,dialog:r,options:o}){const i=Xe({hooks:t}),a=function({h:e}){return function({action:t,setAction:n,options:r}){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:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:"editor__tool "+("hide"===t?"editor__tool--active":""),onClick:()=>{n("hide"===t?"":"hide")}},r.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(o.styleNonce).innerText},c=r.el.style,f=({screenshot:r})=>{const[i,c]=t.useState("highlight"),[f,p]=t.useState([]),h=t.useRef(null),m=t.useRef(null),g=t.useRef(null),y=t.useRef(null),[v,b]=t.useState(1),_=t.useMemo(()=>{const e=d.getElementById(o.id);if(!e)return"white";const t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[o.id]);t.useLayoutEffect(()=>{const e=()=>{const t=h.current;t&&(Ze(r.canvas,{alpha:!1},e=>{const n=Math.min(t.clientWidth/e.width,t.clientHeight/e.height);b(n)}),0!==t.clientHeight&&0!==t.clientWidth||setTimeout(e,0))};return e(),u.addEventListener("resize",e),()=>{u.removeEventListener("resize",e)}},[r]);const w=t.useCallback((e,t)=>{Ze(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{w(m.current,r.dpi),et(m.current,r.canvas)},[r]),t.useEffect(()=>{w(g.current,r.dpi),Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,f)},[f,_]),t.useEffect(()=>{w(n,r.dpi),et(n,r.canvas),Ze(d.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,tt(e,_,f),et(n,e)})},[f,r,_]);const S=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),p(t=>{const n=[...t];return n.splice(e,1),n})},[]),E={width:r.canvas.width*v+"px",height:r.canvas.height*v+"px"},k=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:h},e("canvas",{ref:m,id:"background",style:E}),e("canvas",{ref:g,id:"foreground",style:E}),e("div",{ref:y,onMouseDown:e=>{if(!i||!y.current)return;const t=y.current.getBoundingClientRect(),n={type:i,x:e.offsetX/v,y:e.offsetY/v},r=(e,n)=>{const r=(n.clientX-t.x)/v,o=(n.clientY-t.y)/v;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,o),w:Math.abs(r-e.x),h:Math.abs(o-e.y)}},o=e=>{Ze(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tt(g.current,_,[...f,r(n,e)])},a=e=>{const t=r(n,e);t.w*v>=1&&t.h*v>=1&&p(e=>[...e,t]),d.removeEventListener("mousemove",o),d.removeEventListener("mouseup",a)};d.addEventListener("mousemove",o),d.addEventListener("mouseup",a)},style:E},f.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:t.y*v+"px",left:t.x*v+"px",width:t.w*v+"px",height:t.h*v+"px"}},e("button",{"aria-label":o.removeHighlightText,onClick:S(n),onMouseDown:k,onMouseUp:k,type:"button"},e(s,null))))))),e(a,{options:o,action:i,setAction:c}))};return function({onError:r}){const[o,a]=t.useState();return i({onBeforeScreenshot:t.useCallback(()=>{c.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{Ze(d.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),a({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{c.display="block"},[]),onError:t.useCallback(e=>{c.display="block",r(e)},[])}),o?e(f,{screenshot:o}):e("div",null)}}const rt=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const o=d.createElement("canvas");return{input:nt({h:e,hooks:t,outputBuffer:o,dialog:n,options:r}),value:async()=>{const e=await new Promise(e=>
50{o.toBlob(e,"image/png")});if(e){return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{captureFeedback:()=>o});var r=n(401);function o(e,t={},n=(0,r.getCurrentScope)()){const{message:o,name:i,email:a,url:s,source:l,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:a,name:i,message:o,url:s,source:l,associated_event_id:c}},type:"feedback",level:"info",tags:u},f=n?.getClient()||(0,r.getClient)();f&&f.emit("beforeSendFeedback",d,t);return n.captureEvent(d,t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{lazyLoadIntegration:()=>c});var r=n(401),o=n(404),i=n(1423);const a=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],s={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};const l=i.WINDOW;async function c(e,t){const n=a.includes(e)?function(e){return s[e]||e.replace("Integration","").toLowerCase()}(e):void 0,c=l.Sentry=l.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const u=c[e];if("function"==typeof u&&!("_isShim"in u))return u;const d=function(e){const t=(0,r.getClient)(),n=t?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${o.SDK_VERSION}/${e}.min.js`,n).toString()}(n),f=i.WINDOW.document.createElement("script");f.src=d,f.crossOrigin="anonymous",f.referrerPolicy="strict-origin",t&&f.setAttribute("nonce",t);const p=new Promise((e,t)=>{f.addEventListener("load",()=>e()),f.addEventListener("error",t)}),h=i.WINDOW.document.currentScript,m=i.WINDOW.document.body||i.WINDOW.document.head||h?.parentElement;if(!m)throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);m.appendChild(f);try{await p}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,n)=>{"use strict";n.r(t),n.d(t,{feedbackSyncIntegration:()=>o});var r=n(3241);const o=(0,r.buildFeedbackIntegration)({getModalIntegration:()=>r.feedbackModalIntegration,getScreenshotIntegration:()=>r.feedbackScreenshotIntegration})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MULTIPLEXED_TRANSPORT_EXTRA_KEY:()=>a,eventFromEnvelope:()=>s,makeMultiplexedTransport:()=>l});var r=n(1397),o=n(439),i=n(448);const a="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s(e,t){let n;return(0,i.forEachEnvelopeItem)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function l(e,t){return n=>{const l=e(n),c=new Map,u=t||(e=>{const t=e.getEvent();return t?.extra?.[a]&&Array.isArray(t.extra[a])?t.extra[a]:[]});function d(t,i){const a=i?`${t}:${i}`:t;let l=c.get(a);if(!l){const u=(0,o.dsnFromString)(t);if(!u)return;const d=(0,r.getEnvelopeEndpointWithUrlEncodedAuth)(u,n.tunnel);l=i?function(e,t){return n=>{const r=e(n);return{...r,send:async e=>{const n=s(e,["event","transaction","profile","replay_event"]);return n&&(n.release=t),r.send(e)}}}}(e,i)({...n,url:d}):e({...n,url:d}),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?d(e,void 0):d(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",l]];return(await Promise.all(n.map(([t,n])=>n.send(function(e,t){return(0,i.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,n)=>{"use strict";function r(e,...t){const n=new String(String.raw(e,...t));
50return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}n.r(t),n.d(t,{fmt:()=>o,parameterize:()=>r});const o=r},(e,t,n)=>{"use strict";n.r(t),n.d(t,{moduleMetadataIntegration:()=>a});var r=n(1389),o=n(3248),i=n(448);const a=(0,r.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,i.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,o.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;(0,o.addMetadataToStackFrames)(n,t)})}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addMetadataToStackFrames:()=>l,getFilenameToMetadataMap:()=>a,getMetadataForUrl:()=>s,stripMetadataFromStackFrames:()=>c});var r=n(405);const o=new Map,i=new Set;function a(e){if(!r.GLOBAL_OBJ._sentryModuleMetadata)return{};const t={};for(const n of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const o=r.GLOBAL_OBJ._sentryModuleMetadata[n],i=e(n);for(const e of i.reverse())if(e.filename){t[e.filename]=o;break}}return t}function s(e,t){return function(e){if(r.GLOBAL_OBJ._sentryModuleMetadata)for(const t of Object.keys(r.GLOBAL_OBJ._sentryModuleMetadata)){const n=r.GLOBAL_OBJ._sentryModuleMetadata[t];if(i.has(t))continue;i.add(t);const a=e(t);for(const e of a.reverse())if(e.filename){o.set(e.filename,n);break}}}(e),o.get(t)}function l(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;const n=s(e,t.filename);n&&(t.module_metadata=n)})})}function c(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{captureConsoleIntegration:()=>f});var r=n(401),o=n(400),i=n(1427),a=n(1389),s=n(413),l=n(411),c=n(1431),u=n(416),d=n(405);const f=(0,a.defineIntegration)((e={})=>{const t=e.levels||s.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in d.GLOBAL_OBJ&&(0,i.addConsoleInstrumentationHandler)(({args:i,level:a})=>{(0,r.getClient)()===e&&t.includes(a)&&function(e,t,n){const i=(0,c.severityLevelFromString)(t),a=new Error,s={level:(0,c.severityLevelFromString)(t),extra:{arguments:e}};(0,r.withScope)(r=>{if(r.addEventProcessor(e=>(e.logger="console",(0,l.addExceptionMechanism)(e,{handled:n,type:"auto.core.capture_console"}),e)),"assert"===t){if(!e[0]){const t=`Assertion failed: ${(0,u.safeJoin)(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),r.captureMessage(t,i,{captureContext:s,syntheticException:a})}return}const c=e.find(e=>e instanceof Error);if(c)return void(0,o.captureException)(c,s);const d=(0,u.safeJoin)(e," ");r.captureMessage(d,i,{captureContext:s,syntheticException:a})})}(i,a,n)})}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{extraErrorDataIntegration:()=>u});var r=n(409),o=n(1389),i=n(413),a=n(414),s=n(417),l=n(418),c=n(416);const u=(0,o.defineIntegration)((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,o){const{maxValueLength:i}=o.getOptions();return function(e,t={},n,r,o){if(!t.originalException||!(0,a.isError)(t.originalException))return e;const i=t.originalException.name||t.originalException.constructor.name,c=d(t.originalException,r,o);if(c){const t={...e.contexts},r=(0,s.normalize)(c,n);return(0,a.isPlainObject)(r)&&((0,l.setSkipNormalizationHint)(r),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}});function d(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(const t of Object.keys(e)){if(-1!==r.indexOf(t))continue;const i=e[t];o[t]=(0,a.isError)(i)||"string"==typeof i?n?(0,c.truncate)(`${i}`,n):`${i}`:i}if(t&&void 0!==e.cause)if((0,a.isError)(e.cause)){const t=e.cause.name||e.cause.constructor.name;o.cause={[t]:d(e.cause,!1,n)}}else o.cause=e.cause;if("function"==typeof e.toJSON){const t=e.toJSON();for(const e of Object.keys(t)){const n=t[e];o[e]=(0,a.isError)(n)?n.toString():n}}return o}catch(e){r.DEBUG_BUILD&&i.debug.error("Unable to extract extra data from the Error object:",e)}return null}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{generateIteratee:()=>s,rewriteFramesIntegration:()=>a});var r=n(1389),o=n(3252),i=n(405);const a=(0,r.defineIntegration)((e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in i.GLOBAL_OBJ&&!!i.GLOBAL_OBJ.window,o=e.iteratee||s({isBrowser:r,root:t,prefix:n});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=>o(e))})}};var t})}}}catch{return e}}(t)),t}}});function s({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),a=/^\//.test(r.filename);if(e){if(t){const e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(i||a){const e=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?(0,o.relative)(t,e):(0,o.basename)(e);r.filename=`${n}${a}`}return r}}},(e,t,n)=>{"use strict";function r(e,t){let n=0;for(let t=e.length-1;t>=0;t--){const r=e[t];"."===r?e.splice(t,1):".."===r?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}n.r(t),n.d(t,{basename:()=>p,dirname:()=>f,isAbsolute:()=>u,join:()=>d,normalizePath:()=>c,relative:()=>l,resolve:()=>a});const o=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function i(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=o.exec(t);return n?n.slice(1):[]}function a(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=r(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function s(e){let t=0;for(;t<e.length&&""===e[t];t++);let n=e.length-1;for(;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}function l(e,t){e=a(e).slice(1),t=a(t).slice(1);const n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let e=0;e<o;e++)if(n[e]!==r[e]){i=e;break}let l=[];for(let e=i;e<n.length;e++)l.push("..");return l=l.concat(r.slice(i)),l.join("/")}function c(e){const t=u(e),n="/"===e.slice(-1);
50let o=r(e.split("/").filter(e=>!!e),!t).join("/");return o||t||(o="."),o&&n&&(o+="/"),(t?"/":"")+o}function u(e){return"/"===e.charAt(0)}function d(...e){return c(e.join("/"))}function f(e){const t=i(e),n=t[0]||"";let r=t[1];return n||r?(r&&(r=r.slice(0,r.length-1)),n+r):"."}function p(e,t){let n=i(e)[2]||"";return t&&n.slice(-1*t.length)===t&&(n=n.slice(0,n.length-t.length)),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DB_OPERATIONS_TO_INSTRUMENT:()=>y,FILTER_MAPPINGS:()=>g,extractOperation:()=>w,instrumentSupabaseClient:()=>x,supabaseIntegration:()=>O,translateFiltersIntoMethods:()=>S});var r=n(642),o=n(401),i=n(409),a=n(400),s=n(1389),l=n(427),c=n(413),u=n(411),d=n(414),f=n(436),p=n(426);const h=["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 v(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function b(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 w(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function S(e,t){if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let o;return o=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&g[n]||"filter",`${o}(${e}, ${r.join(".")})`}function E(e,t=!1){return new Proxy(e,{apply:(n,r,o)=>(0,p.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(n,r,o).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:f.SPAN_STATUS_ERROR}),(0,a.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:f.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:f.SPAN_STATUS_ERROR}),e.end(),(0,a.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...o))})}function k(e,t){b(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,n,r){const o=Reflect.apply(e,n,r);return function(e,t){for(const n of y)b(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,o){const a=Reflect.apply(e,r,o),s=a.constructor;return i.DEBUG_BUILD&&c.debug.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),T(s,t),a}}),v(e.prototype[n]))}(o.constructor,t),o}}),v(e.prototype.from))}function T(e,t){b(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,i){const s=y,c=n,h=w(c.method,c.headers);if(!s.includes(h))return Reflect.apply(e,n,i);if(!c?.url?.pathname||"string"!=typeof c.url.pathname)return Reflect.apply(e,n,i);const m=c.url.pathname.split("/"),g=m.length>0?m[m.length-1]:"",v=[];for(const[e,t]of c.url.searchParams.entries())v.push(S(e,t));const b=Object.create(null);if((0,d.isPlainObject)(c.body))for(const[e,t]of Object.entries(c.body))b[e]=t;const E=(0,o.getClient)(),k=t.sendOperationData??!0===E?.getDataCollectionOptions().userInfo,T=_(c.body,b),x="select"===h?"":`${h}${O=c.body,C=b,void 0!==_(O,C)?"(...) ":""}`;var O,C;const P=k?v.join(" "):v.length>
500?"[redacted]":"",A=[x.trimEnd(),P].filter(Boolean).join(" "),I=A?`${A} from(${g})`:`from(${g})`,R={"db.table":g,"db.schema":c.schema,"db.url":c.url.origin,"db.sdk":c.headers["X-Client-Info"],"db.system":"postgresql","db.operation":h,[l.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[l.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return v.length&&k&&(R["db.query"]=v),void 0!==T&&k&&(R["db.body"]=T),(0,p.startSpan)({name:I,attributes:R},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,f.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 n={};v.length&&k&&(n.query=v),void 0!==T&&k&&(n.body=T),(0,a.captureException)(t,e=>(e.addEventProcessor(e=>((0,u.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}const n={type:"supabase",category:`db.${h}`,message:I},o={};return v.length&&k&&(o.query=v),void 0!==T&&k&&(o.body=T),Object.keys(o).length&&(n.data=o),(0,r.addBreadcrumb)(n),e},e=>{throw t&&((0,f.setHttpStatus)(t,500),t.end()),e}).then(...i))}}),v(e.prototype.then))}const x=(e,t={})=>{if(!e)return void(i.DEBUG_BUILD&&c.debug.warn("Supabase integration was not installed because no Supabase client was provided."));k(e.constructor===Function?e:e.constructor,t),function(e){const t=e.auth;if(t&&!b(e.auth)){for(const n of h){const r=t[n];r&&"function"==typeof e.auth[n]&&(e.auth[n]=E(r))}for(const n of m){const r=t.admin[n];r&&"function"==typeof e.auth.admin[n]&&(e.auth.admin[n]=E(r,!0))}v(e.auth)}}(e)},O=(0,s.defineIntegration)(e=>((e,t)=>({setupOnce(){x(e,t)},name:"Supabase"}))(e.supabaseClient,{sendOperationData:e.sendOperationData}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyZodErrorsToEvent:()=>c,flattenIssue:()=>a,flattenIssuePath:()=>s,formatIssueMessage:()=>l,zodErrorsIntegration:()=>u});var r=n(1389),o=n(414),i=n(416);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 n of e.issues){const e=s(n.path);e.length>0&&t.add(e)}const n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){const n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,i.truncate)(n.join(", "),100)}`}function c(e,t=!1,n,r){if(!(n.exception?.values&&r.originalException&&(i=r.originalException,(0,o.isError)(i)&&"ZodError"===i.name&&Array.isArray(i.issues))&&0!==r.originalException.issues.length))return n;var i;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(a);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:l(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(e){return{...n,extra:{...n.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,r.defineIntegration)((e={})=>{const t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>c(t,e.saveZodIssuesAsAttachment,n,r)}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{thirdPartyErrorFilterIntegration:()=>l});var r=n(1389),o=n(3248),i=n(448),a=n(419),s=n(405);const l=(0,r.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,i.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){const t=Array.isArray(e)?e[1]:void 0;t&&((0,o.stripMetadataFromStackFrames)(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;(0,o.addMetadataToStackFrames)(n,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(s.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){const n=!!e.ignoreSentryInternalFrames&&(!0===t.sdkProcessingMetadata?.insideSentryWrapped&&1===t.exception?.values?.length),r=function(e,t,n){const r=(0,a.getFramesFromEvent)(e);if(!r)return;return r.filter((e,r)=>!!e.filename&&((null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){if(0!==t)return!1;if(n&&function(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}(e))return!0;
50if("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(d))return!1;if(e.pre_context){const t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(u))return!0}return!1}(e,r,!!n)))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(c)).map(e=>e.slice(c.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r){if(r["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",d="fn.apply(this, wrappedArguments)"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{featureFlagsIntegration:()=>i});var r=n(1389),o=n(3257);const i=(0,r.defineIntegration)(()=>
50({name:"FeatureFlags",processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e),addFeatureFlag(e,t){(0,o._INTERNAL_insertFlagToScope)(e,t),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e,t)}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_INTERNAL_FLAG_BUFFER_SIZE:()=>s,_INTERNAL_MAX_FLAGS_PER_SPAN:()=>l,_INTERNAL_addFeatureFlagToActiveSpan:()=>p,_INTERNAL_copyFlagsFromScopeToEvent:()=>u,_INTERNAL_insertFlagToScope:()=>d,_INTERNAL_insertToFlagBuffer:()=>f});var r=n(401),o=n(409),i=n(413),a=n(434);const s=100,l=10,c="flag.evaluation.";function u(e){if(e.type)return e;const t=(0,r.getCurrentScope)().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function d(e,t,n=s){const o=(0,r.getCurrentScope)().getScopeData().contexts;o.flags||(o.flags={values:[]});f(o.flags.values,e,t,n)}function f(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r)return void(o.DEBUG_BUILD&&i.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`));const a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function p(e,t,n=l){if("boolean"!=typeof t)return;const r=(0,a.getActiveSpan)();if(!r)return;const o=(0,a.spanToJSON)(r).data;if(`${c}${e}`in o)return void r.setAttribute(`${c}${e}`,t);Object.keys(o).filter(e=>e.startsWith(c)).length<n&&r.setAttribute(`${c}${e}`,t)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{debug:()=>s,error:()=>u,fatal:()=>d,fmt:()=>o.fmt,info:()=>l,trace:()=>a,warn:()=>c});var r=n(1398),o=n(3246);function i(e,t,n,o,i){(0,r._INTERNAL_captureLog)({level:e,message:t,attributes:n,severityNumber:i},o)}function a(e,t,{scope:n}={}){i("trace",e,t,n)}function s(e,t,{scope:n}={}){i("debug",e,t,n)}function l(e,t,{scope:n}={}){i("info",e,t,n)}function c(e,t,{scope:n}={}){i("warn",e,t,n)}function u(e,t,{scope:n}={}){i("error",e,t,n)}function d(e,t,{scope:n}={}){i("fatal",e,t,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{consoleLoggingIntegration:()=>f});var r=n(401),o=n(409),i=n(1427),a=n(1389),s=n(427),l=n(413),c=n(1398),u=n(3260);const d={[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:n,normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e.getOptions();if(!n)return void(o.DEBUG_BUILD&&l.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled"));const f=(0,i.addConsoleInstrumentationHandler)(({args:n,level:o})=>{if((0,r.getClient)()!==e||!t.includes(o))return;const i=n[0],l=n.slice(1);if("assert"===o){if(!i){const e=l.length>0?`Assertion failed: ${(0,u.formatConsoleArgs)(l,a,s)}`:"Assertion failed";(0,c._INTERNAL_captureLog)({level:"error",message:e,attributes:d})}return}const f="log"===o,p=n.length>1&&"string"==typeof n[0]&&!(0,u.hasConsoleSubstitutions)(n[0]),h={...d,...p?(0,u.createConsoleTemplateAttributes)(i,l):{}};(0,c._INTERNAL_captureLog)({level:f?"info":o,message:(0,u.formatConsoleArgs)(n,a,s),severityNumber:f?10:void 0,attributes:h})});e.registerCleanup(f)}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createConsoleTemplateAttributes:()=>c,formatConsoleArgs:()=>a,hasConsoleSubstitutions:()=>l,safeJoinConsoleArgs:()=>s});var r=n(414),o=n(417),i=n(405);function a(e,t,n){return"util"in i.GLOBAL_OBJ&&"function"==typeof i.GLOBAL_OBJ.util.format?i.GLOBAL_OBJ.util.format(...e):s(e,t,n)}function s(e,t,n){return e.map(e=>(0,r.isPrimitive)(e)?String(e):JSON.stringify((0,o.normalize)(e,t,n))).join(" ")}function l(e){return/%[sdifocO]/.test(e)}function c(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{count:()=>i,distribution:()=>s,gauge:()=>a});var r=n(1406);function o(e,t,n,o){(0,r._INTERNAL_captureMetric)({type:e,name:t,value:n,unit:o?.unit,attributes:o?.attributes},{scope:o?.scope})}function i(e,t=1,n){o("counter",e,t,n)}function a(e,t,n){o("gauge",e,t,n)}function s(e,t,n){o("distribution",e,t,n)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createConsolaReporter:()=>c});var r=n(401),o=n(1398),i=n(3260),a=n(414),s=n(417);const l=["trace","debug","info","warn","error","fatal"];function c(e={}){const t=new Set(e.levels??l),n=e.client;return{log(e){const{type:l,level:c,message:f,args:p,tag:h,date:m,...g}=e,y=n||(0,r.getClient)();if(!y)return;const v=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=d[t];if(e)return e}return"info"}(l,c);if(!t.has(v))return;const{normalizeDepth:b=3,normalizeMaxBreadth:_=1e3}=y.getOptions(),w={};for(const[e,t]of Object.entries(g))w[e]=(0,s.normalize)(t,b,_);w["sentry.origin"]="auto.log.consola",h&&(w["consola.tag"]=h),l&&(w["consola.type"]=l),null!=c&&"number"==typeof c&&(w["consola.level"]=c);const S=function(e,t,n){const{message:r,attributes:o,messageTemplate:a,messageParameters:l}=e,c={};if(a&&l){const e=(0,i.createConsoleTemplateAttributes)(a,l);for(const[r,o]of Object.entries(e))c[r]=r.startsWith("sentry.message.parameter.")?(0,s.normalize)(o,t,n):o}else l&&l.length>0&&l.forEach((e,r)=>{c[`sentry.message.parameter.${r}`]=(0,s.normalize)(e,t,n)});return{message:r,attributes:{...(0,s.normalize)(o,t,n),...c}}}(function(e,t,n){if(!e?.length)return{message:""};const r=(0,i.formatConsoleArgs)(e,t,n),o=e[0];if((0,a.isPlainObject)(o)){const t="string"==typeof e[1]?2:1;return{message:r,attributes:o,messageParameters:e.slice(t)}}{const t=e.slice(1),n=t.length>0&&"string"==typeof o&&!(0,i.hasConsoleSubstitutions)(o);return{message:r,messageTemplate:n?o:void 0,messageParameters:n?t:void 0}}}(p,b,_),b,_);S?.attributes&&Object.assign(w,S.attributes),(0,o._INTERNAL_captureLog)({level:v,message:S?.message||f||p&&(0,i.formatConsoleArgs)(p,b,_)||"",attributes:w})}}}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"},d={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentOpenAiClient:()=>y});var r=n(409),o=n(400),i=n(427),a=n(413),s=n(436),l=n(426),c=n(3264),u=n(3265),d=n(3268),f=n(3269),p=n(3270);
50function h(e,t){const n={[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],o=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(r.DEBUG_BUILD&&a.debug.error("Failed to serialize OpenAI tools:",e))}}(t);o&&(n[c.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=o),Object.assign(n,(0,p.extractRequestParameters)(t))}else n[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="unknown";return n}function m(e,t,n,r){if("embeddings"===n&&"input"in t){const n=t.input;if(null==n)return;if("string"==typeof n&&0===n.length)return;if(Array.isArray(n)&&0===n.length)return;return void e.setAttribute(c.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof n?n:JSON.stringify(n))}const o="input"in t?t.input:"messages"in t?t.messages:void 0;if(!o)return;if(Array.isArray(o)&&0===o.length)return;const{systemInstructions:i,filteredMessages:a}=(0,u.extractSystemInstructions)(o);i&&e.setAttribute(c.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,i),e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?(0,u.getTruncatedJsonString)(a):(0,u.getJsonString)(a)),Array.isArray(a)?e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,a.length):e.setAttribute(c.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,1)}function g(e,t="",n){return new Proxy(e,{get(e,r){const i=e[r],a=(0,u.buildMethodPath)(t,String(r)),y=d.OPENAI_METHOD_REGISTRY[a];return"function"==typeof i&&y?function(e,t,n,r,i){return function(...a){const d=n.operation||"unknown",g=h(a,d),y=g[c.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown",v=a[0],b=v&&"object"==typeof v&&!0===v.stream,_={name:`${d} ${y}`,op:`gen_ai.${d}`,attributes:g};if(b){let n;const c=(0,l.startSpanManual)(_,l=>(n=e.apply(r,a),i.recordInputs&&v&&m(l,v,d,(0,u.shouldEnableTruncation)(i.enableTruncation)),(async()=>{try{const e=await n;return(0,f.instrumentStream)(e,l,i.recordOutputs??!1)}catch(e){throw l.setStatus({code:s.SPAN_STATUS_ERROR,message:"internal_error"}),(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),l.end(),e}})()));return(0,u.wrapPromiseWithMethods)(n,c,"auto.ai.openai")}let w;const S=(0,l.startSpan)(_,n=>(w=e.apply(r,a),i.recordInputs&&v&&m(n,v,d,(0,u.shouldEnableTruncation)(i.enableTruncation)),w.then(e=>((0,p.addResponseAttributes)(n,e,i.recordOutputs),e),e=>{throw(0,o.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),e})));return(0,u.wrapPromiseWithMethods)(w,S,"auto.ai.openai")}}(i,a,y,e,n):"function"==typeof i?i.bind(e):i&&"object"==typeof i?g(i,a,n):i}})}function y(e,t){return g(e,"",(0,u.resolveAIRecordingOptions)(t))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{GEN_AI_AGENT_NAME_ATTRIBUTE:()=>I,GEN_AI_CONVERSATION_ID_ATTRIBUTE:()=>j,GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE:()=>B,GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE:()=>z,GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE:()=>U,GEN_AI_INPUT_MESSAGES_ATTRIBUTE:()=>k,GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE:()=>E,GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE:()=>F,GEN_AI_OPERATION_NAME_ATTRIBUTE:()=>S,GEN_AI_OUTPUT_MESSAGES_ATTRIBUTE:()=>T,GEN_AI_PIPELINE_NAME_ATTRIBUTE:()=>R,GEN_AI_PROMPT_ATTRIBUTE:()=>r,GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE:()=>C,GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE:()=>h,GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE:()=>
50p,GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE:()=>c,GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE:()=>l,GEN_AI_REQUEST_MODEL_ATTRIBUTE:()=>i,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:()=>f,GEN_AI_REQUEST_TOP_P_ATTRIBUTE:()=>d,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:()=>v,GEN_AI_RESPONSE_STREAMING_ATTRIBUTE:()=>P,GEN_AI_RESPONSE_TEXT_ATTRIBUTE:()=>O,GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE:()=>A,GEN_AI_SYSTEM_ATTRIBUTE:()=>o,GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE:()=>x,GEN_AI_TOOL_CALL_ID_ATTRIBUTE:()=>V,GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE:()=>$,GEN_AI_TOOL_INPUT_ATTRIBUTE:()=>G,GEN_AI_TOOL_NAME_ATTRIBUTE:()=>H,GEN_AI_TOOL_OUTPUT_ATTRIBUTE:()=>W,GEN_AI_TOOL_TYPE_ATTRIBUTE:()=>q,GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE:()=>M,GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE:()=>D,GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE:()=>b,GEN_AI_USAGE_INPUT_TOKENS_CACHED_ATTRIBUTE:()=>L,GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_ATTRIBUTE:()=>N,GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE:()=>_,GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE:()=>w});const r="gen_ai.prompt",o="gen_ai.system",i="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",d="gen_ai.request.top_p",f="gen_ai.request.top_k",p="gen_ai.request.encoding_format",h="gen_ai.request.dimensions",m="gen_ai.response.finish_reasons",g="gen_ai.response.model",y="gen_ai.response.id",v="gen_ai.response.stop_reason",b="gen_ai.usage.input_tokens",_="gen_ai.usage.output_tokens",w="gen_ai.usage.total_tokens",S="gen_ai.operation.name",E="sentry.sdk_meta.gen_ai.input.messages.original_length",k="gen_ai.input.messages",T="gen_ai.output.messages",x="gen_ai.system_instructions",O="gen_ai.response.text",C="gen_ai.request.available_tools",P="gen_ai.response.streaming",A="gen_ai.response.tool_calls",I="gen_ai.agent.name",R="gen_ai.pipeline.name",j="gen_ai.conversation.id",M="gen_ai.usage.cache_creation_input_tokens",D="gen_ai.usage.cache_read_input_tokens",N="gen_ai.usage.input_tokens.cache_write",L="gen_ai.usage.input_tokens.cached",F="gen_ai.invoke_agent",B="gen_ai.embeddings.input",z="gen_ai.embeddings",U="gen_ai.execute_tool",H="gen_ai.tool.name",V="gen_ai.tool.call.id",q="gen_ai.tool.type",G="gen_ai.tool.input",W="gen_ai.tool.output",$="gen_ai.tool.description"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildMethodPath:()=>d,endStreamSpan:()=>p,extractSystemInstructions:()=>g,getJsonString:()=>h,getTruncatedJsonString:()=>m,resolveAIRecordingOptions:()=>c,setTokenUsageAttributes:()=>f,shouldEnableTruncation:()=>u,wrapPromiseWithMethods:()=>y});var r=n(400),o=n(401),i=n(432),a=n(414),s=n(3264),l=n(3266);function c(e){const t=(0,o.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function u(e){const t=(0,o.getClient)();return e??!(t&&(0,i.hasSpanStreamingEnabled)(t))}function d(e,t){return e?`${e}.${t}`:t}function f(e,t,n,r,o){if(void 0!==t&&e.setAttributes({[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:t}),void 0!==n&&e.setAttributes({[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n}),void 0!==t||void 0!==n||void 0!==r||void 0!==o){const i=(t??0)+(n??0)+(r??0)+(o??0);e.setAttributes({[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:i})}}function p(e,t,n){if(!e.isRecording())return;const r={[s.GEN_AI_RESPONSE_STREAMING_ATTRIBUTE]:!0};t.responseId&&(r[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]=t.responseId),t.responseModel&&(r[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=t.responseModel),void 0!==t.promptTokens&&(r[s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t.promptTokens),void 0!==t.completionTokens&&(r[s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=t.completionTokens),void 0!==t.totalTokens?r[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=t.totalTokens:void 0===t.promptTokens&&void 0===t.completionTokens&&void 0===t.cacheCreationInputTokens&&void 0===t.cacheReadInputTokens||(r[s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function h(e){return"string"==typeof e?e:JSON.stringify(e)}function m(e){if("string"==typeof e)return(0,l.truncateGenAiStringInput)(e);if(Array.isArray(e)){const t=(0,l.truncateGenAiMessages)(e);return JSON.stringify(t)}return JSON.stringify(e)}function g(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 n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};return{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}}function y(e,t,n){return(0,a.isThenable)(e)?new Proxy(e,{get(e,o){const i=o in Promise.prototype||o===Symbol.toStringTag?t:e,a=Reflect.get(i,o);return"withResponse"===o&&"function"==typeof a?function(){return async function(e,t,n){const o=e.catch(e=>{throw(0,r.captureException)(e,{mechanism:{handled:!1,type:n}}),e}),i=await t,a=await o;return a&&"object"==typeof a&&"data"in a?{...a,data:i}:i}(a.call(e),t,n)}:"function"==typeof a?a.bind(i):a}}):t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_GEN_AI_MESSAGES_BYTE_LIMIT:()=>o,truncateGenAiMessages:()=>g,truncateGenAiStringInput:()=>y});var r=n(3267);const o=2e4,i=e=>(new TextEncoder).encode(e).length,a=e=>i(JSON.stringify(e));function s(e,t){if(i(e)<=t)return e;let n=0,r=e.length,o="";for(;n<=r;){const a=Math.floor((n+r)/2),s=e.slice(0,a);i(s)<=t?(o=s,n=a+1):r=a-1}return o}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 d(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function f(e,t){const{key:n,items:r}=function(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}
50:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}(e);if(null===n||0===r.length)return[];const o=r.map(e=>c(e,""));let u=t-a({...e,[n]:o});if(u<=0)return[];const d=[];for(const e of r){const t=l(e),n=i(t);if(!(n<=u)){if(0===d.length){const n=s(t,u);n&&d.push(c(e,n));break}break}d.push(e),u-=n}return d.length<=0?[]:[{...e,[n]:d}]}function p(e,t){if(!e)return[];if("string"==typeof e){const n=s(e,t);return n?[n]:[]}return"object"!=typeof e?[]:function(e){return null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content}(e)?function(e,t){const n={...e,content:""},r=t-a(n);if(r<=0)return[];const o=s(e.content,r);return[{...e,content:o}]}(e,t):u(e)||d(e)?f(e,t):[]}function h(e){return e.map(e=>{let t;return e&&"object"==typeof e&&(u(e)?t={...e,content:h(e.content)}:"content"in e&&(0,r.isContentMedia)(e.content)&&(t={...e,content:(0,r.stripInlineMediaFromSingleMessage)(e.content)}),d(e)&&(t={...t??e,parts:h(e.parts)}),(0,r.isContentMedia)(t)?t=(0,r.stripInlineMediaFromSingleMessage)(t):(0,r.isContentMedia)(e)&&(t=(0,r.stripInlineMediaFromSingleMessage)(e))),t??e})}function m(e,t){if(!Array.isArray(e)||0===e.length)return e;const n=t-2,r=h([e[e.length-1]]),o=r[0];return a(o)<=n?r:p(o,n)}function g(e){return m(e,o)}function y(e){return s(e,o)}},(e,t,n)=>{"use strict";function r(e){return!(!e||"object"!=typeof e)&&(function(e){return"type"in e&&"string"==typeof e.type&&"source"in e&&r(e.source)}(e)||i(e)||function(e){return"image_url"in e&&("string"==typeof e.image_url?e.image_url.startsWith("data:"):o(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 o(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 i(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}n.r(t),n.d(t,{isContentMedia:()=>r,stripInlineMediaFromSingleMessage:()=>u});const l="[Blob substitute]",c=["image_url","data","content","b64_json","result","uri","image"];function u(e){const t={...e};r(t.source)&&(t.source=u(t.source)),i(e)&&(t.inlineData={...e.inlineData,data:l}),o(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,n)=>{"use strict";n.r(t),n.d(t,{OPENAI_INTEGRATION_NAME:()=>r,OPENAI_METHOD_REGISTRY:()=>o,RESPONSES_TOOL_CALL_EVENT_TYPES:()=>i,RESPONSE_EVENT_TYPES:()=>a});const r="OpenAI",o={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},i=["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",...i]},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentStream:()=>d});var r=n(400),o=n(436),i=n(3265),a=n(3268),s=n(3270);function l(e,t){for(const n of e){const e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){const r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}
50function c(e,t,n){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 r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&l(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function u(e,t,n,i){if(!e||"object"!=typeof e)return void t.eventTypes.push("unknown:non-object");if(e instanceof Error)return i.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),void(0,r.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(n&&("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),n&&e.output_text&&t.responseTexts.push(e.output_text)}}else t.eventTypes.push(s.type)}async function*d(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const o of e)(0,s.isChatCompletionChunk)(o)?c(o,r,n):(0,s.isResponsesApiStreamEvent)(o)&&u(o,r,n,t),yield o}finally{const e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];(0,i.endStreamSpan)(t,{...r,toolCalls:e},n)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{addResponseAttributes:()=>a,extractRequestParameters:()=>s,isChatCompletionChunk:()=>i,isResponsesApiStreamEvent:()=>o});var r=n(3264);function o(e){return null!==e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.startsWith("response.")}function i(e){return null!==e&&"object"==typeof e&&"object"in e&&"chat.completion.chunk"===e.object}function a(e,t,n){if(!t||"object"!=typeof t)return;const o=t,i={};if("string"==typeof o.id&&(i[r.GEN_AI_RESPONSE_ID_ATTRIBUTE]=o.id),"string"==typeof o.model&&(i[r.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]=o.model),"conversation"===o.object&&"string"==typeof o.id&&(i[r.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=o.id),o.usage&&"object"==typeof o.usage){const e=o.usage,t=e.prompt_tokens??e.input_tokens;"number"==typeof t&&(i[r.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]=t);const n=e.completion_tokens??e.output_tokens;"number"==typeof n&&(i[r.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]=n),"number"==typeof e.total_tokens&&(i[r.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]=e.total_tokens)}if(Array.isArray(o.choices)){const e=o.choices,t=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(t.length>0&&(i[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify(t)),n){const t=e.map(e=>{const t=e.message;return t?.content||""});i[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=JSON.stringify(t);const n=e.map(e=>{const t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(i[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(n))}}if("string"==typeof o.status&&(i[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]||(i[r.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE]=JSON.stringify([o.status]))),n&&("string"!=typeof o.output_text||i[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]||(i[r.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]=o.output_text),Array.isArray(o.output)&&o.output.length>0&&!i[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE])){const e=o.output.f
50ilter(e=>"function_call"===e?.type);e.length>0&&(i[r.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]=JSON.stringify(e))}e.setAttributes(i)}function s(e){const t={[r.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:e.model??"unknown"};"temperature"in e&&(t[r.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=e.temperature),"top_p"in e&&(t[r.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=e.top_p),"frequency_penalty"in e&&(t[r.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE]=e.frequency_penalty),"presence_penalty"in e&&(t[r.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE]=e.presence_penalty),"stream"in e&&(t[r.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=e.stream),"encoding_format"in e&&(t[r.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=e.encoding_format),"dimensions"in e&&(t[r.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=e.dimensions);const n=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 n&&(t[r.GEN_AI_CONVERSATION_ID_ATTRIBUTE]=n),t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentAnthropicAiClient:()=>y});var r=n(400),o=n(427),i=n(436),a=n(426),s=n(3264),l=n(3265),c=n(3272),u=n(3273),d=n(3274);function f(e,t,n){const r=(0,d.messagesFromParams)(t);(0,d.setMessagesAttribute)(e,r,n),"prompt"in t&&e.setAttributes({[s.GEN_AI_PROMPT_ATTRIBUTE]:JSON.stringify(t.prompt)})}function p(e,t,n){t&&"object"==typeof t&&("type"in t&&"error"===t.type?(0,d.handleResponseError)(e,t):(n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.content.map(e=>e.text).filter(e=>!!e).join("")});const n=[];for(const e of t.content)"tool_use"!==e.type&&"server_tool_use"!==e.type||n.push(e);n.length>0&&e.setAttributes({[s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:t.completion}),"input_tokens"in t&&e.setAttributes({[s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){"id"in t&&"model"in t&&(e.setAttributes({[s.GEN_AI_RESPONSE_ID_ATTRIBUTE]:t.id,[s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE]:t.model}),"usage"in t&&t.usage&&(0,l.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 h(e,t,n){throw(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function m(e,t,n,i,c){return new Proxy(e,{apply(d,m,g){const y=n.operation||"unknown",v=function(e,t,n){const r={[s.GEN_AI_SYSTEM_ATTRIBUTE]:"anthropic",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:n,[o.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)&&(r[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t.tools)),r[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=t.model??"unknown","temperature"in t&&(r[s.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE]=t.temperature),"top_p"in t&&(r[s.GEN_AI_REQUEST_TOP_P_ATTRIBUTE]=t.top_p),"stream"in t&&(r[s.GEN_AI_REQUEST_STREAM_ATTRIBUTE]=t.stream),"top_k"in t&&(r[s.GEN_AI_REQUEST_TOP_K_ATTRIBUTE]=t.top_k),"frequency_penalty"in t&&(r[s.GEN_AI_REQUEST_FREQUENCY_PENA
50LTY_ATTRIBUTE]=t.frequency_penalty),"max_tokens"in t&&(r[s.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE]=t.max_tokens)}else r[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]="models.retrieve"===t||"models.get"===t?e[0]:"unknown";return r}(g,t,y),b=v[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown",_="object"==typeof g[0]?g[0]:void 0,w=Boolean(_?.stream),S=!0===n.streaming;if(w||S)return function(e,t,n,r,o,i,c,d,p,m,g){const y={name:`${i} ${o[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown"}`,op:`gen_ai.${i}`,attributes:o};if(m&&!g){let t;const o=(0,a.startSpanManual)(y,o=>(t=e.apply(n,r),p.recordInputs&&d&&f(o,d,(0,l.shouldEnableTruncation)(p.enableTruncation)),(async()=>{try{const e=await t;return(0,u.instrumentAsyncIterableStream)(e,o,p.recordOutputs??!1)}catch(e){return h(e,o,c)}})()));return(0,l.wrapPromiseWithMethods)(t,o,"auto.ai.anthropic")}return(0,a.startSpanManual)(y,e=>{try{p.recordInputs&&d&&f(e,d,(0,l.shouldEnableTruncation)(p.enableTruncation));const o=t.apply(n,r);return(0,u.instrumentMessageStream)(o,e,p.recordOutputs??!1)}catch(t){return h(t,e,c)}})}(e,d,i,g,v,y,t,_,c,w,S);let E;const k=(0,a.startSpan)({name:`${y} ${b}`,op:`gen_ai.${y}`,attributes:v},e=>(E=d.apply(i,g),c.recordInputs&&_&&f(e,_,(0,l.shouldEnableTruncation)(c.enableTruncation)),E.then(t=>(p(e,t,c.recordOutputs),t),e=>{throw(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),e})));return(0,l.wrapPromiseWithMethods)(E,k,"auto.ai.anthropic")}})}function g(e,t="",n){return new Proxy(e,{get(e,r){const o=e[r],i=(0,l.buildMethodPath)(t,String(r)),a=c.ANTHROPIC_METHOD_REGISTRY[i];return"function"==typeof o&&a?m(o,i,a,e,n):"function"==typeof o?o.bind(e):o&&"object"==typeof o?g(o,i,n):o}})}function y(e,t){return g(e,"",(0,l.resolveAIRecordingOptions)(t))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{ANTHROPIC_AI_INTEGRATION_NAME:()=>r,ANTHROPIC_METHOD_REGISTRY:()=>o});const r="Anthropic_AI",o={"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,n)=>{"use strict";n.r(t),n.d(t,{instrumentAsyncIterableStream:()=>l,instrumentMessageStream:()=>c});var r=n(400),o=n(436),i=n(3265),a=n(3274);function s(e,t,n,i){if(!e||"object"!=typeof e)return;const s=function(e,t){return"type"in e&&"string"==typeof e.type&&"error"===e.type&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:(0,a.mapAnthropicErrorToStatusMessage)(e.error?.type)}),(0,r.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0)}(e,i);s||(function(e,t){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.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,n){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 n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}}(e,t,n),function(e,t){if("content_block_stop"!==e.type||"number"!=typeof e.index)return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let o;try{o=r?JSON.parse(r):{}}catch{o={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:o}),delete t.activeToolBlocks[e.index]}(e,t))}async function*l(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const o of e)s(o,r,n,t),yield o}finally{(0,i.endStreamSpan)(t,r,n)}}
50function c(e,t,n){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,n,t)}),e.on("message",()=>{(0,i.endStreamSpan)(t,a,n)}),e.on("error",e=>{(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{handleResponseError:()=>u,mapAnthropicErrorToStatusMessage:()=>c,messagesFromParams:()=>d,setMessagesAttribute:()=>s});var r=n(400),o=n(436),i=n(3264),a=n(3265);function s(e,t,n){if(Array.isArray(t)&&0===t.length)return;const{systemInstructions:r,filteredMessages:o}=(0,a.extractSystemInstructions)(t);r&&e.setAttributes({[i.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE]:r});const s=Array.isArray(o)?o.length:1;e.setAttributes({[i.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:n?(0,a.getTruncatedJsonString)(o):(0,a.getJsonString)(o),[i.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:s})}const l={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 c(e){return e&&l[e]||"internal_error"}function u(e,t){t.error&&(e.setStatus({code:o.SPAN_STATUS_ERROR,message:c(t.error.type)}),(0,r.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function d(e){const{system:t,messages:n,input:r}=e,o="string"==typeof t?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:null!=r?[r]:void 0,a=Array.isArray(n)?n:null!=n?[n]:[];return[...o,...i??a]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractModel:()=>p,instrumentGoogleGenAIClient:()=>v});var r=n(400),o=n(427),i=n(436),a=n(426),s=n(429),l=n(3264),c=n(3265),u=n(3276),d=n(3277),f=n(3278);function p(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 h(e,t,n){const r={[l.GEN_AI_SYSTEM_ATTRIBUTE]:u.GOOGLE_GENAI_SYSTEM_NAME,[l.GEN_AI_OPERATION_NAME_ATTRIBUTE]:e,[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p(t,n),"config"in t&&"object"==typeof t.config&&t.config){const e=t.config;if(Object.assign(r,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);r[l.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=JSON.stringify(t)}}}else r[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]=p({},n);return r}function m(e,t,n,r){if(n){const n=t.contents;return void(null!=n&&e.setAttribute(l.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE,"string"==typeof n?n:JSON.stringify(n)))}const o=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&o.push(...(0,f.contentUnionToMessages)(t.config.systemInstruction,"system")),"history"in t&&o.push(...(0,f.contentUnionToMessages)(t.history,"user")),"contents"in t&&o.push(...(0,f.contentUnionToMessages)(t.contents,"user")),"message"in t&&o.push(...(0,f.contentUnionToMessages)(t.message,"user")),Array.isArray(o)&&o.length){const{systemInstructions:t,filteredMessages:n}=(0,c.extractSystemInstructions)(o);t&&e.setAttribute(l.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const i=Array.isArray(n)?n.length:0;e.setAttributes({[l.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:i,[l.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?(0,c.getTruncatedJsonString)(n):(0,c.getJsonString)(n)})}}function g(e,t,n,o,u){const f="embeddings"===n.operation;return new Proxy(e,{apply(e,p,g){const y=n.operation||"unknown",v=g[0],b=h(y,v,o),_=b[l.GEN_AI_REQUEST_MODEL_ATTRIBUTE]??"unknown";return n.streaming?(0,a.startSpanManual)({name:`${y} ${_}`,op:`gen_ai.${y}`,attributes:b},async n=>{try{u.recordInputs&&v&&m(n,v,f,(0,c.shouldEnableTruncation)(u.enableTruncation));const t=await e.apply(o,g);return(0,d.instrumentStream)(t,n,Boolean(u.recordOutputs))}catch(e){throw n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),n.end(),e}}):(0,a.startSpan)({name:`${y} ${_}`,op:`gen_ai.${y}`,attributes:b},n=>(u.recordInputs&&v&&m(n,v,f,(0,c.shouldEnableTruncation)(u.enableTruncation)),(0,s.handleCallbackErrors)(()=>e.apply(o,g),e=>{(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{f||function(e,t,n){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 n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[l.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const n=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);n.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TEXT_ATTRIBUTE]:n.join("")})}if(n&&t.functionCalls){const n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[l.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE]:JSON.stringify(n)})}}}(n,e,u.recordOutputs)})))}})}function y(e,t="",n){return new Proxy(e,{get:(e,r,o)=>{const i=Reflect.get(e,r,o),a=(0,c.buildMethodPath)(t,String(r)),s=u.GOOGLE_GENAI_METHOD_REGISTRY[a];if("function"==typeof i&&s){const t=s.operation?g(i,a,s,e,n):i.bind(e);return s.proxyResultPath?function(...e){const r=t(...e);return r&&"object"==typeof r?y(r,s.proxyResultPath,n):r}:t}return"function"==typeof i?i.bind(e):i&&"object"==typeof i?y(i,a,n):i}})}function v(e,t){return y(e,"",(0,c.resolveAIRecordingOptions)(t))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{GOOGLE_GENAI_INTEGRATION_NAME:()=>r,GOOGLE_GENAI_METHOD_REGISTRY:()=>o,GOOGLE_GENAI_SYSTEM_NAME:()=>i});const r="Google_GenAI",o={"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}},i="google_genai"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentStream:()=>s});var r=n(400),o=n(436),i=n(3265);function a(e,t,n,i){e&&!function(e,t){const n=e?.promptFeedback;if(n?.blockReason){const e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:o.SPAN_STATUS_ERROR,message:"internal_error"}),(0,r.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,i)&&(function(e,t){"string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.totalTokenCount))}(e,t),function(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const e of r?.content?.parts??[])n&&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})}}
50(e,t,n))}async function*s(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const o of e)a(o,r,n,t),yield o}finally{(0,i.endStreamSpan)(t,r,n)}}},(e,t,n)=>{"use strict";function r(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>r(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}n.r(t),n.d(t,{contentUnionToMessages:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createLangChainCallbackHandler:()=>d});var r=n(400),o=n(427),i=n(436),a=n(426),s=n(3264),l=n(3265),c=n(3280),u=n(3281);function d(e={}){const{recordInputs:t,recordOutputs:n}=(0,l.resolveAIRecordingOptions)(e),d=(0,l.shouldEnableTruncation)(e.enableTruncation),f=new Map,p=e=>{const t=f.get(e);t?.isRecording()&&(t.end(),f.delete(e))},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,n,r,i,l,c,p,h){const m=(0,u.getInvocationParams)(c),g=(0,u.extractLLMRequestAttributes)(e,n,t,d,m,p),y=g[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],v=g[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,a.startSpanManual)({name:`${v} ${y}`,op:"gen_ai.chat",attributes:{...(0,u.getAgentNameFromMetadata)(p),...g,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(f.set(r,e),e))},handleChatModelStart(e,n,r,i,l,c,p,h){const m=(0,u.getInvocationParams)(c),g=(0,u.extractChatModelRequestAttributes)(e,n,t,d,m,p),y=(0,u.extractToolDefinitions)(l);y&&(g[s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE]=y);const v=g[s.GEN_AI_REQUEST_MODEL_ATTRIBUTE],b=g[s.GEN_AI_OPERATION_NAME_ATTRIBUTE];(0,a.startSpanManual)({name:`${b} ${v}`,op:"gen_ai.chat",attributes:{...(0,u.getAgentNameFromMetadata)(p),...g,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(f.set(r,e),e))},handleLLMEnd(e,t,r,o,i){const a=f.get(t);if(a?.isRecording()){const r=(0,u.extractLlmResponseAttributes)(e,n);r&&a.setAttributes(r),p(t)}},handleLLMError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),p(t)),(0,r.captureException)(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.llm_error_handler`}})},handleChainStart(e,n,r,i,s,l,c,u){if(l?.__sentry_langgraph__)return;const d=u||e.name||"unknown_chain",p={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":d};t&&(p["langchain.chain.inputs"]=JSON.stringify(n)),(0,a.startSpanManual)({name:`chain ${d}`,op:"gen_ai.invoke_agent",attributes:{...p,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(f.set(r,e),e))},handleChainEnd(e,t){const r=f.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),p(t))},handleChainError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),p(t)),(0,r.captureException)(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.chain_error_handler`}})},handleToolStart(e,n,r,i,l,d,p){if(d?.__sentry_langgraph__)return;const h=p||e.name||"unknown_tool",m={...(0,u.getAgentNameFromMetadata)(d),[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c.LANGCHAIN_ORIGIN,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:h};t&&(m[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=n),(0,a.startSpanManual)({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...m,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(f.set(r,e),e))},handleToolEnd(e,t){const r=f.get(t);if(r?.isRecording()){if(n){const t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE]:"string"==typeof t?t:JSON.stringify(t)})}p(t)}},handleToolError(e,t){const n=f.get(t);n?.isRecording()&&(n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),p(t)),(0,r.captureException)(e,{mechanism:{handled:!1,type:`${c.LANGCHAIN_ORIGIN}.tool_error_handler`}})},copy:()=>h,toJSON:()=>
50({lc:1,type:"not_implemented",id:h.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:h.lc_id})};return h}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LANGCHAIN_INTEGRATION_NAME:()=>r,LANGCHAIN_ORIGIN:()=>o,ROLE_MAP:()=>i});const r="LangChain",o="auto.ai.langchain",i={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_INTERNAL_mergeLangChainCallbackHandler:()=>T,extractChatModelRequestAttributes:()=>b,extractLLMRequestAttributes:()=>v,extractLlmResponseAttributes:()=>_,extractToolDefinitions:()=>S,getAgentNameFromMetadata:()=>w,getInvocationParams:()=>h,normalizeLangChainMessages:()=>m});var r=n(427),o=n(3264),i=n(3267),a=n(3265),s=n(3280);const l=(e,t,n)=>{null!=n&&(e[t]=n)},c=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function u(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function d(e){if(Array.isArray(e))try{const t=e.map(e=>e&&"object"==typeof e&&(0,i.isContentMedia)(e)?(0,i.stripInlineMediaFromSingleMessage)(e):e);return JSON.stringify(t)}catch{return String(e)}return u(e)}function f(e){const t=e.toLowerCase();return s.ROLE_MAP[t]??t}function p(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 h(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:f(t.call(e)),content:d(e.content)}}if(1===e.lc&&e.kwargs){const t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:f("string"==typeof n?p(n):"user"),content:d(e.kwargs?.content)}}if(e.type){return{role:f(String(e.type).toLowerCase()),content:d(e.content)}}if(e.role)return{role:f(String(e.role)),content:d(e.content)};const n=e.constructor?.name;return n&&"Object"!==n?{role:f(p(n)),content:d(e.content)}:{role:"user",content:d(e.content)}})}function g(e,t,n){const r={},i="kwargs"in e?e.kwargs:void 0,a=t?.temperature??n?.ls_temperature??i?.temperature;c(r,o.GEN_AI_REQUEST_TEMPERATURE_ATTRIBUTE,a);const s=t?.max_tokens??n?.ls_max_tokens??i?.max_tokens;c(r,o.GEN_AI_REQUEST_MAX_TOKENS_ATTRIBUTE,s);const u=t?.top_p??i?.top_p;c(r,o.GEN_AI_REQUEST_TOP_P_ATTRIBUTE,u);const d=t?.frequency_penalty;
50c(r,o.GEN_AI_REQUEST_FREQUENCY_PENALTY_ATTRIBUTE,d);const f=t?.presence_penalty;return c(r,o.GEN_AI_REQUEST_PRESENCE_PENALTY_ATTRIBUTE,f),t&&"stream"in t&&l(r,o.GEN_AI_REQUEST_STREAM_ATTRIBUTE,Boolean(t.stream)),r}function y(e,t,n,i,a){return{[o.GEN_AI_SYSTEM_ATTRIBUTE]:u(e??"langchain"),[o.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"chat",[o.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:u(t),[r.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:s.LANGCHAIN_ORIGIN,...g(n,i,a)}}function v(e,t,n,r,i,s){const c=s?.ls_provider,u=y(c,i?.model??s?.ls_model_name??"unknown",e,i,s);if(n&&Array.isArray(t)&&t.length>0){l(u,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,t.length);const e=t.map(e=>({role:"user",content:e}));l(u,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?(0,a.getTruncatedJsonString)(e):(0,a.getJsonString)(e))}return u}function b(e,t,n,r,i,s){const c=y(s?.ls_provider??e.id?.[2],i?.model??s?.ls_model_name??"unknown",e,i,s);if(n&&Array.isArray(t)&&t.length>0){const e=m(t.flat()),{systemInstructions:n,filteredMessages:i}=(0,a.extractSystemInstructions)(e);n&&l(c,o.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,n);const s=Array.isArray(i)?i.length:0;l(c,o.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE,s),l(c,o.GEN_AI_INPUT_MESSAGES_ATTRIBUTE,r?(0,a.getTruncatedJsonString)(i):(0,a.getJsonString)(i))}return c}function _(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const r=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(r.length>0&&l(n,o.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,u(r)),function(e,t){const n=[],r=e.flat();for(const e of r){const t=e.message,r=t?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{const t=e.message?.content;if(Array.isArray(t))for(const e of t){const t=e;"tool_use"===t.type&&n.push(t)}}}n.length>0&&l(t,o.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,u(n))}(e.generations,n),t){const t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&l(n,o.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,u(t))}}!function(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)c(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,n.promptTokens),c(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,n.completionTokens),c(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,n.totalTokens);else if(r){c(t,o.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,r.input_tokens),c(t,o.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,r.output_tokens);const e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&c(t,o.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,i),void 0!==r.cache_creation_input_tokens&&c(t,o.GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_ATTRIBUTE,r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&c(t,o.GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_ATTRIBUTE,r.cache_read_input_tokens)}}(e.llmOutput,n);const r=e.llmOutput,i=e.generations?.[0]?.[0],a=i?.message,s=r?.model_name??r?.model??a?.response_metadata?.model_name;s&&l(n,o.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,s);const d=r?.id??a?.id;d&&l(n,o.GEN_AI_RESPONSE_ID_ATTRIBUTE,d);const f=r?.stop_reason??a?.response_metadata?.finish_reason;return f&&l(n,o.GEN_AI_RESPONSE_STOP_REASON_ATTRIBUTE,u(f)),n}function w(e){const t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[o.GEN_AI_AGENT_NAME_ATTRIBUTE]=n),t}function S(e){const t=e?.invocation_params?.tools??e?.options?.tools;if(!Array.isArray(t)||0===t.length)return;const n=t.map(e=>{const t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}});return JSON.stringify(n)}function E(e){return"object"==typeof e&&"SentryCallbackHandler"===e?.name}function k(e){return e.some(E)}function T(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(k(e.handlers??[]))return e;const n=e.copy();return n.addHandler(t,!0),n}const n=Array.isArray(e)?e:[e];return k(n)?e:[...n,t]}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentCreateReactAgent:()=>y,instrumentLangGraph:()=>v,instrumentStateGraphCompile:()=>m});var r=n(400),o=n(427),i=n(436),a=n(426),s=n(3264),l=n(3265),c=n(3279),u=n(3281),d=n(3283),f=n(3284);let p=!1;const h="__sentry_patched__";function m(e,t){if(Object.prototype.hasOwnProperty.call(e,h))return e;const n=(0,c.createLangChainCallbackHandler)(t),l=new Proxy(e,{apply:(e,l,c)=>p?Reflect.apply(e,l,c):(0,a.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"create_agent"}},o=>{try{const r=Reflect.apply(e,l,c),i=c.length>0?c[0]:{};i?.name&&"string"==typeof i.name&&(o.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,i.name),o.updateName(`create_agent ${i.name}`));const a=r.invoke;return a&&"function"==typeof a&&(r.invoke=g(a.bind(r),r,i,t,void 0,n)),r}catch(e){throw o.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(l,h,{value:!0,enumerable:!1}),l}function g(e,t,n,c,p,h){return new Proxy(e,{apply(e,m,g){const y=p?.modelName??p?.model;return(0,a.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:d.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_INVOKE_AGENT_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"invoke_agent"}},async o=>{try{const r=n?.name;r&&"string"==typeof r&&(o.setAttribute(s.GEN_AI_PIPELINE_NAME_ATTRIBUTE,r),o.setAttribute(s.GEN_AI_AGENT_NAME_ATTRIBUTE,r),o.updateName(`invoke_agent ${r}`)),y&&o.setAttribute(s.GEN_AI_REQUEST_MODEL_ATTRIBUTE,y);const i=g.length>1?g[1]:void 0,a=i?.configurable,d=a?.thread_id;if(d&&"string"==typeof d&&o.setAttribute(s.GEN_AI_CONVERSATION_ID_ATTRIBUTE,d),h){const e=g[1]??{};g[1]=e;const t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof r?{lc_agent_name:r}:{}},e.callbacks=(0,u._INTERNAL_mergeLangChainCallbackHandler)(e.callbacks,h)}const p=(0,f.extractToolsFromCompiledGraph)(t);p&&o.setAttribute(s.GEN_AI_REQUEST_AVAILABLE_TOOLS_ATTRIBUTE,JSON.stringify(p));const v=c.recordInputs,b=c.recordOutputs,_=g.length>0?g[0]?.messages??[]:[];if(_&&v){const e=(0,u.normalizeLangChainMessages)(_),{systemInstructions:t,filteredMessages:n}=(0,l.extractSystemInstructions)(e);t&&o.setAttribute(s.GEN_AI_SYSTEM_INSTRUCTIONS_ATTRIBUTE,t);const r=(0,l.shouldEnableTruncation)(c.enableTruncation),i=Array.isArray(n)?n.length:0;o.setAttributes({[s.GEN_AI_INPUT_MESSAGES_ATTRIBUTE]:r?(0,l.getTruncatedJsonString)(n):(0,l.getJsonString)(n),[s.GEN_AI_INPUT_MESSAGES_ORIGINAL_LENGTH_ATTRIBUTE]:i})}const w=await Reflect.apply(e,m,g);return b&&(0,f.setResponseAttributes)(o,_??null,w),w}catch(e){throw o.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function y(e,t){if(Object.prototype.hasOwnProperty.call(e,h))return e;const n=(0,l.resolveAIRecordingOptions)(t),r=(0,c.createLangChainCallbackHandler)(n),o=new Proxy(e,{apply(e,t,o){const i=(0,f.extractLLMFromParams)(o),a=(0,f.extractAgentNameFromParams)(o),s=o[0];let l;s&&Array.isArray(s.tools)&&s.tools.length>0&&(0,f.wrapToolsWithSpans)(s.tools,n,a??void 0),p=!0;try{l=Reflect.apply(e,t,o)}finally{p=!1}const c=l.invoke;if(c&&"function"==typeof c){const e={};
50a&&(e.name=a),l.invoke=g(c.bind(l),l,e,n,i,r)}return l}});return Object.defineProperty(o,h,{value:!0,enumerable:!1}),o}function v(e,t){return e.compile=m(e.compile,(0,l.resolveAIRecordingOptions)(t)),e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{LANGGRAPH_INTEGRATION_NAME:()=>r,LANGGRAPH_ORIGIN:()=>o});const r="LangGraph",o="auto.ai.langgraph"},(e,t,n)=>{"use strict";n.r(t),n.d(t,{extractAgentNameFromParams:()=>d,extractLLMFromParams:()=>u,extractModelMetadata:()=>m,extractTokenUsageFromMessage:()=>h,extractToolCalls:()=>p,extractToolsFromCompiledGraph:()=>g,setResponseAttributes:()=>y,wrapToolsWithSpans:()=>f});var r=n(400),o=n(427),i=n(436),a=n(426),s=n(3264),l=n(3281),c=n(3283);function u(e){const t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;const n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}function d(e){const t=e[0];return"object"==typeof t&&t&&"name"in t&&"string"==typeof t.name?t.name:null}function f(e,t,n){const l="__sentry_tool_wrapped__";for(const u of e){if(!u||"object"!=typeof u)continue;const e=u,d=e.invoke;if("function"!=typeof d||Object.prototype.hasOwnProperty.call(e,l))continue;const f="string"==typeof e.name?e.name:"unknown_tool",p="string"==typeof e.description?e.description:void 0,h=new Proxy(d,{apply(e,l,u){const d={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:c.LANGGRAPH_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,[s.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"execute_tool",[s.GEN_AI_TOOL_NAME_ATTRIBUTE]:f,[s.GEN_AI_TOOL_TYPE_ATTRIBUTE]:"function"},h=u[1],m=h?.metadata?.lc_agent_name??n;"string"==typeof m&&(d[s.GEN_AI_AGENT_NAME_ATTRIBUTE]=m),p&&(d[s.GEN_AI_TOOL_DESCRIPTION_ATTRIBUTE]=p);const g=u[0];if("object"==typeof g&&g&&("id"in g&&"string"==typeof g.id&&(d[s.GEN_AI_TOOL_CALL_ID_ATTRIBUTE]=g.id),t.recordInputs)){const e="args"in g&&"object"==typeof g.args?g.args:g;try{d[s.GEN_AI_TOOL_INPUT_ATTRIBUTE]=JSON.stringify(e)}catch{}}return(0,a.startSpan)({op:s.GEN_AI_EXECUTE_TOOL_OPERATION_ATTRIBUTE,name:`execute_tool ${f}`,attributes:d},async n=>{try{const r=await Reflect.apply(e,l,u);if(t.recordOutputs)try{const e=r&&"object"==typeof r&&"content"in r?r.content:r;n.setAttribute(s.GEN_AI_TOOL_OUTPUT_ATTRIBUTE,"string"==typeof e?e:JSON.stringify(e))}catch{}return r}catch(e){throw n.setStatus({code:i.SPAN_STATUS_ERROR,message:"internal_error"}),(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}});e.invoke=h,Object.defineProperty(e,l,{value:!0,enumerable:!1})}return e}function p(e){if(!e||0===e.length)return null;const t=[];for(const n of e)if(n&&"object"==typeof n){const e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function h(e){const t=e;let n=0,r=0,o=0;if(t.usage_metadata&&"object"==typeof t.usage_metadata){const e=t.usage_metadata;return"number"==typeof e.input_tokens&&(n=e.input_tokens),"number"==typeof e.output_tokens&&(r=e.output_tokens),"number"==typeof e.total_tokens&&(o=e.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:o}}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&&(n=t.promptTokens),"number"==typeof t.completionTokens&&(r=t.completionTokens),"number"==typeof t.totalTokens&&(o=t.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:o}}function m(e,t){const n=t;if(n.response_metadata&&"object"==typeof n.response_metadata){const t=n.response_metadata;t.model_name&&"string"==typeof t.model_name&&e.setAttribute(s.GEN_AI_RESPONSE_MODEL_ATTRIBUTE,t.model_name),t.finish_reason&&"string"==typeof t.finish_reason&&e.setAttribute(s.GEN_AI_RESPONSE_FINISH_REASONS_ATTRIBUTE,[t.finish_reason])}}function g(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 y(e,t,n){const r=n,o=r?.messages;if(!o||!Array.isArray(o))return;const i=t?.length??0,a=o.length>i?o.slice(i):[];if(0===a.length)return;const c=p(a);c&&e.setAttribute(s.GEN_AI_RESPONSE_TOOL_CALLS_ATTRIBUTE,JSON.stringify(c));const u=(0,l.normalizeLangChainMessages)(a);e.setAttribute(s.GEN_AI_RESPONSE_TEXT_ATTRIBUTE,JSON.stringify(u));let d=0,f=0,g=0;for(const t of a){const n=h(t);d+=n.inputTokens,f+=n.outputTokens,g+=n.totalTokens,m(e,t)}d>0&&e.setAttribute(s.GEN_AI_USAGE_INPUT_TOKENS_ATTRIBUTE,d),f>0&&e.setAttribute(s.GEN_AI_USAGE_OUTPUT_TOKENS_ATTRIBUTE,f),g>0&&e.setAttribute(s.GEN_AI_USAGE_TOTAL_TOKENS_ATTRIBUTE,g)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{instrumentEmbeddingMethod:()=>c,instrumentLangChainEmbeddings:()=>u});var r=n(400),o=n(427),i=n(426),a=n(3264),s=n(3265),l=n(3280);function c(e,t={}){const{recordInputs:n}=(0,s.resolveAIRecordingOptions)(t);return new Proxy(e,{apply(e,t,s){const c=function(e){const t=e??{},n={[o.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:l.LANGCHAIN_ORIGIN,[o.SEMANTIC_ATTRIBUTE_SENTRY_OP]:a.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,[a.GEN_AI_OPERATION_NAME_ATTRIBUTE]:"embeddings",[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]:t.model??"unknown"};return n[a.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&&(n[a.GEN_AI_REQUEST_DIMENSIONS_ATTRIBUTE]=t.dimensions),"encodingFormat"in t&&(n[a.GEN_AI_REQUEST_ENCODING_FORMAT_ATTRIBUTE]=t.encodingFormat),n}(t),u=c[a.GEN_AI_REQUEST_MODEL_ATTRIBUTE]||"unknown";if(n){const e=s[0];null!=e&&(c[a.GEN_AI_EMBEDDINGS_INPUT_ATTRIBUTE]="string"==typeof e?e:JSON.stringify(e))}return(0,i.startSpan)({name:`embeddings ${u}`,op:a.GEN_AI_EMBEDDINGS_OPERATION_ATTRIBUTE,attributes:c},()=>Reflect.apply(e,t,s).then(void 0,e=>{throw(0,r.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))}})}function u(e,t){const n=e;return"function"==typeof n.embedQuery&&(n.embedQuery=c(n.embedQuery,t)),"function"==typeof n.embedDocuments&&(n.embedDocuments=c(n.embedDocuments,t)),e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{uiProfiler:()=>a});var r=n(401),o=n(413),i=n(1438);const a={startProfiler:function(){const e=(0,r.getClient)();if(!e)return void(i.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("startUIProfiler"):i.DEBUG_BUILD&&o.debug.warn("BrowserProfiling integration is not available")},stopProfiler:function(){const e=(0,r.getClient)();if(!e)return void(i.DEBUG_BUILD&&o.debug.warn("No Sentry client available, profiling is not started"));e.getIntegrationByName("BrowserProfiling")?e.emit("stopUIProfiler"):i.DEBUG_BUILD&&o.debug.warn("ProfilingIntegration is not available")}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createUserFeedbackEnvelope:()=>i});var r=n(439),o=n(448);function i(e,{metadata:t,tunnel:n,dsn:i}){const a={event_id:e.event_id,sent_at:(new Date).toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!i&&{dsn:(0,r.dsnToString)(i)}},s=function(e){return[{type:"user_report"},e]}(e);return(0,o.createEnvelope)(a,[s])}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{showReportDialog:()=>c});var r=n(400),o=n(401),i=n(1397),a=n(413),s=n(1438),l=n(1423);function c(e={}){const t=l.WINDOW.document,n=t?.head||t?.body;if(!n)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] Global document not defined"));const c=(0,o.getCurrentScope)(),u=(0,o.getClient)(),d=u?.getDsn();if(!d)return void(s.DEBUG_BUILD&&a.debug.error("[showReportDialog] DSN not configured"));const f={...e,user:{...c.getUser(),...e.user},eventId:e.eventId||(0,r.lastEventId)()},p=l.WINDOW.document.createElement("script");p.async=!0,p.crossOrigin="anonymous",p.src=(0,i.getReportDialogEndpoint)(d,f);const{onLoad:h,onClose:m}=f;if(h&&(p.onload=h),m){const e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{m()}finally{l.WINDOW.removeEventListener("message",e)}};l.WINDOW.addEventListener("message",e)}n.appendChild(p)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{reportingObserverIntegration:()=>u});var r=n(400),o=n(401),i=n(1389),a=n(405),s=n(1430);const l=a.GLOBAL_OBJ,c=new WeakMap,u=(0,i.defineIntegration)((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(e){if(c.has((0,o.getClient)()))for(const t of e)(0,o.withScope)(e=>{e.setExtra("url",t.url);const n=`ReportingObserver [${t.type}]`;let o="No details available";if(t.body){const n={};for(const e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){const e=t.body;o=[e.crashId||"",e.reason||""].join(" ").trim()||o}else{o=t.body.message||o}}(0,r.captureMessage)(`${n}: ${o}`)})}return{name:"ReportingObserver",setupOnce(){if(!(0,s.supportsReportingObserver)())return;new l.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){c.set(e,!0)}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{httpClientIntegration:()=>g});var r=n(400),o=n(401),i=n(1389),a=n(3291),s=n(3292),l=n(3294),c=n(405),u=n(1429),d=n(413),f=n(411),p=n(1430),h=n(1436),m=n(1438);const g=(0,i.defineIntegration)((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){!function(e,t){if(!(0,p.supportsNativeFetch)())return;(0,u.addFetchInstrumentationHandler)(n=>{if((0,o.getClient)()!==e)return;const{response:i,args:l,error:c,virtualError:u}=n,[d,f]=l;i&&function(e,t,n,o,i){if(b(e,n.status,n.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,o);let l,c,u,d;const f=w();if(!1!==f.requestHeaders&&(l=(0,a.filterKeyValueData)(v(e.headers),f.requestHeaders)),!1!==f.responseHeaders&&(c=(0,a.filterKeyValueData)(v(n.headers),f.responseHeaders)),!1!==f.cookies){const t=e.headers.get("Cookie")||void 0;if(t){const e=(0,s.filterCookies)(t,f.cookies);"object"==typeof e&&(u=e)}const r=n.headers.get("Set-Cookie")||void 0;if(r){const e=(0,s.filterCookies)(r,f.cookies);"object"==typeof e&&(d=e)}}const p=_({url:e.url,method:e.method,status:n.status,requestHeaders:l,responseHeaders:c,requestCookies:u,responseCookies:d,error:i,type:"fetch"});(0,r.captureEvent)(p)}}(t,d,i,f,c||u)},!1)}(e,t),function(e,t){if(!("XMLHttpRequest"in c.GLOBAL_OBJ))return;(0,h.addXhrInstrumentationHandler)(n=>{if((0,o.getClient)()!==e)return;const{error:i,virtualError:l}=n,c=n.xhr,u=c[h.SENTRY_XHR_DATA_KEY];if(!u)return;const{method:f,request_headers:p}=u;try{!function(e,t,n,o,i){if(b(e,t.status,t.responseURL)){let e,l,c;const u=w();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[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{})}(t),u.responseHeaders)}catch{}!1!==u.requestHeaders&&(e=(0,a.filterKeyValueData)(o,u.requestHeaders));const d=_({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:c,responseCookies:l,error:i,type:"xhr"});(0,r.captureEvent)(d)}}(t,c,f,p,i||l)}catch(e){m.DEBUG_BUILD&&d.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 v(e){const t={};return e.forEach((e,n)=>{t[n]=e}),t}function b(e,t,n){return function(e,t){return e.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])}(e.failedRequestStatusCodes,t)&&(r=e.failedRequestTargets,i=n,r.some(e=>"string"==typeof e?i.includes(e):e.test(i)))&&!(0,l.isSentryRequestUrl)(n,(0,o.getClient)());var r,i}function _(e){const t=(0,o.getClient)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}: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,f.addExceptionMechanism)(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function w(){const e=(0,o.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:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{filterKeyValueData:()=>i});var r=n(1418);function o(e,t){return t.some(t=>e.includes(t))}function i(e,t,n){if(!1===t)return{};const i=null!=n?[...r.SENSITIVE_KEY_SNIPPETS,...n]:r.SENSITIVE_KEY_SNIPPETS,a={};if(!0===t){for(const t of Object.keys(e))a[t]=o(t.toLowerCase(),i)?r.FILTERED_VALUE:e[t];return a}if("deny"in t){const n=t.deny.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const s=t.toLowerCase(),l=o(s,i)||n.some(e=>s.includes(e));a[t]=l?r.FILTERED_VALUE:e[t]}return a}const s=t.allow.map(e=>e.toLowerCase());for(const t of Object.keys(e)){const n=t.toLowerCase();if(o(n,i))a[t]=r.FILTERED_VALUE;else{const o=s.some(e=>n.includes(e));a[t]=o?e[t]:r.FILTERED_VALUE}}return a}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{filterCookies:()=>a});var r=n(3293),o=n(1418),i=n(3291);function a(e,t){if(!1===t)return{};try{const n=(0,r.parseCookie)(e);return 0===Object.keys(n).length?{}:(0,i.filterKeyValueData)(n,t,o.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return o.FILTERED_VALUE}}},(e,t,n)=>{"use strict";function r(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(-1===r)break;let o=e.indexOf(";",n);if(-1===o)o=e.length;else if(o<r){n=e.lastIndexOf(";",r-1)+1;continue}const i=e.slice(n,r).trim();if(void 0===t[i]){let n=e.slice(r+1,o).trim();
5034===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[i]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[i]=n}}n=o+1}return t}n.r(t),n.d(t,{parseCookie:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{isSentryRequestUrl:()=>o});var r=n(1432);function o(e,t){const n=t?.getDsn(),o=t?.getOptions().tunnel;return function(e,t){const n=(0,r.parseStringToURLObject)(e);if(!n||(0,r.isURLObjectRelative)(n))return!1;if(!t)return!1;return o=n.hostname,i=t.host,(o===i||i.length>0&&o.endsWith(`.${i}`))&&/(^|&|\?)sentry_key=/.test(n.search);var o,i}(e,n)||function(e,t){if(!t)return!1;return i(e)===i(t)}(e,o)}function i(e){return"/"===e[e.length-1]?e.slice(0,-1):e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{applySourceContextToFrame:()=>c,contextLinesIntegration:()=>l});var r=n(1389),o=n(405),i=n(411),a=n(1432);const s=o.GLOBAL_OBJ,l=(0,r.defineIntegration)((e={})=>({name:"ContextLines",processEvent:(t,n,r)=>function(e,t){const n=s.document,r=s.location&&(0,a.stripUrlQueryAndFragment)(s.location.href);if(!n||!r)return e;const o=e.exception?.values;if(!o?.length)return e;const i=n.documentElement.innerHTML;if(!i)return e;const l=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return o.forEach(e=>{const n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>c(e,l,r,t)))}),e}(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)}));function c(e,t,n,r){return e.filename===n&&e.lineno&&t.length?((0,i.addContextToFrame)(t,e,r),e):e}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{_getGraphQLOperation:()=>u,getGraphQLRequestPayload:()=>g,getRequestPayloadXhrOrFetch:()=>d,graphqlClientIntegration:()=>y,parseGraphQLQuery:()=>f});var r=n(427),o=n(1389),i=n(434),a=n(414),s=n(416),l=n(1436),c=n(1497);function u(e){if(m(e))return`persisted ${e.operationName}`;if(h(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:o}=f(t);return r?`${o} ${r}`:`${o}`}return"unknown"}function d(e){let t;if("xhr"in e){const n=e.xhr[l.SENTRY_XHR_DATA_KEY];t=n&&(0,c.getBodyString)(n.body)[0]}else{const n=(0,c.getFetchRequestArgBody)(e.input);t=(0,c.getBodyString)(n)[0]}return t}function f(e){const t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};const n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function p(e){return"object"==typeof e&&null!==e}function h(e){return p(e)&&"string"==typeof e.query}function m(e){return p(e)&&"string"==typeof e.operationName&&p(e.extensions)&&p(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 h(t)||m(t)?t:void 0}catch{return}}const y=(0,o.defineIntegration)(e=>({name:"GraphQLClient",setup(t){!function(e,t){e.on("beforeOutgoingRequestSpan",(e,n)=>{const o=(0,i.spanToJSON)(e).data||{};if(!("http.client"===o[r.SEMANTIC_ATTRIBUTE_SENTRY_OP]))return;const l=o[r.SEMANTIC_ATTRIBUTE_URL_FULL]||o["http.url"]||o.url,c=o[r.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||o["http.method"];if(!(0,a.isString)(l)||!(0,a.isString)(c))return;const{endpoints:f}=t,p=(0,s.stringMatchesSomePattern)(l,f),y=d(n);if(p&&y){const t=g(y);if(t){const n=u(t);e.updateName(`${c} ${l} (${n})`),h(t)&&e.setAttribute("graphql.document",t.query),m(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}})}(t,e),function(e,t){e.on("beforeOutgoingRequestBreadcrumb",(e,n)=>{const{category:r,type:o,data:i}=e;if("http"===o&&("fetch"===r||"xhr"===r)){const e=i?.url,{endpoints:r}=t,o=(0,s.stringMatchesSomePattern)(e,r),a=d(n);if(o&&i&&a){const e=g(a);if(!i.graphql&&e){const t=u(e);i["graphql.operation"]=t,h(e)&&(i["graphql.document"]=e.query),m(e)&&(i["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}(t,e)}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{viewHierarchyIntegration:()=>a});var r=n(1389),o=n(1424),i=n(1423);const a=(0,r.defineIntegration)((e={})=>{const t=["script"];function n(r,i,a=0){if(!r)return;const s="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const r of s){if(!(r instanceof HTMLElement))continue;const s=(0,o.getComponentName)(r,1)||void 0,l=r.tagName.toLowerCase();if(t.includes(l))continue;const c=e.onElement?.({element:r,componentName:s,tagName:l,depth:a})||{};if("skip"===c)continue;if("children"===c){n(r,i,a+1);continue}const{x:u,y:d,width:f,height:p}=r.getBoundingClientRect(),h={identifier:r.id||void 0,type:s||l,visible:!0,alpha:1,height:p,width:f,x:u,y:d,...c},m=[];h.children=m,n(r,h.children,a+1),i.push(h)}}return{name:"ViewHierarchy",processEvent:(t,r)=>{if(void 0!==t.type||!1===e.shouldAttach?.(t,r))return t;const o={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||i.WINDOW.document.body,o.windows);const a={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(o)};return r.attachments=r.attachments||[],r.attachments.push(a),t}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{getReplay:()=>Gr,replayIntegration:()=>Hr});var r=n(440),o=n(1442),i=n(427),a=n(400),s=n(401),l=n(450),c=n(3294),u=n(434),d=n(433),f=n(3299),p=n(642),h=n(405),m=n(1403),g=n(413),y=n(411),v=n(417),b=n(412),_=n(1431),w=n(416),S=n(420),E=n(448),k=n(1413),T=n(1424),x=n(1462),O=n(1433),C=n(1435),P=n(1452),A=n(1436),I=n(1497),R=n(1437);const j=h.GLOBAL_OBJ,M="sentryReplaySession",D="Unable to send Replay",N=15e4,L=5e3,F=2e7,B=36e5;var z=Object.defineProperty,U=(e,t,n)=>((e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),H=(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))(H||{});function V(e){const t=e?.host;return Boolean(t?.shadowRoot===e)}function q(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function G(e){try{const n=e.rules||e.cssRules;return n?((t=Array.from(n,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=G(e.styleSheet)||function(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if(function(e){return"selectorText"in e}(e)){let t=e.cssText;const n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,o=r[n],i=r.getPropertyPriority(o);t+=`${o}:${r.getPropertyValue(o)}
50${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=function(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}(t)),n||r)return t}return t||e.cssText}class ${constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(e){if(!e)return-1;const t=this.getMeta(e)?.id;return t??-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){const t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){const n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Y({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),Boolean(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function K({isMasked:e,element:t,value:n,maskInputFn:r}){let o=n||"";return e?(r&&(o=r(o,t)),"*".repeat(o.length)):o}function J(e){return e.toLowerCase()}function Q(e){return e.toUpperCase()}const X="__rrweb_original__";function Z(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?J(t):null}function ee(e,t,n){return"INPUT"!==t||"radio"!==n&&"checkbox"!==n?e.value:e.getAttribute("value")||""}function te(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}const r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}const ne={};function re(e){const t=ne[e];
50if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return ne[e]=r.bind(window)}function oe(...e){return re("setTimeout")(...e)}function ie(...e){return re("clearTimeout")(...e)}function ae(e){try{return e.contentDocument}catch{}}let se=1;const le=new RegExp("[^a-z0-9-_:]");function ce(){return se++}let ue,de;const fe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pe=/^(?:[a-z+]+:)?\/\//i,he=/^www\..*/i,me=/^(data:)([^,]*),(.*)/i;function ge(e,t){return(e||"").replace(fe,(e,n,r,o,i,a)=>{const s=r||i||a,l=n||o||"";if(!s)return e;if(pe.test(s)||he.test(s))return`url(${l}${s}${l})`;if(me.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 ye=/^[^ \t\n\r\u000c]+/,ve=/^[, \t\n\r\u000c]+/;const be=new WeakMap;function _e(e,t){return t&&""!==t.trim()?Se(e,t):t}function we(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function Se(e,t){let n=be.get(e);if(n||(n=e.createElement("a"),be.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function Ee(e,t,n,r,o,i,a){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0]))return _e(e,r);if("xlink:href"===n&&"#"!==r[0])return _e(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return _e(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r;const o=e.exec(t.substring(n));return o?(r=o[0],n+=r.length,r):""}const o=[];for(;r(ve),!(n>=t.length);){let i=r(ye);if(","===i.slice(-1))i=_e(e,i.substring(0,i.length-1)),o.push(i);else{let r="";i=_e(e,i);let a=!1;for(;;){const e=t.charAt(n);if(""===e){o.push((i+r).trim());break}if(a)")"===e&&(a=!1);else{if(","===e){n+=1,o.push((i+r).trim());break}"("===e&&(a=!0)}r+=e,n+=1}}}return o.join(", ")}(e,r);if("style"===n){let t=ge(r,Se(e));return a&&a.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{const n=e.split(";"),r=[];for(let e of n){if(e=e.trim(),!e)continue;const n=e.indexOf(":");if(-1===n){r.push(e);continue}const o=e.slice(0,n).trim();t.has(o)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,a)),t}return"object"===t&&"data"===n?_e(e,r):"function"==typeof i?i(n,r,o):r}function ke(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function Te(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Te(e.parentNode,t,n,r+1):-1}function xe(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.matches(t))}catch{return!1}}}function Oe(e,t,n,r,o,i){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(i){if(l=Te(a,xe(r,o)),l<0)return!0;s=Te(a,xe(t,n),l>=0?l:1/0)}else{if(s=Te(a,xe(t,n)),s<0)return!1;l=Te(a,xe(r,o),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function Ce(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskAttributeFn:l,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:g,dataURLOptions:y={},inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w=!1,ignoreCSSAttributes:S}=t,E=function(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:H.Document,childNodes:[],compatMode:e.compatMode}:{type:H.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:H.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return function(e,t){const{doc:n,blockClass:r,blockSelector:o,unblockSelector:i,inlineStylesheet:a,maskInputOptions:s={},maskAttributeFn:l,maskInputFn:c,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:g,unmaskTextClass:y,maskTextSelector:v,unmaskTextSelector:b,ignoreCSSAttributes:_}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,r,o,i),S=function(e){if(e instanceof HTMLFormElement)return"form";const t=J(e.tagName);return le.test(t)?"div":t}(e);let E={};const k=e.attributes.length;for(let t=0;t<k;t++){const r=e.attributes[t];r.name&&!ke(S,r.name,r.value)&&(E[r.name]=Ee(n,S,J(r.name),r.value,e,l,_))}if("link"===S&&a){const t=Array.from(n.styleSheets).find(t=>t.href===e.href);let r=null;t&&(r=G(t)),r&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=ge(r,t.href))}if("style"===S&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const t=G(e.sheet);t&&(E._cssText=ge(t,Se(n)))}if("input"===S||"textarea"===S||"select"===S||"option"===S){const t=e,n=Z(t),r=ee(t,Q(S),n),o=t.checked;if("submit"!==n&&"button"!==n&&r){const e=Oe(t,g,v,y,b,Y({type:n,tagName:Q(S),maskInputOptions:s}));E.value=K({isMasked:e,element:t,value:r,maskInputFn:c})}o&&(E.checked=o)}"option"===S&&(e.selected&&!s.select?E.selected=!0:delete E.selected);if("canvas"===S&&f)if("2d"===e.__context)(function(e){const t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){const o=t.getImageData,i=X in o?o[X]:o;
50if(new Uint32Array(i.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0})(e)||(E.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!("__context"in e)){const t=e.toDataURL(u.type,u.quality),r=n.createElement("canvas");r.width=e.width,r.height=e.height;t!==r.toDataURL(u.type,u.quality)&&(E.rr_dataURL=t)}if("img"===S&&d){ue||(ue=n.createElement("canvas"),de=ue.getContext("2d"));const t=e,r=t.currentSrc||t.getAttribute("src")||"<unknown-src>",o=t.crossOrigin,i=()=>{t.removeEventListener("load",i);try{ue.width=t.naturalWidth,ue.height=t.naturalHeight,de.drawImage(t,0,0),E.rr_dataURL=ue.toDataURL(u.type,u.quality)}catch(e){if("anonymous"!==t.crossOrigin)return t.crossOrigin="anonymous",void(t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i));console.warn(`Cannot inline img src=${r}! Error: ${e}`)}"anonymous"===t.crossOrigin&&(o?E.crossOrigin=o:t.removeAttribute("crossorigin"))};t.complete&&0!==t.naturalWidth?i():t.addEventListener("load",i)}"audio"!==S&&"video"!==S||(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime);h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop));if(w){const{width:t,height:n}=e.getBoundingClientRect();E={class:E.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==S||p(E.src)||(w||ae(e)||(E.rr_src=E.src),delete E.src);let T;try{customElements.get(S)&&(T=!0)}catch(e){}return{type:H.Element,tagName:S,attributes:E,childNodes:[],isSVG:we(e)||void 0,needBlock:w,rootId:m,isCustom:T}}(e,{doc:n,blockClass:o,blockSelector:i,unblockSelector:a,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:g,dataURLOptions:y,inlineImages:v,recordCanvas:b,keepIframeSrcFn:_,newlyAddedElement:w,rootId:E,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return function(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:o,maskTextSelector:i,unmaskTextSelector:a,maskTextFn:s,maskInputOptions:l,maskInputFn:c,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=G(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=ge(f,Se(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const g=Oe(e,r,i,o,a,n);p||h||m||!f||!g||(f=s?s(f,e.parentElement):f.replace(/[\S]/g,"*"));m&&f&&(l.textarea||g)&&(f=c?c(f,e.parentNode):f.replace(/[\S]/g,"*"));if("OPTION"===d&&f){f=K({isMasked:Oe(e,r,i,o,a,Y({type:null,tagName:d,maskInputOptions:l})),element:e,value:f,maskInputFn:c})}return{type:H.Text,textContent:f||"",isStyle:p,rootId:u}}(e,{doc:n,maskAllText:s,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:g,rootId:E});case e.CDATA_SECTION_NODE:return{type:H.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:H.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function Pe(e){return null==e?"":e.toLowerCase()}function Ae(e,t){const{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b={},inlineImages:_=!1,recordCanvas:w=!1,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k=5e3,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:O=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:P=!1,ignoreCSSAttributes:A}=t;let{preserveWhiteSpace:I=!0}=t;const R=Ce(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,dataURLOptions:b,inlineImages:_,recordCanvas:w,keepIframeSrcFn:C,newlyAddedElement:P,ignoreCSSAttributes:A});if(!R)return console.warn(e,"not serialized"),null;let j;j=r.hasNode(e)?r.getId(e):!function(e,t){if(t.comment&&e.type===
50H.Comment)return!0;if(e.type===H.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"===te(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(Pe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Pe(e.attributes.name)||"icon"===Pe(e.attributes.rel)||"apple-touch-icon"===Pe(e.attributes.rel)||"shortcut icon"===Pe(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&Pe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Pe(e.attributes.property).match(/^(og|twitter|fb):/)||Pe(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===Pe(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===Pe(e.attributes.name)||"googlebot"===Pe(e.attributes.name)||"bingbot"===Pe(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===Pe(e.attributes.name)||"generator"===Pe(e.attributes.name)||"framework"===Pe(e.attributes.name)||"publisher"===Pe(e.attributes.name)||"progid"===Pe(e.attributes.name)||Pe(e.attributes.property).match(/^article:/)||Pe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===Pe(e.attributes.name)||"yandex-verification"===Pe(e.attributes.name)||"csrf-token"===Pe(e.attributes.name)||"p:domain_verify"===Pe(e.attributes.name)||"verify-v1"===Pe(e.attributes.name)||"verification"===Pe(e.attributes.name)||"shopify-checkout-api-token"===Pe(e.attributes.name)))return!0}}return!1}(R,v)&&(I||R.type!==H.Text||R.isStyle||R.textContent.trim().length)?ce():-2;const M=Object.assign(R,{id:j});if(r.add(e,M),-2===j)return null;S&&S(e);let D=!f;if(M.type===H.Element){D=D&&!M.needBlock;const t=e.shadowRoot;t&&q(t)&&(M.isShadowHost=!0)}if((M.type===H.Document||M.type===H.Element)&&D){v.headWhitespace&&M.type===H.Element&&"head"===M.tagName&&(I=!1);const t={doc:n,mirror:r,blockClass:o,blockSelector:i,maskAllText:s,unblockSelector:a,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onBlockedImageLoad:T,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:C,ignoreCSSAttributes:A},P=e.childNodes?Array.from(e.childNodes):[];for(const e of P){const n=Ae(e,t);n&&M.childNodes.push(n)}if(function(e){return e.nodeType===e.ELEMENT_NODE}(e)&&e.shadowRoot)for(const n of Array.from(e.shadowRoot.childNodes)){const r=Ae(n,t);r&&(q(e.shadowRoot)&&(r.isShadow=!0),M.childNodes.push(r))}}if(e.parentNode&&V(e.parentNode)&&q(e.parentNode)&&(M.isShadow=!0),M.type!==H.Element||"iframe"!==M.tagName||M.needBlock||function(e,t,n){const r=function(e){try{return e.contentWindow}catch{}}(e);if(!r)return;let o,i=!1;try{o=r.document.readyState}catch(e){return}if("complete"!==o){const r=oe(()=>{i||(t(),i=!0)},n);return void e.addEventListener("load",()=>{ie(r),i=!0,t()})}const a="about:blank";if(r.location.href!==a||e.src===a||""===e.src)return oe(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{const t=ae(e);if(t&&E){const n=Ae(t,{doc:t,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:C,ignoreCSSAttributes:A});n&&E(e,n)}},k),M.type===H.Element&&"img"===M.tagName&&!e.complete&&M.needBlock){const t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{const e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,M,e)}catch(e){}t.removeEventListener("load",n)};t.isConnected&&t.addEventListener("load",n)}return M.type===H.Element&&"link"===M.tagName&&"string"==typeof M.attributes.rel&&("stylesheet"===M.attributes.rel||"preload"===M.attributes.rel&&"string"==typeof M.attributes.href&&"css"===te(M.attributes.href))&&function(e,t,n){let r,o=!1;try{r=e.sheet}catch(e){r=null}if(r)return;const i=oe(()=>{o||(t(),o=!0)},n);e.addEventListener("load",()=>{ie(i),o=!0,t()})}(e,()=>{if(x){const t=Ae(e,{doc:n,mirror:r,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:l,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:v,dataURLOptions:b,inlineImages:_,recordCanvas:w,preserveWhiteSpace:I,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:k,onStylesheetLoad:x,stylesheetLoadTimeout:O,keepIframeSrcFn:C,ignoreCSSAttributes:A});t&&x(e,t)}},O),M.type===H.Element&&delete M.needBlock,M}function Ie(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Re="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let je={map:{},getId:()=>(console.error(Re),-1),getNode:()=>(console.error(Re),null),removeNodeFromMap(){console.error(Re)},has:()=>(console.error(Re),!1),reset(){console.error(Re)}};function Me(e,t,n={}){let r=null,o=0;return function(...i){const a=Date.now();o||!1!==n.leading||(o=a);const s=t-(a-o),l=this;s<=0||s>t?(r&&(!function(...e){et("clearTimeout")(...e)}
50(r),r=null),o=a,e.apply(l,i)):r||!1===n.trailing||(r=tt(()=>{o=!1===n.leading?0:Date.now(),r=null,e.apply(l,i)},s))}}function De(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){tt(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>De(e,t,i||{},!0)}function Ne(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(je=new Proxy(je,{get:(e,t,n)=>("map"===t&&console.error(Re),Reflect.get(e,t,n))}));let Le=Date.now;function Fe(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Be(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ze(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Ue(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function He(e,t,n,r,o){if(!e)return!1;const i=Ue(e);if(!i)return!1;const a=xe(t,n);if(!o){const e=r&&i.matches(r);return a(i)&&!e}const s=Te(i,a);let l=-1;return!(s<0)&&(r&&(l=Te(i,xe(null,r))),s>-1&&l<0||s<l)}function Ve(e,t){return-2===t.getId(e)}function qe(e,t){if(V(e))return!1;const n=t.getId(e);return!t.has(n)||(!e.parentNode||e.parentNode.nodeType!==e.DOCUMENT_NODE)&&(!e.parentNode||qe(e.parentNode,t))}function Ge(e){return Boolean(e.changedTouches)}function We(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function $e(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function Ye(e){return Boolean(e?.shadowRoot)}/[1-9][0-9]{12}/.test(Date.now().toString())||(Le=()=>(new Date).getTime());class Ke{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Je(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Qe(e){const t=e.ownerDocument;if(!t)return!1;const n=function(e){let t,n=e;for(;t=Je(n);)n=t;return n}(e);return t.contains(n)}function Xe(e){const t=e.ownerDocument;return!!t&&(t.contains(e)||Qe(e))}const Ze={};function et(e){const t=Ze[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return Ze[e]=r.bind(window)}function tt(...e){return et("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||{}),rt=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(rt||{}),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||{}),it=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(it||{}),at=(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))(at||{});let st;function lt(e){st=e}function ct(){st=void 0}const ut=e=>{if(!st)return e;return(...t)=>{try{return e(...t)}catch(e){if(st&&!0===st(e))return()=>{};throw e}}};for(var dt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
50+/",ft="undefined"==typeof Uint8Array?[]:new Uint8Array(256),pt=0;pt<64;pt++)ft[dt.charCodeAt(pt)]=pt;class ht{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function mt(e){try{return e.contentDocument}catch(e){}}function gt(e){try{return e.contentWindow}catch(e){}}class yt{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 n=t.cssRules[0];return n&&n.type===CSSRule.STYLE_RULE?n.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 bt{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 n=0;n<e;n++)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 n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&vt(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){const t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const _t=(e,t)=>`${e}@${t}`;class wt{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,n=new bt,r=e=>{let t=e,n=-2;for(;-2===n;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n},o=o=>{if(!o.parentNode||!Xe(o))return;const i=V(o.parentNode)?this.mirror.getId(Je(o)):this.mirror.getId(o.parentNode),a=r(o);if(-1===i||-1===a)return n.addNode(o);const s=Ae(o,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{We(e,this.mirror)&&!He(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),$e(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Ye(o)&&this.shadowDomManager.addShadowRoot(o.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(He(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);const n=gt(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:i,nextId:a,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const e of this.movedSet)Et(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||o(e);for(const e of this.addedSet)kt(this.droppedSet,e)||Et(this.removes,e,this.mirror)?kt(this.movedSet,e)?o(e):this.droppedSet.add(e):o(e);let i=null;for(;n.length;){let e=null;if(i){const t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){const n=t;if(t=t.previous,n){const t=this.mirror.getId(n.value.parentNode);
50if(-1===r(n.value))continue;if(-1!==t){e=n;break}{const t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),o(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 n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).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(!Ve(e.target,this.mirror))switch(e.type){case"characterData":{const t=e.target.textContent;He(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:Oe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Ue(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{const t=e.target;let n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){const n=Z(t),o=t.tagName;r=ee(t,o,n);const i=Y({maskInputOptions:this.maskInputOptions,tagName:o,type:n});r=K({isMasked:Oe(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(He(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let o=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(mt(t))return;n="rr_src"}if(o||(o={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(e.target,o)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!ke(t.tagName,n)&&(o.attributes[n]=Ee(this.doc,J(t.tagName),J(n),r,t,this.maskAttributeFn),"style"===n)){const n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(const e of Array.from(t.style)){const r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||i!==(n?.getPropertyPriority(e)||"")?o.styleDiff[e]=""===i?r:[r,i]:o._unchangedStyles[e]=[r,i]}if(n)for(const e of Array.from(n))""===t.style.getPropertyValue(e)&&(o.styleDiff[e]=!1)}break}case"childList":if(He(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{const n=this.mirror.getId(t),r=V(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);He(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Ve(t,this.mirror)||!function(e,t){return-1!==t.getId(e)}(t,this.mirror)||(this.addedSet.has(t)?(St(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||qe(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[_t(n,r)]?St(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!(!V(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(Ve(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[_t(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);He(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEac
vendor: 4,279 bytes, line 50
50h(e=>this.genAdds(e)),Ye(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 yt(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 St(e,t){e.delete(t),t.childNodes?.forEach(t=>St(e,t))}function Et(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){const t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function kt(e,t){return 0!==e.size&&Tt(e,t)}function Tt(e,t){const{parentNode:n}=t;return!!n&&(!!e.has(n)||Tt(e,n))}const xt=[];function Ot(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 Ct(e,t){const n=new wt;xt.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const o=window?.Zone?.__symbol__?.("MutationObserver");o&&window[o]&&(r=window[o]);const i=new r(ut(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function Pt({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,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]).forEach(a=>{let s=J(a);const u=(t=>a=>{const s=Ot(a);if(He(s,r,o,i,!0))return;let l=null,u=t;if("pointerType"in a){switch(a.pointerType){case"mouse":l=it.Mouse;break;case"touch":l=it.Touch;break;case"pen":l=it.Pen}l===it.Touch?ot[t]===ot.MouseDown?u="TouchStart":ot[t]===ot.MouseUp&&(u="TouchEnd"):it.Pen}else Ge(a)&&(l=it.Touch);null!==l?(c=l,(u.startsWith("Touch")&&l===it.Touch||u.startsWith("Mouse")&&l===it.Mouse)&&(l=null)):ot[t]===ot.Click&&(l=c,c=null);const d=Ge(a)?a.changedTouches[0]:a;if(!d)return;const f=n.getId(s),{clientX:p,clientY:h}=d;ut(e)({type:ot[u],id:f,x:p,y:h,...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(Ie(s,u,t))}),ut(()=>{l.forEach(e=>e())})}function At({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:a}){return Ie("scroll",ut(Me(ut(a=>{const s=Ot(a);if(!s||He(s,r,o,i,!0))return;const l=n.getId(s);if(s===t&&t.defaultView){const n=Fe(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),a.scroll||100)),t)}const It=["INPUT","TEXTAREA","SELECT"],Rt=new WeakMap;function jt({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:a,ignoreSelector:s,maskInputOptions:l,maskInputFn:c,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=Ot(e);const u=e.isTrusted,g=n&&Q(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||It.indexOf(g)<0||He(n,r,o,i,!0))return;const v=n;if(v.classList.contains(a)||s&&v.matches(s))return;const b=Z(n);let _=ee(v,g,b),w=!1;const S=Y({maskInputOptions:l,tagName:g,type:b}),E=Oe(n,f,h,p,m,S);"radio"!==b&&"checkbox"!==b||(w=n.checked),_=K({isMasked:E,element:n,value:_,maskInputFn:c}),y(n,d?{text:_,isChecked:w,userTriggered:u}:{text:_,isChecked:w});const k=n.name;"radio"===b&&k&&w&&t.querySelectorAll(`input[type="radio"][name="${k}
50"]`).forEach(e=>{if(e!==n){const t=K({isMasked:E,element:e,value:ee(e,g,b),maskInputFn:c});y(e,d?{text:t,isChecked:!w,userTriggered:!1}:{text:t,isChecked:!w})}})}function y(t,r){const o=Rt.get(t);if(!o||o.text!==r.text||o.isChecked!==r.isChecked){Rt.set(t,r);const o=n.getId(t);ut(e)({...r,id:o})}}const v=("last"===u.input?["change"]:["input","change"]).map(e=>Ie(e,ut(g),t)),b=t.defaultView;if(!b)return()=>{v.forEach(e=>e())};const _=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),w=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return _&&_.set&&v.push(...w.map(e=>De(e[0],e[1],{set(){ut(g)({target:this,isTrusted:!1})}},!1,b))),ut(()=>{v.forEach(e=>e())})}function Mt(e){return function(e,t){if(Ft("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||Ft("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||Ft("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||Ft("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){const n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){const n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}(e,[])}function Dt(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function Nt({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);const o="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=o?.prototype?Object.getOwnPropertyDescriptor(o?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&o&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){const n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),ut(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function Lt(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=Ct(e,e.doc));const o=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(!1===t.mousemove)return()=>{};const o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500;let a,s=[];const l=Me(ut(t=>{const n=Date.now()-a;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],a=null}),i),c=ut(Me(ut(e=>{const t=Ot(e),{clientX:n,clientY:o}=Ge(e)?e.changedTouches[0]:e;a||(a=Le()),s.push({x:n,y:o,id:r.getId(t),timeOffset:Le()-a}),l("undefined"!=typeof DragEvent&&e instanceof DragEvent?rt.Drag:e instanceof MouseEvent?rt.MouseMove:rt.TouchMove)}),o,{trailing:!1})),u=[Ie("mousemove",c,n),Ie("touchmove",c,n),Ie("drag",c,n)];return ut(()=>{u.forEach(e=>e())})}(e),i=Pt(e),a=At(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return Ie("resize",ut(Me(ut(()=>{const t=Be(),o=ze();n===t&&r===o||(e({width:Number(o),height:Number(t)}),n=t,r=o)}),200)),t)}(e,{win:n}),l=jt(e),c=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:a}){const s=ut(a=>Me(ut(i=>{const s=Ot(i);if(!s||He(s,t,n,r,!0))return;const{currentTime:l,volume:c,muted:u,playbackRate:d}=s;e({type:a,id:o.getId(s),currentTime:l,volume:c,muted:u,playbackRate:d})}),i.media||500)),l=[Ie("play",s(at.Play),a),Ie("pause",s(at.Pause),a),Ie("seeked",s(at.Seeked),a),Ie("volumechange",s(at.VolumeChange),a),Ie("ratechange",s(at.RateChange),a)];return ut(()=>{l.forEach(e=>e())})}(e);let u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:ut((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=Dt(o,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:s}]}),r.apply(o,i)})});const i=r.CSSStyleSheet.prototype.deleteRule;let a,s;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:ut((r,o,i)=>{const[a]=i,{id:s,styleId:l}=Dt(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:a}]}),r.apply(o,i)})}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:ut((r,o,i)=>{const[a]=i,{id:s,styleId:l}=Dt(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:a}),r.apply(o,i)})})),r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:ut((r,o,i)=>{const[a]=i,{id:s,styleId:l}=Dt(o,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:a}),r.apply(o,i)})}));const l={};Bt("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Bt("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Bt("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Bt("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const c={};return Object.entries(l).forEach(([r,o])=>{c[r]={insertRule:o.prototype.insertRule,deleteRule:o.prototype.deleteRule},o.prototype.insertRule=new Proxy(c[r].insertRule,{apply:ut((r,o,i)=>{const[a,s]=i,{id:l,styleId:c}=Dt(o.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||c&&-1!==c)&&e({id:l,styleId:c,adds:[{rule:a,index:[...Mt(o),s||0]}]}),r.apply(o,i)})}),o.prototype.deleteRule=new Proxy(c[r].deleteRule,{apply:ut((r,o,i)=>{const[a]=i,{id:s,styleId:l}=Dt(o.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...Mt(o),a]}]}),r.apply(o,i)})})}),ut(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,a&&(r.CSSStyleSheet.prototype.replace=a),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=c[e].insertRule,t.prototype.deleteRule=c[e].deleteRule})})}(e,{win:n}),d=Nt(e,e.doc),f=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){const i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:ut((o,a,s)=>{const[l,c,u]=s;if(n.has(l))return i.apply(a,[l,c,u]);const{id:d,styleId:f}=Dt(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||f&&-1!==f)&&e({id:d,styleId:f,set:{property:l,value:c,priority:u},index:Mt(a.parentRule)}),o.apply(a,s)})});const a=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:ut((o,i,s)=>{const[l]=s;if(n.has(l))return a.apply(i,[l]);const{id:c,styleId:u}=Dt(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(c&&-1!==c||u&&-1!==u)&&e({id:c,styleId:u,remove:{property:l},index:Mt(i.parentRule)}),o.apply(i,s)})}),ut(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=a})}(e,{win:n}),e.collectFonts&&(p=function({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){const r=new i(e,t,n);return o.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};const a=Ne(t.fonts,"add",function(t){return function(n){return tt(ut(()=>{const t=o.get(n);t&&(e(t),o.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=i}),r.push(a),ut(()=>
vendor: 1,528 bytes, line 50
50{r.forEach(e=>e())})}(e)));const h=function(e){const{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:a}=e;let s=!0;const l=ut(()=>{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:d}=a;He(s,r,o,i,!0)||He(u,r,o,i,!0)||l.push({start:n.getId(s),startOffset:c,end:n.getId(u),endOffset:d})}a({ranges:l})});return l(),Ie("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){const n=e.defaultView;return n&&n.customElements?Ne(n.customElements,"define",function(e){return function(n,r,o){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,o])}}):()=>{}}(e),g=[];for(const t of e.plugins)g.push(t.observer(t.callback,n,t.options));return ut(()=>{xt.forEach(e=>e.reset()),r?.disconnect(),o(),i(),a(),s(),l(),c(),u(),d(),f(),p(),h(),m(),g.forEach(e=>e())})}function Ft(e){return void 0!==window[e]}function Bt(e){return Boolean(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class zt{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){const o=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e);let a=o.get(t);return a||(a=this.generateIdFn(),o.set(t,a),i.set(a,t)),a}getIds(e,t){const n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
vendor: 7,604 bytes, line 50
50getRemoteId(e,t,n){const r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;const o=r.get(t);return o||-1}getRemoteIds(e,t){const n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}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 Ut{constructor(){this.crossOriginIframeMirror=new zt(ce),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Ht{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new zt(ce),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new zt(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=gt(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&&gt(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);const n=mt(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){const t=e;if("rrweb"!==t.data.type||t.origin!==t.data.origin)return;if(!e.source)return;const n=this.crossOriginIframeMap.get(e.source);if(!n)return;const r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,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 n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:nt.IncrementalSnapshot,data:{source:rt.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case 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 rt.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);const n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case rt.Drag:case rt.TouchMove:case rt.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case rt.ViewportResize:return!1;case rt.MediaInteraction:case rt.MouseInteraction:case rt.Scroll:case rt.CanvasMutation:case rt.Input:return this.replaceIds(t.data,e,["id"]),t;case rt.StyleSheetRule:case rt.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case rt.Font:return t;case rt.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case rt.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(const o of r)(Array.isArray(t[o])||"number"==typeof t[o])&&(Array.isArray(t[o])?t[o]=e.getIds(n,t[o]):t[o]=e.getId(n,t[o]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}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===H.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class Vt{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 n=Ct({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(At({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),tt(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(Nt({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){const t=mt(e),n=gt(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){const n=this;this.restoreHandlers.push(Ne(e.prototype,"attachShadow",function(e){return function(r){const o=e.call(this,r);return this.shadowRoot&&Xe(this)&&n.addShadowRoot(this.shadowRoot,t),o}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Gt{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ke,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;const n={id:t,styleIds:[]},r=[];for(const t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:W(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class Wt{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){const n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){et("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let $t,Yt;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)}
50const Kt=new $;function Jt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:a=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskAllText:c=!1,maskTextClass:u="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,maxCanvasSize:w=null,packFn:S,sampling:E={},dataURLOptions:k={},mousemoveWait:T,recordDOM:x=!0,recordCanvas:O=!1,recordCrossOriginIframes:C=!1,recordAfter:P=("DOMContentLoaded"===e.recordAfter?e.recordAfter:"load"),userTriggeredOnInput:A=!1,collectFonts:I=!1,inlineImages:R=!1,plugins:j,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:D=new Set([]),errorHandler:N,onMutation:L,getCanvasManager:F}=e;lt(N);const B=!C||window.parent===window;let z=!1;if(!B)try{window.parent.document&&(z=!1)}catch(e){z=!0}if(B&&!t)throw new Error("emit function is required");if(!B&&!z)return()=>{};void 0!==T&&void 0===E.mousemove&&(E.mousemove=T),Kt.reset();const U=!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:{},H=!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 V;!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 q=0;const G=e=>{for(const t of j||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!z&&(e=S(e)),e};$t=(e,o)=>{const i=e;if(i.timestamp=Le(),!xt[0]?.isFrozen()||i.type===nt.FullSnapshot||i.type===nt.IncrementalSnapshot&&i.data.source===rt.Mutation||xt.forEach(e=>e.unfreeze()),B)t?.(G(i),o);else if(z){const e={type:"rrweb",event:G(i),origin:window.location.origin,isCheckout:o};window.parent.postMessage(e,"*")}if(i.type===nt.FullSnapshot)V=i,q=0;else if(i.type===nt.IncrementalSnapshot){if(i.data.source===rt.Mutation&&i.data.isAttachIframe)return;q++;const e=r&&q>=r,t=n&&V&&i.timestamp-V.timestamp>n;(e||t)&&te(!0)}};const W=e=>{$t({type:nt.IncrementalSnapshot,data:{source:rt.Mutation,...e}})},Y=e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.Scroll,...e}}),K=e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),J=new Gt({mutationCb:W,adoptedStyleSheetCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.AdoptedStyleSheet,...e}})}),Q="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new Ut:new Ht({mirror:Kt,mutationCb:W,stylesheetManager:J,recordCrossOriginIframes:C,wrappedEmit:$t});for(const e of j||[])e.getMirror&&e.getMirror({nodeMirror:Kt,crossOriginIframeMirror:Q.crossOriginIframeMirror,crossOriginIframeStyleMirror:Q.crossOriginIframeStyleMirror});const X=new Wt,Z=function(e,t){try{return e?e(t):new ht}catch{return console.warn("Unable to initialize CanvasManager"),new ht}}(F,{mirror:Kt,win:window,mutationCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.CanvasMutation,...e}}),recordCanvas:O,blockClass:o,blockSelector:i,unblockSelector:a,maxCanvasSize:w,sampling:E.canvas,dataURLOptions:k,errorHandler:N}),ee="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Vt:new qt({mutationCb:W,scrollCb:Y,bypassOptions:{onMutation:L,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:U,dataURLOptions:k,maskAttributeFn:v,maskTextFn:_,maskInputFn:b,recordCanvas:O,inlineImages:R,sampling:E,slimDOMOptions:H,iframeManager:Q,stylesheetManager:J,canvasManager:Z,keepIframeSrcFn:M,processedNodeManager:X,ignoreCSSAttributes:D},mirror:Kt}),te=(e=!1)=>
50{if(!x)return;$t({type:nt.Meta,data:{href:window.location.href,width:ze(),height:Be()}},e),J.reset(),ee.init(),xt.forEach(e=>e.lock());const t=function(e,t){const{mirror:n=new $,blockClass:r="rr-block",blockSelector:o=null,unblockSelector:i=null,maskAllText:a=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:c=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:v=!1,dataURLOptions:b,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:O=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return Ae(e,{doc:e,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:s,unmaskTextClass:l,maskTextSelector:c,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===v,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===v?{}:v,dataURLOptions:b,inlineImages:f,recordCanvas:p,preserveWhiteSpace:_,onSerialize:w,onIframeLoad:S,iframeLoadTimeout:E,onBlockedImageLoad:k,onStylesheetLoad:T,stylesheetLoadTimeout:x,keepIframeSrcFn:O,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:Kt,blockClass:o,blockSelector:i,unblockSelector:a,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:U,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,slimDOM:H,dataURLOptions:k,recordCanvas:O,inlineImages:R,onSerialize:e=>{We(e,Kt)&&Q.addIframe(e),$e(e,Kt)&&J.trackLinkElement(e),Ye(e)&&ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Q.attachIframe(e,t);const n=gt(e);n&&Z.addWindow(n),ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{J.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{W({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:M,ignoreCSSAttributes:D});if(!t)return console.warn("Failed to snapshot the document");$t({type:nt.FullSnapshot,data:{node:t,initialOffset:Fe(window)}}),xt.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&J.adoptStyleSheets(document.adoptedStyleSheets,Kt.getId(document))};Yt=te;try{const e=[],t=e=>ut(Lt)({onMutation:L,mutationCb:W,mousemoveCb:(e,t)=>$t({type:nt.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.MouseInteraction,...e}}),scrollCb:Y,viewportResizeCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.ViewportResize,...e}}),inputCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.Input,...e}}),mediaInteractionCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.MediaInteraction,...e}}),styleSheetRuleCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.StyleSheetRule,...e}}),styleDeclarationCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.StyleDeclaration,...e}}),canvasMutationCb:K,fontCb:e=>$t({type:nt.IncrementalSnapshot,data:{source:rt.Font,...e}}),selectionCb:e=>{$t({type:nt.IncrementalSnapshot,data:{source:rt.Selection,...e}})},customElementCb:e=>{$t({type:nt.IncrementalSnapshot,data:{source:rt.CustomElement,...e}})},blockClass:o,ignoreClass:s,ignoreSelector:l,maskAllText:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:U,inlineStylesheet:h,sampling:E,recordDOM:x,recordCanvas:O,inlineImages:R,userTriggeredOnInput:A,collectFonts:I,doc:e,maskAttributeFn:v,maskInputFn:b,maskTextFn:_,keepIframeSrcFn:M,blockSelector:i,unblockSelector:a,slimDOMOptions:H,dataURLOptions:k,mirror:Kt,iframeManager:Q,stylesheetManager:J,shadowDomManager:ee,processedNodeManager:X,canvasManager:Z,ignoreCSSAttributes:D,plugins:j?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>$t({type:nt.Plugin,data:{plugin:e.name,payload:t}}
50)}))||[]},{});Q.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});const n=()=>{te(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(Ie("DOMContentLoaded",()=>{$t({type:nt.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(Ie("load",()=>{$t({type:nt.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),X.destroy(),Yt=void 0,ct()}}catch(e){console.warn(e)}}var Qt,Xt;Jt.mirror=Kt,Jt.takeFullSnapshot=function(e){if(!Yt)throw new Error("please take full snapshot after start recording");Yt(e)},(Xt=Qt||(Qt={}))[Xt.NotStarted=0]="NotStarted",Xt[Xt.Running=1]="Running",Xt[Xt.Stopped=2]="Stopped";function Zt(e){return e>9999999999?e:1e3*e}function en(e){return e>9999999999?e/1e3:e}function tn(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 nn(e){return e.closest("button,a")||e}function rn(e){const t=on(e);return t&&t instanceof Element?nn(t):t}function on(e){return function(e){return"object"==typeof e&&!!e&&"target"in e}(e)?e.target:e}let an;function sn(e){return an||(an=[],(0,b.fill)(j,"open",function(e){return function(...t){if(an)try{an.forEach(e=>e())}catch{}return e.apply(j,t)}})),an.push(e),()=>{const t=an?an.indexOf(e):-1;t>-1&&an.splice(t,1)}}const ln=new Set([rt.Mutation,rt.StyleSheetRule,rt.StyleDeclaration,rt.AdoptedStyleSheet,rt.CanvasMutation,rt.Selection,rt.MediaInteraction]);class cn{constructor(e,t,n=tn){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=n}addListeners(){const e=sn(()=>{this._lastMutation=dn()});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(!un.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 n={timestamp:en(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=en(e)}registerScroll(e=Date.now()){this._lastScroll=en(e)}registerClick(e){const t=nn(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=dn();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});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,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,o=!n&&!r,{clickCount:i,clickBreadcrumb:a}=e;if(o){const n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:j.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:i||1}};return void this._addBreadcrumbEvent(t,o)}if(i>1){const e={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:j.location.href,route:t.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,P.setTimeout)(()=>this._checkClicks(),1e3)}}const un=["A","BUTTON","INPUT"];function dn(){return Date.now()/1e3}function fn(e,t){try{if(!function(e){return 3===e.type}(t))return;const{source:n}=t.data;if(ln.has(n)&&e.registerMutation(t.timestamp),n===rt.Scroll&&e.registerScroll(t.timestamp),function(e){return e.data.source===rt.MouseInteraction}(t)){const{type:n,id:r}=t.data,o=Jt.mirror.getNode(r);o instanceof HTMLElement&&n===ot.Click&&e.registerClick(o)}}catch{}}function pn(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var hn=(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))(hn||{});const mn=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function gn(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(mn.has(n)){let r=n;"data-testid"!==n&&"data-test-id"!==n||(r="testId"),t[r]=e[n]}return t}const yn=e=>t=>{if(!e.isEnabled())return;const n=function(e){const{target:t,message:n}=function(e){const t="click"===e.name;let n,r=null;try{r=t?rn(e.event):on(e.event),n=(0,R.htmlTreeAsString)(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}(e);return pn({category:`ui.${e.name}`,...vn(t,n)})}(t);if(!n)return;const r="click"===t.name,o=r?t.event:void 0;var i,a,s;!(r&&e.clickDetector&&o?.target)||o.altKey||o.metaKey||o.ctrlKey||o.shiftKey||(i=e.clickDetector,a=n,s=rn(t.event),i.handleClick(a,s)),tn(e,n)};function vn(e,t){const n=Jt.mirror.getId(e),r=n&&Jt.mirror.getNode(n),o=r&&Jt.mirror.getMeta(r),i=o&&function(e){return e.type===hn.Element}(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>
50e.type===hn.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:gn(i.attributes)}}:{}}}function bn(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=function(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:a}=e;if(!a||function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable}(a)||!i)return null;const s=t||r||o,l=1===i.length;if(!s&&l)return null;const c=(0,R.htmlTreeAsString)(a,{maxStringLength:200})||"<unknown>",u=vn(a,c);return pn({category:"ui.keyDown",message:c,data:{...u.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}(t);n&&tn(e,n)}const _n={resource:function(e){const{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:a,encodedBodySize:s,responseStatus:l,transferSize:c}=e;if(["fetch","xmlhttprequest"].includes(n))return null;return{type:`${t}.${n}`,start:En(i),end:En(o),name:r,data:{size:c,statusCode:l,decodedBodySize:a,encodedBodySize:s}}},paint:function(e){const{duration:t,entryType:n,name:r,startTime:o}=e,i=En(o);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){const{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:a,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:c,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;if(0===o)return null;return{type:`${t}.${m}`,start:En(p),end:En(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:a,duration:o,domInteractive:c,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:u,loadEventEnd:d,domComplete:i,redirectCount:f}}}};function wn(e,t){return({metric:n})=>{t.replayPerformanceEntries.push(e(n))}}function Sn(e){const t=_n[e.entryType];return t?t(e):null}function En(e){return(((0,S.browserPerformanceTimeOrigin)()||j.performance.timeOrigin)+e)/1e3}function kn(e){const t=e.entries[e.entries.length-1];return Cn(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function Tn(e){return void 0!==e.sources}function xn(e){const t=[],n=[];for(const r of e.entries)if(Tn(r)){const e=[];for(const t of r.sources)if(t.node){n.push(t.node);const r=Jt.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return Cn(e,"cumulative-layout-shift",n,t)}function On(e){const t=e.entries[e.entries.length-1];return Cn(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function Cn(e,t,n,r){const o=e.value,i=e.rating,a=En(o);return{type:"web-vital",name:t,start:a,end:a,data:{value:o,size:o,rating:i,nodeIds:n?n.map(e=>Jt.mirror.getId(e)):void 0,attributions:r}}}const Pn="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;const An=["log","warn","error"],In="[Replay] ";function Rn(e,t="info"){(0,p.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${In}${e}`},{level:t})}const jn=function(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Pn?(An.forEach(e=>{n[e]=(...n)=>{g.debug[e](In,...n),t&&Rn(n.join(""),(0,_.severityLevelFromString)(e))}}),n.exception=(r,...o)=>{o.length&&n.error&&n.error(...o),g.debug.error(In,r),e?(0,a.captureException)(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Rn(r,"error")},n.infoTick=(...e)=>{g.debug.log(In,...e),t&&setTimeout(()=>Rn(e[0]),0)}):An.forEach(e=>{n[e]=()=>{}}),n}();class Mn extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class Dn{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>F)throw new Mn;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:Zt(e)}}class Nn{constructor(e){this._onMessage=({data:e})=>{const t=e;if("number"!=typeof t.id)return;
50const n=this._pending.get(t.id);if(n&&n.method===t.method){if(this._pending.delete(t.id),!t.success)return Pn&&jn.error("Error in compression worker: ",t.response),void n.reject(new Error("Error in compression worker"));n.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:n})=>{n.success?e():(Pn&&jn.warn("Received worker message with unsuccessful status",n),t(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{Pn&&jn.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(){Pn&&jn.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new Error("Worker destroyed"))),this._pending.clear(),this._worker.terminate()}postMessage(e,t){const n=this._getAndIncrementId();return new Promise((r,o)=>{this._pending.set(n,{method:e,resolve:r,reject:o});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),o(e)}})}_getAndIncrementId(){return this._id++}}class Ln{constructor(e){this._worker=new Nn(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=Zt(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>F?Promise.reject(new Mn):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Pn&&jn.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 Fn{constructor(e){this._fallback=new Dn,this._compression=new Ln(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(Pn&&jn.exception(e,"Failed to load the compression worker, falling back to simple buffer"))}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(const t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Pn&&jn.exception(e,"Failed to add events when switching buffers.")}}}function Bn({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']);return URL.createObjectURL(e)}();return""}();if(!t)return;Pn&&jn.log("Using compression worker"+(e?` from ${e}`:""));const n=new Worker(t);return new Fn(n)}catch(e){Pn&&jn.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return Pn&&jn.log("Using simple buffer"),new Dn}function zn(){try{return"sessionStorage"in j&&!!j.sessionStorage}catch{return!1}}function Un(e){!function(){if(!zn())return;try{j.sessionStorage.removeItem(M)}catch{}}(),e.session=void 0}function Hn(e){return void 0!==e&&Math.random()<e}function Vn(e){if(zn())try{j.sessionStorage.setItem(M,JSON.stringify(e))}catch{}}function qn(e){const t=Date.now();return{id:e.id||(0,y.uuid4)(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function Gn({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const o=function(e,t){return Hn(e)?"session":!!t&&"buffer"}(e,t),i=qn({sampled:o,previousSessionId:r});return n&&Vn(i),i}function Wn(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function $n(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Wn(e.started,t,r)||Wn(e.lastActivity,n,r)}(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function Yn({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const o=r.stickySession&&function(){if(!zn())return null;try{const e=j.sessionStorage.getItem(M);if(!e)return null;const t=JSON.parse(e);return Pn&&jn.infoTick("Loading existing session"),qn(t)}catch{return null}}();return o?$n(o,{sessionIdleExpire:e,maxReplayDuration:t})?(Pn&&jn.infoTick("Session in sessionStorage is expired, creating new one..."),Gn(r,{previousSessionId:o.id})):o:(Pn&&jn.infoTick("Creating new session"),Gn(r,{previousSessionId:n}))}function Kn(e,t,n){return!!Qn(e,t)&&(Jn(e,t,n),!0)}async function Jn(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const o="buffer"===e.recordingMode;try{n&&o&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const i=function(e,t){try{if("function"==typeof t&&function(e){return e.type===nt.Custom}(e))return t(e)}catch(e){return Pn&&jn.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,e.getOptions().beforeAddRecordingEvent);if(!i)return;return await r.addEvent(i)}catch(t){const n=t&&t instanceof Mn,i=n?"eventBufferOverflow":"eventBufferError",a=(0,s.getClient)();if(a){const e=n?"buffer_overflow":"internal_sdk_error";a.recordDroppedEvent(e,"replay")}if(n&&o)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:i})}}function Qn(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Zt(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(Pn&&jn.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function Xn(e){return!e.type}function Zn(e){return"transaction"===e.type}function er(e){return"feedback"===e.type}function tr(e){return(t,n)=>{if(!e.isEnabled()||!Xn(t)&&!Zn(t))return;const r=n.statusCode;!r||r<200||r>=300||(Zn(t)?function(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}(e,t):function(e,t){const n=e.getContext();t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id);if("buffer"!==e.recordingMode||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();if("function"==typeof r&&!r(t))return;(0,P.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t))}}function nr(e){return t=>{e.isEnabled()&&Xn(t)&&function(e,t){const n=t.exception?.values?.[0]?.value;if("string"!=typeof n)return;if(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i)){tn(e,pn({category:"replay.hydrate-error",data:{url:(0,T.getLocationHref)()}}))}}(e,t)}}function rr(e){const t=(0,s.getClient)();t&&t.on("beforeAddBreadcrumb",t=>function(e,t){if(!e.isEnabled()||!or(t))return;const n=function(e){if(!or(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 pn(e);let n=!1;const r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>L?(n=!0,`${e.slice(0,L)}…`):e;if("object"==typeof e)try{const t=(0,v.normalize)(e,7);return JSON.stringify(t).length>L?(n=!0,`${JSON.stringify(t,null,2).slice(0,L)}…`):t}catch{}return e});return pn({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(e);return pn(e)}(t);n&&tn(e,n)}(e,t))}function or(e){return!!e.category}function ir(){const e=(0,s.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;const t=(0,u.getActiveSpan)();if(t){delete(0,r.getDynamicSamplingContextFromSpan)(t).replay_id}}function ar(e){const t=(0,s.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);const n=(0,u.getActiveSpan)();if(n){(0,r.getDynamicSamplingContextFromSpan)(n).replay_id=e}}function sr(e){return Object.assign((t,n)=>{if(e.session&&$n(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire}
50)&&ir(),!e.isEnabled()||e.isPaused())return t;if(function(e){return"replay_event"===e.type}(t))return delete t.breadcrumbs,t;if(!Xn(t)&&!Zn(t)&&!er(t))return t;if(!e.checkAndHandleExpiredSession())return ir(),t;if(er(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,n)&&!e.getOptions()._experiments.captureExceptions)return Pn&&jn.log("Ignoring error from rrweb internals",t),null;const r=function(e,t){return"buffer"===e.recordingMode&&t.message!==D&&!(!t.exception||t.type)&&Hn(e.getOptions().errorSampleRate)}(e,t);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&"buffer"===e.session?.sampled){const t=e.session;t.dirty=!0,e.getOptions().stickySession&&Vn(t)}return t},{id:"Replay"})}function lr(e,t){return t.map(({type:t,start:n,end:r,name:o,data:i})=>{const a=e.throttledAddEvent({type:nt.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:o,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof a?Promise.resolve(null):a})}function cr(e){return t=>{if(!e.isEnabled())return;const n=function(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(lr(e,[n]),!1)))}}function ur(e,t){e.isEnabled()&&null!==t&&(function(e,t){return(!Pn||!e.getOptions()._experiments.traceInternals)&&(0,c.isSentryRequestUrl)(t,(0,s.getClient)())}(e,t.name)||e.addUpdate(()=>(lr(e,[t]),!0)))}function dr(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 n=(0,I.serializeFormData)(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function fr(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function pr(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function hr(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:a,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:{method:i,statusCode:a,request:s,response:l}}}function mr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function gr(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:o,warnings:i}=function(e){if(!e||"string"!=typeof e)return{body:e};const t=e.length>N,n=function(e){const t=e[0],n=e[e.length-1];return"["===t&&"]"===n||"{"===t&&"}"===n}(e);if(t){const t=e.slice(0,N);return n?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=o,i?.length&&(r._meta={warnings:i}),r}function yr(e,t){return Object.entries(e).reduce((n,[r,o])=>{const i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=o),n},{})}function vr(e,t){const n=function(e,t=j.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(j.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;if(!e.endsWith("/")&&r.endsWith("/"))return r.slice(0,-1);return r}(e);return(0,w.stringMatchesSomePattern)(n,t)}async function br(e,t,n){try{const r=await async function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:a,method:s,status_code:l=0,request_body_size:c,response_body_size:u}=e.data,d=vr(a,n.networkDetailAllowUrls)&&!vr(a,n.networkDetailDenyUrls),f=d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const o=n?function(e,t){if(1===e.length&&"string"!=typeof e[0])return wr(e[0],t);
50if(2===e.length)return wr(e[1],t);return{}}(n,t):{};if(!e)return gr(o,r,void 0);const i=(0,I.getFetchRequestArgBody)(n),[a,s]=(0,I.getBodyString)(i,jn),l=gr(o,r,a);if(s)return pr(l,s);return l}(n,t.input,c):mr(c),p=await async function(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,o){if(!e&&void 0!==o)return mr(o);const i=r?_r(r.headers,n):{};if(!r||!t&&void 0!==o)return gr(i,o,void 0);const[a,s]=await async function(e){const t=function(e){try{return e.clone()}catch(e){Pn&&jn.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,n)=>{const r=(0,P.setTimeout)(()=>n(new Error("Timeout while trying to read response body")),500);(async function(e){return await e.text()})(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}(t);return[e]}catch(e){return e instanceof Error&&e.message.indexOf("Timeout")>-1?(Pn&&jn.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(Pn&&jn.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:o}){try{const i=e?.length&&void 0===n?dr(e):n;return r?gr(o,i,t?e:void 0):mr(i)}catch(e){return Pn&&jn.exception(e,"Failed to serialize response body"),gr(o,n,void 0)}}(a,{networkCaptureBodies:t,responseBodySize:o,captureDetails:e,headers:i});if(s)return pr(l,s);return l}(d,n,t.response,u);return{startTimestamp:o,endTimestamp:i,url:a,method:s,statusCode:l,request:f,response:p}}(e,t,n),o=hr("resource.fetch",r);ur(n.replay,o)}catch(e){Pn&&jn.exception(e,"Failed to capture fetch breadcrumb")}}function _r(e,t){const n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function wr(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?_r(n,t):Array.isArray(n)?{}:yr(n,t):{}}async function Sr(e,t,n){try{const r=function(e,t,n){const r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:a,xhr:s}=t,{url:l,method:c,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!s||!vr(l,n.networkDetailAllowUrls)||vr(l,n.networkDetailDenyUrls)){return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:mr(d),response:mr(f)}}const p=s[A.SENTRY_XHR_DATA_KEY],h=p?yr(p.request_headers,n.networkRequestHeaders):{},m=yr((0,I.parseXhrResponseHeaders)(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?(0,I.getBodyString)(a,jn):[void 0],[v,b]=n.networkCaptureBodies?function(e){const t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return function(e,t){try{if("string"==typeof e)return[e];if(e instanceof Document)return[e.body.outerHTML];if("json"===t&&e&&"object"==typeof e)return[JSON.stringify(e)];if(!e)return[void 0]}catch(t){return Pn&&jn.exception(t,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Pn&&jn.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}(e.response,e.responseType)}catch(e){t.push(e)}return Pn&&jn.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],_=gr(h,d,g),w=gr(m,f,v);return{startTimestamp:o,endTimestamp:i,url:l,method:c,statusCode:u,request:y?pr(_,y):_,response:b?pr(w,b):w}}(e,t,n),o=hr("resource.xhr",r);ur(n.replay,o)}catch(e){Pn&&jn.exception(e,"Failed to capture xhr breadcrumb")}}function Er(e,t){const{xhr:n,input:r}=t;if(!n)return;const o=dr(r),i=n.getResponseHeader("content-length")?fr(n.getResponseHeader("content-length")):function(e,t){try{return dr("json"===t&&e&&"object"==typeof e?JSON.stringify(e):e)}catch{return}}(n.response,n.responseType);void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}function kr(e){const t=(0,s.getClient)();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:o,networkRequestHeaders:i,networkResponseHeaders:a};t&&t.on("beforeAddBreadcrumb",(e,t)=>function(e,t,n){if(!t.data)return;try{(function(e){return"xhr"===e.category})(t)&&function(e){return e?.xhr}(n)&&(Er(t,n),Sr(t,n,e)),function(e){return"fetch"===e.category}(t)&&function(e){return void 0!==e?.input}(n)&&(!function(e,t){const{input:n,response:r}=t,o=dr(n?(0,I.getFetchRequestArgBody)(n):void 0),i=r?fr(r.headers.get("content-length")):void 0;void 0!==o&&(e.data.request_body_size=o),void 0!==i&&(e.data.response_body_size=i)}(t,n),br(t,n,e))}
50catch(e){Pn&&jn.exception(e,"Error when enriching network breadcrumb")}}(s,e,t))}catch{}}function Tr(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const xr=h.GLOBAL_OBJ.navigator;function Or(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession())return void(Pn&&jn.warn("Received replay event after session expired."));const o=r||!t;t=!0,function(e){const t=e.data;if(!(e.type===nt.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===rt.Mutation&&"attributes"in t&&Array.isArray(t.attributes)))return;for(const e of t.attributes){const t=Jt.mirror.getNode(e.id),n=t&&Jt.mirror.getMeta(t);if(n?.type===hn.Element)for(const[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}(n),e.clickDetector&&fn(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&o&&e.setInitialState(),!Kn(e,n,o))return!0;if(!o)return!1;const t=e.session;if(function(e,t){if(!t||0!==e.session?.segmentId)return;Kn(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,o),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){const n=e.eventBuffer.getEarliestTimestamp();n&&(Pn&&jn.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&Vn(t))}return t?.previousSessionId||"session"===e.recordingMode&&e.flush(),!0})}}async function Cr({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){const a=function({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}\n`;if("string"==typeof e)n=`${r}${e}`;else{const t=(new TextEncoder).encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:f}=r,p=(0,s.getClient)(),h=(0,s.getCurrentScope)(),m=p?.getTransport(),g=p?.getDsn();if(!(p&&m&&g&&i.sampled))return Promise.resolve({});const y={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:i.sampled},v=await async function({client:e,scope:t,replayId:n,event:r}){const o={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,o);const i=await(0,l.prepareEvent)(e.getOptions(),r,o,t,e,(0,s.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u,settings:d}=a?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},i}({scope:h,client:p,replayId:t,event:y});if(!v)return p.recordDroppedEvent("event_processor","replay"),Pn&&jn.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete v.sdkProcessingMetadata;const b=function(e,t,n,r){return(0,E.createEnvelope)((0,E.createEventEnvelopeHeaders)(e,(0,E.getSdkMetadataForEnvelopeHeader)(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:"string"==typeof t?(new TextEncoder).encode(t).length:t.length},t]])}(v,a,g,p.getOptions().tunnel);let _;try{_=await m.send(b)}catch(e){const t=new Error(D);try{t.cause=e}catch{}throw t}const w=(0,k.updateRateLimits)({},_);if((0,k.isRateLimited)(w,"replay"))throw new Ar(w);if("number"==typeof _.statusCode&&(_.statusCode<200||_.statusCode>=300))throw new Pr(_.statusCode);return _}
50class Pr extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class Ar extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class Ir extends Error{constructor(){super("Session is too long, not sending replay")}}async function Rr(e,t={count:0,interval:5e3}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Cr(e),!0}catch(n){if(n instanceof Pr||n instanceof Ar)throw n;if((0,a.setContext)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){const e=new Error(`${D} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{(0,P.setTimeout)(async()=>{try{await Rr(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}const jr="__THROTTLED";function Mr(e,t,n){const r=new Map;let o=!1;return(...i)=>{const a=Math.floor(Date.now()/1e3);if((e=>{const t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})})(a),[...r.values()].reduce((e,t)=>e+t,0)>=t){const e=o;return o=!0,e?"__SKIPPED":jr}o=!1;const s=r.get(a)||0;return r.set(a,s+1),e(...i)}}class Dr{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return(0,f.debounce)(e,t,{...n,setTimeoutImpl:P.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=Mr((e,t)=>function(e,t,n){return Qn(e,t)?Jn(e,t,n):Promise.resolve(null)}(this,e,t),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),o=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(o&&(this.clickDetector=new cn(this,o)),Pn){const t=e._experiments;jn.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===j.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const e=pn({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{const e=pn({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{bn(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){Pn&&jn.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){const{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;this._requiresManualStart=r,r||(this._initializeSessionForSampling(e),this.session?!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",Pn&&jn.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording()):Pn&&jn.exception(new Error("Unable to initialize and create session")))}start(){if(this._isEnabled&&"session"===this.recordingMode)return void(Pn&&jn.log("Recording is already in progress"));if(this._isEnabled&&"buffer"===this.recordingMode)return void(Pn&&jn.log("Buffering is in progress, call `flush()` to save the replay"));Pn&&jn.infoTick("Starting replay in session mode"),this._updateUserActivity();const e=Yn({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(Pn&&jn.log("Buffering is in progress, call `flush()` to save the replay"));Pn&&jn.infoTick("Starting replay in buffer mode");const e=Yn({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=Jt({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Or(this),.../iPhone|iPad|iPod/i.test(xr?.userAgent??"")||/Macintosh/i.test(xr?.userAgent??"")&&xr?.maxTouchPoints&&xr?.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 n=t??"manual";(0,s.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{Pn&&jn.log(`Stopping Replay triggered by ${n}`),ir(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,Un(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Pn&&jn.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),Pn&&jn.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();const t=Date.now();Pn&&jn.log("Converting buffer to session"),await this.flushImmediate();const n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),ar(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||!Wn(this._lastActivity,this.timeouts.sessionIdlePause)||"session"!==this.session?.sampled)return!!this._checkSession();this.pause()}setInitialState(){const e=`${j.location.pathname}${j.location.hash}${j.location.search}`,t=`${j.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 n=this._throttledAddEvent(e,t);if(n===jr){const e=pn({category:"replay.throttled"});this.addUpdate(()=>!Kn(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastActiveSpan||(0,u.getActiveSpan)(),t=e&&(0,u.getRootSpan)(e),n=(t&&(0,u.spanToJSON)(t).data||{})[i.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return(0,u.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=Bn({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&&ar(this.session.id)}_initializeSessionForSampling(e){const t=this._options.errorSampleRate>0,n=Yn({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return!$n(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{j.document.addEventListener("visibilitychange",this._handleVisibilityChange),j.addEventListener("blur",this._handleWindowBlur),j.addEventListener("focus",this._handleWindowFocus),j.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){const t=(0,s.getClient)();(0,O.addClickKeypressInstrumentationHandler)(yn(e)),(0,C.addHistoryInstrumentationHandler)(cr(e)),rr(e),kr(e);const n=sr(e);(0,a.addEventProcessor)(n),t&&(t.on("beforeSendEvent",nr(e)),t.on("afterSendEvent",tr(e)),t.on("createDsc",t=>{const n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on("spanStart",t=>{e.lastActiveSpan=t}),t.on("spanEnd",t=>{e.lastActiveSpan=t}),t.on("beforeSendFeedback",async(t,n)=>{const r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(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 n({entries:e}){e.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(e=>{r.push((0,x.addPerformanceInstrumentationHandler)(e,n))}),r.push((0,x.addLcpInstrumentationHandler)(wn(kn,e)),(0,x.addClsInstrumentationHandler)(wn(xn,e)),(0,x.addInpInstrumentationHandler)(wn(On,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{j.document.removeEventListener("visibilitychange",this._handleVisibilityChange),j.removeEventListener("blur",this._handleWindowBlur),j.removeEventListener("focus",this._handleWindowFocus),j.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}
50_doChangeToBackgroundTasks(e){if(!this.session)return;$n(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?ir():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;this.checkAndHandleExpiredSession()?e&&this._createCustomBreadcrumb(e):Pn&&jn.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(Sn).filter(Boolean)).concat(this.replayPerformanceEntries);var t;if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(lr(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart)return;if(e.segmentId)return;const n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){const e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){const e=this.getSessionId();if(this.session&&this.eventBuffer&&e){if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await async function(e){try{return Promise.all(lr(e,[Tr(j.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 Ir;const n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await Rr({replayId:e,recordingData:o,segmentId:r,eventContext:n,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 n;n=e instanceof Ar?"ratelimit_backoff":e instanceof Ir?"invalid":"send_error",t.recordDroppedEvent(n,"replay")}}}else Pn&&jn.error("No session or eventBuffer found to flush.")}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession())return void(Pn&&jn.error("Attempting to finish replay event after session expired."));if(!this.session)return;const t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();const r=n<this._options.minReplayDuration,o=n>this._options.maxReplayDuration+5e3;if(r||o)return Pn&&jn.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),void(r&&this._debouncedFlush());const i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&Pn&&jn.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&&Vn(this.session)}_onMutationHandler(e){const{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{const n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;const n=e.length,r=this._options.mutationLimit,o=r&&n>r;if(n>this._options.mutationBreadcrumbLimit||o){const e=pn({category:"replay.mutations",data:{count:n,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function Nr(e,t){return[...e,...t].join(",")}const Lr='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Fr=["content-length","content-type","accept"],Br=Symbol.for("sentry__originalRequestBody");let zr=!1,Ur=!1;const Hr=e=>new Vr(e);class Vr{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:s={},maskAllText:l=!0,maskAllInputs:c=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:y=[],networkCaptureBodies:v=!0,networkRequestHeaders:b=[],networkResponseHeaders:_=[],mask:w=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:k=[],unblock:T=[],ignore:x=[],maskFn:O,beforeAddRecordingEvent:C,beforeErrorSampling:P,onError:A,attachRawBodyFromRequest:I=!1}={}){this.name="Replay";const R=function({mask:e,unmask:t,block:n,unblock:r,ignore:o}){return{maskTextSelector:Nr(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:Nr(t,[]),blockSelector:Nr(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
50([src])"]),unblockSelector:Nr(r,[]),ignoreSelector:Nr(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:w,unmask:E,block:k,unblock:T,ignore:x});if(this._recordingOptions={maskAllInputs:c,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:O,maskInputFn:O,maskAttributeFn:(e,t,n)=>function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){if(o.unmaskTextSelector&&e.matches(o.unmaskTextSelector))return i;const a=n.includes(t),s=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return a||s?i.replace(/[\S]/g,"*"):i}({maskAttributes:S,maskAllText:l,privacyOptions:R,key:e,value:t,el:n}),...R,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(n,5e4),maxReplayDuration:Math.min(r,B),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:u,maskAllInputs:c,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:h,networkDetailAllowUrls:g,networkDetailDenyUrls:y,networkCaptureBodies:v,networkRequestHeaders:qr(b),networkResponseHeaders:qr(_),beforeAddRecordingEvent:C,beforeErrorSampling:P,onError:A,attachRawBodyFromRequest:I,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Lr}`:Lr,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,m.isBrowser)())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return zr}set _isInitialized(e){zr=e}afterAllSetup(e){(0,m.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("undefined"==typeof Request||Ur)return;const e=Request;try{const t=function(t,n){const r=new e(t,n);return null!=n?.body&&(r[Br]=n.body),r};t.prototype=e.prototype,h.GLOBAL_OBJ.Request=t,Ur=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode,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,o.safeSetSpanJSONAttributes)(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&(0,o.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 n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},o=(0,d.parseSampleRate)(n.replaysSessionSampleRate),i=(0,d.parseSampleRate)(n.replaysOnErrorSampleRate);null==o&&null==i&&(0,g.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")});null!=o&&(r.sessionSampleRate=o);null!=i&&(r.errorSampleRate=i);return r}(this._initialOptions,e);this._replay=new Dr({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{const t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function qr(e){return[...Fr,...e.map(e=>e.toLowerCase())]}function Gr(){const e=(0,s.getClient)();return e?.getIntegrationByName("Replay")}},(e,t,n)=>{"use strict";function r(e,t,n){let r,o,i;const a=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function l(){return c(),r=e(),r}function c(){void 0!==o&&clearTimeout(o),void 0!==i&&clearTimeout(i),o=i=void 0}function u(){return o&&clearTimeout(o),o=s(l,t),a&&void 0===i&&(i=s(l,a)),r}return u.cancel=c,u.flush=function(){return void 0!==o||void 0!==i?l():r},u}n.r(t),n.d(t,{debounce:()=>r})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{replayCanvasIntegration:()=>N});var r=n(1389),o=Object.defineProperty,i=(e,t,n)=>((e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class a{constructor(){i(this,"idNodeMap",new Map),i(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 n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){const n=this.getNode(e);if(n){const e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function s(e,t,n=1/0,r=0){return e?e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:s(e.parentNode,t,n,r+1):-1}function l(e,t){return n=>{const r=n;if(null===r)return!1;try{if(e)if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}(r,e))return!0;return!(!t||!r.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 d(e,t,n,r,o=window){const i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(e){y(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>d(e,t,i||{},!0)}function f(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],o=n(r);return"function"==typeof o&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}function p(e,t,n,r,o){if(!e)return!1;const i=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;const a=l(t,n);if(!o){const e=r&&i.matches(r);return a(i)&&!e}const c=s(i,a);let u=-1;return!(c<0)&&(r&&(u=s(i,l(null,r))),c>-1&&u<0||c<u)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(u=new Proxy(u,{get:(e,t,n)=>("map"===t&&console.error(c),Reflect.get(e,t,n))})),Date.now().toString();const h={};function m(e){const t=h[e];if(t)return t;const n=window.document;let r=window[e];if(n&&"function"==typeof n.createElement)try{const t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);const o=t.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(t)}catch(e){}return h[e]=r.bind(window)}function g(...e){return m("requestAnimationFrame")(...e)}function y(...e){return m("setTimeout")(...e)}var v=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(v||{});let b;const _=e=>{if(!b)return e;return(...t)=>{try{return e(...t)}catch(e){if(b&&!0===b(e))return()=>{};throw e}}};for(var w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),E=0;E<64;E++)S[w.charCodeAt(E)]=E;const k=new Map;const T=(e,t,n)=>{if(!e||!C(e,t)&&"object"!=typeof e)return;const r=function(e,t){let n=k.get(e);return n||(n=new Map,k.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}(n,e.constructor.name);let o=r.indexOf(e);return-1===o&&(o=r.length,r.push(e)),o};function x(e,t,n){if(e instanceof Array)return e.map(e=>x(e,t,n));if(null===e)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){return{rr_type:e.constructor.name,args:[Object.values(e)]}}if(e instanceof ArrayBuffer){const t=e.constructor.name,n=function(e){var t,n=new Uint8Array(e),r=n.length,o="";for(t=0;t<r;t+=3)o+=w[n[t]>>2],o+=w[(3&n[t])<<4|n[t+1]>>4],o+=w[(15&n[t+1])<<2|n[t+2]>>6],o+=w[63&n[t+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o}(e);return{rr_type:t,base64:n}}if(e instanceof DataView){return{rr_type:e.constructor.name,args:[x(e.buffer,t,n),e.byteOffset,e.byteLength]}}if(e instanceof HTMLImageElement){const t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}if(e instanceof HTMLCanvasElement){return{rr_type:"HTMLImageElement",src:e.toDataURL()}}if(e instanceof ImageData){return{rr_type:e.constructor.name,args:[x(e.data,t,n),e.width,e.height]}}if(C(e,t)||"object"==typeof e){return{rr_type:e.constructor.name,index:T(e,t,n)}}return e}const O=(e,t,n)=>e.map(e=>x(e,t,n)),C=(e,t)=>{const n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]);return Boolean(n.find(n=>e instanceof t[n]))};function P(e,t,n,r,o){const i=[];try{const a=f(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...a){if(!p(this,t,n,r,!0)){const e=function(e){return"experimental-webgl"===e?"webgl":e}(i);if("__context"in this||(this.__context=e),o&&["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,[i,...a])}});i.push(a)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>
50{i.forEach(e=>e())}}function A(e,t,n,r,o,i,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=f(e,a,function(e){return function(...l){const c=e.apply(this,l);if(T(c,s,this),"tagName"in this.canvas&&!p(this.canvas,r,o,i,!0)){const e=O(l,s,this),r={type:t,property:a,args:e};n(this.canvas,r)}return c}});l.push(c)}catch{const r=d(e,a,{set(e){n(this.canvas,{type:t,property:a,args:[e],setter:!0})}});l.push(r)}return l}class I{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:n="all",win:r,recordCanvas:o,errorHandler:i}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&(b=i),(o&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t||_(()=>{o&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof n&&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:n,blockSelector:r,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(e)){if(a)return this.windowsSet.add(e),void this.windows.push(new WeakRef(e));_(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,o),i&&"number"==typeof t){const t=P(e,n,r,o,!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;if("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:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;const{base64:r,type:o,width:i,height:a}=t;this.mutationCb({id:n,type:v["2D"],commands:[{property:"clearRect",args:[0,0,i,a]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:o}]},0,0,i,a]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;const t=n=>{this.takeSnapshot(n,!1),e=g(t)};e=g(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){const o=P(e,t,n,r,!1),i=function(e,t,n,r,o){const i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const s of a)try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[s])continue;const a=f(t.CanvasRenderingContext2D.prototype,s,function(i){return function(...a){return p(this.canvas,n,r,o,!0)||y(()=>{const n=O(a,t,this);e(this.canvas,{type:v["2D"],property:s,args:n})},0),i.apply(this,a)}});i.push(a)}catch{const n=d(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:v["2D"],property:s,args:[t],setter:!0})}});i.push(n)}return()=>
50{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),a=function(e,t,n,r,o){const i=[];return i.push(...A(t.WebGLRenderingContext.prototype,v.WebGL,e,n,r,o,0,t)),void 0!==t.WebGL2RenderingContext&&i.push(...A(t.WebGL2RenderingContext.prototype,v.WebGL2,e,n,r,o,0,t)),()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}getCanvasElements(e,t,n){const r=[],o=o=>{o.querySelectorAll("canvas").forEach(o=>{p(o,e,t,n,!0)||r.push(o)})};for(const e of this.windows){const t=e.deref();let n;try{n=t&&t.document}catch{}n&&o(n)}for(const e of this.shadowDoms){const t=e.deref();t&&o(t)}return r}takeSnapshot(e,t,n){const{sampling:r,blockClass:o,blockSelector:i,unblockSelector:a,dataURLOptions:s,maxCanvasSize:l}=this.options,c=1e3/("all"===r?2:r||2);if(this.lastSnapshotTime&&e-this.lastSnapshotTime<c)return!1;this.lastSnapshotTime=e;return(n?[n]:this.getCanvasElements(o,i,a)).forEach(e=>{const n=this.mirror.getId(e);if(this.mirror.hasNode(e)&&e.width&&e.height&&!this.snapshotInProgressMap.get(n)){if(this.snapshotInProgressMap.set(n,!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:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{_(()=>{throw this.snapshotInProgressMap.delete(n),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 n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),g(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;const r=n.map(e=>{const{type:t,...n}=e;return n}),{type:o}=n[0];this.mutationCb({id:t,type:o,commands:r}),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 R,j;new a,(j=R||(R={}))[j.NotStarted=0]="NotStarted",j[j.Running=1]="Running",j[j.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}}},D=1280,N=(0,r.defineIntegration)((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,D):D,n?Math.min(n,D):D]};let o,i;const a=new Promise(e=>i=e);return{name:"ReplayCanvas",getOptions(){const{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{const r=new I({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return o=r,i(r),r},...M[e]||M.medium}},async snapshot(e,t){(o||await a).snapshot(e,t)}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{elementTimingIntegration:()=>l,startTrackingElementTiming:()=>c});var r=n(1389),o=n(3261),i=n(420),a=n(1462),s=n(1484);const l=(0,r.defineIntegration)(()=>({name:"ElementTiming",setup(){(0,s.getBrowserPerformanceAPI)()&&(0,i.browserPerformanceTimeOrigin)()&&(0,a.addPerformanceInstrumentationHandler)("element",({entries:e})=>{for(const t of e){const e=t;if(!e.identifier)continue;const n=e.identifier,r=e.name,i=e.renderTime,a=e.loadTime,s={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":n};r&&(s["ui.element.paint_type"]=r),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),i>0&&o.distribution("ui.element.render_time",i,{unit:"millisecond",attributes:s}),a>0&&o.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:s})}})}}));function c(){return()=>{}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{reportPageLoaded:()=>o});var r=n(401);function o(e=(0,r.getClient)()){e?.emit("endPageloadSpan")}},(e,t,n)=>{"use strict";
50n.r(t),n.d(t,{setActiveSpanInBrowser:()=>a});var r=n(401),o=n(434),i=n(423);function a(e){const t=(0,o.getActiveSpan)();if(t===e)return;const n=(0,r.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,r,o)=>((0,i._setSpanForScope)(n,t),Reflect.apply(e,r,o))}),(0,i._setSpanForScope)(n,e)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{spanStreamingIntegration:()=>d});var r=n(1442),o=n(1389),i=n(447),a=n(434),s=n(3305),l=n(432),c=n(413),u=n(1438);const d=(0,o.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",n="Falling back to static trace lifecycle.",o=e.getOptions();if(!(0,l.hasSpanStreamingEnabled)(e))return o.traceLifecycle="static",void(u.DEBUG_BUILD&&c.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`));const d=o.beforeSendSpan;if(d&&!(0,i.isStreamedBeforeSendSpanCallback)(d))return o.traceLifecycle="static",void(u.DEBUG_BUILD&&c.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`));const f=new s.SpanBuffer(e);e.on("afterSpanEnd",t=>{(0,a.spanIsSampled)(t)&&f.add((0,r.captureSpan)(t,e))}),e.on("afterSegmentSpanEnd",e=>{const t=e.spanContext().traceId;setTimeout(()=>{f.flush(t)},500)})}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{SpanBuffer:()=>c});var r=n(409),o=n(413),i=n(1412),a=n(440),s=n(3306),l=n(3307);class c{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:o}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=o&&o>0?o: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 n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:(0,i.safeUnref)(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=(0,l.estimateSerializedSpanSizeInBytes)(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(r.DEBUG_BUILD&&o.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 n=Array.from(t.spans),i=n[0]?._segmentSpan;if(!i)return r.DEBUG_BUILD&&o.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),void this._removeTrace(e);const l=(0,a.getDynamicSamplingContextFromSpan)(i),c=n.map(e=>{const{_segmentSpan:t,...n}=e;return n}),u=(0,s.createStreamedSpanEnvelope)(c,l,this._client);r.DEBUG_BUILD&&o.debug.log(`Sending span envelope for trace ${e} with ${c.length} spans`),this._client.sendEnvelope(u).then(null,e=>{r.DEBUG_BUILD&&o.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,n)=>{"use strict";n.r(t),n.d(t,{createStreamedSpanEnvelope:()=>s});var r=n(439),o=n(448),i=n(1403),a=n(415);function s(e,t,n){const s=n.getOptions(),c=n.getDsn(),u=s.tunnel,d=(0,o.getSdkMetadataForEnvelopeHeader)(s._metadata),f={sent_at:new Date((0,a.safeDateNow)()).toISOString(),...l(t)&&{trace:t},...d&&{sdk:d},...!!u&&c&&{dsn:(0,r.dsnToString)(c)}},p=n.getDataCollectionOptions().userInfo?"auto":"never",h=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,i.isBrowser)()&&{ingest_settings:{infer_ip:p,infer_user_agent:p}},items:e}];return(0,o.createEnvelope)(f,[h])}function l(e){return!!e.trace_id&&!!e.public_key}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{estimateSerializedSpanSizeInBytes:()=>o});var r=n(435);function o(e){let t=156;if(t+=2*e.name.length,t+=(0,r.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){const n=e.links[0],o=n?.attributes;t+=(100+(o?(0,r.estimateTypedAttributesSizeInBytes)(o):0))*e.links.length}return t}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{createStore:()=>l,makeBrowserOfflineTransport:()=>h,push:()=>u,shift:()=>f,unshift:()=>d});var r=n(3309),o=n(448),i=n(1423),a=n(1451);function s(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function l(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=s(n);return e=>r.then(n=>e(n.transaction(t,"readwrite").objectStore(t)))}function c(e){return s(e.getAllKeys())}function u(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),s(e.transaction)}))}function d(e,t,n){return e(e=>c(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),s(e.transaction)}))}function f(e){return e(e=>c(e).then(t=>{const n=t[0];if(null!=n)return s(e.get(n)).then(t=>(e.delete(n),s(e.transaction).then(()=>t)))}))}function p(e){let t;function n(){return null==t&&(t=l(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async t=>
50{try{const r=(0,o.serializeEnvelope)(t);await u(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{const r=(0,o.serializeEnvelope)(t);await d(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const e=await f(n());if(e)return(0,o.parseEnvelope)(e)}catch{}}}}function h(e=a.makeFetchTransport){return function(e){return t=>{const n=e({...t,createStore:p});return i.WINDOW.addEventListener("online",async e=>{await n.flush()}),n}}((0,r.makeOfflineTransport)(e))}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MIN_DELAY:()=>c,START_DELAY:()=>u,makeOfflineTransport:()=>f});var r=n(409),o=n(413),i=n(448),a=n(415),s=n(1413),l=n(1412);const c=100,u=5e3,d=36e5;function f(e){function t(...e){r.DEBUG_BUILD&&o.debug.log("[Offline]:",...e)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const o=n.createStore(n);let f,p=u;function h(e){f&&clearTimeout(f),f=(0,l.safeUnref)(setTimeout(async()=>{f=void 0;const e=await o.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(){f||(h(p),p=Math.min(2*p,d))}async function g(e,a=!1){if(!a&&(0,i.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await o.push(e),h(c),{};try{if(n.shouldSend&&!1===await n.shouldSend(e))throw new Error("Envelope not sent because `shouldSend` callback returned false");const t=await r.send(e);let o=c;if(t)if(t.headers?.["retry-after"])o=(0,s.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])o=6e4;else if((t.statusCode||0)>=400)return t;return h(o),p=u,t}catch(r){if(await(l=e,d=r,f=p,!(0,i.envelopeContainsItemType)(l,["client_report"])&&(!n.shouldStore||n.shouldStore(l,d,f))))return a?await o.unshift(e):await o.push(e),m(),t("Error sending. Event queued.",r),{};throw r}var l,d,f}return n.flushAtStartup&&m(),{send:g,flush:e=>(void 0===e&&(p=u,h(c)),r.flush(e))}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{browserProfilingIntegration:()=>f});var r=n(1389),o=n(430),i=n(434),a=n(413),s=n(1438),l=n(1423),c=n(3311),u=n(3313),d=n(3312);const f=(0,r.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){const t=e.getOptions(),n=new u.UIProfiler;if((0,d.hasLegacyProfiling)(t)||t.profileLifecycle||(t.profileLifecycle="manual"),(0,d.hasLegacyProfiling)(t)&&!t.profilesSampleRate)return void(s.DEBUG_BUILD&&a.debug.log("[Profiling] Profiling disabled, no profiling options found."));const r=(0,i.getActiveSpan)(),f=r&&(0,i.getRootSpan)(r);if((0,d.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,d.hasLegacyProfiling)(t))f&&(0,d.isAutomatedPageLoadSpan)(f)&&(0,d.shouldProfileSpanLegacy)(f)&&(0,c.startProfileForSpan)(f),e.on("spanStart",e=>{const t=(0,i.getRootSpan)(e);e===t?(0,d.shouldProfileSpanLegacy)(e)&&(0,c.startProfileForSpan)(e):d.PROFILED_ROOT_SPANS.has(t)&&(0,d.setThreadAttributes)(e)}),e.on("beforeEnvelope",e=>{if(!(0,d.getActiveProfilesCount)())return;const t=(0,d.findProfiledTransactionsFromEnvelope)(e);if(!t.length)return;const n=[];for(const e of t){const t=e?.contexts,r=t?.profile?.profile_id,o=t?.profile?.start_timestamp;if("string"!=typeof r){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!r){s.DEBUG_BUILD&&a.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;const i=(0,d.takeProfileFromGlobalCache)(r);if(!i){s.DEBUG_BUILD&&a.debug.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}const l=(0,d.createProfilingEvent)(r,o,i,e);l&&n.push(l)}(0,d.addProfilesToEnvelope)(e,n)});else{const r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,o.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."));n.initialize(e),f&&n.notifyRootSpanActive(f),l.WINDOW.setTimeout(()=>{const e=(0,i.getActiveSpan)(),t=e&&(0,i.getRootSpan)(e);t&&n.notifyRootSpanActive(t)},0)}}}}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{startProfileForSpan:()=>d});var r=n(401),o=n(434),i=n(413),a=n(411),s=n(420),l=n(1438),c=n(1423),u=n(3312);function d(e){let t;(0,u.isAutomatedPageLoadSpan)(e)&&(t=1e3*(0,s.timestampInSeconds)());const n=(0,u.startJSSelfProfile)();if(!n)return;l.DEBUG_BUILD&&i.debug.log(`[Profiling] started profiling span: ${(0,o.spanToJSON)(e).description}`);const d=(0,a.uuid4)();let f=null;async function p(){if(e&&n){if(!f)return n.stop().then(t=>{h&&(c.WINDOW.clearTimeout(h),h=void 0),l.DEBUG_BUILD&&i.debug.log(`[Profiling] stopped profiling of span: ${(0,o.spanToJSON)(e).description}`),t?(f=t,(0,u.addProfileToGlobalCache)(d,t)):l.DEBUG_BUILD&&i.debug.log(`[Profiling] profiler returned null profile for: ${(0,o.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started")}
50).catch(e=>{l.DEBUG_BUILD&&i.debug.log("[Profiling] error while stopping profiler:",e)});l.DEBUG_BUILD&&i.debug.log("[Profiling] profile for:",(0,o.spanToJSON)(e).description,"already exists, returning early")}}(0,r.getCurrentScope)().setContext("profile",{profile_id:d,start_timestamp:t}),u.PROFILED_ROOT_SPANS.add(e),(0,u.setThreadAttributes)(e);let h=c.WINDOW.setTimeout(()=>{l.DEBUG_BUILD&&i.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,o.spanToJSON)(e).description),p()},u.MAX_PROFILE_DURATION_MS);const m=e.end.bind(e);e.end=function(){return e?(p().then(()=>{m()},()=>{m()}),e):m()}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{MAX_PROFILE_DURATION_MS:()=>F,PROFILED_ROOT_SPANS:()=>Y,PROFILER_THREAD_ID_STRING:()=>g,PROFILER_THREAD_NAME:()=>y,addProfileToGlobalCache:()=>$,addProfilesToEnvelope:()=>j,applyDebugMetadata:()=>D,convertJSSelfProfileToSampledFormat:()=>R,createProfileChunkPayload:()=>P,createProfilePayload:()=>C,createProfilingEvent:()=>V,enrichWithThreadInformation:()=>O,findProfiledTransactionsFromEnvelope:()=>M,getActiveProfilesCount:()=>G,hasLegacyProfiling:()=>H,isAutomatedPageLoadSpan:()=>I,isValidSampleRate:()=>N,setThreadAttributes:()=>K,shouldProfileSession:()=>U,shouldProfileSpanLegacy:()=>z,startJSSelfProfile:()=>B,takeProfileFromGlobalCache:()=>W,validateProfileChunk:()=>A});var r=n(401),o=n(434),i=n(441),a=n(405),s=n(413),l=n(411),c=n(420),u=n(448),d=n(453),f=n(1438),p=n(1423);const h=1e6,m="window"in a.GLOBAL_OBJ&&a.GLOBAL_OBJ.window===a.GLOBAL_OBJ&&"undefined"==typeof importScripts,g=String(0),y=m?"main":"worker",v=p.WINDOW.navigator;let b="",_="",w="",S=v?.userAgent||"",E="";const k=v?.language||v?.languages?.[0]||"";const T=v?.userAgentData;var x;function O(e){return function(e){return!("thread_metadata"in e)}(e)?R(e):e}function C(e,t,n,r){if("transaction"!==r.type)throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const o=function(e){const t=e.contexts?.trace?.trace_id;return"string"==typeof t&&32!==t.length&&f.DEBUG_BUILD&&s.debug.log(`[Profiling] Invalid traceId: ${t} on profiled event`),"string"!=typeof t?"":t}(r),a=O(n),u=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,c.timestampInSeconds)()),d="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,c.timestampInSeconds)();return{event_id:e,timestamp:new Date(u).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||i.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:p.WINDOW.navigator.userAgent},os:{name:b,version:_,build_number:S},device:{locale:k,model:E,manufacturer:S,architecture:w,is_emulator:!1},debug_meta:{images:D(n.resources)},profile:a,transactions:[{name:r.transaction||"",id:r.event_id||(0,l.uuid4)(),trace_id:o,active_thread_id:g,relative_start_ns:"0",relative_end_ns:(1e6*(d-u)).toFixed(0)}]}}function P(e,t,n){if(null==e)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=function(e){const t=[];for(let n=0;n<e.frames.length;n++){const r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}const n=[];for(let t=0;t<e.stacks.length;t++){const r=e.stacks[t];if(!r)continue;const o=[];let i=r;for(;i;)o.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=o}const r=(0,c.browserPerformanceTimeOrigin)(),o="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,i=o-(r||o),a=[];for(let t=0;t<e.samples.length;t++){const n=e.samples[t];if(!n)continue;const r=(o+(n.timestamp-i))/1e3;a[t]={stack_id:n.stackId??0,thread_id:g,timestamp:r}}return{frames:t,stacks:n,samples:a,thread_metadata:{[g]:{name:y}}}}(e),o=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,l.uuid4)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||(0,l.uuid4)(),platform:"javascript",version:"2",release:o.release??"",environment:o.environment??"production",debug_meta:{images:D(e.resources)},profile:r}}function A(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);
50if(!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 n=e.profile;return n?Array.isArray(n.frames)&&n.frames.length?Array.isArray(n.stacks)&&n.stacks.length?Array.isArray(n.samples)&&n.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 I(e){return"pageload"===(0,o.spanToJSON)(e).op}function R(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[g]:{name:y}}},o=e.samples[0];if(!o)return r;const i=o.timestamp,a=(0,c.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:a||0,l=s-(a||s);return e.samples.forEach((o,a)=>{if(void 0===o.stackId)return void 0===t&&(t=n,r.stacks[t]=[],n++),void(r.samples[a]={elapsed_since_start_ns:((o.timestamp+l-i)*h).toFixed(0),stack_id:t,thread_id:g});let s=e.stacks[o.stackId];const c=[];for(;s;){c.push(s.frameId);const t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.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:((o.timestamp+l-i)*h).toFixed(0),stack_id:n,thread_id:g};r.stacks[n]=c,r.samples[a]=u,n++}),r}function j(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function M(e){const t=[];return(0,u.forEachEnvelopeItem)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){const r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t}function D(e){const t=(0,r.getClient)(),n=t?.getOptions(),o=n?.stackParser;return o?(0,d.getDebugImagesForResources)(o,e):[]}function N(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(f.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)||(f.DEBUG_BUILD&&s.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1))}"object"==typeof(x=T)&&null!==x&&"getHighEntropyValues"in x&&T.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(b=e.platform||"",w=e.architecture||"",E=e.model||"",_=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];S=`${t.brand} ${t.version}`}}).catch(e=>{});let L=!1;const F=3e4;function B(){const e=p.WINDOW.Profiler;if("function"!=typeof e)return void(f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object."));const t=Math.floor(F/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){f.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.")),L=!0}}function z(e){if(L)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;const t=(0,r.getClient)(),n=t?.getOptions();if(!n)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Profiling disabled, no options found."),!1;const o=n.profilesSampleRate;if(!N(o))return f.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1;if(!o)return f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1;return!!(!0===o||Math.random()<o)||(f.DEBUG_BUILD&&s.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(o)})`),!1)}function U(e){if(L)return f.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 f.DEBUG_BUILD&&s.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return N(t)?t?Math.random()<=t:(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(f.DEBUG_BUILD&&s.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function H(e){return void 0!==e.profilesSampleRate}function V(e,t,n,r){return function(e){return e.samples.length<2?(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it c
50ontains less than 2 samples"),!1):!!e.frames.length||(f.DEBUG_BUILD&&s.debug.log("[Profiling] Discarding profile because it contains no frames"),!1)}(n)?C(e,t,n,r):null}const q=new Map;function G(){return q.size}function W(e){const t=q.get(e);return t&&q.delete(e),t}function $(e,t){if(q.set(e,t),q.size>30){const e=q.keys().next().value;void 0!==e&&q.delete(e)}}const Y=new WeakSet;function K(e){e.setAttribute("thread.id",g),e.setAttribute("thread.name",y)}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{UIProfiler:()=>d});var r=n(401),o=n(434),i=n(439),a=n(413),s=n(411),l=n(448),c=n(1438),u=n(3312);class d{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,n=(0,u.shouldProfileSession)(e.getOptions());c.DEBUG_BUILD&&a.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||c.DEBUG_BUILD&&a.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,s.uuid4)(),this._client=e,this._sessionSampled=n,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 n=this._activeRootSpanIds.size;1===n&&(c.DEBUG_BUILD&&a.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),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,r.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,r.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,o.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 n=this._activeRootSpanIds.size;1===n&&(c.DEBUG_BUILD&&a.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),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 n=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: ${n}).`),0===n&&(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,r.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(),n=(0,u.createProfileChunkPayload)(t,this._client,this._profilerId),r=(0,u.validateProfileChunk)(n);if("reason"in r)return void(c.DEBUG_BUILD&&a.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason));this._sendProfileChunk(n),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,n=(0,l.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),r=t.getDsn(),o=t.getOptions().tunnel,u=(0,l.createEnvelope)({event_id:(0,s.uuid4)(),sent_at:(new Date).toISOString(),...n&&{sdk:n},...!!o&&r&&{dsn:(0,i.dsnToString)(r)}},[[{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,n)=>{"use strict";n.r(t),n.d(t,{INTEGRATION_NAME:()=>l,SPOTLIGHT_IGNORE_SPANS:()=>c,spotlightBrowserIntegration:()=>u});var r=n(1389),o=n(413),i=n(448),a=n(1452),s=n(1438);const l="SpotlightBrowser",c=[{op:"ui.interaction.click",name:"#sentry-spotlight"}];const u=(0,r.defineIntegration)((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:l,setup:()=>{s.DEBUG_BUILD&&o.debug.log("Using Sidecar URL",t)},beforeSetup(e){const t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...c]},afterAllSetup:e=>{!function(e,t){const n=(0,a.getNativeImplementation)("fetch");let r=0;e.on("beforeEnvelope",e=>{r>3?o.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r):n(t,{method:"POST",body:(0,i.serializeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,o.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}(e,t)}}})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildLaunchDarklyFlagUsedHandler:()=>a,launchDarklyIntegration:()=>i});var r=n(1389),o=n(3257);const i=(0,r.defineIntegration)(()=>
50({name:"LaunchDarkly",processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function a(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{(0,o._INTERNAL_insertFlagToScope)(e,t.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e,t.value)}}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{OpenFeatureIntegrationHook:()=>a,openFeatureIntegration:()=>i});var r=n(1389),o=n(3257);const i=(0,r.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));class a{after(e,t){(0,o._INTERNAL_insertFlagToScope)(t.flagKey,t.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(t.flagKey,t.value)}error(e,t,n){(0,o._INTERNAL_insertFlagToScope)(e.flagKey,e.defaultValue),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e.flagKey,e.defaultValue)}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{unleashIntegration:()=>l});var r=n(1389),o=n(3257),i=n(413),a=n(412),s=n(1438);const l=(0,r.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;(0,a.fill)(t,"isEnabled",c)}
50,processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function c(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?((0,o._INTERNAL_insertFlagToScope)(n,r),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(n,r)):s.DEBUG_BUILD&&i.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{growthbookIntegration:()=>o});var r=n(3319);const o=({growthbookClass:e})=>(0,r.growthbookIntegration)({growthbookClass:e})},(e,t,n)=>{"use strict";n.r(t),n.d(t,{growthbookIntegration:()=>a});var r=n(1389),o=n(3257),i=n(412);const a=(0,r.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;"function"==typeof t.isOn&&(0,i.fill)(t,"isOn",s),"function"==typeof t.getFeatureValue&&(0,i.fill)(t,"getFeatureValue",s)},processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}));function s(e){return function(...t){const n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&((0,o._INTERNAL_insertFlagToScope)(n,r),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(n,r)),r}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{statsigIntegration:()=>i});var r=n(1389),o=n(3257);const i=(0,r.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{(0,o._INTERNAL_insertFlagToScope)(e.gate.name,e.gate.value),(0,o._INTERNAL_addFeatureFlagToActiveSpan)(e.gate.name,e.gate.value)})}
50,processEvent:(e,t,n)=>(0,o._INTERNAL_copyFlagsFromScopeToEvent)(e)}))},(e,t,n)=>{"use strict";n.r(t),n.d(t,{diagnoseSdkConnectivity:()=>i});var r=n(426),o=n(401);async function i(){const e=(0,o.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,r.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}},(e,t,n)=>{"use strict";n.r(t),n.d(t,{INTEGRATION_NAME:()=>f,registerWebWorker:()=>m,webWorkerIntegration:()=>p});var r=n(400),o=n(401),i=n(1389),a=n(414),s=n(413),l=n(1438),c=n(1421),u=n(1423),d=n(1444);const f="WebWorker",p=(0,i.defineIntegration)(({worker:e})=>({name:f,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>h(e))},addWorker:e=>h(e)}));function h(e){e.addEventListener("message",e=>{if(function(e){if(!(0,a.isPlainObject)(e)||!0!==e._sentryMessage)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,o="_sentryWasmImages"in e;if(!(t||n||r||o))return!1;if(t&&!(0,a.isPlainObject)(e._sentryDebugIds)&&void 0!==e._sentryDebugIds)return!1;if(n&&!(0,a.isPlainObject)(e._sentryModuleMetadata)&&void 0!==e._sentryModuleMetadata)return!1;if(r&&!(0,a.isPlainObject)(e._sentryWorkerError))return!1;if(o&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>(0,a.isPlainObject)(e)&&"string"==typeof e.code_file)))return!1;return!0}(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||[],n=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,...n]}e.data._sentryWorkerError&&(l.DEBUG_BUILD&&s.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){const t=(0,o.getClient)();if(!t)return;const n=t.getOptions().stackParser,i=t.getOptions().attachStacktrace,u=e.reason,f=(0,a.isPrimitive)(u)?(0,d._eventFromRejectionWithPrimitive)(u):(0,c.eventFromUnknownInput)(n,u,void 0,i,!0);f.level="error",e.filename&&(f.contexts={...f.contexts,worker:{filename:e.filename}});(0,r.captureEvent)(f,{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 n={reason:(0,d._getUnhandledRejectionError)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),l.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),l.DEBUG_BUILD&&s.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}},(e,t,n)=>{var r;self,r=e=>(()=>{"use strict";var t={616:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(772),o=n.n(r),i=n(333),a=n.n(i),s=n(504),l=n.n(s),c=new URL(n(949),n.b),u=new URL(n(789),n.b),d=new URL(n(65),n.b),f=a()(o()),p=l()(c),h=l()(u),m=l()(d);f.push([e.id,`.jodit-ui-group{display:inline-flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;max-width:100%}.jodit-ui-group_line_true{display:flex;justify-content:stretch}.jodit-ui-group_separated_true:not(:last-child):not(.jodit-ui-group_before-spacer_true):after{border-left:0;border-right:1px solid var(--jd-color-border);content:"";cursor:default;margin:2px;padding:0}.jodit-ui-group:last-child{border-bottom:0}.jodit-ui-list{display:flex;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}
50.jodit-ui-list_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-ui-list_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-ui-separator{border-left:0;border-right:1px solid var(--jd-color-border);cursor:default;margin:2px;padding:0}.jodit-ui-break{border-top:1px solid var(--jd-color-border);flex-basis:100%;height:0!important;width:0}.jodit-ui-spacer{flex:1}.jodit-ui-button-icon-text__icon{display:none}.jodit-ui-button-icon-text__icon:not(:empty){display:inline-flex}.jodit-ui-button-icon-text__text{display:none}.jodit-ui-button-icon-text__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button-icon-text__icon:not(:empty)+.jodit-ui-button-icon-text__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button-icon-text__icon:empty+.jodit-ui-button-icon-text__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button-clear,.jodit-ui-button_clear{appearance:none;background:0 0;border:0;box-shadow:none;box-sizing:border-box;font-style:normal;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button-sizes{height:34px;min-width:34px}.jodit-ui-button-sizes .jodit-icon{height:14px;width:14px}.jodit-ui-button-sizes button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button-sizes_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_tiny{height:16px;min-width:16px}.jodit-ui-button-sizes_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button-sizes_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button-sizes_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_xsmall{height:22px;min-width:22px}.jodit-ui-button-sizes_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button-sizes_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button-sizes_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_small{height:28px;min-width:28px}.jodit-ui-button-sizes_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button-sizes_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button-sizes_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_large{height:40px;min-width:40px}.jodit-ui-button-sizes_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button-sizes_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button-sizes_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-variants_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button-variants_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button-variants_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default [disabled]{opacity:.7}.jodit-ui-button-variants_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button-variants_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button-variants_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button-variants_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button-variants_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button-variants_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success [disabled]{opacity:.7}.jodit-ui-button-variants_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button-variants_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button-variants_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button-variants_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger [disabled]{opacity:.7}.jodit-ui-button-variants_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button-variants_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-style{border-radius:var(--jd-border-radius-default);padding:0 var(--jd-padding-default)}.jodit-ui-button,.jodit-ui-button-style{align-items:center;color:var(--jd-color-text-icons);display:inline-flex;justify-content:center}.jodit-ui-button{appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;
50cursor:pointer;font-style:normal;height:34px;min-width:34px;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button:focus-visible:not([disabled]),.jodit-ui-button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-ui-button:active:not([disabled]),.jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-ui-button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-ui-button[disabled]{opacity:.3;pointer-events:none}.jodit-ui-button .jodit-icon{height:14px;width:14px}.jodit-ui-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_tiny{height:16px;min-width:16px}.jodit-ui-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_xsmall{height:22px;min-width:22px}.jodit-ui-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_small{height:28px;min-width:28px}.jodit-ui-button_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_large{height:40px;min-width:40px}.jodit-ui-button_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button__icon{display:none}.jodit-ui-button__icon:not(:empty){display:inline-flex}.jodit-ui-button__text{display:none}.jodit-ui-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button_context_menu .jodit-ui-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button_context_menu .jodit-ui-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button__icon:not(:empty)+.jodit-ui-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button__icon:empty+.jodit-ui-button__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-ui-button_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default [disabled]{opacity:.7}.jodit-ui-button_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary [disabled]{opacity:.7}.jodit-ui-button_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary [disabled]{opacity:.7}.jodit-ui-button_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success [disabled]{opacity:.7}.jodit-ui-button_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger [disabled]{opacity:.7}.jodit-ui-button_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-group{margin-bottom:var(--jd-padding-default)}.jodit-ui-button-group__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-button-group__options{display:flex;justify-content:flex-start}.jodit-ui-button-group .jodit-ui-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.jodit-ui-button-group .jodit-ui-button+.jodit-ui-button{border-bottom-left-radius:0;border-left:1px solid var(--jd-color-button-background-hover-opacity40);border-top-left-radius:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover);border-left:0;box-shadow:inset 0 0 3px 0 var(--jd-color-dark);color:var(--jd-color-dark);outline:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled])+.jodit-ui-button{border:0}:root{--jd-tooltip-color:#fff;--jd-tooltip-background-color:rgba(0,0,0,.7);--jd-tooltip-sfx-shadow:rgba(0,0,0,.15);--jd-tooltip-border-width:0;--jd-tooltip-border-color:#e5e5e5}.jodit-ui-tooltip{animation-fill-mode:forwards;animation-timing-function:ease-out;background-clip:padding-box;background-color:var(--jd-tooltip-background-color);border-radius:4px;box-shadow:0 0 0 var(--jd-tooltip-border-width) var(--jd-tooltip-border-color),
500 8px 20px var(--jd-tooltip-border-width) var(--jd-tooltip-sfx-shadow);color:var(--jd-tooltip-color);font-family:var(--jd-font-default);font-size:var(--jd-font-size-small);line-height:1.4;max-width:120px;opacity:0;outline:none;pointer-events:none;position:fixed;text-rendering:optimizelegibility;transform:translate(-50%,calc(var(--jd-padding-default)/2));transition:opacity .2s ease 0s;user-select:none;white-space:normal;width:auto;z-index:var(--jd-z-index-tooltip)}@media (max-width:768px){.jodit-ui-tooltip{display:none}}.jodit-ui-tooltip__content{padding:calc(var(--jd-padding-default)/2) calc(var(--jd-padding-default)*1.5)}.jodit-ui-tooltip.jodit-ui-tooltip_visible_true{opacity:1}.jodit-ui-block{align-items:center;display:flex;justify-content:stretch;margin-bottom:var(--jd-padding-default)}.jodit-ui-block_width_full{width:100%}.jodit-ui-block_align_full{justify-content:space-between}.jodit-ui-block_align_right{justify-content:flex-end}.jodit-ui-block_padding_true{padding:var(--jd-padding-default)}.jodit-ui-label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-input__input_has-error_true{border-color:var(--jd-color-red)}
50.jodit-ui-input__input:focus{outline:0}.jodit-ui-input_theme_dark .jodit-ui-input__input{background-color:var(--jd-color-gray)}.jodit-ui-input_has-error_true .jodit-ui-input__input{border-color:var(--jd-color-red)}.jodit-ui-input__error,.jodit-ui-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input__error,.jodit-ui-input_has-error_true .jodit-ui-input__label{color:var(--jd-color-error)}.jodit-ui-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-input__wrapper{min-width:140px}}.jodit-ui-input_theme_dark .jodit-ui-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-input_focused_true .jodit-ui-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-input__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-ui-input__icon:not(:empty)+.jodit-ui-input__input{padding-left:0}.jodit-ui-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-input__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-ui-input_theme_dark .jodit-ui-input__clear svg,.jodit-ui-input_theme_dark .jodit-ui-input__icon svg{fill:var(--jd-color-dark)}.jodit-ui-block .jodit-ui-input{margin-bottom:0}.jodit-ui-select{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-select__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-select__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-select__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-select__input:focus{outline:0}.jodit-ui-select_theme_dark .jodit-ui-select__input{background-color:var(--jd-color-gray)}.jodit-ui-select_has-error_true .jodit-ui-select__input{border-color:var(--jd-color-red)}.jodit-ui-select__error,.jodit-ui-select__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-select__error,.jodit-ui-select_has-error_true .jodit-ui-select__label{color:var(--jd-color-error)}.jodit-ui-select__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;
50min-width:200px}@media (max-width:480px){.jodit-ui-select__wrapper{min-width:140px}}.jodit-ui-select_theme_dark .jodit-ui-select__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-select_focused_true .jodit-ui-select__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-select__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-select__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-ui-select__icon:not(:empty)+.jodit-ui-select__input{padding-left:0}.jodit-ui-select__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-select__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-select__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-ui-select_theme_dark .jodit-ui-select__clear svg,.jodit-ui-select_theme_dark .jodit-ui-select__icon svg{fill:var(--jd-color-dark)}.jodit-ui-select__input[multiple]{height:auto;padding:0}.jodit-ui-select__input[multiple] option{padding:calc(var(--jd-padding-default)*.5) var(--jd-padding-default)}.jodit-ui-select__input:not([multiple]){background-image:url(${p});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-ui-select_size_tiny{margin-bottom:0}.jodit-ui-select_size_tiny .jodit-ui-select__input{--jd-height:calc(var(--jd-input-height)/1.8);height:var(--jd-height);line-height:var(--jd-height)}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper{border:0}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper select{outline:0}.jodit-ui-select_width_auto{width:auto}.jodit-ui-select_width_auto .jodit-ui-select__wrapper{min-width:auto}.jodit-ui-text-area{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default);width:100%}.jodit-ui-text-area__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-text-area__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-text-area__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-text-area__input:focus{outline:0}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__input{background-color:var(--jd-color-gray)}.jodit-ui-text-area_has-error_true .jodit-ui-text-area__input{border-color:var(--jd-color-red)}.jodit-ui-text-area__error,.jodit-ui-text-area__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-text-area__error,.jodit-ui-text-area_has-error_true .jodit-ui-text-area__label{color:var(--jd-color-error)}.jodit-ui-text-area__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;
50min-width:200px}@media (max-width:480px){.jodit-ui-text-area__wrapper{min-width:140px}}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-text-area_focused_true .jodit-ui-text-area__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-text-area__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-text-area__icon:not(:empty) svg{fill:var(--jd-color-border);height:16px;width:16px}.jodit-ui-text-area__icon:not(:empty)+.jodit-ui-text-area__input{padding-left:0}.jodit-ui-text-area__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-text-area__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-text-area__clear svg{fill:var(--jd-color-border);height:12px;width:12px}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__clear svg,.jodit-ui-text-area_theme_dark .jodit-ui-text-area__icon svg{fill:var(--jd-color-dark)}.jodit-ui-text-area__wrapper{flex:1}.jodit-ui-text-area__input{height:100%;min-height:60px;padding:var(--jd-padding-default)}.jodit-ui-checkbox{align-items:center;display:flex;flex-direction:row-reverse;justify-content:flex-end;margin-bottom:var(--jd-padding-default)}.jodit-ui-checkbox__input{margin-right:var(--jd-padding-default)}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper{display:inline-block;height:34px;margin-right:var(--jd-padding-default);position:relative;width:60px}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper input{height:0;opacity:0;width:0}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider{background-color:#ccc;border-radius:34px;cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:26px;left:4px;position:absolute;transition:.4s;width:26px}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider{background-color:#2196f3}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider:before{transform:translateX(26px)}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_focused_true .jodit-ui-checkbox__switch-slider{box-shadow:0 0 1px #2196f3}.jodit-ui-block .jodit-ui-checkbox{margin-bottom:0}.jodit-ui-file-input{overflow:hidden;position:relative}.jodit-ui-file-input__input{bottom:0;cursor:pointer;font-size:400px;margin:0 calc(var(--jd-padding-default)*-1) 0 0;opacity:0;padding:0;position:absolute;right:0;top:0}:root{--jd-popup-box-shadow:0 4px 1px -2px rgba(76,76,76,.2),0 3px 3px 0 rgba(76,76,76,.15),0 1px 4px 0 rgba(76,76,76,.13);--jd-popup-max-height:max(50vh,350px)}.jodit-popup{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup)}.jodit-popup__content{background:var(--jd-color-background-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-popup_padding_false .jodit-popup__content{padding:0}.jodit-popup_max-height_false .jodit-popup__content{max-height:fit-content}@keyframes a{30%{opacity:.6}60%{opacity:0}to{opacity:.6}}.jodit-progress-bar{border-radius:1px;height:2px;left:0;opacity:.7;position:absolute;top:0;z-index:2147483647}.jodit-progress-bar div{background:var(--jd-color-background-progress);height:2px;position:relative;transition:width .5s ease-out,opacity .5s linear;will-change:width,opacity}.jodit-progress-bar div:after,.jodit-progress-bar div:before{animation:a 2s ease-out 0s infinite;border-radius:100%;box-shadow:var(--jd-color-background-progress) 1px 0 6px 1px;content:"";display:inline-block;height:2px;opacity:.6;position:absolute;top:0}.jodit-progress-bar div:before{right:-80px;width:180px;clip:rect(-6px,90px,14px,-6px)}.jodit-progress-bar div:after{right:0;width:20px;clip:rect(-6px,22px,14px,var(--jd-padding-default))}:root{--jd-em-color-border:#b6d4fe;--jd-em-color-bg:#cfe2ff;--jd-em-color-color:#084298;--jd-em-border-radius:0.375rem;--jd-em-padding:0.5rem 1rem;--jd-em-font-size:1rem}.jodit-ui-messages{bottom:0;height:0;overflow:visible;position:absolute;right:0;width:0;z-index:3}.jodit-ui-message{background:var(--jd-em-color-bg);border:1px solid var(--jd-em-color-border);border-radius:var(--jd-em-border-radius);bottom:0;color:var(--jd-em-color-color);cursor:pointer;display:block;font-size:var(--jd-em-font-size);opacity:0;padding:var(--jd-em-padding);position:absolute;right:calc(var(--jd-padding-default)/2);transition:opacity .1s linear,bottom .3s linear,transform .1s ease-out;white-space:pre}.jodit-ui-message_active_true{opacity:1}.jodit-ui-message:active{transform:scale(.76)}.jodit-ui-message_variant_secondary{--jd-em-color-border:#d3d6d8;--jd-em-color-bg:#e2e3e5;--jd-em-color-color:#41464b}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error,.jodit-ui-message_variant_secondary{background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error{--jd-em-color-border:#f5c2c7;--jd-em-color-bg:#f8d7da;--jd-em-color-color:#842029}.jodit-ui-message_variant_success{--jd-em-color-border:#badbcc;--jd-em-color-bg:#d1e7dd;--jd-em-color-color:#0f5132;background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}
50.jodit-toolbar-collection,.jodit-toolbar-editor-collection{display:flex;flex-direction:column}.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size));position:relative}.jodit-toolbar-collection_mode_horizontal:after,.jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-background-default);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;width:100%}.jodit-toolbar-collection_size_tiny,.jodit-toolbar-editor-collection_size_tiny{--jd-button-icon-size:8px}.jodit-toolbar-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 19px,var(--jd-color-border) 20px)}.jodit-toolbar-collection_size_xsmall,.jodit-toolbar-editor-collection_size_xsmall{--jd-button-icon-size:10px}.jodit-toolbar-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 25px,var(--jd-color-border) 26px)}.jodit-toolbar-collection_size_small,.jodit-toolbar-editor-collection_size_small{--jd-button-icon-size:12px}.jodit-toolbar-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 31px,var(--jd-color-border) 32px)}.jodit-toolbar-collection_size_middle,.jodit-toolbar-editor-collection_size_middle{--jd-button-icon-size:14px}
50.jodit-toolbar-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 37px,var(--jd-color-border) 38px)}.jodit-toolbar-collection_size_large,.jodit-toolbar-editor-collection_size_large{--jd-button-icon-size:16px}.jodit-toolbar-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 43px,var(--jd-color-border) 44px)}.jodit-toolbar-collection_mode_vertical .jodit-ui-group,.jodit-toolbar-editor-collection_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__button{curs
50or:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__text:not(:empty),.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-toolbar-collection .jodit-toolbar-button,.jodit-toolbar-collection .jodit-toolbar-content,.jodit-toolbar-collection .jodit-toolbar-select,.jodit-toolbar-editor-collection .jodit-toolbar-button,.jodit-toolbar-editor-collection .jodit-toolbar-content,.jodit-toolbar-editor-collection .jodit-toolbar-select{margin:var(--jd-margin-v) 1px;padding:0}.jodit-dialog .jodit-toolbar-collection_mode_horizontal,.jodit-dialog .jodit-toolbar-editor-collection_mode_horizontal{background-image:none}:root{--jd-button-trigger-size:14px}.jodit-toolbar-button{align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);display:flex;height:34px;justify-content:center;min-width:34px;overflow:hidden}.jodit-toolbar-button__icon{display:none}.jodit-toolbar-button__icon:not(:empty){display:inline-flex}.jodit-toolbar-button__text{display:none}.jodit-toolbar-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-button__icon:not(:empty)+.jodit-toolbar-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-button__icon:empty+.jodit-toolbar-button__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-button .jodit-icon{height:14px;width:14px}.jodit-toolbar-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_tiny{height:16px;min-width:16px}.jodit-toolbar-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_small{height:28px;min-width:28px}.jodit-toolbar-button_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_large{height:40px;min-width:40px}.jodit-toolbar-button_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-button_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-button_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_default [disabled]{opacity:.7}.jodit-toolbar-button_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-button_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-button_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-button_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-button_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_primary [disabled]{opacity:.7}.jodit-toolbar-button_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-button_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-button_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-button_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-button_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-button_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-button_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-button_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-button_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-button_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-button_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_success [disabled]{opacity:.7}.jodit-toolbar-button_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-button_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-button_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-button_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-button_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_danger [disabled]{opacity:.7}.jodit-toolbar-button_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-button_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-button_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-button_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-toolbar-button__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);
50cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-button__button:focus-visible:not([disabled]),.jodit-toolbar-button__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__button:active:not([disabled]),.jodit-toolbar-button__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-button__trigger:focus-visible:not([disabled]),.jodit-toolbar-button__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__trigger:active:not([disabled]),.jodit-toolbar-button__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-button_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-button_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-button_stroke_false svg{stroke:none}.jodit-toolbar-content{align-items:center;appearance:none;background:0 0;border:1px solid transparent;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;height:34px;justify-content:center;min-width:34px;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-content:focus-visible:not([disabled]),.jodit-toolbar-content:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-content:active:not([disabled]),.jodit-toolbar-content[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-content[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-content[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-content .jodit-icon{height:14px;width:14px}.jodit-toolbar-content button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-content_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_tiny{height:16px;min-width:16px}.jodit-toolbar-content_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-content_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-content_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-content_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-content_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-content_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_small{height:28px;min-width:28px}.jodit-toolbar-content_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-content_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-content_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_large{height:40px;min-width:40px}.jodit-toolbar-content_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-content_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-content_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content__icon{display:none}.jodit-toolbar-content__icon:not(:empty){display:inline-flex}.jodit-toolbar-content__text{display:none}.jodit-toolbar-content__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-content__icon:not(:empty)+.jodit-toolbar-content__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-content__icon:empty+.jodit-toolbar-content__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-toolbar-content:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-toolbar-content_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-content_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-content_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default [disabled]{opacity:.7}.jodit-toolbar-content_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-content_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary [disabled]{opacity:.7}.jodit-toolbar-content_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-content_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-content_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-content_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-content_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-content_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success [disabled]{opacity:.7}.jodit-toolbar-content_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-content_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-content_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-content_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger [disabled]{opacity:.7}.jodit-toolbar-content_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-content_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-toolbar-content:hover:not([disabled]){background-color:transparent;opacity:1;outline:0}.jodit-toolbar-select{--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.2);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.1);align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);cursor:pointer;display:flex;height:34px;justify-content:center;justify-content:space-between;min-width:34px;min-width:100px;overflow:hidden}.jodit-toolbar-select__icon{display:none}.jodit-toolbar-select__icon:not(:empty){display:inline-flex}.jodit-toolbar-select__text{display:none}.jodit-toolbar-select__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-select__icon:not(:empty)+.jodit-toolbar-select__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-select__icon:empty+.jodit-toolbar-select__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-select .jodit-icon{height:14px;width:14px}.jodit-toolbar-select button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-select_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_tiny{height:16px;min-width:16px}.jodit-toolbar-select_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-select_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-select_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-select_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-select_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-select_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_small{height:28px;min-width:28px}.jodit-toolbar-select_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-select_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-select_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_large{height:40px;min-width:40px}.jodit-toolbar-select_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-select_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-select_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-select_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-select_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_default [disabled]{opacity:.7}.jodit-toolbar-select_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-select_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-select_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-select_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-select_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_primary [disabled]{opacity:.7}.jodit-toolbar-select_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-select_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-select_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-select_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-select_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-select_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-select_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-select_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-select_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-select_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-select_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_success [disabled]{opacity:.7}.jodit-toolbar-select_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-select_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-select_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-select_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-select_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_danger [disabled]{opacity:.7}.jodit-toolbar-select_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-select_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-select_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-select_variant_danger:focus:not(
50[disabled]){outline:1px dashed #bd2130}.jodit-toolbar-select__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-select__button:focus-visible:not([disabled]),.jodit-toolbar-select__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__button:active:not([disabled]),.jodit-toolbar-select__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-select__trigger:focus-visible:not([disabled]),.jodit-toolbar-select__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__trigger:active:not([disabled]),.jodit-toolbar-select__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-select_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-select_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-select_stroke_false svg{stroke:none}.jodit-toolbar-select:focus-visible:not([disabled]),.jodit-toolbar-select:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select:active:not([disabled]),.jodit-toolbar-select[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__text:not(:empty){justify-content:left}.jodit-toolbar-select__button{flex:1}.jodit-toolbar__box:not(:empty){--jd-color-background-default:var(--jd-color-panel);background-color:var(--jd-color-background-default);border-bottom:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default) var(--jd-border-radius-default) 0 0;overflow:hidden}.jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-panel)}.jodit-dialog{border:0;box-sizing:border-box;display:none;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:0;position:absolute;width:0;will-change:left,top,width,height}.jodit-dialog_moved_true{user-select:none}.jodit-dialog *{box-sizing:border-box}.jodit-dialog .jodit_elfinder,.jodit-dialog .jodit_elfinder *{box-sizing:initial}.jodit-dialog__overlay{background-color:rgba(0,0,0,.5);display:none;height:100%;left:0;overflow:auto;position:fixed;text-align:center;top:0;white-space:nowrap;width:100%;z-index:var(--jd-z-index-dialog-overlay)}.jodit-dialog_static_true .jodit-dialog__overlay{display:none}.jodit-dialog_active_true,.jodit-dialog_modal_true .jodit-dialog__overlay{display:block}.jodit-dialog__panel{background-color:#fff;display:flex;flex-flow:column nowrap;left:0;max-height:100%;max-width:100%;min-height:100px;
50min-width:200px;position:fixed;top:0;z-index:var(--jd-z-index-dialog);--jd-box-shadow-blur:calc(var(--jd-padding-default)*2);--jd-box-shadow-1:0 var(--jd-padding-default) var(--jd-box-shadow-blur) rgba(0,0,0,.19);box-shadow:var(--jd-box-shadow-1),0 6px 6px rgba(0,0,0,.23);text-align:left;white-space:normal}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__panel{height:100%!important;left:0!important;max-width:100%;top:0!important;width:100%!important}}.jodit-dialog_static_true{box-sizing:border-box;display:block;height:auto;position:relative;width:auto;z-index:inherit}.jodit-dialog_static_true .jodit-dialog__panel{border:1px solid var(--jd-color-border);box-shadow:none;left:auto!important;position:relative;top:auto!important;width:100%!important;z-index:inherit}.jodit-dialog_theme_dark,.jodit-dialog_theme_dark .jodit-dialog__panel{background-color:var(--jd-dark-background-darknes);color:var(--jd-dark-text-color)}.jodit-dialog__header{border-bottom:1px solid var(--jd-color-border);cursor:move;display:flex;justify-content:space-between;min-height:50px;text-align:left}.jodit-dialog__header-title,.jodit-dialog__header-toolbar{align-items:center;display:flex;flex-shrink:3;font-size:18px;font-weight:400;line-height:48px;margin:0;padding:0 var(--jd-padding-default);vertical-align:top}@media (max-width:480px){.jodit-dialog__header-toolbar{padding-left:0}}.jodit-dialog__header-button{color:#222;flex-basis:48px;font-size:28px;height:48px;line-height:48px;text-align:center;text-decoration:none;transition:background-color .2s ease 0s}.jodit-dialog__header-button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-dialog__header .jodit_toolbar{background:transparent;border:0;box-shadow:none}.jodit-dialog__header .jodit_toolbar>li.jodit-toolbar-button .jodit-input{padding-left:var(--jd-padding-default);width:auto}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__header{flex-direction:column}}.jodit-dialog_slim_true .jodit-dialog__header{min-height:10px}.jodit-dialog_slim_true .jodit-dialog__header-title,.jodit-dialog_slim_true .jodit-dialog__header-toolbar{padding:0 calc(var(--jd-padding-default)/4)}.jodit-dialog_theme_dark .jodit-dialog__header{border-color:var(--jd-color-dark)}.jodit-dialog_fullsize_true .jodit-dialog__header{cursor:default}.jodit-dialog__content{flex:1;min-height:100px;overflow:auto}.jodit-dialog__content .jodit-form__group{margin-bottom:calc(var(--jd-padding-default)*1.5);padding:0 var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group:first-child{margin-top:var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group .jodit-input_group{border-collapse:separate;display:table;width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group>*{display:table-cell;height:34px;vertical-align:middle}.jodit-dialog__content .jodit-form__group .jodit-input_group>input{margin:0!important}.jodit-dialog__content .jodit-form__group .jodit-input_group>input:not([class*=col-]){width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons{font-size:0;vertical-align:middle;white-space:nowrap;width:1%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons>.jodit-button{border:1px solid var(--jd-color-border);border-radius:0;height:34px;line-height:34px;margin-left:-1px}.jodit-dialog__footer{display:none;flex-wrap:nowrap;justify-content:space-between;padding:var(--jd-padding-default)}.jodit-dialog__footer button{margin-right:calc(var(--jd-padding-default)/2)}.jodit-dialog__footer button:last-child{margin-right:0}.jodit-dialog__column{display:flex}.jodit-dialog__resizer{display:none;position:relative}.jodit-dialog__resizer svg{bottom:0;cursor:nwse-resize;fill:var(--jd-color-gray-dark);height:12px;overflow:hidden;position:absolute;right:0;user-select:none;width:12px}.jodit-dialog_resizable_true .jodit-dialog__resizer{display:block}@media (max-width:480px){.jodit-dialog__resizer{display:none}}.jodit-dialog_prompt{max-width:300px;
50min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_prompt label{display:block;margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-dialog_alert{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_footer_true .jodit-dialog__footer{display:flex}.jodit_fullsize .jodit-dialog__panel{height:100%!important;inset:0!important;width:100%!important}.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer{display:none}.jodit-dialog .jodit-ui-messages{z-index:var(--jd-z-index-dialog)}.jodit-context-menu{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup);z-index:var(--jd-z-index-context-menu)}.jodit-context-menu,.jodit-context-menu__content{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-context-menu__content{background:var(--jd-color-background-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-context-menu_padding_false .jodit-context-menu__content{padding:0}.jodit-context-menu_max-height_false .jodit-context-menu__content{max-height:fit-content}.jodit-context-menu .jodit-ui-button{display:flex}.jodit-context-menu button{width:100%}.jodit-context-menu_theme_dark{background-color:var(--jd-dark-background-color)}:root{--jd-image-editor-resizer-border-color:#05ff00;--jd-image-editor-resizer-target-size:padding-default;--jd-image-editor-resizer-target-border-color:#383838;--jd-image-editor-resizer-target-bg-color:#8c7878}.jodit-image-editor{height:100%;overflow:hidden;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-image-editor{height:auto}}.jodit-image-editor>div,.jodit-image-editor>div>div{height:100%}@media (max-width:768px){.jodit-image-editor>div,.jodit-image-editor>div>div{height:auto;min-height:200px}}.jodit-image-editor *{box-sizing:border-box}.jodit-image-editor .jodit-image-editor__slider-title{background-color:#f9f9f9;border-bottom:1px solid hsla(0,0%,62%,.31);color:#333;cursor:pointer;font-weight:700;line-height:1em;padding:.8em 1em;text-overflow:ellipsis;text-shadow:#f3f3f3 0 1px 0;user-select:none;white-space:nowrap}.jodit-image-editor .jodit-image-editor__slider-title svg{display:inline-block;margin-right:var(--jd-padding-default);vertical-align:middle;width:16px}.jodit-image-editor .jodit-image-editor__slider-content{display:none}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title{background-color:#5d5d5d;color:#fff;text-shadow:#000 0 1px 0}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg{fill:#fff}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content{display:block}.jodit-image-editor__area{background-color:#eee;background-image:linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border)),linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border));background-position:0 0,15px 15px;background-size:30px 30px;display:none;height:100%;overflow:hidden;position:relative;user-select:none;width:100%}.jodit-image-editor__area.jodit-image-editor_active{display:block}.jodit-image-editor__area .jodit-image-editor__box{height:100%;overflow:hidden;pointer-events:none;position:relative;z-index:1}.jodit-image-editor__area .jodit-image-editor__box img{max-height:100%;max-width:100%;user-select:none}.jodit-image-editor__area .jodit-image-editor__croper,.jodit-image-editor__area .jodit-image-editor__resizer{background-repeat:no-repeat;border:1px solid #fff;box-shadow:0 0 11px #000;height:100px;left:20px;pointer-events:none;position:absolute;top:var(--jd-padding-default);width:100px;z-index:2}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright{background-color:var(--jd-image-editor-resizer-target-bg-color);border:1px solid var(--jd-image-editor-resizer-target-border-color);border-radius:50%;bottom:calc(var(--jd-padding-default)*-1);box-shadow:0 0 11px #000;cursor:se-resize;display:inline-block;height:20px;pointer-events:all;position:absolute;right:calc(var(--jd-padding-default)*-1);width:20px;z-index:4}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright:active,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright:active{border:1px solid #ff0}.jodit-image-editor__area.jodit-image-editor__area_crop{background:#eee;height:100%;line-height:100%;position:relative;text-align:center}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box{height:100%;line-height:100%;overflow:visible;pointer-events:all;text-align:left}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box img{height:100%;max-height:100%;max-width:100%;width:100%}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box:after{background:hsla(0,0%,100%,.3);content:"";inset:0;margin:auto;position:absolute;z-index:1}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper{cursor:move;pointer-events:all}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper i.jodit-image-editor__sizes{background:rgba(0,0,0,.2);border-radius:.4em;bottom:-30px;color:#fff;display:block;font-size:12px;left:100%;padding:9px 6px;position:absolute;text-align:center;text-shadow:none;white-space:pre}.jodit-image-editor__area.jodit-image-editor__area_crop.jodit-image-editor_active{align-items:center;display:flex;justify-content:center}.jodit-file-browser-files{display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-files .jodit-button{border-radius:0}.jodit-file-browser-files_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-files_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-files::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-files::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-files::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-files_active_true{align-content:flex-start;display:flex;flex-wrap:wrap;overflow-y:auto;padding:calc(var(--jd-padding-default)/2);width:100%}.jodit-file-browser-files__item{align-items:center;border:1px solid var(--jd-color-border);display:flex;font-size:0;height:var(--jd-col-size);justify-content:center;margin:calc(var(--jd-padding-default)/2);overflow:hidden;position:relative;text-align:center;transition:border .1s linear,bottom .1s linear;width:var(--jd-col-size)}@media (max-width:480px){.jodit-file-browser-files__item{width:calc(50% - var(--jd-padding-default))}}.jodit-file-browser-files__item img{max-width:100%}.jodit-file-browser-files__item:hover{border-color:#433b5c}.jodit-file-browser-files__item_active_true{background-color:var(--jd-color-border-active);border-color:var(--jd-color-border-selected)}.jodit-file-browser-files__item_active_true .jodit-file-browser-files__item-info{background-color:var(--jd-color-border-active);color:#fff;text-shadow:none}.jodit-file-browser-files__item-info{background-color:var(--jd-info-background);bottom:0;color:#333;font-size:14px;left:0;line-height:16px;opacity:.85;overflow:visible;padding:.3em .6em;position:absolute;right:0;text-align:left;text-shadow:#eee 0 1px 0;transition:opacity .4s ease;white-space:normal}.jodit-file-browser-files__item-info>span{display:block;font-size:.75em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jodit-file-browser-files__item-info>span.jodit-file-browser-files__item-info-filename{font-size:.9em;font-weight:700}.jodit-file-browser-files__item:hover:not(.jodit-file-browser-files__item_active_true) .jodit-file-browser-files__item-info{bottom:-100px}.jodit-file-browser-files_view_list{scroll-behavior:smooth}.jodit-file-browser-files_view_list a{border-width:0 0 1px;display:block;height:26px;line-height:26px;margin:0;text-align:left;white-space:nowrap;width:100%}.jodit-file-browser-files_view_list a img{display:inline-block;margin-left:4px;max-width:16px;min-width:16px;vertical-align:middle}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info{background-color:transparent;display:inline-block;font-size:0;height:100%;line-height:inherit;margin-left:4px;padding:0;position:static;vertical-align:middle;width:calc(100% - 20px)}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info>span{display:inline-block;font-size:12px;height:100%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filename{width:50%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filechanged,.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filesize{width:25%}.jodit-file-browser-files_view_list a:hover{background-color:#433b5c}.jodit-file-browser-files_view_list a:hover .jodit-file-browser-files__item-info{color:#fff;text-shadow:none}.jodit-file-browser-files_view_list a:before{content:"";display:inline-block;height:100%;vertical-align:middle}:root{--jd-color-folder-title:#b1b1b1}.jodit-file-browser-tree{--jd-color-background-filebrowser-folders:#3f3f3f;display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-tree .jodit-button{border-radius:0}.jodit-file-browser-tree_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-tree_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-tree::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-tree_active_true{background-color:var(--jd-color-background-filebrowser-folders);display:flex;flex-direction:column;max-width:290px;
50min-width:200px;overflow-y:auto;width:var(--jd-first-column);z-index:2}@media (max-width:480px){.jodit-file-browser-tree_active_true{height:100px;max-width:100%;width:auto}}.jodit-file-browser-tree_active_true::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-thumb{background-color:hsla(0,0%,50%,.5);outline:1px solid #708090}.jodit-file-browser-tree__item{align-items:center;border-bottom:1px solid #474747;color:var(--jd-color-folder-title);display:flex;justify-content:space-between;min-height:38px;padding:calc(var(--jd-padding-default)/2) var(--jd-padding-default);position:relative;text-decoration:none;transition:background-color .2s ease 0s;word-break:break-all}.jodit-file-browser-tree__item-title{color:var(--jd-color-folder-title);flex:1}.jodit-file-browser-tree__item .jodit-icon_folder{align-items:center;display:flex;height:calc(var(--jd-icon-size) + 4px);justify-content:center;margin-left:calc(var(--jd-padding-default)/2);opacity:.3;width:calc(var(--jd-icon-size) + 4px)}.jodit-file-browser-tree__item .jodit-icon_folder svg{fill:var(--jd-color-folder-title)!important;height:var(--jd-icon-size);stroke:var(--jd-color-folder-title)!important;width:var(--jd-icon-size)}.jodit-file-browser-tree__item .jodit-icon_folder:hover{background:#696969}.jodit-file-browser-tree__item:hover{background-color:var(--jd-color-background-button-hover)}.jodit-file-browser-tree__item:hover-title{color:var(--jd-color-text)}.jodit-file-browser-tree__item:hover i.jodit-icon_folder{opacity:.6}.jodit-file-browser-tree__source-title{background:#5a5a5a;border-bottom:1px solid #484848;color:#969696;display:block;font-size:12px;padding:2px 4px;position:relative;user-select:none;word-break:break-all}a+.jodit-file-browser-tree__source-title{margin-top:var(--jd-padding-default)}:root{--jd-first-column:31%;--jd-cols:4;--jd-info-background:#e9e9e9;--jd-icon-size:12px;--jd-col-size:150px}.jodit-file-browser{display:flex;font-family:var(--jd-font-default);height:100%}.jodit-file-browser_no-files_true{padding:var(--jd-padding-default)}@media (max-width:480px){.jodit-file-browser{flex-flow:column-reverse}}.jodit-dialog .jodit-dialog__header-title.jodit-file-browser__title-box{align-items:center;display:flex;padding-left:var(--jd-padding-default)}.jodit-file-browser-preview{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;max-height:100%;max-width:min(100%,1000px);min-height:min(100%,500px);min-width:400px;position:relative;text-align:center}@media (max-width:768px){.jodit-file-browser-preview{height:100%;max-height:100%;max-width:100%;min-height:auto;min-width:auto}}.jodit-file-browser-preview__box{align-items:center;display:flex;flex-grow:1;justify-content:center}.jodit-file-browser-preview__navigation{cursor:pointer;height:100%;left:0;position:absolute;top:0}.jodit-file-browser-preview__navigation_arrow_next{left:auto;right:0}.jodit-file-browser-preview__navigation svg{fill:#9e9ba7;height:45px;position:relative;top:50%;transform:translateY(-50%);transition:fill .3s linear;width:45px}.jodit-file-browser-preview__navigation:hover svg{fill:#000}.jodit-file-browser-preview img{max-height:100%;max-width:100%}.jodit-status-bar{align-items:center;background-color:var(--jd-color-panel);border-radius:0 0 var(--jd-border-radius-default) var(--jd-border-radius-default);color:var(--jd-color-text-icons);display:flex;font-size:var(--jd-font-size-small);height:20px;justify-content:flex-start;overflow:hidden;padding:0 calc(var(--jd-padding-default)/2);text-transform:uppercase}.jodit-status-bar_resize-handle_true{padding-right:14px}.jodit-status-bar:before{content:"";flex:auto;order:1}.jodit-status-bar .jodit-status-bar__item{line-height:1.5714em;margin:0 var(--jd-padding-default) 0 0;order:0;padding:0}.jodit-status-bar .jodit-status-bar__item,.jodit-status-bar .jodit-status-bar__item>span{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);font-size:var(--jd-font-size-small)}.jodit-status-bar .jodit-status-bar__item.jodit-status-bar__item-right{margin:0 0 0 var(--jd-padding-default);order:2}.jodit-status-bar .jodit-status-bar__item a{border-radius:3px;
50cursor:default;text-decoration:none}.jodit-status-bar .jodit-status-bar__item a:hover{background-color:var(--jd-color-background-gray);text-decoration:none}.jodit-status-bar a.jodit-status-bar-link{cursor:pointer}.jodit-status-bar a.jodit-status-bar-link,.jodit-status-bar a.jodit-status-bar-link:hover,.jodit-status-bar a.jodit-status-bar-link:visited{background-color:transparent;color:var(--jd-color-text-icons)}.jodit-status-bar a.jodit-status-bar-link:hover{text-decoration:underline}.jodit-status-bar:not(:empty){border-top:1px solid var(--jd-color-border)}.jodit_disabled .jodit-status-bar{opacity:.4}.jodit-drag-and-drop__file-box,.jodit_uploadfile_button{border:1px dashed var(--jd-color-gray);margin:var(--jd-padding-default) 0;overflow:hidden;padding:25px 0;position:relative;text-align:center;width:100%}.jodit-drag-and-drop__file-box:hover,.jodit_uploadfile_button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-drag-and-drop__file-box input,.jodit_uploadfile_button input{cursor:pointer;font-size:400px;inset:0;margin:0;opacity:0;padding:0;position:absolute}@media (max-width:768px){.jodit-drag-and-drop__file-box{max-width:100%;min-width:var(--jd-width-input-min);width:auto}}.jodit-about{padding:20px}.jodit-about a{color:#459ce7;text-decoration:none}.jodit-about a:focus,.jodit-about a:hover{color:#23527c;outline:0;text-decoration:underline}.jodit-about div{margin-bottom:calc(var(--jd-padding-default)/2)}:root{--jd-anl-color-new-line:var(--jd-color-border);--jd-anl-handle-size:20px;--jd-anl-handle-offset:calc(100% - var(--jd-anl-handle-size))}.jodit-add-new-line{display:block;height:1px;outline:none;position:fixed;top:0;z-index:1}.jodit-add-new-line,.jodit-add-new-line *{box-sizing:border-box}.jodit-add-new-line:after{background-color:var(--jd-anl-color-new-line);content:"";display:block;height:1px;width:100%}.jodit-add-new-line span{align-items:center;background:var(--jd-color-background-button-hover-opacity30);border:1px solid var(--jd-anl-color-new-line);cursor:pointer;display:flex;height:var(--jd-anl-handle-size);justify-content:center;left:var(--jd-anl-handle-offset);position:absolute;top:0;transform:translateY(-50%);width:var(--jd-anl-handle-size)}.jodit-add-new-line span:hover{background:var(--jd-color-background-button-hover)}.jodit-add-new-line svg{fill:var(--jd-anl-color-new-line);width:calc(var(--jd-anl-handle-size)/2)}.jodit-source__mode .jodit-add-new-line{display:none!important}:root{--jd-color-picker-cell-size:24px}.jodit-color-picker{margin:0;text-align:left;user-select:none}.jodit-color-picker__group{display:flex;flex-wrap:wrap;margin-bottom:calc(var(--jd-padding-default)/2);max-width:calc(var(--jd-color-picker-cell-size)*10);white-space:normal}.jodit-color-picker__color-item{border:1px solid transparent;display:block;height:var(--jd-color-picker-cell-size);text-align:center;text-decoration:none;vertical-align:middle;width:var(--jd-color-picker-cell-size)}.jodit-color-picker__color-item:hover{border-color:#000}.jodit-color-picker__color-item:active,.jodit-color-picker__color-item_active_true{border:2px solid var(--jd-color-border-selected)}.jodit-color-picker__native svg{display:inline-block;height:16px;margin-right:4px;width:16px}.jodit-color-picker__native input{appearance:none;border:none;height:18px;padding:0;width:18px}.jodit-color-picker__native input[type=color]::-webkit-color-swatch-wrapper{padding:0}.jodit-color-picker__native input input[type=color]::-webkit-color-swatch{border:none}.jodit-tabs{--jd-box-shadow-tabs:0 0 #0000,0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-color-background-light-gray);border-radius:var(--jd-border-radius-default);display:flex;justify-content:center;margin-bottom:var(--jd-padding-default);margin-top:calc(var(--jd-padding-default)/2);padding:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button{color:var(--jd-color-placeholder)}
50.jodit-tabs .jodit-tabs__buttons .jodit-ui-button svg{fill:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]){box-shadow:var(--jd-box-shadow-tabs);color:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{background-color:var(--jd-color-background-default)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons>*{cursor:pointer;margin-left:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons>:only-of-type{width:100%}.jodit-tabs .jodit-tabs__buttons>:first-child{margin-left:0}@media (max-width:480px){.jodit-tabs .jodit-tabs__buttons{display:block}.jodit-tabs .jodit-tabs__buttons>*{margin-left:0;width:100%}}.jodit-tabs__button{max-width:210px;min-width:80px}.jodit-tabs__button .jodit-ui-button__text{flex:1;justify-content:space-around;white-space:nowrap}.jodit-tabs__button_columns_3{width:33.33333%}.jodit-tabs__button_columns_2{width:50%}.jodit-tabs .jodit-tabs__wrapper .jodit-tab{display:none}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_active{display:block}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_empty{min-height:100px;min-width:220px}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-dark-background-color);border-radius:var(--jd-border-radius-default)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{color:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit_fullsize-box_true{overflow:visible!important;position:static!important;z-index:var(--jd-z-index-full-size)!important}body.jodit_fullsize-box_true,html.jodit_fullsize-box_true{height:0!important;overflow:hidden!important;width:0!important}html.jodit_fullsize-box_true{position:fixed!important}.jodit_fullsize{inset:0;max-width:none!important;position:absolute;z-index:var(--jd-z-index-full-size)}.jodit_fullsize .toolbar{width:100%!important}.jodit_fullsize .jodit__area,.jodit_fullsize .jodit_editor{height:100%}.jodit-ui-image-position-tab__lockMargin>svg,.jodit-ui-image-position-tab__lockSize>svg,.jodit-ui-image-properties-form__lockMargin>svg,.jodit-ui-image-properties-form__lockSize>svg{display:inline-block;fill:var(--jd-color-dark);height:var(--jd-icon-middle-size);line-height:var(--jd-icon-middle-size);overflow:hidden;transform-origin:0 0!important;vertical-align:middle;width:var(--jd-icon-middle-size)}.jodit-ui-image-position-tab__view-box,.jodit-ui-image-properties-form__view-box{padding:var(--jd-padding-default)}.jodit-ui-image-position-tab__imageView,.jodit-ui-image-properties-form__imageView{align-items:center;background-color:var(--jd-color-background-light-gray);display:flex;height:var(--jd-width-default);justify-content:center;margin:0 0 var(--jd-padding-default);padding:0}.jodit-ui-image-position-tab__imageView img,.jodit-ui-image-properties-form__imageView img{max-height:100%;max-width:100%}.jodit-ui-image-position-tab__imageSizes.jodit-form__group,.jodit-ui-image-properties-form__imageSizes.jodit-form__group{align-items:center;flex-direction:row;margin:0;min-width:auto;padding:0}.jodit-ui-image-position-tab__imageSizes.jodit-form__group a,.jodit-ui-image-properties-form__imageSizes.jodit-form__group a{curs
50or:pointer;display:inline-block}.jodit-ui-image-position-tab .jodit-form__group,.jodit-ui-image-properties-form .jodit-form__group{padding:0}.jodit-ui-image-position-tab__tabsBox,.jodit-ui-image-properties-form__tabsBox{padding:0 var(--jd-padding-default)}.jodit-dialog_theme_dark .jodit-ui-image-properties-form__imageView,.jodit_theme_dark .jodit-ui-image-properties-form__imageView{background-color:var(--jd-dark-background-color)}.jodit-ui-image-properties-form_lock_true:before{background-color:var(--jd-color-button-background-hover-opacity60);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.jodit-ui-image-properties-form_lock_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;background-size:var(--jd-icon-loader-size);content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-popup-inline__container{min-width:700px;z-index:1300}.jodit-paste-storage{max-width:600px;padding:var(--jd-padding-default)}@media (max-width:768px){.jodit-paste-storage{max-width:100%}}.jodit-paste-storage>div{border:1px solid var(--jd-color-border);max-height:300px;max-width:100%}.jodit-paste-storage>div:first-child{margin-bottom:var(--jd-padding-default)}.jodit-paste-storage>div:first-child a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-default);display:block;margin:0;max-width:100%;outline:none;overflow:hidden;padding:calc(var(--jd-padding-default)/2);text-decoration:none;text-overflow:ellipsis;white-space:pre}.jodit-paste-storage>div:first-child a.jodit_active{background-color:var(--jd-dark-background-color);color:var(--jd-color-white)}.jodit-paste-storage>div:first-child a:focus{outline:none}.jodit-paste-storage>div:last-child{overflow:auto;padding:var(--jd-padding-default)}.jodit-paste-storage>div:last-child li,.jodit-paste-storage>div:last-child ul{margin:0}.jodit-placeholder{color:var(--jd-color-placeholder);display:block;left:0;padding:var(--jd-padding-default);pointer-events:none;position:absolute;top:0;user-select:none!important;width:100%;z-index:1}.jodit__preview-box table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit__preview-box table tr{user-select:none}.jodit__preview-box table tr td,.jodit__preview-box table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-table-resizer{cursor:col-resize;margin-left:calc(var(--jd-padding-default)/-2);padding-left:calc(var(--jd-padding-default)/2);padding-right:calc(var(--jd-padding-default)/2);position:absolute;z-index:3}.jodit-table-resizer:after{border:0;content:"";display:block;height:100%;width:0}.jodit-table-resizer_moved{background-color:var(--jd-color-background-selection);z-index:2}.jodit-table-resizer_moved:after{border-right:1px solid moved}[data-jodit_iframe_wrapper]{display:block;position:relative;user-select:none}[data-jodit_iframe_wrapper] iframe{position:relative}[data-jodit_iframe_wrapper]:after{background:transparent;content:"";cursor:pointer;display:block;inset:0;position:absolute;z-index:1}[data-jodit_iframe_wrapper][data-jodit-wrapper_active=true] iframe{z-index:2}.jodit_lock [data-jodit-wrapper_active=true] iframe{z-index:1}:root{--jd-viewer-width:70px;--jd-viewer-height:24px;--jd-resizer-handle-size:10px;--jd-resizer-border-color:#98c1f1;--jd-resizer-handle-color:#5ba4f3;--jd-resizer-handle-hover-color:#537ebb}.jodit-resizer{font-size:0;height:100px;left:0;outline:3px solid var(--jd-resizer-border-color);pointer-events:none;position:absolute;top:0;width:100px}.jodit-resizer,.jodit-resizer *{box-sizing:border-box}.jodit-resizer>span{background-color:var(--jd-color-placeholder);color:var(--jd-color-white);display:inline-block;font-size:12px;height:var(--jd-viewer-height);left:50%;line-height:var(--jd-viewer-height);margin-left:calc(var(--jd-viewer-width)/-2);margin-top:calc(var(--jd-viewer-height)/-2);opacity:0;overflow:visible;position:absolute;text-align:center;top:50%;transition:opacity .2s linear;width:var(--jd-viewer-width)}.jodit-resizer>div{background-color:var(--jd-resizer-handle-color);display:inline-block;height:var(--jd-resizer-handle-size);pointer-events:all;position:absolute;width:var(--jd-resizer-handle-size);z-index:4}.jodit-resizer>div:hover{background-color:var(--jd-resizer-handle-hover-color)}.jodit-resizer>
50div:first-child{cursor:nwse-resize;left:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(2){cursor:nesw-resize;right:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(3){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nwse-resize;right:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(4){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nesw-resize;left:calc(var(--jd-resizer-handle-size)/-2)}@media (max-width:768px){.jodit-resizer>div :root{--jd-resizer-handle-size:calc(var(--jd-resizer-handle-size)*2)}}:root{--jd-height-search:30px;--jd-width-search:320px;--jd-width-search-input-box:60%;--jd-width-search-count-box:15%;--jd-transform-button-active:0.95;--jd-timeout-button-active:0.1s}.jodit-ui-search{height:0;position:absolute;right:0;top:0;width:0}.jodit-ui-search_sticky_true{position:fixed}.jodit-ui-search__box{background-color:var(--jd-color-panel);border:solid var(--jd-color-border);border-width:0 0 1px 1px;display:flex;max-width:100vw;padding:calc(var(--jd-padding-default)/2);position:absolute;right:0;width:var(--jd-width-search)}.jodit-ui-search__box input{background-color:transparent;border:0;height:100%;margin:0;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-search__box input[data-ref=replace]{display:none}.jodit-ui-search__box input:not(:focus)+input:not(:focus){border-top:1px solid var(--jd-color-border)}.jodit-ui-search__buttons,.jodit-ui-search__counts,.jodit-ui-search__inputs{height:var(--jd-height-search)}.jodit-ui-search__inputs{padding-right:calc(var(--jd-padding-default)/2);width:var(--jd-width-search-input-box)}.jodit-ui-search__counts{border-left:1px solid var(--jd-color-border);color:var(--jd-color-border);width:var(--jd-width-search-count-box)}.jodit-ui-search__buttons,.jodit-ui-search__counts{align-items:center;display:flex;justify-content:center}.jodit-ui-search__buttons{flex:1;padding-left:0}.jodit-ui-search__buttons button{background-color:transparent;border:1px solid transparent;height:100%;margin-right:1%;width:32%}.jodit-ui-search__buttons button[data-ref=replace-btn]{border:1px solid var(--jd-color-border);display:none;margin-top:2px;width:100%}.jodit-ui-search__buttons button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-ui-search__buttons button:focus{border:1px solid var(--jd-color-background-selection-opacity50)}.jodit-ui-search__buttons button:active{border:1px solid var(--jd-color-background-selection);transform:scale(var(--jd-transform-button-active))}.jodit-ui-search_empty-query_true [data-ref=next],.jodit-ui-search_empty-query_true [data-ref=prev]{opacity:.5}.jodit-ui-search_replace_true .jodit-ui-search__counts,.jodit-ui-search_replace_true .jodit-ui-search__inputs{height:calc(var(--jd-height-search)*2)}.jodit-ui-search_replace_true .jodit-ui-search__counts input,.jodit-ui-search_replace_true .jodit-ui-search__inputs input{height:50%;transition:background-color var(--jd-timeout-button-active) linear}.jodit-ui-search_replace_true .jodit-ui-search__counts input:focus,.jodit-ui-search_replace_true .jodit-ui-search__inputs input:focus{box-shadow:inset 0 0 3px 0 var(--jd-color-border)}.jodit-ui-search_replace_true .jodit-ui-search__counts input[data-ref=replace],.jodit-ui-search_replace_true .jodit-ui-search__inputs input[data-ref=replace]{display:block}.jodit-ui-search_replace_true .jodit-ui-search__buttons{flex-wrap:wrap}.jodit-ui-search_replace_true .jodit-ui-search__buttons button[data-ref=replace-btn]{display:block}::highlight(jodit-search-result),[jd-tmp-selection]{background-color:var(--jd-color-background-selection);color:var(--jd-color-text-selection)}.jodit-container:not(.jodit_inline){min-height:100px}.jodit-container:not(.jodit_inline) .jodit-workplace{display:flex;flex-direction:column;height:auto;min-height:50px;overflow:hidden}.jodit-container:not(.jodit_inline) .jodit-editor__resize{position:relative}.jodit-container:not(.jodit_inline) .jodit-editor__resize svg{bottom:0;cursor:nwse-resize;
50fill:var(--jd-color-gray-dark);height:12px;overflow:hidden;position:absolute;right:0;user-select:none;width:12px}.jodit-source{background-color:var(--jd-color-source-area);display:none;flex:auto;overflow:auto;position:relative}.jodit-source,.jodit-source .jodit-source__mirror-fake{min-height:100%}.jodit-source *{font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace}.jodit-container.jodit-source__mode .jodit-wysiwyg,.jodit-container.jodit-source__mode .jodit-wysiwyg_iframe{display:none!important}.jodit-container.jodit-source__mode .jodit-source{display:block!important}.jodit-container.jodit_split_mode .jodit-workplace{flex-flow:row nowrap}.jodit-container.jodit_split_mode .jodit-source,.jodit-container.jodit_split_mode .jodit-wysiwyg,.jodit-container.jodit_split_mode .jodit-wysiwyg_iframe{display:block!important;flex:1;width:50%}.jodit-source__mirror{background:var(--jd-color-source-area);border:0;box-shadow:none;box-sizing:border-box;color:#f0f0f0;height:100%;line-height:1.5;font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;margin:0;min-height:100%;outline:none;overflow:auto;padding:var(--jd-padding-default);resize:none;tab-size:2em;white-space:pre-wrap;width:100%;z-index:2}.jodit-source__mirror::selection{background:var(--jd-color-selection-area)}.jodit_sticky-dummy_toolbar{display:none}.jodit_sticky>.jodit-toolbar__box{border-bottom:1px solid var(--jd-color-border);left:auto;position:fixed;position:sticky;top:0;z-index:3}.jodit_sticky .jodit_sticky-dummy_toolbar{display:block}.jodit-symbols{padding:var(--jd-padding-default);width:460px}.jodit-symbols__container{display:flex}.jodit-symbols__container_table{width:88%}.jodit-symbols__container_preview{width:12%}.jodit-symbols__preview{border:1px solid var(--jd-color-border);font-size:34px;padding:20px 0;text-align:center}.jodit-symbols__table{border:0;border-spacing:0;table-layout:fixed}.jodit-symbols__table td{padding:0}.jodit-symbols__table td a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-text);cursor:pointer;display:inline-block;font-size:16px;height:calc(var(--jd-height-element-default)*1.2);line-height:calc(var(--jd-height-element-default)*1.2);text-align:center;text-decoration:none;vertical-align:top;width:calc(var(--jd-width-element-default)*1.2)}.jodit-symbols__table td a:focus,.jodit-symbols__table td a:hover{outline:2px solid var(--jd-color-border)}.jodit-ui-ai-assistant{min-width:460px;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-ui-ai-assistant{min-width:100%}}.jodit-ui-ai-assistant__body{margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row{align-items:flex-start;display:flex;margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row-label{margin-right:10px}.jodit-ui-ai-assistant__prompt-row-input{flex:1;margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-icon_ai_assistant{cursor:pointer;height:22px;width:22px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button{margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button_ai_assistant{margin-right:0;margin-top:20px}.jodit-ui-ai-assistant__results{border-color:var(--jd-color-label);border-style:solid;border-width:1px;height:300px;line-height:1.5;max-width:460px;min-height:300px;min-width:100%;overflow:auto;padding:var(--jd-padding-default);position:relative}.jodit-ui-ai-assistant__results p{margin:0 0 10px}.jodit-ui-ai-assistant__close{cursor:pointer;padding:10px;position:absolute;right:0;top:0}.jodit-ui-ai-assistant_hide_true{display:none}.jodit-ui-ai-assistant__spinner:before{animation:b .6s linear infinite;border:1px solid #ccc;border-radius:50%;border-top-color:#8817c3;box-sizing:border-box;content:"";height:30px;left:50%;margin-left:-15px;margin-top:-15px;position:absolute;top:50%;width:30px}.jodit-ui-ai-assistant__error{color:var(--jd-color-error)}.jodit-context table,.jodit-wysiwyg table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit-context table tr,.jodit-wysiwyg table tr{user-select:none}.jodit-context table tr td,.jodit-context table tr th,.jodit-wysiwyg table tr td,.
50jodit-wysiwyg table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-form__inserter{--jd-color-table-cell-background-hover:var(--jd-color-button-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box{display:flex}@media (max-width:768px){.jodit-form__inserter .jodit-form__table-creator-box{flex-direction:column}}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container{font-size:0;margin:0;min-width:180px;padding:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span{border:1px solid var(--jd-color-border);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--jd-height-element-default);margin-bottom:2px;margin-left:2px;vertical-align:top;width:var(--jd-width-element-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span:first-child{margin-left:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span.jodit_hovered{background:var(--jd-color-table-cell-background-hover);border-color:var(--jd-color-table-cell-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options{font-size:var(--jd-font-size-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label{padding-top:0;text-align:left}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label input{margin-right:var(--jd-padding-default)}.jodit-form__inserter label{font-size:14px;margin:0;padding:8px;text-align:center}.jodit-xpath{align-items:center;display:flex;margin-left:calc(var(--jd-padding-default)/-2)}.jodit-xpath__item{display:flex;height:var(--jd-font-size-small);line-height:calc(var(--jd-font-size-small) - 1px)}.jodit-xpath__item a{color:var(--jd-color-default);font-size:var(--jd-font-size-small);margin-left:2px;outline:0;padding:0 3px}:root{--jd-color-white:#fff;--jd-color-gray:#dadada;--jd-color-gray-dark:#a5a5a5;--jd-color-dark:#4c4c4c;--jd-color-blue:#b5d6fd;--jd-color-light-blue:rgba(181,214,253,.5);--jd-color-red:#ff3b3b;--jd-color-light-red:rgba(255,59,59,.4);--jd-color-default:var(--jd-color-dark);--jd-color-text:#222;--jd-color-label:var(--jd-color-gray-dark);--jd-color-error:var(--jd-color-red);--jd-color-border:var(--jd-color-gray);--jd-color-border-dark:var(--jd-color-dark);--jd-color-border-selected:#1e88e5;--jd-color-border-active:#b5b5b5;--jd-color-selection:var(--jd-color-dark);--jd-color-selection-area:#bdbdbd;--jd-color-separator:var(--jd-color-border);--jd-color-placeholder:var(--jd-color-gray-dark);--jd-color-panel:#f9f9f9;--jd-color-resizer:#c8c8c8;--jd-color-background-default:var(--jd-color-white);--jd-color-background-light-gray:#f5f5f6;--jd-color-background-gray:var(--jd-color-gray);--jd-color-background-gray-hover:#f8f8f8;--jd-color-background-button-hover:#ecebe9;--jd-color-background-button-hover-opacity30:hsla(40,7%,92%,.3);--jd-color-background-progress:#b91f1f;--jd-color-background-active:#2196f3;--jd-color-background-selection:#b5d6fd;--jd-color-text-selection:var(--jd-color-white);--jd-color-background-selection-opacity50:rgba(181,214,253,.995);--jd-color-source-area:#323232;--jd-color-button-background-hover:#dcdcdc;--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.4);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.6);--jd-font-default:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;--jd-font-size-default:14px;--jd-font-size-small:11px;--jd-color-text-icons:rgba(0,0,0,.75);--jd-color-icon:var(--jd-color-dark);--jd-padding-default:8px;--jd-border-radius-default:3px;--jd-icon-tiny-size:8px;--jd-icon-xsmall-size:10px;--jd-icon-small-size:12px;--jd-icon-middle-size:14px;--jd-icon-large-size:16px;--jd-z-index-full-size:100000;--jd-z-index-popup:10000001;--jd-z-index-dialog-overlay:20000003;--jd-z-index-dialog:20000004;--jd-z-index-context-menu:30000005;--jd-z-index-tooltip:30000006;--jd-icon-loader-size:48px;--jd-width-element-default:18px;--jd-height-element-default:18px;--jd-dark-background-color:#575757;--jd-dark-background-ligher:silver;--jd-dark-background-darknes:#353535;--jd-dark-border-color:#444;--jd-dark-text-color:#d1cccc;--jd-dark-text-color-opacity80:hsla(0,5%,81%,.8);--jd-dark-text-color-opacity50:hsla(0,5%,81%,.5);--jd-dark-icon-color:silver;--jd-dark-toolbar-color:#5f5c5c;--jd-dark-toolbar-seperator-color1:rgba(81,81,81,.41);
50--jd-dark-toolbar-seperator-color2:#686767;--jd-dark-toolbar-seperator-color-opacity80:hsla(0,0%,41%,.8);--jd-dark-toolbar-seperator-color3:hsla(0,0%,41%,.75);--jd-dark-color-border-selected:#152f5f;--jd-width-default:180px;--jd-width-input-min:var(--jd-width-default);--jd-input-height:32px;--jd-button-icon-size:14px;--jd-margin-v:2px;--jd-button-df-size:calc((var(--jd-button-icon-size) - 4px)*2);--jd-button-size:calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v)*2);--jd-focus-input-box-shadow:0 0 0 0.05rem rgba(0,123,255,.25)}.jodit-wysiwyg{outline:0}.jodit-wysiwyg ::selection,.jodit-wysiwyg::selection{background:#b5d6fd;color:#4c4c4c}.jodit-container:not(.jodit_inline) .jodit-wysiwyg{margin:0;outline:0;overflow-x:auto;padding:8px;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg img{max-width:100%;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media{position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media *{position:relative;z-index:0}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media:before{content:"";inset:0;position:absolute;z-index:1}:root{--jd-switche-width:60px;--jd-switche-height:32px;--jd-switche-slider-margin:4px;--jd-switche-slider-size:calc(var(--jd-switche-height) - var(--jd-switche-slider-margin)*2)}.jodit-form{color:var(--jd-color-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-form.jodit_error{border-color:var(--jd-color-error);box-shadow:inset 0 0 3px 0 hsla(0,0%,74%,.3)}@media (max-width:768px){.jodit-form{min-width:150px}}.jodit-form button{background:#d6d6d6;border:none;color:var(--jd-color-dark);cursor:pointer;font-size:16px;height:36px;line-height:1;margin-bottom:var(--jd-padding-default);margin-top:var(--jd-padding-default);outline:none;padding:var(--jd-padding-default);text-decoration:none;transition:background .2s ease 0s}.jodit-form button:hover{background-color:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form button:active{background:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form label{align-items:center;display:flex;margin-bottom:var(--jd-padding-default);text-align:left;white-space:nowrap}.jodit-form label:last-child{margin-bottom:0}.jodit-form .jodit-form__center{justify-content:center}.jodit .jodit-input,.jodit .jodit-select,.jodit .jodit-textarea{appearance:none;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit .jodit-input[disabled],.jodit .jodit-select[disabled],.jodit .jodit-textarea[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit .jodit-input_has-error_true,.jodit .jodit-select_has-error_true,.jodit .jodit-textarea_has-error_true{border-color:var(--jd-color-red)}.jodit .jodit-input:focus{border-color:#66afe9;outline:0}.jodit-checkbox{border:0;cursor:pointer;height:16px;margin:0 calc(var(--jd-padding-default)/2) 0 0;outline:none;padding:0;position:relative;width:16px;z-index:2}.jodit-select{background-image:url(${m});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-textarea{height:auto}.jodit-form__group,.jodit-textarea{min-width:var(--jd-width-input-min)}.jodit-form__group{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-form__group label{margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-button{align-items:center;background-color:var(--jd-color-background-gray);border:0;border-radius:.25rem;color:var(--jd-color-default);cursor:pointer;display:inline-flex;height:calc(var(--jd-padding-default)*4);justify-content:center;line-height:1;margin:0;padding:0 var(--jd-padding-default);position:relative;text-decoration:none;user-select:none;width:auto}.jodit-button svg{display:inline-block;height:24px;width:24px}.jodit-button svg+span{margin-left:calc(var(--jd-padding-default)/2)}.jodit-button:active,.jodit-button:focus{outline:0}.jodit-button.disabled{opacity:.7}.jodit-buttons{display:flex;flex-wrap:nowrap;justify-content:space-between;margin-bottom:var(--jd-padding-default)}.jodit-button .jodit_icon,.jodit-button svg,.jodit-dialog__header .jodit_icon,.jodit-dialog__header svg{display:inline-block;height:16px;vertical-align:middle;width:16px}.jodit-switcher-wrapper{align-items:center;display:flex}.jodit-switcher-wrapper .jodit-switcher+span{margin-left:var(--jd-padding-default)}.jodit-switcher{display:inline-block;height:var(--jd-switche-height);position:relative;width:var(--jd-switche-width)}.jodit-switcher input{height:0;opacity:0;width:0}.jodit-switcher .jodit-switcher__slider{background-color:var(--jd-color-gray);border-radius:var(--jd-switche-height);cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-switcher .jodit-switcher__slider:before{background-color:#fff;border-radius:50%;bottom:var(--jd-switche-slider-margin);content:"";height:var(--jd-switche-slider-size);left:var(--jd-switche-slider-margin);position:absolute;transition:.4s;width:var(--jd-switche-slider-size)}input:checked+.jodit-switcher__slider{background-color:var(--jd-color-background-active)}
50input:checked+.jodit-switcher__slider:before{transform:translateX(calc(var(--jd-switche-width) - var(--jd-switche-slider-margin)*2 - var(--jd-switche-slider-size)))}input:focus+.jodit-switcher__slider{box-shadow:0 0 1px var(--jd-color-background-active)}.jodit-button-group{display:flex}.jodit-button-group input{display:none}.jodit-button-group button{display:flex;flex:1;justify-content:center;text-align:center}.jodit-button-group button+button{margin-left:-1px}.jodit-button-group button:first-child,.jodit-button-group input:first-child+button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.jodit-button-group button:last-child,.jodit-button-group input:last-child+button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.jodit-button-group input[type=checkbox]:checked+button,.jodit-button-group input[type=checkbox]:not(:checked)+button+button{background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.05)}.jodit_text_icons .jodit_icon{font-size:var(--jd-font-size-default);width:auto}.jodit_text_icons .jodit_icon:first-letter{text-transform:uppercase}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a{font-family:var(--jd-font-default);width:auto}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a i{width:auto}.jodit_text_icons.jodit-dialog .jodit-button,.jodit_text_icons.jodit-dialog .jodit-dialog__header a{color:var(--jd-color-text-icons);font-family:var(--jd-font-default);padding:var(--jd-padding-default);width:auto}.jodit_text_icons.jodit-dialog .jodit-button .jodit_icon,.jodit_text_icons.jodit-dialog .jodit-dialog__header a .jodit_icon{width:auto}.jodit-grid{display:flex;width:100%}.jodit-grid.jodit-grid_column{flex-direction:column}@media (max-width:480px){.jodit-grid.jodit-grid_xs-column{flex-direction:column}}.jodit-grid [class*=jodit_col-]{flex:1 1 auto}.jodit-grid .jodit_col-lg-5-5{width:100%}.jodit-grid .jodit_col-lg-4-5{width:80%}.jodit-grid .jodit_col-lg-3-5{width:60%}.jodit-grid .jodit_col-lg-2-5{width:40%}.jodit-grid .jodit_col-lg-1-5{width:20%}.jodit-grid .jodit_col-lg-4-4{width:100%}.jodit-grid .jodit_col-lg-3-4{width:75%}.jodit-grid .jodit_col-lg-2-4{width:50%}.jodit-grid .jodit_col-lg-1-4{width:25%}@media (max-width:992px){.jodit-grid .jodit_col-md-5-5{width:100%}.jodit-grid .jodit_col-md-4-5{width:80%}.jodit-grid .jodit_col-md-3-5{width:60%}.jodit-grid .jodit_col-md-2-5{width:40%}.jodit-grid .jodit_col-md-1-5{width:20%}.jodit-grid .jodit_col-md-4-4{width:100%}.jodit-grid .jodit_col-md-3-4{width:75%}.jodit-grid .jodit_col-md-2-4{width:50%}.jodit-grid .jodit_col-md-1-4{width:25%}}@media (max-width:768px){.jodit-grid .jodit_col-sm-5-5{width:100%}.jodit-grid .jodit_col-sm-4-5{width:80%}.jodit-grid .jodit_col-sm-3-5{width:60%}.jodit-grid .jodit_col-sm-2-5{width:40%}.jodit-grid .jodit_col-sm-1-5{width:20%}.jodit-grid .jodit_col-sm-4-4{width:100%}.jodit-grid .jodit_col-sm-3-4{width:75%}.jodit-grid .jodit_col-sm-2-4{width:50%}.jodit-grid .jodit_col-sm-1-4{width:25%}}@media (max-width:480px){.jodit-grid .jodit_col-xs-5-5{width:100%}.jodit-grid .jodit_col-xs-4-5{width:80%}.jodit-grid .jodit_col-xs-3-5{width:60%}.jodit-grid .jodit_col-xs-2-5{width:40%}.jodit-grid .jodit_col-xs-1-5{width:20%}.jodit-grid .jodit_col-xs-4-4{width:100%}.jodit-grid .jodit_col-xs-3-4{width:75%}.jodit-grid .jodit_col-xs-2-4{width:50%}.jodit-grid .jodit_col-xs-1-4{width:25%}}@keyframes b{to{transform:rotate(1turn)}}.jodit-icon_loader{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;display:inline-block;height:var(--jd-icon-loader-size);vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-icon{background:50% no-repeat;background-size:contain;fill:var(--jd-color-icon);height:14px;overflow:visible;transform-origin:0 0!important;width:14px}.jodit-icon,.jodit-icon_close{stroke:var(--jd-color-icon)}svg.jodit-icon{height:auto;isolation:isolate}.jodit-icon_text{font-size:14px}.jodit,.jodit-container{--jd-jodit-workplace-height:auto}.jodit,.jodit *,.jodit-container,.jodit-container *{box-sizing:border-box}
50.jodit .jodit-workplace,.jodit-container .jodit-workplace{flex:1 1 auto;height:var(--jd-jodit-workplace-height);min-height:0;min-width:0;overflow:auto;position:relative}.jodit .jodit-workplace .jodit-wysiwyg,.jodit .jodit-workplace .jodit-wysiwyg_iframe,.jodit-container .jodit-workplace .jodit-wysiwyg,.jodit-container .jodit-workplace .jodit-wysiwyg_iframe{height:100%;width:100%}.jodit-wysiwyg [contenteditable=false]{cursor:default}.jodit-container:not(.jodit_inline){background-color:var(--jd-color-background-light-gray);border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default)}.jodit-container:not(.jodit_inline) .jodit-workplace{background-color:var(--jd-color-background-default);border:0 solid var(--jd-color-border);max-height:100%}.jodit-container:not(.jodit_inline).jodit_disabled{background:var(--jd-color-background-gray)}.jodit-container:not(.jodit_inline).jodit_disabled .jodit-workplace{opacity:.4}.jodit_disabled,.jodit_lock{user-select:none!important}.jodit_hidden{display:none!important}.jodit_vertical_middle{align-items:center;display:flex}.jodit-box{background:0 0;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.jodit{--jd-slot-top-height:auto;--jd-slot-bottom-height:auto;--jd-slot-left-width:auto;--jd-slot-right-width:auto}.jodit .jodit-jodit__workplace-slot_bottom_true,.jodit .jodit-jodit__workplace-slot_top_true{flex:0 0 auto;min-width:0}.jodit .jodit-jodit__workplace-slot_bottom_true:empty,.jodit .jodit-jodit__workplace-slot_top_true:empty{display:none}.jodit .jodit-jodit__workplace-slot_top_true{height:var(--jd-slot-top-height)}.jodit .jodit-jodit__workplace-slot_top_true:not(:empty){border-bottom:1px solid var(--jd-color-border,transparent)}.jodit .jodit-jodit__workplace-slot_bottom_true{height:var(--jd-slot-bottom-height)}.jodit .jodit-jodit__workplace-slot_bottom_true:not(:empty){border-top:1px solid var(--jd-color-border,transparent)}.jodit .jodit-jodit__workplace-slot_center_true{align-items:stretch;display:flex;flex:1 1 auto;gap:0;max-height:var(--jd-jodit-workplace-height);min-height:0;min-width:0}.jodit .jodit-jodit__workplace-slot_left_true,.jodit .jodit-jodit__workplace-slot_right_true{contain:size;flex:0 0 auto;max-width:50%;min-width:0;overflow:auto}.jodit .jodit-jodit__workplace-slot_left_true:empty,.jodit .jodit-jodit__workplace-slot_right_true:empty{display:none}.jodit .jodit-jodit__workplace-slot_left_true{width:var(--jd-slot-left-width)}.jodit .jodit-jodit__workplace-slot_left_true:not(:empty)+.jodit-workplace{border-left:1px solid var(--jd-color-border,transparent)}.jodit .jodit-jodit__workplace-slot_right_true{width:var(--jd-slot-right-width)}.jodit .jodit-workplace+.jodit-jodit__workplace-slot_right_true:not(:empty){border-left:1px solid var(--jd-color-border,transparent)}.jodit.jodit_lock{user-select:none!important}.jodit.jodit_lock .jodit-jodit__workplace-slot_bottom_true,.jodit.jodit_lock .jodit-jodit__workplace-slot_center_true,.jodit.jodit_lock .jodit-jodit__workplace-slot_left_true,.jodit.jodit_lock .jodit-jodit__workplace-slot_right_true,.jodit.jodit_lock .jodit-jodit__workplace-slot_top_true{overflow:hidden}.jodit-dialog_theme_dark,.jodit_theme_dark{--jd-color-border:#6b6b6b;--jd-color-text:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size))}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){border-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after,.jodit_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after,.jodit_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after{border-right-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container,.jodit_theme_dark.jodit-container{background-color:var(--jd-dark-background-color);border-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container.jodit_disabled,.jodit_theme_dark.jodit-container.jodit_disabled{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace,.jodit_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace{border-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-popup__content,.jodit_theme_dark .jodit-popup__content{background:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-toolbar-button,.jodit-dialog_theme_dark .jodit-toolbar-select,.jodit-dialog_theme_dark .jodit-ui-button,.jodit_theme_dark .jodit-toolbar-button,.jodit_theme_dark .jodit-toolbar-select,.jodit_theme_dark .jodit-ui-button{--jd-color-icon:var(--jd-dark-icon-color)}
50.jodit-dialog_theme_dark .jodit-toolbar-button__text,.jodit-dialog_theme_dark .jodit-toolbar-select__text,.jodit-dialog_theme_dark .jodit-ui-button__text,.jodit_theme_dark .jodit-toolbar-button__text,.jodit_theme_dark .jodit-toolbar-select__text,.jodit_theme_dark .jodit-ui-button__text{color:var(--jd-color-text)}.jodit-dialog_theme_dark .jodit-toolbar-button .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-button svg,.jodit-dialog_theme_dark .jodit-toolbar-button__trigger,.jodit-dialog_theme_dark .jodit-toolbar-select .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-select svg,.jodit-dialog_theme_dark .jodit-toolbar-select__trigger,.jodit-dialog_theme_dark .jodit-ui-button .jodit-icon,.jodit-dialog_theme_dark .jodit-ui-button svg,.jodit-dialog_theme_dark .jodit-ui-button__trigger,.jodit_theme_dark .jodit-toolbar-button .jodit-icon,.jodit_theme_dark .jodit-toolbar-button svg,.jodit_theme_dark .jodit-toolbar-button__trigger,.jodit_theme_dark .jodit-toolbar-select .jodit-icon,.jodit_theme_dark .jodit-toolbar-select svg,.jodit_theme_dark .jodit-toolbar-select__trigger,.jodit_theme_dark .jodit-ui-button .jodit-icon,.jodit_theme_dark .jodit-ui-button svg,.jodit_theme_dark .jodit-ui-button__trigger{fill:var(--jd-color-icon);stroke:var(--jd-color-icon)}.jodit-dialog_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__trigger:hover:not([disabled]){--jd-color-text:var(--jd-dark-background-color);--jd-color-icon:var(--jd-dark-background-color);background-color:var(--jd-dark-background-ligher);color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-status-bar:not(:empty){background-color:var(--jd-dark-toolbar-color);border-color:var(--jd-color-border);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit-dialog_theme_dark .jodit-status-bar:not(:empty),.jodit-dialog_theme_dark .jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jo
50dit-dialog_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit_theme_dark .jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){background:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-icon-close,.jodit_theme_dark .jodit-icon-close{stroke:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-wysiwyg,.jodit-dialog_theme_dark .jodit-wysiwyg_iframe,.jodit_theme_dark .jodit-wysiwyg,.jodit_theme_dark .jodit-wysiwyg_iframe{background-color:var(--jd-dark-background-color);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form input[type=text],.jodit-dialog_theme_dark .jodit-form input[type=url],.jodit-dialog_theme_dark .jodit-form textarea,.jodit_theme_dark .jodit-form input[type=text],.jodit_theme_dark .jodit-form input[type=url],.jodit_theme_dark .jodit-form textarea{background-color:var(--jd-dark-toolbar-seperator-color1);border-color:var(--jd-dark-toolbar-seperator-color2);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form button,.jodit_theme_dark .jodit-form button{background-color:var(--jd-dark-toolbar-seperator-color3);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-placeholder,.jodit_theme_dark .jodit-placeholder{color:var(--jd-dark-text-color-opacity80)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box,.jodit-dialog_theme_dark .jodit_uploadfile_button,.jodit_theme_dark .jodit-drag-and-drop__file-box,.jodit_theme_dark .jodit_uploadfile_button{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit-dialog_theme_dark .jodit_uploadfile_button:hover,.jodit_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit_theme_dark .jodit_uploadfile_button:hover{background-color:var(--jd-dark-toolbar-seperator-color3)}.jodit-dialog_theme_dark .jodit-add-new-line:before,.jodit_theme_dark .jodit-add-new-line:before{border-top-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span,.jodit_theme_dark .jodit-add-new-line span{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span svg,.jodit_theme_dark .jodit-add-new-line span svg{fill:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-resizer>i,.jodit_theme_dark .jodit-resizer>i{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-input,.jodit-dialog_theme_dark .jodit-select,.jodit_theme_dark .jodit-input,.jodit_theme_dark .jodit-select{background-color:var(--jd-dark-background-ligher);border-color:var(--jd-dark-border-color);color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog,.jodit_theme_dark.jodit-dialog{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-dialog__header,.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item,.jodit_theme_dark.jodit-dialog .jodit-dialog__header,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item{border-color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info,.jo
50dit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info{background-color:var(--jd-dark-text-color)}`,""]);const g=f},72:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],c=r.base?l[0]+r.base:l[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),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;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=n(i[a]);t[s].references--}for(var l=r(e,o),c=0;c<i.length;c++){var u=n(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=l}}},659:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{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))}}},333:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)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]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},504:e=>{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}},772:e=>{e.exports=function(e){return e[1]}},789:e=>{e.exports="
vendor: 7,142 bytes, line 50
50data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAABRsSURBVHja7F1/aJfVGn/33RgUg8FiNfK2WCykyS7GLoYyUbwYipZMumgLo+iPS9HlXhSHkRXdislESxMz0mapuaFo2myjkfnNlTQ2FJdTu8NvLVcrdbpcfGvxrfs823m/vXt3fjznvOedzr0PPJzzPe+7d+97Ps95nuc851fGAw884CD98ccfI1Jqmc3UpEyQz4FkMqRTgYshn8fymZ57SyGbzf5mENIOz9+ngE9Atg/SLkhPQHoWeEDn3SmpSZlJnvf7ypUrTpb7IyMjY+gGN6WWmaY84l2T3c+u58D1csjOgvwsyBdBvsDRo2zgMl/ZNM59vcAJ4Dj8nzikLa5QmBLv28YCfPd3li7gPHBMwKdcEwhCJgN6FoLOWJtUgiWovALG04FXsbI44xbgw8AplbaU/Q+ZQNgGf0gA/JWhC1aQyle1eN91rPRKKKuEsjzZvSph0m2RiutpIYRrfZC8B+l7kB6jgq0CnQIy9X39v2NYQW5FeUFQlQVN/aALyiYBPw/5M5B+Dvw02vMggqcDukEl57F3xHf9H747+4bA5oD6dzqaYEgAqIDbBl9RhvZ4H/B5yL+IDp3oXhmwNkm3lTLn80VIz+O3QFqm2/rHwgeI6QDOa006LZ3Q4lHNNwK3AVeYAD4WgmHQUivYNzWyb7xufICYaavXVbuKZ6MXfwRVJ+TnXW+Am/oMnNaO3/Y5pPitcyh/a6LqtXwAt+J01LVFEzAJ0jpIj7JunJYd1wHchnBQHUSC3Uan8WPgPVgHlBiBCcAkH4Da2i2DjwGZlcy5W0K17zLwVb9NgaY4iJpawJs+BCnWwUo3SKXT4oOAP8IHCFsIfMCguj8JaQ2kOaaA227d10ALuIR1gHVxErjctPtHBd8btSR3A4MIgSePAZxqVPeQlthq7ZRuZVABCVkLuGkJpGgKsY4ybfUEVO84qhsoAzSgrUfHZ1UQVe99B6o2oMYdwg7latAq5iROGoueQExW6UE0gCe/ANIh9SZ6jqkWsN3STZ0rHWEgpkNmEvILxqQbSAXaAPxqSBswQkbpbpo6fGPR0m3GBYjBIIwqNjCTEAr4wkBQUA0AjKNrdZCu0okAqgQhTKCDhFxV91BNgsDuYx3WQZptG3xtDUCJEDKvthGuLVEJlq4gUMyAylfQERadPrhKOHTmB3Ces4RFEXNsgW8UClbZcEhxqPQIpHOord2k1ZsAH4YvYNJXN3EgWX4Ocw4LbIEvDQSJfADJtULWxSuj+BBUP4DaC6D0DkyFg6JKTVo/5brvXqzbo2zSi3af3/9bGgrW1Ar5kH4MXEzVHEHVf5CuYZC4fti9AoI/gXX8Eda5Tp9f9I4xWWsnOoc5zNMv1okjmKp/vzay3epNJ4+YmALdoWBPWTHksc5zTU1AekqYt7LcWTruTYTZQdmQHoB0GuXv/de8L8e7xrsuA8kPNtx3AZIOxp3APc7wvD6kvi+//DLh3nvPPfegWs1jf4dBGGxpOA+hlOXzgw7VBjEBnDKcs4jzDOZDOmjqD2SJQFGBx9JaSOcQ7xVO2RIJhf86AfB+Z3huHs7Ra2pra+ugtubTp0+jMLgC0e6/ftddd6EgzMO5iGwSaq4NITCdLczy6GzXAj8KnDIxAaM0AKeViwCtgbRSNgGUJwQyDaACngO4w6S/CXgb8KEvvvgiFUaw59y5c64mWXvnnXdmsijdYxjpdP6cXh6oS0g1Bb48zpFEzValA3663pcuXaoleSzFltBIlWhRmWx+v6yMcQJ4PU7A/Oyzz/qca0R33HEHrjlAEJa73rns24JqA0keTUGTjglIJpNOxsMPP6wLfiGkx53hxRbcewwXc1BAx0u4gGMNcP2nn36acq4juv322ytZ5K7UlhBo5LER3AvcTXU60wKgYbsyWTCi3LTV6wLvKesGrvrkk0/qneucCgoKHoJkHbxvYRAhMMij/zMbVzZRTMAvv/wycj4AoRv4Mk7oII4HkLp+vC6drwxt/FrgKeMBfKTe3t69UMFTgPG9B3WcQdMeBsvjhJJqnYGqjMrKSmr/tZxNWAi87o9i+1l5O6SPNjc3dzrjlPLz83HyC/aWpqk0gWZUUHZtJvxuUZmAtAYgtHycr/a6qIXz2DQI5OH1UDRjPIOPdOHChU6o+JmQXW+68JYS4vUB/bozvN5RGAImdwPZA3AC51RKrMAfyBHFGCRBnz4oe7ypqemgc4PQxYsX0YytuOWWW3BRaa3DWd0U1A/w/Z4KvBx4jcoExAitE6dzPStr3RR/QKQ5fOUJ4PsaGxtvGPC9dOnSJfyu+7ALa9MJFPx+lkU05YNBBDVdg0uwKc4eAWCZ83cC8jM+/PDDLucGpr6+Pvy+GWz/ASs9AMFvd7ax1ATEFOBjmLdSBraN3gBwHHhmQ0NDrzMB6PLly73MUYubOs3EiB/GJebyTEB6QogCnGrV6KAFR7AVeP4HH3ww4EwgunLlCn7vfACi1UQDqMb5PWUvm5qAB3HESXNomKz2GaOHv/DAgQNJZwJSf38/fvdC3J5G1iPQnf3jK5sGvx80MQHP69hxHWZ/2wN8//vvv3/BmcD0008/XWCaoEcUJ6C0eoUWeFbXBOBCzTKKJ2/YExgEXrRv374eJyLn6tWrWA+LAJRBy+o/rQUQUx0TsFwzRKzLK/bu3dseQf8nDQwMYH2sCOL0ibx9Vr6cagIKmf0nxe8pguC7vn/Pnj2bIshH088//4z1st+m+veUI6ZFFBOwLGj/XqIh0O4/HkEtJgDmcZ4/EED9e69VKk0ACoDN1u/jqrq6uv4IZjElk0msnypbwPs0wTKVCUBnYbLuMC5REA7v3r37vQhikhBgPTWrTAEFeB9NZt3C0SbAr/6DdPM4jF7/PyNotUzBU26vgAo8x+7zri3jmgAgnOJdKYrVB9QEb+zcubMrgpVOv/76K9bXGzrACwTJfw1D+9k8EzAXOE8GviEPAK+JIDXSAlhvA7yWTWztvMfiXM65PBNQrgLfUBi2v/vuu70RnPo0ODjYC0BtN3D2VNfLR5gAz04eRn17yb0p4A0RlIEI6y+la/MV1xf4fYACSEtDiP031dbWRrY/AP32229dAGCTrs1XrHHEaesFXh+gXCfooyEM2yIIrdC2ADZ/1D1eM+CagHLJ5ExTxrl9hyLsrDiDWI99EjApgPvLRwhAmQh4HV/Axwe3bt06GMEXnFKpFK4tOBgQcH95WdoEAE01nc8Xi8VEArA3gs4q7VWpfsHaCpEg4GrnoeXhOEKUw3u4yZYqbGo4Lk2KR5hZpcOsXjO9GIm0AYFycTErmoDJVLWu0Tto3bJly0CEmT36/fffkzh/UKfVE3yLkix3Xx+v5FjYaaslgiwUZxDrdbrm38guF6EAFFKAF5kEwcFPrRFcoVCrIdAiKsSlYUWqFi/zBwTXOiKsQqGOIKe1cQRmSAPkmYIv0ADY9Yuif+GYgC5Wv9kB1L6X8lAA8k3BFwhB94YNG1IRXPYJutwpINwBpNjSI/O5AhDQGUxEUIVKCRMBEGiFIQG4yX+Daf+fPacvwihUM2Czfm/KcgMLtjZZhudEY//hks2VVJlZ7tJvi5SMMApVA9gMsOVkXYvDFiO6fggFACUqJ6qKcaMBbD5uAH2AlE0fIKJxRSnUAGizcykePtWzjOo1VA2gpa0V2CVRALBbURDwQV4qiGAKVQDyLZ571JfFum0lFqTJvScvgilUytPxAxSY9boawMbD3OtFEUahaoAinQap0gA4JSzhPswSFz733HOZEVT2KZlMYr0WesGV7KpOoQRqgG6DVi4rx5EqjFWfjSCz3vqLHd9IoGyYnoBjNwpAwhBoWXlpJAChCECpv66p5ycJBCSBcwI7daZ7E83FtAiuUGgaT/WLACaYhk4MBCVk0UDKWb2c3+URVqFogOm8OqccqMW5d+Dmm29OuGsDOyw7gmUvvfRSFBCySFevXsX6LBO1cIoG8NEQ5u7KoFbLi0Kz3fODI7JGeHbwTSJADcxCq1cAWnR39yYIQUWEmVX1X2G6SYTgnhavABwL0uoF91dUV1dnR9AFp/7+fjysq0IGvIEGODYkAOwa7t/XYXl3kDzgBRF8Vgg3eczT2SqGYP97vBoA83ELrd6/WPSJCDsr6v8Jw91BRdfS6za9ewQ1qVo9RQv47plXU1NTHEFoTpcvX8aTwueJgKdoAI4wpE8Y9e4SdtgdGLK4S1gm8L8jGAO1fqy/TNmiUE1hQIwPj9AADOQk7ugRdJ9ADj+2bt26aI6AAV26dAnr7THqnsFEYTgEnBRtFl0fwk6hOcCrIjiNaBXOAKIcuq3hG4w4fTXma+lNOEHEZFs4hcA8+eqrr0a+gAZdvHgRbf+TsrMDDMxBr2v/eT7A0L5+8HN7AKdPFhncHMGqZftfB84Wga0yBwKtsN1hk4B5PsCIrd0C2HwRz924cWNlBK2afvzxx0rX89c5Qo4gCNv85bwDI7r8XUKqynfL/KmHazZt2pQbQSymH374AffuqeEB7gWXCrzHFCCmXf5niE4NWxPkJFAJ41GmtRHMUtWP9TNJdYScgQZYo3NoFEYF21WmgAq8776KzZs3Px1BPZq+//57rJcKXhg3oClo90b/qCeHvqLjA2j6B+u2bNlSFkH+J3333XdlAMo6ntq3cJroK6K4gOzgyP2oBaj2nqIdPGXYKzjw5ptvToqgd5yenh5U+Qcgmy07UdxQA7QD7xfFClSnh68Oelag6H5n+Fj6j9566638iQz++fPn8wGMRq/dV4EviwVwrq0W9QpUJsAdINof5LRQxfNLgBu2bt06IaePffvttzjDp8EZ3r6dDL7sQEkfyAdVW82rjo9H/hdkB2y2ft89eEB149tvvz2hlqh/8803OazlTzMFX6ENcKLvU7LgEMUEuIc9vqLb+inBJE8ezyo+un379gkxaPT111/jdx4FEGbJwOd1A2VdQ9896Pj1qIJDMSJI6yHpNGnpGlHFqVgp77zzzg29tjCRSBQx8KfKWrmJBvDkO4HXU3oI7pQwFUDpc/8s9ABk14uB23bs2HFDTiU7d+7cAqj4NrbESxtojeAQYjWoOnyaqwF4AsFSnDm81lT1y2YZ+cpwLmHDzp07a3bt2nVDTCrt6urKBq5hDl8eBXCTHgGjtWxTaVK8IEYFjKWrvVPIdU8VE2kMgUCsBD6ye/fukvEM/ldffVUCFX4EsitVtl3UYjU0wDHg1dQIodQJFJShKXgE0j5dLaACn6MJkKcDH6+rq6uur68fV72EM2fO5Jw9e7YasseBp5u0cKoQsDxO9Vrqqn6R2hdGAjWEoBvSR03B9wPNA95HGDVcBXxqz549D40H8E+fPo3vecoZntGTreqzmwgBRyDw2Plu3TBxxmuvvcYFUQYwy+OQ5UoV6DITQzEJnGsdbLSyfvHixdfVptSnTp2qZMJaqtsVVtWbAiP0zap498ryt956q5OxYcMGyj/gpbhbxS5IlwSJBQQYYsZVzWtREBYtWnTN9ic+efIkOq1LmM9SZDKplioQgrJ6ZpZTVODd32kBIEoZL0UvvdFdCBoUfGo8gXM0/UHgHTireeHChaFrhePHj+N0dzxqdxnwg2xwS0vD6YIvwAOnd89nvhkZeJduu+02J2Pjxo0UKZO9GM7w+cjdFMIgCmiqAXj39bO5DPFYLNY8b948ayeXtLW1lbIT1mcxzjVZUGtqCjh44Bj/34H7ZXjJhCItAAHAd1Mc0fvcPYAqCPhBhIHDF5jP0MF2QkmwE02HTMjs2bPTpqOlpSXPVeHABSwoVcLsOebzTWZH2fADOClO7ZqB3yfDTWUSUACyiHZG9UJY0SiNH7PKIjsiqt6BooegIhTMOYxHUTweN3q26EAN/wkr3t+qvEaKczbvxzoXPcf7brL/a9oNFKXYPZzpnUpGlX6dbqHIDIRNlIWXsuibbjdQkGLdzoQ0YfJ/uJFAamsndllw19HZzDlxVGFmkcqilFnSEFotnnKNOlZPGQX0lWOdzoa01xR47nCwDtBEpwbHoedj94wy0KSKCOoIQhgaQrXZgkoYdMCXPAvrcr57WITuXEHlcLCu00cQGjza7BEcRjbRAFSNQAXXVAh0zuY1BV/Q2r3pekixnz+oGRomvVtMV9Vr3I/98RXAC73LzoM4grIWb1sIxgp8iSnAOlsIKdZhynB8QG8wiKIBDPyCQ5C9F0cRKY6gDFwZ2DaFIEzwCS3e3b/nXlzKras1dFr/KA2go/5FLVRwfzdzDtfodgupZoFqGohbqIYGPsH+Yx3NxF6V7D2omkXlmMZM1T8PDMXfoUl4BruKkHaaaANbtj2MnoEJ+L6/72RdvGe8Kt9kjqBOj4SsAUyvce7BCSV/Ba6C/EBYXcSg5oIKtqkj5ikbgLSKqfwWaheRWqZ6j1gIAFPuQW2AI3lTIN0b1CSonMSwYgCU6wqQ8NunsOHcQcozVKZIVwhiKjVuMEihY0YwevgPSDG0eUy3ezjWYOsEhRRAHWPf/A93Egc1MKTj+FGEIGZhIEgJiMzPYPlmHNxgjmLTtRSCsOw+o2YWzcNvbTYIBVsVgrQGsAW+6cCSJx9nUcS/QbrfVAjCDgQZ/P1+yOM33Q9pPMizqCaAKgSxsMCntk6B2sdVyYsh/QvwC7hriY4QhCkUGi0e3/kF/AYow29pJ8YArJkAihDEwgRfVyNw8rif7X+B74Y8qs03nOGNDq0IgQ3Afff0sXecAfm72bv3UFoxpdWbtH7V32cFcfgoLcyCEKQdJ9zVHNL/AM9ijOP808MYD/CP7UvuO8ZGP+OMB3nP4T1PNfYvey/KXAPKd2XpevA27iWYANk9g8yZamblOa5A4FQtZ/jEsjybWsBTaX1sQkbcA/iACAQd0E2EQgU8RUiyKC02qGnQjS6qwPP9LQJwiLFLuUwQcBuaIiYQuBjTPc8wk/32VtYJFq104xQnmLlJMPuNNr3fUEuQQtDUVm8DeNcc/F+AAQBKd8HaIWdjwQAAAABJRU5ErkJggg==
50"},65:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 id=%27Layer_1%27 data-name=%27Layer 1%27 viewBox=%270 0 4.95 10%27%3E%3Cdefs%3E%3Cstyle%3E.cls-2{fill:%23444}%3C/style%3E%3C/defs%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d=%27M0 0h4.95v10H0z%27 style=%27fill:%23fff%27/%3E%3Cpath d=%27m1.41 4.67 1.07-1.49 1.06 1.49zM3.54 5.33 2.48 6.82 1.41 5.33z%27 class=%27cls-2%27/%3E%3C/svg%3E"},949:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 4.95 10%27%3E%3Cpath fill=%27%23444%27 d=%27m1.41 4.67 1.07-1.49 1.06 1.49zm2.13.66L2.48 6.82 1.41 5.33z%27/%3E%3C/svg%3E"},442:t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.b=document.baseURI||self.location.href,r.nc=void 0;var o={};r.r(o),r.d(o,{Jodit:()=>kx,default:()=>xx});var i={};r.r(i),r.d(i,{ACCURACY:()=>Yt,APP_VERSION:()=>lt,BASE_PATH:()=>bn,BASE_PATH_IS_MIN:()=>_n,BR:()=>Jt,CLIPBOARD_ID:()=>En,COMMAND_KEYS:()=>Kt,EMULATE_DBLCLICK_TIMEOUT:()=>sn,ES:()=>ct,FAT_MODE:()=>ht,HOMEPAGE:()=>mt,INSEPARABLE_TAGS:()=>Rt,INSERT_AS_HTML:()=>ln,INSERT_AS_TEXT:()=>un,INSERT_CLEAR_HTML:()=>cn,INSERT_ONLY_TEXT:()=>dn,INVISIBLE_SPACE:()=>vt,INVISIBLE_SPACE_REG_EXP:()=>_t,INVISIBLE_SPACE_REG_EXP_END:()=>wt,INVISIBLE_SPACE_REG_EXP_START:()=>St,IS_BLOCK:()=>Ct,IS_ES_MODERN:()=>ut,IS_ES_NEXT:()=>dt,IS_IE:()=>tn,IS_INLINE:()=>Pt,IS_MAC:()=>pn,IS_PROD:()=>ft,IS_TEST:()=>pt,KEY_ALIASES:()=>hn,KEY_ALT:()=>Bt,KEY_BACKSPACE:()=>Dt,KEY_DELETE:()=>Gt,KEY_DOWN:()=>Vt,KEY_ENTER:()=>Lt,KEY_ESC:()=>Ft,KEY_F3:()=>Wt,KEY_LEFT:()=>zt,KEY_META:()=>Mt,KEY_RIGHT:()=>Ht,KEY_SPACE:()=>qt,KEY_TAB:()=>Nt,KEY_UP:()=>Ut,LIST_TAGS:()=>At,MARKER_CLASS:()=>an,MODE_SOURCE:()=>Zt,MODE_SPLIT:()=>en,MODE_WYSIWYG:()=>Xt,NBSP_SPACE:()=>bt,NEARBY:()=>$t,NO_EMPTY_TAGS:()=>jt,PARAGRAPH:()=>Qt,PASSIVE_EVENTS:()=>Tn,SAFE_COUNT_CHANGE_CALL:()=>fn,SET_TEST:()=>gt,SOURCE_CONSUMER:()=>kn,SPACE_REG_EXP:()=>Et,SPACE_REG_EXP_END:()=>Tt,SPACE_REG_EXP_START:()=>kt,TEMP_ATTR:()=>wn,TEXT_HTML:()=>rn,TEXT_PLAIN:()=>nn,TEXT_RTF:()=>on,TOKENS:()=>yt,globalDocument:()=>Ot,globalWindow:()=>xt,lang:()=>Sn});var a={};r.r(a),r.d(a,{$$:()=>Wo,CamelCaseToKebabCase:()=>Er,ConfigDeepFlatten:()=>go,ConfigFlatten:()=>mo,ConfigProto:()=>ho,ConnectionError:()=>Co,LimitedStack:()=>ti,NUMBER_FIELDS_REG:()=>kr,OptionsError:()=>Mo,abort:()=>wo,alignElement:()=>Rr,alreadyLoadedList:()=>Mr,appendScriptAsync:()=>Nr,appendStyleAsync:()=>Lr,applyStyles:()=>Ti,asArray:()=>Si,assert:()=>Wr,attr:()=>$r,browser:()=>Yr,buildQuery:()=>Kr,call:()=>oo,callPromise:()=>ao,camelCase:()=>Or,cleanFromWord:()=>xi,clearAlign:()=>Ir,clearCenterAlign:()=>Pr,clearTimeout:()=>yi,cns:()=>Ho,colorToHex:()=>wr,completeUrl:()=>jr,connection:()=>No,convertMediaUrlToVideoEmbed:()=>vo,css:()=>Cr,cssPath:()=>Ko,ctrlKey:()=>bo,dataBind:()=>no,defaultLanguage:()=>_o,error:()=>Do,fastClone:()=>eo,fuzzySearchIndex:()=>Yi,get:()=>Mn,getClassName:()=>Bo,getContentWidth:()=>Hi,getDataTransfer:()=>uo,getScrollParent:()=>Vi,getXPathByElement:()=>$o,hAlignElement:()=>Ar,hasBrowserColorPicker:()=>Fn,hasContainer:()=>Kn,htmlspecialchars:()=>Oi,humanSizeToBytes:()=>zo,i18n:()=>Qi,inView:()=>Xo,innerWidth:()=>qi,isAbort:()=>So,isAbortError:()=>Bn,isArray:()=>An,isAtom:()=>Xr,isBoolean:()=>zn,isDestructable:()=>Yn,isEqual:()=>Vn,isFastEqual:()=>qn,isFunction:()=>xn,isHTML:()=>Gn,isHtmlFromWord:()=>Wn,isInitable:()=>$n,isInt:()=>Qn,isJoditObject:()=>Zn,isLicense:()=>er,isMarker:()=>tr,isNativeFunction:()=>Pn,isNumber:()=>nr,isNumeric:()=>Jn,isPlainObject:()=>or,isPromise:()=>ir,isSet:()=>ar,isString:()=>In,isStringArray:()=>Rn,isURL:()=>sr,isValidName:()=>lr,isViewObject:()=>cr,isVoid:()=>jn,isWindow:()=>rr,kebabCase:()=>Sr,keepNames:()=>Fo,keys:()=>lo,loadImage:()=>so,loadNext:()=>Fr,loadNextStyle:()=>Br,markAsAtomic:()=>Zr,markDeprecated:()=>Vo,markOwner:()=>io,memorizeExec:()=>co,nl2br:()=>Ci,normalizeColor:()=>Di,normalizeCssNumericValue:()=>Tr,normalizeCssValue:()=>xr,normalizeKeyAliases:()=>Ni,normalizeLicense:()=>Li,normalizePath:()=>Fi,normalizeRelativePath:()=>Bi,normalizeSize:()=>zi,normalizeUrl:()=>Ui,offset:()=>Wi,options:()=>Lo,parseQuery:()=>yo,position:()=>$i,previewBox:()=>Qo,refs:()=>Yo,reset:()=>Nn,resolveElement:()=>Jo,safeHTML:()=>Pi,sanitizeHTMLElement:()=>Ai,scrollIntoViewIfNeeded:()=>Zo,set:()=>ei,setTimeout:()=>gi,size:()=>Gi,splitArray:()=>Ei,sprintf:()=>Ji,stringify:()=>Hn,stripTags:()=>Mi,toArray:()=>Ln,trim:()=>ur,trimChars:()=>dr,trimInv:()=>fr,ucfirst:()=>Ki});var s={};r.r(s),r.d(s,{autobind:()=>On,cache:()=>si,cacheHTML:()=>li,cached:()=>ai,component:()=>pi,debounce:()=>za,derive:()=>qa,getPropertyDescriptor:()=>ha,hook:()=>Ga,idle:()=>$a,nonenumerable:()=>Ya,persistent:()=>Ka,throttle:()=>Ua,wait:()=>Qa,watch:()=>ma});var l={};r.r(l),r.d(l,{required:()=>Cl,url:()=>Pl});var c={};r.r(c),r.d(c,{Ajax:()=>is,Alert:()=>Nd,Async:()=>wi,AsyncStorage:()=>fu,Button:()=>al,CommitStyle:()=>Nh,Component:()=>ja,Confirm:()=>Ld,ContextMenu:()=>Wd,Create:()=>qc,Dialog:()=>Dd,Dom:()=>ii,EventEmitter:()=>ca,EventHandlersStore:()=>aa,Eventify:()=>hr,FileBrowser:()=>Xf,Helpers:()=>a,History:()=>bp,Icon:()=>ls,ImageEditor:()=>Tf,IndexedDBProvider:()=>Qc,LazyWalker:()=>_r,LocalStorageProvider:()=>ru,MemoryStorageProvider:()=>ou,Plugin:()=>ip,PluginSystem:()=>
50oa,Popup:()=>Fc,ProgressBar:()=>Vc,Prompt:()=>Fd,Response:()=>ts,STATUSES:()=>Cn,Selection:()=>Uh,Snapshot:()=>fp,StatusBar:()=>Tp,Storage:()=>su,StorageKey:()=>au,Table:()=>jp,ToolbarButton:()=>Qu,ToolbarCollection:()=>Bu,ToolbarContent:()=>rd,ToolbarEditorCollection:()=>md,ToolbarSelect:()=>cd,UIBlock:()=>Ol,UIButton:()=>il,UIButtonGroup:()=>fl,UIButtonState:()=>ol,UICheckbox:()=>bc,UIElement:()=>gs,UIFileInput:()=>xc,UIForm:()=>ec,UIGroup:()=>xs,UIInput:()=>Bl,UIList:()=>Qs,UIMessages:()=>Su,UISelect:()=>Yl,UISeparator:()=>Is,UISpacer:()=>Ns,UITextArea:()=>cc,UITooltip:()=>Sl,Uploader:()=>Yp,View:()=>Iu,ViewComponent:()=>Ba,ViewWithToolbar:()=>xd,canUseIndexedDB:()=>eu,canUsePersistentStorage:()=>nu,clearUseIndexedDBCache:()=>Zc,defaultNameSpace:()=>ia,observable:()=>_a});var u={};r.r(u),r.d(u,{angle_down:()=>im,angle_left:()=>am,angle_right:()=>sm,angle_up:()=>lm,bin:()=>cm,cancel:()=>um,center:()=>dm,check:()=>fm,chevron:()=>pm,dots:()=>hm,eye:()=>mm,file:()=>gm,folder:()=>ym,info_circle:()=>vm,left:()=>bm,lock:()=>_m,ok:()=>wm,pencil:()=>Sm,plus:()=>Em,resize_handler:()=>km,right:()=>Tm,save:()=>xm,settings:()=>Om,unlock:()=>Cm,update:()=>Pm,upload:()=>Am,valign:()=>Im});var d={};r.r(d),r.d(d,{removeExtraBr:()=>Uy});var f={};r.r(f),r.d(f,{checkBlockNesting:()=>Hy});var p={};r.r(p),r.d(p,{allowAttributes:()=>Iv,fillEmptyParagraph:()=>jv,removeEmptyTextNode:()=>Mv,removeInvTextNodes:()=>Dv,replaceOldTags:()=>Nv,sanitizeAttributes:()=>Lv,tryRemoveNode:()=>Fv});var h={};r.r(h),r.d(h,{ar:()=>Jv,cs_cz:()=>Qv,de:()=>Xv,es:()=>Zv,fa:()=>eb,fi:()=>tb,fr:()=>nb,he:()=>rb,hu:()=>
50ob,id:()=>ib,it:()=>ab,ja:()=>sb,ko:()=>lb,mn:()=>cb,nl:()=>ub,pl:()=>db,pt_br:()=>fb,ru:()=>pb,tr:()=>hb,zh_cn:()=>mb,zh_tw:()=>gb});var m={};r.r(m),r.d(m,{default:()=>ew});var g={};r.r(g),r.d(g,{default:()=>tw});var y={};r.r(y),r.d(y,{default:()=>nw});var v={};r.r(v),r.d(v,{default:()=>rw});var b={};r.r(b),r.d(b,{default:()=>ow});var _={};r.r(_),r.d(_,{default:()=>iw});var w={};r.r(w),r.d(w,{default:()=>aw});var S={};r.r(S),r.d(S,{default:()=>sw});var E={};r.r(E),r.d(E,{default:()=>lw});var k={};r.r(k),r.d(k,{default:()=>cw});var T={};r.r(T),r.d(T,{default:()=>uw});var x={};r.r(x),r.d(x,{default:()=>dw});var O={};r.r(O),r.d(O,{default:()=>fw});var C={};r.r(C),r.d(C,{default:()=>pw});var P={};r.r(P),r.d(P,{default:()=>hw});var A={};r.r(A),r.d(A,{default:()=>mw});var I={};r.r(I),r.d(I,{default:()=>gw});var R={};r.r(R),r.d(R,{default:()=>yw});var j={};r.r(j),r.d(j,{default:()=>vw});var M={};r.r(M),r.d(M,{default:()=>bw});var D={};r.r(D),r.d(D,{default:()=>_w});var N={};r.r(N),r.d(N,{default:()=>ww});var L={};r.r(L),r.d(L,{ar:()=>m,cs_cz:()=>g,de:()=>y,es:()=>v,fa:()=>b,fi:()=>_,fr:()=>w,he:()=>S,hu:()=>E,id:()=>k,it:()=>T,ja:()=>x,ko:()=>O,mn:()=>C,nl:()=>P,pl:()=>A,pt_br:()=>I,ru:()=>R,tr:()=>j,ua:()=>M,zh_cn:()=>D,zh_tw:()=>N});var F={};r.r(F),r.d(F,{default:()=>GE});var B={};r.r(B),r.d(B,{default:()=>WE});var z={};r.r(z),r.d(z,{default:()=>$E});var U={};r.r(U),r.d(U,{default:()=>YE});var H={};r.r(H),r.d(H,{default:()=>KE});var V={};r.r(V),r.d(V,{default:()=>JE});var q={};r.r(q),r.d(q,{default:()=>QE});var G={};r.r(G),r.d(G,{default:()=>XE});var W={};r.r(W),r.d(W,{default:()=>ZE});var $={};r.r($),r.d($,{default:()=>ek});var Y={};r.r(Y),r.d(Y,{default:()=>tk});var K={};r.r(K),r.d(K,{default:()=>nk});var J={};r.r(J),r.d(J,{default:()=>rk});var Q={};r.r(Q),r.d(Q,{default:()=>ok});var X={};r.r(X),r.d(X,{default:()=>ik});var Z={};r.r(Z),r.d(Z,{default:()=>ak});var ee={};r.r(ee),r.d(ee,{default:()=>sk});var te={};r.r(te),r.d(te,{default:()=>lk});var ne={};r.r(ne),r.d(ne,{default:()=>ck});var re={};r.r(re),r.d(re,{default:()=>uk});var oe={};r.r(oe),r.d(oe,{default:()=>dk});var ie={};r.r(ie),r.d(ie,{default:()=>fk});var ae={};r.r(ae),r.d(ae,{default:()=>pk});var se={};r.r(se),r.d(se,{ar:()=>F,cs_cz:()=>B,de:()=>z,es:()=>U,fa:()=>H,fi:()=>V,fr:()=>q,he:()=>G,hu:()=>W,id:()=>$,it:()=>Y,ja:()=>K,ko:()=>J,mn:()=>Q,nl:()=>X,no:()=>Z,pl:()=>ee,pt_br:()=>te,ru:()=>ne,tr:()=>re,ua:()=>oe,zh_cn:()=>ie,zh_tw:()=>ae});var le={};r.r(le),r.d(le,{default:()=>Pk});var ce={};r.r(ce),r.d(ce,{default:()=>Ak});var ue={};r.r(ue),r.d(ue,{default:()=>Ik});var de={};r.r(de),r.d(de,{default:()=>Rk});var fe={};r.r(fe),r.d(fe,{default:()=>jk});var pe={};r.r(pe),r.d(pe,{default:()=>Mk});var he={};r.r(he),r.d(he,{default:()=>Dk});var me={};r.r(me),r.d(me,{default:()=>Nk});var ge={};r.r(ge),r.d(ge,{default:()=>Lk});var ye={};r.r(ye),r.d(ye,{default:()=>Fk});var ve={};r.r(ve),r.d(ve,{default:()=>Bk});var be={};r.r(be),r.d(be,{default:()=>zk});var _e={};r.r(_e),r.d(_e,{default:()=>Uk});var we={};r.r(we),r.d(we,{default:()=>Hk});var Se={};r.r(Se),r.d(Se,{default:()=>Vk});var Ee={};r.r(Ee),r.d(Ee,{default:()=>qk});var ke={};r.r(ke),r.d(ke,{default:()=>Gk});var Te={};r.r(Te),r.d(Te,{default:()=>Wk});var xe={};r.r(xe),r.d(xe,{default:()=>$k});var Oe={};r.r(Oe),r.d(Oe,{default:()=>Yk});var Ce={};r.r(Ce),r.d(Ce,{default:()=>Kk});var Pe={};r.r(Pe),r.d(Pe,{default:()=>Jk});var Ae={};r.r(Ae),r.d(Ae,{ar:()=>le,cs_cz:()=>ce,de:()=>ue,es:()=>de,fa:()=>fe,fi:()=>pe,fr:()=>he,he:()=>me,hu:()=>ge,id:()=>ye,it:()=>ve,ja:()=>be,ko:()=>_e,mn:()=>we,nl:()=>Se,pl:()=>Ee,pt_br:()=>ke,ru:()=>Te,tr:()=>xe,ua:()=>Oe,zh_cn:()=>Ce,zh_tw:()=>Pe});var Ie={};r.r(Ie),r.d(Ie,{default:()=>cT});var Re={};r.r(Re),r.d(Re,{default:()=>uT});var je={};r.r(je),r.d(je,{en:()=>Ie,es:()=>Re});var Me={};r.r(Me),r.d(Me,{default:()=>$T});var De={};r.r(De),r.d(De,{default:()=>YT});var Ne={};r.r(Ne),r.d(Ne,{default:()=>KT});var Le={};r.r(Le),r.d(Le,{default:()=>JT});var Fe={};r.r(Fe),r.d(Fe,{default:()=>QT});var Be={};r.r(Be),r.d(Be,{default:()=>XT});var ze={};r.r(ze),r.d(ze,{default:()=>ZT});var Ue={};r.r(Ue),r.d(Ue,{default:()=>ex});var He={};r.r(He),r.d(He,{default:()=>tx});var Ve={};r.r(Ve),r.d(Ve,{default:()=>nx});var qe={};r.r(qe),r.d(qe,{default:()=>rx});var Ge={};r.r(Ge),r.d(Ge,{default:()=>ox});var We={};r.r(We),r.d(We,{default:()=>ix});var $e={};r.r($e),r.d($e,{default:()=>ax});var Ye={};r.r(Ye),r.d(Ye,{default:()=>sx});var Ke={};r.r(Ke),r.d(Ke,{default:()=>lx});var Je={};r.r(Je),r.d(Je,{default:()=>cx});var Qe={};r.r(Qe),r.d(Qe,{default:()=>ux});var Xe={};r.r(Xe),r.d(Xe,{default:()=>dx});var Ze={};r.r(Ze),r.d(Ze,{default:()=>fx});var et={};r.r(et),r.d(et,{default:()=>px});var tt={};r.r(tt),r.d(tt,{default:()=>hx});var nt={};r.r(nt),r.d(nt,{default:()=>mx});var rt={};r.r(rt),r.d(rt,{ar:()=>Me,cs_cz:()=>De,de:()=>Ne,es:()=>Le,fa:()=>Fe,fi:()=>Be,fr:()=>ze,he:()=>Ue,hu:()=>He,id:()=>Ve,it:()=>qe,ja:()=>Ge,ko:()=>We,mn:()=>$e,nl:()=>Ye,no:()=>Ke,pl:()=>Je,pt_br:()=>Qe,ru:()=>Xe,tr:()=>Ze,ua:()=>et,zh_cn:()=>tt,zh_tw:()=>nt});var ot=r(442),it=r.n(ot);function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var st,lt="4.8.3",ct="es2020",ut=!0,dt=!0,ft=!0,pt=!1,ht=!0,mt="https://xdsoft.net/jodit/",gt=function(){return pt=!0},yt={},vt="\ufeff",bt=" ",_t=function(){return/[\uFEFF]/g},wt=function(){return/[\uFEFF]+$/g},St=function(){return/^[\uFEFF]+/g},Et=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},kt=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},Tt=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},xt="undefined"!=typeof window?window:void 0,Ot="undefined"!=typeof document?document:void 0,Ct=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,Pt=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,At=new Set(["ul","ol"]),It=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],Rt=new Set((st=It,function(e){if(Array.isArray(e))return at(e)}(st)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(st)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?at(e,t):void 0}}(st)||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.")}()).concat(["br","hr"])),jt=new Set(It),Mt="Meta",Dt="Backspace",Nt="Tab",Lt="Enter",Ft="Escape",Bt="Alt",zt="ArrowLeft",Ut="ArrowUp",Ht="ArrowRight",Vt="ArrowDown",qt="Space",Gt="Delete",Wt="F3",$t=5,Yt=10,Kt=[Mt,Dt,Gt,Ut,Vt,Ht,zt,Lt,Ft,Wt,Nt],Jt="br",Qt="p",Xt=1,Zt=2,en=3,tn="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),nn=tn?"text":"text/plain",rn=tn?"html":"text/html",on=tn?"rtf":"text/rtf",an="jodit-selection_marker",sn=300,ln="insert_as_html",cn="insert_clear_html",un="insert_as_text",dn="insert_only_text",fn=10,pn=void 0!==xt&&/Mac|iPod|iPhone|iPad/.test(xt.navigator.platform),hn={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:pn?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},mn=function(e){var t=e.split("/"),n=!1;return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:n}:{basePath:e,isMin:n}},gn=function(){if("undefined"==typeof document)return{basePath:"",isMin:Boolean(!1)};var e=Ot.currentScript;if(e)return mn(e.src);var t=Ot.querySelectorAll("script[src]");return t&&t.length?mn(t[t.length-1].src):mn(xt.location.href)}(),yn=gn.basePath,vn=gn.isMin,bn=yn,_n=vn,wn="data-jodit-temp",Sn={},En="clipboard",kn="source-consumer",Tn=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);function xn(e){return"function"==typeof e}function On(e,t,n){if(!xn(n.value))throw new TypeError('@autobind can only be applied to methods, but "'.concat(t,'" is not a function'));var r=n.value;return{configurable:!0,get:function(){var e=r.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}var Cn={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};function Pn(e){return Boolean(e)&&"function"===(void 0===e?"undefined":(t=e,t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)));var t}function An(e){return Array.isArray(e)}function In(e){return"string"==typeof e}function Rn(e){return An(e)&&In(e[0])}function jn(e){return null==e}function Mn(e,t){if(!In(e)||!e.length)return null;var n=e.split("."),r=t;try{var o=!0,i=!1,a=void 0;try{for(var s,l=n[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;if(jn(r[c]))return null;r=r[c]}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}catch(e){return null}return jn(r)?null:r}var Dn={};function Nn(e){var t,n;if(!(e in Dn)){var r=Ot.createElement("iframe");try{if(r.src="about:blank",Ot.body.appendChild(r),!r.contentWindow)return null;var o=Mn(e,r.contentWindow),i=Mn(e.split(".").slice(0,-1).join("."),r.contentWindow);xn(o)&&(Dn[e]=o.bind(i))}catch(e){if(!ft)throw e}finally{null===(t=r.parentNode)||void 0===t||t.removeChild(r)}}return null!==(n=Dn[e])&&void 0!==n?n:null}var Ln=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return(Pn(Array.from)?Array.from:null!==(r=Nn("Array.from"))&&void 0!==r?r:Array.from).apply(Array,t)};function Fn(){var e=!0;try{var t=Ot.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}function Bn(e){return Boolean(e)&&(t=e,null!=(n=DOMException)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&"AbortError"===e.name;var t,n}function zn(e){return"boolean"==typeof e}function Un(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==(void 0===e?"undefined":Un(e)))return String(e);var n=new Set(t.excludeKeys),r=new WeakMap;
50return JSON.stringify(e,function(e,t){if(!n.has(e)){if("object"===(void 0===t?"undefined":Un(t))&&null!=t){if(r.get(t))return"[refObject]";r.set(t,!0)}return t}},t.prettify)}function Vn(e,t){return e===t||Hn(e)===Hn(t)}function qn(e,t){return e===t}var Gn=function(e){return In(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))};function Wn(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}function $n(e){return!jn(e)&&xn(e.init)}function Yn(e){return!jn(e)&&xn(e.destruct)}function Kn(e){return!jn(e)&&ii.isElement(e.container)}function Jn(e){if(In(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Qn(e){return In(e)&&Jn(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}function Xn(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Zn(e){return Boolean(e&&Xn(e,Object)&&xn(e.constructor)&&("undefined"!=typeof Jodit&&Xn(e,Jodit)||e.isJodit))}var er=function(e){return In(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)};function tr(e){return ii.isNode(e)&&ii.isTag(e,"span")&&e.hasAttribute("data-"+an)}function nr(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function rr(e){return null!=e&&e===e.window}function or(e){return!(!e||"object"!==(void 0===e?"undefined":function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(e))||e.nodeType||rr(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}function ir(e){return e&&"function"==typeof e.then}function ar(e){return Boolean(e)&&xn(e.has)&&xn(e.add)&&xn(e.delete)}function sr(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{var t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}var n=Ot.createElement("a");return n.href=e,Boolean(n.hostname)}function lr(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}function cr(e){return Boolean(e&&(t=e,null!=(n=Object)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&xn(e.constructor)&&e.isView);var t,n}function ur(e){return e.replace(Tt(),"").replace(kt(),"")}function dr(e,t){return e.replace(RegExp("[".concat(t,"]+$")),"").replace(RegExp("^[".concat(t,"]+")),"")}function fr(e){return e.replace(wt(),"").replace(St(),"")}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__map=new Map}var t;return t=[{key:"on",value:function(e,t){var n;return this.__map.has(e)||this.__map.set(e,new Set),null===(n=this.__map.get(e))||void 0===n||n.add(t),this}},{key:"off",value:function(e,t){var n;return this.__map.has(e)&&(null===(n=this.__map.get(e))||void 0===n||n.delete(t)),this}},{key:"destruct",value:function(){this.__map.clear()}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o,i;return this.__map.has(e)&&(null===(o=this.__map.get(e))||void 0===o||o.forEach(function(e){i=e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return pr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(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.")}()}(n))})),i}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function mr(e,t,n){return mr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gr(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},mr(e,t,n||e)}function gr(e){return gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gr(e)}function yr(e,t){return yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yr(e,t)}function vr(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function br(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(br=function(){return!!e})()}var _r=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=gr(t),function(e,t){return!t||"object"!==vr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}
50(e,br()?Reflect.construct(t,[],gr(e).constructor):t.apply(e,n))}(this,t)).async=e,n.options=r,n.workNodes=null,n.hadAffect=!1,n.isWorked=!1,n.isFinished=!1,n.idleId=0,n.__schedulerController=null,n}var n;return 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&&yr(e,t)}(t,e),(n=[{key:"setWork",value:function(e){return this.isWorked&&this.break(),this.workNodes=ii.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}},{key:"_requestStarting",value:function(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch(function(){return null})}},{key:"break",value:function(e){this.isWorked&&(this.stop(),this.emit("break",e))}},{key:"end",value:function(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}},{key:"stop",value:function(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}},{key:"destruct",value:function(){mr(gr(t.prototype),"destruct",this).call(this),this.stop()}},{key:"__workPerform",value:function(){var e;if(this.workNodes){this.isWorked=!0;for(var t=0,n=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;!this.isFinished&&t<=n;){var r=this.workNodes.next();if(t+=1,this.visitNode(r.value)&&(this.hadAffect=!0),r.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}},{key:"visitNode",value:function(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(hr);!function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":vr(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([On],_r.prototype,"__workPerform",null);var wr=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";for(var n=parseInt(t[2],10),r=parseInt(t[3],10),o=(parseInt(t[4],10)|r<<8|n<<16).toString(16).toUpperCase();o.length<6;)o="0"+o;return t[1]+"#"+o},Sr=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},Er=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},kr=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function Tr(e,t){return!jn(t)&&kr.test(e)&&Jn(t.toString())?parseInt(t.toString(),10)+"px":t}function xr(e,t){if("font-weight"===Sr(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return Jn(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&wr(t.toString())||t}var Or=function(e){return e.replace(/([-_])(.)/g,function(e,t,n){return n.toUpperCase()})};function Cr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(zn(n)&&(r=n,n=void 0),or(t)||void 0!==n){var o=function(e,t,n){void 0===(n=Tr(t,n))||null!=n&&Cr(e,t,!0)===xr(t,n)||(e.style[t]=n)};if(or(t))for(var i=Object.keys(t),a=0;a<i.length;a+=1)o(e,Or(i[a]),t[i[a]]);else o(e,Or(t),n);return""}var s=Sr(t),l=e.ownerDocument||document,c=!!l&&(l.defaultView||l.parentWindow),u=e.style[t],d="";return void 0!==u&&""!==u?d=u:c&&!r&&(d=c.getComputedStyle(e).getPropertyValue(s)),kr.test(t)&&/^[-+]?[0-9.]+px$/.test(d.toString())&&
50(d=parseInt(d.toString(),10)),xr(t,d)}var Pr=function(e){"block"===Cr(e,"display")&&Cr(e,"display","");var t=e.style;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")};function Ar(e,t){t&&"normal"!==t?"center"!==t?(Cr(e,"float",t),Pr(e)):Cr(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(Cr(e,"float")&&-1!==["right","left"].indexOf(Cr(e,"float").toString().toLowerCase())&&Cr(e,"float",""),Pr(e))}function Ir(e){ii.each(e,function(e){ii.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))})}function Rr(e,t){if(ii.isNode(t)&&ii.isElement(t))switch(Ir(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}var jr=function(e){return"file:"===xt.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e},Mr=new Map,Dr=function(e){return function(t,n){if(Mr.has(n))return Mr.get(n);var r=e(t,n);return Mr.set(n,r),r}},Nr=Dr(function(e,t){return e.async.promise(function(n,r){if(e.isInDestruct)return r();var o=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:jr(t)});e.e.one(o,"error",r).one(o,"load",n),e.od.body.appendChild(o)})}),Lr=Dr(function(e,t){return e.async.promise(function(n,r){if(e.isInDestruct)return r();var o=e.c.element("link");o.rel="stylesheet",o.media="all",o.crossOrigin="anonymous",!e.isInDestruct&&e.e.on(o,"load",function(){return n(o)}).on(o,"error",r),o.href=jr(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(o):e.od.body.appendChild(o)})});function Fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return In(t[n])?Nr(e,t[n]).then(function(){return Fr(e,t,n+1)}):Promise.resolve()}function Br(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return In(t[n])?Lr(e,t[n]).then(function(){return Br(e,t,n+1)}):Promise.resolve()}function zr(e,t,n){return zr=qr()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Hr(o,n.prototype),o},zr.apply(null,arguments)}function Ur(e){return Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ur(e)}function Hr(e,t){return Hr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hr(e,t)}function Vr(e){var t="function"==typeof Map?new Map:void 0;return Vr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return zr(e,arguments,Ur(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Hr(r,e)},Vr(e)}function qr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qr=function(){return!!e})()}var Gr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ur(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,qr()?Reflect.construct(t,n||[],Ur(e).constructor):t.apply(e,n))}(this,t,[e])).name="AssertionError",n}return 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&&Hr(e,t)}(t,e),t}(Vr(Error));function Wr(e,t){if(!e)throw new Gr("Assertion failed: ".concat(t))}function $r(e,t,n){if(!e||!xn(e.getAttribute))return null;if(!In(t))return Object.keys(t).forEach(function(n){var r=t[n];or(r)&&"style"===n?Cr(e,r):("className"===n&&(n="class"),$r(e,n,r))}),null;var r=Er(t);
50if(/^-/.test(r)){var o=$r(e,"data".concat(r));if(o)return o;r=r.substr(1)}if(void 0!==n){if(null!=n){var i=n.toString();return"IMG"!==e.nodeName||"width"!==r&&"height"!==r||(i=i.replace("px","")),e.setAttribute(r,i),i}e.hasAttribute(r)&&e.removeAttribute(r)}return e.getAttribute(r)}var Yr=function(e){var t=navigator.userAgent.toLowerCase(),n=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||t.indexOf("compatible")<0||[];return"version"===e?n[2]:"webkit"===e?"chrome"===n[1]||"webkit"===n[1]:"ff"===e?"firefox"===n[1]:"msie"===e?"trident"===n[1]||"msie"===n[1]:n[1]===e},Kr=function(e,t){var n=[],r=encodeURIComponent;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=t?t+"["+o+"]":o,a=e[o];n.push(or(a)?Kr(a,i):r(i)+"="+r(a))}return n.join("&")},Jr={},Qr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=Ot,this.ownerWindow=xt,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=ln,this.enter=Qt,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:Qt,this.defaultMode=Xt,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,Jr)}var t;return(t=[{key:"defaultOptions",get:function(){return e.__defaultOptions||(e.__defaultOptions=new e),e.__defaultOptions}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,t),e}();function Xr(e){return e&&e.isAtom}function Zr(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function eo(e){return JSON.parse(Hn(e))}Jr=Qr.prototype,Qr.prototype.controls={};var to=new WeakMap,no=function(e,t,n){var r=to.get(e);if(!r){r={},to.set(e,r);var o=null;cr(e.j)&&(o=e.j.e),cr(e)&&(o=e.e),o&&o.on("beforeDestruct",function(){to.delete(e)})}return void 0===n?r[t]:(r[t]=n,n)};function ro(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oo(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return ro(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ro(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ro(e,t):void 0}}(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.")}()}(n))}function io(e,t){$r(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function ao(e,t){return ir(e)?e.then(function(e){return e},function(){return null}).finally(t):null==t?void 0:t()}var so=function(e,t){return t.async.promise(function(n,r){var o=new Image,i=function(){t.e.off(o),null==r||r()},a=function(){t.e.off(o),n(o)};t.e.one(o,"load",a).one(o,"error",i).one(o,"abort",i),o.src=e,o.complete&&a()})},lo=function(e){if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])return Object.keys(e);var t=[];for(var n in e)t.push(n);return t},co=function(e,t,n,r){var o,i=n.control,a="button".concat(i.command),s=null!==(o=i.args&&i.args[0])&&void 0!==o?o:no(e,a);if(jn(s))return!1;no(e,a,s),r&&(s=r(s)),e.execCommand(i.command,!1,null!=s?s:void 0)},uo=function(e){if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function po(e){return function(e){if(Array.isArray(e))return fo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fo(e,t):void 0}}(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 ho(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(Object.getPrototypeOf(e)!==Object.prototype)return e;var r=Qr.defaultOptions;if(In(e.preset)){if(void 0!==r.presets[e.preset]){var o=r.presets[e.preset];
50Object.keys(o).forEach(function(t){jn(e[t])&&(e[t]=o[t])})}delete e.preset}var i={};return Object.keys(e).forEach(function(r){var o=e[r],a=t?t[r]:null;or(o)&&or(a)&&!Xr(o)?i[r]=ho(o,a,n+1):0!==n&&An(o)&&!Xr(o)&&An(a)?i[r]=po(o).concat(po(a.slice(o.length))):i[r]=o}),Object.setPrototypeOf(i,t),i}function mo(e){return lo(e,!1).reduce(function(t,n){return t[n]=e[n],t},{})}function go(e){return lo(e,!1).reduce(function(t,n){return t[n]=or(e[n])?go(e[n]):e[n],t},{})}var yo=function(e){for(var t={},n=e.substring(1).split("&"),r=0;r<n.length;r+=1){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t},vo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.width,r=void 0===n?400:n,o=t.height,i=void 0===o?345:o;if(!sr(e))return e;var a=Ot.createElement("a"),s=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=e,r||(r=400),i||(i=345);var l=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return s.test(e)?e.replace(s,'<iframe width="'+r+'" height="'+i+'" src="'+l+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var c=a.search?yo(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(c.v)&&(c.v=c.v.substring(6)),c.v?'<iframe width="'+r+'" height="'+i+'" src="'+l+"//www.youtube.com/embed/"+c.v+'" frameborder="0" allowfullscreen></iframe>':e}return e},bo=function(e){if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1},_o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return"auto"!==e&&In(e)?e:Ot.documentElement&&Ot.documentElement.lang?Ot.documentElement.lang:navigator.language?navigator.language.substring(0,2):t};function wo(){return new DOMException(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Aborted","AbortError")}var So=Bn;function Eo(e,t,n){return Eo=Oo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&To(o,n.prototype),o},Eo.apply(null,arguments)}
50function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ko(e)}function To(e,t){return To=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},To(e,t)}function xo(e){var t="function"==typeof Map?new Map:void 0;return xo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Eo(e,arguments,ko(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),To(r,e)},xo(e)}function Oo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Oo=function(){return!!e})()}var Co=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=ko(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Oo()?Reflect.construct(t,n||[],ko(e).constructor):t.apply(e,n))}(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n}return 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&&To(e,t)}(t,e),t}(xo(Error));function Po(e,t,n){return Po=jo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Io(o,n.prototype),o},Po.apply(null,arguments)}function Ao(e){return Ao=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ao(e)}function Io(e,t){return Io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Io(e,t)}function Ro(e){var t="function"==typeof Map?new Map:void 0;return Ro=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Po(e,arguments,Ao(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Io(r,e)},Ro(e)}function jo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jo=function(){return!!e})()}var Mo=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=Ao(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,jo()?Reflect.construct(t,n||[],Ao(e).constructor):t.apply(e,n))}(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n}return 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&&Io(e,t)}(t,e),t}(Ro(TypeError));function Do(e){return new TypeError(e)}function No(e){return new Co(e)}function Lo(e){return new Mo(e)}var Fo=new Map,Bo=function(e){var t;if(xn(e.className))return e.className();var n=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(Fo.has(n))return Fo.get(n);if(n.name)return n.name;var r=new RegExp(/^\s*function\s*(\S*)\s*\(/),o=n.toString().match(r);return o?o[1]:""},zo=function(e){if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);var t=e.substr(-2,2).toUpperCase(),n=["KB","MB","GB","TB"],r=parseFloat(e.substr(0,e.length-2));return-1!==n.indexOf(t)?r*Math.pow(1024,n.indexOf(t)+1):parseInt(e,10)};function Uo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ho=console;function Vo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a;return Ho.warn('Method "'.concat(t[0],'" deprecated.')+(t[1]?' Use "'.concat(t[1],'" instead'):"")),(a=e).call.apply(a,[n].concat(function(e){return function(e){if(Array.isArray(e))return Uo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Uo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uo(e,t):void 0}}(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.")}()}
50(o)))}}var qo=1,Go=function(){return++qo};function Wo(e,t){var n;if(dt||!/:scope/.test(e)||!tn||t&&t.nodeType===Node.DOCUMENT_NODE)n=t.querySelectorAll(e);else{var r=t.id,o=r||"_selector_id_"+String(Math.random()).slice(2)+Go();e=e.replace(/:scope/g,"#"+o),!r&&t.setAttribute("id",o),n=t.parentNode.querySelectorAll(e),r||t.removeAttribute("id")}return[].slice.call(n)}var $o=function(e,t){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";var n=[].filter.call(e.parentNode.childNodes,function(t){return t.nodeName===e.nodeName});return $o(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(n.length>1?"["+(Ln(n).indexOf(e)+1)+"]":"")},Yo=function(e){return"container"in e&&(e=e.container),Wo("[ref],[data-ref]",e).reduce(function(e,t){var n=$r(t,"-ref");return n&&In(n)&&(e[Or(n)]=t,e[n]=t),e},{})},Ko=function(e){if(!ii.isElement(e))return null;for(var t=[],n=e;n&&n.nodeType===Node.ELEMENT_NODE;){var r=n.nodeName.toLowerCase();if(n.id){r+="#"+n.id,t.unshift(r);break}var o=n,i=1;do{(o=o.previousElementSibling)&&o.nodeName.toLowerCase()===r&&i++}while(o);r+=":nth-of-type("+i+")",t.unshift(r),n=n.parentNode}return t.join(" > ")};function Jo(e,t){var n,r=e;if(In(e))try{r=t.querySelector(e)}catch(t){throw Do('String "'+e+'" should be valid HTML selector')}if(!r||"object"!=(void 0===r?"undefined":(n=r)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||!ii.isElement(r)||!r.cloneNode)throw Do('Element "'+e+'" should be string or HTMLElement instance');return r}function Qo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=[],i=function(e,t){var n=[];try{Wo("img",e.editor).forEach(function(r){var o=[$r(r,"width"),$r(r,"height"),r.src];$r(r,{width:r.offsetWidth+t,height:r.offsetHeight+t});var i=e.createInside.a();e.ed.body.appendChild(i),i.href=r.src,r.src=i.href,ii.safeRemove(i),n.push(function(){var e;r.src=null!==(e=o[2])&&void 0!==e?e:"",$r(r,{width:o[0]||null,height:o[1]||null})})})}catch(e){throw n.forEach(function(e){return e()}),n.length=0,e}return n}(e,n);try{var a=e.e.fire("beforePreviewBox",t,n);if(null!=a)return a;var s=e.c.div("jodit__preview-box jodit-context");r&&r.appendChild(s),Cr(s,{position:"relative",padding:16});var l=e.value||"<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(e.i18n("Empty"),"</div>");if(e.iframe){var c=e.create.element("iframe");Cr(c,{minWidth:800,minHeight:600,border:0}),s.appendChild(c);var u=c.contentWindow;if(u&&(e.e.fire("generateDocumentStructure.iframe",u.document,e),s=u.document.body,"function"==typeof ResizeObserver)){var d=!1,f=u.document.body,p=new ResizeObserver(e.async.debounce(function(){p.unobserve(f),c.style.height="".concat(f.offsetHeight+20,"px"),e.async.requestAnimationFrame(function(){!d&&p.observe(f)})},100)),h=function(){d=!0,p.unobserve(f),p.disconnect(),e.e.off("beforeDestruct",h)};o.push(h),e.e.on("beforeDestruct",h)}}else Cr(s,{minWidth:1024,minHeight:600,border:0});var m=function(t,n){var r=In(n)?e.c.div():n;In(n)&&(r.innerHTML=n);for(var o=0;o<r.childNodes.length;o+=1){var i=r.childNodes[o];if(ii.isElement(i)){for(var a=t.ownerDocument.createElement(i.nodeName),s=0;s<i.attributes.length;s+=1)$r(a,i.attributes[s].nodeName,i.attributes[s].nodeValue);0===i.childNodes.length||ii.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(a.textContent=i.textContent):i.innerHTML&&(a.innerHTML=i.innerHTML):m(a,i);try{t.appendChild(a)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return m(s,l),e.e.fire("afterPreviewBox",s),[s,function(){o.forEach(function(e){return e()})}]}finally{i.forEach(function(e){return e()})}}function Xo(e,t,n){for(var r=e.getBoundingClientRect(),o=e,i=r.top,a=r.height;o&&o!==t&&o.parentNode;){if(!(i<=(r=(o=o.parentNode).getBoundingClientRect()).bottom))return!1;if(i+a<=r.top)return!1}return i<=(n.documentElement&&n.documentElement.clientHeight||0)}function Zo(e,t,n){ii.isHTMLElement(e)&&!Xo(e,t,n)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),Xo(e,t,n)||e.scrollIntoView())}
50function ei(e,t,n){if(In(e)&&e.length){for(var r=e.split("."),o=n,i=r[0],a=0;a<r.length-1;a+=1)An(o[i=r[a]])||or(o[i])||(o[i]=Jn(r[a+1])?[]:{}),o=o[i];o&&(o[r[r.length-1]]=t)}}var ti=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.limit=t,this.stack=[]}var t;return(t=[{key:"push",value:function(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}},{key:"pop",value:function(){return this.stack.pop()}},{key:"find",value:function(e){return this.stack.find(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function ni(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function ri(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function oi(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var ii=function(){function e(){throw function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("Dom is static module")}var t;return t=[{key:"detach",value:function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}},{key:"wrapNextInline",value:function(t,n,r){var o,i=t,a=t;r.s.save();var s=!1;do{s=!1,!(o=a.nextSibling)||e.isBlock(o)||e.isTag(o,"br")||(s=!0,a=o)}while(s);return e.__wrapElements(n,r,i,a)}},{key:"__wrapElements",value:function(e,t,n,r){var o=In(e)?t.createInside.element(e):e;n.parentNode&&n.parentNode.insertBefore(o,n);for(var i=n;i&&(i=n.nextSibling,o.appendChild(n),n!==r&&i);)n=i;return t.s.restore(),o}},{key:"wrapInline",value:function(t,n,r){var o,i=t,a=t;r.s.save();var s=!1;do{s=!1,(o=i.previousSibling)&&!e.isBlock(o)&&(s=!0,i=o)}while(s);do{s=!1,(o=a.nextSibling)&&!e.isBlock(o)&&(s=!0,a=o)}while(s);return e.__wrapElements(n,r,i,a)}},{key:"wrap",value:function(t,n,r){var o=In(n)?r.element(n):n;if(e.isNode(t)){if(!t.parentNode)throw Do("Element should be in DOM");t.parentNode.insertBefore(o,t),o.appendChild(t)}else{var i=t.extractContents();t.insertNode(o),o.appendChild(i)}return o}},{key:"unwrap",value:function(t){var n=t.parentNode;if(n){for(;t.firstChild;)n.insertBefore(t.firstChild,t);e.safeRemove(t)}}},{key:"between",value:function(e,t,n){for(var r=e;r&&r!==t&&(e===r||!n(r));){var o=r.firstChild||r.nextSibling;if(!o){for(;r&&!r.nextSibling;)r=r.parentNode;o=null==r?void 0:r.nextSibling}r=o}}},{key:"replace",value:function(t,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Gn(n)&&(Wr(r,"Need create instance for new tag"),n=r.fromHTML(n)),In(n)?(Wr(r,"Need create instance for new tag"),o=r.element(n)):o=n,!a)for(;t.firstChild;)o.appendChild(t.firstChild);return i&&e.isElement(t)&&e.isElement(o)&&Ln(t.attributes).forEac
50h(function(e){o.setAttribute(e.name,e.value)}),t.parentNode&&t.parentNode.replaceChild(o,t),o}},{key:"isEmptyTextNode",value:function(t){return e.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(_t(),"").trim().length)}},{key:"isEmptyContent",value:function(t){return e.each(t,function(t){return e.isEmptyTextNode(t)})}},{key:"isContentEditable",value:function(t,n){return e.isNode(t)&&!e.closest(t,function(t){return e.isElement(t)&&"false"===t.getAttribute("contenteditable")},n)}},{key:"isEmpty",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt;if(!t)return!0;n=xn(r)?r:function(e){return r.has(e.nodeName.toLowerCase())};var o=function(e){return null==e.nodeValue||0===ur(e.nodeValue).length};return e.isText(t)?o(t):!(e.isElement(t)&&n(t))&&e.each(t,function(t){if(e.isText(t)&&!o(t)||e.isElement(t)&&n(t))return!1})}},{key:"isNode",value:function(e){return Boolean(e&&In(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&xn(e.appendChild))}},{key:"isCell",value:function(t){return e.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}},{key:"isList",value:function(t){return e.isTag(t,At)}},{key:"isLeaf",value:function(t){return e.isTag(t,"li")}},{key:"isImage",value:function(t){return e.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}},{key:"isBlock",value:function(t){return!jn(t)&&"object"==(void 0===t?"undefined":(n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&e.isNode(t)&&Ct.test(t.nodeName);var n}},{key:"isText",value:function(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)}},{key:"isComment",value:function(e){return Boolean(e&&e.nodeType===Node.COMMENT_NODE)}},{key:"isElement",value:function(t){var n;if(!e.isNode(t))return!1;var r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView;return Boolean(r&&t.nodeType===Node.ELEMENT_NODE)}},{key:"isFragment",value:function(t){var n;if(!e.isNode(t))return!1;var r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView;return Boolean(r&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}},{key:"isHTMLElement",value:function(t){var n;if(!e.isNode(t))return!1;var r=null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView;return Boolean(r&&ni(t,r.HTMLElement))}},{key:"isInlineBlock",value:function(t){return e.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(Cr(t,"display").toString())}},{key:"canSplitBlock",value:function(t){return!jn(t)&&e.isHTMLElement(t)&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}},{key:"last",value:function(e,t){var n=null==e?void 0:e.lastChild;if(!n)return null;do{if(t(n))return n;var r=n.lastChild;if(r||(r=n.previousSibling),!r&&n.parentNode!==e){do{n=n.parentNode}while(n&&!(null==n?void 0:n.previousSibling)&&n.parentNode!==e);r=null==n?void 0:n.previousSibling}n=r}while(n);return null}},{key:"prev",value:function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,n,r,!1,o)}},{key:"next",value:function(t,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,n,r,!0,o)}},{key:"prevWithClass",value:function(t,n){return e.prev(t,function(t){return e.isElement(t)&&t.classList.contains(n)},t.parentNode)}},{key:"nextWithClass",value:function(t,n){return e.next(t,function(t){return e.isElement(t)&&t.classList.contains(n)},t.parentNode)}},{key:"find",value:function(e,t,n){for(var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=this.nextGen(e,n,r,o),a=i.next();!a.done;){if(t(a.value))return a.value;a=i.next()}return null}},{key:"nextGen",value:function(e,t){var n,r,o,i,a,s=arguments;return ri(this,function(l){switch(l.label){case 0:n=!(s.length>2&&void 0!==s[2])||s[2],r=!(s.length>3&&void 0!==s[3])||s[3],o=[],i=e,l.label=1;case 1:for(a=n?i.nextSibling:i.previousSibling;a;)o.unshift(a),a=n?a.nextSibling:a.previousSibling;return[5,oi(this.runInStack(e,o,n,r))];case 2:l.sent(),i=i.parentNode,l.label=3;case 3:if(i&&i!==t)return[3,1];l.label=4;case 4:return[2,null]}})}},{key:"each",value:function(e,t){for(var n=!(arguments.length>
502&&void 0!==arguments[2])||arguments[2],r=this.eachGen(e,n),o=r.next();!o.done;){if(!1===t(o.value))return!1;o=r.next()}return!0}},{key:"eachGen",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.runInStack(e,[e],t)}},{key:"runInStack",value:function(e,t,n){var r,o,i,a=arguments;return ri(this,function(s){switch(s.label){case 0:r=!(a.length>3&&void 0!==a[3])||a[3],s.label=1;case 1:if(!t.length)return[3,4];if(o=t.pop(),r)for(i=n?o.lastChild:o.firstChild;i;)t.push(i),i=n?i.previousSibling:i.nextSibling;return e===o?[3,3]:[4,o];case 2:s.sent(),s.label=3;case 3:return[3,1];case 4:return[2]}})}},{key:"findWithCurrent",value:function(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nextSibling",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"firstChild",a=t;do{if(n(a))return a||null;if(i&&a&&a[i]){var s=e.findWithCurrent(a[i],n,a,o,i);if(s)return s}for(;a&&!a[o]&&a!==r;)a=a.parentNode;a&&a[o]&&a!==r&&(a=a[o])}while(a&&a!==r);return null}},{key:"findSibling",value:function(t){for(var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!e.isEmptyTextNode(t)},o=e.sibling(t,n);o&&!r(o);)o=e.sibling(o,n);return o&&r(o)?o:null}},{key:"findNotEmptySibling",value:function(t,n){return e.findSibling(t,n,function(t){var n;return!e.isEmptyTextNode(t)&&Boolean(!e.isText(t)||(null===(n=t.nodeValue)||void 0===n?void 0:n.length)&&ur(t.nodeValue))})}},{key:"findNotEmptyNeighbor",value:function(t,n,r){return oo(n?e.prev:e.next,t,function(t){return Boolean(t&&(!(e.isText(t)||e.isComment(t))||ur((null==t?void 0:t.nodeValue)||"").length))},r)}},{key:"sibling",value:function(e,t){return t?e.previousSibling:e.nextSibling}},{key:"up",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e;if(!o)return null;do{if(t(o))return o;if(o===n||!o.parentNode)break;o=o.parentNode}while(o&&o!==n);return o===n&&r&&t(o)?o:null}},{key:"closest",value:function(t,n,r){var o,i=function(e){return e.toLowerCase()};if(xn(n))o=n;else if(An(n)||ar(n)){var a=ar(n)?n:new Set(n.map(i));o=function(e){return Boolean(e&&a.has(i(e.nodeName)))}}else o=function(e){return Boolean(e&&i(n)===i(e.nodeName))};return e.up(t,o,r)}},{key:"furthest",value:function(e,t,n){for(var r=null,o=null==e?void 0:e.parentElement;o&&o!==n;)t(o)&&(r=o),o=null==o?void 0:o.parentElement;return r}},{key:"appendChildFirst",value:function(e,t){var n=e.firstChild;n?n!==t&&e.insertBefore(t,n):e.appendChild(t)}},{key:"after",value:function(e,t){var n=e.parentNode;n&&(n.lastChild===e?n.appendChild(t):n.insertBefore(t,e.nextSibling))}},{key:"before",value:function(e,t){var n=e.parentNode;n&&n.insertBefore(t,e)}},{key:"prepend",value:function(e,t){e.insertBefore(t,e.firstChild)}},{key:"append",value:function(e,t){var n=this;An(t)?t.forEach(function(t){n.append(e,t)}):e.appendChild(t)}},{key:"moveContent",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=(t.ownerDocument||Ot).createDocumentFragment();Ln(t.childNodes).filter(function(t){return!!o(t)||(e.safeRemove(t),!1)}).forEach(function(e){i.appendChild(e)}),r&&n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)}},{key:"isOrContains",value:function(e,t){return e===t?!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]):Boolean(t&&e&&this.up(t,function(t){return t===e},e,!0))}},{key:"safeRemove",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)})}},{key:"safeInsertNode",value:function(t,n){t.collapsed||t.deleteContents();var r=e.isFragment(n)?n.lastChild:n;t.startContainer===t.endContainer&&t.collapsed&&e.isTag(t.startContainer,Rt)?e.after(t.startContainer,n):(t.insertNode(n),r&&t.setStartBefore(r)),t.collapse(!0),[n.nextSibling,n.previousSibling].forEach(function(t){return e.isText(t)&&!t.nodeValue&&e.safeRemove(t)})}},{key:"hide",value:function(e){e&&(no(e,"__old_display",e.style.display),e.style.display="none")}},{key:"show",value:function(e){if(e){var t=no(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}}},{key:"isTag",value:function(e,t){if(!this.isElement(e))return!1;var n=e.tagName.toLowerCase(),r=e.tagName.toUpperCase();if(ni(t,Set))return t.has(n)||t.has(r);if(Array.isArray(t))throw new TypeError("Dom.isTag does not support array");return n===t||r===t}},{key:"markTemporary",value:function(e,t){return t&&$r(e,t),$r(e,wn,!0),e}},{key:"isTemporary",value:function(t){return!!e.isElement(t)&&(tr(t)||"true"===$r(t,wn))}},{key:"replaceTemporaryFromString",value:function(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}},{key:"temporaryList",value:function(e){return Wo("[".concat(wn,"]"),e)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,t),e}();function ai(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||xn(n.get)?null:n.value}function si(e,t,n){var r=n.get;if(!r)throw Do("Getter property descriptor expected");n.get=function(){var e=r.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:n.configurable,enumerable:n.enumerable,writable:!1,value:e}),e}}
50function li(e,t,n){var r=n.value;if(!xn(r))throw Do("Handler must be a Function");var o=!0,i=new WeakMap;n.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a;if(o&&i.has(this.constructor))return null===(a=i.get(this.constructor))||void 0===a?void 0:a.cloneNode(!0);var s=r.apply(this,t);return o&&ii.isElement(s)&&i.set(this.constructor,s),o?s.cloneNode(!0):s},e.hookStatus(Cn.ready,function(e){var t=cr(e)?e:e.jodit;o=Boolean(t.options.cache)})}function ci(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ui(e){return ui=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ui(e)}function di(e,t){return di=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},di(e,t)}function fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fi=function(){return!!e})()}function pi(e){var t=function(e){function t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=ui(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,fi()?Reflect.construct(t,n||[],ui(e).constructor):t.apply(e,n))}(this,t,function(e){return function(e){if(Array.isArray(e))return ci(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ci(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ci(e,t):void 0}}(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.")}()}(n))).constructor===t&&(i=o,(null!=(a=t)&&"undefined"!=typeof Symbol&&a[Symbol.hasInstance]?a[Symbol.hasInstance](i):i instanceof a)||Object.setPrototypeOf(o,t.prototype),o.setStatus("ready")),o}return 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&&di(e,t)}(t,e),t}(e);return t}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mi(e){return function(e){if(Array.isArray(e))return hi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hi(e,t):void 0}}(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 gi(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i,a;return t?(i=xt).setTimeout.apply(i,[e,t].concat(mi(r))):((a=e).call.apply(a,[null].concat(mi(r))),0)}function yi(e){xt.clearTimeout(e)}function vi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _i(e){return function(e){if(Array.isArray(e))return vi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vi(e,t):void 0}}(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.")}()}var wi=function(){function e(){var t,n,r,o,i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(t=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==t?t:Promise.resolve().then.bind(Prom
50ise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!==(r=null===(n=window.requestIdleCallback)||void 0===n?void 0:n.bind(window))&&void 0!==r?r:function(e,t){var n,r=Date.now();return a.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-r))}})},null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:1)},this.__cancelIdleCallbackNative=null!==(i=null===(o=window.cancelIdleCallback)||void 0===o?void 0:o.bind(window))&&void 0!==i?i:function(e){a.clearTimeout(e)},this.isDestructed=!1}var t;return t=[{key:"delay",value:function(e){var t=this;return this.promise(function(n){return t.setTimeout(n,e)})}},{key:"setTimeout",value:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(this.isDestructed)return 0;var i={};jn(t)&&(t=0),nr(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);var a=gi.apply(void 0,[e,t].concat(_i(r))),s=i.label||a;return this.timers.set(s,a),this.__callbacks.set(s,e),a}},{key:"updateTimeout",value:function(e,t){if(Wr(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;var n=this.__callbacks.get(e);return Wr(xn(n),"Callback is not a function"),this.setTimeout(n,{label:e,timeout:t})}},{key:"clearLabel",value:function(e){e&&this.timers.has(e)&&(yi(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}},{key:"clearTimeout",value:function(e){if(In(e))return this.clearLabel(e);yi(e),this.timers.delete(e),this.__callbacks.delete(e)}},{key:"debounce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,o=0,i=!1,a=[],s=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!i){o=0;var s=e.apply(void 0,_i(n));if(i=!0,a.length){var l=function(){a.forEach(function(e){return e()}),a.length=0};ir(s)?s.finally(l):l()}}},l=function(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];i=!1,t?(!o&&n&&s.apply(void 0,_i(l)),yi(o),o=r.setTimeout(function(){return s.apply(void 0,_i(l))},xn(t)?t():t),r.timers.set(e,o)):s.apply(void 0,_i(l))};return or(t)&&t.promisify?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=r.promise(function(e){a.push(e)}).catch(function(e){if(Bn(e))return null;throw e});return l.apply(void 0,_i(t)),o}:l}},{key:"microDebounce",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this,o=!1,i=!0;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];t=s,o?i=!0:(i=!0,n&&(i=!1,e.apply(void 0,_i(t))),o=!0,r.__queueMicrotaskNative(function(){o=!1,r.isDestructed||i&&e.apply(void 0,_i(t))}))}}},{key:"throttle",value:function(e,t){var n,r,o,i=this,a=null;return function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n=!0,o=l,t?a||(r=function(){n?(e.apply(void 0,_i(o)),n=!1,a=i.setTimeout(r,xn(t)?t():t),i.timers.set(r,a)):a=null})():e.apply(void 0,_i(o))}}},{key:"promise",value:function(e){var t=this,n=function(){},r=new Promise(function(r,o){n=function(){return o(wo("Abort async"))},t.promisesRejections.add(n),e(r,o)});return r.finally||"undefined"==typeof process||dt||(r.finally=function(e){return r.then(e).catch(e),r}),r.finally(function(){t.promisesRejections.delete(n)}).catch(function(){return null}),r.rejectCallback=n,r}},{key:"promiseState",value:function(e){var t=this;if(e.status)return e.status;if(!Promise.race)return new Promise(function(n){e.then(function(e){return n("fulfilled"),e},function(e){throw n("rejected"),e}),t.setTimeout(function(){n("pending")},100)});var n={};return Promise.race([e,n]).then(function(e){return e===n?"pending":"fulfilled"},function(){return"rejected"})}},{key:"requestIdleCallback",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:100},n=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(n),n}},{key:"requestIdlePromise",value:function(e){var t=this;return this.promise(function(n){var r=t.requestIdleCallback(function(){return n(r)},e)})}},{key:"schedulerPostTask",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0,priority:"user-visible"},r=new AbortController;if(n.signal&&n.signal.addEventListener("abort",function(){return r.abort()}),this.__controllers.add(r),void 0!==globalThis.scheduler){var o=globalThis.scheduler.postTask(e,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
50(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){bi(e,t,n[t])})}return e}({},n),{signal:r.signal}));return o.finally(function(){t.__controllers.delete(r)}).catch(function(){return null}),o}return this.promise(function(o,i){var a=t.setTimeout(function(){try{o(e())}catch(e){i(e)}t.__controllers.delete(r)},n.delay||1);r.signal.addEventListener("abort",function(){t.clearTimeout(a),t.__controllers.delete(r),i(wo())})})}},{key:"schedulerYield",value:function(){return this.schedulerPostTask(function(){},{priority:"user-visible"})}},{key:"cancelIdleCallback",value:function(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}},{key:"requestAnimationFrame",value:function(e){var t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}},{key:"cancelAnimationFrame",value:function(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}},{key:"clear",value:function(){var e=this;this.__requestsIdle.forEach(function(t){return e.cancelIdleCallback(t)}),this.__requestsRaf.forEach(function(t){return e.cancelAnimationFrame(t)}),this.__controllers.forEach(function(e){return e.abort()}),this.timers.forEach(function(t){return yi(e.timers.get(t))}),this.timers.clear(),this.promisesRejections.forEach(function(e){return e()}),this.promisesRejections.clear()}},{key:"destruct",value:function(){this.clear(),this.isDestructed=!0}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Si=function(e){return An(e)?e:[e]};function Ei(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}function ki(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,function(e,t,n){switch(n.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e})}function Ti(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);var t=Ot.createElement("iframe");t.style.display="none",Ot.body.appendChild(t);var n="";try{var r=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(r){r.open(),r.write(e),r.close();try{for(var o=function(e){for(var t=function(e){if(""===n[e].selectorText)return"continue";Wo(n[e].selectorText,r.body).forEach(function(t){t.style.cssText=ki(n[e].style.cssText+";"+t.style.cssText)})},n=r.styleSheets[e].cssRules,o=0;o<n.length;o+=1)t(o)},i=0;i<r.styleSheets.length;i+=1)o(i)}catch(e){if(!ft)throw e}ii.each(r.body,function(e){if(ii.isElement(e)){var t=e,n=t.getAttribute("style");n&&(t.style.cssText=ki(n)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}}),n=r.firstChild?ur(r.body.innerHTML):""}}catch(e){}finally{ii.safeRemove(t)}return n&&(e=n),ur(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function xi(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));var t="";try{var n=Ot.createElement("div");n.innerHTML=e;var r=[];n.firstChild&&ii.each(n,function(e){if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":r.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":ii.unwrap(e);break;default:Ln(e.attributes).forEach(function(t){-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)})}break;case Node.TEXT_NODE:break;default:r.push(e)}}),ii.safeRemove.apply(null,r),t=n.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(ur).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function Oi(e){var t=Ot.createElement("div");return t.textContent=e,t.innerHTML}function Ci(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}function Pi(e,t){(ii.isElement(e)||ii.isFragment(e))&&(t.removeOnError&&(Ai(e),Wo("[onerror]",e).forEach(function(e){return Ai(e,t)})),t.safeJavaScriptLink&&(Ai(e),Wo('a[href^="javascript"]',e).forEach(function(e){return Ai(e,t)})))}function Ai(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{safeJavaScriptLink:!0,removeOnError:!0},n=t.safeJavaScriptLink,r=t.removeOnError;if(!ii.isElement(e))return!1;var o=!1;r&&e.hasAttribute("onerror")&&($r(e,"onerror",null),o=!0);var i=e.getAttribute("href");return n&&i&&0===i.trim().indexOf("javascript")&&($r(e,"href",location.protocol+"//"+i),o=!0),o}var Ii=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),Ri=new Set(["script","style"]),ji=new Set(["br","hr","
50input"]);function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.createElement("div");return In(e)?r.innerHTML=e:r.appendChild(e),Wo("*",r).forEach(function(e){var r=e.parentNode;if(r){if(n&&ii.isTag(e,n)){var o=e.nodeName.toLowerCase(),i=ii.isTag(e,ji)?"%%%jodit-single-".concat(o,"%%%"):"%%%jodit-".concat(o,"%%%").concat(Mi(e.innerHTML,t,n),"%%%/jodit-").concat(o,"%%%");return ii.before(e,t.createTextNode(i)),void ii.safeRemove(e)}if(ii.isTag(e,Ri))ii.safeRemove(e);else if(ii.isTag(e,Ii)){var a=e.nextSibling;ii.isText(a)&&/^\s/.test(a.nodeValue||"")||a&&r.insertBefore(t.createTextNode(" "),a)}}}),ur(r.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,function(e,t,n,r){return"<".concat(t?"/":"").concat(r,">")})}var Di=function(e){var t=["#"],n=wr(e);if(!n)return!1;if(3===(n=(n=ur(n.toUpperCase())).substring(1)).length){for(var r=0;r<3;r+=1)t.push(n[r]),t.push(n[r]);return t.join("")}return n.length>6&&(n=n.slice(0,6)),"#"+n};function Ni(e){var t={},n={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(function(e){return ur(e.toLowerCase())}).map(function(e){return hn[e]||e}).sort(function(e,t){return n[e]&&!n[t]?-1:!n[e]&&n[t]?1:n[e]&&n[t]?n[e]-n[t]:e>t?1:-1}).filter(function(e){return!t[e]&&""!==e&&(t[e]=!0)}).join("+")}var Li=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=[];e.length;)n.push(e.substr(0,t)),e=e.substr(t);return n[1]=n[1].replace(/./g,"*"),n[2]=n[2].replace(/./g,"*"),n.join("-")},Fi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return ur(e).length}).map(function(e,n){return e=e.replace(/([^:])[\\/]+/g,"$1/"),n&&(e=e.replace(/^\//,"")),n!==t.length-1&&(e=e.replace(/\/$/,"")),e}).join("/")},Bi=function(e){return e.split("/").reduce(function(e,t){switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e},[]).join("/")+(e.endsWith("/")?"/":"")},zi=function(e,t){return/^[0-9]+$/.test(e.toString())?e+t:e.toString()},Ui=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(e){return e.length}).map(function(e){return e.replace(/\/$/,"")}).join("/").replace(/([^:])[\\/]+/g,"$1/")},Hi=function(e,t){var n=function(e){return parseInt(e,10)},r=t.getComputedStyle(e);return e.offsetWidth-n(r.getPropertyValue("padding-left")||"0")-n(r.getPropertyValue("padding-right")||"0")};function Vi(e){if(!e)return null;var t=ii.isHTMLElement(e),n=t&&Cr(e,"overflowY");return t&&"visible"!==n&&"hidden"!==n&&e.scrollHeight>=e.clientHeight?e:Vi(e.parentNode)||Ot.scrollingElement||Ot.body}var qi=function(e,t){var n=t.getComputedStyle(e);return e.clientWidth-(parseFloat(n.paddingLeft||"0")+parseFloat(n.paddingRight||"0"))};function Gi(e){return In(e)||An(e)?e.length:or(e)?Object.keys(e).length:0}var Wi=function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{r=e.getBoundingClientRect()}catch(e){r={top:0,bottom:0,left:0,right:0,width:0,height:0}}var i,a,s=n.body,l=n.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=n.defaultView||n.parentWindow,u=c.pageYOffset||l.scrollTop||s.scrollTop,d=c.pageXOffset||l.scrollLeft||s.scrollLeft,f=l.clientTop||s.clientTop||0,p=l.clientLeft||s.clientLeft||0,h=t.iframe;if(!o&&t&&t.options&&t.o.iframe&&h){var m=Wi(h,t,t.od,!0),g=m.top,y=m.left;i=r.top+g,a=r.left+y}else i=r.top+u-f,a=r.left+d-p;return{top:Math.round(i),left:Math.round(a),width:r.width,height:r.height}};function $i(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getBoundingClientRect(),a=i.left,s=i.top;if(Zn(t)&&t.iframe&&t.ed.body.contains(e)&&!o){var l=$i(t.iframe,t,!0);a+=l.left,s+=l.top}return{left:Math.round(a),top:Math.round(s),width:Math.round(null!==(n=e.offsetWidth)&&void 0!==n?n:i.width),height:Math.round(null!==(r=e.offsetHeight)&&void 0!==r?r:i.height)}}function Yi(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,r=0,o=0,i=-1,a=0,s=0;for(o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;r<e.length&&o<t.length;)e[r].toLowerCase()===t[o].toLowerCase()?(r++,a++,s=0,-1===i&&(i=o)):r>0&&(s>=n&&t[o]!==vt?(r=0,i=-1,a=0,s=0,o--):(s++,a++)),o++;return r===e.length?[i,a]:[-1,0]}function Ki(e){return e.length?e[0].toUpperCase()+e.substring(1):""}var Ji=function(e,t){if(!t||!t.length)return e;for(var n=/%([sd])/g,r=n.exec(e),o=e,i=0;r&&void 0!==t[i];)o=o.replace(r[0],t[i].toString()),i+=1,r=n.exec(e);return o};function Qi(e,t,n){if(!In(e))throw Do("i18n: Need string in first argument");
50if(!e.length)return e;var r=Boolean(null==n?void 0:n.debugLanguage),o={},i=function(e){return t&&t.length?Ji(e,t):e},a=_o(Qr.defaultOptions.language,Qr.defaultOptions.language),s=_o(null==n?void 0:n.language,a),l=function(t){if(t){if(In(t[e]))return i(t[e]);var n=e.toLowerCase();if(In(t[n]))return i(t[n]);var r=Ki(e);return In(t[r])?i(t[r]):void 0}};void 0!==Sn[s]?o=Sn[s]:r||(o=void 0!==Sn[a]?Sn[a]:Sn.en);var c=null==n?void 0:n.i18n;if(c&&c[s]){var u=l(c[s]);if(u)return u}return l(o)||(!r&&Sn.en&&In(Sn.en[e])&&Sn.en[e]?i(Sn.en[e]):r?"{"+e+"}":(ft||"en"===s||console.warn('i18n need "'.concat(e,'" in "').concat(s,'"')),i(e)))}function Xi(e){return Sr(e).toLowerCase()}function Zi(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var ea=new Set;function ta(){var e;return e=function(e,t){var n;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(r){return n=na(e,t,!1),ea.has(n)?[2]:(ea.add(n),[2,Lr(e,n)])})},ta=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Zi(i,r,o,a,s,"next",e)}function s(e){Zi(i,r,o,a,s,"throw",e)}a(void 0)})},ta.apply(this,arguments)}function na(e,t,n){t=Sr(t);var r=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+r+"."+(n?"js":"css")}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__items=new Map}var t;return t=[{key:"size",get:function(){return this.__items.size}},{key:"add",value:function(e,t){this.__items.set(Xi(e),t),Aa.fire("plugin:".concat(e,":ready"))}},{key:"get",value:function(e){return this.__items.get(Xi(e))}},{key:"remove",value:function(e){this.__items.delete(Xi(e))}},{key:"__getFullPluginsList",value:function(e){var t=[];return this.__items.forEach(function(n,r){e&&!e.has(r)||t.push([r,n])}),t}},{key:"__init",value:function(e){var t=this,n=function(e){return{extraList:e.o.extraPlugins.map(function(e){return In(e)?{name:e}:e}),disableList:new Set(Ei(e.o.disablePlugins).map(Xi)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null}}(e),r=n.extraList,o=n.disableList,i=n.filter,a=new Map,s={},l=new Set;e.__plugins=s;var c=function(){if(!e.isInDestruct){var n=!1;t.__getFullPluginsList(i).forEach(function(t){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return ra(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ra(e,2):void 0}}
50(e)||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.")}()}(t),i=r[0],c=r[1];if(!o.has(i)&&!a.has(i)){var u=null==c?void 0:c.requires;if(u&&An(u)&&u.length){if(u.some(function(e){return o.has(e)}))return;if(!u.every(function(e){return a.has(e)}))return void l.add(i)}n=!0;var d=function(e,t){try{try{return xn(t)?new t(e):t}catch(n){if(xn(t)&&!t.prototype)return t(e)}}catch(e){if(console.error(e),!ft)throw e}return null}(e,c);if(!d)return a.set(i,null),void l.delete(i);(function(e,t,n,r,o,i){if($n(r))try{r.init(e)}catch(e){if(console.error(e),!ft)throw e}o.set(t,r),i.delete(t),r.hasStyle&&function(e,t){return ta.apply(this,arguments)}(e,t).catch(function(e){!ft&&console.error(e)}),r.styles&&(Ca(e,t,"style").innerHTML=r.styles)})(e,i,0,d,a,l),s[i]=d}}),n&&(e.e.fire("updatePlugins"),c())}};r&&r.length&&function(e,t,n,r){try{var o=n.filter(function(t){return!e.has(Xi(t.name))});o.length&&function(e,t,n){t.map(function(t){var r=t.url||na(e,t.name,!0);return Nr(e,r).then(n).catch(function(){return null})})}(t,o,r)}catch(e){if(!ft)throw e}}(this.__items,e,r,c),c(),function(e,t){e.e.on("beforeDestruct",function(){Object.keys(t).forEach(function(n){var r=t[n];Yn(r)&&r.destruct(e),delete t[n]}),delete e.__plugins})}(e,s),!ft&&l.size&&console.warn("After init plugin waiting list is not clean:",l)}},{key:"wait",value:function(e){var t=this;return new Promise(function(n){if(t.get(e))return n();var r=function(){n(),Aa.off("plugin:".concat(e,":ready"),r)};Aa.on("plugin:".concat(e,":ready"),r)})}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),ia="JoditEventDefaultNamespace",aa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__store=new Map}var t;return t=[{key:"get",value:function(e,t){if(this.__store.has(t)){var n=this.__store.get(t);return Wr(n,"-"),n[e]}}},{key:"indexOf",value:function(e,t,n){var r=this.get(e,t);if(r)for(var o=0;o<r.length;o+=1)if(r[o].originalCallback===n)return o;return!1}},{key:"namespaces",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Ln(this.__store.keys());return e?t.filter(function(e){return e!==ia}):t}},{key:"events",value:function(e){var t=this.__store.get(e);return t?Object.keys(t):[]}},{key:"set",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.__store.get(t);o||(o={},this.__store.set(t,o)),void 0===o[e]&&(o[e]=[]),r?o[e].unshift(n):o[e].push(n)}},{key:"clear",value:function(){this.__store.clear()}},{key:"clearEvents",value:function(e,t){var n=this.__store.get(e);n&&n[t]&&(delete n[t],Object.keys(n).length||this.__store.delete(e))}},{key:"isEmpty",value:function(){return 0===this.__store.size}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function la(e){return function(e){if(Array.isArray(e))return sa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return sa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sa(e,t):void 0}}(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.")}()}var ca=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=Ot,this.__prepareEvent=function(e){e.cancelBubble||(e.composed&&xn(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(function(t){Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})}),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&n.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:function(){return n.__doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}var t;return t=[{key:"mute",value:function(e){return this.__mutedEvents.add(null!=e?e:"*"),this}},{key:"isMuted",value:function(e){return!(!e||!this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}},{key:"unmute",value:function(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}},{key:"__eachEvent",value:function(e,t){var n=this;Ei(e).map(function(e){return e.trim()}
50).forEach(function(e){var r=e.split("."),o=r[1]||ia;t.call(n,r[0],o)})}},{key:"__getStore",value:function(e){if(!e)throw Do("Need subject");if(void 0===e[this.__key]){var t=new aa;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}},{key:"__removeStoreFromSubject",value:function(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}},{key:"__triggerNativeEvent",value:function(e,t){var n=this.__doc.createEvent("HTMLEvents");In(t)?n.initEvent(t,!0,!0):(n.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach(function(e){Object.defineProperty(n,e,{value:t[e],enumerable:!0})}),Object.defineProperty(n,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(n)}},{key:"current",get:function(){return this.currents[this.currents.length-1]}},{key:"on",value:function(e,t,n,r){var o,i,a,s,l=this;if(In(e)||Rn(e)?(o=this,i=e,a=t,s=n):(o=e,i=t,a=n,s=r),!In(i)&&!Rn(i)||0===i.length)throw Do("Need events names");if(!xn(a))throw Do("Need event handler");if(An(o))return o.forEach(function(e){l.on(e,i,a,s)}),this;var c=o,u=this.__getStore(c),d=this,f=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;if(!d.isMuted(e))return a&&(o=a).call.apply(o,[this].concat(la(n)))};return ua(c)&&(f=function(e){if(!d.isMuted(e.type))return d.__prepareEvent(e),a&&!1===a.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(i,function(e,t){var n,r;if(0===e.length)throw Do("Need event name");if(!1===u.indexOf(e,t,a)){var o={event:e,originalCallback:a,syntheticCallback:f};if(u.set(e,t,o,null==s?void 0:s.top),ua(c)){var i=Tn.has(e)?{passive:!0,capture:null!==(n=null==s?void 0:s.capture)&&void 0!==n&&n}:null!==(r=null==s?void 0:s.capture)&&void 0!==r&&r;f.options=i,c.addEventListener(e,f,i),l.__memoryDOMSubjectToHandler(c,f)}}}),this}},{key:"__memoryDOMSubjectToHandler",value:function(e,t){var n=this.__domEventsMap.get(e)||new Set;n.add(t),this.__domEventsMap.set(e,n)}},{key:"__unmemoryDOMSubjectToHandler",value:function(e,t){var n=this.__domEventsMap,r=n.get(e)||new Set;r.delete(t),r.size?n.set(e,r):n.delete(e)}},{key:"one",value:function(e,t,n,r){var o,i,a,s,l=this;In(e)||Rn(e)?(o=this,i=e,a=t,s=n):(o=e,i=t,a=n,s=r);var c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l.off(o,i,c),a.apply(void 0,la(t))};return this.on(o,i,c,s),this}},{key:"off",value:function(e,t,n){var r,o,i,a=this;if(In(e)||Rn(e)?(r=this,o=e,i=t):(r=e,o=t,i=n),An(r))return r.forEach(function(e){a.off(e,o,i)}),this;var s=r,l=this.__getStore(s);if(!In(o)&&!Rn(o)||0===o.length)return l.namespaces().forEach(function(e){a.off(s,"."+e)}),this.__removeStoreFromSubject(s),this;var c=function(e){var t;ua(s)&&(s.removeEventListener(e.event,e.syntheticCallback,null!==(t=e.syntheticCallback.options)&&void 0!==t&&t),a.__unmemoryDOMSubjectToHandler(s,e.syntheticCallback))},u=function(e,t){if(""!==e){var n=l.get(e,t);if(n&&n.length)if(xn(i)){var r=l.indexOf(e,t,i);!1!==r&&(c(n[r]),n.splice(r,1),n.length||l.clearEvents(t,e))}else n.forEach(c),n.length=0,l.clearEvents(t,e)}else l.events(t).forEach(function(e){""!==e&&u(e,t)})};return this.__eachEvent(o,function(e,t){t===ia?l.namespaces().forEach(function(t){u(e,t)}):u(e,t)}),l.isEmpty()&&this.__removeStoreFromSubject(s),this}},{key:"stopPropagation",value:function(e,t){var n=this,r=In(e)?this:e,o=In(e)?e:t;if("string"!=typeof o)throw Do("Need event names");var i=this.__getStore(r);this.__eachEvent(o,function(e,t){var o=i.get(e,t);o&&n.__stopped.push(o),t===ia&&i.namespaces(!0).forEach(function(t){return n.stopPropagation(r,e+"."+t)})})}},{key:"__removeStop",value:function(e){if(e){var t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}},{key:"__isStopped",value:function(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}},{key:"fire",value:function(e,t){for(var n,r,o=this,i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];var l=In(e)?this:e,c=In(e)?e:t,u=In(e)?[t].concat(la(a)):a;if(!ua(l)&&!In(c))throw Do("Need events names");var d=this.__getStore(l);return!In(c)&&ua(l)?this.__triggerNativeEvent(l,t):this.__eachEvent(c,function(e,t){if(ua(l))o.__triggerNativeEvent(l,e);else{var i=d.get(e,t);if(i)try{la(i).every(function(t){var a;return!o.__isStopped(i)&&(o.currents.push(e),r=(a=t.syntheticCallback).call.apply(a,[l,e].concat(la(u))),o.currents.pop(),void 0!==r&&(n=r),!0)})}finally{o.__removeStop(i)}t!==ia||ua(l)||d.namespaces().filter(function(e){return e!==t}
50).forEach(function(t){var r=o.fire.apply(o,[l,e+"."+t].concat(la(u)));void 0!==r&&(n=r)})}}),n}},{key:"destruct",value:function(){var e=this;this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach(function(t,n){e.off(n)}),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function ua(e){return xn(e.addEventListener)}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fa(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||pa(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 pa(e,t){if(e){if("string"==typeof e)return da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(e,t):void 0}}function ha(e,t){var n;do{n=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!n&&e);return n}function ma(e,t){return function(n,r){var o;if(!xn(n[r]))throw Do("Handler must be a Function");var i=null===(o=null==t?void 0:t.immediately)||void 0===o||o,a=null==t?void 0:t.context,s=function(t){var o=cr(t)?t:t.jodit,s=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];var a;if(!t.isInDestruct)return(a=t)[r].apply(a,[e].concat(function(e){return function(e){if(Array.isArray(e))return da(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||pa(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.")}()}(o)))};i||(s=t.async.microDebounce(s,!0)),Ei(e).forEach(function(e){if(/:/.test(e)){var r=fa(e.split(":"),2),i=r[0],l=r[1],c=a;return i.length&&(c=t.get(i)),xn(c)&&(c=c(t)),o.events.on(c||t,l,s),c||o.events.on(l,s),void t.hookStatus("beforeDestruct",function(){o.events.off(c||t,l,s).off(l,s)})}var u=e.split("."),d=fa(u,1)[0],f=u.slice(1),p=t[d];or(p)&&_a(p).on("change.".concat(f.join(".")),s);var h=ha(n,d);Object.defineProperty(t,d,{configurable:!0,set:function(e){var n=p;n!==e&&(p=e,h&&h.set&&h.set.call(t,e),or(p)&&(p=_a(p)).on("change.".concat(f.join(".")),s),s(d,n,p))},get:function(){return h&&h.get?h.get.call(t):p}})})};xn(n.hookStatus)?n.hookStatus(Cn.ready,s):s(n)}}function ga(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ya(e){return function(e){if(Array.isArray(e))return ga(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ga(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ga(e,t):void 0}}(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.")}()}var va=Symbol("observable-object");function ba(e){return void 0!==e[va]}function _a(e){if(ba(e))return e;var t={},n={},r=function(t,o){return An(t)?(t.map(function(e){return r(e,o)}),e):(n[t]||(n[t]=[]),n[t].push(o),e)},o=function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];if(An(r))r.map(function(e){return o.apply(void 0,[e].concat(ya(a)))});else try{var l;!t[r]&&n[r]&&(t[r]=!0,n[r].forEach(function(t){return(l=t).call.apply(l,[e].concat(ya(a)))}))}finally{t[r]=!1}},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a={};ba(t)||(Object.defineProperty(t,va,{enumerable:!1,value:!0}),Object.keys(t).forEach(function(r){var s=r,l=n.concat(s).filter(function(e){return e.length});a[s]=t[s];var c=ha(t,s);Object.defineProperty(t,s,{set:function(t){var n=a[s];if(!qn(a[s],t)){o(["beforeChange","beforeChange.".concat(l.join("."))],s,t),or(t)&&i(t,l),c&&c.set?c.set.call(e,t):a[s]=t;var r=[];o(["change"].concat(ya(l.reduce(function(e,t){return r.push(t),e.push("change.".concat(r.join("."))),e},[]))),l.join("."),n,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:function(){return c&&c.get?c.get.call(e):a[s]},enumerable:!0,configurable:!0}),or(a[s])&&i(a[s],l)}),Object.defineProperty(e,"on",{value:r}))};return i(e),e}var wa={},Sa=1,Ea=new Set,ka=new oa,Ta={},xa=function(e){Object.keys(e).forEach(function(t){Sn[t]?Object.assign(Sn[t],e[t]):Sn[t]=e[t]})},Oa=new WeakMap;function Ca(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"div",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=In(t)?t:t?Bo(t.prototype):"jodit-utils",i=Oa.get(e)||{},a=o+n,s=cr(e)?e:e.j,l=null;if(!i[a]){var c=s.c;if(l=Pa(s.o,s.container,e.od.body),r&&Zn(e)&&e.od!==e.ed){c=e.createInside;var u="style"===n?e.ed.head:e.ed.body;l=Zn(e)&&e.o.shadowRoot?e.o.shadowRoot:u}
50var d=c.element(n,{className:"jodit jodit-".concat(Sr(o),"-container jodit-box")});d.classList.add("jodit_theme_".concat(s.o.theme||"default")),l.appendChild(d),i[a]=d,e.hookStatus("beforeDestruct",function(){s.events.off(d),ii.safeRemove(d),delete i[a],Object.keys(i).length&&Oa.delete(e)}),Oa.set(e,i),s.events.fire("getContainer",d)}return i[a].classList.remove("jodit_theme_default","jodit_theme_dark"),i[a].classList.add("jodit_theme_".concat(s.o.theme||"default")),i[a]}function Pa(e,t,n){var r,o,i;return null!==(i=null!==(o=null!==(r=e.popupRoot)&&void 0!==r?r:e.shadowRoot)&&void 0!==o?o:ii.closest(t,function(e){return ii.isHTMLElement(e)&&(ii.isTag(e,"dialog")||["fixed","absolute"].includes(Cr(e,"position")))},n))&&void 0!==i?i:n}var Aa=new ca;function Ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ra=new Map,ja=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.async=new wi,this.ownerWindow=window,this.__componentStatus=Cn.beforeInit,this.uid="jodit-uid-"+function(){function e(){return Sa+=10*(Math.random()+1),Math.round(Sa).toString(16)}for(var t=e();Ea.has(t);)t=e();return Ea.add(t),t}()}var t,n,r;return t=e,n=[{key:"componentName",get:function(){return this.__componentName||(this.__componentName="jodit-"+Sr((xn(this.className)?this.className():"")||Bo(this))),this.__componentName}},{key:"getFullElName",value:function(e,t,n){var r=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),r.push("__".concat(e))),t&&(r.push("_",t),r.push("_",jn(n)?"true":n.toString())),r.join("")}},{key:"ownerDocument",get:function(){return this.ow.document}},{key:"od",get:function(){return this.ownerDocument}},{key:"ow",get:function(){return this.ownerWindow}},{key:"get",value:function(e,t){return Mn(e,t||this)}},{key:"isReady",get:function(){return this.componentStatus===Cn.ready}},{key:"isDestructed",get:function(){return this.componentStatus===Cn.destructed}},{key:"isInDestruct",get:function(){return Cn.beforeDestruct===this.componentStatus||Cn.destructed===this.componentStatus}},{key:"bindDestruct",value:function(e){var t=this;return e.hookStatus(Cn.beforeDestruct,function(){return!t.isInDestruct&&t.destruct()}),this}},{key:"destruct",value:function(){this.setStatus(Cn.destructed),this.async&&(this.async.destruct(),this.async=void 0),Ra.get(this)&&Ra.delete(this),this.ownerWindow=void 0}},{key:"componentStatus",get:function(){return this.__componentStatus},set:function(e){this.setStatus(e)}},{key:"setStatus",value:function(e){return this.setStatusComponent(e,this)}},{key:"setStatusComponent",value:function(e,t){if(e!==this.__componentStatus){t===this&&(this.__componentStatus=e);var n=Object.getPrototypeOf(this);n&&xn(n.setStatusComponent)&&n.setStatusComponent(e,t);var r=Ra.get(this),o=null==r?void 0:r[e];o&&o.length&&o.forEach(function(e){return e(t)})}}},{key:"hookStatus",value:function(e,t){var n=Ra.get(this);n||(n={},Ra.set(this,n)),n[e]||(n[e]=[]),n[e].push(t)}}],r=[{key:"isInstanceOf",value:function(e,t){return n=e,null!=(r=t)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](n):n instanceof r;var n,r}}],n&&Ia(t.prototype,n),r&&Ia(t,r),e}();function Ma(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Da(e,t,n){return Da="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Na(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Da(e,t,n||e)}function Na(e){return Na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Na(e)}function La(e,t){return La=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},La(e,t)}function Fa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fa=function(){return!!e})()}ja.STATUSES=Cn;var Ba=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Na(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Fa()?Reflect.construct(t,[],Na(e).constructor):t.apply(e,n))}(this,t)).setParentView(e),n}var n;return 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&&La(e,t)}(t,e),n=[{key:"j",get:function(){return this.jodit}},{key:"defaultTimeout",get:function(){return this.j.defaultTimeout}},{key:"i18n",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return(o=this.j).i18n.apply(o,[e].concat(function(e){return function(e){if(Array.isArray(e))return Ma(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ma(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ma(e,t):void 0}}(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.")}()}(n)))}},{key:"setParentView",value:function(e){return this.jodit=e,e.components.add(this),this}},{key:"destruct",value:function(){return this.j.components.delete(this),Da(Na(t.prototype),"destruct",this).call(this)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(ja);function za(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"debounce";return function(r,o){var i=r[o];if(!xn(i))throw Do("Handler must be a Function");return r.hookStatus(Cn.ready,function(r){var i=r.async;Wr(null!=i,"Component ".concat(r.componentName||r.constructor.name,' should have "async:IAsync" field'));var a=xn(e)?e(r):e,s=nr(a)||or(a)?a:r.defaultTimeout;Object.defineProperty(r,o,{configurable:!0,value:i[n](r[o].bind(r),s,t)})}),{configurable:!0,get:function(){return i.bind(this)}}}}function Ua(e){return za(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"throttle")}function Ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Va(e){return function(e){if(Array.isArray(e))return Ha(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ha(e,t):void 0}}(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 qa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=e.prototype,r=0;r<t.length;r++)for(var o=function(e){var t=a[e],r=Object.getOwnPropertyDescriptor(i.prototype,t);null!=r&&xn(r.value)&&!xn(n[t])&&Object.defineProperty(n,t,{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o;return(o=r.value).call.apply(o,[this].concat(Va(t)))}})},i=t[r],a=Object.getOwnPropertyNames(i.prototype),s=0;s<a.length;s++)o(s)}}function Ga(e){return function(t,n){if(!xn(t[n]))throw Do("Handler must be a Function");t.hookStatus(e,function(e){e[n].call(e)})}}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $a(){return function(e,t){if(!xn(e[t]))throw Do("Handler must be a Function");e.hookStatus(Cn.ready,function(e){var n,r=e.async,o=e[t];e[t]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];
50return r.requestIdleCallback((n=o).bind.apply(n,[e].concat(function(e){return function(e){if(Array.isArray(e))return Wa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}(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.")}()}(i))))}})}}var Ya=function(e,t){!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set:function(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};function Ka(e,t){e.hookStatus(Cn.ready,function(e){var n=cr(e)?e:e.jodit,r="".concat(n.options.namespace).concat(e.componentName,"_prop_").concat(t),o=e[t];Object.defineProperty(e,t,{get:function(){var e;return null!==(e=n.storage.get(r))&&void 0!==e?e:o},set:function(e){n.storage.set(r,e)}})})}function Ja(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qa(e){return function(t,n){if(!xn(t[n]))throw Do("Handler must be a Function");t.hookStatus(Cn.ready,function(t){var r=t.async,o=t[n],i=0;Object.defineProperty(t,n,{configurable:!0,value:function n(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];r.clearTimeout(i),e(t)?o.apply(t,s):i=r.setTimeout(function(){return n.apply(void 0,function(e){return function(e){if(Array.isArray(e))return Ja(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ja(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ja(e,t):void 0}}(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.")}()}(s))},10)}})})}}function Xa(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Za(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Xa(i,r,o,a,s,"next",e)}function s(e){Xa(i,r,o,a,s,"throw",e)}a(void 0)})}}function es(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}Qr.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:function(){return new XMLHttpRequest}};var ts=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.request=t,this.status=n,this.statusText=r,this.body=o}var t;return(t=[{key:"url",get:function(){return this.request.url}},{key:"json",value:function(){var e=this;return Za(function(){return es(this,function(t){return[2,JSON.parse(e.body)]})})()}},{key:"text",value:function(){return Promise.resolve(this.body)}},{key:"blob",value:function(){var e=this;return Za(function(){return es(this,function(t){return[2,e.body]})})()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function ns(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function os(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var is=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qr.prototype.defaultAjaxOptions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__async=new wi,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=ho(t||{},n),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}var t;return t=[{key:"className",value:function(){return"Ajax"}},{key:"__buildParams",value:function(e,t){return or(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):xn(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):In(e)||(n=e,null!=(r=xt.FormData)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)||"object"===(void 0===e?"undefined":os(e))&&null!=e&&xn(e.append)?e:Kr(e);var n,r}},{key:"o",get:function(){return this.options}},{key:"abort",value:function(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}},{key:"send",value:function(){this.__activated=!0;var e=this.xhr,t=this.o,n=this.prepareRequest(),r=this;return this.__async.promise(function(){var o,i=(o=function(o,i){var a,s,l,c,u,d,f;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(p){switch(p.label){case 0:return s=function(){r.__isFulfilled=!0,i(No("Connection error"))},l=function(){r.__isFulfilled=!0,o(new ts(n,e.status,e.statusText,e.responseType?e.response:e.responseText))},e.onload=l,e.onabort=function(){r.__isFulfilled=!0,i(wo("Abort connection"))},e.onerror=s,e.ontimeout=s,t.responseType&&(e.responseType=t.responseType),e.onprogress=function(e){var t,n,o=0;e.lengthComputable&&(o=e.loaded/e.total*100),null===(n=(t=r.options).onProgress)||void 0===n||n.call(t,o)},e.onreadystatechange=function(){var n,o;null===(o=(n=r.options).onProgress)||void 0===o||o.call(n,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?l():e.statusText&&(r.__isFulfilled=!0,i(No(e.statusText))))},e.withCredentials=null!==(a=t.withCredentials)&&void 0!==a&&a,c=n.url,u=n.data,d=n.method,e.open(d,c,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType),xn(f=t.headers)?[4,f.call(r)]:[3,2];case 1:f=p.sent(),p.label=2;case 2:return f&&e.setRequestHeader&&Object.keys(f).forEach(function(t){e.setRequestHeader(t,f[t])}),r.__async.setTimeout(function(){e.send(u?r.__buildParams(u):void 0)}
50,0),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,r){var i=o.apply(e,t);function a(e){ns(i,n,r,a,s,"next",e)}function s(e){ns(i,n,r,a,s,"throw",e)}a(void 0)})});return function(e,t){return i.apply(this,arguments)}}())}},{key:"prepareRequest",value:function(){if(!this.o.url)throw Do("Need URL for AJAX request");var t=this.o.url,n=this.o.data,r=(this.o.method||"get").toLowerCase();if("get"===r&&n&&or(n)){var o=t.indexOf("?");if(-1!==o){var i=yo(t);t=t.substring(0,o)+"?"+Kr(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){rs(e,t,n[t])})}return e}({},i,n))}else t+="?"+Kr(this.o.data)}var a={url:t,method:r,data:n};return e.log.splice(100),e.log.push(a),a}},{key:"destruct",value:function(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();is.log=[],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":os(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([On],is.prototype,"destruct",null);var as=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"getElm",value:function(e){return this.container.querySelector(".".concat(this.getFullElName(e)))}},{key:"getElms",value:function(e){return Ln(this.container.querySelectorAll(".".concat(this.getFullElName(e))))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),ss=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return(t=[{key:"afterSetMod",value:function(e,t){}},{key:"setMod",value:function(e,t,n){e=e.toLowerCase();var r=this.mods[e];if(r===t)return this;var o="".concat(this.componentName,"_").concat(e,"_"),i=(n||this.container).classList;return null!=r&&i.remove("".concat(o).concat(r.toString().toLowerCase())),!jn(t)&&""!==t&&i.add("".concat(o).concat(t.toString().toLowerCase())),this.mods[e]=t,this.afterSetMod(e,t),this}},{key:"getMod",value:function(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),ls=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"getIcon",value:function(t){if(/<svg/i.test(t))return t;var n=e.icons[t]||e.icons[t.replace(/-/g,"_")]||e.icons[t.replace(/_/g,"-")]||e.icons[Or(t)]||e.icons[Sr(t)]||e.icons[t.toLowerCase()];return ft||n||console.warn('Icon "'.concat(t,'" not found')),n}},{key:"exists",value:function(e){return void 0!==this.getIcon(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"<span></span>";return this.getIcon(e)||t}},{key:"set",value:function(e,t){return this.icons[e.replace("_","-")]=t,this}},{key:"makeIcon",value:function(t,n){var r,o,i,a;if(n){var s,l,c=n.name,u=n.iconURL,d=n.fill,f=c.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(c)||(l=null===(o=(r=t.o).getIcon)||void 0===o?void 0:o.call(r,c,f));var p="".concat(c).concat(u).concat(d).concat(null!=l?l:"");if(t.o.cache&&this.__cache.has(p))return null===(i=this.__cache.get(p))||void 0===i?void 0:i.cloneNode(!0);if(u)Cr(s=t.c.span(),"backgroundImage","url("+u.replace("{basePath}",(null==t?void 0:t.basePath)||"")+")");else{var h=l||e.get(c,"")||(null===(a=t.o.extraIcons)||void 0===a?void 0:a[c]);h&&(s=t.c.fromHTML(h.trim()),/^<svg/i.test(c)||s.classList.add("jodit-icon_"+f))}return s&&(s.classList.add("jodit-icon"),s.style.fill=d,t.o.cache&&this.__cache.set(p,s.cloneNode(!0))),s}}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e,t),e}();function cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}
50function us(e,t,n){return us="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ds(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},us(e,t,n||e)}function ds(e){return ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ds(e)}function fs(e,t){return fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fs(e,t)}function ps(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hs=function(){return!!e})()}ls.icons={},ls.__cache=new Map;var ms,gs=ms=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=ds(t),function(e,t){return!t||"object"!==ps(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,hs()?Reflect.construct(t,n||[],ds(e).constructor):t.apply(e,n))}(this,t,[e])).name="",r.__parentElement=null,r.mods={},r.container=r.createContainer(n),Object.defineProperty(r.container,"component",{value:r,configurable:!0}),r}var n,r,o;return 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&&fs(e,t)}(t,e),n=t,r=[{key:"parentElement",get:function(){return this.__parentElement},set:function(e){var t=this;this.__parentElement=e,e&&e.hookStatus("beforeDestruct",function(){return t.destruct()}),this.updateParentElement(this)}},{key:"bubble",value:function(e){for(var t=this.parentElement;t;)e(t),t=t.parentElement;return this}},{key:"updateParentElement",value:function(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}},{key:"get",value:function(e,n){return us(ds(t.prototype),"get",this).call(this,e,n)||this.getElm(e)}},{key:"closest",value:function(e){for(var t="object"===(void 0===e?"undefined":ps(e))?function(t){return t===e}:function(t){return ja.isInstanceOf(t,e)},n=this.__parentElement;n;){if(t(n))return n;n=!n.parentElement&&n.container.parentElement?ms.closestElement(n.container.parentElement,ms):n.parentElement}return null}},{key:"update",value:function(){}},{key:"appendTo",value:function(e){return e.appendChild(this.container),this}},{key:"clearName",value:function(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}},{key:"render",value:function(e){return this.j.c.div(this.componentName)}},{key:"createContainer",value:function(e){var t=this.render(e);if(In(t)){var n=this.parseTemplate(t);return n.classList.add(this.componentName),n}return t}},{key:"parseTemplate",value:function(e){var t=this;return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,function(e,t){return ls.get(t)||""}).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,function(e,n){return t.i18n(n)}))}},{key:"destruct",value:function(){return ii.safeRemove(this.container),this.parentElement=null,us(ds(t.prototype),"destruct",this).call(this)}}],o=[{key:"closestElement",value:function(e,t){var n=ii.up(e,function(e){if(e){var n=e.component;return n&&ja.isInstanceOf(n,t)}return!1});return n?null==n?void 0:n.component:null}}],r&&cs(n.prototype,r),o&&cs(n,o),t}(Ba);function ys(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vs(e,t,n){return vs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=bs(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},vs(e,t,n||e)}function bs(e){return bs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bs(e)}
50function _s(e,t){return _s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_s(e,t)}function ws(e){return function(e){if(Array.isArray(e))return ys(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ys(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ys(e,t):void 0}}(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 Ss(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Es=function(){return!!e})()}gs=ms=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":ps(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([qa(ss,as)],gs);var ks,Ts=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ss(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xs=ks=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=bs(t),function(e,t){return!t||"object"!==Ss(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Es()?Reflect.construct(t,n||[],bs(e).constructor):t.apply(e,n))}(this,t,[e,r])).options=r,o.syncMod=!1,o.elements=[],o.buttonSize="middle",null==n||n.forEach(function(e){return e&&o.append(e)}),(null==r?void 0:r.name)&&(o.name=r.name),o}var n;return 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&&_s(e,t)}(t,e),n=[{key:"className",value:function(){return"UIGroup"}},{key:"allChildren",get:function(){for(var e=[],t=ws(this.elements);t.length;){var n,r=t.shift();if(An(r))(n=t).push.apply(n,ws(r));else if(ja.isInstanceOf(r,ks)){var o;(o=t).push.apply(o,ws(r.elements))}else r&&e.push(r)}return e}},{key:"update",value:function(){this.elements.forEach(function(e){return e.update()}),this.setMod("size",this.buttonSize)}},{key:"append",value:function(e,t){var n=this;if(An(e)){if("number"==typeof t)throw new Error("You can not use index when append array of elements");return e.forEach(function(e){return n.append(e,t)}),this}var r=e,o=void 0;if("number"==typeof t?(o=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(o,0,r)):this.elements.push(r),r.name&&r.container.classList.add(this.getFullElName(r.name)),t&&"string"==typeof t){var i=this.getElm(t);if(null==i)throw new Error("Element does not exist");i.appendChild(r.container)}else this.appendChildToContainer(r.container,o);return r.parentElement=this,this}},{key:"afterSetMod",value:function(e,t){this.syncMod&&this.elements.forEach(function(n){return n.setMod(e,t)})}},{key:"appendChildToContainer",value:function(e,t){void 0===t||t<0||t>this.elements.length-1||null==this.container.children[t]?this.container.appendChild(e):this.container.insertBefore(e,this.container.children[t])}},{key:"remove",value:function(e){var t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),ii.safeRemove(e.container),e.parentElement=null),this}}
50,{key:"clear",value:function(){return this.elements.forEach(function(e){return e.destruct()}),this.elements.length=0,this}},{key:"setParentView",value:function(e){var n;return null===(n=this.elements)||void 0===n||n.forEach(function(t){return t.setParentView(e)}),vs(bs(t.prototype),"setParentView",this).call(this,e)}},{key:"destruct",value:function(){return this.clear(),vs(bs(t.prototype),"destruct",this).call(this)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function Os(e){return Os=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Os(e)}function Cs(e,t){return Cs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cs(e,t)}function Ps(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function As(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(As=function(){return!!e})()}Ts([ma("buttonSize")],xs.prototype,"update",null),xs=ks=Ts([pi],xs);var Is=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Os(n=t),function(e,t){return!t||"object"!==Ps(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,As()?Reflect.construct(n,r||[],Os(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Cs(e,t)}(t,e),(n=[{key:"className",value:function(){return"UISeparator"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rs(e)}function js(e,t){return js=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},js(e,t)}function Ms(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ds(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ds=function(){return!!e})()}Is=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ps(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Is);var Ns=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Rs(n=t),function(e,t){return!t||"object"!==Ms(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ds()?Reflect.construct(n,r||[],Rs(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&js(e,t)}(t,e),(n=[{key:"className",value:function(){return"UISpacer"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function Ls(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fs(e){return function(e){if(Array.isArray(e))return Ls(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ls(e,t):void 0}}(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.")}()}Ns=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ms(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Ns);var Bs=function(e){return An(e.buttons)};function zs(e,t){var n=t.getRegisteredButtonGroups();return new Set(e.reduce(function(e,t){var r;return Bs(t)?e=e.concat(Fs(t.buttons).concat(Fs(null!==(r=n[t.group])&&void 0!==r?r:[]))):e.push(t),e},[]))}function Us(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Hs(e,t,n[t])})}return e}function qs(e,t){var n;return t||(t=Qr.defaultOptions.controls),In(e)?n=Gs(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(n=Vs({name:"empty"},mo(e))).name]&&(n=Vs({},mo(t[n.name]),mo(n))),n}function Gs(e,t){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Us(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Us(e,2):void 0}}
50(e)||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.")}()}(e.split(/\./)),r=n[0],o=n[1],i=t;return null!=o?void 0!==t[r]&&(i=t[r]):o=r,i[o]?Vs({name:o},mo(i[o])):void 0}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ws(e)}function $s(e,t){return $s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$s(e,t)}function Ys(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ks=function(){return!!e})()}var Js=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ys(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qs=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ws(t),function(e,t){return!t||"object"!==Ys(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ks()?Reflect.construct(t,n||[],Ws(e).constructor):t.apply(e,n))}(this,t,[e])).mode="horizontal",n.removeButtons=[],n}var n;return 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&&$s(e,t)}(t,e),n=[{key:"className",value:function(){return"UIList"}},{key:"__onChangeMode",value:function(){this.setMod("mode",this.mode)}},{key:"makeGroup",value:function(){return new xs(this.jodit)}},{key:"buttons",get:function(){return this.allChildren.filter(function(e){return ja.isInstanceOf(e,il)})}},{key:"getButtonsNames",value:function(){return this.buttons.map(function(e){return t=e,(null!=(n=il)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n)&&e.state.name||"";var t,n}).filter(function(e){return""!==e})}},{key:"setRemoveButtons",value:function(e){return this.removeButtons=e||[],this}},{key:"build",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e=Ei(e),this.clear();var r,o=!1,i=this.makeGroup();this.append(i),i.setMod("line",!0);var a=function(e){var a=null;switch(e.name){case"\n":(i=t.makeGroup()).setMod("line",!0),r=t.makeGroup(),i.append(r),t.append(i);break;case"|":o||(o=!0,a=new Is(t.j));break;case"---":r.setMod("before-spacer",!0);var s=new Ns(t.j);i.append(s),r=t.makeGroup(),i.append(r),o=!1;break;default:o=!1,a="select"===e.component?t.makeSelect(e,n):t.makeButton(e,n)}a&&(r||(r=t.makeGroup(),i.append(r)),r.append(a))},s=function(e){var n;return!t.removeButtons.includes(e.name)&&(!e.isVisible||(null===(n=e.isVisible)||void 0===n?void 0:n.call(e,t.j,e)))};return e.forEach(function(e){if(Bs(e)){var n=e.buttons.filter(function(e){return e});n.length&&((r=t.makeGroup()).setMod("separated",!0).setMod("group",e.group),i.append(r),function(e,t){var n=An(e)?e:lo(e,!1).map(function(t){return ho({name:t},e[t]||{})});return n.map(function(e){return qs(e,t||Qr.defaultOptions.controls)})}(n,t.j.o.controls).filter(s).forEach(a))}else{r||(r=t.makeGroup(),i.append(r));var o=qs(e,t.j.o.controls);s(o)&&a(o)}}),this.update(),this}},{key:"makeSelect",value:function(e,t){throw new Error("Not implemented behaviour")}},{key:"makeButton",value:function(e,t){return new il(this.j,{name:e.name})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function Xs(e,t,n){return Xs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Zs(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Xs(e,t,n||e)}
50function Zs(e){return Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zs(e)}function el(e,t){return el=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},el(e,t)}function tl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nl=function(){return!!e})()}Js([ma("mode"),Ga("ready")],Qs.prototype,"__onChangeMode",null),Qs=Js([pi],Qs);var rl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":tl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ol=function(){return{size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}},il=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Zs(t),function(e,t){return!t||"object"!==tl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nl()?Reflect.construct(t,n||[],Zs(e).constructor):t.apply(e,n))}(this,t,[e])).isButton=!0,r.state=ol(),r.actionHandlers=[],r.button=r.container,r.updateSize(),r.onChangeSize(),r.onChangeStatus(),n&&r.hookStatus(Cn.ready,function(){r.setState(n)}),r}var n;return 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&&el(e,t)}(t,e),(n=[{key:"className",value:function(){return"UIButton"}},{key:"setState",value:function(e){return Object.assign(this.state,e),this}},{key:"text",get:function(){var e=this.getElm("text");return Wr(e,"Text element not found"),e}},{key:"icon",get:function(){var e=this.getElm("icon");return Wr(e,"Icon element not found"),e}},{key:"onChangeSize",value:function(){this.setMod("size",this.state.size)}},{key:"onChangeType",value:function(){$r(this.container,"type",this.state.type)}},{key:"onChangeRole",value:function(){$r(this.container,"role",this.state.role)}},{key:"updateSize",value:function(){var e=this.closest(Qs);e&&(this.state.size=e.buttonSize)}},{key:"onChangeStatus",value:function(){this.setMod("variant",this.state.variant)}},{key:"onChangeText",value:function(){this.text.textContent=this.jodit.i18n(this.state.text)}},{key:"onChangeTextSetMode",value:function(){this.setMod("text-icons",Boolean(this.state.text.trim().length))}},{key:"onChangeDisabled",value:function(){$r(this.container,"disabled",this.state.disabled||null)}},{key:"onChangeActivated",value:function(){$r(this.container,"aria-pressed",this.state.activated)}},{key:"onChangeName",value:function(){this.container.classList.add("".concat(this.componentName,"_").concat(this.clearName(this.state.name))),this.name=this.state.name,$r(this.container,"data-ref",this.state.name),$r(this.container,"ref",this.state.name)}},{key:"onChangeTooltip",value:function(){var e=this.state.tooltip?this.jodit.i18n(this.state.tooltip):null;this.get("j.o.useNativeTooltip")&&$r(this.container,"title",e),$r(this.container,"aria-label",e)}},{key:"onChangeTabIndex",value:function(){$r(this.container,"tabindex",this.state.tabIndex)}},{key:"onChangeIcon",value:function(){var e=this.get("j.o.textIcons");if(!(!0===e||xn(e)&&e(this.state.name))){ii.detach(this.icon);var t=ls.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}}},{key:"focus",value:function(){this.container.focus()}},{key:"isFocused",value:function(){var e=this.od.activeElement;return Boolean(e&&ii.isOrContains(this.container,e))}},{key:"createContainer",value:function(){var e=this.componentName,t=this.j.c.element
50("button",{class:e,type:"button",role:"button",ariaPressed:!1}),n=this.j.c.span(e+"__icon"),r=this.j.c.span(e+"__text");return t.appendChild(n),t.appendChild(r),t}},{key:"destruct",value:function(){return this.j.e.off(this),this.j.e.off(this.container),Xs(Zs(t.prototype),"destruct",this).call(this)}},{key:"onAction",value:function(e){return this.actionHandlers.push(e),this}},{key:"__onActionFire",value:function(e){var t=this;e.buffer={actionTrigger:this},this.actionHandlers.forEach(function(n){return n.call(t,e)}),this.j.e.fire(this,"click",e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function al(e,t,n,r){var o=new il(e);return o.state.tabIndex=e.o.allowTabNavigation?0:-1,In(t)?(o.state.icon.name=t,o.state.name=t,r&&(o.state.variant=r),n&&(o.state.text=n)):o.setState(t),o}function sl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ll(e)}function cl(e,t){return cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cl(e,t)}function ul(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dl=function(){return!!e})()}rl([si],il.prototype,"text",null),rl([si],il.prototype,"icon",null),rl([ma("state.size",{immediately:!1})],il.prototype,"onChangeSize",null),rl([ma("state.type",{immediately:!1})],il.prototype,"onChangeType",null),rl([ma("state.role",{immediately:!1})],il.prototype,"onChangeRole",null),rl([ma("parentElement")],il.prototype,"updateSize",null),rl([ma("state.variant",{immediately:!1})],il.prototype,"onChangeStatus",null),rl([ma("state.text",{immediately:!1})],il.prototype,"onChangeText",null),rl([ma("state.text",{immediately:!1})],il.prototype,"onChangeTextSetMode",null),rl([ma("state.disabled")],il.prototype,"onChangeDisabled",null),rl([ma("state.activated")],il.prototype,"onChangeActivated",null),rl([ma("state.name",{immediately:!1})],il.prototype,"onChangeName",null),rl([ma("state.tooltip",{immediately:!1})],il.prototype,"onChangeTooltip",null),rl([ma("state.tabIndex",{immediately:!1})],il.prototype,"onChangeTabIndex",null),rl([ma("state.icon",{immediately:!1})],il.prototype,"onChangeIcon",null),rl([li],il.prototype,"createContainer",null),rl([ma("button:click")],il.prototype,"__onActionFire",null),il=rl([pi],il);var fl=function(e){function t(e){var n,r,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{radio:!0};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ll(t),function(e,t){return!t||"object"!==ul(t)&&"function"!=typeof t?sl(e):t}(e,dl()?Reflect.construct(t,n||[],ll(e).constructor):t.apply(e,n))}(this,t,[e,null===(r=i.options)||void 0===r?void 0:r.map(function(t){var r=new il(e,{text:t.text,value:t.value,variant:"primary"});return r.onAction(function(){sl(n).select(t.value)}),r}),i])).options=i,n.select(null!==(o=i.value)&&void 0!==o?o:0),n}var n;return 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&&cl(e,t)}(t,e),n=[{key:"className",value:function(){return"UIButtonGroup"}},{key:"render",value:function(e){return'<div>\n\t\t\t<div class="&__label">~'.concat(e.label,'~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>')}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("options");Wr(null!=t,"Options does not exist"),t.appendChild(e)}},{key:"select",value:function(e){var t,n,r=this;this.elements.forEach(function(t,n){n===e||t.state.value===e?t.state.activated=!0:r.options.radio&&(t.state.activated=!1)});var o=this.elements.filter(function(e){return e.state.activated}).map(function(e){return{text:e.state.text,value:e.state.value}});this.jodit.e.fire(this,"select",o),null===(n=(t=this.options).onChange)||void 0===n||n.call(t,o)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function pl(e,t,n){return pl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=hl(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},pl(e,t,n||e)}function hl(e){return hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(e)}function ml(e,t){return ml=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ml(e,t)}function gl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yl=function(){return!!e})()}fl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":ul(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],fl);var vl,bl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":gl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_l=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],wl=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],Sl=vl=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=hl(t),function(e,t){return!t||"object"!==gl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yl()?Reflect.construct(t,n||[],hl(e).constructor):t.apply(e,n))}(this,t,[e])).__isOpened=!1,n.__attachedContainers=new Set,n.__listenClose=!1,n.__currentTarget=null,n.__delayShowTimeout=0,n.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(n.j.e.on("getContainer",function(e){n.__onAttach(e)}),e.hookStatus(Cn.ready,function(){n.__onAttach(n.j.container)})),n}var n;return 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&&ml(e,t)}(t,e),(n=[{key:"className",value:function(){return"UITooltip"}},{key:"render",value:function(){return'<div><div class="&__content"></div></div>'}},{key:"__onAttach",value:function(e){Ca(this.j,vl).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}},{key:"__addListenersOnEnter",value:function(){if(!this.__listenClose){this.__listenClose=!0;var e=this.j;e.e.on(e.ow,_l,this.__hide).on(wl,this.__hide)}}},{key:"__removeListenersOnLeave",value:function(){if(this.__listenClose){this.__listenClose=!1;var e=this.j;e.e.off(e.ow,_l,this.__hide).off(wl,this.__hide)}}},{key:"__onMouseLeave",value:function(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}},{key:"__onMouseEnter",value:function(e){if(ii.isHTMLElement(e.target)){var t=$r(e.target,"aria-label");if(t&&!Boolean($r(e.target,"disabled"))&&e.target.className.includes("jodit")){this.__currentTarget=e.target;var n=e.target;this.__open(function(){var e=$i(n);return{x:e.left+e.width/2,y:e.top+e.height}},t)}}}},{key:"__open",value:function(e,t){var n=this;this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);var r=this.j.o.showTooltipDelay||this.j.defaultTimeout;r?this.__delayShowTimeout=this.j.async.setTimeout(function(){return n.__show(e,t)},r):this.__show(e,t)}},{key:"__show",value:function(e,t){this.setMod("visible",!0),this.getElm("content").innerHTML=t;var n=e();
50Cr(this.container,{left:n.x,top:n.y})}},{key:"__hide",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",Cr(this.container,{left:-5e3}))}},{key:"__hideDelay",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}},{key:"destruct",value:function(){var e=this;this.__attachedContainers.forEach(function(t){e.j.e.off(t,"mouseenter.tooltip",e.__onMouseEnter).off(t,"mouseleave.tooltip",e.__onMouseLeave)}),this.__hide(),pl(hl(t.prototype),"destruct",this).call(this)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},El(e)}function kl(e,t){return kl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kl(e,t)}function Tl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function xl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xl=function(){return!!e})()}bl([On],Sl.prototype,"__onMouseLeave",null),bl([On],Sl.prototype,"__onMouseEnter",null),bl([On],Sl.prototype,"__hide",null),bl([On],Sl.prototype,"__hideDelay",null),Sl=vl=bl([pi],Sl);var Ol=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{align:"left"};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=El(t),function(e,t){return!t||"object"!==Tl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xl()?Reflect.construct(t,n||[],El(e).constructor):t.apply(e,n))}(this,t,[e,n])).options=o,r.setMod("align",r.options.align||"left"),r.setMod("width",r.options.width||""),r.options.mod&&r.setMod(r.options.mod,!0),r.options.className&&r.container.classList.add(r.options.className),$r(r.container,"data-ref",o.ref),$r(r.container,"ref",o.ref),r}var n;return 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&&kl(e,t)}(t,e),(n=[{key:"className",value:function(){return"UIBlock"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);Ol=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Tl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Ol);var Cl=function(e){return!!ur(e.value).length||(e.error="Please fill out this field",!1)},Pl=function(e){return!!sr(ur(e.value))||(e.error="Please enter a web address",!1)},Al=function(e){return!!ur(e.value).length||(e.error="Please fill out this field",!1)};function Il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rl(e,t,n){return Rl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jl(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Rl(e,t,n||e)}function jl(e){return jl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jl(e)}
50function Ml(e,t){return Ml=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ml(e,t)}function Dl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Nl=function(){return!!e})()}var Ll,Fl=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Dl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bl=Ll=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=jl(t),function(e,t){return!t||"object"!==Dl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Nl()?Reflect.construct(t,n||[],jl(e).constructor):t.apply(e,n))}(this,t,[e,n])).label=r.j.c.span(r.getFullElName("label")),r.icon=r.j.c.span(r.getFullElName("icon")),r.clearButton=r.j.c.span(r.getFullElName("clear"),ls.get("cancel")),r.state=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Il(e,t,n[t])})}return e}({},Ll.defaultState),r.__errorBox=r.j.c.span(r.getFullElName("error")),r.validators=new Set([]),void 0!==(null==n?void 0:n.value)&&(n.value=n.value.toString()),Object.assign(r.state,n),void 0!==r.state.clearButton&&(r.j.e.on(r.clearButton,"click",function(e){e.preventDefault(),r.nativeInput.value="",r.j.e.fire(r.nativeInput,"input"),r.focus()}).on(r.nativeInput,"input",function(){r.state.clearButton=Boolean(r.value.length)}),r.state.clearButton=Boolean(r.value.length)),r.j.e.on(r.nativeInput,"focus blur",function(){r.onChangeFocus()}).on(r.nativeInput,"input change",r.onChangeValue),r.onChangeState(),r.onChangeClassName(),r.onChangeStateValue(),r}var n;return 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&&Ml(e,t)}(t,e),n=[{key:"className",value:function(){return"UIInput"}},{key:"onChangeClear",value:function(){this.state.clearButton?ii.after(this.nativeInput,this.clearButton):ii.safeRemove(this.clearButton)}},{key:"onChangeClassName",value:function(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}},{key:"onChangeState",value:function(){this.name=this.state.name;var e=this.nativeInput,t=this.state,n=t.name,r=t.icon,o=t.type,i=t.ref,a=t.required,s=t.placeholder,l=t.autocomplete,c=t.label;$r(e,"name",n),$r(e,"type",o),$r(e,"data-ref",i||n),$r(e,"ref",i||n),$r(e,"required",a||null),$r(e,"autocomplete",l?null:"off"),$r(e,"placeholder",s?this.j.i18n(s):""),r&&ls.exists(r)?(ii.before(e,this.icon),this.icon.innerHTML=ls.get(r)):ii.safeRemove(this.icon),c?(ii.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(c)):ii.safeRemove(this.label),this.updateValidators()}},{key:"updateValidators",value:function(){var e,t=this;this.validators.clear(),this.state.required&&this.validators.add(Cl),null===(e=this.state.validators)||void 0===e||e.forEach(function(e){var n=l[e];n&&t.validators.add(n)})}},{key:"error",set:function(e){this.setMod("has-error",Boolean(e)),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):ii.safeRemove(this.__errorBox)}},{key:"value",get:function(){return this.nativeInput.value},set:function(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}},{key:"onChangeStateValue",value:function(){var e=this.state.value.toString();e!==this.value&&(this.value=e)}},{key:"onChangeValue",value:function(){var e,t,n=this.value;this.state.value!==n&&(this.state.value=n,this.j.e.fire(this,"change",n),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,n))}},{key:"validate",value:function(){var e=this;this.error="";var t=Ln(this.validators).every(function(t){return t(e)});return this.__markInputInvalid(),t}},{key:"__markInputInvalid",value:function(){var e,t,n,r;this.error?(this.nativeInput.setAttribute("aria-invalid","true"),null===(t=(e=this.nativeInput).setCustomValidity)||void 0===t||t.call(e,this.error)):(this.nativeInput.removeAttribute("aria-invalid"),null===(r=(n=this.nativeInput).setCustomValidity)||void 0===r||r.call(n,""))}},{key:"createContainer",value:function(e){var n=Rl(jl(t.prototype),"createContainer",this).call(this);this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());var r=this.nativeInput;return r.classList.add(this.getFullElName("input")),this.wrapper.appendChild(r),n.appendChild(this.wrapper),$r(r,"dir",this.j.o.direction||"auto"),n}},{key:"createNativeInput",value:function(e){return this.j.create.element("input")}},{key:"focus",value:function(){this.nativeInput.focus()}},{key:"isFocused",get:function(){return this.nativeInput===this.j.od.activeElement}},{key:"onChangeFocus",value:function(){this.setMod("focused",this.isFocused)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function zl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e,t,n){return Ul="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hl(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Ul(e,t,n||e)}function Hl(e){return Hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hl(e)}function Vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){zl(e,t,n[t])})}return e}function ql(e,t){return ql=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ql(e,t)}function Gl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Wl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wl=function(){return!!e})()}Bl.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},Fl([ma("state.clearButton")],Bl.prototype,"onChangeClear",null),Fl([ma("state.className")],Bl.prototype,"onChangeClassName",null),Fl([ma(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),za()],Bl.prototype,"onChangeState",null),Fl([ma("state.value")],Bl.prototype,"onChangeStateValue",null),Fl([On],Bl.prototype,"onChangeValue",null),Bl=Ll=Fl([pi],Bl);var $l,Yl=$l=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Hl(t),function(e,t){return!t||"object"!==Gl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Wl()?Reflect.construct(t,n||[],Hl(e).constructor):t.apply(e,n))}(this,t,[e,n])).state=Vl({},$l.defaultState),Object.assign(r.state,n),r}var n;return 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&&ql(e,t)}(t,e),(n=[{key:"className",value:function(){return"UISelect"}}
50,{key:"createContainer",value:function(e){var n,r=Ul(Hl(t.prototype),"createContainer",this).call(this,e),o=this.j,i=this.nativeInput,a=function(){return o.create.element("option")};if(void 0!==e.placeholder){var s=a();s.value="",s.text=o.i18n(e.placeholder),i.add(s)}return null===(n=e.options)||void 0===n||n.forEach(function(e){var t=a();t.value=e.value.toString(),t.text=o.i18n(e.text),i.add(t)}),e.size&&e.size>0&&$r(i,"size",e.size),e.multiple&&$r(i,"multiple",""),r}},{key:"createNativeInput",value:function(){return this.j.create.element("select")}},{key:"updateValidators",value:function(){Ul(Hl(t.prototype),"updateValidators",this).call(this),this.state.required&&(this.validators.delete(Cl),this.validators.add(Al))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Bl);function Kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Ql(e,t){return Ql=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ql(e,t)}function Xl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Zl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zl=function(){return!!e})()}Yl.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(Vl({},Bl.defaultState),{options:[],size:1,multiple:!1}),Yl=$l=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Gl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Yl);var ec=function(e){function t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(null===(i=(o=function(e,t,n){return t=Jl(t),function(e,t){return!t||"object"!==Xl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Zl()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}(this,t,function(e){return function(e){if(Array.isArray(e))return Kl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kl(e,t):void 0}}(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.")}()}(n))).options)||void 0===i?void 0:i.className)&&o.container.classList.add(null===(a=o.options)||void 0===a?void 0:a.className),o}var n;return 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&&Ql(e,t)}(t,e),n=[{key:"className",value:function(){return"UIForm"}},{key:"submit",value:function(){this.j.e.fire(this.container,"submit")}},{key:"validate",value:function(){var e=this.allChildren.filter(function(e){return ja.isInstanceOf(e,Bl)}),t=!0,n=!1,r=void 0;try{for(var o,i=e[Symbol.iterator]();!(t=(o=i.next()).done);t=!0)if(!o.value.validate())return!1}catch(e){n=!0,r=e}finally{try{t||null==i.return||i.return()}finally{if(n)throw r}}var a=this.allChildren.filter(function(e){return ja.isInstanceOf(e,Yl)}),s=!0,l=!1,c=void 0;try{for(var u,d=a[Symbol.iterator]();!(s=(u=d.next()).done);s=!0)if(!u.value.validate())return!1}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}return!0}},{key:"onSubmit",value:function(e){var t=this;return this.j.e.on(this.container,"submit",function(){var n=t.allChildren.filter(function(e){return ja.isInstanceOf(e,Bl)});return!!t.validate()&&(e(n.reduce(function(e,t){return e[t.state.name]=t.value,e},{})),!1)}),this}}
50,{key:"createContainer",value:function(){var e=this.j.c.element("form");return e.classList.add(this.componentName),$r(e,"dir",this.j.o.direction||"auto"),$r(e,"novalidate",""),e}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function tc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nc(e)}function rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){tc(e,t,n[t])})}return e}function oc(e,t){return oc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oc(e,t)}function ic(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ac(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ac=function(){return!!e})()}ec=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Xl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],ec);var sc,lc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":ic(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cc=sc=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=nc(t),function(e,t){return!t||"object"!==ic(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ac()?Reflect.construct(t,n||[],nc(e).constructor):t.apply(e,n))}(this,t,[e,n])).state=rc({},sc.defaultState),Object.assign(r.state,n),!1===r.state.resizable&&(r.nativeInput.style.resize="none"),r}var n;return 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&&oc(e,t)}(t,e),n=[{key:"className",value:function(){return"UITextArea"}},{key:"createNativeInput",value:function(e){return this.j.create.element("textarea")}},{key:"onChangeStateSize",value:function(){var e=this.state,t=e.size,n=e.resizable;this.nativeInput.style.resize=n?"auto":"none",this.nativeInput.rows=null!=t?t:5}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Bl);function uc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dc(e){return dc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dc(e)}function fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){uc(e,t,n[t])})}return e}function pc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
50(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function hc(e,t){return hc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hc(e,t)}function mc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gc=function(){return!!e})()}cc.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(rc({},Bl.defaultState),{size:5,resizable:!0}),lc([ma(["state.size","state.resizable"])],cc.prototype,"onChangeStateSize",null),cc=sc=lc([pi],cc);var yc,vc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":mc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bc=yc=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=dc(t),function(e,t){return!t||"object"!==mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,gc()?Reflect.construct(t,n||[],dc(e).constructor):t.apply(e,n))}(this,t,[e,pc(fc({},n),{type:"checkbox"})])).state=fc({},yc.defaultState),Object.assign(r.state,n),r}var n;return 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&&hc(e,t)}(t,e),(n=[{key:"className",value:function(){return"UICheckbox"}},{key:"render",value:function(){return this.j.c.element("label",{className:this.componentName})}},{key:"onChangeChecked",value:function(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}},{key:"onChangeNativeCheckBox",value:function(){this.state.checked=this.nativeInput.checked}},{key:"onChangeSwitch",value:function(){this.setMod("switch",this.state.switch);var e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),ii.after(this.nativeInput,e)):ii.safeRemove(e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Bl);function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wc(e)}function Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_c(e,t,n[t])})}return e}function Ec(e,t){return Ec=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ec(e,t)}function kc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Tc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tc=function(){return!!e})()}bc.defaultState=pc(fc({},Bl.defaultState),{checked:!1,switch:!1}),vc([ma("state.checked"),Ga("ready")],bc.prototype,"onChangeChecked",null),vc([ma("nativeInput:change")],bc.prototype,"onChangeNativeCheckBox",null),vc([ma("state.switch"),Ga("ready")],bc.prototype,"onChangeSwitch",null),bc=yc=vc([pi],bc);var xc=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=wc(t),function(e,t){return!t||"object"!==kc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Tc()?Reflect.construct(t,n||[],wc(e).constructor):t.apply(e,n))}(this,t,[e,Sc({type:"file"},n)])).state=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}
50(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(Sc({},Bl.defaultState),{type:"file",onlyImages:!0}),r}var n;return 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&&Ec(e,t)}(t,e),n=[{key:"className",value:function(){return"UIFileInput"}},{key:"createContainer",value:function(e){this.button=new il(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});var t=this.button.container;this.nativeInput||(this.nativeInput=this.createNativeInput(e));var n=this.nativeInput;return n.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(n),t}},{key:"createNativeInput",value:function(e){return this.j.create.fromHTML('<input\n\t\t\ttype="file"\n\t\t\taccept="'.concat(e.onlyImages?"image/*":"*",'"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>'))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Bl);function Oc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ac(e,t,n){return Ac="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ic(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Ac(e,t,n||e)}function Ic(e){return Ic=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ic(e)}function Rc(e,t){return Rc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rc(e,t)}function jc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Oc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oc(e,t):void 0}}(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 Mc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Dc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dc=function(){return!!e})()}xc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":kc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],xc);var Nc=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Mc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Lc=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"],Fc=function(e){function t(e){var n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ic(t),function(e,t){return!t||"object"!==Mc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Dc()?Reflect.construct(t,n||[],Ic(e).constructor):t.apply(e,n))}(this,t,[e])).smart=r,n.isOpened=!1,n.strategy="leftBottom",n.viewB
50ound=function(){return{left:0,top:0,width:n.ow.innerWidth,height:n.ow.innerHeight}},n.__childrenPopups=new Set,$r(n.container,"role","popup"),n}var n,r,o;return 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&&Rc(e,t)}(t,e),n=t,r=[{key:"className",value:function(){return"Popup"}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("content");Wr(t,"Content element should exist"),t.appendChild(e)}},{key:"updateParentElement",value:function(e){var n=this;return e!==this&&ja.isInstanceOf(e,t)&&(this.__childrenPopups.forEach(function(t){!e.closest(t)&&t.isOpened&&t.close()}),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",function(){n.__childrenPopups.delete(e)}),this.__childrenPopups.add(e)),Ac(Ic(t.prototype),"updateParentElement",this).call(this,e)}},{key:"setContent",value:function(e){if(this.allChildren.length)throw new Error("Remove children");if(ja.isInstanceOf(e,gs))this.append(e);else{var t=In(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}},{key:"open",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2?arguments[2]:void 0;if(io(this.jodit,this.container),this.container.classList.add("jodit_theme_".concat(this.jodit.o.theme)),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=n?this.getKeepBound(e):e,r)r.appendChild(this.container);else{var o=Ca(this.jodit,t);r!==this.container.parentElement&&o.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}},{key:"__calculateZIndex",value:function(){var e=this;if(!this.container.style.zIndex){var t=function(t){var n=t.container.style.zIndex||t.o.zIndex;return!!n&&(e.setZIndex(1+parseInt(n.toString(),10)),!0)};if(!t(this.j))for(var n=this.parentElement;n;){if(t(n.j))return;if(n.container.style.zIndex)return void this.setZIndex(1+parseInt(n.container.style.zIndex.toString(),10));if(!n.parentElement&&n.container.parentElement){var r=gs.closestElement(n.container.parentElement,gs);if(r){n=r;continue}}n=n.parentElement}}}},{key:"getKeepBound",value:function(e){var t=this,n=e(),r=this.od.elementFromPoint(n.left,n.top);if(!r)return e;var o=ii.isHTMLElement(r)?r:r.parentElement,i=$i(o,this.j);return function(){var n=e(),r=$i(o,t.j);return function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Pc(e,t,n[t])})}return e}({},n),{top:n.top+(r.top-i.top),left:n.left+(r.left-i.left)})}}},{key:"updatePosition",value:function(){if(!this.isOpened)return this;var e=jc(this.__calculatePosition(this.__targetBound(),this.viewBound(),$i(this.container,this.j)),2),t=e[0],n=e[1];return this.setMod("strategy",n),Cr(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach(function(e){return e.updatePosition()}),this}},{key:"__throttleUpdatePosition",value:function(){this.updatePosition()}},{key:"__calculatePosition",value:function(e,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.strategy,i={left:e.left,right:e.left-(r.width-e.width)},a={bottom:e.top+e.height,top:e.top-r.height},s=Object.keys(i).reduce(function(e,t){return e.concat(Object.keys(a).map(function(e){return"".concat(t).concat(Ki(e))}))},[]),l=function(e){var t=jc(Sr(e).split("-"),2),n=t[0],o=t[1];return{left:i[n],top:a[o],width:r.width,height:r.height}},c=function(e){return t.boxInView(l(o),e)?o:s.find(function(n){if(t.boxInView(l(n),e))return n})||null},u=c($i(this.j.container,this.j));return u&&t.boxInView(l(u),n)||(u=c(n)||u||o),[l(u),u]}},{key:"close",value:function(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach(function(e){return e.close()}),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),ii.safeRemove(this.container),this):this}},{key:"__closeOnOutsideClick",value:function(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}},{key:"isOwnClick",value:function(e){if(!e.target)return!1;var n=gs.closestElement(e.target,t);return Boolean(n&&(this===n||n.closest(this)))}},{key:"__addGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,n=this.ow;Aa.on("closeAllPopups",this.close),this.smart&&this.j.e.on(Lc,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(n,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(n,"scroll",t).on(n,"resize",t),ii.up(this.j.container,function(n){n&&e.j.e.on(n,"scroll mousewheel",t)})}},{key:"__removeGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,n=this.ow;
50Aa.off("closeAllPopups",this.close),this.smart&&this.j.e.off(Lc,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(n,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(n,"scroll",t).off(n,"resize",t),this.j.container.isConnected&&ii.up(this.j.container,function(n){n&&e.j.e.off(n,"scroll mousewheel",t)})}},{key:"setZIndex",value:function(e){this.container.style.zIndex=e.toString()}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}},{key:"destruct",value:function(){return this.close(),Ac(Ic(t.prototype),"destruct",this).call(this)}}],o=[{key:"boxInView",value:function(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}}],r&&Cc(n.prototype,r),o&&Cc(n,o),t}(xs);function Bc(e,t,n){return Bc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zc(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Bc(e,t,n||e)}function zc(e){return zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zc(e)}function Uc(e,t){return Uc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uc(e,t)}function Hc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hc=function(){return!!e})()}Nc([On],Fc.prototype,"updatePosition",null),Nc([Ua(10),On],Fc.prototype,"__throttleUpdatePosition",null),Nc([On],Fc.prototype,"close",null),Nc([On],Fc.prototype,"__closeOnOutsideClick",null);var Vc=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=zc(n=t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Hc()?Reflect.construct(n,r||[],zc(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Uc(e,t)}(t,e),(n=[{key:"className",value:function(){return"ProgressBar"}},{key:"render",value:function(){return"<div><div></div></div>"}},{key:"show",value:function(){return(this.j.workplace||this.j.container).appendChild(this.container),this}},{key:"hide",value:function(){return ii.safeRemove(this.container),this}},{key:"progress",value:function(e){return this.container.style.width=e.toFixed(2)+"%",this}},{key:"destruct",value:function(){return this.hide(),Bc(zc(t.prototype),"destruct",this).call(this)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs),qc=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.document=t,this.createAttributes=n}var t;return t=[{key:"doc",get:function(){return xn(this.document)?this.document():this.document}},{key:"element",value:function(e,t,n){var r=this,o=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(o),t&&(or(t)?$r(o,t):n=t),n&&Si(n).forEach(function(e){return o.appendChild(In(e)?r.fromHTML(e):e)}),o}},{key:"div",value:function(e,t,n){var r=this.element("div",t,n);return e&&(r.className=e),r}},{key:"sandbox",value:function(){var e,t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);var n=null===(e=t.contentWindow)||void 0===e?void 0:e.document;if(Wr(n,"iframe.contentWindow.document"),!n)throw Error("Iframe error");return n.open(),n.write("<!DOCTYPE html><html><head></head><body></body></html>"),n.close(),[n.body,t]}}
50,{key:"span",value:function(e,t,n){var r=this.element("span",t,n);return e&&(r.className=e),r}},{key:"a",value:function(e,t,n){var r=this.element("a",t,n);return e&&(r.className=e),r}},{key:"text",value:function(e){return this.doc.createTextNode(e)}},{key:"fake",value:function(){return this.text(vt)}},{key:"fragment",value:function(){return this.doc.createDocumentFragment()}},{key:"fromHTML",value:function(e,t){var n=this.div();n.innerHTML=e.toString();var r=n.firstChild===n.lastChild&&n.firstChild?n.firstChild:n;if(ii.safeRemove(r),t){var o=Yo(r);Object.keys(t).forEach(function(e){var n=o[e];n&&!1===t[e]&&ii.hide(n)})}return r}},{key:"applyCreateAttributes",value:function(e){if(this.createAttributes){var t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){var n=t[e.tagName.toLowerCase()];xn(n)?n(e):or(n)&&$r(e,n)}}}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wc(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function $c(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Wc(i,r,o,a,s,"next",e)}function s(e){Wc(i,r,o,a,s,"throw",e)}a(void 0)})}}function Yc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gc(e,t):void 0}}(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 Kc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Jc(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var Qc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"JoditDB",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keyValueStore";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dbName=t,this.dbPromise=null,this.DB_VERSION=1,this.storeName=n}var t;return t=[{key:"getDB",value:function(){var e=this;return this.dbPromise||(this.dbPromise=new Promise(function(t,n){var r=indexedDB.open(e.dbName,e.DB_VERSION);r.onerror=function(){n(r.error)},r.onsuccess=function(){t(r.result)},r.onupgradeneeded=function(t){var n=t.target.result;n.objectStoreNames.contains(e.storeName)||n.createObjectStore(e.storeName)}})),this.dbPromise}},{key:"performTransaction",value:function(e,t){var n=this;return $c(function(){var r,o,i,a,s;return Jc(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,n.getDB()];case 1:return r=l.sent(),o=r.transaction([n.storeName],e),i=o.objectStore(n.storeName),a=t(i),[2,new Promise(function(e,t){a.onsuccess=function(){e(a.result)},a.onerror=function(){t(a.error)}})];case 2:return s=l.sent(),[2,Promise.reject(s)];case 3:return[2]}})})()}},{key:"set",value:function(e,t){var n=this;return $c(function(){var r;return Jc(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,n.performTransaction("readwrite",function(n){return n.put(t,e)})];case 1:return o.sent(),[3,3];case 2:return r=o.sent(),ft||console.error(r),[3,3];case 3:return[2,n]}})})()}},{key:"delete",value:function(e){var t=this;return $c(function(){return Jc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.performTransaction("readwrite",function(t){return t.delete(e)})];case 1:case 2:return n.sent(),[3,3];case 3:return[2,t]}})})()}},{key:"get",value:function(e){var t=this;return $c(function(){return Jc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.performTransaction("readonly",function(t){return t.get(e)})];case 1:return[2,n.sent()];case 2:return n.sent(),[2,void 0];case 3:return[2]}})})()}},{key:"exists",value:function(e){var t=this;return $c(function(){return Jc(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t.performTransaction("readonly",function(t){return t.get(e)})];case 1:return[2,void 0!==n.sent()];case 2:return n.sent(),[2,!1];case 3:return[2]}})})()}},{key:"clear",value:function(){var e=this;return $c(function(){return Jc(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e.performTransaction("readwrite",function(e){return e.clear()})];case 1:case 2:return t.sent(),[3,3];case 3:return[2,e]}})})()}},{key:"close",value:function(){var e=this;return $c(function(){return Jc(this,function(t){switch(t.label){case 0:if(!e.dbPromise)return[3,5];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.dbPromise];case 2:return t.sent().close(),[3,4];case 3:return t.sent(),[3,4];case 4:e.dbPromise=null,t.label=5;case 5:return[2]}})})()}},{key:"keys",value:function(){var e=this;return $c(function(){var t;return Jc(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,e.performTransaction("readonly",function(e){return e.getAllKeys()})];case 1:return(t=n.sent())&&"object"===(void 0===t?"undefined":Kc(t))&&"then"in t?[4,t]:[3,3];case 2:t=n.sent(),n.label=3;case 3:return[2,t.map(function(e){return String(e)})];case 4:return n.sent(),[2,[]];case 5:return[2]}})})()}},{key:"values",value:function(){var e=this;return $c(function(){var t;return Jc(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,e.performTransaction("readonly",function(e){return e.getAll()})];case 1:return(t=n.sent())&&"object"===(void 0===t?"undefined":Kc(t))&&"then"in t?[4,t]:[3,3];case 2:t=n.sent(),n.label=3;case 3:return[2,t];case 4:return n.sent(),[2,[]];case 5:return[2]}})})()}},{key:"entries",value:function(){var e=this;return $c(function(){var t,n,r;return Jc(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Promise.all([e.keys(),e.values()])];case 1:return t=Yc.apply(void 0,[o.sent(),2]),n=t[0],r=t[1],[2,n.map(function(e,t){return[e,r[t]]})];case 2:return o.sent(),[2,[]];case 3:return[2]}})})()}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),Xc=null;function Zc(){Xc=null}function eu(){return tu.apply(this,arguments)}function tu(){return(tu=$c(function(){var e,t;return Jc(this,function(n){switch(n.label){case 0:if(null!=Xc)return[2,Xc];n.label=1;case 1:return n.trys.push([1,3,,4]),"undefined"==typeof indexedDB?(Xc=!1,[2,!1]):(e="___Jodit___"+Math.random().toString(),t=indexedDB.open(e),[4,new Promise(function(n){t.onerror=function(){n(!1)},t.onsuccess=function(){indexedDB.deleteDatabase(e),n(!0)}})]);case 2:return[2,Xc=n.sent()];case 3:return n.sent(),Xc=!1,[2,!1];case 4:return[2]}})})).apply(this,arguments)}var nu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localStorage",t=new Map;return function(){if(t.has(e))return t.get(e);var n="___Jodit___"+Math.random().toString(),r="sessionStorage"===e?sessionStorage:localStorage;try{r.setItem(n,"1");var o="1"===r.getItem(n);return r.removeItem(n),t.set(e,o),o}catch(e){}return t.set(e,!1),!1}()},ru=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"localStorage";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootKey=t,this.strategy=n}var t;return t=[{key:"storage",get:function(){return"sessionStorage"===this.strategy?sessionStorage:localStorage}},{key:"set",value:function(e,t){try{var n=this.storage.getItem(this.rootKey),r=n?JSON.parse(n):{};r[e]=t,this.storage.setItem(this.rootKey,JSON.stringify(r))}catch(e){}return this}},{key:"delete",value:function(e){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}},{key:"get",value:function(e){try{var t=this.storage.getItem(this.rootKey),n=t?JSON.parse(t):{};return void 0!==n[e]?n[e]:void 0}catch(e){}}},{key:"exists",value:function(e){return null!=this.get(e)}},{key:"clear",value:function(){try{this.storage.removeItem(this.rootKey)}catch(e){}return this}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),ou=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=new Map}var t;return t=[{key:"set",value:function(e,t){return this.data.set(e,t),this}},{key:"delete",value:function(e){return this.data.delete(e),this}},{key:"get",value:function(e){return this.data.get(e)}},{key:"exists",value:function(e){return this.data.has(e)}},{key:"clear",value:function(){return this.data.clear(),this}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var au="Jodit_",su=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.provider=t,this.prefix=au,n&&(this.prefix+=n)}var t,n,r;return t=e,n=[{key:"set",value:function(e,t){return this.provider.set(Or(this.prefix+e),t),this}},{key:"delete",value:function(e){return this.provider.delete(Or(this.prefix+e)),this}},{key:"get",value:function(e){return this.provider.get(Or(this.prefix+e))}},{key:"exists",value:function(e){return this.provider.exists(Or(this.prefix+e))}},{key:"clear",value:function(){return this.provider.clear(),this}}],r=[{key:"makeStorage",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0;return"localStorage"===n||"sessionStorage"===n?nu(n)&&(t=new ru(au+(r||""),n)):!0===n&&nu("localStorage")&&(t=new ru(au+(r||""))),t||(t=new ou),new e(t,r)}}],n&&iu(t.prototype,n),r&&iu(t,r),e}();function lu(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function cu(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){lu(i,r,o,a,s,"next",e)}function s(e){lu(i,r,o,a,s,"throw",e)}a(void 0)})}}function uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function du(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var fu=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.provider=t,this.prefix=au,n&&(this.prefix+=n)}var t,n,r;return t=e,n=[{key:"set",value:function(e,t){var n=this;return cu(function(){return du(this,function(r){switch(r.label){case 0:return[4,n.provider];case 1:return[4,r.sent().set(Or(n.prefix+e),t)];case 2:return r.sent(),[2,n]}})})()}},{key:"delete",value:function(e){var t=this;return cu(function(){return du(this,function(n){switch(n.label){case 0:return[4,t.provider];case 1:return[4,n.sent().delete(Or(t.prefix+e))];case 2:return n.sent(),[2,t]}})})()}},{key:"get",value:function(e){var t=this;return cu(function(){return du(this,function(n){switch(n.label){case 0:return[4,t.provider];case 1:return[2,n.sent().get(Or(t.prefix+e))]}})})()}},{key:"exists",value:function(e){var t=this;return cu(function(){return du(this,function(n){switch(n.label){case 0:return[4,t.provider];case 1:return[2,n.sent().exists(Or(t.prefix+e))]}})})()}},{key:"clear",value:function(){var e=this;return cu(function(){return du(this,function(t){switch(t.label){case 0:return[4,e.provider];case 1:return[4,t.sent().clear()];case 2:return t.sent(),[2,e]}})})()}},{key:"close",value:function(){var e=this;return cu(function(){var t;return du(this,function(n){switch(n.label){case 0:return[4,e.provider];case 1:return"close"in(t=n.sent())&&"function"==typeof t.close?[4,t.close()]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})()}}],r=[{key:"makeStorage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=void 0;return"localStorage"===t||"sessionStorage"===t?nu(t)&&(r=new ru(au+(n||""),t)):"indexedDB"!==t&&!0!==t||(r=eu().then(function(e){return e?new Qc(au+(n||""),"keyValueStore"):new ou})),r||(r=new ou),new e(Promise.resolve(r),n)}}],n&&uu(t.prototype,n),r&&uu(t,r),e}();function pu(e){return pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pu(e)}function hu(e,t){return hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hu(e,t)}function mu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gu=function(){return!!e})()}var yu=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=pu(t),function(e,t){return!t||"object"!==mu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,gu()?Reflect.construct(t,n||[],pu(e).constructor):t.apply(e,n))}(this,t,[e])).setMod("active",!0),r.setMod("variant",n.variant),r.container.textContent=n.text,r}var n;return 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}
50}),t&&hu(e,t)}(t,e),(n=[{key:"className",value:function(){return"UIMessage"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function vu(e){return vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vu(e)}function bu(e,t){return bu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bu(e,t)}function _u(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function wu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wu=function(){return!!e})()}yu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":mu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],yu);var Su=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{defaultTimeout:3e3,defaultOffset:5};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=vu(t),function(e,t){return!t||"object"!==_u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,wu()?Reflect.construct(t,n||[],vu(e).constructor):t.apply(e,n))}(this,t,[e])).__box=n,r.options=o,r.__messages=new Set,r}var n;return 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&&bu(e,t)}(t,e),n=[{key:"className",value:function(){return"UIMessages"}},{key:"info",value:function(e,t){this.__message(e,"info",t)}},{key:"success",value:function(e,t){this.__message(e,"success",t)}},{key:"error",value:function(e,t){this.__message(e,"error",t)}},{key:"message",value:function(e,t,n){this.__message(e,t,n)}},{key:"__message",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0,r=e+":"+t;if(this.__messages.has(r))this.async.updateTimeout(r,n||this.options.defaultTimeout);else{if(!this.__box)throw new Error("Container is not defined: "+r);this.__box.appendChild(this.container);var o=new yu(this.j,{text:e,variant:t});this.append(o),this.__calcOffsets(),this.__messages.add(r);var i=this.__getRemoveCallback(o,r);this.j.e.on(o.container,"pointerdown",i),this.async.setTimeout(i,{label:r,timeout:n||this.options.defaultTimeout})}}},{key:"__getRemoveCallback",value:function(e,t){var n=this,r=function(o){o&&o.preventDefault(),e.isInDestruct||(n.async.clearTimeout(t),n.j.e.off(e.container,"pointerdown",r),n.__messages.delete(t),e.setMod("active",!1),n.async.setTimeout(function(){n.remove(e),e.destruct(),n.__calcOffsets()},300))};return r}},{key:"__calcOffsets",value:function(){var e=this,t=5;this.elements.forEach(function(n){Cr(n.container,"bottom",t+"px"),t+=n.container.offsetHeight+e.options.defaultOffset})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function Eu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ku(e,t,n){return ku="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Tu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},ku(e,t,n||e)}function Tu(e){return Tu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Tu(e)}function xu(e,t){return xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xu(e,t)}function Ou(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Cu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cu=function(){return!!e})()}Su=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":_u(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Su);var Pu,Au=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ou(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Iu=Pu=function(e){function t(e){var n,r,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Tu(t),function(e,t){return!t||"object"!==Ou(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Cu()?Reflect.construct(t,[],Tu(e).constructor):t.apply(e,n))}(this,t)).isJodit=o,n.isView=!0,n.parent=null,n.mods={},n.components=new Set,n.OPTIONS=Pu.defaultOptions,n.__isFullSize=!1,n.__whoLocked="",n.isLockedNotBy=function(e){return n.isLocked&&n.__whoLocked!==e},n.__modulesInstances=new Map,n.id=(new Date).getTime().toString(),n.initOptions(e),n.initOwners(),n.events=null!==(r=null==e?void 0:e.eventEmmiter)&&void 0!==r?r:new ca(n.od),n.create=new qc(n.od),n.__container=n.c.div("jodit ".concat(n.componentName)),n}var n,r,o;return 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&&xu(e,t)}(t,e),n=t,r=[{key:"basePath",get:function(){return this.o.basePath?this.o.basePath:bn}},{key:"minified",get:function(){return void 0!==this.o.minified?this.o.minified:_n}},{key:"defaultTimeout",get:function(){return jn(this.o.defaultTimeout)?100:this.o.defaultTimeout}},{key:"buffer",get:function(){return su.makeStorage()}},{key:"message",get:function(){return this.getMessageModule(this.container)}},{key:"getMessageModule",value:function(e){return new Su(this,e)}},{key:"storage",get:function(){return su.makeStorage(!0,this.id)}},{key:"asyncStorage",get:function(){return fu.makeStorage(!0,this.id)}},{key:"c",get:function(){return this.create}},{key:"container",get:function(){return this.__container},set:function(e){this.__container=e}},{key:"e",get:function(){return this.events}},{key:"progressbar",get:function(){return new Vc(this)}},{key:"options",get:function(){return this.__options}
50,set:function(e){this.__options=e}},{key:"o",get:function(){return this.options}},{key:"i18n",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Qi(e,n,this.options)}},{key:"toggleFullSize",value:function(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}},{key:"isLocked",get:function(){return""!==this.__whoLocked}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!this.isLocked&&(this.__whoLocked=e,!0)}},{key:"unlock",value:function(){return!!this.isLocked&&(this.__whoLocked="",!0)}},{key:"isFullSize",get:function(){return this.__isFullSize}},{key:"getVersion",value:function(){return Pu.version}},{key:"initOptions",value:function(e){this.options=ho(e||{},ho(this.options||{},Pu.defaultOptions))}},{key:"initOwners",value:function(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}},{key:"attachEvents",value:function(e){var t=this;if(e){var n=null==e?void 0:e.events;n&&Object.keys(n).forEach(function(e){return t.e.on(e,n[e])})}}},{key:"getInstance",value:function(e,t){var n=xn(e)?e.prototype.className():e,r=this.e.fire(Or("getInstance_"+n),t);if(r)return r;var o,i,a=xn(e)?e:Ta[n],s=this.__modulesInstances;if(!xn(a))throw Do("Need real module name");if(!s.has(n)){var l=(o=a.prototype,(null!=(i=Ba)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](o):o instanceof i)?new a(this,t):new a(t));this.components.add(l),s.set(n,l)}return s.get(n)}},{key:"addDisclaimer",value:function(e){this.container.appendChild(e)}},{key:"beforeDestruct",value:function(){this.e.fire(Cn.beforeDestruct,this),this.components.forEach(function(e){Yn(e)&&!e.isInDestruct&&e.destruct()}),this.components.clear()}},{key:"destruct",value:function(){var e,n,r,o;this.isDestructed||(null===(e=ai(this,"progressbar"))||void 0===e||e.destruct(),null===(n=ai(this,"message"))||void 0===n||n.destruct(),null===(r=ai(this,"asyncStorage"))||void 0===r||r.close(),this.events&&(this.events.destruct(),this.events=void 0),null===(o=ai(this,"buffer"))||void 0===o||o.clear(),ii.safeRemove(this.container),ku(Tu(t.prototype),"destruct",this).call(this))}}],o=[{key:"getVersion",value:function(){return Pu.version}}],r&&Eu(n.prototype,r),o&&Eu(n,o),t}(ja);function Ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ju(e,t,n){return ju="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Mu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},ju(e,t,n||e)}function Mu(e){return Mu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mu(e)}function Du(e,t){return Du=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Du(e,t)}function Nu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lu=function(){return!!e})()}Iu.ES=ct,Iu.version=lt,Iu.esNext=dt,Iu.esModern=ut,Au([si],Iu.prototype,"buffer",null),Au([si],Iu.prototype,"message",null),Au([si],Iu.prototype,"storage",null),Au([si],Iu.prototype,"asyncStorage",null),Au([si],Iu.prototype,"c",null),Au([si],Iu.prototype,"e",null),Au([si],Iu.prototype,"progressbar",null),Au([Ga(Cn.beforeDestruct)],Iu.prototype,"beforeDestruct",null),(Iu=Pu=Au([qa(ss,as)],Iu)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var Fu=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Nu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Bu=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Mu(t),function(e,t){return!t||"object"!==Nu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Lu()?Reflect.construct(t,n||[],Mu(e).constructor):t.apply(e,n))}(this,t,[e])).__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",n}var n;return 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&&Du(e,t)}(t,e),n=[{key:"className",value:function(){return"ToolbarCollection"}},{key:"firstButton",get:function(){return function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Ru(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ru(e,1):void 0}}
50(e)||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.")}()}(this.buttons)[0]||null}},{key:"makeButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return yd(this.j,e,t)}},{key:"makeSelect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return new cd(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}(this.j,e,t)}},{key:"shouldBeActive",value:function(e){}},{key:"shouldBeDisabled",value:function(e){}},{key:"getTarget",value:function(e){return e.target||null}},{key:"__immediateUpdate",value:function(){this.isDestructed||this.j.isLocked||(ju(Mu(t.prototype),"update",this).call(this),this.j.e.fire("afterUpdateToolbar",this))}},{key:"update",value:function(){this.__immediateUpdate()}},{key:"setDirection",value:function(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}},{key:"__initEvents",value:function(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}},{key:"hide",value:function(){this.container.remove()}},{key:"show",value:function(){this.appendTo(this.j.toolbarContainer)}},{key:"showInline",value:function(e){throw Do("The method is not implemented for this class.")}},{key:"build",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.j.e.fire("beforeToolbarBuild",e);return r&&(e=r),ju(Mu(t.prototype),"build",this).call(this,e,n),this}},{key:"destruct",value:function(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),ju(Mu(t.prototype),"destruct",this).call(this))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Qs);function zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hu(e,t,n){return Hu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Vu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Hu(e,t,n||e)}function Vu(e){return Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vu(e)}function qu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Uu(e,t,n[t])})}return e}function Gu(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}function Wu(e,t){return Wu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wu(e,t)}function $u(e){return function(e){if(Array.isArray(e))return zu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return zu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zu(e,t):void 0}}(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 Yu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ku=function(){return!!e})()}Fu([On],Bu.prototype,"__immediateUpdate",null),Fu([za(function(e){return e.j.defaultTimeout},!0)],Bu.prototype,"update",null),Fu([Ga("ready")],Bu.prototype,"__initEvents",null),Bu=Fu([pi],Bu);var Ju=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Yu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Qu=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Vu(t),function(e,t){return!t||"object"!==Yu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ku()?Reflect.construct(t,n||[],Vu(e).constructor):t.apply(e,n))}
50(this,t,[e])).control=n,r.target=o,r.state=Gu(qu({},ol()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),r.openedPopup=null;var i=r.getElm("button");Wr(i,"Element button should exists"),r.button=i,Object.defineProperty(i,"component",{value:r,configurable:!0});var a=r.getElm("trigger");return Wr(a,"Element trigger should exists"),r.trigger=a,a.remove(),e.e.on([r.button,r.trigger],"mousedown",function(e){return e.preventDefault()}),r.onAction(r.onClick),r.hookStatus(Cn.ready,function(){r.__initFromControl(),r.update()}),n.mods&&Object.keys(n.mods).forEach(function(e){n.mods&&r.setMod(e,n.mods[e])}),r}var n;return 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&&Wu(e,t)}(t,e),n=[{key:"className",value:function(){return"ToolbarButton"}},{key:"toolbar",get:function(){return this.closest(Bu)}},{key:"update",value:function(){var e,t,n=this.control,r=this.state,o=this.closest(Bu);if(o){var i=null===(e=n.value)||void 0===e?void 0:e.call(n,o.jodit,this);void 0!==i&&(r.value=i),r.disabled=this.__calculateDisabledStatus(o),r.activated=this.__calculateActivatedStatus(o),null===(t=n.update)||void 0===t||t.call(n,o.jodit,this)}}},{key:"__calculateActivatedStatus",value:function(e){var t,n;return!(Zn(this.j)&&!this.j.editorIsActive)&&(!!(null===(n=(t=this.control).isActive)||void 0===n?void 0:n.call(t,this.j,this))||Boolean(e&&e.shouldBeActive(this)))}},{key:"__calculateDisabledStatus",value:function(e){var t,n;return!!this.j.o.disabled||!(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))||!!(null===(n=(t=this.control).isDisabled)||void 0===n?void 0:n.call(t,this.j,this))||Boolean(e&&e.shouldBeDisabled(this))}},{key:"onChangeActivated",value:function(){$r(this.button,"aria-pressed",this.state.activated),Hu(Vu(t.prototype),"onChangeActivated",this).call(this)}},{key:"onChangeText",value:function(){xn(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):Hu(Vu(t.prototype),"onChangeText",this).call(this),this.setMod("text-icons",Boolean(this.text.innerText.trim().length))}},{key:"onChangeTabIndex",value:function(){$r(this.button,"tabindex",this.state.tabIndex)}},{key:"createContainer",value:function(){var e=this.componentName,n=this.j.c.span(e),r=Hu(Vu(t.prototype),"createContainer",this).call(this);$r(n,"role","listitem"),r.classList.remove(e),r.classList.add(e+"__button"),Object.defineProperty(r,"component",{value:this}),n.appendChild(r);var o=this.j.c.fromHTML('<span role="trigger" class="'.concat(e,'__trigger">').concat(ls.get("chevron"),"</span>"));return r.appendChild(o),n}},{key:"focus",value:function(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}},{key:"onChangeHasTrigger",value:function(){this.state.hasTrigger?this.container.appendChild(this.trigger):ii.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}},{key:"onChangeDisabled",value:function(){var e=this.state.disabled?"disabled":null;$r(this.trigger,"disabled",e),$r(this.button,"disabled",e),$r(this.container,"disabled",e)}},{key:"__initFromControl",value:function(){var e,t=this.control,n=this.state;this.updateSize(),n.name=t.name;var r=this.j.o.textIcons;if(!0===r||xn(r)&&r(t.name)||t.template)n.icon=ol().icon,n.text=t.text||t.name;else{if(t.iconURL)n.icon.iconURL=t.iconURL;else{var o=t.icon||t.name;n.icon.name=ls.exists(o)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[o])?o:""}t.iconURL||n.icon.name||(n.text=t.text||t.name)}t.tooltip&&(n.tooltip=xn(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip),n.hasTrigger=Boolean(t.list||t.popup&&t.exec)}},{key:"onTriggerClick",value:function(e){var t,n,r,o=this;if(this.openedPopup)this.__closePopup();else{var i=this.control;if(e.buffer={actionTrigger:this},i.list)return this.__openControlList(i);if(xn(i.popup)){var a=this.openPopup();a.parentElement=this;try{if(!1!==this.j.e.fire(Or("before-".concat(i.name,"-open-popup")),this.target,i,a)){var s=null!==(r=null!==(n=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==n?n:this.target)&&void 0!==r?r:null,l=i.popup(this.j,s,this.__closePopup,this);l?a.setContent(In(l)?this.j.c.fromHTML(l):l).open(function(){return $i(o.container)},!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire(Or("after-".concat(i.name,"-open-popup")),a.container)}}}},{key:"__openControlList",value:function(e){var t,n=this,r=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},o=function(e){return Gs(e,r)},i=e.list,a=this.openPopup(),s=gd(this.j);a.parentElement=this,s.parentElement=a,s.mode="vertical";var l=function(t,r){if(In(r)&&o(r))return qu({name:r.toString()},o(r));if(In(t)&&o(t))return qu({name:t.toString()},o(t),"object"===(void 0===r?"undefined":Yu(r))?r:{});(function(e){return or(e)&&"title"in e&&"value"in e})(t)&&(r=t.value,t=t.title);var i=e.childTemplate,a={name:t.toString(),template:i&&function(e,t,r){return i(e,t,r,n)},exec:e.childExec?function(t,n,r){var o;return null===(o=e.childExec)||void 0===o?void 0:o.call(e,t,n,Gu(qu({},r),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:$u(e.args?e.args:[]).concat([t,r])};return In(r)&&(a.text=r),a};s.build(An(i)?i.map(l):lo(i,!1).map(function(e){return l(e,i[e])}),this.target),a.setContent(s).open(function(){return $i(n.container)},!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}},{key:"onOutsideClick",value:function(e){this.openedPopup&&(e&&ii.isNode(e.target)&&(ii.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}},{key:"openPopup",value:function(){return this.__closePopup(),this.openedPopup=new Fc(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}},{key:"__closePopup",value:function(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}},{key:"onClick",value:function(e){var t,n,r,o,i,a,s,l=this.control;if(xn(l.exec)){var c=null!==(r=null!==(n=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==n?n:this.target)&&void 0!==r?r:null,u=l.exec(this.j,c,{control:l,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null===(i=null===(o=this.j)||void 0===o?void 0:o.e)||void 0===i||i.fire("synchro"),this.parentElement&&this.parentElement.update(
50),null===(s=null===(a=this.j)||void 0===a?void 0:a.e)||void 0===s||s.fire("closeAllPopups afterExec")),!1!==u)return}return l.list?this.__openControlList(l):xn(l.popup)?this.onTriggerClick(e):void((l.command||l.name)&&(oo(Zn(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),l.command||l.name,!1,l.args&&l.args[0]),this.j.e.fire("closeAllPopups")))}},{key:"destruct",value:function(){return this.__closePopup(),Hu(Vu(t.prototype),"destruct",this).call(this)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(il);function Xu(e,t,n){return Xu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Zu(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Xu(e,t,n||e)}function Zu(e){return Zu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zu(e)}function ed(e,t){return ed=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ed(e,t)}function td(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nd=function(){return!!e})()}Ju([li],Qu.prototype,"createContainer",null),Ju([ma("state.hasTrigger",{immediately:!1})],Qu.prototype,"onChangeHasTrigger",null),Ju([ma("trigger:click")],Qu.prototype,"onTriggerClick",null),Ju([On],Qu.prototype,"onOutsideClick",null),Ju([On],Qu.prototype,"__closePopup",null),Qu=Ju([pi],Qu);var rd=function(e){function t(e,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Zu(t),function(e,t){return!t||"object"!==td(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nd()?Reflect.construct(t,n||[],Zu(e).constructor):t.apply(e,n))}(this,t,[e])).control=n,r.target=o,r.container.classList.add("".concat(r.componentName,"_").concat(r.clearName(n.name))),$r(r.container,"role","content"),r}var n;return 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&&ed(e,t)}(t,e),(n=[{key:"className",value:function(){return"ToolbarContent"}},{key:"update",value:function(){var e=this.control.getContent(this.j,this);(In(e)||e.parentNode!==this.container)&&(ii.detach(this.container),this.container.appendChild(In(e)?this.j.create.fromHTML(e):e)),Xu(Zu(t.prototype),"update",this).call(this)}},{key:"createContainer",value:function(){return this.j.c.span(this.componentName)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(il);function od(e,t,n){return od="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=id(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},od(e,t,n||e)}function id(e){return id=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},id(e)}function ad(e,t){return ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ad(e,t)}function sd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ld=function(){return!!e})()}rd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":td(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],rd);var cd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=id(n=t),function(e,t){return!t||"object"!==sd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ld()?Reflect.construct(n,r||[],id(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&ad(e,t)}(t,e),n=[{key:"className",value:function(){return"ToolbarSelect"}},{key:"update",value:function(){var e,n,r;od(id(t.prototype),"update",this).call(this),this.state.icon.name="";var o=this.control,i=o.list,a=o.data;if(i){var s=this.state.value||(a&&In(a.currentValue)?a.currentValue:void 0);s||(s=Object.keys(i)[0]);var l=(or(i)&&i[s.toString()]||s).toString();this.state.text=null!==(r=null===(n=(e=this.control).textTemplate)||void 0===n?void 0:n.call(e,this.jodit,l))&&void 0!==r?r:l}}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Qu);function ud(e,t,n){return ud="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=dd(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},ud(e,t,n||e)}
50function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dd(e)}function fd(e,t){return fd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fd(e,t)}function pd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function hd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hd=function(){return!!e})()}cd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":sd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],cd);var md=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=dd(t),function(e,t){return!t||"object"!==pd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,hd()?Reflect.construct(t,n||[],dd(e).constructor):t.apply(e,n))}(this,t,[e])).checkActiveStatus=function(e,t){var r=0,o=0;return Object.keys(e).forEach(function(i){var a=e[i];xn(a)?a(n.j,Cr(t,i).toString())&&(r+=1):-1!==a.indexOf(Cr(t,i).toString())&&(r+=1),o+=1}),o===r},n.prependInvisibleInput(n.container),n}var n;return 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&&fd(e,t)}(t,e),n=[{key:"className",value:function(){return"ToolbarEditorCollection"}},{key:"shouldBeDisabled",value:function(e){var n=ud(dd(t.prototype),"shouldBeDisabled",this).call(this,e);if(void 0!==n)return n;var r=void 0===e.control.mode?Xt:e.control.mode;return!(r===en||r===this.j.getRealMode())}},{key:"shouldBeActive",value:function(e){var n=this,r=ud(dd(t.prototype),"shouldBeActive",this).call(this,e);if(void 0!==r)return r;var o,i=this.j.selection?this.j.s.current():null;if(!i)return!1;if(e.control.tags){var a=e.control.tags;if(o=i,ii.up(o,function(e){if(e&&-1!==a.indexOf(e.nodeName.toLowerCase()))return!0},this.j.editor))return!0}if(e.control.css){var s=e.control.css;if(o=i,ii.up(o,function(e){if(e&&!ii.isText(e)&&!ii.isComment(e))return n.checkActiveStatus(s,e)},this.j.editor))return!0}return!1}},{key:"getTarget",value:function(e){return e.target||this.j.s.current()||null}},{key:"prependInvisibleInput",value:function(e){var t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});ii.appendChildFirst(e,t)}},{key:"showInline",value:function(e){this.jodit.e.fire("showInlineToolbar",e)}},{key:"hide",value:function(){this.jodit.e.fire("hidePopup"),ud(dd(t.prototype),"hide",this).call(this),this.jodit.e.fire("toggleToolbar")}},{key:"show",value:function(){ud(dd(t.prototype),"show",this).call(this),this.jodit.e.fire("toggleToolbar")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Bu);function gd(e,t){var n=Zn(e)?new md(e):new Bu(e);return e.o.textIcons&&n.container.classList.add("jodit_text_icons"),t&&(n.parentElement=t),e.o.toolbarButtonSize&&(n.buttonSize=e.o.toolbarButtonSize),n}function yd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(xn(t.getContent))return new rd(e,t,n);var r=new Qu(e,t,n);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,r}function vd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bd(e,t,n){return bd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},bd(e,t,n||e)}
50function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_d(e)}function wd(e,t){return wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wd(e,t)}function Sd(e){return function(e){if(Array.isArray(e))return vd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vd(e,t):void 0}}(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 Ed(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kd=function(){return!!e})()}md=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":pd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],md);var Td=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ed(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xd=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=_d(t),function(e,t){return!t||"object"!==Ed(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,kd()?Reflect.construct(t,n||[],_d(e).constructor):t.apply(e,n))}(this,t,[e,r])).toolbar=gd(n),n.__defaultToolbarContainer=n.c.div("jodit-toolbar__box"),n.registeredButtons=new Set,n.groupToButtons={},n.isJodit=!1,n.__tooltip=new Sl(n),n.isJodit=r,n.e.on("beforeToolbarBuild",n.beforeToolbarBuild),n}var n;return 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&&wd(e,t)}(t,e),(n=[{key:"toolbarContainer",get:function(){return this.o.fullsize||!In(this.o.toolbar)&&!ii.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&ii.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):Jo(this.o.toolbar,this.o.shadowRoot||this.od)}},{key:"setPanel",value:function(e){this.o.toolbar=e,this.buildToolbar()}},{key:"buildToolbar",value:function(){var e;if(this.o.toolbar){var t=this.o.buttons?Ei(this.o.buttons):[];null===(e=this.toolbar)||void 0===e||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}}},{key:"getRegisteredButtonGroups",value:function(){return this.groupToButtons}},{key:"registerButton",value:function(e){var t;this.registeredButtons.add(e);var n=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[n]||(this.groupToButtons[n]=[]),null!=e.position?this.groupToButtons[n][e.position]=e.name:this.groupToButtons[n].push(e.name),this}},{key:"unregisterButton",value:function(e){var t;this.registeredButtons.delete(e);var n=null!==(t=e.group)&&void 0!==t?t:"other",r=this.groupToButtons[n];if(r){var o=r.indexOf(e.name);-1!==o&&r.splice(o,1),0===r.length&&delete this.groupToButtons[n]}return this}},{key:"beforeToolbarBuild",value:function(e){var t=this;if(Object.keys(this.groupToButtons).length)return e.map(function(e){return Bs(e)&&e.group&&t.groupToButtons[e.group]?{group:e.group,buttons:Sd(e.buttons).concat(Sd(t.groupToButtons[e.group]))}:e})}},{key:"destruct",value:function(){this.isDestructed||(this.setStatus(Cn.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,bd(_d(t.prototype),"destruct",this).call(this))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Iu);function Od(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t,n){return Cd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Pd(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Cd(e,t,n||e)}
50function Pd(e){return Pd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pd(e)}function Ad(e,t){return Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ad(e,t)}function Id(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Rd=function(){return!!e})()}Td([ma(":rebuildToolbar")],xd.prototype,"buildToolbar",null),Td([On],xd.prototype,"beforeToolbarBuild",null);var jd,Md=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Id(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Qr.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},Qr.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}}};var Dd=jd=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Pd(t),function(e,t){return!t||"object"!==Id(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Rd()?Reflect.construct(t,n||[],Pd(e).constructor):t.apply(e,n))}(this,t,[n])).destroyAfterClose=!1,e.moved=!1,e.resizable=!1,e.draggable=!1,e.startX=0,e.startY=0,e.startPoint={x:0,y:0,w:0,h:0},e.lockSelect=function(){e.setMod("moved",!0)},e.unlockSelect=function(){e.setMod("moved",!1)},e.__onResize=function(){e.options&&e.o.resizable&&!e.moved&&e.isOpened&&!e.offsetX&&!e.offsetY&&e.setPosition()},e.isModal=!1,e.isOpened=!1;var r=e;r.options=ho(n,ho(Qr.prototype.dialog,jd.defaultOptions)),ii.safeRemove(r.container);var o=e.getFullElName.bind(e);r.container=e.c.fromHTML('<div class="jodit jodit-dialog '.concat(e.componentName,'">\n\t\t\t\t<div class="').concat(o("overlay"),'"></div>\n\t\t\t\t<div class="').concat(e.getFullElName("panel"),'">\n\t\t\t\t\t<div class="').concat(o("header"),'">\n\t\t\t\t\t\t<div class="').concat(o("header-title"),'"></div>\n\t\t\t\t\t\t<div class="').concat(o("header-toolbar"),'"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="').concat(o("content"),'"></div>\n\t\t\t\t\t<div class="').concat(o("footer"),'"></div>\n\t\t\t\t\t<div class="').concat(o("resizer"),'">').concat(ls.get("resize_handler"),"</div>\n\t\t\t\t</div>\n\t\t\t</div>")),"rtl"===r.options.direction&&(r.container.style.direction="rtl",r.container.setAttribute("dir","rtl")),e.o.zIndex&&(e.container.style.zIndex=e.o.zIndex.toString()),$r(r.container,"role","dialog"),Object.defineProperty(r.container,"component",{value:e}),r.setMod("theme",r.o.theme||"default").setMod("resizable",Boolean(r.o.resizable));var i=r.getElm("panel");Wr(null!=i,"Panel element does not exist");var a=r.getElm("resizer");Wr(null!=a,"Resizer element does not exist");var s=r.getElm("header-title");Wr(null!=s,"header-title element does not exist");var l=r.getElm("content");Wr(null!=l,"Content element does not exist");var c=r.getElm("footer");Wr(null!=c,"Footer element does not exist");var u=r.getElm("header-toolbar");Wr(null!=u,"header-toolbar element does not exist"),e.dialog=i,e.resizer=a,e.dialogbox_header=s,e.dialogbox_content=l,e.dialogbox_footer=c,e.dialogbox_toolbar=u,Cr(r.dialog,{maxWidth:r.options.maxWidth,minHeight:r.options.minHeight,minWidth:r.options.minWidth});var d=r.getElm("header");d&&r.e.on(d,"pointerdown touchstart",r.__onHeaderMouseDown),r.e.on(r.resizer,"mousedown touchstart",r.__onResizerMouseDown);var f=ka.get("fullsize");if(xn(f)&&f(r),e.e.on(r.container,"close_dialog",r.close).on(e.ow,"keydown",e.__onEsc).on(e.ow,"resize",e.__onResize),e.o.closeOnClickOverlay){var p=r.getElm("overlay");Wr(null!=p,"Overlay element does not exist"),e.e.on(p,"click",r.close)}return e}var n;return 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&&Ad(e,t)}(t,e),n=[{key:"className",value:function(){return"Dialog"}},{key:"destination",get:function(){var e=this.o,t=e.popupRoot,n=e.shadowRoot;return t||n||this.od.body}},{key:"setElements",value:function(e,t){var n=this,r=[];Si(t).forEach(function(t){if(An(t)){var o=n.c.div(n.getFullElName("column"));return r.push(o),e.appendChild(o),n.setElements(o,t)}var i;i=In(t)?n.c.fromHTML(t):Kn(t)?t.container:t,r.push(i),i.parentNode!==e&&e.appendChild(i)}
50),Ln(e.childNodes).forEach(function(t){-1===r.indexOf(t)&&e.removeChild(t)})}},{key:"__onMouseUp",value:function(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}},{key:"__onHeaderMouseDown",value:function(e){var t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=Cr(this.dialog,"left"),this.startPoint.y=Cr(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}},{key:"__onMouseMove",value:function(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}},{key:"__onEsc",value:function(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===Ft&&!0!==this.getMod("static")){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}},{key:"__onResizerMouseDown",value:function(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}},{key:"__addGlobalResizeListeners",value:function(){var e=this;e.e.on(e.ow,"pointermove touchmove",e.__onMouseMove).on(e.ow,"pointerup touchend",e.__onMouseUp)}},{key:"__removeGlobalResizeListeners",value:function(){var e=this;e.e.off(e.ow,"mousemove pointermove",e.__onMouseMove).off(e.ow,"mouseup pointerup",e.__onMouseUp)}},{key:"setSize",value:function(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),Cr(this.dialog,{width:e,height:t}),this}},{key:"calcAutoSize",value:function(){return this.setSize("auto","auto"),this.setSize(),this}},{key:"setPosition",value:function(e,t){var n=this.ow.innerWidth,r=this.ow.innerHeight,o=n/2-this.dialog.offsetWidth/2,i=r/2-this.dialog.offsetHeight/2;return o<0&&(o=0),i<0&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-o)>100||Math.abs(t-i)>100),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||i)+"px",this}},{key:"setHeader",value:function(e){return this.setElements(this.dialogbox_header,e),this}},{key:"setContent",value:function(e){return this.setElements(this.dialogbox_content,e),this}},{key:"setFooter",value:function(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",Boolean(e)),this}},{key:"getZIndex",value:function(){return parseInt(Cr(this.container,"zIndex"),10)||0}},{key:"getMaxZIndexDialog",value:function(){var e,t,n=0,r=this;return Wo(".jodit-dialog",this.destination).forEach(function(o){e=o.component,t=parseInt(Cr(o,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>n&&(r=e,n=t)}),r}},{key:"setMaxZIndex",value:function(){if(!this.getMod("static")){var e=20000004,t=0;Wo(".jodit-dialog",this.destination).forEach(function(n){t=parseInt(Cr(n,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)}),this.container.style.zIndex=(e+1).toString()}}},{key:"toggleFullSize",value:function(e){jn(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),Cd(Pd(t.prototype),"toggleFullSize",this).call(this,e)}},{key:"open",value:function(e,t,n,r){if(Aa.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;zn(e)&&(n=e),zn(t)&&(r=t),this.destroyAfterClose=!0===n;var o=zn(e)?void 0:e,i=zn(t)?void 0:t;return void 0!==i&&this.setHeader(i),o&&this.setContent(o),this.setMod("active",!0),this.isOpened=!0,this.setModal(r),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}},{key:"setModal",value:function(e){return this.isModal=Boolean(e),this.setMod("modal",this.isModal),this}},{key:"close",value:function(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;var e=this.e;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),ii.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}},{key:"buildToolbar",value:function(){this.o.buttons&&this.toolbar.build(Ei(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Cn.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),C
50d(Pd(t.prototype),"destruct",this).call(this))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xd);function Nd(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"jodit-dialog_alert";xn(t)&&(n=t,t=void 0);var o,i=(null!=(o=Dd)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](this):this instanceof o)?this:new Dd({closeOnClickOverlay:!0}),a=i.c.div(r),s=al(i,"ok","Ok");return Si(e).forEach(function(e){a.appendChild(ii.isNode(e)?e:i.c.fromHTML(e))}),s.onAction(function(){n&&xn(n)&&!1===n(i)||i.close()}),i.setFooter([s]),i.open(a,t||"&nbsp;",!0,!0),s.focus(),i}function Ld(e,t,n){var r,o=(null!=(r=Dd)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](this):this instanceof r)?this:new Dd({closeOnClickOverlay:!0}),i=o.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),a=o.c.element("label");xn(t)&&(n=t,t=void 0),a.appendChild(o.c.fromHTML(e)),i.appendChild(a);var s=function(e){return function(){n&&!1===n(e)||o.close()}},l=al(o,"cancel","Cancel"),c=al(o,"ok","Yes");return l.onAction(s(!1)),c.onAction(s(!0)),o.e.on(i,"submit",function(){return s(!0)(),!1}),o.setFooter([c,l]),o.open(i,t||"&nbsp;",!0,!0),c.focus(),o}function Fd(e,t,n,r,o){var i,a=(null!=(i=Dd)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](this):this instanceof i)?this:new Dd({closeOnClickOverlay:!0}),s=al(a,"cancel","Cancel"),l=al(a,"ok","Ok"),c=a.c.element("form",{class:"jodit-dialog_prompt"}
50),u=a.c.element("input",{autofocus:!0,class:"jodit-input"}),d=a.c.element("label");xn(t)&&(n=t,t=void 0),r&&$r(u,"placeholder",r),d.appendChild(a.c.text(e)),c.appendChild(d),c.appendChild(u),s.onAction(a.close);var f=function(){n&&xn(n)&&!1===n(u.value)||a.close()};return l.onAction(f),a.e.on(c,"submit",function(){return f(),!1}),a.setFooter([l,s]),a.open(c,t||"&nbsp;",!0,!0),u.focus(),void 0!==o&&o.length&&(u.value=o,u.select()),a}function Bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Dd.defaultOptions=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Od(e,t,n[t])})}return e}({},Iu.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0}),Md([On],Dd.prototype,"__onMouseUp",null),Md([On],Dd.prototype,"__onHeaderMouseDown",null),Md([On],Dd.prototype,"__onMouseMove",null),Md([On],Dd.prototype,"__onEsc",null),Md([On],Dd.prototype,"__onResizerMouseDown",null),Md([On],Dd.prototype,"close",null),Md([Ga("ready")],Dd.prototype,"buildToolbar",null),Dd=jd=Md([pi],Dd);var zd=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t;return t=[{key:"dlg",value:function(e){var t=Pa(this.o,this.container,this.od.body),n=new Dd(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Bd(e,t,n[t])})}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return io(this,n.container),n.parent=this,n.bindDestruct(this)}},{key:"confirm",value:function(e,t,n){return e=Ud(e,this),t=Ud(t,this),Ld.call(this.dlg({closeOnClickOverlay:!0}),e,t,n)}},{key:"prompt",value:function(e,t,n,r,o){return e=Ud(e,this),t=Ud(t,this),r=Ud(r,this),Fd.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,r,o)}},{key:"alert",value:function(e,t,n,r){return e=Ud(e,this),t=Ud(t,this),Nd.call(this.dlg({closeOnClickOverlay:!0}),e,t,n,r)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Ud(e,t){return In(e)&&!Gn(e)&&(e=t.i18n(e)),e}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hd(e)}
50function Vd(e,t){return Vd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vd(e,t)}function qd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gd=function(){return!!e})()}var Wd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Hd(n=t),function(e,t){return!t||"object"!==qd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Gd()?Reflect.construct(n,r||[],Hd(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Vd(e,t)}(t,e),(n=[{key:"className",value:function(){return"ContextMenu"}},{key:"show",value:function(e,t,n){var r=this,o=this;o.clear(),An(n)&&(n.forEach(function(e){if(e){var t=al(r.jodit,e.icon||"empty",e.title);r.jodit&&t.setParentView(r.jodit),t.setMod("context","menu"),t.onAction(function(t){var n;return null===(n=e.exec)||void 0===n||n.call(o,t),o.clear(),o.close(),!1}),r.append(t)}}),this.open(function(){return{left:e,top:t,width:0,height:0}},!0))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Fc);function $d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then(function(t){t&&(e.state.elements=t,e.state.activeElements=[])}).catch(e.status).finally(function(){return e.files.setMod("loading",!1)})}function Jd(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Qd(e){return Xd.apply(this,arguments)}function Xd(){var e;return e=function(e){var t,n;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(r){return e.tree.setMod("active",!0),ii.detach(e.tree.container),t=Kd(e),e.o.showFoldersPanel?(e.tree.setMod("loading",!0),n=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then(function(t){e.state.sources=t}).catch(e.status).finally(function(){return e.tree.setMod("loading",!1)}),[2,Promise.all([n,t])]):(e.tree.setMod("active",!1),[2,t])})},Xd=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Jd(i,r,o,a,s,"next",e)}function s(e){Jd(i,r,o,a,s,"throw",e)}a(void 0)})},Xd.apply(this,arguments)}Wd=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":qd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi],Wd),Qr.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:function(e,t){return t=t.toLowerCase(),In(e)?-1!==e.toLowerCase().indexOf(t):In(e.name)?-1!==e.name.toLowerCase().indexOf(t):!In(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort:function(e,t,n){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return $d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?$d(e,2):void 0}}
50(e)||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.")}()}(n.toLowerCase().split("-")),o=r[0],i="asc"===r[1],a=function(e,t){return e<t?i?-1:1:e>t?i?1:-1:0};if(In(e))return a(e.toLowerCase(),t.toLowerCase());if(void 0===e[o]||"name"===o)return In(e.name)?a(e.name.toLowerCase(),t.name.toLowerCase()):In(e.file)?a(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(o){case"changed":var s=new Date(e.changed).getTime(),l=new Date(t.changed).getTime();return i?s-l:l-s;case"size":var c=zo(e.size),u=zo(t.size);return i?c-u:u-c}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&An(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate:function(e,t,n){var r=this.options,o=this.files.getFullElName("item"),i=r.showFileName,a=r.showFileSize&&e.size,s=r.showFileChangeTime&&e.time,l="";void 0!==e.file&&(l=e.file);var c='<div class="'.concat(o,'-info">').concat(i?'<span class="'.concat(o,'-info-filename">').concat(l,"</span>"):"").concat(a?'<span class="'.concat(o,'-info-filesize">').concat(e.size,"</span>"):"").concat(s?'<span class="'.concat(o,'-info-filechanged">').concat(s,"</span>"):"","</div>");return'<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="'.concat(e.isImage?0:1,'"\n\t\t\tdraggable="true"\n\t\t\tclass="').concat(o,'"\n\t\t\thref="').concat(e.fileURL,'"\n\t\t\tdata-source="').concat(n,'"\n\t\t\tdata-path="').concat(e.path,'"\n\t\t\tdata-name="').concat(l,'"\n\t\t\ttitle="').concat(l,'"\n\t\t\tdata-url="').concat(e.fileURL,'">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="').concat(e.isImage?0:1,'"\n\t\t\t\t\tdata-src="').concat(e.fileURL,'"\n\t\t\t\t\tsrc="').concat(e.imageURL,'"\n\t\t\t\t\talt="').concat(l,'"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t').concat(i||a||s?c:"","\n\t\t\t</a>")},ajax:function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Yd(e,t,n[t])})}return e}({},Qr.prototype.defaultAjaxOptions),{url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:function(e){return e},process:function(e){return e}}),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}}
50,fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},Qr.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:function(e){return!e.dataProvider.canI("FileUpload")},getContent:function(e,t){var n=new xc(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",n.container),n.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:function(e){return!e.state.activeElements.length||!e.dataProvider.canI("FileRemove")},exec:function(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:function(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:function(e){return!e.state.activeElements.length},exec:function(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:function(e){var t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:function(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:function(e){return"tiles"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:function(e){return"list"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(e,t){var n=t.container.querySelector(".jodit-input");if(n)return n;var r=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return r.value=e.state.filterWord,e.e.on(r,"keydown mousedown",e.async.debounce(function(){e.e.fire("filter.filebrowser",r.value)},e.defaultTimeout)),r}},sort:{isInput:!0,getContent:function(e){var t=e.c.fromHTML('<select class="jodit-input jodit-select">'+'<option value="changed-asc">'.concat(e.i18n("Sort by changed")," (⬆)</option>")+'<option value="changed-desc">'.concat(e.i18n("Sort by changed")," (⬇)</option>")+'<option value="name-asc">'.concat(e.i18n("Sort by name")," (⬆)</option>")+'<option value="name-desc">'.concat(e.i18n("Sort by name")," (⬇)</option>")+'<option value="size-asc">'.concat(e.i18n("Sort by size")," (⬆)</option>")+'<option value="size-desc">'.concat(e.i18n("Sort by size")," (⬇)</option>")+"</select>");return t.value=e.state.sortBy,e.e.on("sort.filebrowser",function(e){t.value!==e&&(t.value=e)}).on(t,"change",function(){e.e.fire("sort.filebrowser",t.value)}),t}}};var Zd=new WeakMap,ef=function(e){var t=Zd.get(e);return t||(t={},Zd.set(e,t)),t};function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nf=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,Object.keys(t).forEach(function(e){n[e]=t[e]})}var t,n,r;return t=e,n=[{key:"path",get:function(){return Fi(this.data.source.path?this.data.source.path+"/":"/")}},{key:"imageURL",get:function(){var e=this.time||(new Date).getTime().toString(),t=this.data,n=t.thumbIsAbsolute,r=t.source,o=t.thumb,i=t.file,a=o||i;return n&&a?a:Ui(r.baseurl,r.path,a||"")+"?_tmst="+encodeURIComponent(e)}},{key:"fileURL",get:function(){var e=this.data.name,t=this.data,n=t.file,r=t.fileIsAbsolute,o=t.source;return void 0!==n&&(e=n),r&&e?e:Ui(o.baseurl,o.path,e||"")}},{key:"time",get:function(){var e=this.data.changed;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}},{key:"uniqueHashKey",get:function(){var e=this.data;return[e.sourceName,e.name,e.file,this.time,e.thumb].join("_").toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}},{key:"toJSON",value:function(){return this.data}}],r=[{key:"create",value:function(t){return n=t,(null!=(r=e)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)?t:new e(t);var n,r}}],n&&tf(t.prototype,n),r&&tf(t,r),e}();function rf(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function of(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){rf(i,r,o,a,s,"next",e)}function s(e){rf(i,r,o,a,s,"throw",e)}a(void 0)})}}function af(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sf(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var lf="default",cf=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]),uf=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.options=n,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=function(e){}}var t;return t=[{key:"o",get:function(){return this.options}},{key:"get",value:function(e){var t=this,n=this.__ajaxInstances;if(n.has(e)){var r=n.get(e);null==r||r.abort(),n.delete(e)}var o=ho(void 0!==this.options[e]?this.options[e]:{},ho({onProgress:this.progressHandler},this.o.ajax));o.prepareData&&(o.data=o.prepareData.call(this,o.data));var i=new is(o);n.set(e,i);var a=i.send();return a.finally(function(){i.destruct(),n.delete(e),t.progressHandler(100)}).catch(function(){return null}),a.then(function(e){return e.json()}).then(function(e){if(e&&!t.isSuccess(e))throw new Error(t.getMessage(e));return e})}},{key:"onProgress",value:function(e){this.progressHandler=e}},{key:"permissions",value:function(e,t){var n=this;return of(function(){return sf(this,function(r){return n.o.permissions?(n.o.permissions.data.path=e,n.o.permissions.data.source=t,n.o.permissions.url?[2,n.get("permissions").then(function(e){if(n.parent.isInDestruct)throw wo();var t=n.o.permissions.process;if(t||(t=n.o.ajax.process),t){var r=t.call(self,e);r.data.permissions&&(n.parent.events.fire(n,"changePermissions",n.__currentPermissions,r.data.permissions),n.__currentPermissions=r.data.permissions)}return n.__currentPermissions})]:[2,null]):[2,null]})})()}},{key:"canI",value:function(e){var t="allow"+e;if(!ft&&!cf.has(t))throw Do("Wrong action "+e);var n=this.o.permissionsPresets[t];return void 0!==n?n:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}},{key:"__items",value:function(e,t,n,r){var o=this,i=this.options;return i.items?(i.items.data.path=e,i.items.data.source=t,i.items.data.mods=n,this.get("items").then(function(e){var t=o.o.items.process;
50return t||(t=o.o.ajax.process),t&&(e=t.call(self,e)),r(e)})):Promise.reject(Error("Set Items api options"))}},{key:"items",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,r,function(e){return n.generateItemsList(e.data.sources,r)})}},{key:"itemsEx",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,r,function(e){return{items:n.generateItemsList(e.data.sources,r),loadedTotal:(t=e.data.sources,t.reduce(function(e,t){return e+t.files.length},0))};var t})}},{key:"generateItemsList",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return e.forEach(function(e){if(e.files&&e.files.length){var o=t.o.sort;xn(o)&&n.sortBy&&e.files.sort(function(e,t){return o(e,t,n.sortBy)}),e.files.forEach(function(o){(function(e){var r;return!(null===(r=n.filterWord)||void 0===r?void 0:r.length)||void 0===t.o.filter||t.o.filter(e,n.filterWord)})(o)&&function(e){return"folder"===e.type||!n.onlyImages||void 0===e.isImage||e.isImage}(o)&&r.push(nf.create(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){af(e,t,n[t])})}return e}({},o),{sourceName:e.name,source:e})))})}}),r}},{key:"tree",value:function(e,t){var n=this;return of(function(){return sf(this,function(r){switch(r.label){case 0:return e=Bi(e),n.o.folder?[4,n.permissions(e,t)]:[2,Promise.reject(Error("Set Folder Api options"))];case 1:return r.sent(),n.o.folder.data.path=e,n.o.folder.data.source=t,[2,n.get("folder").then(function(e){var t=n.o.folder.process;return t||(t=n.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources})]}})})()}},{key:"getPathByUrl",value:function(e){var t=this;return ei("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then(function(e){if(t.isSuccess(e))return e.data;throw Do(t.getMessage(e))})}},{key:"createFolder",value:function(e,t,n){var r=this,o=this.o.create;if(!o)throw Do("Set Create api options");return o.data.source=n,o.data.path=t,o.data.name=e,this.get("create").then(function(e){if(r.isSuccess(e))return!0;throw Do(r.getMessage(e))})}},{key:"move",value:function(e,t,n,r){var o=this,i=r?"fileMove":"folderMove",a=this.options[i];if(!a)throw Do("Set Move api options");return a.data.from=e,a.data.path=t,a.data.source=n,this.get(i).then(function(e){if(o.isSuccess(e))return!0;throw Do(o.getMessage(e))})}},{key:"remove",value:function(e,t,n,r){var o=this,i=this.o[e];if(!i)throw Do('Set "'.concat(e,'" api options'));return i.data.path=t,i.data.name=n,i.data.source=r,this.get(e).then(function(e){return i.process&&(e=i.process.call(o,e)),o.getMessage(e)})}},{key:"fileRemove",value:function(e,t,n){return this.remove("fileRemove",e,t,n)}},{key:"folderRemove",value:function(e,t,n){return this.remove("folderRemove",e,t,n)}},{key:"rename",value:function(e,t,n,r,o){var i=this,a=this.o[e];if(!a)throw Do('Set "'.concat(e,'" api options'));return a.data.path=t,a.data.name=n,a.data.newname=r,a.data.source=o,this.get(e).then(function(e){return a.process&&(e=a.process.call(self,e)),i.getMessage(e)})}},{key:"folderRename",value:function(e,t,n,r){return this.rename("folderRename",e,t,n,r)}},{key:"fileRename",value:function(e,t,n,r){return this.rename("fileRename",e,t,n,r)}},{key:"changeImage",value:function(e,t,n,r,o,i){this.o[e]||(this.o[e]={data:{}});var a=this.o[e];return void 0===a.data&&(a.data={action:e}),a.data.newname=o||r,i&&(a.data.box=i),a.data.path=t,a.data.name=r,a.data.source=n,this.get(e).then(function(){return!0})}},{key:"crop",value:function(e,t,n,r,o){return this.changeImage("crop",e,t,n,r,o)}},{key:"resize",value:function(e,t,n,r,o){return this.changeImage("resize",e,t,n,r,o)}},{key:"getMessage",value:function(e){return this.options.getMessage(e)}},{key:"isSuccess",value:function(e){return this.options.isSuccess(e)}}
50,{key:"destruct",value:function(){this.__ajaxInstances.forEach(function(e){return e.destruct()}),this.__ajaxInstances.clear()}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function df(e,t,n){return e.dataProvider.fileRemove(e.state.currentPath,t,n).then(function(n){e.status(n||e.i18n('File "%s" was deleted',t),!0)}).catch(e.status)}Qr.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},ls.set("crop",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> ').set("resize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> ');var ff="jodit-image-editor",pf=ls.get.bind(ls),hf=function(e){return e?arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jodti-image-editor_active":""};function mf(e,t,n){return mf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gf(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},mf(e,t,n||e)}function gf(e){return gf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gf(e)}function yf(e,t){return yf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yf(e,t)}function vf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bf=function(){return!!e})()}var _f,wf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":vf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Sf="jodit-image-editor",Ef="resize",kf="crop",Tf=_f=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=gf(t),function(e,t){return!t||"object"!==vf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,bf()?Reflect.construct(t,n||[],gf(e).constructor):t.apply(e,n))}(this,t,[e])).resizeUseRatio=!0,n.cropUseRatio=!0,n.clicked=!1,n.start_x=0,n.start_y=0,n.top_x=0,n.top_y=0,n.width=0,n.height=0,n.activeTab=Ef,n.naturalWidth=0,n.naturalHeight=0,n.ratio=0,n.new_h=0,n.new_w=0,n.diff_x=0,n.diff_y=0,n.cropBox={x:0,y:0,w:0,h:0},n.resizeBox={w:0,h:0},n.calcCropBox=function(){var e=n.crop_box.parentNode,t=.8*e.offsetWidth,r=.8*e.offsetHeight,o=t,i=r,a=n.naturalWidth,s=n.naturalHeight;t>a&&r>s?(o=a,i=s):n.ratio>t/r?(o=t,i=s*(t/a)):(o=a*(r/s),i=r),Cr(n.crop_box,{width:o,height:i})},n.showCrop=function(){if(n.cropImage){n.calcCropBox();var e=n.cropImage.offsetWidth||n.image.offsetWidth||n.image.naturalWi
50dth;n.new_w=_f.calcValueByPercent(e,n.o.cropDefaultWidth);var t=n.cropImage.offsetHeight||n.image.offsetHeight||n.image.naturalHeight;n.cropUseRatio?n.new_h=n.new_w/n.ratio:n.new_h=_f.calcValueByPercent(t,n.o.cropDefaultHeight),Cr(n.cropHandler,{backgroundImage:"url("+$r(n.cropImage,"src")+")",width:n.new_w,height:n.new_h,left:e/2-n.new_w/2,top:t/2-n.new_h/2}),n.j.e.fire(n.cropHandler,"updatesize")}},n.updateCropBox=function(){if(n.cropImage){var e=n.cropImage.offsetWidth/n.naturalWidth,t=n.cropImage.offsetHeight/n.naturalHeight;n.cropBox.x=Cr(n.cropHandler,"left")/e,n.cropBox.y=Cr(n.cropHandler,"top")/t,n.cropBox.w=n.cropHandler.offsetWidth/e,n.cropBox.h=n.cropHandler.offsetHeight/t,n.sizes.textContent=n.cropBox.w.toFixed(0)+"x"+n.cropBox.h.toFixed(0)}},n.updateResizeBox=function(){n.resizeBox.w=n.image.offsetWidth||n.naturalWidth,n.resizeBox.h=n.image.offsetHeight||n.naturalHeight},n.setHandlers=function(){var e=n,t=Yo(n.editor),r=t.widthInput,o=t.heightInput;e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown.".concat(Sf),n.onResizeHandleMouseDown).on(n.j.ow,"resize.".concat(Sf),function(){n.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),n.j.e.fire(e.cropHandler,"updatesize")}),e.j.e.on(Ln(n.editor.querySelectorAll(".".concat(Sf,"__slider-title"))),"click",n.onTitleModeClick).on([r,o],"input",n.onChangeSizeInput);var i=Yo(n.editor),a=i.keepAspectRatioResize,s=i.keepAspectRatioCrop;a&&a.addEventListener("change",function(){n.resizeUseRatio=a.checked}),s&&s.addEventListener("change",function(){n.cropUseRatio=s.checked}),e.j.e.on(e.resizeHandler,"updatesize",function(){Cr(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),n.updateResizeBox()}).on(e.cropHandler,"updatesize",function(){if(e.cropImage){var t=Cr(e.cropHandler,"left"),n=Cr(e.cropHandler,"top"),r=e.cropHandler.offsetWidth,o=e.cropHandler.offsetHeight;t<0&&(t=0),n<0&&(n=0),t+r>e.cropImage.offsetWidth&&(r=e.cropImage.offsetWidth-t,e.cropUseRatio&&(o=r/e.ratio)),n+o>e.cropImage.offsetHeight&&(o=e.cropImage.offsetHeight-n,e.cropUseRatio&&(r=o*e.ratio)),Cr(e.cropHandler,{width:r,height:o,left:t,top:n,backgroundPosition:-t-1+"px "+(-n-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}}),Object.values(e.buttons).forEach(function(t){t.onAction(function(){var n={action:e.activeTab,box:e.activeTab===Ef?e.resizeBox:e.cropBox};switch(t){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",function(t){if(!ur(t))return e.j.alert("The name should not be empty"),!1;e.onSave(t,n,e.hide,function(t){e.j.alert(t.message)})});break;case e.buttons.save:e.onSave(void 0,n,e.hide,function(t){e.j.alert(t.message)});break;case e.buttons.reset:e.activeTab===Ef?(Cr(e.image,{width:null,height:null}),r.value=e.naturalWidth.toString(),o.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}})})},n.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:Qr.defaultOptions.imageeditor;var r=n.options;n.resizeUseRatio=r.resizeUseRatio,n.cropUseRatio=r.cropUseRatio,n.buttons={reset:al(n.j,"update","Reset"),save:al(n.j,"save","Save"),saveas:al(n.j,"save","Save as ...")},n.activeTab=r.resize?Ef:kf,n.editor=function(e,t){var n=e.i18n.bind(e),r=function(e,t){return'<div class="jodit-form__group">\n\t\t\t<label class="jodit-switcher-wrapper">\n\t\t\t\t<span class=\'jodit-switcher\'>\n\t\t\t\t\t<input '.concat(hf(!(arguments.length>2&&void 0!==arguments[2])||arguments[2],"checked"),' data-ref="').concat(t,'" type="checkbox"/>\n\t\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t\t</span>\n\t\t\t\t<span>').concat(n(e),"</span>\n\t\t\t</label>\n\t</div>")};return e.create.fromHTML('<form class="'.concat(ff,' jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div class="'.concat(ff,"__area ").concat(ff,"__area_resize ").concat(ff,'_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="').concat(ff,'__box"></div>\n\t\t\t\t\t\t\t<div class="').concat(ff,'__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"","\n\t\t\t").concat(t.crop?'<div class="'.concat(ff,"__area ").concat(ff,"__area_crop ").concat(hf(!t.resize),'">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="').concat(ff,'__box">\n\t\t\t\t\t\t\t\t<div class="').concat(ff,'__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="').concat(ff,'__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"",'\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div data-area="resize" class="'.concat(ff,"__slider ").concat(ff,'_active">\n\t\t\t\t\t\t\t<div class="').concat(ff,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(pf("resize"),"\n\t\t\t\t\t\t\t\t").concat(n("Resize"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(ff,'__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(n("Width"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(n("Height"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t').concat(r("Keep Aspect Ratio","keepAspectRatioResize"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t").concat(t.crop?'<div data-area="crop" class="'.concat(ff,"__slider ").concat(hf(!t.resize),'\'">\n\t\t\t\t\t\t\t<div class="').concat(ff,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(pf("crop"),"\n\t\t\t\t\t\t\t\t").concat(n("Crop"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(ff,'__slider-content">\n\t\t\t\t\t\t\t\t').concat(r("Keep Aspect Ratio","keepAspectRatioCrop"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t</div>\n\t\t</div>\n\t</form>"))}(n.j,n.options);var o=Yo(n.editor),i=o.resizeBox,a=o.cropBox;return n.resize_box=i,n.crop_box=a,n.sizes=n.editor.querySelector(".".concat(Sf,"__area.").concat(Sf,"__area_crop .jodit-image-editor__sizes")),n.resizeHandler=n.editor.querySelector(".".concat(Sf,"__resizer")),n.cropHandler=n.editor.querySelector(".".concat(Sf,"__croper")),n._dialog=n.j.dlg({buttons:["fullsize","dialog.close"]}),n._dialog.setContent(n.editor),n._dialog.setSize(n.o.width,n.o.height),n._dialog.setHeader([n.buttons.reset,n.buttons.save,n.buttons.saveas]),n.setHandlers(),n}var n;return 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&&yf(e,t)}(t,e),n=[{key:"className",value:function(){return"ImageEditor"}},{key:"o",get:function(){return this.options}},{key:"hide",value:function(){this._dialog.close()}},{key:"open",value:function(e,t){var n=this;return this.j.async.promise(function(r){var o=(new Date).getTime();
50n.image=n.j.c.element("img"),Wo("img,.jodit-icon_loader",n.resize_box).forEach(ii.safeRemove),Wo("img,.jodit-icon_loader",n.crop_box).forEach(ii.safeRemove),Cr(n.cropHandler,"background","transparent"),n.onSave=t,n.resize_box.appendChild(n.j.c.element("i",{class:"jodit-icon_loader"})),n.crop_box.appendChild(n.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+o:e+="?_tst="+o,n.image.setAttribute("src",e),n._dialog.open();var i=Yo(n.editor),a=i.widthInput,s=i.heightInput,l=function(){n.isDestructed||(n.image.removeEventListener("load",l),n.naturalWidth=n.image.naturalWidth,n.naturalHeight=n.image.naturalHeight,a.value=n.naturalWidth.toString(),s.value=n.naturalHeight.toString(),n.ratio=n.naturalWidth/n.naturalHeight,n.resize_box.appendChild(n.image),n.cropImage=n.image.cloneNode(!0),n.crop_box.appendChild(n.cropImage),ii.safeRemove.apply(null,Wo(".jodit-icon_loader",n.editor)),n.activeTab===kf&&n.showCrop(),n.j.e.fire(n.resizeHandler,"updatesize"),n.j.e.fire(n.cropHandler,"updatesize"),n._dialog.setPosition(),n.j.e.fire("afterImageEditor"),r(n._dialog))};n.image.addEventListener("load",l),n.image.complete&&l()})}},{key:"onTitleModeClick",value:function(e){var t=this,n=e.target,r=null==n?void 0:n.parentElement;if(r){Wo(".".concat(Sf,"__slider,.").concat(Sf,"__area"),t.editor).forEach(function(e){return e.classList.remove("".concat(Sf,"_active"))}),r.classList.add("".concat(Sf,"_active")),this.activeTab=$r(r,"-area")||Ef;var o=t.editor.querySelector(".".concat(Sf,"__area.").concat(Sf,"__area_")+t.activeTab);o&&o.classList.add("".concat(Sf,"_active")),t.activeTab===kf&&t.showCrop()}}},{key:"onChangeSizeInput",value:function(e){var t,n=this,r=e.target,o=Yo(this.editor),i=o.widthInput,a=o.heightInput,s="widthInput"===$r(r,"data-ref"),l=parseInt(r.value,10),c=s?n.o.min_width:n.o.min_height,u=s?n.o.min_height:n.o.min_width;l>c&&(Cr(n.image,s?"width":"height",l),n.resizeUseRatio&&(t=s?Math.round(l/n.ratio):Math.round(l*n.ratio))>u&&(Cr(n.image,s?"height":"width",t),s?a.value=t.toString():i.value=t.toString())),this.j.e.fire(n.resizeHandler,"updatesize")}},{key:"onResizeHandleMouseDown",value:function(e){var t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===kf?(t.top_x=Cr(t.cropHandler,"left"),t.top_y=Cr(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}},{key:"onGlobalMouseUp",value:function(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}},{key:"onGlobalMouseMove",value:function(e){var t=this;if(t.clicked){var n=Yo(this.editor),r=n.widthInput,o=n.heightInput;t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===Ef&&t.resizeUseRatio||t.activeTab===kf&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===Ef?(t.new_w>t.o.resizeMinWidth&&(Cr(t.image,"width",t.new_w+"px"),r.value=t.new_w.toString()),t.new_h>t.o.resizeMinHeight&&(Cr(t.image,"height",t.new_h+"px"),o.value=t.new_h.toString()),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),Cr(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),Cr(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),Cr(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}}},{key:"destruct",value:function(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),ii.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".".concat(Sf)).off(".".concat(Sf)),mf(gf(t.prototype),"destruct",this).call(this))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ba);function xf(e,t,n,r,o,i){var a=this;return this.getInstance("ImageEditor",this.o).open(e,function(e,s,l,c){return oo("resize"===s.action?a.dataProvider.resize:a.dataProvider.crop,n,r,t,e,s.box).then(function(e){e&&(l(),o&&o())}).catch(function(e){c(e),i&&i(e)})})}function Of(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Cf(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Of(i,r,o,a,s,"next",e)}function s(e){Of(i,r,o,a,s,"throw",e)}a(void 0)})}}Tf.calcValueByPercent=function(e,t){var n,r=t.toString(),o=parseFloat(e.toString());return(n=/^[-+]?[0-9]+(px)?$/.exec(r))?parseInt(r,10):(n=/^([-+]?[0-9.]+)%$/.exec(r))?Math.round(o*(parseFloat(n[1])/100)):o||0},wf([On],Tf.prototype,"hide",null),wf([On],Tf.prototype,"open",null),wf([On],Tf.prototype,"onTitleModeClick",null),wf([za(),On],Tf.prototype,"onChangeSizeInput",null),wf([On],Tf.prototype,"onResizeHandleMouseDown",null),wf([On],Tf.prototype,"onGlobalMouseUp",null),wf([Ua(10)],Tf.prototype,"onGlobalMouseMove",null),Tf=_f=wf([pi],Tf);var Pf="jodit-file-browser-preview",Af=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return'<div class="'.concat(Pf,"__navigation ").concat(Pf,"__navigation_arrow_").concat(e,'">')+""+ls.get("angle-"+t)+"</a>"};function If(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rf=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a";return ii.closest(e,function(e){return ii.isTag(e,n)},t)},jf=function(e,t){return t[e.dataset.key||""].item};function Mf(){var e=this,t=!1,n=ef(this),r=this;r.e.on(r.tree.container,"dragstart",function(e){var n=Rf(e.target,r.container);n&&r.o.moveFolder&&(t=n)}).on(r.tree.container,"drop",function(n){if((r.o.moveFile||r.o.moveFolder)&&t){var o=$r(t,"-path")||"";if(!r.o.moveFolder&&t.classList.contains(e.tree.getFullElName("item")))return!1;if(t.classList.contains(e.files.getFullElName("item"))&&(o+=$r(t,"-name"),!r.o.moveFile))return!1;var i=Rf(n.target,r.container);if(!i)return;r.dataProvider.move(o,$r(i,"-path")||"",$r(i,"-source")||"",t.classList.contains(e.files.getFullElName("item"))).then(function(){return Qd(e)}).catch(r.status),t=!1}}).on(r.files.container,"contextmenu",function(e){if(!e.o.contextMenu)return function(){};var t=new Wd(e);return function(n){var r=Rf(n.target,e.container);if(r){var o=r,i=e.options,a=function(e){return $r(o,e)||""};return e.async.setTimeout(function(){var s=jf(r,ef(e));s&&(e.state.activeElements=[s],t.show(n.clientX,n.clientY,[!("1"===a("data-is-file")||!i.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){return xf.call(e,a("href"),a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:function(){e.e.fire("fileRename.filebrowser",a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:Cf(function(){var t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,df(e,a("data-name"),a("data-source"))];case 1:return n.sent(),[3,3];case 2:return t=n.sent(),[2,e.status(t)];case 3:return e.state.activeElements=[],[2,Qd(e).catch(e.status)]}})})},!!i.preview&&{icon:"eye",title:"Preview",exec:function(){var t=e.dlg({buttons:["fullsize","dialog.close"]}),n=e.c.div(Pf,'<div class="jodit-icon_loader"></div>'),r=e.c.div(Pf+"__box"),s=e.c.fromHTML(Af()),l=e.c.fromHTML(Af("prev","left")),c=function(a){var c=e.c.element
50("img");c.setAttribute("src",a);var u=function(){var a;e.isInDestruct||(e.e.off(c,"load"),ii.detach(n),i.showPreviewNavigation&&(ii.prevWithClass(o,e.files.getFullElName("item"))&&n.appendChild(l),ii.nextWithClass(o,e.files.getFullElName("item"))&&n.appendChild(s)),n.appendChild(r),r.appendChild(c),t.setPosition(),null===(a=null==e?void 0:e.events)||void 0===a||a.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",u),c.complete&&u()};e.e.on([s,l],"click",function(){if(!(o=this===s?ii.nextWithClass(o,e.files.getFullElName("item")):ii.prevWithClass(o,e.files.getFullElName("item"))))throw Do("Need element");ii.detach(n),ii.detach(r),n.innerHTML='<div class="jodit-icon_loader"></div>',c(a("href"))}),e.e.on("beforeDestruct",function(){t.destruct()}),t.container.classList.add(Pf+"__dialog"),t.setContent(n),t.setPosition(),t.open(),c(a("href")),e.events.on("beforeDestruct",function(){t.destruct()}).fire("previewOpened")}},{icon:"upload",title:"Download",exec:function(){var t=a("href");t&&e.ow.open(t)}}]))},e.defaultTimeout),e.e.on("beforeClose",function(){t.close()}).on("beforeDestruct",function(){return t.destruct()}),n.stopPropagation(),n.preventDefault(),!1}}}(r)).on(r.files.container,"click",function(t){bo(t)||(e.state.activeElements=[])}).on(r.files.container,"click",function(e){var t=Rf(e.target,r.container);if(t){var o=jf(t,n);if(o)return bo(e)?r.state.activeElements=function(e){return function(e){if(Array.isArray(e))return If(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return If(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(e,t):void 0}}(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.")}()}(r.state.activeElements).concat([o]):r.state.activeElements=[o],e.stopPropagation(),!1}}).on(r.files.container,"dragstart",function(e){if(r.o.moveFile){var n=Rf(e.target,r.container);if(!n)return;t=n}}).on(r.container,"drop",function(e){return e.preventDefault()})}function Df(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nf(){var e=this,t=this.state,n=this.dataProvider,r=this;r.e.on("view.filebrowser",function(e){e!==t.view&&(t.view=e)}).on("sort.filebrowser",function(e){e!==t.sortBy&&(t.sortBy=e,Kd(r))}).on("filter.filebrowser",function(e){e!==t.filterWord&&(t.filterWord=e,Kd(r))}).on("openFolder.filebrowser",function(e){var t;t=".."===e.name?e.path.split("/").filter(function(e){return e.length}).slice(0,-1).join("/"):Fi(e.path,e.name),r.state.currentPath=t,r.state.currentSource="."===e.name?lf:e.source}).on("removeFolder.filebrowser",function(e){r.confirm("Are you sure?","Delete",function(t){t&&n.folderRemove(e.path,e.name,e.source).then(function(e){return r.status(e,!0),Qd(r)}).catch(r.status)})}).on("renameFolder.filebrowser",function(e){r.prompt("Enter new name","Rename",function(t){if(!lr(t))return r.status(r.i18n("Enter new name")),!1;n.folderRename(e.path,e.name,t,e.source).then(function(e){return r.state.activeElements=[],r.status(e,!0),Qd(r)}).catch(r.status)},"type name",e.name)}).on("addFolder.filebrowser",function(e){r.prompt("Enter Directory name","Create directory",function(t){n.createFolder(t,e.path,e.source).then(function(){return Qd(r)}).catch(r.status)},"type name")}).on("fileRemove.filebrowser",function(){r.state.activeElements.length&&r.confirm("Are you sure?","",function(e){if(e){var t=[];r.state.activeElements.forEach(function(e){t.push(df(r,e.file||e.name||"",e.sourceName))}),r.state.activeElements=[],Promise.all(t).then(function(){return Qd(r).catch(r.status)},r.status)}})}).on("edit.filebrowser",function(){if(1===r.state.activeElements.length){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Df(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Df(e,1):void 0}}
50(e)||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.")}()}(e.state.activeElements)[0];xf.call(r,t.fileURL,t.file||"",t.path,t.sourceName)}}).on("fileRename.filebrowser",function(e,t,o){1===r.state.activeElements.length&&r.prompt("Enter new name","Rename",function(i){if(!lr(i))return r.status(r.i18n("Enter new name")),!1;n.fileRename(t,e,i,o).then(function(e){r.state.activeElements=[],r.status(e,!0),Kd(r)}).catch(r.status)},"type name",e)}).on("update.filebrowser",function(){Qd(e).then(e.status,e.status)})}function Lf(){var e=this,t=ef(this),n=this,r=n.state,o=n.files,i=n.create,a=n.options;r.on(["change.currentPath","change.currentSource"],this.async.debounce(function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeLastOpenedFolder&&e.storage.set("currentPath",e.state.currentPath).set("currentSource",e.state.currentSource),Qd(e).catch(e.status)},this.defaultTimeout)).on("beforeChange.activeElements",function(){r.activeElements.forEach(function(e){var n=e.uniqueHashKey,r=t[n].elm;r&&r.classList.remove(o.getFullElName("item","active",!0))})}).on("change.activeElements",function(){e.e.fire("changeSelection"),r.activeElements.forEach(function(e){var n=e.uniqueHashKey,r=t[n].elm;r&&r.classList.add(o.getFullElName("item","active",!0))})}).on("change.view",function(){o.setMod("view",r.view),e.o.saveStateInStorage&&e.o.saveStateInStorage.storeView&&e.storage.set("view",r.view)}).on("change.sortBy",function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeSortBy&&e.storage.set("sortBy",r.sortBy)}).on("change.elements",this.async.debounce(function(){ii.detach(o.container),r.elements.length?r.elements.forEach(function(n){e.files.container.appendChild(function(n){var r=n.uniqueHashKey;if(t[r])return t[r].elm;var o=i.fromHTML(a.getThumbTemplate.call(e,n,n.source,n.sourceName.toString()));return o.dataset.key=r,t[r]={item:n,elm:o},t[r].elm}(n))}):o.container.appendChild(i.div(e.componentName+"_no-files_true",e.i18n("There are no files")))},this.defaultTimeout)).on("change.sources",this.async.debounce(function(){ii.detach(e.tree.container),r.sources.forEach(function(t){var n=t.name;if(n&&"default"!==n&&e.tree.container.appendChild(i.div(e.tree.getFullElName("source-title"),n)),t.folders.forEach(function(r){var o=i.a(e.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":Fi(t.path,r+"/"),"data-name":r,"data-source":n,"data-source-path":t.path},i.span(e.tree.getFullElName("item-title"),r)),s=function(o){return function(i){e.e.fire("".concat(o,".filebrowser"),{name:r,path:Fi(t.path+"/"),source:n}),i.stopPropagation(),i.preventDefault()}};if(e.e.on(o,"click",s("openFolder")),e.tree.container.appendChild(o),".."!==r&&"."!==r){if(a.renameFolder&&e.dataProvider.canI("FolderRename")){var l=al(e,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});l.onAction(s("renameFolder")),o.appendChild(l.container)}if(a.deleteFolder&&e.dataProvider.canI("FolderRemove")){var c=al(e,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});c.onAction(s("removeFolder")),o.appendChild(c.container)}}}),a.createNewFolder&&e.dataProvider.canI("FolderCreate")){var r=al(e,"plus","Add folder","secondary");r.onAction(function(){e.e.fire("addFolder",{path:Fi(t.path+"/"),source:n})}),e.tree.append(r)}})},this.defaultTimeout))}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ff(e)}function Bf(e,t){return Bf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bf(e,t)}function zf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zf=function(){return!!e})()}var Uf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ff(n=t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,zf()?Reflect.construct(n,r||[],Ff(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Bf(e,t)}(t,e),(n=[{key:"className",value:function(){return"FileBrowserFiles"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hf(e)}function Vf(e,t){return Vf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vf(e,t)}function qf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qf=function(){return!!e})()}var Gf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Hf(n=t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,qf()?Reflect.construct(n,r||[],Hf(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Vf(e,t)}(t,e),(n=[{key:"className",value:function(){return"FileBrowserTree"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function Wf(e,t,n){return Wf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Wf(e,t,n||e)}
50function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$f(e)}function Yf(e,t){return Yf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yf(e,t)}function Kf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jf=function(){return!!e})()}var Qf=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Kf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xf=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=$f(t),function(e,t){return!t||"object"!==Kf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jf()?Reflect.construct(t,n||[],$f(e).constructor):t.apply(e,n))}(this,t,[e])).browser=n.c.div(n.componentName),n.status_line=n.c.div(n.getFullElName("status")),n.tree=new Gf(n),n.files=new Uf(n),n.state=_a({currentPath:"",currentSource:lf,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),n.errorHandler=function(e){var t,r;Bn(e)||(t=e,(null!=(r=Error)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](t):t instanceof r)?n.status(n.i18n(e.message)):n.status(n.dataProvider.getMessage(e)))},n.close=function(){n._dialog.close()},n.__prevButtons=[],n.attachEvents(e);var r=n;r.options=ho(e||{},Qr.defaultOptions.filebrowser),r.browser.component=n,r.container=r.browser,r.o.showFoldersPanel&&r.browser.appendChild(r.tree.container),r.browser.appendChild(r.files.container),r.browser.appendChild(r.status_line),Nf.call(r),Mf.call(r),Lf.call(r),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(function(e){null!=n.options[e]&&(n.options[e]=ho(n.options[e],n.o.ajax))});var o=n.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},i=o.storeView,a=o.storeSortBy,s=o.storeLastOpenedFolder,l=i&&n.storage.get("view");l&&null==n.o.view?r.state.view="list"===l?"list":"tiles":r.state.view="list"===r.o.view?"list":"tiles",r.files.setMod("view",r.state.view);var c=a&&r.storage.get("sortBy");if(c){var u=c.split("-");r.state.sortBy=["changed","name","size"].includes(u[0])?c:"changed-desc"}else r.state.sortBy=r.o.sortBy||"changed-desc";if(s){var d=r.storage.get("currentPath"),f=r.storage.get("currentSource");r.state.currentPath=null!=d?d:"",r.state.currentSource=null!=f?f:""}return r.initUploader(r),r.setStatus(Cn.ready),n}var n;return 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&&Yf(e,t)}(t,e),n=[{key:"className",value:function(){return"FileBrowser"}},{key:"dataProvider",get:function(){return function(e,t){return new uf(e,t)}(this,this.options)}},{key:"onSelect",value:function(e){var t=this;return function(){if(t.state.activeElements.length){var n=[],r=[];t.state.activeElements.forEach(function(e){var t=e.fileURL;t&&(n.push(t),r.push(e.isImage||!1))}),t.close();var o={baseurl:"",files:n,isImages:r};xn(e)&&e(o),t.close()}return!1}}},{key:"_dialog",get:function(){var e,t=this,n=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(e=this.o.headerButtons)&&void 0!==e?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach(function(e){return n.events.on(n,e,function(){return t.e.fire(e)})}),n.setSize(this.o.width,this.o.height),n}},{key:"storage",get:function(){return su.makeStorage(Boolean(this.o.saveStateInStorage),this.componentName)}},{key:"isOpened",get:function(){return this._dialog.isOpened&&"none"!==this.browser.style.display}},{key:"status",value:function(e,t){e&&!Bn(e)&&(In(e)||(e=e.message),In(e)&&ur(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}},{key:"open",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.o.defaultCallback,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.state.onlyImages=n,this.async.promise(function(n,r){var o;if(!e.o.items||!e.o.items.url)throw Do("Need set options.filebrowser.ajax.url");var i=0;e.e.off(e.files.container,"dblclick").on(e.files.container,"dblclick",e.onSelect(t)).on(e.files.container,"touchstart",function(){var n=(new Date).getTime();n-i<sn&&e.onSelect(t)(),i=n}).off("select.filebrowser").on("select.filebrowser",e.onSelect(t));var a=e.c.div();null===(o=e.toolbar)||void 0===o||o.appendTo(a),e.__updateToolbarButtons(),e._dialog.open(e.browser,a),e.e.fire("sort.filebrowser",e.state.sortBy),Qd(e).then(n,r).finally(function(){var t;e.isInDestruct||null===(t=null==e?void 0:e.e)||void 0===t||t.fire("fileBrowserReady.filebrowser")})}).catch(function(e){if(!Bn(e)&&!ft)throw e})}},{key:"__getButtons",value:function(){var e,t=this;return(null!==(e=this.o.buttons)&&void 0!==e?e:[]).filter(function(e){if(!In(e))return!0;switch(e){case"filebrowser.upload":return t.dataProvider.canI("FileUpload");case"filebrowser.edit":return t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop");case"filebrowser.remove":return t.dataProvider.canI("FileRemove")}return!0})}},{key:"initUploader",value:function(e){var t,n=this,r=this,o=ho((null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader)||{},Qr.defaultOptions.uploader),i=function(){return Kd(n)};r.uploader=r.getInstance("Uploader",o),r.uploader.setPath(r.state.currentPath).setSource(r.state.currentSource).bind(r.browser,i,r.errorHandler),this.state.on(["change.currentPath","change.currentSource"],function(){n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource)}),r.e.on("bindUploader.filebrowser",function(e){r.uploader.bind(e,i,r.errorHandler)})}},{key:"destruct",value:function(){var e;this.isInDestruct||(null===(e=ai(this,"_dialog"))||void 0===e||e.destruct(),Wf($f(t.prototype),"destruct",this).call(this),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}},{key:"__updateToolbarButtons",value:function(){var e,t=this.__getButtons();(function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0})(this.__prevButtons,t)||(this.__prevButtons=t,null===(e=this.toolbar)||void 0===e||e.build(t))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xd);function Zf(e,t,n){return Zf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ep(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Zf(e,t,n||e)}
50function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ep(e)}function tp(e,t){return tp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tp(e,t)}function np(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rp=function(){return!!e})()}Qf([si],Xf.prototype,"dataProvider",null),Qf([si],Xf.prototype,"_dialog",null),Qf([si],Xf.prototype,"storage",null),Qf([On],Xf.prototype,"status",null),Qf([On],Xf.prototype,"open",null),Qf([ma("dataProvider:changePermissions")],Xf.prototype,"__updateToolbarButtons",null),Xf=Qf([qa(zd)],Xf);var op=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":np(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ip=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=ep(t),function(e,t){return!t||"object"!==np(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,rp()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}(this,t,[e])).buttons=[],n.hasStyle=!1,n.__inited=!1,e.e.on("afterPluginSystemInit",n.__afterPluginSystemInit).on("afterInit",n.__afterInit).on("beforeDestruct",n.__beforeDestruct),n}var n;return 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&&tp(e,t)}(t,e),(n=[{key:"className",value:function(){return"Plugin"}},{key:"__afterPluginSystemInit",value:function(){var e=this.j,t=this.buttons;t&&Zn(e)&&t.forEach(function(t){e.registerButton(t)})}},{key:"__afterInit",value:function(){this.__inited=!0,this.setStatus(Cn.ready),this.afterInit(this.jodit)}},{key:"init",value:function(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}},{key:"__beforeDestruct",value:function(){var e;if(!this.isInDestruct){var n=this.j;if(n.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(Cn.beforeDestruct),!this.__inited)return Zf(ep(t.prototype),"destruct",this).call(this);Zn(n)&&(null===(e=this.buttons)||void 0===e||e.forEach(function(e){null==n||n.unregisterButton(e)})),this.beforeDestruct(this.j),Zf(ep(t.prototype),"destruct",this).call(this)}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ba);ip.requires=[],op([On],ip.prototype,"__afterPluginSystemInit",null),op([On],ip.prototype,"__afterInit",null),op([On],ip.prototype,"__beforeDestruct",null);var ap=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.oldValue=t,this.newValue=n,this.history=r,this.tick=o}var t;return(t=[{key:"undo",value:function(){this.history.snapshot.restore(this.oldValue)}},{key:"redo",value:function(){this.history.snapshot.restore(this.newValue)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function sp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lp(e,t,n){return lp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=cp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},lp(e,t,n||e)}
50function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cp(e)}function up(e,t){return up=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},up(e,t)}function dp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dp=function(){return!!e})()}var fp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=cp(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,dp()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}(this,t,arguments)).__isBlocked=!1,e.__levelOfTransaction=0,e}var n,r,o;return 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&&up(e,t)}(t,e),n=t,r=[{key:"className",value:function(){return"Snapshot"}},{key:"calcHierarchyLadder",value:function(e){var n=[];if(!e||!e.parentNode||!ii.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!t.isIgnoredNode(e)&&n.push(t.countNodesBeforeInParent(e)),e=e.parentNode;return n.reverse()}},{key:"getElementByLadder",value:function(e){var t,n=this.j.editor;for(t=0;n&&t<e.length;t+=1)n=n.childNodes[e[t]];return n}},{key:"isBlocked",get:function(){return this.__isBlocked}},{key:"__block",value:function(e){this.__isBlocked=e}},{key:"transaction",value:function(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!ft)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}},{key:"make",value:function(){var e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);var n=this.j.s.sel;if(n&&n.rangeCount){var r=n.getRangeAt(0),o=this.calcHierarchyLadder(r.startContainer),i=this.calcHierarchyLadder(r.endContainer),a=t.strokeOffset(r.startContainer,r.startOffset),s=t.strokeOffset(r.endContainer,r.endOffset);o.length||r.startContainer===this.j.editor||(a=0),i.length||r.endContainer===this.j.editor||(s=0),e.range={startContainer:o,startOffset:a,endContainer:i,endOffset:s}}return e}},{key:"restore",value:function(e){var t=this;this.transaction(function(){var n=t.storeScrollState();t.__getCleanedEditorValue(t.j.editor)!==e.html&&(t.j.value=e.html),t.restoreOnlySelection(e),t.restoreScrollState(n)})}},{key:"storeScrollState",value:function(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}},{key:"restoreScrollState",value:function(e){var t=this.j,n=t.ow;n.scrollTo(n.scrollX,e[0]),t.editor.scrollTop=e[1]}},{key:"restoreOnlySelection",value:function(e){try{if(e.range){var t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),ft||console.warn("Broken snapshot",e)}}},{key:"destruct",value:function(){this.__block(!1),lp(cp(t.prototype),"destruct",this).call(this)}},{key:"__getCleanedEditorValue",value:function(e){var t=e.cloneNode(!0);return ii.temporaryList(t).forEach(ii.unwrap),t.innerHTML}}],o=[{key:"equal",value:function(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}},{key:"countNodesBeforeInParent",value:function(e){if(!e.parentNode)return 0;for(var t=e.parentNode.childNodes,n=0,r=null,o=0;o<t.length;o+=1){if(!r||this.isIgnoredNode(t[o])||ii.isText(r)&&ii.isText(t[o])||(n+=1),t[o]===e)return n;r=t[o]}return 0}},{key:"strokeOffset",value:function(e,t){for(;ii.isText(e);)e=e.previousSibling,ii.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}},{key:"isIgnoredNode",value:function(e){return ii.isText(e)&&!e.nodeValue||ii.isTemporary(e)}}],r&&sp(n.prototype,r),o&&sp(n,o),t}(Ba),pp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t,this.commands=[],this.stackPosition=-1}var t;return(t=[{key:"length",get:function(){return this.commands.length}},{key:"clearRedo",value:function(){this.commands.length=this.stackPosition+1}},{key:"clear",value:function(){this.commands.length=0,this.stackPosition=-1}},{key:"push",value:function(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}},{key:"replace",value:function(e){this.commands[this.stackPosition]=e}},{key:"current",value:function(){return this.commands[this.stackPosition]}},{key:"undo",value:function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}},{key:"redo",value:function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}},{key:"canUndo",value:function(){return this.stackPosition>=0}},{key:"canRedo",value:function(){return this.stackPosition<this.commands.length-1}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function hp(e,t,n){return hp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=mp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},hp(e,t,n||e)}
50function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mp(e)}function gp(e,t){return gp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gp(e,t)}function yp(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function vp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vp=function(){return!!e})()}Qr.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};var bp=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new pp(e.o.history.maxHistoryLength),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new fp(e);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=mp(t),function(e,t){return!t||"object"!==yp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,vp()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}(this,t,[e])).updateTick=0,n.__stack=r,n.snapshot=o,e.o.history.enable&&e.e.on("afterAddPlace.history",function(){n.isInDestruct||(n.startValue=n.snapshot.make(),e.events.on("internalChange internalUpdate",function(){n.startValue=n.snapshot.make()}).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map(function(e){return e+".history"}).join(" "),function(){n.startValue.html===n.j.getNativeEditorValue()&&(n.startValue=n.snapshot.make())}).on(n,"change.history",n.onChange))}),n}var n;return 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&&gp(e,t)}(t,e),n=[{key:"className",value:function(){return"History"}},{key:"redo",value:function(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canRedo",value:function(){return this.__stack.canRedo()}},{key:"undo",value:function(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canUndo",value:function(){return this.__stack.canUndo()}},{key:"clear",value:function(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}},{key:"length",get:function(){return this.__stack.length}},{key:"startValue",get:function(){return this.__startValue},set:function(e){this.__startValue=e}},{key:"__upTick",value:function(){this.updateTick+=1}},{key:"onChange",value:function(){this.__processChanges()}},{key:"__processChanges",value:function(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}},{key:"updateStack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.snapshot.make();if(!fp.equal(t,this.startValue)){var n=new ap(this.startValue,t,this,this.updateTick);if(e){var r=this.__stack.current();r&&this.updateTick===r.tick&&this.__stack.replace(n)}else this.__stack.push(n);this.startValue=t,this.fireChangeStack()}}},{key:"fireChangeStack",value:function(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}},{key:"destruct",value:function(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),hp(mp(t.prototype),"destruct",this).call(this))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ba);function _p(e,t,n){return _p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=wp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},_p(e,t,n||e)}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wp(e)}
50function Sp(e,t){return Sp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sp(e,t)}function Ep(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(kp=function(){return!!e})()}!function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":yp(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([za()],bp.prototype,"onChange",null);var Tp=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=wp(t),function(e,t){return!t||"object"!==Ep(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,kp()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}(this,t,[e])).target=n,r.mods={},r.container=e.c.div("jodit-status-bar"),n.appendChild(r.container),r.hide(),r}var n;return 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&&Sp(e,t)}(t,e),n=[{key:"className",value:function(){return"StatusBar"}},{key:"hide",value:function(){this.container.classList.add("jodit_hidden")}},{key:"show",value:function(){this.container.classList.remove("jodit_hidden")}},{key:"isShown",get:function(){return!this.container.classList.contains("jodit_hidden")}},{key:"getHeight",value:function(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}},{key:"findEmpty",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getElms(e?"item-right":"item"),n=0;n<t.length;n+=1)if(!t[n].innerHTML.trim().length)return t[n]}},{key:"append",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.findEmpty(n)||this.j.c.div(this.getFullElName("item"));n&&r.classList.add(this.getFullElName("item-right")),r.appendChild(e),null===(t=this.container)||void 0===t||t.appendChild(r),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(Cn.beforeDestruct),ii.safeRemove(this.container),_p(wp(t.prototype),"destruct",this).call(this))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ba);function xp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Op(e,t,n){return Op="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Op(e,t,n||e)}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cp(e)}function Pp(e,t){return Pp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pp(e,t)}function Ap(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ip(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ip=function(){return!!e})()}Tp=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ep(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([pi,qa(ss,as)],Tp);var Rp=new WeakMap,jp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Cp(t),function(e,t){return!t||"object"!==Ap(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ip()?Reflect.construct(t,n||[],Cp(e).constructor):t.apply(e,n))}(this,t,arguments)).selected=new Set,e}var n,r,o;return 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&&Pp(e,t)}(t,e),n=t,r=[{key:"className",value:function(){return"Table"}},{key:"__recalculateStyles",value:function(){var e=Ca(this.j,t,"style",!0),n=[];this.selected.forEach(function(e){var t=Ko(e);t&&n.push(t)}),e.innerHTML=n.length?n.join(",")+"{".concat(this.jodit.options.table.selectionCellStyle,"}"):""}},{key:"addSelection",value:function(e){this.selected.add(e),this.__recalculateStyles();var n=ii.closest(e,"table",this.j.editor);if(n){var r=t.__selectedByTable.get(n)||new Set;r.add(e),t.__selectedByTable.set(n,r)}}},{key:"removeSelection",value:function(e){this.selected.delete(e),this.__recalculateStyles();var n=ii.closest(e,"table",this.j.editor);if(n){var r=t.__selectedByTable.get(n);r&&(r.delete(e),r.size||t.__selectedByTable.delete(n))}}},{key:"getAllSelectedCells",value:function(){return Ln(this.selected)}},{key:"destruct",value:function(){return this.selected.clear(),Op(Cp(t.prototype),"destruct",this).call(this)}},{key:"getRowsCount",value:function(e){return t.__getRowsCount(e)}},{key:"getColumnsCount",value:function(e){return t.__getColumnsCount(e)}},{key:"formalMatrix",value:function(e,n){return t.__formalMatrix(e,n)}},{key:"formalCoordinate",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.__formalCoordinate(e,n,r)}},{key:"appendRow",value:function(e,n,r){return t.__appendRow(e,n,r,this.j.createInside)}},{key:"removeRow",value:function(e,n){return t.__removeRow(e,n)}},{key:"appendColumn",value:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t.__formalMatrix(e);if(!r&&ii.isCell(n.previousElementSibling))return this.appendColumn(e,n.previousElementSibling,!0);for(var i=r?n.cellIndex+((n.colSpan||1)-1):n.cellIndex,a=r?i+1:i,s=0;s<o.length;){var l=o[s];if(l[i]!==l[a]||i===a){var c=this.j.createInside.element("td");r?ii.after(l[i],c):ii.before(l[i],c),l[i].rowSpan>1&&(c.rowSpan=l[i].rowSpan)}else l[i].colSpan+=1;s+=l[i].rowSpan||1}}},{key:"removeColumn",value:function(e,n){return t.__removeColumn(e,n)}},{key:"getSelectedBound",value:function(e,n){return t.__getSelectedBound(e,n)}},{key:"normalizeTable",value:function(e){return t.__normalizeTable(e)}},{key:"mergeSelected",value:function(e){return t.__mergeSelected(e,this.j)}},{key:"splitHorizontal",value:function(e){return t.__splitHorizontal(e,this.j)}},{key:"splitVertical",value:function(e){return t.__splitVertical(e,this.j)}},{key:"setColumnWidthByDelta",value:function(e,n,r,o,i){return t.__setColumnWidthByDelta(e,n,r,o,i)}}],o=[{key:"__getSelectedCellsByTable",value:function(e){var n=t.__selectedByTable.get(e);return n?Ln(n):[]}},{key:"__getRowsCount",value:function(e){return e.rows.length}},{key:"__getColumnsCount",value:function(e){return t.__formalMatrix(e).reduce(function(e,t){return Math.max(e,t.length)},0)}},{key:"__formalMatrix",value:function(e,t){for(var n=[[]],r=Ln(e.rows),o=function(e,r){void 0===n[r]&&(n[r]=[]);for(var o,i,a=e.colSpan,s=e.rowSpan,l=0;n[r][l];)l+=1;for(i=0;i<s;i+=1)for(o=0;o<a;o+=1){if(void 0===n[r+i]&&(n[r+i]=[]),t&&!1===t(e,r+i,l+o,a,s))return!1;n[r+i][l+o]=e}},i=0;i<r.length;i+=1)for(var a=Ln(r[i].cells),s=0;s<a.length;s+=1)if(!1===o(a[s],i))return n;return n}},{key:"__formalCoordinate",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=0,i=0,a=1,s=1;return t.__formalMatrix(e,function(e,t,l,c,u){if(n===e)return o=t,i=l,a=c||1,s=u||1,r&&(i+=(c||1)-1,o+=(u||1)-1),!1}),[o,i,a,s]}},{key:"__appendRow",value:function(e,n,r,o){var i,a;
vendor: 4,536 bytes, line 50
50if(n)a=n.cloneNode(!0),Wo("td,th",n).forEach(function(e){var t=$r(e,"rowspan");if(t&&parseInt(t,10)>1){var n=parseInt(t,10)-1;$r(e,"rowspan",n>1?n:null)}}),Wo("td,th",a).forEach(function(e){e.innerHTML=""});else{var s=t.__getColumnsCount(e);a=o.element("tr");for(var l=0;l<s;l+=1)a.appendChild(o.element("td"))}r&&n&&n.nextSibling?n.parentNode&&n.parentNode.insertBefore(a,n.nextSibling):!r&&n?n.parentNode&&n.parentNode.insertBefore(a,n):((null===(i=e.getElementsByTagName("tbody"))||void 0===i?void 0:i[0])||e).appendChild(a)}},{key:"__removeRow",value:function(e,n){var r,o=t.__formalMatrix(e),i=e.rows[n];o[n].forEach(function(t,a){if(r=!1,n-1>=0&&o[n-1][a]===t)r=!0;else if(o[n+1]&&o[n+1][a]===t){if(t.parentNode===i&&t.parentNode.nextSibling){r=!0;for(var s=a+1;o[n+1][s]===t;)s+=1;var l=ii.next(t.parentNode,function(e){return ii.isTag(e,"tr")},e);l&&(o[n+1][s]?l.insertBefore(t,o[n+1][s]):l.appendChild(t))}}else ii.safeRemove(t);if(r&&(t.parentNode===i||t!==o[n][a-1])){var c=t.rowSpan;$r(t,"rowspan",c-1>1?c-1:null)}}),ii.safeRemove(i)}},{key:"__removeColumn",value:function(e,n){var r,o=t.__formalMatrix(e);o.forEach(function(e,t){var i=e[n];if(r=!1,n-1>=0&&o[t][n-1]===i||n+1<e.length&&o[t][n+1]===i?r=!0:ii.safeRemove(i),r&&(t-1<0||i!==o[t-1][n])){var a=i.colSpan;$r(i,"colspan",a-1>1?(a-1).toString():null)}})}},{key:"__getSelectedBound",value:function(e,n){var r,o,i,a=[[1/0,1/0],[0,0]],s=t.__formalMatrix(e);for(r=0;r<s.length;r+=1)for(o=0;s[r]&&o<s[r].length;o+=1)n.includes(s[r][o])&&(a[0][0]=Math.min(r,a[0][0]),a[0][1]=Math.min(o,a[0][1]),a[1][0]=Math.max(r,a[1][0]),a[1][1]=Math.max(o,a[1][1]));for(r=a[0][0];r<=a[1][0];r+=1)for(i=1,o=a[0][1];o<=a[1][1];o+=1){for(;s[r]&&s[r][o-i]&&s[r][o]===s[r][o-i];)a[0][1]=Math.min(o-i,a[0][1]),a[1][1]=Math.max(o-i,a[1][1]),i+=1;for(i=1;s[r]&&s[r][o+i]&&s[r][o]===s[r][o+i];)a[0][1]=Math.min(o+i,a[0][1]),a[1][1]=Math.max(o+i,a[1][1]),i+=1;for(i=1;s[r-i]&&s[r][o]===s[r-i][o];)a[0][0]=Math.min(r-i,a[0][0]),a[1][0]=Math.max(r-i,a[1][0]),i+=1;for(i=1;s[r+i]&&s[r][o]===s[r+i][o];)a[0][0]=Math.min(r+i,a[0][0]),a[1][0]=Math.max(r+i,a[1][0]),i+=1}return a}},{key:"__normalizeTable",value:function(e){var n=[],r=t.__formalMatrix(e);t.__removeExtraColspans(r,n),t.__removeExtraRowspans(r,n);for(var o=0;o<r.length;o+=1)for(var i=0;i<r[o].length;i+=1)void 0!==r[o][i]&&(r[o][i].hasAttribute("rowspan")&&1===r[o][i].rowSpan&&$r(r[o][i],"rowspan",null),r[o][i].hasAttribute("colspan")&&1===r[o][i].colSpan&&$r(r[o][i],"colspan",null),r[o][i].hasAttribute("class")&&!$r(r[o][i],"class")&&$r(r[o][i],"class",null));t.__unmark(n)}},{key:"__removeExtraColspans",value:function(e,n){for(var r=0;r<e[0].length;r+=1){for(var o=1e6,i=!1,a=0;a<e.length;a+=1)if(void 0!==e[a][r]){if(e[a][r].colSpan<2){i=!0;break}o=Math.min(o,e[a][r].colSpan)}if(!i)for(var s=0;s<e.length;s+=1)void 0!==e[s][r]&&t.__mark(e[s][r],"colspan",e[s][r].colSpan-o+1,n)}}},{key:"__removeExtraRowspans",value:function(e,n){var r=0,o=0;for(r=0;r<e.length;r+=1){var i=1e6,a=!1;for(o=0;o<e[r].length;o+=1)if(void 0!==e[r][o]){if(e[r][o].rowSpan<2){a=!0;break}i=Math.min(i,e[r][o].rowSpan)}if(!a)for(o=0;o<e[r].length;o+=1)void 0!==e[r][o]&&t.__mark(e[r][o],"rowspan",e[r][o].rowSpan-i+1,n)}}},{key:"__mergeSelected",value:function(e,n){var r,o=[],i=t.__getSelectedBound(e,t.__getSelectedCellsByTable(e)),a=0,s=null,l=0,c=0,u=0,d=new Set,f=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(t.__formalMatrix(e,function(e,p,h,m,g){if(p>=i[0][0]&&p<=i[1][0]&&h>=i[0][1]&&h<=i[1][1]){if(r=e,d.has(r))return;d.add(r),p===i[0][0]&&r.style.width&&(a+=r.offsetWidth),""!==ur(e.innerHTML.replace(/<br(\/)?>/g,""))&&o.push(e.innerHTML),m>1&&(c+=m-1),g>1&&(u+=g-1),s?(t.__mark(r,"remove",1,f),Mp(n).removeSelection(r)):(s=e,l=h)}}),c=i[1][1]-i[0][1]+1,u=i[1][0]-i[0][0]+1,s&&(c>1&&t.__mark(s,"colspan",c,f),u>1&&t.__mark(s,"rowspan",u,f),a&&(t.__mark(s,"width",(a/e.offsetWidth*100).toFixed(Yt)+"%",f),l&&t.__setColumnWidthByDelta(e,l,0,!0,f)),s.innerHTML=o.join("<br/>"),Mp(n).addSelection(s),d.delete(s),t.__unmark(f),t.__normalizeTable(e),Ln(e.rows).forEach(function(e){e.cells.length||ii.safeRemove(e)})))}},{key:"__splitHorizontal",value:function(e,n){var r,o,i,a,s,l=[];t.__getSelectedCellsByTable(e).forEach(function(c){(o=n.createInside.element("td")).appendChild(n.createInside.element("br")),i=n.createInside.element("tr"),r=t.__formalCoordinate(e,c),c.rowSpan<2?(t.__formalMatrix(e,function(e,n,o){r[0]===n&&r[1]!==o&&e!==c&&t.__mark(e,"rowspan",e.rowSpan+1,l)}),ii.after(ii.closest(c,"tr",e),i),i.appendChild(o)):(t.__mark(c,"rows
50pan",c.rowSpan-1,l),t.__formalMatrix(e,function(t,n,o){n>r[0]&&n<r[0]+c.rowSpan&&r[1]>o&&t.parentNode.rowIndex===n&&(s=t),r[0]<n&&t===c&&(a=e.rows[n])}),s?ii.after(s,o):a.insertBefore(o,a.firstChild)),c.colSpan>1&&t.__mark(o,"colspan",c.colSpan,l),t.__unmark(l),Mp(n).removeSelection(c)}),this.__normalizeTable(e)}},{key:"__splitVertical",value:function(e,n){var r,o,i,a=[];t.__getSelectedCellsByTable(e).forEach(function(s){r=t.__formalCoordinate(e,s),s.colSpan<2?t.__formalMatrix(e,function(e,n,o){r[1]===o&&r[0]!==n&&e!==s&&t.__mark(e,"colspan",e.colSpan+1,a)}):t.__mark(s,"colspan",s.colSpan-1,a),(o=n.createInside.element("td")).appendChild(n.createInside.element("br")),s.rowSpan>1&&t.__mark(o,"rowspan",s.rowSpan,a);var l=s.offsetWidth;ii.after(s,o),i=l/e.offsetWidth/2,t.__mark(s,"width",(100*i).toFixed(Yt)+"%",a),t.__mark(o,"width",(100*i).toFixed(Yt)+"%",a),t.__unmark(a),Mp(n).removeSelection(s)}),t.__normalizeTable(e)}},{key:"__setColumnWidthByDelta",value:function(e,n,r,o,i){for(var a=t.__formalMatrix(e),s=0,l=0;l<a.length;l+=1){var c=a[l][n];if(!(c.colSpan>1&&a.length>1)){var u=(c.offsetWidth+r)/e.offsetWidth*100;t.__mark(c,"width",u.toFixed(Yt)+"%",i),s=l;break}}for(var d=s+1;d<a.length;d+=1){var f=a[d][n];t.__mark(f,"width",null,i)}o||t.__unmark(i)}},{key:"__mark",value:function(e,t,n,r){var o;r.push(e);var i=null!==(o=Rp.get(e))&&void 0!==o?o:{};i[t]=void 0===n?1:n,Rp.set(e,i)}},{key:"__unmark",value:function(e){e.forEach(function(e){var t=Rp.get(e);t&&(Object.keys(t).forEach(function(n){var r=t[n];switch(n){case"remove":ii.safeRemove(e);break;case"rowspan":$r(e,"rowspan",nr(r)&&r>1?r:null);break;case"colspan":$r(e,"colspan",nr(r)&&r>1?r:null);break;case"width":null==r?(e.style.removeProperty("width"),$r(e,"style")||$r(e,"style",null)):e.style.width=r.toString()}delete t[n]}),Rp.delete(e))})}}],r&&xp(n.prototype,r),o&&xp(n,o),t}(Ba);jp.__selectedByTable=new WeakMap,function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Ap(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([za()],jp.prototype,"__recalculateStyles",null);var Mp=function(e){return e.getInstance("Table",e.o)};function Dp(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i+=1)o[i]=t.charCodeAt(i);return new Blob([o.buffer],{type:n})}var Np=new WeakMap;function Lp(e,t){var n=function(e,t){if(xn(e.o.buildData))return e.o.buildData.call(e,t);var n,r,o=e.ow.FormData;if(void 0!==o){if(n=t,null!=(r=o)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)return t;if(In(t))return t;var i=new o,a=t;return Object.keys(a).forEach(function(e){i.append(e,a[e])}),i}return t}(e,t),r=function(t){e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},o=function(t,n){var r=new is({xhr:function(){var t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(n(10),t.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;n(t*=100)}},!1)):n(100),t},method:e.o.method||"POST",data:t,url:xn(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),o=Np.get(e);return o||(o=new Set,Np.set(e,o)),o.add(r),e.j.e.one("beforeDestruct",r.destruct),r.send().then(function(e){return e.json()}).catch(function(e){return{success:!1,data:{messages:[e]}}}).finally(function(){r.destruct(),null==o||o.delete(r)})};return xn(e.o.customUploadFunction)&&(o=e.o.customUploadFunction),ir(n)?n.then(function(e){return o(e,r)}).catch(function(t){e.o.error.call(e,t)}):o(n,r)}function Fp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Fp(e,t):void 0}}
50(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 zp(e,t,n,r,o){if(!t)return Promise.reject(Do("Need files"));var i=e.o,a=Ln(t);if(!a.length)return Promise.reject(Do("Need files"));var s=[];if(i.insertImageAsBase64URI&&function(e,t,n,r,o,i){var a,s,l=function(){if((a=e[s])&&a.type){var l=a.type.match(/\/([a-z0-9]+)/i),c=l[1]?l[1].toLowerCase():"";if(!t.includes(c))return"continue";var u=new FileReader;n.push(r.j.async.promise(function(e,t){u.onerror=t,u.onloadend=function(){var t={baseurl:"",files:[u.result],isImages:[!0]};(xn(o)?o:i).call(r,t),e(t)},u.readAsDataURL(a)})),e[s]=null}};for(s=0;s<e.length;s+=1)l()}(a,i.imagesExtensions,s,e,n,i.defaultHandlerSuccess),a=a.filter(function(e){return e}),a.length){var l,c=new FormData;c.append(i.pathVariableName,e.path),c.append("source",e.source);for(var u=0;u<a.length;u+=1)if(l=a[u]){var d=/\.\w+$/.test(l.name),f=l.type.match(/\/([a-z0-9]+)/i),p=f&&f[1]?f[1].toLowerCase():"",h=a[u].name||Math.random().toString().replace(".","");if(!d&&p){var m=p;["jpeg","jpg"].includes(m)&&(m="jpeg|jpg"),new RegExp(".("+m+")$","i").test(h)||(h+="."+p)}var g=Bp(i.processFileName.call(e,i.filesVariableName(u),a[u],h),3),y=g[0],v=g[1],b=g[2];c.append(y,v,b)}o&&o(c),i.data&&or(i.data)&&Object.keys(i.data).forEach(function(e){c.append(e,i.data[e])}),i.prepareData.call(e,c),s.push(Lp(e,c).then(function(t){return i.isSuccess.call(e,t)?((xn(n)?n:i.defaultHandlerSuccess).call(e,i.process.call(e,t)),t):((xn(r)?r:i.defaultHandlerError).call(e,Do(i.getMessage.call(e,t))),t)}).then(function(){e.j.events&&e.j.e.fire("filesWereUploaded")}))}return Promise.all(s)}function Up(e){return Boolean(e&&e.files&&e.files.length>0)}function Hp(e){return Boolean(e&&e.items&&e.items.length>0)}function Vp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qp(e,t,n){return qp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Gp(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},qp(e,t,n||e)}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gp(e)}function Wp(e,t){return Wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wp(e,t)}function $p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($p=function(){return!!e})()}Qr.prototype.enableDragAndDropFileToEditor=!0,Qr.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:function(e){return"files[".concat(e,"]")},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:function(e){return e},isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&An(e.data.messages)?e.data.messages.join(" "):""},processFileName:function(e,t,n){return[e,t,n]},process:function(e){return e.data},error:function(e){this.j.message.error(e.message,4e3)},getDisplayName:function(e,t){return e+t},defaultHandlerSuccess:function(e){var t=this,n=this.j||this;Zn(n)&&e.files&&e.files.length&&e.files.forEach(function(r,o){var i=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Vp(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vp(e,2):void 0}}
50(e)||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.")}()}(e.isImages&&e.isImages[o]?["img","src"]:["a","href"]),a=i[0],s=i[1],l=n.createInside.element(a);l.setAttribute(s,e.baseurl+r),"a"===a&&(l.textContent=n.o.uploader.getDisplayName.call(t,e.baseurl,r)),"img"===a?n.s.insertImage(l,null,n.o.imageDefaultWidth):n.s.insertNode(l)})},defaultHandlerError:function(e){this.j.message.error(e.message)},contentType:function(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};var Yp=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Gp(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,$p()?Reflect.construct(t,n||[],Gp(e).constructor):t.apply(e,n))}(this,t,[e])).path="",r.source="default",r.options=ho(n||{},ho(Qr.defaultOptions.uploader,Zn(e)?e.o.uploader:{})),r}var n;return 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&&Wp(e,t)}(t,e),n=[{key:"j",get:function(){return this.jodit}},{key:"className",value:function(){return"Uploader"}},{key:"o",get:function(){return this.options}},{key:"setPath",value:function(e){return this.path=e,this}},{key:"setSource",value:function(e){return this.source=e,this}},{key:"bind",value:function(e,t,n){var r=function(){e.classList.remove("jodit_drag_hover")},o=this,i=function(e){var i,a,s,l=e.clipboardData,c=function(e){a&&(e.append("extension",s),e.append("mimetype",a.type))};if(!tn&&Up(l))return zp(o,l.files,t,n).finally(r),!1;if(tn&&!dt)return function(e,t,n,r,o){if(t&&(!t.types.length||t.types[0]!==nn)){var i=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});Ca(e.j,e.constructor).appendChild(i);var a=Zn(e.j)?e.j.s.save():null;i.focus(),e.j.async.setTimeout(function(){var t=i.firstChild;if(ii.safeRemove(i),t&&t.hasAttribute("src")){var s=$r(t,"src")||"";a&&Zn(e.j)&&e.j.s.restore(),zp(e,[Dp(s)],n,r).finally(o)}},e.j.defaultTimeout)}}(o,l,t,n,r);if(Hp(l)){var u=l.items;for(i=0;i<u.length;i+=1)if("file"===u[i].kind&&"image/png"===u[i].type){if(a=u[i].getAsFile()){var d=a.type.match(/\/([a-z0-9]+)/i);s=d[1]?d[1].toLowerCase():"",zp(o,[a],t,n,c).finally(r)}e.preventDefault();break}}};o.j&&o.j.editor!==e?o.j.e.on(e,"paste",i):o.j.e.on("beforePaste",i),this.attachEvents(e,t,n,r)}},{key:"attachEvents",value:function(e,t,n,r){var o=this;o.j.e.on(e,"dragend dragover dragenter dragleave drop",function(e){e.preventDefault()}).on(e,"dragover",function(t){(Up(t.dataTransfer)||Hp(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())}).on(e,"dragend dragleave",function(t){e.classList.remove("jodit_drag_hover"),Up(t.dataTransfer)&&t.preventDefault()}).on(e,"drop",function(i){e.classList.remove("jodit_drag_hover"),Up(i.dataTransfer)&&(i.preventDefault(),i.stopImmediatePropagation(),zp(o,i.dataTransfer.files,t,n).finally(r))});var i=e.querySelector("input[type=file]");i&&o.j.e.on(i,"change",function(){zp(o,i.files,t,n).then(function(){i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")}).finally(r)})}},{key:"uploadRemoteImage",value:function(e,t,n){var r=this,o=r.o,i=xn(n)?n:o.defaultHandlerError;Lp(r,{action:"fileUploadRemote",url:e}).then(function(e){o.isSuccess.call(r,e)?(xn(t)?t:o.defaultHandlerSuccess).call(r,o.process.call(r,e)):i.call(r,Do(o.getMessage.call(r,e)))}).catch(function(e){return i.call(r,e)})}},{key:"upload",value:function(e){var t=this;return this.async.promise(function(n,r){zp(t,e,n,r)})}},{key:"destruct",value:function(){this.setStatus(Cn.beforeDestruct);var e=Np.get(this);e&&(e.forEach(function(e){try{e.destruct()}catch(e){}}),e.clear()),qp(Gp(t.prototype),"destruct",this).call(this)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ba),Kp="wrap",Jp="unwrap",Qp="change",Xp="unset",Zp="initial",eh="replace",th="commitStyle";
50function nh(e,t,n){var r=n.s.createRange(),o=tr(t.previousSibling)?t.previousSibling:t;r.setStartBefore(e),r.setEndBefore(o),rh(e,r,!0);var i=tr(t.nextSibling)?t.nextSibling:t;r.setStartAfter(i),r.setEndAfter(e),rh(e,r,!1)}function rh(e,t,n){var r=t.extractContents();r.textContent&&ur(r.textContent).length||!r.firstChild||ii.unwrap(r.firstChild),e.parentNode&&oo(n?ii.before:ii.after,e,r)}var oh=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.transitions=n,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}var t;return(t=[{key:"setState",value:function(e){Wr(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}},{key:"getState",value:function(){return this.__state}},{key:"disableSilent",value:function(){this.silent=!1}},{key:"dispatch",value:function(e,t){var n=this.transitions[this.getState()][e];if(n){var r=n.call(this,t);return Wr(r&&r!==t,"Action should return new value"),Wr(In(r.next),"Value should contain the next state"),Wr(r.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(r.next),ft||this.silent||console.log("State: ".concat(this.getState())),r}throw new Error("invalid action: ".concat(this.getState(),".").concat(e.toString()))}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function ih(e){return Boolean(e&&!ii.isEmptyTextNode(e)&&!ii.isTemporary(e)&&!tr(e))}function ah(e,t){return Boolean(!ii.isTag(e,"font")&&ii.isHTMLElement(e)&&Object.keys(t).every(function(n){var r=Cr(e,n,!0);return""===r&&(""===t[n]||null==t[n])||!jn(r)&&""!==r&&!jn(t[n])&&xr(n,t[n]).toString().toLowerCase()===r.toString().toLowerCase()}))}if(Ot){var sh=Ot.createElement("div");sh.style.color="red",Wr(ah(sh,{color:"red"}),"Style test"),Wr(ah(sh,{fontSize:null}),"Style test"),Wr(ah(sh,{fontSize:""}),"Style test")}function lh(e,t){return Boolean(!ii.isTag(e,"font")&&ii.isHTMLElement(e)&&Object.keys(t).every(function(t){return""!==Cr(e,t,!0)}))}if(Ot){var ch=Ot.createElement("div");ch.style.color="red",Wr(lh(ch,{color:"red"}),"Style test"),Wr(!lh(ch,{font:"Arial",color:"red"}),"Style test"),Wr(!lh(ch,{border:"1px solid #ccc"}
50),"Style test")}function uh(e,t,n){var r,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t||!ih(t))return!1;var i=e.element,a=e.elementIsDefault,s=e.options;if(ii.isList(t)&&e.elementIsList)return!0;var l=ii.isTag(t,i);return!(!l||a&&n)||!(!Boolean((null===(r=s.attributes)||void 0===r?void 0:r.style)&&(o?ah(t,s.attributes.style):lh(t,s.attributes.style)))||e.elementIsList)||!l&&!n&&a&&ii.isInlineBlock(t)}function dh(e,t,n){return ii.closest(t,function(t){return uh(e,t,!0,!1)},n)}function fh(e,t,n){var r=t.parentNode;return r===n||!ii.isHTMLElement(r)||ii.next(t,ih,r)||ii.prev(t,ih,r)?null:e.isElementCommit&&e.elementIsBlock&&!ii.isBlock(r)?fh(e,r,n):!uh(e,r,!1)||ii.isBlock(r)&&!e.elementIsBlock?e.isElementCommit&&!ii.isBlock(r)?fh(e,r,n):null:r}var ph="toggleAttributes";function hh(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!o&&e.isApplied(t,ph))return r;!o&&e.setApplied(t,ph);var i=e.options.attributes;return i&&Gi(i)>0&&Object.keys(i).forEach(function(a){var s=i[a];switch(a){case"style":r=function(e,t,n,r,o,i){return Wr(or(n)&&Gi(n),"Style must be an object"),Object.keys(n).forEach(function(a){var s=r.style.getPropertyValue(Sr(a)),l=n[a];if(""!==s||null!=l){if(function(e,t,n){var r=e.create.element(t.tagName.toLowerCase());r.style.cssText=t.style.cssText;var o=function(e){var t;if(void 0!==no(e,"shadowRoot"))return no(e,"shadowRoot");var n=Ca(e),r=Ot.createElement("iframe");Cr(r,{width:0,height:0,position:"absolute",border:0}),r.src="about:blank",n.appendChild(r);var o=null===(t=r.contentWindow)||void 0===t?void 0:t.document,i=o?o.body:e.od.body;return no(e,"shadowRoot",i),i}(e);o.appendChild(r);var i=Cr(r,n);return ii.safeRemove(r),i}(t,r,a)===xr(a,l)){if(!s)return;return!o&&Cr(r,a,null),void(i=mh(e,r,i=Xp))}i=Qp,o||(Cr(r,a,l),i=mh(e,r,i))}}),i}(e,n,s,t,o,r);break;case"className":case"class":r=function(e,t,n,r,o){Wr(In(t),"Class name must be a string");var i=e.e.fire.bind(e.e,"".concat(th,"AfterToggleAttribute"));return n.classList.contains(t.toString())?(r=Xp,o||(n.classList.remove(t),0===n.classList.length&&($r(n,"class",null),i(r,n,"class",null)))):(r=Qp,o||(n.classList.add(t),i(r,n,"class",t))),r}(n,s,t,r,o);break;default:r=function(e,t,n,r,o,i){Wr(In(t)||nr(t)||zn(t)||null==t,"Attribute value must be a string or number or boolean or null");var a=e.e.fire.bind(e.e,"".concat(th,"AfterToggleAttribute"));return $r(n,r)===t?(!o&&$r(n,r,null),i=Xp,!o&&a(i,n,r,t),i):(i=Qp,o||($r(n,r,t),a(i,n,r,t)),i)}(n,s,t,a,o,r)}}),r}function mh(e,t,n){return $r(t,"style")||($r(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(ii.unwrap(t),n=Jp)),n}function gh(e,t,n){var r=n.e.fire("".concat(th,"BeforeWrapList"),eh,t,e),o=null!=r?r:ii.replace(t,"li",n.createInside),i=o.previousElementSibling,a=o.nextElementSibling,s=ii.isTag(i,e.element)?i:null;return null!=s||(s=ii.isTag(a,e.element)?a:null),ii.isList(s)&&function(e,t){return!e.attributes.length&&!Gi(t)||!Gi(t)||(Wr(t,"Attrs must be a non-empty object"),Object.keys(t).every(function(n){return"class"===n||"className"===n?e.classList.contains(t[n]):"style"===n?ah(e,t[n]):$r(e,n)===t[n]}))}(s,e.options.attributes)||(hh(e,s=n.createInside.element(e.element),n,Zp),ii.before(o,s)),i===s?ii.append(s,o):ii.prepend(s,o),ii.isTag(s.nextElementSibling,e.element)&&function(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every(function(e){return t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value})}(s,s.nextElementSibling)&&(ii.append(s,Array.from(s.nextElementSibling.childNodes)),ii.safeRemove(s.nextElementSibling)),n.e.fire("".concat(th,"AfterWrapList"),Kp,s,e),s}function yh(e,t,n,r){if(!t)return r;var o=t.parentElement;if(!o)return r;var i=n.e.fire("".concat(th,"BeforeToggleList"),r,e,o);if(void 0!==i)return i;var a=n.e.fire.bind(n.e,"".concat(th,"AfterToggleList"));if(r!==Jp){var s=hh(e,t.parentElement,n,Zp,!0)===Qp;if(r===eh||s||o.tagName.toLowerCase()!==e.element){var l=gh(e,vh(eh,o,t,n,e),n);return a(eh,l,e),eh}}var c=vh(Jp,o,t,n,e);return a(Jp,c,e),Jp}function vh(e,t,n,r,o){var i=r.e.fire("".concat(th,"BeforeUnwrapList"),e,t,o);return i?(Wr(ii.isHTMLElement(i),"".concat(th,"BeforeUnwrapList hook must return HTMLElement")),i):(nh(t,n,r),Wr(ii.isHTMLElement(n.parentElement),"Element should be inside the list"),ii.unwrap(n.parentElement),ii.replace(n,"br"!==r.o.enter.toLowerCase()?r.o.enter
50:r.createInside.fragment(),r.createInside))}var bh=new Set(["td","th","tr","tbody","table","li","ul","ol"]);function _h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_h(e,t,n[t])})}return e}function Sh(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}var Eh,kh="START",Th="ELEMENT",xh="UNWRAP",Oh="UNWRAP_CHILDREN",Ch="CHANGE",Ph="REPLACE_DEFAULT",Ah="LIST",Ih="TOGGLE_LIST",Rh="WRAP",jh="EXTRACT",Mh="END",Dh=(_h(Eh={},kh,{exec:function(e){var t,n,r=e.element,o=e.jodit,i=e.style,a=e.mode,s=e.collapsed;if(t=r,n=o.editor,Boolean(ii.closest(t,["style","script"],n))||!s&&ii.isEmptyContent(r))return Sh(wh({},e),{next:Mh});var l=fh(i,r,o.editor)||function(e,t){for(var n=t.firstChild;n&&!ih(n);)if(!(n=n.nextSibling))return null;return n&&!ii.next(n,ih,t)&&uh(e,n,!1)?n:null}(i,r);if(l)return Sh(wh({},e),{next:Th,element:l});var c=dh(i,r,o.editor);return i.elementIsList&&ii.isList(c)?Sh(wh({},e),{next:Ah}):Sh(wh({},e),c?{next:jh}:{next:a!==Jp?Oh:Mh})}}),_h(Eh,Ah,{exec:function(e){var t=e.element,n=e.jodit,r=e.mode;if(r!==Zp&&r!==Jp&&r!==eh)return Sh(wh({},e),{next:Mh});var o=ii.closest(t,"li",n.editor);if(!o)return Sh(wh({},e),{next:Mh});var i=ii.closest(t,At,n.editor);return Sh(wh({},e),i?{element:o,next:Ih}:{next:Mh})}}),_h(Eh,Ih,{exec:function(e){return Sh(wh({},e),{mode:yh(e.style,e.element,e.jodit,e.mode),next:Mh})}}),_h(Eh,jh,{exec:function(e){var t,n=e.element,r=e.jodit,o=e.style,i=dh(o,n,r.editor);return Wr(i,"This place should have an element"),!o.elementIsBlock&&(null===(t=o.options.attributes)||void 0===t?void 0:t.style)&&ii.isBlock(i)?Sh(wh({},e),{next:Rh}):(o.elementIsBlock||nh(i,n,r),Sh(wh({},e),{element:i,next:Th}))}}),_h(Eh,Oh,{exec:function(e){var t=e.element;return function(e,t){var n,r,o=[],i=[],a=null===(n=e.options.attributes)||void 0===n?void 0:n.style;if(t.firstChild)for(var s=function(){var t=c.value;!uh(e,t,!0)||a&&!lh(t,a)?a&&function(e,t){var n,r,o=e.element,i=e.options;if(!t||!ih(t))return!1;var a=t.nodeName.toLowerCase()===o,s=Boolean((null===(n=i.attributes)||void 0===n?void 0:n.style)&&lh(t,null===(r=i.attributes)||void 0===r?void 0:r.style));return a&&s}(e,t)?(void 0===r&&(r=!1),i.push(function(){Cr(t,Object.keys(a).reduce(function(e,t){return e[t]=null,e},{})),$r(t,"style")||$r(t,"style",null),$r(t,"style")||t.nodeName.toLowerCase()!==e.element||o.push(t)})):ii.isEmptyTextNode(t)||void 0===r&&(r=!1):(void 0===r&&(r=!0),o.push(t)),c=l.next()},l=ii.eachGen(t),c=l.next();!c.done;)s();return i.forEach(function(e){return e()}),o.forEach(ii.unwrap),Boolean(r)}(e.style,t)?Sh(wh({},e),{mode:Jp,next:Mh}):Sh(wh({},e),{next:Rh})}}),_h(Eh,Rh,{exec:function(e){var t=e.element,n=e.jodit,r=e.style,o=function(e,t,n){var r=function(e,t,n){return e.elementIsBlock?ii.up(t,function(e){return ii.isBlock(e)&&!ii.isTag(e,bh)},n.editor)||function(e,t,n){var r=n.editor,o=n.createInside,i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"previousSibling",o=e,i=e;
50i&&!tr(i)&&!ii.isTag(i,n.o.enter)&&(o=i,i=i[t]?i[t]:i.parentNode&&!ii.isBlock(i.parentNode)&&i.parentNode!==r?i.parentNode:null,!ii.isBlock(i)););return o},a=i(t),s=i(t,"nextSibling"),l=n.s.createRange();l.setStartBefore(a),l.setEndAfter(s);var c=l.extractContents(),u=o.element(e.element);return u.appendChild(c),ii.safeInsertNode(l,u),e.elementIsBlock&&ii.isEmpty(u)&&!ii.isTag(u.firstElementChild,"br")&&u.appendChild(o.element("br")),u}(e,t,n):($r(t,"size",null),t)}(e,t,n);return e.elementIsList?gh(e,r,n):ii.replace(r,e.element,n.createInside,!0)}(r,t,n);return Sh(wh({},e),{next:r.elementIsList?Mh:Ch,mode:Kp,element:o})}}),_h(Eh,Th,{exec:function(e){var t=e.style,n=e.element;return hh(t,n,e.jodit,Zp,!0)!==Zp?Sh(wh({},e),{next:Ch}):ii.isTag(n,t.element)?Sh(wh({},e),{next:xh}):Sh(wh({},e),{next:Mh})}}),_h(Eh,Ch,{exec:function(e){var t=e.style,n=e.element,r=e.jodit,o=e.mode,i=hh(t,n,r,e.mode);return o!==Kp&&i===Xp&&!n.attributes.length&&ii.isTag(n,t.element)?Sh(wh({},e),{next:xh}):Sh(wh({},e),{mode:i,next:Mh})}}),_h(Eh,xh,{exec:function(e){return e.element.attributes.length&&ii.isTag(e.element,e.style.element)?Sh(wh({},e),{next:Ph}):(ii.unwrap(e.element),Sh(wh({},e),{mode:Jp,next:Mh}))}}),_h(Eh,Ph,{exec:function(e){return ii.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),Sh(wh({},e),{mode:eh,next:Mh})}}),_h(Eh,Mh,{exec:function(e){return e}}),Eh),Nh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.__applyMap=new WeakMap}var t;return t=[{key:"isApplied",value:function(e,t){var n=this.__applyMap.get(e);return!!n&&n[t]}},{key:"setApplied",value:function(e,t){var n,r=null!==(n=this.__applyMap.get(e))&&void 0!==n?n:{};r[t]=!0,this.__applyMap.set(e,r)}},{key:"elementIsList",get:function(){return Boolean(this.options.element&&At.has(this.options.element))}},{key:"element",get:function(){return this.options.element||this.defaultTag}},{key:"elementIsBlock",get:function(){return Boolean(this.options.element&&Ct.test(this.options.element))}},{key:"isElementCommit",get:function(){return Boolean(this.options.element&&this.options.element!==this.options.defaultTag)}},{key:"defaultTag",get:function(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}},{key:"elementIsDefault",get:function(){return this.element===this.defaultTag}},{key:"apply",value:function(e){var t=this.options.hooks,n=t?Object.keys(t):[];try{n.forEach(function(n){e.e.on(Or(th+"_"+n),t[n])}),function(e,t){var n,r=e.s;null===(n=e.editor.firstChild)||void 0===n||n.normalize();var o=r.fakes(),i=e.s.wrapInTagGen(o),a=i.next();if(!a.done){for(var s={collapsed:r.isCollapsed(),mode:Zp,element:a.value,next:kh,jodit:e,style:t};a&&!a.done;){var l=new oh(kh,Dh);for(s.element=a.value;l.getState()!==Mh;)s=l.dispatch("exec",s);a=i.next()}r.restoreFakes(o)}}(e,this)}finally{n.forEach(function(n){e.e.off(Or(th+"_"+n),t[n])}),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Lh(e,t,n){for(var r=ii.findSibling(t,n),o=ii.findSibling(t,!n);ii.isElement(r)&&!ii.isTag(r,Rt)&&ii.isContentEditable(r,e.editor)&&(!o||!ii.closest(t,ii.isElement,e.editor));)n||!r.firstChild?r.appendChild(t):ii.before(r.firstChild,t),r=ii.sibling(t,n),o=ii.sibling(t,!n)}function Fh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var zh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Bh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Uh=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,t.e.on("removeMarkers",function(){n.removeMarkers()})}var t;return t=[{key:"j",get:function(){return this.jodit}},{key:"errorNode",value:function(e){if(!ii.isNode(e))throw Do("Parameter node must be instance of Node")}},{key:"area",get:function(){return this.j.editor}},{key:"win",get:function(){return this.j.ew}},{key:"doc",get:function(){return this.j.ed}},{key:"sel",get:function(){return this.j.o.shadowRoot&&xn(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}},{key:"range",get:function(){var e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}},{key:"isInsideArea",get:function(){var e=this.sel,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!ii.isOrContains(this.area,t.startContainer))}},{key:"createRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.doc.createRange();return e&&this.selectRange(t),t}},{key:"remove",value:function(){var e=this.sel,t=this.current();if(e&&t)for(var n=0;n<e.rangeCount;n+=1)e.getRangeAt(n).deleteContents(),e.getRangeAt(n).collapse(!0)}},{key:"clear",value:function(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}},{key:"removeNode",value:function(e){if(!ii.isOrContains(this.j.editor,e,!0))throw Do("Selection.removeNode can remove only editor's children");ii.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}},{key:"insertCursorAtPoint",value:function(e,t){var n=this;this.removeMarkers();try{var r=this.createRange();return function(){if(n.doc.caretPositionFromPoint){var o=n.doc.caretPositionFromPoint(e,t);if(o)return void r.setStart(o.offsetNode,o.offset)}if(n.doc.caretRangeFromPoint){var i=n.doc.caretRangeFromPoint(e,t);Wr(i,"Incorrect caretRangeFromPoint behaviour"),r.setStart(i.startContainer,i.startOffset)}}(),r.collapse(!0),this.selectRange(r),!0}catch(e){}return!1}},{key:"hasMarkers",get:function(){return Boolean(this.markers.length)}},{key:"markers",get:function(){return Wo("span[data-"+an+"]",this.area)}},{key:"removeMarkers",value:function(){ii.safeRemove.apply(null,this.markers)}},{key:"marker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=null;t&&(n=t.cloneRange()).collapse(e);var r=this.j.createInside.span();return r.id=an+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),r.style.lineHeight="0",r.style.display="none",ii.markTemporary(r),$r(r,"data-"+an,e?"start":"end"),r.appendChild(this.j.createInside.text(vt)),n&&ii.isOrContains(this.area,e?n.startContainer:n.endContainer)&&n.insertNode(r),r}},{key:"restore",value:function(){var e=!1,t=function(e){return"span[data-".concat(an,"=").concat(e?"start":"end","]")},n=this.area.querySelector(t(!0)),r=this.area.querySelector(t(!1));if(n){if(e=this.createRange(),r)e.setStartAfter(n),ii.safeRemove(n),e.setEndBefore(r),ii.safeRemove(r);else{var o=n.previousSibling;ii.isText(o)?e.setStart(o,o.nodeValue?o.nodeValue.length:0):e.setStartBefore(n),ii.safeRemove(n),e.collapse(!0)}e&&this.selectRange(e)}}},{key:"fakes",value:function(){var e=this.sel;if(!e||!e.rangeCount)return[];var t=e.getRangeAt(0);Wr(t,"Range is null");var n=t.cloneRange();n.collapse(!0);var r=this.j.createInside.fake();ii.safeInsertNode(n,r),t.setStartBefore(r);var o=[r];if(!t.collapsed){var i=t.cloneRange();i.collapse(!1);var a=this.j.createInside.fake();ii.safeInsertNode(i,a),t.setEndAfter(a),o.push(a)}return this.selectRange(t),o}},{key:"restoreFakes",value:function(e){var t,n,r,o,i=e.filter(function(e){return e.isConnected});if(i.length){var a=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Fh(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Fh(e,2):void 0}}
50(e)||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.")}()}(i),s=a[0],l=a[1],c=this.createRange();c.setStartAfter(s),l&&c.setEndBefore(l),this.selectRange(c),(null===(t=s.parentNode)||void 0===t?void 0:t.firstChild)!==(null===(n=s.parentNode)||void 0===n?void 0:n.lastChild)&&ii.safeRemove(s),(null===(r=null==l?void 0:l.parentNode)||void 0===r?void 0:r.firstChild)!==(null===(o=null==l?void 0:l.parentNode)||void 0===o?void 0:o.lastChild)&&ii.safeRemove(l)}}},{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasMarkers)return[];var t=this.sel;if(!t||!t.rangeCount)return[];for(var n=[],r=t.rangeCount,o=[],i=0;i<r;i+=1)if(o[i]=t.getRangeAt(i),o[i].collapsed){var a=this.marker(!0,o[i]);n[i]={startId:a.id,collapsed:!0,startMarker:a.outerHTML}}else{var s=this.marker(!0,o[i]),l=this.marker(!1,o[i]);n[i]={startId:s.id,endId:l.id,collapsed:!1,startMarker:s.outerHTML,endMarker:l.outerHTML}}if(!e){t.removeAllRanges();for(var c=r-1;c>=0;--c){var u=this.doc.getElementById(n[c].startId);if(u){if(n[c].collapsed)o[c].setStartAfter(u),o[c].collapse(!0);else if(o[c].setStartBefore(u),n[c].endId){var d=this.doc.getElementById(n[c].endId);d&&o[c].setEndAfter(d)}try{t.addRange(o[c].cloneRange())}catch(e){}}}}return n}},{key:"focus",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{preventScroll:!0};if(!this.isFocused()){var r=Vi(this.j.container),o=null==r?void 0:r.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(n),this.win.focus(),this.area.focus(n),o&&(null==r?void 0:r.scrollTo)&&r.scrollTo(0,o);var i=this.sel,a=(null==i?void 0:i.rangeCount)?null==i?void 0:i.getRangeAt(0):null;if(!a||!ii.isOrContains(this.area,a.startContainer)){var s=this.createRange();s.setStart(this.area,0),s.collapse(!0),this.selectRange(s,!1)}return this.j.editorIsActive||null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.fire("focus"),!0}return!1}},{key:"isCollapsed",value:function(){for(var e=this.sel,t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}},{key:"isFocused",value:function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}},{key:"current",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.j.getRealMode()!==Xt)return null;var t=this.sel;if(!t||0===t.rangeCount)return null;var n=t.getRangeAt(0),r=n.startContainer,o=!1;if(ii.isTag(r,"br")&&t.isCollapsed)return r;if(!ii.isText(r)){var i=function(e,t,n,r,o,i){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],n=!0),e&&r&&!ii.isText(e))if(!n&&ii.isText(e.previousSibling))e=e.previousSibling;else if(o)for(var a=i(e);a;){if(a&&ii.isText(a)){e=a;break}a=i(a)}if(e&&!r&&!ii.isText(e)){var s=e,l=e;do{s=s.firstChild,l=l.lastChild}while(s&&l&&!ii.isText(s));s===l&&s&&ii.isText(s)&&(e=s)}return{node:e,rightMode:n}}(r,n,o,t.isCollapsed,e,function(e){return o?e.lastChild:e.firstChild});r=i.node,o=i.rightMode}return r&&ii.isOrContains(this.area,r)?r:null}},{key:"insertNode",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.errorNode(e);var o=ii.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());var i=this.sel;this.j.history.snapshot.transaction(function(){if(t.isCollapsed()||t.j.execCommand("Delete"),t.j.e.fire("beforeInsertNode",e),i&&i.rangeCount){var r=i.getRangeAt(0),a=e.firstChild;ii.isOrContains(t.area,r.commonAncestorContainer)?ii.safeInsertNode(r,e):t.area.appendChild(e),[function(){return null==a?void 0:a.previousSibling},function(){return null==a?void 0:a.previousSibling},function(){var e;return null===(e=null==a?void 0:a.previousSibling)||void 0===e?void 0:e.lastChild}].forEach(function(e){var t=e();t&&ii.isEmptyTextNode(t)&&ii.safeRemove(t)})}else t.area.appendChild(e);var s=function(e){if(ii.isBlock(e)){var n=e.lastChild;if(n)return s(n)}t.setCursorAfter(e)};n&&(ii.isFragment(e)?o&&s(o):s(e)),t.j.o.scrollToPastedContent&&Zo(null!=o?o:e,t.j.editor,t.doc)}),r&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",ii.isFragment(e)?o:e)}},{key:"insertHTML",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(""!==e){var n=this.j.createInside.div(),r=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore(
50)),ii.isNode(e)?n.appendChild(e):n.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",n.innerHTML))&&n.lastChild){for(;n.firstChild;)n.firstChild,r.appendChild(n.firstChild);this.insertNode(r,t,!1),this.j.__imdSynchronizeValues()}}}},{key:"insertImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=In(e)?this.j.createInside.element("img"):e;if(In(e)&&r.setAttribute("src",e),null!=n){var o=n.toString();o&&"auto"!==o&&String(o).indexOf("px")<0&&String(o).indexOf("%")<0&&(o+="px"),$r(r,"width",o)}t&&"object"===(void 0===t?"undefined":Bh(t))&&Cr(r,t);var i=function(){(r.naturalHeight<r.offsetHeight||r.naturalWidth<r.offsetWidth)&&(r.style.width="",r.style.height=""),r.removeEventListener("load",i)};this.j.e.on(r,"load",i),r.complete&&i(),this.insertNode(r),this.j.e.fire("afterInsertImage",r)}},{key:"eachSelection",value:function(e){var t,n=this,r=this.sel;if(r&&r.rangeCount){var o=r.getRangeAt(0),i=o.commonAncestorContainer;ii.isHTMLElement(i)||(i=i.parentElement);var a=[],s=o.startOffset,l=i.childNodes.length,c=s<l?s:l-1,u=o.startContainer===this.area?i.childNodes[c]:o.startContainer,d=o.endContainer===this.area?i.childNodes[o.endOffset-1]:o.endContainer;ii.isText(u)&&u===o.startContainer&&o.startOffset===(null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&u.nextSibling&&(u=u.nextSibling),ii.isText(d)&&d===o.endContainer&&0===o.endOffset&&d.previousSibling&&(d=d.previousSibling);var f=function(e){!e||e===i||ii.isEmptyTextNode(e)||tr(e)||a.push(e)};f(u),u!==d&&ii.isOrContains(i,u,!0)&&ii.find(u,function(e){return f(e),e===d||e&&e.contains&&e.contains(d)},i,!0,!1);var p=function(t){if(ii.isOrContains(n.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return Ln(t.childNodes).forEach(p);if(ii.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{var r=n.j.createInside.text(vt);t.appendChild(r),t=r}e(t)}};0===a.length&&(ii.isEmptyTextNode(u)&&a.push(u),u.firstChild&&a.push(u.firstChild)),a.forEach(p)}}},{key:"cursorInTheEdge",value:function(e,t){var n,r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!e,a=null===(n=this.sel)||void 0===n?void 0:n.getRangeAt(0);if(null!=o||(o=this.current(!1)),!a||!o||!ii.isOrContains(t,o,!0))return null;var s=e?a.startContainer:a.endContainer,l=e?a.startOffset:a.endOffset,c=function(e){return Boolean(e&&!ii.isTag(e,"br")&&!ii.isEmptyTextNode(e)&&!ii.isTemporary(e)&&!(ii.isElement(e)&&!0===r.j.e.fire("isInvisibleForCursor",e)))};if(ii.isText(s)){if(function(e,t,n,r){var o,i=(null===(o=e.nodeValue)||void 0===o?void 0:o.length)?e.nodeValue:"";if(r&&i.replace(wt(),"").length>t)return!0;var a=St().exec(i);return n&&(a&&a[0].length<t||!a&&t>0)}(s,l,e,i))return!1}else{var u=Ln(s.childNodes);if(i){if(u.slice(l).some(c))return!1}else if(u.slice(0,l).some(c))return!1}for(var d=o;d&&d!==t;){var f=ii.sibling(d,e);if(f){if((d=f)&&c(d))return!1}else d=d.parentNode}return!0}},{key:"cursorOnTheLeft",value:function(e,t){return this.cursorInTheEdge(!0,e,t)}},{key:"cursorOnTheRight",value:function(e,t){return this.cursorInTheEdge(!1,e,t)}},{key:"setCursorAfter",value:function(e){return this.setCursorNearWith(e,!1)}},{key:"setCursorBefore",value:function(e){return this.setCursorNearWith(e,!0)}},{key:"setCursorNearWith",value:function(e,t){var n,r,o=this;if(this.errorNode(e),!ii.up(e,function(e){return e===o.area||e&&e.parentNode===o.area},this.area))throw Do("Node element must be in editor");var i=this.createRange(),a=null;return ii.isText(e)?t?i.setStart(e,0):i.setEnd(e,null!==(r=null===(n=e.nodeValue)||void 0===n?void 0:n.length)&&void 0!==r?r:0):(a=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),ii.safeInsertNode(i,a),i.selectNode(a)),i.collapse(t),this.selectRange(i),a}},{key:"setCursorIn",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!ii.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Do("Node element must be in editor");var r=this.createRange(),o=e,i=e;do{if(ii.isText(o)||ii.isTag(o,Rt))break;i=o,o=n?o.firstChild:o.lastChild}while(o);if(!o){var a=this.j.createInside.text(vt);ii.isTag(i,Rt)?o=i:(i.appendChild(a),i=a)}var s=o||i;return ii.isTag(s,Rt)?(n||ii.isTag(s,"br")?r.setStartBefore(s):r.setEndAfter(s),r.collapse(n)):(r.selectNodeContents(s),r.collapse(n)),this.selectRange(r),i}},{key:"selectRange",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.sel;return t&&!this.isFocused()&&this.focus(),n&&(n.removeAllRanges(),n.addRange(e)),this.j.e.fire("changeSelection"),this}},{key:"select",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!ii.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Do("Node element must be in editor");var r=this.createRange();return r[n?"selectNodeContents":"selectNode"](e),this.selectRange(r)}},{key:"html",get:function(){var e=this.sel;if(e&&e.rangeCount>0){var t=e.getRangeAt(0).cloneContents(),n=this.j.createInside.div();return n.appendChild(t),n.innerHTML}return""}},{key:"wrapInTagGen",value:function(e){var t,n,r,o,i,a,s,l,c,u,d;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(f){switch(f.label){case 0:return this.isCollapsed()?(t=this.jodit.createInside.element("font",vt),this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),[4,t]):[3,2];case 1:return f.sent(),ii.unwrap(t),[2];
50case 2:Wo("*[style*=font-size]",this.area).forEach(function(e){$r(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")}),this.j.nativeExecCommand("fontsize",!1,"7"),Wo("*[data-font-size]",this.area).forEach(function(e){var t=$r(e,"data-font-size");t&&(e.style.fontSize=t,$r(e,"data-font-size",null))}),n=Wo('font[size="7"]',this.area),r=!0,o=!1,i=void 0,f.label=3;case 3:f.trys.push([3,8,9,10]),a=n[Symbol.iterator](),f.label=4;case 4:return(r=(s=a.next()).done)?[3,7]:(l=s.value,c=l.firstChild,u=l.lastChild,c&&c===u&&tr(c)?(ii.unwrap(l),[3,6]):(c&&tr(c)&&ii.before(l,c),u&&tr(u)&&ii.after(l,u),[4,l]));case 5:f.sent(),ii.unwrap(l),f.label=6;case 6:return r=!0,[3,4];case 7:return[3,10];case 8:return d=f.sent(),o=!0,i=d,[3,10];case 9:try{r||null==a.return||a.return()}finally{if(o)throw i}return[7];case 10:return[2]}})}},{key:"wrapInTag",value:function(e){var t=[],n=!0,r=!1,o=void 0;try{for(var i,a=this.wrapInTagGen()[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value;try{if(s.firstChild&&s.firstChild===s.lastChild&&tr(s.firstChild))continue;xn(e)?e(s):t.push(ii.replace(s,e,this.j.createInside))}finally{var l=s.parentNode;l&&(ii.unwrap(s),ii.isEmpty(l)&&ii.unwrap(l))}}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}},{key:"commitStyle",value:function(e){Wr(Gi(e)>0,"Need to pass at least one option"),new Nh(e).apply(this.j)}},{key:"splitSelection",value:function(e,t){if(!this.isCollapsed())return null;var n=this.createRange(),r=this.range;n.setStartBefore(e);var o=this.cursorOnTheRight(e,t),i=this.cursorOnTheLeft(e,t),a=this.j.createInside.element("br"),s=this.j.createInside.fake(),l=s.cloneNode();try{if(o||i){t?ii.before(t,a):ii.safeInsertNode(r,a);var c=function(e,t){for(var n=t(e);n;){var r=t(n);if(!n||!ii.isTag(n,"br")&&!ii.isEmptyTextNode(n))break;ii.safeRemove(n),n=r}};c(a,function(e){return e.nextSibling}),c(a,function(e){return e.previousSibling}),ii.after(a,l),ii.before(a,s),o?(n.setEndBefore(a),r.setEndBefore(a)):(n.setEndAfter(a),r.setEndAfter(a))}else n.setEnd(r.startContainer,r.startOffset);var u=n.extractContents(),d=function(e){return ii.each(e,function(e){return ii.isEmptyTextNode(e)&&ii.safeRemove(e)})};Wr(e.parentNode,"Splitting fails");try{if(d(u),d(e),e.parentNode.insertBefore(u,e),!t&&o&&(null==a?void 0:a.parentNode)){var f=this.createRange();f.setStartBefore(a),this.selectRange(f)}}catch(e){if(!ft)throw e}var p=function(e){var t,n,r;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(n=null==e?void 0:e.parentNode)||void 0===n?void 0:n.lastChild)&&(null===(r=null==e?void 0:e.parentNode)||void 0===r||r.appendChild(a.cloneNode()))};p(s),p(l)}finally{ii.safeRemove(s),ii.safeRemove(l)}return e.previousElementSibling}},{key:"expandSelection",value:function(){var e=this;if(this.isCollapsed())return this;var t=this.range,n=t.cloneRange();if(!ii.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;var r=function(n){var r=e.j.createInside.fake(),o=t.cloneRange();return o.collapse(n),ii.safeInsertNode(o,r),function(e,t,n){for(var r=e;r&&r!==n;){if(ii.findSibling(r,t))return;if(ii.isBlock(r.parentElement))break;(r=r.parentElement)&&r!==n&&(t?ii.before(r,e):ii.after(r,e))}}(r,n,e.j.editor),r},o=r(!0),i=r(!1);n.setStartAfter(o),n.setEndBefore(i);var a=ii.findSibling(o,!1),s=ii.findSibling(i,!0);if(a!==s){var l=ii.isElement(a)&&ii.isOrContains(a,i),c=!l&&ii.isElement(s)&&ii.isOrContains(s,o);if(l||c){for(var u=l?a:s,d=u;ii.isElement(u);)(u=l?u.firstElementChild:u.lastElementChild)&&(l?ii.isOrContains(u,i):ii.isOrContains(u,o))&&(d=u);l?n.setStart(d,0):n.setEnd(d,d.childNodes.length)}}if(this.selectRange(n),ii.safeRemove(o,i),this.isCollapsed())throw Do("Selection is collapsed");return this}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function Hh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gh(e,t,n){return Gh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wh(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},Gh(e,t,n||e)}
50function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wh(e)}function $h(e,t){return!t||"object"!==Jh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yh(e,t){return Yh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yh(e,t)}function Kh(e){return function(e){if(Array.isArray(e))return Hh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Hh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hh(e,t):void 0}}(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 Jh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Qh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qh=function(){return!!e})()}zh([On],Uh.prototype,"createRange",null),zh([On],Uh.prototype,"focus",null),zh([On],Uh.prototype,"setCursorAfter",null),zh([On],Uh.prototype,"setCursorBefore",null),zh([On],Uh.prototype,"setCursorIn",null);var Xh,Zh=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Jh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},em="data-jodit-default-style-display",tm="data-jodit-default-classes",nm={contenteditable:!1},rm=Xh=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=Wh(t),$h(e,Qh()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}(this,t,[n,!0])).isJodit=!0,r.commands=new Map,r.__selectionLocked=null,r.__wasReadOnly=!1,r.editorIsActive=!1,r.__mode=Xt,r.__callChangeCount=0,r.__isSilentChange=!1,r.currentPlace={options:r.__options,container:r.__container},r.places=[],r.__elementToPlace=new Map;try{var o=Jo(e,r.options.shadowRoot||r.od);if(Xh.isJoditAssigned(o))return $h(r,o.component)}catch(e){if(!ft)throw e;throw r.destruct(),e}return r.setStatus(Cn.beforeInit),r.id=$r(Jo(e,r.o.shadowRoot||r.od),"id")||(new Date).getTime().toString(),wa[r.id]=r,r.attachEvents(n),r.e.on(r.ow,"resize",function(){r.e&&r.e.fire("resize")}),r.e.on("prepareWYSIWYGEditor",r.__prepareWYSIWYGEditor),r.selection=new Uh(r),ao(r.beforeInitHook(),function(){if(!r.isInDestruct){r.e.fire("beforeInit",r),ka.__init(r),r.e.fire("afterPluginSystemInit",r),r.e.on("changePlace",function(){r.setReadOnly(r.o.readonly),r.setDisabled(r.o.disabled)}),r.places.length=0;var t=r.addPlace(e,n);wa[r.id]=r,ao(t,function(){r.isInDestruct||(r.e&&r.e.fire("afterInit",r),ao(r.afterInitHook()),r.setStatus(Cn.ready),r.e.fire("afterConstructor",r))})}}),r}var n,r,o;return 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&&Yh(e,t)}(t,e),n=t,r=[{key:"className",value:function(){return"Jodit"}},{key:"waitForReady",value:function(){var e=this;return this.isReady?Promise.resolve(this):this.async.promise(function(t){e.hookStatus("ready",function(){return t(e)})})}},{key:"text",get:function(){if(this.editor)return this.editor.innerText||"";var e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}},{key:"defaultTimeout",get:function(){return nr(this.o.defaultTimeout)?this.o.defaultTimeout:Qr.defaultOptions.defaultTimeout}},{key:"createInside",get:function(){var e=this;return new qc(function(){return e.ed},this.o.createAttributes)}},{key:"__setPlaceField",value:function(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}},{key:"element",get:function(){return this.currentPlace.element}},{key:"editor",get:function(){return this.currentPlace.editor},set:function(e){this.__setPlaceField("editor",e)}
50},{key:"container",get:function(){return this.currentPlace.container},set:function(e){this.__setPlaceField("container",e)}},{key:"workplace",get:function(){return this.currentPlace.workplace}},{key:"message",get:function(){return this.getMessageModule(this.workplace)}},{key:"statusbar",get:function(){return this.currentPlace.statusbar}},{key:"iframe",get:function(){return this.currentPlace.iframe},set:function(e){this.__setPlaceField("iframe",e)}},{key:"history",get:function(){return this.currentPlace.history}},{key:"editorWindow",get:function(){return this.currentPlace.editorWindow},set:function(e){this.__setPlaceField("editorWindow",e)}},{key:"ew",get:function(){return this.editorWindow}},{key:"editorDocument",get:function(){return this.currentPlace.editorWindow.document}},{key:"ed",get:function(){return this.editorDocument}},{key:"options",get:function(){return this.currentPlace.options},set:function(e){this.__options=e,this.__setPlaceField("options",e)}},{key:"s",get:function(){return this.selection}},{key:"uploader",get:function(){return this.getInstance("Uploader",this.o.uploader)}},{key:"filebrowser",get:function(){var e=this,t=ho({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback:function(t){t.files&&t.files.length&&t.files.forEach(function(n,r){var o=t.baseurl+n;t.isImages&&t.isImages[r]?e.s.insertImage(o,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML("<a href='".concat(o,"' title='").concat(o,"'>").concat(o,"</a>")))})}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}},{key:"mode",get:function(){return this.__mode},set:function(e){this.setMode(e)}},{key:"getNativeEditorValue",value:function(){var e=this.e.fire("beforeGetNativeEditorValue");return In(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}},{key:"setNativeEditorValue",value:function(e){var t={value:e};this.e.fire("beforeSetNativeEditorValue",t)||this.editor&&(this.editor.innerHTML=t.value)}},{key:"value",get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e),this.history.__processChanges()}},{key:"synchronizeValues",value:function(){this.__imdSynchronizeValues()}},{key:"__imdSynchronizeValues",value:function(){this.setEditorValue()}},{key:"getEditorValue",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1?arguments[1]:void 0;if(void 0!==(e=this.e.fire("beforeGetValueFromEditor",n)))return e;e=this.getNativeEditorValue().replace(_t(),""),t&&(e=e.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===e&&(e="");var r={value:e};return this.e.fire("afterGetValueFromEditor",r,n),r.value}},{key:"setEditorValue",value:function(e){var t=this.e.fire("beforeSetValueToEditor",e);if(!1!==t)if(In(t)&&(e=t),this.editor){if(!In(e)&&!jn(e))throw Do("value must be string");jn(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");var n=this.getElementValue(),r=this.getEditorValue();if(!this.__isSilentChange&&n!==r&&this.__callChangeCount<fn){this.__setElementValue(r),this.__callChangeCount+=1,!ft&&this.__callChangeCount>4&&console.warn("Too many recursive changes",r,n);try{this.history.__upTick(),this.e.fire("change",r,n),this.e.fire(this.history,"change",r,n)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.__setElementValue(e)}},{key:"updateElementValue",value:function(){this.__setElementValue(this.getEditorValue())}},{key:"getElementValue",value:function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}},{key:"__setElementValue",value:function(e){var t=this;if(!In(e))throw Do("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){var n={value:e};ao(this.e.fire("beforeSetElementValue",n),function(){void 0!==t.element.value?t.element.value=n.value:t.element.innerHTML=n.value,t.e.fire("afterSetElementValue",n)})}}},{key:"registerCommand",value:function(e,t,n){var r=e.toLowerCase(),o=this.commands.get(r);if(void 0===o&&(o=[],this.commands.set(r,o)),o.push(t),!xn(t)){var i=this.o.commandToHotkeys[r]||this.o.commandToHotkeys[e]||t.hotkeys;i&&this.registerHotkeyToCommand(i,r,null==n?void 0:n.stopPropagation)}return this}},{key:"registerHotkeyToCommand",value:function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=Si(e).map(Ni).map(function(e){return e+".hotkey"}).join(" ");this.e.off(o).on(o,function(e,o){return o&&(o.shouldStop=null==r||r),n.execCommand(t)})}},{key:"execCommand",value:function(e,t,n){for(var r=arguments.length,o=new Array(r>3?r-3:0),i=3;i<r;i++)o[i-3]=arguments[i];var a;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){var s,l;if(e=e.toLowerCase(),!1!==(s=(a=this.e).fire.apply(a,["beforeCommand".concat(Ki(e)),t,n].concat(Kh(o))))&&(s=(l=this.e).fire.apply(l,["beforeCommand",e,t,n].concat(Kh(o)))),!1!==s&&(s=this.__execCustomCommands.apply(this,[e,t,n].concat(Kh(o)))),!1!==s){this.s.focus();
50try{s=this.nativeExecCommand(e,t,n)}catch(e){if(!ft)throw e}}return this.e.fire("afterCommand",e,t,n),this.__imdSynchronizeValues(),s}}},{key:"nativeExecCommand",value:function(e,t,n){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,n)}finally{this.__isSilentChange=!1}}},{key:"__execCustomCommands",value:function(e,t,n){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];e=e.toLowerCase();var s,l=this.commands.get(e);if(void 0!==l)return l.forEach(function(o){var a,l=(a=xn(o)?o:o.exec).call.apply(a,[r,e,t,n].concat(Kh(i)));void 0!==l&&(s=l)}),s}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!!Gh(Wh(t.prototype),"lock",this).call(this,e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.container.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}},{key:"unlock",value:function(){return!!Gh(Wh(t.prototype),"unlock",this).call(this)&&(this.container.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}},{key:"getMode",value:function(){return this.mode}},{key:"isEditorMode",value:function(){return this.getRealMode()===Xt}},{key:"getRealMode",value:function(){if(this.getMode()!==en)return this.getMode();var e=this.od.activeElement;return e&&(e===this.iframe||ii.isOrContains(this.editor,e)||ii.isOrContains(this.toolbar.container,e))?Xt:Zt}},{key:"setMode",value:function(e){var t=this,n=this.getMode(),r={mode:parseInt(e.toString(),10)},o=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",r)&&(this.__mode=[Zt,Xt,en].includes(r.mode)?r.mode:Xt,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),o.forEach(function(e){t.container.classList.remove(e)}),this.container.classList.add(o[this.mode-1]),n!==this.getMode()&&this.e.fire("afterSetMode"))}},{key:"toggleMode",value:function(){var e=this.getMode();[Zt,Xt,this.o.useSplitMode?en:9].includes(e+1)?e+=1:e=Xt,this.setMode(e)}},{key:"setDisabled",value:function(e){this.o.disabled=e;var t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}},{key:"getDisabled",value:function(){return this.o.disabled}},{key:"setReadOnly",value:function(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}},{key:"getReadOnly",value:function(){return this.o.readonly}},{key:"focus",value:function(){this.getMode()!==Zt&&this.s.focus()}},{key:"isFocused",get:function(){return this.s.isFocused()}},{key:"beforeInitHook",value:function(){}},{key:"afterInitHook",value:function(){}},{key:"initOptions",value:function(e){this.options=ho(e||{},Qr.defaultOptions)}},{key:"initOwners",value:function(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}},{key:"addPlace",value:function(e,t){var n=this,r=Jo(e,this.o.shadowRoot||this.od);this.attachEvents(t),r.attributes&&Ln(r.attributes).forEach(function(e){var r=e.name,o=e.value;void 0===Qr.defaultOptions[r]||t&&void 0!==t[r]||(-1!==["readonly","disabled"].indexOf(r)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(o.toString())&&(o=Number(o)),n.options[r]=o)});var o=this.c.div("jodit-container");o.classList.add("jodit"),o.classList.add("jodit-container"),o.classList.add("jodit_theme_".concat(this.o.theme||"default")),om(this.o.className,o),this.o.containerStyle&&Cr(o,this.o.containerStyle);var i=this.o.styleValues;
50Object.keys(i).forEach(function(e){var t=Sr(e);o.style.setProperty("--jd-".concat(t),i[e])}),o.setAttribute("contenteditable","false");var a=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(r.nodeName)&&(o=r,r.setAttribute(tm,r.className.toString()),a=o.innerHTML,o.innerHTML=""),o.classList.add("jodit_inline"),o.classList.add("jodit-container")),r!==o&&(r.style.display&&r.setAttribute(em,r.style.display),r.style.display="none");var s="workplace-slot",l=this.c.div(this.getFullElName(s,"top"),nm);o.appendChild(l);var c=this.c.div(this.getFullElName(s,"center"),nm),u=this.c.div("jodit-workplace",nm),d=this.c.div(this.getFullElName(s,"left"),nm),f=this.c.div(this.getFullElName(s,"right"),nm);c.appendChild(d),c.appendChild(u),c.appendChild(f),o.appendChild(c);var p=this.c.div(this.getFullElName(s,"bottom"),nm);o.appendChild(p),r.parentNode&&r!==o&&r.parentNode.insertBefore(o,r),Object.defineProperty(r,"component",{enumerable:!1,configurable:!0,value:this});var h=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});u.appendChild(h);var m={editor:h,element:r,container:o,workplace:u,slots:{top:l,bottom:p,center:c,left:d,right:f},statusbar:new Tp(this,o),options:this.isReady?ho(t||{},Qr.defaultOptions):this.options,history:new bp(this),editorWindow:this.ow};this.__elementToPlace.set(h,m),this.setCurrentPlace(m),this.places.push(m),this.setNativeEditorValue(this.getElementValue());var g=this.__initEditor(a),y=this.options;return ao(g,function(){y.enableDragAndDropFileToEditor&&y.uploader&&(y.uploader.url||y.uploader.insertImageAsBase64URI)&&n.uploader.bind(n.editor),n.__elementToPlace.get(n.editor)||n.__elementToPlace.set(n.editor,m),n.e.fire("afterAddPlace",m)})}},{key:"addDisclaimer",value:function(e){this.workplace.appendChild(e)}},{key:"setCurrentPlace",value:function(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(Xt),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}},{key:"__initEditor",value:function(e){var t=this;return ao(this.__createEditor(),function(){if(!t.isInDestruct){if(t.element!==t.container){var n=t.getElementValue();n!==t.getEditorValue()&&t.setEditorValue(n)}else null!=e&&t.setEditorValue(e);var r=t.o.defaultMode;if(t.o.saveModeInStorage){var o=t.storage.get("jodit_default_mode");"string"==typeof o&&(r=parseInt(o,10))}t.setMode(r),t.o.readonly&&(t.__wasReadOnly=!1,t.setReadOnly(!0)),t.o.disabled&&t.setDisabled(!0);try{t.ed.execCommand("defaultParagraphSeparator",!1,t.o.enter.toLowerCase())}catch(e){}}})}},{key:"__createEditor",value:function(){var e=this,t=this.editor,n=this.e.fire("createEditor",this);return ao(n,function(){e.isInDestruct||((!1===n||ir(n))&&ii.safeRemove(t),om(e.o.editorClassName,e.editor),e.o.style&&Cr(e.editor,e.o.style),e.e.on("synchro",function(){e.setEditorValue()}).on("focus",function(){e.editorIsActive=!0}).on("blur",function(){return e.editorIsActive=!1}),e.__prepareWYSIWYGEditor(),e.o.triggerChangeEvent&&e.e.on("change",e.async.debounce(function(){e.e&&e.e.fire(e.element,"change")},e.defaultTimeout)))})}},{key:"__prepareWYSIWYGEditor",value:function(){var e=this,t=this.editor;if(this.o.direction){var n="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=n,this.editor.setAttribute("dir",n),this.container.style.direction=n,this.container.setAttribute("dir",n),this.toolbar.setDirection(n)}this.e.on(t,"mousedown touchstart focus",function(){var n=e.__elementToPlace.get(t);n&&e.setCurrentPlace(n)}).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",function(t){var n,r;if(!e.o.readonly&&!e.__isSilentChange&&(n=t,(!(null!=(r=e.ew.KeyboardEvent)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](n):n instanceof r)||!t.isComposing)&&e.e&&e.e.fire)){if(!1===e.e.fire(t.type,t))return!1;e.synchronizeValues()}})}},{key:"fetch",value:function(e,t){var n=this,r=new is(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){qh(e,t,n[t])})}return e}({url:e},t),this.o.defaultAjaxOptions),o=function(){n.e.off("beforeDestruct",o),n.progressbar.progress(100).hide(),r.destruct()};this.e.one("beforeDestruct",o),this.progressbar.show().progress(30);var i=r.send();return i.finally(o).catch(function(){return null}),i}},{key:"destruct",value:function(){var e,n,r=this;if(!this.isInDestruct){this.setStatus(Cn.beforeDestruct),this.__elementToPlace.clear(),null===(e=ai(this,"storage"))||void 0===e||e.clear(),null===(n=ai(this,"buffer"))||void 0===n||n.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);var o=this.editor?this.getEditorValue():"";
50this.places.forEach(function(e){var t=e.container,n=e.workplace,i=e.statusbar,a=e.element,s=e.iframe,l=e.editor,c=e.history;if(a){if(a!==t)if(a.hasAttribute(em)){var u=$r(a,em);u&&(a.style.display=u,a.removeAttribute(em))}else a.style.display="";else a.hasAttribute(tm)&&(a.className=$r(a,tm)||"",a.removeAttribute(tm));a.hasAttribute("style")&&!$r(a,"style")&&a.removeAttribute("style"),i.destruct(),r.e.off(t),r.e.off(a),r.e.off(l),ii.safeRemove(n),ii.safeRemove(l),t!==a&&ii.safeRemove(t),Object.defineProperty(a,"component",{enumerable:!1,configurable:!0,value:null}),ii.safeRemove(s),t===a&&(a.innerHTML=o),c.destruct()}}),this.places.length=0,this.currentPlace={},delete wa[this.id],Gh(Wh(t.prototype),"destruct",this).call(this)}}}],o=[{key:"ready",get:function(){return new Promise(function(e){Aa.on("joditready",e)})}},{key:"atom",value:function(e){return Zr(e)}},{key:"make",value:function(e,t){return new this(e,t)}},{key:"isJoditAssigned",value:function(e){return e&&Zn(e.component)&&!e.component.isInDestruct}},{key:"defaultOptions",get:function(){return Qr.defaultOptions}}],r&&Vh(n.prototype,r),o&&Vh(n,o),t}(xd);function om(e,t){e&&e.split(/\s+/).forEach(function(e){return t.classList.add(e)})}rm.fatMode=ht,rm.plugins=ka,rm.modules=Ta,rm.ns=Ta,rm.decorators={},rm.constants=i,rm.instances=wa,rm.lang=Sn,rm.core={Plugin:ip},Zh([si],rm.prototype,"createInside",null),Zh([si],rm.prototype,"message",null),Zh([si],rm.prototype,"s",null),Zh([si],rm.prototype,"uploader",null),Zh([si],rm.prototype,"filebrowser",null),Zh([Ua()],rm.prototype,"synchronizeValues",null),Zh([ma(":internalChange")],rm.prototype,"updateElementValue",null),Zh([On],rm.prototype,"__prepareWYSIWYGEditor",null),rm=Xh=Zh([qa(zd)],rm);const im='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',am='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',sm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',lm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',cm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> ',um='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> ',dm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> ',fm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> ',pm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> ',hm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> ',mm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 11
507-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> ',gm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> ',ym='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> ',vm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> ',bm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',_m='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> ',wm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> ',Sm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> ',Em='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> ',km='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> ',Tm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',xm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> ',Om='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> ',Cm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> ',Pm='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> ',Am='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q
50-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> ',Im='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> ',Rm={};var jm={};jm={ar:{"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"Ø¥Ø
50¶Ø§ÙØ© مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Press Alt for custom resizing":"اضغط البديل لتغيير حجم مخصص","Line height":"ارتفاع الخط",spellcheck:"التدقيق الإملائي","Speech Recognize":"التعرف على الكلام",All:"تحديد الكل"},cs_cz:{"Type something":"NapiÅ¡ něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naÅ¡i stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. VÅ¡echna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"ZmenÅ¡it odsazení","Increase Indent":"ZvětÅ¡it odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type
vendor: 13,960 bytes, line 50
50 name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"},de:{"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochstellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Press Alt for custom resizing":"Drücken Sie Alt für benutzerdefinierte Größenanpassung","License: %s":"Lizenz: %s"},en:{"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"},es:{"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","
50Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"},fi:{"Type something":"Kirjoita jotain...",Advanced:"Avanzado","About Jodit":"Tietoja Jodit:ista","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit käyttäjän ohje","contains detailed help for using":"sisältää tarkempaa tietoa käyttämiseen","For information about the license, please go to our website:":"Tietoa lisensoinnista, vieraile verkkosivuillamme:","Buy full version":"Osta täysi versio","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Kaikki oikeudet pidätetään.",Anchor:"Ankkuri","Open in new tab":"Avaa uudessa välilehdessä","Open in fullsize":"Avaa täysikokoisena","Clear Formatting":"Poista muotoilu","Fill color or set the text color":"Täytä värillä tai aseta tekstin väri",Redo:"Tee uudelleen",Undo:"Peruuta",Bold:"Lihavoitu",Italic:"Kursiivi","Insert Unordered List":"Lisää järjestämätön lista","Insert Ordered List":"Lisää järjestetty lista","Align Center":"Asemoi keskelle","Align Justify":"Asemoi tasavälein","Align Left":"Asemoi vasemmalle","Align Right":"Asemoi oikealle","Insert Horizontal Line":"Lisää vaakasuuntainen viiva","Insert Image":"Lisää kuva","Insert file":"Lisää tiedosto","Insert youtube/vimeo video":"Lisää Youtube-/vimeo- video","Insert link":"Lisää linkki","Font size":"Kirjasimen koko","Font family":"Kirjasimen nimi","Insert format block":"Lisää muotoilualue",Normal:"Normaali","Heading 1":"Otsikko 1","Heading 2":"Otsikko 2","Heading 3":"Otsikko 3","Heading 4":"Otsikko 4",Quote:"Lainaus",Code:"Koodi",Insert:"Lisää","Insert table":"Lisää taulukko","Decrease Indent":"Pienennä sisennystä","Increase Indent":"Lisää sisennystä","Select Special Character":"Valitse erikoismerkki","Insert Special Character":"Lisää erikoismerkki","Paint format":"Maalaa muotoilu","Change mode":"Vaihda tilaa",Margins:"Marginaalit",top:"ylös",right:"oikealle",bottom:"alas",left:"vasemmalle",Styles:"CSS-tyylit",Classes:"CSS-luokat",Align:"Asemointi",Right:"Oikea",Center:"Keskellä",Left:"Vasen","--Not Set--":"--Ei asetettu--",Src:"Fuente",Title:"Otsikko",Alternative:"Vaihtoehtoinen teksti",Filter:"Suodatin",Link:"Linkki","Open link in new tab":"Avaa uudessa välilehdessä",Image:"Kuva",file:"Tiedosto","Image properties":"Kuvan ominaisuudet",Cancel:"Peruuta",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Koodi on HTML:n tapaista. Säilytetäänkö HTML?","Paste as HTML":"Liitä HTML:nä?",Keep:"Säilytä",Clean:"Tyhjennä","Insert as Text":"Lisää tekstinä","Word Paste Detected":"Word liittäminen havaittu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Liitetty sisältö tulee Microsoft Word-/Excel- tiedostosta. Haluatko säilyttää muotoilun vai poistaa sen?","Insert only Text":"Lisää vain teksti","File Browser":"Tiedostoselain","Error on load list":"Virhe listan latauksessa","Error on load folders":"Virhe kansioiden latauksessa","Are you sure?":"Oletko varma?","Enter Directory name":"Syötä hakemiston nimi","Create directory":"Luo hakemisto","type name":"Syötä nimi","Drop image":"Pudota kuva","Drop file":"Pudota tiedosto","or click":"tai klikkaa","Alternative text":"Vaihtoehtoinen teksti",Browse:"Selaa",Upload:"Lataa",Backgroun
50d:"Tausta",Text:"Teksti",Top:"Ylös",Middle:"Keskelle",Bottom:"Alas","Insert column before":"Lisää sarake ennen","Insert column after":"Lisää sarake jälkeen","Insert row above":"Lisää rivi ylös","Insert row below":"Lisää rivi alle","Delete table":"Poista taulukko","Delete row":"Poista rivi","Delete column":"Poista sarake","Empty cell":"Tyhjennä solu",Delete:"Poista","Strike through":"Yliviivaus",Underline:"Alleviivaus",Break:"Vaihto","Search for":"Etsi arvoa","Replace with":"Korvaa arvolla",Replace:"Korvaa",Edit:"Muokkaa","Vertical align":"Pystyasemointi","Horizontal align":"Vaaka-asemointi","Sort by changed":"Järjestä muuttuneilla","Sort by name":"Järjestä nimellä","Sort by size":"Järjestä koolla","Add folder":"Lisää kansio",Split:"Jaa","Split vertical":"Jaa pystysuuntaisesti","Split horizontal":"Jaa vaakasuuntaisesti",Merge:"Yhdistä","Add column":"Lisää sarake","Add row":"Lisää rivi",Border:"Reuna","Embed code":"Sisällytä koodi",Update:"Päivitä",superscript:"yläviite",subscript:"alaviite","Cut selection":"Leikkaa valinta",Paste:"Liitä","Choose Content to Paste":"Valitse liitettävä sisältö","Chars: %d":"Merkit: %d","Words: %d":"Sanat: %d",All:"Kaikki","Select %s":"Valitse: %s","Select all":"Valitse kaikki",source:"HTML",bold:"lihavoitu",italic:"kursiivi",brush:"sivellin",link:"linkki",undo:"peruuta",redo:"tee uudelleen",table:"taulukko",image:"kuva",eraser:"pyyhekumi",paragraph:"kappale",fontsize:"tekstin koko",video:"video",font:"kirjasin",about:"tietoja",print:"tulosta",underline:"alleviivaa",strikethrough:"yliviivaa",indent:"sisennä",outdent:"pienennä sisennystä",fullsize:"täysikokoinen",shrink:"pienennä",hr:"vaakaviiva",ul:"järjestetty lista",ol:"järjestämätön lista",cut:"leikkaa",selectall:"valitse kaikki","Open link":"Avaa linkki","Edit link":"Muokkaa linkkiä","No follow":"Älä seuraa",Unlink:"Pura linkki",Eye:"Ver",pencil:"Muokkaa"," URL":"URL",Reset:"Nollaa",Save:"Tallenna","Save as ...":"Tallenna nimellä ...",Resize:"Muuta kokoa",Crop:"Rajaa",Width:"Leveys",Height:"Korkeus","Keep Aspect Ratio":"Säilytä kuvasuhde",Yes:"Kyllä",No:"Ei",Remove:"Poista",Select:"Valitse","You can only edit your own images. Download this image on the host?":"Voit muokata vain omia kuvia. Lataa tämä kuva palvelimelle?","The image has been successfully uploaded to the host!":"Kuva on onnistuneesti ladattu palvelimelle!",palette:"paletti","There are no files":"Tiedostoja ei ole",Rename:"Nimeä uudelleen","Enter new name":"Syötä uusi nimi",preview:"esikatselu",download:"Lataa","Paste from clipboard":"Liitä leikepöydältä","Your browser doesn't support direct access to the clipboard.":"Selaimesi ei tue suoraa pääsyä leikepöydälle.","Copy selection":"Kopioi valinta",copy:"kopioi","Border radius":"Reunan pyöristys","Show all":"Näytä kaikki",Apply:"Käytä","Please fill out this field":"Täytä tämä kenttä","Please enter a web address":"Annan web-osoite",Default:"Oletus",Circle:"Ympyrä",Dot:"Piste",Quadrate:"Neliö","Lower Alpha":"Pieni aakkosellinen","Lower Greek":"Pieni kreikkalainen","Lower Roman":"Pieni roomalainen","Upper Alpha":"Suuri aakkosellinen","Upper Roman":"Suuri roomalainen",Find:"Hae","Find Previous":"Hae edellinen","Find Next":"Hae seuraava","Insert className":"Lisää luokkanimi","Press Alt for custom resizing":"Paina Alt muokattuun koon muuttamiseen","Class name":"Luokan nimi","License: %s":"Lisenssi: %s"},fr:{"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <->
50 code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"},he:{"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה  בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type
vendor: 7,069 bytes, line 50
50 name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Press Alt for custom resizing":"לחץ על אלט לשינוי גודל מותאם אישית","License: %s":"רישיון: %s"},hu:{"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","
50Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Press Alt for custom resizing":"Nyomja meg az Alt egyéni átméretezés","License: %s":"Licenc: %s"},id:{"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisi
50pkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"},it:{"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro 
50sito web:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.",Anchor:"Link","Open in new tab":"Apri in una nuova scheda","Open in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Pulisci Formattazione","Fill color or set the text color":"Colore di sfondo o del testo",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci lista ordinata","Align Center":"Allinea al centro","Align Justify":"Allineamento Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci una linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci link","Font size":"Dimensione carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona un carattere speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modalita'",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incolla testo da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type
vendor: 6,942 bytes, line 50
50 name":"Digita il nome","Drop image":"Cancella immagine","Drop file":"Cancella file","or click":"o clicca","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci la colonna prima","Insert column after":"Inserisci la colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca per","Replace with":"Sostituisci con",Replace:"Sostituisci",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividi","Split vertical":"Dividi verticalmente","Split horizontal":"Dividi orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiorna",superscript:"indice",subscript:"pedice","Cut selection":"Taglia selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"risorsa",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",underline:"Sottolineato",strikethrough:"Barrato",indent:"aumenta rientro",outdent:"riduci rientro",fullsize:"espandi",shrink:"comprimi",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Rimuovi link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Ritaglia",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantieni le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovi",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Vuoi scaricare questa immagine dal server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata correttamente sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"Rinomina","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scarica","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Copia selezione",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applica","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Default",Circle:"Cerchio",Dot:"Punto",Quadrate:"Quadrato","Lower Alpha":"Lettera Minuscola","Lower Greek":"Lettera Greca Minuscola","Lower Roman":"Numero Romano Minuscolo","Upper Alpha":"Lettera Maiuscola","Upper Roman":"Numero Romano Maiuscolo",Find:"Trova","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Press Alt for custom resizing":"Premere Alt per il ridimensionamento personalizzato","License: %s":"Licenza: %s"},ja:{"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","
50Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Press Alt for custom resizing":"カスタムサイズ変更のためのAltキーを押します","License: %s":"ライセンス: %s"},ko:{"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Backgroun
50d:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Press Alt for custom resizing":"사용자 지정 크기 조정에 대 한 고도 누르십시오"},mn:{"Type something":"Бичээд үзээрэй",Advanced:"Дэвшилтэт","About Jodit":"Jodit-ын талаар ","Jodit Editor":"Jodit програм","Jodit User's Guide":"Jodit гарын авлага","contains detailed help for using":"хэрэглээний талаар дэлгэрэнгүй мэдээллийг агуулна","For information about the license, please go to our website:":"Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:","Buy full version":"Бүрэн хувилбар худалдан авах","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.",Anchor:"Холбоо барих","Open in new tab":"Шинэ табаар нээх","Open in fullsize":"Бүтэн дэлгэцээр нээх","Clear Formatting":"Форматыг арилгах","Fill color or set the text color":"Өнгөөр будах эсвэл текстийн өнгө сонгох",Redo:"Дахих",Undo:"Буцаах",Bold:"Тод",Italic:"Налуу","Insert Unordered List":"Тэмдэгт жагсаалт нэмэх","Insert Ordered List":"Дугаарт жагсаалт нэмэх","Align Center":"Голлож байрлуулах","Align Justify":"Тэгшитгэн байрлуулах","Align Left":"Зүүнд байрлуулах","Align Right":"Баруунд байрлуулах","Insert Horizontal Line":"Хэвтээ зураас нэмэх","Insert Image":"Зураг нэмэх","Insert file":"Файл нэмэх","Insert youtube/vimeo video":"Youtube/Vimeo видео нэмэх","Insert link":"Холбоос нэмэх","Font size":"Фонтын хэмжээ","Font family":"Фонтын бүл","Insert format block":"Блок нэмэх",Normal:"Хэвийн","Heading 1":"Гарчиг 1","Heading 2":"Гарчиг 2","Heading 3":"Гарчиг 3","Heading 4":"Гарчиг 4",Quote:"Ишлэл",Code:"Код",Insert:"Оруулах","Insert table":"Хүснэгт оруулах","Decrease Indent":"Доголын зай хасах","Increase Indent":"Доголын зай нэмэх","Select Special Character":"Тусгай тэмдэгт сонгох","Insert Special Character":"Тусгай тэмдэгт нэмэх","Paint format":"Зургийн формат","Change mode":"Горим өөрчлөх",Margins:"Цаасны зай",top:"Дээрээс",right:"Баруунаас",bottom:"Доороос",left:"Зүүнээс",Styles:"CSS стиль",Classes:"CSS анги",Align:"Байрлуулах",Right:"Баруун",Center:"Төв",Left:"Зүүн","--Not Set--":"--Тодорхойгүй--",Src:"Эх үүсвэр",Title:"Гарчиг",Alternative:"Алтернатив текст",Link:"Холбоос","Open link in new tab":"Холбоосыг шинэ хавтсанд нээх",Image:"Зураг",file:"Файл","Image properties":"Зургийн үзүүлэлт",Cancel:"Цуцлах",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Таны код HTML кодтой адил байна. HTML форматаар үргэлжлүүлэх үү?","Paste as HTML":"HTML байдлаар буулгах",Keep:"Хадгалах",Clean:"Цэвэрлэх","Insert as Text":"Текст байдлаар нэмэх","Word Paste Detected":"Word байдлаар буулгасан байна","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Буулгасан агуулга Microsoft Word/Excel форматтай байна. Энэ форматыг хэвээр хадгалах уу эсвэл арилгах уу?","Insert only Text":"Зөвхөн текст оруулах","File Browser":"Файлын цонх","Error on load list":"Жагсаалт татах үед алдаа гарлаа","Error on load folders":"Хавтас татах үед алдаа гарлаа","Are you sure?":"Итгэлтэй байна уу?","Enter Directory name":"Хавтсын нэр оруулах","Create directory":"Хавтас үүсгэх","type
vendor: 7,909 bytes, line 50
50 name":"Нэр бичих","Drop image":"Зураг буулгах","Drop file":"Файл буулгах","or click":"эсвэл товш","Alternative text":"Алтернатив текст",Browse:"Үзэх",Upload:"Байршуулах",Background:"Арын зураг",Text:"Текст",Top:"Дээр",Middle:"Дунд",Bottom:"Доор","Insert column before":"Урд нь багана нэмэх","Insert column after":"Ард нь багана нэмэх","Insert row above":"Дээр нь мөр нэмэх","Insert row below":"Доор нь мөр нэмэх","Delete table":"Хүснэгт устгах","Delete row":"Мөр устгах","Delete column":"Багана устгах","Empty cell":"Нүд цэвэрлэх",Delete:"Устгах","Strike through":"Дээгүүр зураас",Underline:"Доогуур зураас",Break:"Мөрийг таслах","Search for":"Хайх","Replace with":"Үүгээр солих",Replace:"Солих",Edit:"Засах","Vertical align":"Босоо эгнүүлэх","Horizontal align":"Хэвтээ эгнүүлэх",Filter:"Шүүх","Sort by changed":"Сүүлд өөрчлөгдсөнөөр жагсаах","Sort by name":"Нэрээр жагсаах","Sort by size":"Хэмжээгээр жагсаах","Add folder":"Хавтас нэмэх",Split:"Задлах","Split vertical":"Баганаар задлах","Split horizontal":"Мөрөөр задлах",Merge:"Нэгтгэх","Add column":"Багана нэмэх","Add row":"Мөр нэмэх",Border:"Хүрээ","Embed code":"Код оруулах",Update:"Шинэчлэх",superscript:"Дээд индекс",subscript:"Доод индекс","Cut selection":"Сонголтыг таслах",Paste:"Буулгах","Choose Content to Paste":"Буулгах агуулгаа сонгоно уу","Chars: %d":"Тэмдэгт: %d","Words: %d":"Үг: %d",All:"Бүгдийг","Select %s":"Сонго: %s","Select all":"Бүгдийг сонго",source:"Эх үүсвэр",bold:"Тод",italic:"Налуу",brush:"Будах",link:"Холбоос",undo:"Буцаах",redo:"Дахих",table:"Хүснэгт",image:"Зураг",eraser:"Баллуур",paragraph:"Параграф",fontsize:"Фонтын хэмжээ",video:"Видео",font:"Фонт",about:"Тухай",print:"Хэвлэх",underline:"Доогуур зураас",strikethrough:"Дээгүүр зураас",indent:"Догол нэмэх",outdent:"Догол багасгах",fullsize:"Бүтэн дэлгэц",shrink:"Багасга",hr:"Хаалт",ul:"Тэмдэгт жагсаалт",ol:"Дугаарласан жагсаалт",cut:"Таслах",selectall:"Бүгдийг сонго","Open link":"Холбоос нээх","Edit link":"Холбоос засах","No follow":"Nofollow özelliği",Unlink:"Холбоос салгах",Eye:"Нүд",pencil:"Засах"," URL":"URL",Reset:"Буцаах",Save:"Хадгалах","Save as ...":"Өөрөөр хадгалах",Resize:"Хэмжээг өөрчил",Crop:"Тайрах",Width:"Өргөн",Height:"Өндөр","Keep Aspect Ratio":"Харьцааг хадгал",Yes:"Тийм",No:"Үгүй",Remove:"Арилга",Select:"Сонго","You can only edit your own images. Download this image on the host?":"Та зөвхөн өөрийн зургуудаа янзлах боломжтой. Энэ зургийг өөр лүүгээ татмаар байна уу?","The image has been successfully uploaded to the host!":"Зургийг хост руу амжилттай хадгалсан",palette:"Палет","There are no files":"Энд ямар нэг файл алга",Rename:"Шинээр нэрлэх","Enter new name":"Шинэ нэр оруулна уу",preview:"Урьдчилан харах",download:"Татах","Paste from clipboard":"Самбараас хуулах ","Your browser doesn't support direct access to the clipboard.":"Энэ вэб хөтчөөс самбарт хандах эрх алга.","Copy selection":"Сонголтыг хуул",copy:"Хуулах","Border radius":"Хүрээний радиус","Show all":"Бүгдийг харуулах",Apply:"Хэрэгжүүл","Please fill out this field":"Энэ талбарыг бөглөнө үү","Please enter a web address":"Вэб хаягаа оруулна уу",Default:"Үндсэн",Circle:"Дугуй",Dot:"Цэг",Quadrate:"Дөрвөлжин",Find:"Хайх","Find Previous":"Өмнөхийг ол","Find Next":"Дараагийнхийг ол","Insert className":"Бүлгийн нэрээ оруулна уу","Press Alt for custom resizing":"Хэмжээсийг шинээр өөчрлөхийн тулд Alt товчин дээр дарна уу","License: %s":"Лиценз: %s"},nl:{"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","
50Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte","License: %s":"Licentie: %s"},no:{"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, besøk vår nettside:","Buy full version":"Kjøp fullversjon","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett © XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"Åpne i ny fane","Open in fullsize":"Åpne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gjør om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"Høyrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-vi
50deo","Insert link":"Sett inn lenke","Font size":"Skriftstørrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"Øk innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"høyre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"Høyre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"Åpne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne før","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"Tøm celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"Søk etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold å lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gjør om",table:"tabell",image:"bilde",eraser:"viskelær",paragraph:"avsnitt",fontsize:"skriftstørrelse",video:"video",font:"skrift",about:"om redigeringsverktøyet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full størrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"Åpne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppfølging",Unlink:"Fjern lenke",Eye:"Forhåndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre størrelse",Crop:"Beskjær",Width:"Bredde",Height:"Høyde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Slå sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter størrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forhåndsvisning","Line height":"Linjehøyde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Foreløpige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk på Alt for å endre størrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du k
50an bare redigere dine egne bilder. Last ned dette bildet på verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din støtter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"},pl:{"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type
vendor: 6,551 bytes, line 50
50 name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Press Alt for custom resizing":"Naciśnij Alt, aby zmienić rozmiar","License: %s":"Licencja: %s"},pt_br:{"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","
50Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Press Alt for custom resizing":"Pressione Alt para redimensionamento personalizado","License: %s":"Licença: %s"},ru:{"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Ð
50’ыровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"},tr:{"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. T
50üm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type
vendor: 7,996 bytes, line 50
50 name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"},ua:{"Type something":"Напишіть щось","About Jodit":"Про Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit інструкція користувача","contains detailed help for using":"містить детальну інформацію щодо користування","For information about the license, please go to our website:":"Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:","Buy full version":"Купити повну версію","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.",Anchor:"Анкор","Open in new tab":"Відкрити у новій вкладці","Open in fullsize":"Відкрити редактор в повному розмірі","Clear Formatting":"Очистити форматування","Fill color or set the text color":"Колір заливки або колір текста",Redo:"Повторити",Undo:"Відмінити",Bold:"Жирний",Italic:"Курсів","Insert Unordered List":"Вставити невпорядкований список","Insert Ordered List":"Вставити нумерованний список","Align Center":"Вирівняти по центру","Align Justify":"Вирівняти по ширині","Align Left":"Вирівняти по лівому краю","Align Right":"Вирівняти по правому краю","Insert Horizontal Line":"Вставити горизонтальну лінію","Insert Image":"Вставити зображення","Insert file":"Вставити файл","Insert youtube/vimeo video":"Вставити відео","Insert link":"Вставити посилання","Font size":"Розмір шрифту","Font family":"Шрифт","Insert format block":"Вставити блочний елемент",Normal:"Нормальний текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставити","Insert table":"Вставити таблицю","Decrease Indent":"Збільшити відступ","Increase Indent":"Зменшити відступ","Select Special Character":"Оберіть спеціальный символ","Insert Special Character":"Вставити спеціальный символ","Paint format":"Формат краски","Change mode":"Джерело",Margins:"Відступи",top:"зверху",right:"справа",bottom:"знизу",left:"зліва",Styles:"Стилі",Classes:"Класи",Align:"Вирівнювання",Right:"По правому краю",Center:"По центру",Left:"По лівому краю","--Not Set--":"--не встановлено--",Src:"src",Title:"Заголовок",Alternative:"Альтернативний текст (alt)",Link:"Посилання","Open link in new tab":"Відкрити посилання в новій вкладці",file:"Файл",Advanced:"Розширені","Image properties":"Властивості зображення",Cancel:"Відміна",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Текст, який Ви намагаєтесь вставити схожий на HTML. Вставити його як HTML?","Paste as HTML":"Вставити його як HTML",Keep:"Зберегти оригінал",Clean:"Почистити","Insert as Text":"Вставити як текст","Insert only Text":"Вставити тільки текст","Word Paste Detected":"Можливо це фрагмент Word або Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Ви вставляєте контент з документа Microsoft Word або Excel. Бажаєте зберегти форматування?","File Browser":"Браузер файлів","Error on load list":"Помилка при завантаженні списку зображень","Error on load folders":"Помилка при завантаженні списку папок","Are you sure?":"Ви впевнені?","Enter Directory name":"Введіть назву папки","Create directory":"Створити папку","type name":"введіть назву","
50Drop image":"Перетягніть зображення сюди","Drop file":"Перетягніть файл сюди","or click":"або клікніть","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Завантаження",Background:"Фон",Text:"Текст",Top:" Вгору",Middle:"По центру",Bottom:"Донизу","Insert column before":"Вставити стовпець до","Insert column after":"Вставити стовпець після","Insert row above":"Вставити рядок вище","Insert row below":"Вставити рядок нижче","Delete table":"Видалити таблицю","Delete row":"Видалити рядок","Delete column":"Видалити стовпчик","Empty cell":"Очистити кліинку",source:"HTML",bold:"жирний",italic:"курсів",brush:"заливка",link:"посилання",undo:"відмінити",redo:"повторити",table:"таблиця",image:"зображення",eraser:"видалення",paragraph:"параграф",fontsize:"розмір шрифту",video:"відео",font:"шрифт",about:"про редактор",print:"друк",underline:"підкреслений",strikethrough:"закреслений",indent:"відступ",outdent:"заступ",fullsize:"на весь екран",shrink:"звичайний розмір",hr:"лінія",ul:"Список",ol:"Нумерований список",cut:"Вирізати",selectall:"Виділити все","Embed code":"Код","Open link":"Відкрити посилання","Edit link":"Редагувати посилання","No follow":"Атрибут nofollow",Unlink:"Видалити посилання",Eye:"Перегляд",pencil:"Редагування",Update:"Оновити"," URL":"URL",Edit:"Редагувати","Horizontal align":"Горизонтальне вирівнювання",Filter:"Фільтр","Sort by changed":"Сортувати за зміною","Sort by name":"Сортувати за ім'ям","Sort by size":"Сортувати за розміром","Add folder":"Додати папку",Reset:"Відновити",Save:"Зберегти","Save as ...":"Зберегти як",Resize:"Змінити розмір",Crop:"Обрізати розмір",Width:"Ширина",Height:"Висота","Keep Aspect Ratio":"Зберегти пропорції",Yes:"Так",No:"Ні",Remove:"Видалити",Select:"Вибрати","Chars: %d":"Символів: %d","Words: %d":"Слів: %d",All:"Вибрати все","Select %s":"Вибрати: %s","Select all":"Вибрати все","Vertical align":"Вертикальне вирівнювання",Split:"Розділити","Split vertical":"Розділити по вертикалі","Split horizontal":"Розділити по горизонталі",Merge:"Об'єднати в одну","Add column":"Додати стовпчик","Add row":"Додати рядок",Delete:"Видалити",Border:"Рамка","License: %s":"Ліцензія: %s","Strike through":"Закреслений",Underline:"Підкреслений",superscript:"верхній індекс",subscript:"індекс","Cut selection":"Обрізати вибране",Break:"Межа","Search for":"Шукати","Replace with":"Замінити на",Replace:"Замінити",Paste:"Вставити","Choose Content to Paste":"Обрати контент для вставки","You can only edit your own images. Download this image on the host?":"Ви можете редагувати лише власні зображення. Завантажити зображення на ваш сервер?","The image has been successfully uploaded to the host!":"Зображення успішно завантажено на сервер!",palette:"палітра","There are no files":"Файли відсутні",Rename:"Змінити назву","Enter new name":"Введіть нове імя'",preview:"Попередній перегляд",download:"Завантажити","Paste from clipboard":"Вставити з буфера обміну","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не підтримує доступ до буфера обміну.","Copy selection":"Копіювати виділене",copy:"копія","Border radius":"Радіус рамки","Show all":"Показати все",Apply:"Застосувати","Please fill out this field":"Будь ласка, заповніть це поле","Please enter a web address":"Будь ласка, введіть веб-адресу",Default:"За замовченням",Circle:"Коло",Dot:"Крапка",Quadrate:"Квадрат",Find:"Знайти","Find Previous":"Знайти попередні","Find Next":"Знайти наступні","Insert className":"Вставити клас","Press Alt for custom resizing":"Натисніть Alt для зміни розміру"}
50,zh_cn:{"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type
vendor: 5,906 bytes, line 50
50 name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Press Alt for custom resizing":"按Alt自定义调整大小","License: %s":"许可证: %s"},zh_tw:{"Type something":"輸入一些內容",Advanced:"進階","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"相關授權條款資訊,請造訪我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"錨點","Open in new tab":"在新分頁開啟","Open in fullsize":"全螢幕編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"取消復原",Undo:"復原",Bold:"粗體",Italic:"斜體","Insert Unordered List":"項目符號清單","Insert Ordered List":"編號清單","Align Center":"置中","Align Justify":"文字對齊","Align Left":"靠左","Align Right":"靠右","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"檔案","Insert youtube/vimeo video":"插入 youtube/vimeo 影片","Insert link":"插入連結","Font size":"文字大小","Font family":"字型","Insert format block":"格式化區塊",Normal:"內文","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引文",Code:"程式碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮排","Increase Indent":"增加縮排","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"檢視原始碼",Margins:"邊距",top:"上",right:"右",bottom:"下",left:"左",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"靠右",Center:"置中",Left:"靠左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新分頁開啟連結",Image:"圖片",file:"檔案","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"您的程式碼與 HTML 類似,是否貼上 HTML 格式?","Paste as HTML":"貼上 HTML",Keep:"保留原始格式",Clean:"清除格式","Insert as Text":"以純文字貼上","Word Paste Detected":"貼上 Word 格式","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在貼上 Word/Excel 文件的內容,是否保留原始格式?","Insert only Text":"僅貼上內文","File Browser":"檔案瀏覽","Error on load list":"清單載入錯誤","Error on load folders":"資料夾載入錯誤","Are you sure?":"您確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","
50Drop image":"拖曳圖片至此","Drop file":"拖曳檔案至此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"插入左方欄","Insert column after":"插入右方欄","Insert row above":"插入上方列","Insert row below":"插入下方列","Delete table":"刪除表格","Delete row":"刪除整列","Delete column":"刪除整欄","Empty cell":"清除內容","Chars: %d":"字元數: %d","Words: %d":"單字數: %d","Strike through":"刪除線",Underline:"底線",superscript:"上標",subscript:"下標","Cut selection":"剪下","Select all":"全選",Break:"斷行","Search for":"尋找","Replace with":"取代為",Replace:"取代",Paste:"貼上","Choose Content to Paste":"選擇內容並貼上",All:"全部",source:"原始碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"連結",undo:"復原",redo:"取消復原",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"文字大小",video:"影片",font:"字型",about:"關於",print:"列印",underline:"底線",strikethrough:"刪除線",indent:"增加縮排",outdent:"減少縮排",fullsize:"全螢幕",shrink:"縮減",hr:"分隔線",ul:"項目符號清單",ol:"編號清單",cut:"剪下",selectall:"全選","Open link":"打開連結","Edit link":"編輯連結","No follow":"No follow",Unlink:"取消連結",Eye:"查看"," URL":"URL",Reset:"重設",Save:"儲存","S
50ave as ...":"另存為...",Resize:"調整大小",Crop:"裁切",Width:"寬",Height:"高","Keep Aspect Ratio":"維持長寬比",Yes:"是",No:"否",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"新增欄","Add row":"新增列",Border:"邊框","Embed code":"嵌入程式碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新增資料夾",Split:"分割","Split vertical":"垂直分割","Split horizontal":"水平分割","You can only edit your own images. Download this image on the host?":"您只能編輯您自己的圖片。是否下載此圖片?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色盤",pencil:"鉛筆","There are no files":"沒有檔案",Rename:"重新命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼簿貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪貼簿。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示全部",Apply:"應用","Please fill out this field":"請輸入此欄位","Please enter a web address":"請輸入網址",Default:"預設",Circle:"圓圈",Dot:"點",Quadrate:"方形",Find:"尋找","Find Previous":"尋找上一個","Find Next":"尋找下一個","Insert className":"插入 class 名稱","Press Alt for custom resizing":"按住 Alt 以調整自訂大小",Edit:"編輯","License: %s":"許可證: %s"}};var Mm=function(e){return e?e.default||e:{}},Dm={};An(Mm(Rm))&&Mm(Rm).forEach(function(e,t){Dm[t]=e}),Object.keys(jm).forEach(function(e){var t=Mm(jm[e]);An(t)?(jm[e]={},t.forEach(function(t,n){jm[e][Dm[n]]=t})):jm[e]=t});const Nm=jm;function Lm(e){return function(t){return!0!==e.e.fire("backSpaceIsMovedIgnore",t)}}function Fm(e,t,n,r){if(t&&ii.isElement(n)){ii.moveContent(t,n,!r,Lm(e));for(var o=t;o&&o!==e.editor&&ii.isEmpty(o);){var i=o.parentElement;ii.safeRemove(o),o=i}return!0}return!1}function Bm(e,t,n){var r=ii.findSibling(t,n),o=ii.findSibling(t,!n);if(!ii.closest(t,ii.isElement,e.editor)&&ii.isList(r)&&ii.isList(o)&&ii.isTag(r.lastElementChild,"li")&&ii.isTag(o.firstElementChild,"li")){var i=e.s,a=i.setCursorBefore,s=i.setCursorAfter,l=r.lastElementChild,c=o.firstElementChild;return oo(n?ii.prepend:ii.append,c,t),ii.moveContent(o,r,!n,Lm(e)),ii.safeRemove(o),oo(n?ii.append:ii.prepend,l,t),oo(n?a:s,t),!0}return!1}function zm(e,t,n,r){var o,i,a,s=n?-1:1,l=ii.sibling(t,!n),c=ii.sibling(t,n),u=null,d=!1;for(c||(c=Um(t,n,e.editor));c&&(ii.isText(c)||ii.isInlineBlock(c));){for(;ii.isInlineBlock(c);)c=n?null==c?void 0:c.lastChild:null==c?void 0:c.firstChild;if(!c)break;if((null===(o=c.nodeValue)||void 0===o?void 0:o.length)&&(a=Hm(c,n,s,l),!c.nodeValue.length&&ii.isInlineBlock(c.parentNode)&&(c.nodeValue=vt)),(null===(i=c.nodeValue)||void 0===i?void 0:i.length)||(u=c),!jn(a)&&a!==vt){Vm(n,c,t,r,a,e),d=!0;break}var f=Um(c,n,e.editor);u&&(ii.safeRemove(u),u=null),c=f}return u&&(ii.safeRemove(u),u=null),d&&(function(e){for(var t=e.parentElement;t&&ii.isInlineBlock(t)&&ii.isTag(t,"a");){var n=t.parentElement;ii.isEmpty(t)&&(ii.after(t,e),ii.safeRemove(t)),t=n}}(t),function(e,t){t.parentElement!==e.editor&&ii.isBlock(t.parentElement)&&ii.each(t.parentElement,ii.isEmptyTextNode)&&ii.after(t,e.createInside.element("br"))}(e,t),e.s.setCursorBefore(t),ii.isTag(t.previousSibling,"br")&&!ii.findNotEmptySibling(t,!1)&&ii.after(t,e.createInside.element("br"))),d}function Um(e,t,n){var r=ii.sibling(e,t);return!r&&e.parentNode&&e.parentNode!==n&&(r=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=function(e){return t?e.firstChild:e.lastChild},i=ii.findNotEmptyNeighbor(e,!t,n);if(r&&ii.isElement(i)&&!ii.isInlineBlock(i))return null;if(i)do{if(!o(i))return i;i=o(i)}while(i);return null}(e,!t,n,!0)),r}function Hm(e,t,n,r){var o=Ln(e.nodeValue),i=o.length,a=t?i-1:0;if(o[a]===vt)for(;o[a]===vt;)a+=n;var s=o[a];if(o[a+n]===vt){for(a+=n;o[a]===vt;)a+=n;a+=t?1:-1}return function(e,t,n){var r;if(!e||!ii.isText(e)||(t?/^ /:/ $/).test(null!==(r=e.nodeValue)&&void 0!==r?r:"")||!fr(e.nodeValue||"").length)for(var o=t?n.length-1:0;(t?o>=0:o<n.length)&&" "===n[o];o+=t?-1:1)n[o]=bt}(r,t,o=t&&a<0?[]:o.slice(t?0:a+1,t?a:i)),e.nodeValue=o.join(""),s}function Vm(e,t,n,r,o,i){oo(e?ii.after:ii.before,t,n),("sentence"===r||"word"===r&&" "!==o&&o!==bt)&&zm(i,n,e,r)}function qm(e,t,n){var r=!1,o=e.s,i=o.setCursorBefore,a=o.setCursorIn,s=ii.closest(t,ii.isElement,e.editor);if(!s||!ii.isEmpty(s))return!1;var l=ii.findNotEmptyNeighbor(t,n,e.editor);do{if(!s||!ii.isEmpty(s)||ii.isCell(s))break;ii.after(s,t);var c=ii.closest(s,function(e){return ii.isElement(e)&&e!==s},e.editor);ii.safeRemove(s),r=!0,s=c}while(s);return!(!r||!Bm(e,t,n))||(!l||ii.isText(l)||ii.isTag(l,Rt)?i(t):a(l,!n),r)}Qr.prototype.controls.about={exec:function(e){var t=e.dlg({closeOnClickOverlay:!0}),n=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(n("About Jodit")).setContent('<div class="jodit-about">\n\t\t\t\t\t<div>'.concat(n("Jodit Editor")," v.").concat(e.getVersion(),"</div>\n\t\t\t\t\t<div>").concat(n("License: %s",er(e.o.license)?Li(e.o.license):"MIT"),'</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="').concat(mt,'" target="_blank">').concat(mt,'</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(n("Jodit User's Guide"),"</a>\n\t\t\t\t\t\t").concat(n("contains detailed help for using"),"\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>").concat(n("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."),"</div>\n\t\t\t\t</div>")),Cr(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:Zt+Xt},ka.add("about",function(e){e.registerButton({name:"about",group:"info"})}),ls.set("about",'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '),Qr.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};var Gm=[function(e,t,n){var r=ii.findSibling(t,n);return!(!ii.isElement(r)||!ii.isTag(r,Rt)&&!ii.isEmpty(r)||(ii.safeRemove(r),ii.isTag(r,"br")&&!ii.findNotEmptySibling(t,!1)&&ii.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),ii.isTag(r,"br")&&qm(e,t,n),0))},function(e,t,n){var r=ii.findSibling(t,n);return!r&&t.parentElement&&t.parentElement!==e.editor&&(r=ii.findSibling(t.parentElement,n)),!(!ii.isElement(r)||ii.isContentEditable(r,e.editor)||(oo(n?ii.before:ii.after,r,t),ii.safeRemove(r),Lh(e,t,n
50),oo(n?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},zm,function(e,t){var n=t.parentElement;return!!ii.isCell(n)},qm,function(e,t,n){var r=ii.closest(t,ii.isElement,e.editor);if(!r)return!1;var o=ii.findNotEmptySibling(r,n);return!(!o||!ii.isEmpty(o)||(ii.safeRemove(o),e.s.setCursorBefore(t),0))},Bm,function(e,t,n){for(var r=t,o=r;r&&!ii.findNotEmptySibling(r,n)&&r.parentElement!==e.editor;)o=r=r.parentElement;if(ii.isElement(o)&&ii.isContentEditable(o,e.editor)){var i=ii.findNotEmptySibling(o,n);if(i&&(function(e,t,n,r){var o=ii.isTag(n,At),i=ii.isTag(t,At),a=function(e,t){return t?e.firstElementChild:e.lastElementChild};return i?(n=e.createInside.element(e.o.enterBlock),ii.before(t,n),Fm(e,a(t,r),n,r)):!(!n||!o||i)&&Fm(e,t,a(n,!r),r)}(e,o,i,n)||Fm(e,o,i,n)))return e.s.setCursorBefore(t),!0}return!1},function(e,t,n){var r,o=ii.closest(t,ii.isElement,e.editor),i=e.s;if(ii.isLeaf(o)&&(null===(r=null==o?void 0:o.parentElement)||void 0===r?void 0:r[n?"firstElementChild":"lastElementChild"])===o&&i.cursorInTheEdge(n,o)){var a=o.parentElement,s=e.createInside.element(e.o.enterBlock);return oo(n?ii.before:ii.after,a,s),ii.moveContent(o,s),ii.safeRemove(o),ii.isEmpty(a)&&ii.safeRemove(a),oo(n?i.setCursorBefore:i.setCursorAfter,t),!0}return!1}];function Wm(e,t,n){return Wm=Jm()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ym(o,n.prototype),o},Wm.apply(null,arguments)}function $m(e){return $m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$m(e)}function Ym(e,t){return Ym=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ym(e,t)}function Km(e){var t="function"==typeof Map?new Map:void 0;return Km=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Wm(e,arguments,$m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ym(r,e)},Km(e)}function Jm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Jm=function(){return!!e})()}var Qm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=$m(n=t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Jm()?Reflect.construct(n,r||[],$m(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Ym(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;e.registerCommand("deleteButton",{exec:function(){return t.onDelete(!1)},hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:function(){return t.onDelete(!0)},hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:function(){return t.onDelete(!1,"word")},hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:function(){return t.onDelete(!0,"word")},hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:function(){return t.onDelete(!1,"sentence")},hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:function(){return t.onDelete(!0,"sentence")},hotkeys:e.o.delete.hotkeys.backspaceSentence})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"onDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"char",n=this.j,r=n.selection;if(r.isFocused()||r.focus(),function(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}(n))return!1;
50var o=r.range,i=n.createInside.text(vt);try{if(ii.safeInsertNode(o,i),!ii.isOrContains(n.editor,i))return;if(n.e.fire("backSpaceBeforeCases",e,i))return!1;if(Lh(n,i,e),Gm.some(function(r){if(xn(r)&&r(n,i,e,t))return ft||console.info("Remove case:",r.name),!0}))return!1}catch(e){throw ft||console.error(e),e}finally{n.e.fire("backSpaceAfterDelete",e,i),this.safeRemoveEmptyNode(i)}return!1}},{key:"safeRemoveEmptyNode",value:function(e){var t,n,r=this.j.s.range;r.startContainer===e&&(e.previousSibling?ii.isText(e.previousSibling)?r.setStart(e.previousSibling,null!==(n=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==n?n:0):r.setStartAfter(e.previousSibling):e.nextSibling&&(ii.isText(e.nextSibling)?r.setStart(e.nextSibling,0):r.setStartBefore(e.nextSibling)),r.collapse(!0),this.j.s.selectRange(r)),ii.safeRemove(e)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Km(ip));function Xm(e,t,n){return Xm=ng()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&eg(o,n.prototype),o},Xm.apply(null,arguments)}function Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zm(e)}function eg(e,t){return eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eg(e,t)}function tg(e){var t="function"==typeof Map?new Map:void 0;return tg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Xm(e,arguments,Zm(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eg(r,e)},tg(e)}function ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ng=function(){return!!e})()}Qm.requires=["hotkeys"],ka.add("backspace",Qm);var rg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Zm(n=t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,ng()?Reflect.construct(n,r||[],Zm(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&eg(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterCommand.delete",function(e){"delete"===e&&t.__afterDeleteCommand()}),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"__afterDeleteCommand",value:function(){var e=this.j,t=e.s.current();if(t&&ii.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(ur(e.editor.textContent||"")||e.editor.querySelector("img,table,jodit,iframe,hr")||t&&ii.closest(t,"table",e.editor))){e.editor.innerHTML="";var n=e.s.setCursorIn(e.editor);e.s.removeNode(n)}}},{key:"__onDeleteCommand",value:function(){var e=this.jodit;if(!e.s.isCollapsed()){e.s.expandSelection();var t=e.s.range;t.deleteContents();var n=e.createInside.fake();t.insertNode(n);var r=ii.findSibling(n,!0),o=ii.findSibling(n,!1);return this.__moveContentInLeftSibling(n,r,o),t.setStartBefore(n),t.collapse(!0),this.__moveCursorInEditableSibling(e,r,n,t),this.__addBrInEmptyBlock(n,o,t),ii.safeRemove(n),e.s.selectRange(t),!1}}},{key:"__moveContentInLeftSibling",value:function(e,t,n){t=this.__defineRightLeftBox(t),!ii.isList(n)&&!ii.isTag(n,"table")&&ii.isBlock(n)&&ii.isBlock(t)&&(ii.append(t,e),ii.moveContent(n,t),ii.safeRemove(n)),ii.isList(n)&&ii.isLeaf(n.firstElementChild)&&ii.isEmpty(n.firstElementChild)&&ii.safeRemove(n.firstElementChild)}},{key:"__defineRightLeftBox",value:function(e){if(!ii.isList(e))return e;var t=e.lastElementChild;return ii.isLeaf(t)||(t=this.j.createInside.element("li"),ii.append(e,t)),t}},{key:"__addBrInEmptyBlock",value:function(e,t,n){var r=this.j;if(e.isConnected&&ii.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){var o=r.createInside.element("br");ii.after(e,o),n.setStartBefore(o),n.collapse(!0)}if(ii.isTag(t,"table")){var i=Wo("td,th",t).shift();ii.isCell(i)&&ii.isEmpty(i)&&ii.append(i,r.createInside.element("br"))}}},{key:"__moveCursorInEditableSibling",value:function(e,t,n,r){var o;if(!t||!ii.isText(t)){var i=null!==(o=ii.closest(n,ii.isBlock,e.editor))&&void 0!==o?o:e.editor,a=ii.prev(n,ii.isText,i);a&&(r.setStartAfter(a),r.collapse(!0),ii.safeRemove(n))}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(tg(ip));function og(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}rg.requires=["backspace"],ka.add("deleteCommand",rg),Qr.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},Qr.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},Qr.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},Qr.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},Qr.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"}
vendor: 4,226 bytes, line 50
50,Qr.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},ka.add("bold",function(e){var t=function(t){var n,r=Qr.defaultOptions.controls[t],o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){og(e,t,n[t])})}return e}({},r.css);return Object.keys(o).forEach(function(e){n||(n={}),n[e]=An(o[e])?o[e][0]:o[e]}),e.s.commitStyle({element:r.tags?r.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach(function(t){e.registerButton({name:t,group:"font-style"})}),["superscript","subscript"].forEach(function(t){e.registerButton({name:t,group:"script"})}),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})}),ls.set("bold",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> ').set("italic",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> ').set("strikethrough",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> ').set("subscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> ').set("superscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-
50514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> ').set("underline",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '),ls.set("palette",'<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> ');var ig=function(e,t,n){var r="jodit-color-picker",o=Di(n),i=e.c.div(r),a=e.o.textIcons?"<span>".concat(e.i18n("palette"),"</span>"):ls.get("palette"),s=function(e){var t=[];return or(e)?Object.keys(e).forEach(function(n){t.push('<div class="'.concat(r,"__group ").concat(r,"__group-").concat(n,'">')),t.push(s(e[n])),t.push("</div>")}):An(e)&&e.forEach(function(e){t.push("<span class='".concat(r,"__color-item ").concat(o===e?r+"__color-item_active_true":"","' title=\"").concat(e,'" style="background-color:').concat(e,'" data-color="').concat(e,'"></span>'))}),t.join("")};i.appendChild(e.c.fromHTML('<div class="'.concat(r,'__groups">').concat(s(e.o.colors),"</div>"))),i.appendChild(e.c.fromHTML('<div data-ref="extra" class="'.concat(r,'__extra"></div>')));var l=Yo(i).extra;return e.o.showBrowserColorPicker&&Fn()&&(l.appendChild(e.c.fromHTML('<div class="'.concat(r,'__native">').concat(a,'<input type="color" value="#ffffff"/></div>'))),e.e.on(i,"change",function(e){e.stopPropagation();var n=e.target;if(n&&n.tagName&&ii.isTag(n,"input")){var r=n.value||"";xn(t)&&t(r),e.preventDefault()}})),e.e.on(i,"mousedown touchend",function(n){n.stopPropagation(),n.preventDefault();var o=n.target;if(o&&o.tagName&&!ii.isTag(o,"svg")&&!ii.isTag(o,"path")||!o.parentNode||(o=ii.closest(o.parentNode,"span",e.editor)),ii.isTag(o,"span")&&o.classList.contains(r+"__color-item")){var i=$r(o,"-color")||"";t&&xn(t)&&t(i)}}),e.e.fire("afterGenerateColorPicker",i,l,t,o),i},ag=function(e,t,n){var r=e.c.div("jodit-tabs"),o=e.c.div("jodit-tabs__wrapper"),i=e.c.div("jodit-tabs__buttons");$r(i,{role:"tablist","aria-orientation":"horizontal"});var a={},s=[],l="";r.appendChild(i),r.appendChild(o);var c=function(e){a[e]&&(s.forEach(function(e){e.state.activated=!1}),Object.values(a).forEach(function(e){return e.tab.classList.remove("jodit-tab_active")}),a[e].button.state.activated=!0,a[e].tab.classList.add("jodit-tab_active"))};t.forEach(function(r){var u=r.icon,d=r.name,f=r.content,p=e.c.div("jodit-tab");$r(p,{role:"tabpanel"});var h=al(e,u||d,d);h.state.role="tab",e.e.on(h.container,"pointerdown",function(e){return e.preventDefault()}),l||(l=d),i.appendChild(h.container),s.push(h),h.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),xn(f)?p.appendChild(e.c.div("jodit-tab_empty")):p.appendChild(ja.isInstanceOf(f,gs)?f.container:f),o.appendChild(p),h.onAction(function(){return c(d),xn(f)&&!ii.isElement(f)&&f.call(e),n&&(n.activeTab=d),!1}),a[d]={button:h,tab:p}}
50),Object.values(a).forEach(function(e){e.button.container.style.width=(100/t.length).toFixed(10)+"%"});var u=n&&n.activeTab&&a[n.activeTab]?n.activeTab:l;if(c(u),n){var d=n.activeTab;Object.defineProperty(n,"activeTab",{configurable:!0,enumerable:!1,get:function(){return d},set:function(e){d=e,c(e)}})}return r},sg=function(e,t,n,r){var o,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=[],s=e.o.uploader;if(t.upload&&(s.url||s.insertImageAsBase64URI||s.customUploadFunction)){var l=e.c.fromHTML('<div class="jodit-drag-and-drop__file-box">'+"<strong>".concat(e.i18n(i?"Drop image":"Drop file"),"</strong>")+"<span><br>".concat(e.i18n("or click"),"</span>")+'<input type="file" accept="'.concat(i?"image/*":"*",'" tabindex="-1" dir="auto" multiple=""/>')+"</div>");e.uploader.bind(l,function(n){var r=xn(t.upload)?t.upload:s.defaultHandlerSuccess;xn(r)&&r.call(e,n),e.e.fire("closeAllPopups")},function(t){e.message.error(t.message),e.e.fire("closeAllPopups")}),a.push({icon:"upload",name:"Upload",content:l})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&a.push({icon:"folder",name:"Browse",content:function(){r&&r(),t.filebrowser&&e.filebrowser.open(t.filebrowser,i)}}),t.url){var c=new il(e,{type:"submit",variant:"primary",text:"Insert"}),u=new ec(e,[new Bl(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new Bl(e,{name:"text",label:"Alternative text"}),new Ol(e,[c])]);o=null,!n||ii.isText(n)||ii.isComment(n)||!ii.isTag(n,"img")&&!Wo("img",n).length||(o="IMG"===n.tagName?n:Wo("img",n)[0],lg(u.container,"input[name=url]",$r(o,"src")),lg(u.container,"input[name=text]",$r(o,"alt")),c.state.text="Update"),n&&ii.isTag(n,"a")&&(lg(u.container,"input[name=url]",$r(n,"href")),lg(u.container,"input[name=text]",$r(n,"title")),c.state.text="Update"),u.onSubmit(function(n){xn(t.url)&&t.url.call(e,n.url,n.text)}),a.push({icon:"link",name:"URL",content:u.container})}return ag(e,a)};function lg(e,t,n){var r=e.querySelector(t);return r?(n&&(r.value=n),r.value):""}function cg(e){if(!e)return!1;var t=ii.findSibling(e,!0);return!(!t||!ii.isTag(t,"br"))&&t}function ug(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ct,r=e,o=t.editor;do{if(!r||r===o)break;if(n.test(r.nodeName))return ii.isLeaf(r)?r:ug(r.parentNode,t,/^li$/i)||r;r=r.parentNode}while(r&&r!==o);return null}function dg(e,t,n,r){var o="br"===n.toLowerCase(),i=t.createInside,a=i.element(n),s=i.element("br");return o||a.appendChild(s),r&&r.cssText&&a.setAttribute("style",r.cssText),ii.after(e,a),ii.before(o?a:s,e),Zo(a,t.editor,t.ed),a}function fg(e,t,n){return fg=yg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&hg(o,n.prototype),o},fg.apply(null,arguments)}function pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pg(e)}function hg(e,t){return hg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hg(e,t)}function mg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gg(e){var t="function"==typeof Map?new Map:void 0;return gg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return fg(e,arguments,pg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),hg(r,e)},gg(e)}function yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yg=function(){return!!e})()}ls.set("brush",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 
50101 151 62.5 90.5q81 127 81 275z"/> </svg> '),Qr.prototype.controls.brushCell={isVisible:function(e){return!e.o.disablePlugins.includes("color")},icon:"brush",popup:function(e,t,n){if(Zn(e)){var r=e.getInstance("Table",e.o).getAllSelectedCells();if(!r.length)return!1;var o=function(t){return ig(e,function(o){r.forEach(function(e){Cr(e,t,o)}),e.lock(),e.synchronizeValues(),n(),e.unlock()},Cr(r[0],t))};return ag(e,[{name:"Background",content:o("background-color")},{name:"Text",content:o("color")},{name:"Border",content:o("border-color")}])}},tooltip:"Background"},Qr.prototype.controls.brush={isVisible:function(e){return!e.o.disablePlugins.includes("color")},update:function(e,t){var n=no(t,"color"),r=function(n,r){r&&r!==Cr(e.editor,n).toString()&&(t.state.icon.fill=r)};if(n){var o=no(t,"color");r("color"===o?o:"background-color",n)}else{var i=e.s.current();if(i&&!t.state.disabled){var a=ii.closest(i,ii.isElement,e.editor)||e.editor;r("color",Cr(a,"color").toString()),r("background-color",Cr(a,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1}},popup:function(e,t,n,r){var o="",i="",a=[],s=null;return t&&t!==e.editor&&ii.isNode(t)&&(ii.isElement(t)&&e.s.isCollapsed()&&!ii.isTag(t,new Set(["br","hr"]))&&(s=t),ii.up(t,function(e){if(ii.isHTMLElement(e)){var t=Cr(e,"color",!0),n=Cr(e,"background-color",!0);if(t)return o=t.toString(),!0;if(n)return i=n.toString(),!0}},e.editor)),a=[{name:"Background",content:ig(e,function(t){s?s.style.backgroundColor=t:e.execCommand("background",!1,t),no(r,"color",t),no(r,"color-mode","background"),n()},i)},{name:"Text",content:ig(e,function(t){s?s.style.color=t:e.execCommand("forecolor",!1,t),no(r,"color",t),no(r,"color-mode","color"),n()},o)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),ag(e,a,s)},exec:function(e,t,n){var r=n.button,o=no(r,"color-mode"),i=no(r,"color");if(!o)return!1;if(t&&t!==e.editor&&ii.isNode(t)&&ii.isElement(t))switch(o){case"color":t.style.color=i;break;case"background":t.style.backgroundColor=i}else e.execCommand("background"===o?o:"forecolor",!1,i)},tooltip:"Fill color or set the text color"},ka.add("color",function(e){e.registerButton({name:"brush",group:"color"});var t=function(t,n,r){var o=Di(r);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:o||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:o||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)});var vg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=pg(n=t),function(e,t){return!t||"object"!==mg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yg()?Reflect.construct(n,r||[],pg(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&hg(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this,n=e.o.enter.toLowerCase(),r=n===Jt.toLowerCase();e.o.enterBlock||(e.o.enterBlock=r?Qt:n),e.registerCommand("enter",function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.onEnter(r)})}},{key:"onEnterKeyDown",value:function(e){if(e.key===Lt){var t=this.j,n=t.e.fire("beforeEnter",e);return void 0!==n?n:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}},{key:"onEnter",value:function(e){var t=this.jodit,n=t.createInside.fake();try{ii.safeInsertNode(t.s.range,n),function(e,t){var n=e.s,r=ii.closest(t,["a"],e.editor);r&&(n.cursorOnTheRight(r,t)?ii.after(r,t):n.cursorOnTheLeft(r,t)&&ii.before(r,t))}(t,n);var r=ug(n,t),o=ii.isLeaf(r);if((!o||(null==e?void 0:e.shiftKey))&&function(e,t,n){var r=Boolean(ii.closest(e,["pre","blockquote"],t.editor)),o=!r&&ii.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===Jt.toLowerCase()||o||n&&!r||!n&&r){if(r&&function(e){var t=cg(cg(e));return!!t&&(ii.safeRemove(cg(e)),ii.safeRemove(t),!0)}(e))return!1;var i=t.createInside.element("br");if(ii.before(e,i),!ii.findNotEmptySibling(i,!1)){var a=i.cloneNode();ii.after(i,a),ii.before(a,e)}return Zo(i,t.editor,t.ed),!0}return!1}(n,t,null==e?void 0:e.shiftKey))return!1;if(r||function(e,t){return Boolean(ii.prev(e,function(e){return ii.isBlock(e)||ii.isImage(e)},t.editor))}(n,t)||(r=function(e,t){var n=e;ii.up(n,function(e){e&&e.hasChildNodes()&&e!==t.editor&&(n=e)},t.editor);var r=ii.wrapInline(n,t.o.enter,t);if(ii.isEmpty(r)){var o=t.createInside.element("br");r.appendChild(o),ii.before(o,e)}return r}(n,t)),!r)return dg(n,t,o?"li":t.o.enter),!1;if(!function(e,t,n){return!!ii.canSplitBlock(n)||(ii.before(e,t.createInside.element("br")),!1)}(n,t,r))return!1;if(o&&this.__isEmptyListLeaf(r))return function(e,t,n){var r=ii.closest(n,["ol","ul"],t.editor);if(r){var o=r.parentElement,i=ii.isLeaf(o),a=i?o:r,s=t.s.createRange();s.setStartAfter(n),s.setEndAfter(r);var l=s.extractContents();ii.after(a,e),ii.safeRemove(n),Wo("li",r).length||ii.safeRemove(r);var c=dg(e,t,i?"li":t.o.enter);l.querySelector("li")&&(i?c.appendChild(l):ii.after(c,l))}}(n,t,r),!1;!function(e,t,n){var r=t.s,o=t.o.enter.toLowerCase(),i=ii.isLeaf(n),a=n.tagName.toLowerCase()===o||i,s=r.cursorOnTheRight(n,e),l=r.cursorOnTheLeft(n,e);if(!a&&(s||l))return s?ii.after(n,e):ii.before(n,e),dg(e,t,o),void(l&&!s&&ii.prepend(n,e));Zo(r.splitSelection(n,e),t.editor,t.ed)}(n,t,r)}finally{n.isConnected&&t.s.setCursorBefore(n),ii.safeRemove(n)}}},{key:"__isEmptyListLeaf",value:function(e){var t=this.j.e.fire("enterIsEmptyListLeaf",e);return zn(t)?t:ii.isEmpty(e)}},{key:"beforeDestruct",value:function(e){e.e.off("keydown.enter")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gg(ip));function bg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wg(e,t,n){return wg=Tg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Eg(o,n.prototype),o},wg.apply(null,arguments)}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sg(e)}function Eg(e,t){return Eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Eg(e,t)}function kg(e){var t="function"==typeof Map?new Map:void 0;return kg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wg(e,arguments,Sg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Eg(r,e)},kg(e)}function Tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Tg=function(){return!!e})()}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":mg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}
50)([ma(":keydown.enter")],vg.prototype,"onEnterKeyDown",null),ka.add("enter",vg),Qr.prototype.defaultFontSizePoints="px",ls.set("font",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> ').set("fontsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '),Qr.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:function(e,t){return/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:function(e,t){return t+e.o.defaultFontSizePoints},childTemplate:function(e,t,n){return"".concat(n).concat(e.o.defaultFontSizePoints)},tooltip:"Font size",value:function(e,t){var n,r=e.s.current();if(r){var o=ii.closest(r,ii.isElement,e.editor);if(o)return Cr(o,(null===(n=t.control.data)||void 0===n?void 0:n.cssRule)||"font-size").toString()}},isChildActive:function(e,t){var n,r,o=t.state.value,i=null!==(r=null===(n=t.control.data)||void 0===n?void 0:n.normalize)&&void 0!==r?r:function(e){return e};return Boolean(o&&t.control.args&&i(t.control.args[0].toString())===i(o.toString()))},isActive:function(e,t){var n,r,o=t.state.value;if(!o)return!1;var i=null!==(r=null===(n=t.control.data)||void 0===n?void 0:n.normalize)&&void 0!==r?r:function(e){return e},a=t.control.data.cacheListSet;if(!a){var s=Object.keys(t.control.list).map(i);a=new Set(s),t.control.data.cacheListSet=a}return a.has(i(o.toString()))}},Qr.prototype.controls.font=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t}(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){_g(e,t,n[t])})}return e}({},Qr.prototype.controls.fontsize),{command:"fontname",textTemplate:function(e,t){return dr(function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return bg(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?bg(e,1):void 0}}
50(e)||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.")}()}(t.split(","))[0],"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:function(e,t,n){var r=!1;try{r=-1===t.indexOf("dings")&&document.fonts.check("16px ".concat(t),n)}catch(e){}return'<span data-style="'.concat(t,'" style="').concat(r?"font-family: ".concat(t,"!important;"):"",'">').concat(n,"</span>")},data:{cssRule:"font-family",normalize:function(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}),ka.add("font",function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});var t=function(t,n,r){switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:zi(r,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:r}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)}),ls.set("paragraph",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '),Qr.prototype.controls.paragraph={command:"formatBlock",value:function(e,t){var n,r,o=t.control,i=e.s.current(),a=ii.closest(i,ii.isBlock,e.editor);return null!==(n=null==a?void 0:a.nodeName.toLowerCase())&&void 0!==n?n:null===(r=o.data)||void 0===r?void 0:r.currentValue},update:function(e,t){var n=t.control;if(!e.s.current())return!1;var r=t.state.value,o=n.list;return or(o)&&o[r.toString()]&&e.o.textIcons&&(t.state.text=o[r.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:function(e,t){var n,r;return Boolean(t.state.value===(null===(r=null===(n=t.control)||void 0===n?void 0:n.args)||void 0===r?void 0:r[0]))},isActive:function(e,t){return t.state.value!==e.o.enter&&or(t.control.list)&&Boolean(t.control.list[t.state.value])},childTemplate:function(e,t,n){return"<".concat(t,' style="margin:0;padding:0"><span>').concat(e.i18n(n),"</span></").concat(t,">")},tooltip:"Insert format block"},ka.add("formatBlock",function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",function(t,n,r){return e.s.commitStyle({element:r}),e.synchronizeValues(),!1})}),Qr.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};var xg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Sg(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Tg()?Reflect.construct(t,n||[],Sg(e).constructor):t.apply(e,n))}(this,t,arguments)).onKeyPress=function(t){var n=e.specialKeys[t.which],r=(t.key||String.fromCharCode(t.which)).toLowerCase(),o=[n||r];return["alt","ctrl","shift","meta"].forEach(function(e){t[e+"Key"]&&n!==e&&o.push(e)}),Ni(o.join("+"))},e.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},e}var n;return 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&&Eg(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this;
50lo(e.o.commandToHotkeys,!1).forEach(function(t){var n=e.o.commandToHotkeys[t];n&&(An(n)||In(n))&&e.registerHotkeyToCommand(n,t)});var n=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",function(e){if(e.key===Ft)return t.j.e.fire("escape",e)}).on("keydown.hotkeys",function(r){var o=t.onKeyPress(r),i={shouldStop:!0};if(!1===t.j.e.fire(o+".hotkey",r.type,i)){if(i.shouldStop)return n=!0,e.e.stopPropagation("keydown"),!1;r.preventDefault()}},{top:!0}).on("keyup.hotkeys",function(){if(n)return n=!1,e.e.stopPropagation("keyup"),!1},{top:!0})}},{key:"beforeDestruct",value:function(e){e.events&&e.e.off(".hotkeys")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(kg(ip));function Og(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}ka.add("hotkeys",xg),Qr.prototype.iframeBaseUrl="",Qr.prototype.iframeTitle="Jodit Editor",Qr.prototype.iframeDoctype="<!DOCTYPE html>",Qr.prototype.iframeDefaultSrc="about:blank",Qr.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',Qr.prototype.iframeCSSLinks=[],Qr.prototype.iframeSandbox=null,ka.add("iframe",function(e){var t=e.options;e.e.on("afterSetMode",function(){e.isEditorMode()&&e.s.focus()}).on("generateDocumentStructure.iframe",function(e,n){var r=e||n.iframe.contentWindow.document;if(r.open(),r.write(t.iframeDoctype+'<html dir="'.concat(t.direction,'" class="jodit" lang="').concat(_o(t.language),'">')+"<head>"+"<title>".concat(t.iframeTitle,"</title>")+(t.iframeBaseUrl?'<base href="'.concat(t.iframeBaseUrl,'"/>'):"")+'</head><body class="jodit-wysiwyg"></body></html>'),r.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach(function(e){var t=r.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),r.head&&r.head.appendChild(t)}),t.iframeStyle){var o=r.createElement("style");o.innerHTML=t.iframeStyle,r.head&&r.head.appendChild(o)}}).on("createEditor",function(){if(t.iframe){var n=e.c.element("iframe");return n.style.display="block",n.src="about:blank",n.className="jodit-wysiwyg_iframe",n.setAttribute("allowtransparency","true"),n.setAttribute("tabindex",t.tabIndex.toString()),n.setAttribute("frameborder","0"),null!=t.iframeSandbox&&n.setAttribute("sandbox",t.iframeSandbox),e.workplace.appendChild(n),e.iframe=n,ao(e.e.fire("generateDocumentStructure.iframe",null,e),function(){if(!e.iframe)return!1;var n=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;var r=t.editHTMLDocumentMode,o=function(){$r(n.body,"contenteditable",e.getMode()!==Zt&&!e.getReadOnly()||null)},i=function(e){var t=/<body.*<\/body>/im,n="{%%BODY%%}",r=t.exec(e);return r&&(e=e.replace(t,n).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/&lt;span([^&]*?)&gt;(.*?)&lt;\/span&gt;/gim,"").replace(n,r[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};
50if(r){var a=e.element.tagName;if("TEXTAREA"!==a&&"INPUT"!==a)throw Do("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",function(){return i(e.o.iframeDoctype+n.documentElement.outerHTML)}).on("beforeSetNativeEditorValue",function(t){var r=t.value;if(e.isLocked)return!1;if(/<(html|body)/i.test(r)){var a=n.documentElement.outerHTML;i(a)!==i(r)&&(n.open(),n.write(e.o.iframeDoctype+i(r)),n.close(),e.editor=n.body,e.e.fire("safeHTML",e.editor),o(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue"))}else n.body.innerHTML=r;return!0},{top:!0})}if(e.editor=n.body,e.e.on("afterSetMode afterInit afterAddPlace",o),"auto"===t.height){n.documentElement&&(n.documentElement.style.overflowY="hidden");var s=e.async.throttle(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.async.requestAnimationFrame(function(){if(e.editor&&e.iframe&&"auto"===t.height){var n=e.ew.getComputedStyle(e.editor),r=parseInt(n.marginTop||"0",10)+parseInt(n.marginBottom||"0",10);Cr(e.iframe,"height",e.editor.offsetHeight+r)}})},e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",s).on([e.iframe,e.ew,n.documentElement],"load",s).on(n,"readystatechange DOMContentLoaded",s),"function"==typeof ResizeObserver){var l=new ResizeObserver(s);l.observe(n.body),e.e.on("beforeDestruct",function(){l.disconnect()})}}return n.documentElement&&e.e.on(n.documentElement,"mousedown touchend",function(){e.s.isFocused()||(e.s.focus(),e.editor===n.body&&e.s.setCursorIn(n.body))}).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",function(t){var n;null===(n=e.events)||void 0===n||n.fire(e.ow,t)}),!1})}})}),ls.set("image",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '),Qr.prototype.controls.image={popup:function(e,t,n){var r=null;return t&&!ii.isText(t)&&ii.isHTMLElement(t)&&(ii.isTag(t,"img")||Wo("img",t).length)&&(r=ii.isTag(t,"img")?t:Wo("img",t)[0]),e.s.save(),sg(e,{filebrowser:function(t){e.s.restore(),t.files&&t.files.forEach(function(n){return e.s.insertImage(t.baseurl+n,null,e.o.imageDefaultWidth)}),n()},upload:!0,url:function(){var t,o=(t=function(t,o){var i;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(a){switch(a.label){case 0:return e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t),(i=r||e.createInside.element("img")).setAttribute("src",t),i.setAttribute("alt",o),r?[3,2]:[4,e.s.insertImage(i,null,e.o.imageDefaultWidth)];case 1:a.sent(),a.label=2;case 2:return n(),[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Og(i,r,o,a,s,"next",e)}function s(e){Og(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e,t){return o.apply(this,arguments)}}()},r,n)},tags:["img"],tooltip:"Insert Image"},ka.add("image",function(e){e.registerButton({name:"image",group:"media"})});const Cg=[{name:"eye",tooltip:"Open link",exec:function(e,t){var n=$r(t,"href");t&&n&&e.ow.open(n)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"];var Pg=function(e){return e.args&&In(e.args[0])?e.args[0].toLowerCase():""};const Ag=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:function(e,t,n){return n},exec:function(e,t,n){var r=n.control,o=Pg(r);
50e.getInstance("Table",e.o).getAllSelectedCells().forEach(function(e){Cr(e,"vertical-align","normal"===o?"":o)})},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(e,t,n){var r=n.control;if(Zn(e)){if(!r.args)return!1;var o=Pg(r);e.execCommand(o,!1,t)}},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,n){var r=n.control;if(Zn(e)){if(!r.args)return!1;var o=Pg(r);e.execCommand(o,!1,t)}},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(e,t,n){var r=n.control;if(Zn(e)){if(!r.args)return!1;var o=Pg(r);e.execCommand(o,!1,t),e.e.fire("hidePopup")}},tooltip:"Delete"}];var Ig={name:"left",childTemplate:function(e,t,n){return n},list:["Left","Right","Center","Normal"],exec:function(e,t,n){var r=n.control;if(ii.isTag(t,new Set(["img","jodit","jodit-media"]))){var o=r.args&&In(r.args[0])?r.args[0].toLowerCase():"";if(!o)return!1;Ar(t,o),ii.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&Ar(t.firstElementChild,o),e.synchronizeValues(),e.e.fire("recalcPositionPopup")}},tooltip:"Horizontal align"};const Rg=[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec:function(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:function(e,t,n){var r=n.control;if(ii.isTag(t,"img")){var o=r.args&&In(r.args[0])?r.args[0].toLowerCase():"";if(!o)return!1;Cr(t,"vertical-align","normal"===o?"":o),e.e.fire("recalcPositionPopup")}}},Ig],jg=[{name:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},Ig];function Mg(e,t,n){return Mg=Bg()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ng(o,n.prototype),o},Mg.apply(null,arguments)}function Dg(e){return Dg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dg(e)}function Ng(e,t){return Ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ng(e,t)}function Lg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Fg(e){var t="function"==typeof Map?new Map:void 0;return Fg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Mg(e,arguments,Dg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ng(r,e)},Fg(e)}function Bg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bg=function(){return!!e})()}Qr.prototype.toolbarInline=!0,Qr.prototype.toolbarInlineForSelection=!1,Qr.prototype.toolbarInlineDisableFor=[],Qr.prototype.toolbarInlineDisabledButtons=["source"],ls.set("addcolumn",'<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> ').set("addrow",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> ').set("merge",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 
50-23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> ').set("th",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> ').set("splitg",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("splitv",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("th-list",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '),Qr.prototype.popup={a:Cg,img:Rg,cells:Ag,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:jg,iframe:jg,"jodit-media":jg,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};var zg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Lg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ug=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Dg(t),function(e,t){return!t||"object"!==Lg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Bg()?Reflect.construct(t,n||[],Dg(e).constructor):t.apply(e,n))}(this,t,arguments)).type=null,e.snapRange=null,e.elmsList=lo(e.j.o.popup,!1).filter(function(t){return!e.isExcludedTarget(t)}),e}var n;return 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&&Ng(e,t)}(t,e),n=[{key:"popup",get:function(){return new Fc(this.jodit,!1)}},{key:"toolbar",get:function(){return gd(this.jodit,this.popup)}},{key:"onClick",value:function(e){var t=this,n=this.elmsList,r=ii.isTag(e,"img")?e:ii.closest(e,n,this.j.editor);if(r&&this.canShowPopupForType(r.nodeName.toLowerCase()))return this.showPopup(function(){return $i(r,t.j)},r.nodeName.toLowerCase(),r),!1}},{key:"showPopup",value:function(e,t,n){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;
50if(this.type!==t||n!==this.previousTarget){this.previousTarget=n;var r,o=this.j.o.popup[t];An(r=xn(o)?o(this.j,n,this.popup.close):o)&&(this.toolbar.build(r,n),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,r=this.toolbar.container),this.popup.setContent(r),this.type=t}return this.popup.open(e),!0}},{key:"hidePopup",value:function(e){!this.popup.isOpened||In(e)&&e!==this.type||this.popup.close()}},{key:"onOutsideClick",value:function(){this.popup.close()}},{key:"canShowPopupForType",value:function(e){var t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}},{key:"isExcludedTarget",value:function(e){return Ei(this.j.o.toolbarInlineDisableFor).map(function(e){return e.toLowerCase()}).includes(e.toLowerCase())}},{key:"afterInit",value:function(e){var t=this;this.j.e.on("getDiffButtons.mobile",function(n){if(t.toolbar===n){var r=t.toolbar.getButtonsNames();return Ln(e.registeredButtons).filter(function(e){return!t.j.o.toolbarInlineDisabledButtons.includes(e.name)}).filter(function(e){var t=In(e)?e:e.name;return t&&"|"!==t&&"\n"!==t&&!r.includes(t)})}}).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",function(e,n,r){t.showPopup(n,r||(In(e)?e:e.nodeName),In(e)?void 0:e)}).on("mousedown keydown",this.onSelectionStart).on("change",function(){t.popup.isOpened&&t.previousTarget&&!t.previousTarget.parentNode&&(t.hidePopup(),t.previousTarget=void 0)}).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}},{key:"onSelectionStart",value:function(){this.snapRange=this.j.s.range.cloneRange()}},{key:"onSelectionEnd",value:function(e){if(!(e&&e.target&&gs.closestElement(e.target,Fc))){var t=this.snapRange,n=this.j.s.range;t&&!n.collapsed&&n.startContainer===t.startContainer&&n.startOffset===t.startOffset&&n.endContainer===t.endContainer&&n.endOffset===t.endOffset||this.onSelectionChange()}}},{key:"onSelectionChange",value:function(){if(this.j.o.toolbarInlineForSelection){var e="selection",t=this.j.s.sel,n=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(n)?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup(function(){return n.getBoundingClientRect()},e)}}},{key:"isSelectedTarget",value:function(e){var t=e.startContainer;return ii.isElement(t)&&t===e.endContainer&&ii.isTag(t.childNodes[e.startOffset],new Set(lo(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}},{key:"beforeDestruct",value:function(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}},{key:"_eventsList",value:function(){var e=this.elmsList;return e.map(function(e){return Or("click_".concat(e))}).concat(e.map(function(e){return Or("touchstart_".concat(e))})).join(" ")}},{key:"addListenersForElements",value:function(){this.j.e.on(this._eventsList(),this.onClick)}},{key:"removeListenersForElements",value:function(){this.j.e.off(this._eventsList(),this.onClick)}},{key:"showInlineToolbar",value:function(e){var t=this;this.showPopup(function(){return e||t.j.s.range.getBoundingClientRect()},"toolbar")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Fg(ip));function Hg(e,t,n){return Hg=$g()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&qg(o,n.prototype),o},Hg.apply(null,arguments)}function Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vg(e)}function qg(e,t){return qg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qg(e,t)}function Gg(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Wg(e){var t="function"==typeof Map?new Map:void 0;return Wg=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Hg(e,arguments,Vg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qg(r,e)},Wg(e)}function $g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($g=function(){return!!e})()}Ug.requires=["select"],zg([si],Ug.prototype,"popup",null),zg([si],Ug.prototype,"toolbar",null),zg([On],Ug.prototype,"onClick",null),zg([Qa(function(e){return!e.j.isLocked})],Ug.prototype,"showPopup",null),zg([ma([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),On],Ug.prototype,"hidePopup",
50null),zg([ma(":outsideClick")],Ug.prototype,"onOutsideClick",null),zg([On],Ug.prototype,"onSelectionStart",null),zg([On],Ug.prototype,"onSelectionEnd",null),zg([za(function(e){return e.defaultTimeout})],Ug.prototype,"onSelectionChange",null),zg([On],Ug.prototype,"showInlineToolbar",null),ka.add("inlinePopup",Ug),Qr.prototype.link={formTemplate:function(e){var t=e.o.link,n=t.openInNewTabCheckbox,r=t.noFollowCheckbox,o=t.modeClassName,i=t.selectSizeClassName,a=t.selectMultipleClassName,s=t.selectOptionsClassName;return new ec(e,[new Ol(e,[new Bl(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new Ol(e,[new Bl(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),o?new Ol(e,["input"===o?new Bl(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===o?new Yl(e,{name:"className",ref:"className_select",label:"Class name",size:i,multiple:a,options:s}):null]):null,n?new bc(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,r?new bc(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new Ol(e,[new il(e,{name:"unlink",variant:"default",text:"Unlink"}),new il(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},ls.set("link",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> ').set("unlink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '),Qr.prototype.controls.unlink={exec:function(e,t){var n=ii.closest(t,"a",e.editor);n&&ii.unwrap(n),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},Qr.prototype.controls.link={isActive:function(e){var t=e.s.current();return Boolean(t&&ii.closest(t,"a",e.editor))},popup:function(e,t,n){return e.e.fire("generateLinkForm.link",t,n)},tags:["a"],tooltip:"Insert link"};var Yg=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Gg(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kg=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Vg(t),function(e,t){return!t||"object"!==Gg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,$g()?Reflect.construct(t,n||[],Vg(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"link",group:"insert"}],e}var n;return 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&&qg(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:function(){var n=e.dlg({resizable:!1}),r=t.__generateForm(e.s.current(),function(){n.close()});r.container.classList.add("jodit-dialog_alert"),n.setContent(r),n.open(),e.async.requestIdleCallback(function(){var e=Yo(r.container).url_input;null==e||e.focus()})},hotkeys:e.o.link.hotkeys})}},{key:"__onDblClickOnLink",value:function(e){if(ii.isTag(e.target,"a")){var t=$r(e.target,"href");t&&(location.href=t,e.preventDefault())}}},{key:"onProcessPasteLink",value:function(e,t){var n,r,o,i,a=this.jodit;if(sr(t)&&a.o.link.processPastedLink){if(a.e.stopPropagation("processPaste"),a.o.link.processVideoLink){var s=oo(null!==(r=null===(n=a.o.video)||void 0===n?void 0:n.parseUrlToVideoEmbed)&&void 0!==r?r:vo,t,{width:null===(o=a.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=a.o.video)||void 0===i?void 0:i.defaultHeight});if(s!==t)return a.createInside.fromHTML(s)}if(a.s.isCollapsed()){var l=a.createInside.element("a");return l.setAttribute("href",t),l.textContent=t,a.e.fire("applyLink",a,l,null),l}return a.s.commitStyle({element:"a",attributes:{href:t}}),!0}}},{key:"__generateForm",value:function(e,t){var n,r=this.jodit,o=r.i18n.bind(r),i=r.o.link,a=i.openInNewTabCheckbox,s=i.noFollowCheckbox,l=i.formTemplate,c=i.formClassName,u=i.modeClassName,d=l(r),f=In(d)?r.c.fromHTML(d,{target_checkbox_box:a,nofollow_checkbox_box:s}):d,p=ii.isElement(f)?f:f.container,h=Yo(p),m=h.insert,g=h.unlink,y=h.content_input_box,v=h.target_checkbox,b=h.nofollow_checkbox,_=h.url_input,w=e,S=ii.isImage(w),E=h.content_input,k=h.className_input,T=h.className_select;
50E||(E=r.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),S&&ii.hide(y);var x=function(){return n?n.innerText:Mi(r.s.range.cloneContents(),r.ed)};n=!(!e||!ii.closest(e,"a",r.editor))&&ii.closest(e,"a",r.editor),!S&&e&&(E.value=x()),n?(_.value=$r(n,"href")||"",u&&function(e,t,n,r){switch(e){case"input":t&&(t.value=$r(n,"class")||"");break;case"select":if(r){for(var o=0;o<r.selectedOptions.length;o++){var i=r.options.item(o);i&&(i.selected=!1)}($r(n,"class")||"").split(/\s+/).filter(function(e){return e.trim().length>0}).forEach(function(e){if(e)for(var t=0;t<r.options.length;t++){var n=r.options.item(t);(null==n?void 0:n.value)&&n.value.split(/\s+/).map(function(e){return e.trim()}).includes(e)&&(n.selected=!0)}})}}}(u,k,n,T),a&&v&&(v.checked="_blank"===$r(n,"target")),s&&b&&(b.checked="nofollow"===$r(n,"rel")),m.textContent=o("Update")):ii.hide(g),r.editor.normalize();var O=r.history.snapshot.make();g&&r.e.on(g,"click",function(e){r.s.restore(),r.history.snapshot.restore(O),n&&ii.unwrap(n),r.synchronizeValues(),t(),e.preventDefault()});var C=function(){if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;var e;r.s.restore(),r.s.removeMarkers(),r.editor.normalize(),r.history.snapshot.restore(O);var o=x()!==E.value.trim(),i=r.createInside;if(n&&ii.isOrContains(r.editor,n))e=[n];else{if(r.s.isCollapsed()){var l=i.element("a");r.s.insertNode(l,!1,!1),e=[l]}else{var c=r.s.current();e=ii.isTag(c,"img")?[ii.wrap(c,"a",i)]:r.s.wrapInTag("a")}e.forEach(function(e){return r.s.select(e)})}return e.forEach(function(e){$r(e,"href",_.value),function(e,t,n,r){var o;if(e&&(null!=t?t:n))if("input"===e)""===t.value&&r.hasAttribute("class")&&$r(r,"class",null),""!==t.value&&$r(r,"class",t.value);else if("select"===e){r.hasAttribute("class")&&$r(r,"class",null);for(var i=0;i<n.selectedOptions.length;i++){var a=null===(o=n.selectedOptions.item(i))||void 0===o?void 0:o.value;a&&a.split(/\s+/).filter(function(e){return e.trim().length>0}).forEach(function(e){r.classList.add(e)})}}}(u,k,T,e),S||function(e,t,n,r){var o=e.textContent;t.value.trim().length?n&&(o=t.value):o=r.value,o!==e.textContent&&(e.textContent=o)}(e,E,o,_),a&&v&&$r(e,"target",v.checked?"_blank":null),s&&b&&$r(e,"rel",b.checked?"nofollow":null),r.e.fire("applyLink",r,e,f)}),r.synchronizeValues(),t(),!1};return ii.isElement(f)?r.e.on(f,"submit",function(e){return e.preventDefault(),e.stopImmediatePropagation(),C(),!1}):f.onSubmit(C),f}},{key:"beforeDestruct",value:function(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}},{key:"__onClickReadOnlyLink",value:function(e){var t=this.jodit;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&ii.isTag(e.target,"a")&&e.preventDefault()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Wg(ip));Yg([On],Kg.prototype,"__onDblClickOnLink",null),Yg([On],Kg.prototype,"onProcessPasteLink",null),Yg([On],Kg.prototype,"__generateForm",null),Yg([On],Kg.prototype,"__onClickReadOnlyLink",null),ka.add("link",Kg);var Jg=function(e,t,n){var r,o=n.control,i="button".concat(o.command),a=null!==(r=o.args&&o.args[0])&&void 0!==r?r:no(e,i);no(e,i,a),e.execCommand(o.command,!1,"default"===a?null:a)};function Qg(e,t,n){return Qg=ny()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Zg(o,n.prototype),o},Qg.apply(null,arguments)}function Xg(e){return Xg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xg(e)}function Zg(e,t){return Zg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zg(e,t)}function ey(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ty(e){var t="function"==typeof Map?new Map:void 0;return ty=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Qg(e,arguments,Xg(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Zg(r,e)},ty(e)}function ny(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ny=function(){return!!e})()}ls.set("ol",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("ul",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),Qr.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Jg},Qr.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Jg};var ry=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Xg(t),function(e,t){return!t||"object"!==ey(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ny()?Reflect.construct(t,n||[],Xg(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}],e}var n;return 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&&Zg(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}},{key:"onCommand",value:function(e,t,n){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=n?n:null}}}),this.jodit.synchronizeValues(),!1}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(ty(ip));function oy(e,t,n){return oy=cy()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ay(o,n.prototype),o},oy.apply(null,arguments)}
50function iy(e){return iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iy(e)}function ay(e,t){return ay=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ay(e,t)}function sy(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ly(e){var t="function"==typeof Map?new Map:void 0;return ly=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return oy(e,arguments,iy(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ay(r,e)},ly(e)}function cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cy=function(){return!!e})()}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":ey(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([On],ry.prototype,"onCommand",null),ka.add("orderedList",ry),Qr.prototype.showPlaceholder=!0,Qr.prototype.placeholder="Type something",Qr.prototype.useInputsPlaceholder=!0;var uy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=iy(t),function(e,t){return!t||"object"!==sy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,cy()?Reflect.construct(t,n||[],iy(e).constructor):t.apply(e,n))}(this,t,arguments)).addNativeListeners=function(){e.j.e.off(e.j.editor,"input.placeholder keydown.placeholder").on(e.j.editor,"input.placeholder keydown.placeholder",e.toggle)},e.addEvents=function(){var t=e.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(e.placeholderElm.innerHTML=$r(t.element,"placeholder")||""),t.e.fire("placeholder",e.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",e.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",e.toggle).on(window,"load",e.toggle),e.addNativeListeners(),e.toggle()},e}var n;return 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&&ay(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(e.i18n(e.o.placeholder),"</span>")),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",function(e){e?t.hide():t.toggle()}).on("changePlace",this.addEvents),this.addEvents())}},{key:"show",value:function(){var e=this.j;if(!e.o.readonly){var t=0,n=0,r=e.s.current(),o=r&&ii.closest(r,ii.isBlock,e.editor)||e.editor,i=e.ew.getComputedStyle(o),a=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);var s=e.editor.firstChild;if(ii.isElement(s)&&!tr(s)){var l=e.ew.getComputedStyle(s);t=parseInt(l.getPropertyValue("margin-top"),10),n=parseInt(l.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(l.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=l.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height");Cr(this.placeholderElm,{display:"block",textAlign:i.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(i.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(i.getPropertyValue("margin-left"),10),n)})}}},{key:"hide",value:function(){ii.safeRemove(this.placeholderElm)}},{key:"toggle",value:function(){var e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===Xt&&function(e){var t;if(!e.firstChild)return!0;var n=e.firstChild;if(Rt.has(null===(t=n.nodeName)||void 0===t?void 0:t.toLowerCase())||/^(TABLE)$/i.test(n.nodeName))return!1;var r=ii.next(n,function(e){return e&&!ii.isEmptyTextNode(e)},e);return ii.isText(n)&&!r?ii.isEmptyTextNode(n):!r&&ii.each(n,function(e){return!(ii.isLeaf(e)||ii.isList(e))&&(ii.isEmpty(e)||ii.isTag(e,"br"))})}(e.editor)?this.show():this.hide())}},{key:"beforeDestruct",value:function(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(ly(ip));function dy(e,t,n){return dy=my()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&py(o,n.prototype),o},dy.apply(null,arguments)}
50function fy(e){return fy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fy(e)}function py(e,t){return py=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},py(e,t)}function hy(e){var t="function"==typeof Map?new Map:void 0;return hy=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return dy(e,arguments,fy(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),py(r,e)},hy(e)}function my(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(my=function(){return!!e})()}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":sy(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([za(function(e){return e.defaultTimeout/10},!0)],uy.prototype,"toggle",null),ka.add("placeholder",uy),ka.add("poweredByJodit",function(e){var t=e.o;t.hidePoweredByJodit||t.inline||!(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)||e.hookStatus("ready",function(){e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)})}),ls.set("redo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg> ').set("undo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg> '),Qr.prototype.controls.redo={mode:en,isDisabled:function(e){return!e.history.canRedo()},tooltip:"Redo"},Qr.prototype.controls.undo={mode:en,isDisabled:function(e){return!e.history.canUndo()},tooltip:"Undo"};var gy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=fy(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,my()?Reflect.construct(t,n||[],fy(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}],e}var n;return 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&&py(e,t)}(t,e),(n=[{key:"beforeDestruct",value:function(){}},{key:"afterInit",value:function(e){var t=function(t){return e.history[t](),!1};e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(hy(ip));function yy(e,t,n){return yy=Sy()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&by(o,n.prototype),o},yy.apply(null,arguments)}
50function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vy(e)}function by(e,t){return by=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},by(e,t)}function _y(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function wy(e){var t="function"==typeof Map?new Map:void 0;return wy=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return yy(e,arguments,vy(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),by(r,e)},wy(e)}function Sy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sy=function(){return!!e})()}ka.add("redoUndo",gy),Qr.prototype.minWidth=200,Qr.prototype.maxWidth="100%",Qr.prototype.minHeight=200,Qr.prototype.maxHeight="auto",Qr.prototype.saveHeightInStorage=!1;var Ey=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":_y(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ky=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=vy(t),function(e,t){return!t||"object"!==_y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Sy()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}(this,t,arguments)).__resizeWorkspaces=e.j.async.debounce(e.__resizeWorkspaceImd,e.j.defaultTimeout,!0),e}var n;return 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&&by(e,t)}(t,e),n=[{key:"afterInit",value:function(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}},{key:"__initialize",value:function(){var e=this.j;if(!e.o.inline){var t=e.o.height;if(e.o.saveHeightInStorage&&"auto"!==t){var n=e.storage.get("height");n&&(t=n)}Cr(e.editor,{minHeight:"100%"}),Cr(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}}},{key:"__setHeight",value:function(e){var t=this.j.container,n=t.clientHeight,r=t.clientWidth;if(nr(e)){var o=this.j.o,i=o.minHeight,a=o.maxHeight;nr(i)&&i>e&&(e=i),nr(a)&&a<e&&(e=a)}Cr(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:n,clientWidth:r})}},{key:"__setWidth",value:function(e){var t=this.j.container,n=t.clientHeight,r=t.clientWidth;if(nr(e)){var o=this.j.o,i=o.minWidth,a=o.maxWidth;nr(i)&&i>e&&(e=i),nr(a)&&a<e&&(e=a)}Cr(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:n,clientWidth:r})}},{key:"__getNotWorkHeight",value:function(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2}},{key:"__resizeWorkspaceImd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.j.container,t=e.clientHeight,n=e.clientWidth;
50if(this.j&&!this.j.isDestructed&&this.j.o&&!this.j.o.inline&&this.j.container&&this.j.container.parentNode){var r=(Cr(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if(nr(r)&&r>0&&([this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(function(e){e&&Cr(e,"minHeight",r)}),this.j.e.fire("setMinHeight",r)),nr(this.j.o.maxHeight)){var o=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.currentPlace.slots.center,this.j.iframe,this.j.editor].map(function(e){e&&Cr(e,"maxHeight",o)}),this.j.e.fire("setMaxHeight",o)}if(this.j.container){var i="auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto";Cr(this.j.workplace,"height",i),this.j.container.style.setProperty("--jd-jodit-workplace-height",nr(i)?i+"px":i)}var a=this.j.container,s=a.clientHeight,l=a.clientWidth;t===s&&n===l||this.j.e.fire(this.j,"resize")}}},{key:"beforeDestruct",value:function(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(wy(ip));function Ty(e,t,n){return Ty=Py()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Oy(o,n.prototype),o},Ty.apply(null,arguments)}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xy(e)}function Oy(e,t){return Oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Oy(e,t)}function Cy(e){var t="function"==typeof Map?new Map:void 0;return Cy=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Ty(e,arguments,xy(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Oy(r,e)},Cy(e)}function Py(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Py=function(){return!!e})()}Ey([Ua()],ky.prototype,"__initialize",null),Ey([On],ky.prototype,"__setHeight",null),Ey([On],ky.prototype,"__setWidth",null),Ey([On],ky.prototype,"__resizeWorkspaceImd",null),ka.add("size",ky),Qr.prototype.showCharsCounter=!0,Qr.prototype.countHTMLChars=!1,Qr.prototype.countTextSpaces=!1,Qr.prototype.showWordsCounter=!0;var Ay=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=xy(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Py()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}(this,t,arguments)).charCounter=null,e.wordCounter=null,e.reInit=function(){e.j.o.showCharsCounter&&e.charCounter&&e.j.statusbar.append(e.charCounter,!0),e.j.o.showWordsCounter&&e.wordCounter&&e.j.statusbar.append(e.wordCounter,!0),e.j.e.off("change keyup",e.calc).on("change keyup",e.calc),e.calc()},e.calc=e.j.async.throttle(function(){var t,n=e.j.text;e.j.o.showCharsCounter&&e.charCounter&&(t=e.j.o.countHTMLChars?e.j.value:e.j.o.countTextSpaces?n.replace(_t(),"").replace(/[\r\n]/g,""):n.replace(Et(),""),e.charCounter.textContent=e.j.i18n("Chars: %d",t.length)),e.j.o.showWordsCounter&&e.wordCounter&&(e.wordCounter.textContent=e.j.i18n("Words: %d",n.replace(_t(),"").split(Et()).filter(function(e){return e.length}).length))},e.j.defaultTimeout),e}var n;return 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&&Oy(e,t)}(t,e),(n=[{key:"afterInit",value:function(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}},{key:"beforeDestruct",value:function(){ii.safeRemove(this.charCounter),ii.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Cy(ip));function Iy(e,t,n){return Iy=Ny()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&jy(o,n.prototype),o},Iy.apply(null,arguments)}
50function Ry(e){return Ry=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ry(e)}function jy(e,t){return jy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jy(e,t)}function My(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Dy(e){var t="function"==typeof Map?new Map:void 0;return Dy=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Iy(e,arguments,Ry(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),jy(r,e)},Dy(e)}function Ny(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ny=function(){return!!e})()}ka.add("stat",Ay),Qr.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},ls.set("table",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '),Qr.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(e,t,n,r){e.editor.normalize();for(var o=e.history.snapshot.make(),i=r.control,a=i.data&&i.data.rows?i.data.rows:10,s=i.data&&i.data.cols?i.data.cols:10,l=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+function(){if(!e.o.table.useExtraClassesOptions)return"";var t=[];if(i.data){var n=i.data.classList;Object.keys(n).forEach(function(e){t.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(e,'" type="checkbox"/>').concat(n[e],"</label>"))})}return t.join("")}()+'</div></div><label class="jodit-form__center"><span>1</span> &times; <span>1</span></label></form>'),c=l.querySelectorAll("span")[0],u=l.querySelectorAll("span")[1],d=l.querySelector(".jodit-form__container"),f=l.querySelector(".jodit-form__options"),p=[],h=a*s,m=0;m<h;m+=1)p[m]||p.push(e.c.element("span",{dataIndex:m}));if(e.e.on(d,"mousemove",function(e,t){var n=e.target;if(ii.isTag(n,"span")){for(var r=void 0===t||isNaN(t)?parseInt($r(n,"-index")||"0",10):t||0,o=Math.ceil((r+1)/s),i=r%s+1,a=0;a<p.length;a+=1)i>=a%s+1&&o>=Math.ceil((a+1)/s)?p[a].className="jodit_hovered":p[a].className="";u.textContent=i.toString(),c.textContent=o.toString()}}).on(d,"touchstart mousedown",function(t){var r=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),ii.isTag(r,"span")){var i=parseInt($r(r,"-index")||"0",10),a=Math.ceil((i+1)/s),l=i%s+1,c=e.createInside,u=c.element("tbody"),d=c.element("table");d.appendChild(u);for(var p,h,m=null,g=1;g<=a;g+=1){p=c.element("tr");for(var y=1;y<=l;y+=1)h=c.element("td"),m||(m=h),Cr(h,"width",(100/l).toFixed(4)+"%"),h.appendChild(c.element("br")),p.appendChild(c.text("\n")),p.appendChild(c.text("\t")),p.appendChild(h);u.appendChild(c.text("\n")),u.appendChild(p)}Wo("input[type=checkbox]:checked",f).forEach(function(e){e.value.split(/[\s]+/).forEac
50h(function(e){d.classList.add(e)})}),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(o);var v=ii.furthest(e.s.current(),ii.isBlock,e.editor);if(v&&ii.isEmpty(v))ii.replace(v,d,void 0,!1,!0);else if(v){var b=c.text("\n");if(e.o.table.splitBlockOnInsertTable){var _=e.s.range;_.collapse(!1),_.insertNode(b),_.collapse(!1),e.s.selectRange(_);var w=e.s.splitSelection(v,b);w?ii.after(w,d):ii.after(v,d)}else ii.after(v,b),ii.after(b,d)}else e.s.insertNode(d,!1);m&&(e.s.setCursorIn(m),Zo(m,e.editor,e.ed)),n()}}),r&&r.parentElement){for(var g=0;g<a;g+=1){for(var y=e.c.div(),v=0;v<s;v+=1)y.appendChild(p[g*s+v]);d.appendChild(y)}p[0]&&(p[0].className="hovered")}return l},tooltip:"Insert table"},ka.add("table",function(e){e.registerButton({name:"table",group:"insert"})}),Qr.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0};var Ly=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":My(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ry(t),function(e,t){return!t||"object"!==My(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ny()?Reflect.construct(t,n||[],Ry(e).constructor):t.apply(e,n))}(this,t,arguments)).isSuitableStart=function(t){var n;return ii.isText(t)&&In(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||(null===(n=t.parentNode)||void 0===n?void 0:n.firstChild)===t&&e.isSuitable(t.nextSibling))||e.isNotWrapped(t)&&!ii.isTemporary(t)},e.isSuitable=function(t){return ii.isText(t)||e.isNotWrapped(t)},e.isNotWrapped=function(t){return ii.isElement(t)&&!(ii.isBlock(t)||ii.isTag(t,e.j.o.wrapNodes.exclude))},e}var n;return 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&&jy(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}},{key:"beforeDestruct",value:function(e){e.e.off(".wtn")}},{key:"postProcessSetEditorValue",value:function(){var e=this.jodit;if(e.isEditorMode()){for(var t=e.editor.firstChild,n=!1;t;){if(t=By(t,e),this.isSuitableStart(t)){n||e.s.save(),n=!0;var r=e.createInside.element(e.o.enter);for(ii.before(t,r);t&&this.isSuitable(t);){var o=t.nextSibling;r.appendChild(t),t=o}r.normalize(),t=r}t=t&&t.nextSibling}n&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}}},{key:"preprocessInput",value:function(){var e=this.jodit,t="afterInit"===e.e.current;if(e.isEditorMode()&&!e.editor.firstChild&&(e.o.wrapNodes.emptyBlockAfterInit||!t)){var n=e.createInside.element(e.o.enter),r=e.createInside.element("br");ii.append(n,r),ii.append(e.editor,n),e.s.isFocused()&&e.s.setCursorBefore(r),e.e.fire("internalChange")}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Dy(ip));function By(e,t){var n=e,r=e;do{if(!ii.isElement(r)||!ii.isLeaf(r)||ii.isList(r.parentElement))break;var o=ii.findNotEmptySibling(r,!1);ii.isTag(n,"ul")?n.appendChild(r):n=ii.wrap(r,"ul",t.createInside),r=o}while(r);return n}Ly([On],Fy.prototype,"postProcessSetEditorValue",null),Ly([On],Fy.prototype,"preprocessInput",null),ka.add("wrapNodes",Fy),Qr.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};var zy=new Set(["table","pre","blockquote","code"]);function Uy(e,t){if(e.o.dtd.removeExtraBr&&!ii.isTag(t,"br")){var n=ii.furthest(t,ii.isBlock,e.editor);if(n&&!ii.isTag(n,zy)){var r=ii.isTag(t,"br")?t:ii.findNotEmptySibling(t,!1);if(!ii.isTag(r,"br"))return;e.s.setCursorBefore(r),ii.safeRemove(r)}}}function Hy(e,t){if(ii.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&ii.isBlock(t)){var n=ii.furthest(e.s.current(),ii.isBlock,e.editor);n&&!e.o.dtd.blockLimits[n.tagName.toLowerCase()]&&(e.s.setCursorAfter(n),ii.isEmpty(n)&&ii.safeRemove(n))}}function Vy(e,t,n){return Vy=Yy()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Gy(o,n.prototype),o},Vy.apply(null,arguments)}
50function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qy(e)}function Gy(e,t){return Gy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gy(e,t)}function Wy(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function $y(e){var t="function"==typeof Map?new Map:void 0;return $y=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Vy(e,arguments,qy(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Gy(r,e)},$y(e)}function Yy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yy=function(){return!!e})()}var Ky=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Wy(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=qy(n=t),function(e,t){return!t||"object"!==Wy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Yy()?Reflect.construct(n,r||[],qy(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Gy(e,t)}(t,e),n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"__onBeforeInsertNode",value:function(e){var t=this;Object.keys(f).forEach(function(n){f[n](t.j,e)})}},{key:"__onAfterInsertNode",value:function(e){var t=this;Object.keys(d).forEach(function(n){d[n](t.j,e)})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}($y(ip));Ky([ma(":beforeInsertNode")],Jy.prototype,"__onBeforeInsertNode",null),Ky([ma(":afterInsertNode")],Jy.prototype,"__onAfterInsertNode",null),ka.add("dtd",Jy),Object.keys(i).forEac
50h(function(e){rm[e]=i[e]});var Qy=function(e){return"__esModule"!==e};Object.keys(u).filter(Qy).forEach(function(e){ls.set(e.replace("_","-"),u[e])}),Object.keys(c).filter(Qy).forEach(function(e){var t,n=c[e],r=xn(null===(t=n.prototype)||void 0===t?void 0:t.className)?n.prototype.className():e;In(r)?rm.modules[r]=n:console.warn("Module name must be a string",e)}),Object.keys(s).filter(Qy).forEach(function(e){rm.decorators[e]=s[e]}),["Confirm","Alert","Prompt"].forEach(function(e){rm[e]=c[e]}),Object.keys(Nm).filter(Qy).forEach(function(e){rm.lang[e]=Nm[e]});var Xy=r(72),Zy=r.n(Xy),ev=r(825),tv=r.n(ev),nv=r(659),rv=r.n(nv),ov=r(56),iv=r.n(ov),av=r(540),sv=r.n(av),lv=r(113),cv=r.n(lv),uv=r(616),dv={};function fv(e,t,n){return fv=yv()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&hv(o,n.prototype),o},fv.apply(null,arguments)}function pv(e){return pv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pv(e)}function hv(e,t){return hv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hv(e,t)}function mv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gv(e){var t="function"==typeof Map?new Map:void 0;return gv=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return fv(e,arguments,pv(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),hv(r,e)},gv(e)}function yv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yv=function(){return!!e})()}dv.styleTagTransform=cv(),dv.setAttributes=iv(),dv.insert=rv().bind(null,"head"),dv.domAPI=tv(),dv.insertStyleElement=sv(),Zy()(uv.A,dv),uv.A&&uv.A.locals&&uv.A.locals,Qr.prototype.addNewLine=!0,Qr.prototype.addNewLineOnDBLClick=!0,Qr.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],Qr.prototype.addNewLineDeltaShow=20,ls.set("enter",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> ');var vv=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":mv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bv="addnewline",_v=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=pv(t),function(e,t){return!t||"object"!==mv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yv()?Reflect.construct(t,n||[],pv(e).constructor):t.apply(e,n))}(this,t,arguments)).__line=e.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(e.j.i18n("Break"),'" class="jodit-add-new-line"><span>').concat(ls.get("enter"),"</span></div>")),e.__isMatchedTag=function(t){return Boolean(t&&e.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))},e.__isBeforeContent=!1,e.__lineInFocus=!1,e.__isShown=!1,e.__hideForce=function(){e.__isShown&&(e.__isShown=!1,e.j.async.clearTimeout(e.__timeout),e.__lineInFocus=!1,ii.safeRemove(e.__line),e.__line.style.setProperty("--jd-anl-handle-offset","0"))},e.__canGetFocus=function(e){return null!=e&&ii.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)}
50,e.__onClickLine=function(t){var n=e.j,r=n.createInside.element(n.o.enter);e.__isBeforeContent&&e.__current&&e.__current.parentNode?e.__current===n.editor?ii.prepend(n.editor,r):e.__current.parentNode.insertBefore(r,e.__current):n.editor.appendChild(r),n.s.setCursorIn(r),Zo(r,n.editor,n.ed),n.synchronizeValues(),e.__hideForce(),t.preventDefault()},e}var n;return 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&&hv(e,t)}(t,e),(n=[{key:"__show",value:function(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}},{key:"onLock",value:function(e){e&&this.__isShown&&this.__hideForce()}},{key:"__hide",value:function(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}},{key:"afterInit",value:function(e){var t=this;e.o.addNewLine&&(e.e.on(this.__line,"mousemove",function(e){e.stopPropagation()}).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",function(){t.j.async.clearTimeout(t.__timeout),t.__lineInFocus=!0}).on(this.__line,"mouseleave",function(){t.__lineInFocus=!1}).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}},{key:"__addEventListeners",value:function(){var e=this.j;e.e.off(e.editor,"."+bv).off(e.container,"."+bv).off("."+bv).on([e.ow,e.ew,e.editor],"scroll."+bv,this.__hideForce).on("finishedCleanHTMLWorker."+bv,this.__hideForce).on(e.editor,"click."+bv,this.__hide).on(e.container,"mouseleave."+bv,this.__hide).on(e.editor,"mousemove."+bv,this.__onMouseMove)}},{key:"onDblClickEditor",value:function(e){var t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){var n=Wi(t.editor,t,t.ed),r=e.pageY-t.ew.scrollX,o=t.createInside.element(t.o.enter);Math.abs(r-n.top)<Math.abs(r-(n.height+n.top))&&t.editor.firstChild?t.editor.insertBefore(o,t.editor.firstChild):t.editor.appendChild(o),t.s.setCursorIn(o),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}},{key:"__onMouseMove",value:function(e){var t=this.j,n=t.ed.elementFromPoint(e.clientX,e.clientY);if(ii.isHTMLElement(n)&&ii.isOrContains(t.editor,n))if(t.editor===n||this.__isMatchedTag(n)||(n=ii.closest(n,this.__isMatchedTag,t.editor)),n){if(this.__isMatchedTag(n)){var r=ii.up(n,ii.isBlock,t.editor);r&&r!==t.editor&&(n=r)}var o=$i(n,this.j),i=!1,a=e.clientY,s=e.clientX;if(this.j.iframe){var l=$i(this.j.iframe,this.j,!0);a+=l.top,s+=l.left}var c=this.j.o.addNewLineDeltaShow;Math.abs(a-o.top)<=c?(i=o.top,this.__isBeforeContent=!0):Math.abs(a-(o.top+o.height))<=c&&(i=o.top+o.height,this.__isBeforeContent=!1);var u=t.editor===n;!1!==i&&(u&&!this.__isBeforeContent||!u&&!oo(this.__isBeforeContent?ii.prev:ii.next,n,this.__canGetFocus,t.editor))?(this.__line.style.top=i+"px",this.__current=n,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",s-o.left-10+"px")):(this.__current=!1,this.__hide())}else this.__hide()}},{key:"beforeDestruct",value:function(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),ii.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+bv).off(this.j.container,"."+bv).off("."+bv)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gv(ip));function wv(e,t,n){return wv=xv()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&kv(o,n.prototype),o},wv.apply(null,arguments)}function Sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ev(e){return Ev=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ev(e)}function kv(e,t){return kv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kv(e,t)}function Tv(e){var t="function"==typeof Map?new Map:void 0;return Tv=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wv(e,arguments,Ev(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),kv(r,e)},Tv(e)}function xv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xv=function(){return!!e})()}vv([ma(":lock")],_v.prototype,"onLock",null),vv([On],_v.prototype,"__hide",null),vv([ma(":dblclick")],_v.prototype,"onDblClickEditor",null),vv([Ua(function(e){return e.defaultTimeout})],_v.prototype,"__onMouseMove",null),ka.add("addNewLine",_v),Qr.prototype.controls.classSpan={command:"applyClassName",exec:co,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:function(e,t){var n=e.s.current();if(n){var r=ii.closest(n,ii.isElement,e.editor)||e.editor;return Boolean(t.control.args&&r.classList.contains(t.control.args[0].toString()))}return!1},isActive:function(e,t){var n=e.s.current();if(n){var r=ii.closest(n,ii.isElement,e.editor)||e.editor,o=!1;return t.control.list&&Object.keys(t.control.list).forEach(function(e){r.classList.contains(e)&&(o=!0)}),Boolean(r&&r!==e.editor&&void 0!==t.control.list&&o)}return!1},childTemplate:function(e,t,n){return'<span class="'.concat(t,'">').concat(e.i18n(n),"</span>")},tooltip:"Insert className"};var Ov=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ev(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,xv()?Reflect.construct(t,n||[],Ev(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"classSpan",group:"script"}],e}var n;return 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}}
50),t&&kv(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){e.registerCommand("applyClassName",function(t,n,r){return e.s.commitStyle({attributes:Sv({},"class",r)}),!1})}},{key:"beforeDestruct",value:function(){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Tv(ip));function Cv(e){var t=/([^[]*)\[([^\]]+)]/,n=/[\s]*,[\s]*/,r=/^(.*)[\s]*=[\s]*(.*)$/,o={};return In(e)?(e.split(n).map(function(e){e=ur(e);var i=t.exec(e),a={};if(i){var s=i[2].split(n);i[1]&&(s.forEach(function(e){e=ur(e);var t=r.exec(e);t?a[t[1]]=t[2]:a[e]=!0}),o[i[1].toUpperCase()]=a)}else o[e.toUpperCase()]=!0}),o):!!e&&(Object.keys(e).forEach(function(t){o[t.toUpperCase()]=e[t]}),o)}function Pv(e,t){var n=e.s,r=t;if(!r){r=e.createInside.fake();var o=n.range;ii.safeInsertNode(o,r),o.collapse()}var i=ii.furthest(r,Av,e.editor);if(i)if(n.cursorOnTheLeft(i))ii.before(i,r);else if(n.cursorOnTheRight(i))ii.after(i,r);else{var a=n.splitSelection(i);a&&ii.after(a,r)}t||(n.setCursorBefore(r),ii.safeRemove(r))}function Av(e){return ii.isInlineBlock(e)&&!ii.isTag(e,Rt)}function Iv(e,t,n,r){if(r&&ii.isElement(t)&&!0!==r[t.nodeName]){var o=t.attributes;if(o&&o.length){for(var i=[],a=0;a<o.length;a+=1){var s=r[t.nodeName][o[a].name];(!s||!0!==s&&s!==o[a].value)&&i.push(o[a].name)}i.length&&(n=!0),i.forEach(function(e){t.removeAttribute(e)})}}return n}ka.add("classSpan",Ov),ls.set("class-span",'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '),Qr.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},Qr.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},ls.set("eraser",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> ');var Rv=new Set(["table","tbody","thead","tfoot","tr"]);function jv(e,t,n){if(e.o.cleanHTML.fillEmptyParagraph&&ii.isBlock(t)&&ii.isEmpty(t,Rt)&&!ii.isTag(t,Rv)){var r=e.createInside.element("br");return t.appendChild(r),!0}return n}function Mv(e,t,n,r,o,i){return ii.isText(t)&&!t.nodeValue?(t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),ii.safeRemove(t),!0):n}function Dv(e,t,n,r,o,i){if(i===t||!ii.isText(t)||null==t.nodeValue)return n;if(!_t().test(t.nodeValue))return n;var a=ii.furthest(i,ii.isBlock,e.editor);return!a||ii.isOrContains(a,t)?n:(t.nodeValue=t.nodeValue.replace(_t(),""),t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||ii.safeRemove(t),!0)}function Nv(e,t,n){var r=function(e,t,n){if(!n||!ii.isHTMLElement(t))return t;var r=n[t.nodeName.toLowerCase()]||n[t.nodeName];return r?ii.replace(t,r,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==r?(t=r,!0):n}function Lv(e,t,n){return!(!ii.isElement(t)||!Ai(t,{safeJavaScriptLink:e.options.cleanHTML.safeJavaScriptLink,removeOnError:e.options.cleanHTML.removeOnError}))||n}function Fv(e,t,n,r,o,i){return function(e,t,n,r,o){if(!ii.isText(t)){if(r&&!r[t.nodeName])return!0;if(!r&&o&&o[t.nodeName])return!0}return!!e.o.cleanHTML.removeEmptyElements&&ii.isElement(t)&&null!=t.nodeName.match(Pt)&&!ii.isTemporary(t)&&0===fr(t.innerHTML).length&&(null==n||!ii.isOrContains(t,n))}(e,t,i,r,o)?(ii.safeRemove(t),!0):n}var Bv=Object.keys(p);function zv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uv(e,t,n){return Uv=Wv()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Vv(o,n.prototype),o},Uv.apply(null,arguments)}function Hv(e){return Hv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hv(e)}function Vv(e,t){return Vv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vv(e,t)}function qv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gv(e){var t="function"==typeof Map?new Map:void 0;return Gv=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Uv(e,arguments,Hv(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Vv(r,e)},Gv(e)}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wv=function(){return!!e})()}var $v=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":qv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yv=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Hv(t),function(e,t){return!t||"object"!==qv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Wv()?Reflect.construct(t,n||[],Hv(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"eraser",group:"font-style"}],e.currentSelectionNode=null,e.walker=new _r(e.j.async,{timeout:e.j.o.cleanHTML.timeout}),e}var n;return 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&&Vv(e,t)}(t,e),n=[{key:"afterInit",value:function(e){}},{key:"isEditMode",get:function(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}},{key:"onChangeCleanHTML",value:function(){if(this.isEditMode){var e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}}},{key:"startWalker",value:function(){var e=this,t=this.jodit,n=Cv(this.j.o.cleanHTML.allowTags),r=Cv(this.j.o.cleanHTML.denyTags);this.walker.on("visit",function(o){return function(e,t,n,r,o){var i=!1,a=e.o.
50cleanHTML.disableCleanFilter,s=!0,l=!1,c=void 0;try{for(var u,d=Bv[Symbol.iterator]();!(s=(u=d.next()).done);s=!0){var f=u.value;if(!a||!a.has(f)){var h=i;if(i=(0,p[f])(e,t,i,n,r,o),ft||h||!i||console.warn('CleanHTML: Effect "'.concat(f,'"')),!t.isConnected)return!0}}}catch(e){l=!0,c=e}finally{try{s||null==d.return||d.return()}finally{if(l)throw c}}return i}(t,o,n,r,e.currentSelectionNode)}).on("end",function(t){e.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")})}},{key:"beforeCommand",value:function(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?Pv(this.j):function(e){var t=e.s,n=e.editor,r=e.createInside,o=t.range,i=o.cloneRange(),a=o.cloneRange(),s=r.fake(),l=r.fake();i.collapse(!0),a.collapse(!1),ii.safeInsertNode(i,s),ii.safeInsertNode(a,l),o.setStartBefore(s),o.collapse(!0),t.selectRange(o),Pv(e,s),o.setEndAfter(l),o.collapse(!1),t.selectRange(o),Pv(e,l);var c=[];ii.between(s,l,function(e){Av(e)&&!ii.isTag(e,"a")&&c.push(e),ii.isElement(e)&&$r(e,"style")&&$r(e,"style",null)}),c.forEach(function(e){return ii.unwrap(e)});var u=function(e,t){if(!ii.findNotEmptySibling(e,t)){var r=e.parentNode;if(r&&r!==n&&$r(r,"style"))return $r(r,"style",null),u(r,t),!0}};u(s,!0)&&u(l,!1),o.setStartAfter(s),o.setEndBefore(l),t.selectRange(o),ii.safeRemove(s),ii.safeRemove(l)}(this.j),!1}},{key:"onBeforeSetNativeEditorValue",value:function(e){var t=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return zv(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?zv(e,2):void 0}}(e)||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.")}()}(this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()]),n=t[0],r=t[1];return n.innerHTML=e.value,this.onSafeHTML(n),e.value=n.innerHTML,Pi(n,{safeJavaScriptLink:!0,removeOnError:!0}),ii.safeRemove(r),!1}},{key:"onSafeHTML",value:function(e){Pi(e,this.j.o.cleanHTML)}},{key:"beforeDestruct",value:function(){this.walker.destruct()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Gv(ip));$v([ma([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Yv.prototype,"onChangeCleanHTML",null),$v([Ga("ready")],Yv.prototype,"startWalker",null),$v([ma(":beforeCommand")],Yv.prototype,"beforeCommand",null),$v([ma(":beforeSetNativeEditorValue")],Yv.prototype,"onBeforeSetNativeEditorValue",null),$v([ma(":safeHTML")],Yv.prototype,"onSafeHTML",null),ka.add("cleanHtml",Yv),Qr.prototype.controls.cut={command:"cut",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Cut selection"},Qr.prototype.controls.copy={command:"copy",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Copy selection"},Qr.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},ls.set("copy",'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> ').set("cut",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-2
501 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> ').set("paste",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> ').set("select-all",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> ');var Kv=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}var t;return(t=[{key:"init",value:function(e){var t;null===(t=this.buttons)||void 0===t||t.forEach(function(t){return e.registerButton(t)}),e.e.off("copy.".concat(En," cut.").concat(En)).on("copy.".concat(En," cut.").concat(En),function(t){var n,r=e.s.html,o=uo(t)||uo(e.ew)||uo(t.originalEvent);o&&(o.setData(nn,Mi(r)),o.setData(rn,r)),e.buffer.set(En,r),e.e.fire("pasteStack",{html:r,action:e.o.defaultActionOnPaste||ln}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(n=null==e?void 0:e.events)||void 0===n||n.fire("afterCopy",r)})}},{key:"destruct",value:function(e){var t,n;null===(t=ai(e,"buffer"))||void 0===t||t.set(En,""),null===(n=null==e?void 0:e.events)||void 0===n||n.off("."+En)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();ka.add("clipboard",Kv);const Jv={"copy-format":"نسخ التنسيق"},Qv={"copy-format":"Kopírovat formát"},Xv={"copy-format":"Format kopierenт"},Zv={"copy-format":"Copiar formato"},eb={"copy-format":"کپی کردن قالب"},tb={"copy-format":"Kopioi muotoilu"},nb={"copy-format":"Format de copie"},rb={"copy-format":"העתק עיצוב"},ob={"copy-format":"Formátum másolás"},ib={"copy-format":"salin format"},ab={"copy-format":"Copia il formato"},sb={"copy-format":"copyformat"},lb={"copy-format":"복사 형식"},cb={"copy-format":"Формат хуулах"},ub={"copy-format":"opmaak kopiëren"},db={"copy-format":"format kopii"},fb={"copy-format":"Copiar formato"},pb={"copy-format":"Копировать формат"},hb={"copy-format":"Kopyalama Biçimi"},mb={"copy-format":"复制格式"},gb={"copy-format":"複製格式"};var yb="copy-format",vb=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],bb=function(e,t,n,r){var o=Cr(n,t);return o===r[t]&&(o=n.parentNode&&n!==e.editor&&n.parentNode!==e.editor?bb(e,t,n.parentNode,r):void 0),o};function _b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wb(e,t,n){return wb=xb()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Eb(o,n.prototype),o},wb.apply(null,arguments)}function Sb(e){return Sb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sb(e)}function Eb(e,t){return Eb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Eb(e,t)}function kb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Tb(e){var t="function"==typeof Map?new Map:void 0;return Tb=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wb(e,arguments,Sb(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Eb(r,e)},Tb(e)}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xb=function(){return!!e})()}Qr.prototype.controls.copyformat={exec:function(e,t,n){var r=n.button;if(t){if(e.buffer.exists(yb))e.buffer.delete(yb),e.e.off(e.editor,"mouseup."+yb);else{var o={},i=ii.up(t,function(e){return e&&!ii.isText(e)},e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),vb.forEach(function(e){o[e]=Cr(a,e)}),a!==e.editor&&ii.safeRemove(a);var s=function(e,t,n){var r={};return t&&vb.forEach(function(o){r[o]=bb(e,o,t,n),o.match(/border(Style|Color)/)&&!r.borderWidth&&(r[o]=void 0)}),r}(e,i,o);e.e.on(e.editor,"mouseup."+yb,function(){e.buffer.delete(yb);var t=e.s.current();t&&(ii.isTag(t,"img")?Cr(t,s):e.s.commitStyle({attributes:{style:s}}
50)),e.e.off(e.editor,"mouseup."+yb)}),e.buffer.set(yb,!0)}r.update()}},isActive:function(e){return e.buffer.exists(yb)},tooltip:"Paint format"},ka.add("copyformat",function(e){e.registerButton({name:"copyformat",group:"clipboard"}),xa(h)}),ls.set("copyformat",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> ');var Ob=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":kb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Cb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Sb(t),function(e,t){return!t||"object"!==kb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xb()?Reflect.construct(t,n||[],Sb(e).constructor):t.apply(e,n))}(this,t,arguments)).isFragmentFromEditor=!1,e.isCopyMode=!1,e.startDragPoint={x:0,y:0},e.draggable=null,e.bufferRange=null,e.getText=function(e){var t=uo(e);return t?t.getData(rn)||t.getData(nn):null},e}var n;return 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&&Eb(e,t)}(t,e),n=[{key:"afterInit",value:function(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=ii.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||bo(e),this.isFragmentFromEditor){var n=this.j.s.sel,r=n&&n.rangeCount?n.getRangeAt(0):null;r&&(this.bufferRange=r.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,function(e){return ii.isElement(e)&&e.classList.contains(Uf.prototype.getFullElName("item"))}(t)&&(t=t.querySelector("img")),ii.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),no(this.draggable,"target",t)),this.addDragListeners()}},{key:"addDragListeners",value:function(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"onDrag",value:function(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}},{key:"onDragEnd",value:function(){this.draggable&&(ii.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}},{key:"onDrop",value:function(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=this.j.s.sel,n=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),r=this.__getWorkFragment(n,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),r&&this.__insertFragment.call(this,r,n),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}},{key:"__getWorkFragment",value:function(e,t){var n=null;if(!this.draggable&&e)n=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return _b(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_b(e,2):void 0}}
50(e)||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.")}()}("1"===$r(this.draggable,"-is-file")?["a","href"]:["img","src"]),o=r[0],i=r[1];(n=this.j.createInside.element(o)).setAttribute(i,$r(this.draggable,"data-src")||$r(this.draggable,"src")||""),"a"===o&&(n.textContent=$r(n,i)||"")}else n=no(this.draggable,"target");else this.getText(t)&&(n=this.j.createInside.fromHTML(this.getText(t)));return n}},{key:"__insertFragment",value:function(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),ii.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Tb(ip));function Pb(e,t,n){return Pb=Mb()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ib(o,n.prototype),o},Pb.apply(null,arguments)}function Ab(e){return Ab=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ab(e)}function Ib(e,t){return Ib=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ib(e,t)}function Rb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function jb(e){var t="function"==typeof Map?new Map:void 0;return jb=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Pb(e,arguments,Ab(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ib(r,e)},jb(e)}function Mb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Mb=function(){return!!e})()}Ob([On],Cb.prototype,"onDragStart",null),Ob([Ua(function(e){return e.defaultTimeout/10})],Cb.prototype,"onDrag",null),Ob([On],Cb.prototype,"onDragEnd",null),Ob([On],Cb.prototype,"onDrop",null),ka.add("dragAndDrop",Cb),Qr.prototype.draggableTags=["img","jodit-media","jodit"];var Db,Nb=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Rb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"}(Db||(Db={}));var Lb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Ab(t),function(e,t){return!t||"object"!==Rb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Mb()?Reflect.construct(t,n||[],Ab(e).constructor):t.apply(e,n))}(this,t,arguments)).dragList=[],e.draggable=null,e.isCopyMode=!1,e.diffStep=10,e.startX=0,e.startY=0,e.state=Db.IDLE,e}var n;return 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&&Ib(e,t)}(t,e),(n=[{key:"afterInit",value:function(){this.dragList=this.j.o.draggableTags?Ei(this.j.o.draggableTags).filter(Boolean).map(function(e){return e.toLowerCase()}):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=this;if("dragstart"===e.type&&this.draggable)return!1;if(!(this.state>Db.IDLE)){var n=e.target;if(this.dragList.length&&n){var r=function(e){return Boolean(e&&t.dragList.includes(e.nodeName.toLowerCase()))},o=ii.furthest(n,r,this.j.editor)||(r(n)?n:null);o&&(ii.isTag(o.parentElement,"a")&&o.parentElement.firstChild===o&&o.parentElement.lastChild===o&&(o=o.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=bo(e),this.draggable=o.cloneNode(!0),no(this.draggable,"target",o),this.state=Db.WAIT_DRAGGING,this.addDragListeners())}}}},{key:"onDrag",value:function(e){var n,r;if(this.draggable&&this.state!==Db.IDLE){var o=e.clientX,i=e.clientY;if(!(this.state===Db.WAIT_DRAGGING&&Math.sqrt(Math.pow(o-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(this.state===Db.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=Db.DRAGGING),this.j.e.fire("hidePopup hideResizer"),
50!this.draggable.parentNode){var a=no(this.draggable,"target");Cr(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(n=null==a?void 0:a.offsetWidth)&&void 0!==n?n:100,height:null!==(r=null==a?void 0:a.offsetHeight)&&void 0!==r?r:100}),Ca(this.j,t).appendChild(this.draggable)}Cr(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}}},{key:"onDragEnd",value:function(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=Db.IDLE,this.draggable&&(ii.safeRemove(this.draggable),this.draggable=null))}},{key:"onDrop",value:function(){if(!this.draggable||this.state<Db.DRAGGING)this.onDragEnd();else{var e=no(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));var t=e.parentElement;this.j.s.insertNode(e,!0,!1),t&&ii.isEmpty(t)&&!ii.isCell(t)&&ii.safeRemove(t),ii.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}}},{key:"addDragListeners",value:function(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(jb(ip));Nb([On],Lb.prototype,"onDragStart",null),Nb([Ua(function(e){return e.defaultTimeout/10})],Lb.prototype,"onDrag",null),Nb([On],Lb.prototype,"onDragEnd",null),Nb([On],Lb.prototype,"onDrop",null),ka.add("dragAndDropElement",Lb),Qr.prototype.controls.file={popup:function(e,t,n){var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.s.insertNode(e.createInside.fromHTML('<a href="'.concat(t,'" title="').concat(n,'">').concat(n||t,"</a>")))},o=null;return t&&(ii.isTag(t,"a")||ii.closest(t,"a",e.editor))&&(o=ii.isTag(t,"a")?t:ii.closest(t,"a",e.editor)),sg(e,{filebrowser:function(e){e.files&&e.files.forEach(function(t){return r(e.baseurl+t)}),n()},upload:!0,url:function(e,t){o?(o.setAttribute("href",e),o.setAttribute("title",t)):r(e,t),n()}},o,n,!1)},tags:["a"],tooltip:"Insert file"},ka.add("file",function(e){e.registerButton({name:"file",group:"media"})}),Qr.prototype.autofocus=!1,Qr.prototype.cursorAfterAutofocus="end",Qr.prototype.saveSelectionOnBlur=!0,ka.add("focus",function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",function(){e.isEditorMode()&&e.s.save(!0)}).on("focus",function(){e.s.restore()});var t=function(){if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){var t=ii.last(e.editor,function(e){return ii.isText(e)});t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",function(){e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())}),e.e.on("afterInit afterAddPlace",function(){e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",function(t){e.isEditorMode()&&t.target&&ii.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))})})}),Qr.prototype.fullsize=!1,Qr.prototype.globalFullSize=!0,ls.set("fullsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> ').set("shrink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '),Qr.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},update:function(e,t){var n=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=n:t.state.icon.name=n},tooltip:"Open in fullsize",mode:Zt+Xt};var Fb=new Set;function Bb(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function zb(e,t,n){return zb=Gb()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Hb(o,n.prototype),o},zb.apply(null,arguments)}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ub(e)}function Hb(e,t){return Hb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hb(e,t)}function Vb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function qb(e){var t="function"==typeof Map?new Map:void 0;return qb=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return zb(e,arguments,Ub(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Hb(r,e)},qb(e)}function Gb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gb=function(){return!!e})()}ka.add("fullsize",function(e){e.registerButton({name:"fullsize"});var t=!1,n=0,r=0,o=!1,i=function(){var i=e.container;e.events&&(t?(n=Cr(i,"height",!0),r=Cr(i,"width",!0),Cr(i,{height:e.ow.innerHeight,width:e.ow.innerWidth}),o=!0):o&&Cr(i,{height:n||"auto",width:r||"auto"}))},a=function(n){var r,o=e.container,a=e.events;if(o){if(void 0===n&&(n=!o.classList.contains("jodit_fullsize")),e.setMod("fullsize",n),e.o.fullsize=n,t=n,o.classList.toggle("jodit_fullsize",n),e.toolbar&&(Zn(e)&&(null===(r=e.toolbarContainer)||void 0===r||r.appendChild(e.toolbar.container)),Cr(e.toolbar.container,"width","auto")),n?Fb.add(o):Fb.delete(o),e.o.globalFullSize&&(1===Fb.size&&n||0===Fb.size&&!n)){for(var s=o.parentNode;s&&s.nodeType!==Node.DOCUMENT_NODE&&s.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)s.classList.toggle("jodit_fullsize-box_true",n),s=s.parentNode;i()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",i),e.e.on("afterInit afterOpen",function(){var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)}).on("toggleFullSize",a).on("beforeDestruct",function(){t&&a(!1)}).on("beforeDestruct",function(){e.events&&e.e.off(e.ow,"resize",i)})}),ls.set("hr",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '),Qr.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},ka.add("hr",function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",function(){var t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);var n=ii.closest(t.parentElement,ii.isBlock,e.editor);n&&ii.isEmpty(n)&&n!==e.editor&&(ii.after(n,t),ii.safeRemove(n));var r=ii.next(t,ii.isBlock,e.editor,!1);return r||(r=e.createInside.element(e.o.enter),ii.after(t,r)),e.s.setCursorIn(r),!1})}),Qr.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};var Wb=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Vb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$b="__jodit_imageprocessor_binded",Yb=$b+"blob-id",Kb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Ub(n=t),function(e,t){return!t||"object"!==Vb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Gb()?Reflect.construct(n,r||[],Ub(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&Hb(e,t)}(t,e),n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){var t=ai(e,"buffer"),n=null==t?void 0:t.get(Yb);if(t&&n){var r=Object.keys(n),o=!0,i=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;URL.revokeObjectURL(c)}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}t.delete(Yb)}}},{key:"onAfterGetValueFromEditor",value:function(e,t){if(t!==kn)return this.onBeforeSetElementValue(e)}},{key:"onBeforeSetElementValue",value:function(e){var t=this.jodit;if(t.o.imageProcessor.replaceDataURIToBlobIdInView){var n=t.buffer.get(Yb);if(n){var r=Object.keys(n),o=!0,i=!1,a=void 0;try{for(var s,l=r[Symbol.iterator]();!(o=(s=l.next()).done);o=!0)for(var c=s.value;e.value.includes(c);)e.value=e.value.replace(c,n[c])}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}}}}},{key:"afterChange",value:function(e){var t,n=this;return(t=function(){var e;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return(e=n.jodit).editor?(Wo("img",e.editor).forEach(function(t){no(t,$b)||(no(t,$b,!0),t.complete||e.e.on(t,"load",function n(){var r;!e.isInDestruct&&(null===(r=e.e)||void 0===r||r.fire("resize")),e.e.off(t,"load",n)}),t.src&&/^data:/.test(t.src)&&function(e,t){if(e.o.imageProcessor.replaceDataURIToBlobIdInView&&"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof URL){var n=t.src,r
50=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);return new Blob([r],{type:n})}(n);t.src=URL.createObjectURL(r),e.e.fire("internalUpdate");var o=e.buffer.get(Yb)||{};o[t.src]=n,e.buffer.set(Yb,o)}}(e,t),e.e.on(t,"mousedown touchstart",function(){e.s.select(t)}))}),[2]):[2]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Bb(i,r,o,a,s,"next",e)}function s(e){Bb(i,r,o,a,s,"throw",e)}a(void 0)})})()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(qb(ip));function Jb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qb(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Xb(e){return Xb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xb(e)}function Zb(e,t){return Zb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zb(e,t)}function e_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function t_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(t_=function(){return!!e})()}Wb([ma(":afterGetValueFromEditor")],Kb.prototype,"onAfterGetValueFromEditor",null),Wb([ma(":beforeSetElementValue")],Kb.prototype,"onBeforeSetElementValue",null),Wb([ma([":change",":afterInit",":changePlace"]),za()],Kb.prototype,"afterChange",null),ka.add("imageProcessor",Kb),Qr.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var n_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":e_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},r_=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=Xb(t),function(e,t){return!t||"object"!==e_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,t_()?Reflect.construct(t,n||[],Xb(e).constructor):t.apply(e,n))}(this,t,[e])).state=n,o.handlers=r,o}var n;return 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&&Zb(e,t)}(t,e),n=[{key:"className",value:function(){return"UIImageMainTab"}},{key:"appendChildToContainer",value:function(){}},{key:"render",value:function(){return'<div class="jodit-form__group &__editSrc">\n\t\t\t<label>~Src~</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input class="jodit-input &__imageSrc" type="text"/>\n\t\t\t\t<div class="jodit-input_group-buttons &__fixImage">\n\t\t\t\t\t\t<a class="jodit-button &__changeImage">*image*</a>\n\t\t\t\t\t\t<a class="jodit-button &__editImage">*crop*</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editTitle">\n\t\t\t<label>~Title~</label>\n\t\t\t<input type="text" class="jodit-input &__imageTitle"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlt">\n\t\t\t<label>~Alternative~</label>\n\t\t\t<input type="text" class="jodit-input &__imageAlt"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLink">\n\t\t\t<label>~Link~</label>\n\t\t\t<input type="text" class="jodit-input &__imageLink"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLinkTarget">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n\t\t\t\t<span>~Open link in new tab~</span>\n\t\t\t</label>\n\t\t</div>'}},{key:"onStateImageSrcChange",value:function(){var e,t=this;return(e=function(){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(e){return t.getElm("imageSrc").value=t.state.values.imageSrc,[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Qb(i,r,o,a,s,"next",e)}function s(e){Qb(i,r,o,a,s,"throw",e)}a(void 0)})})()}},{key:"onImageSrcChange",value:function(){this.state.values.imageSrc=this.getElm("imageSrc").value}},{key:"onEditImageClick",value:function(e){this.handlers.openImageEditor(),e.stopPropagation()}},{key:"onChangeImageClick",value:function(e){this.handlers.openImagePopup(this.getElm("changeImage")),e.stopPropagation()}},{key:"onStateTitleChange",value:function(){this.getElm("imageTitle").value=this.state.values.imageTitle}},{key:"onTitleChange",value:function(){this.state.values.imageTitle=this.getElm("imageTitle").value}},{key:"onStateAltChange",value:function(){this.getElm("imageAlt").value=this.state.values.imageAlt}},{key:"onAltChange",value:function(){this.state.values.imageAlt=this.getElm("imageAlt").value}},{key:"onStateImageLinkChange",value:function(){this.getElm("imageLink").value=this.state.values.imageLink}},{key:"onImageLinkChange",value:function(){this.state.values.imageLink=this.getElm("imageLink").value}},{key:"onStateImageLinkOpenInNewTabChange",value:function(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}},{key:"onImageLinkOpenInNewTabChange",value:function(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o,n=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEac
50h(function(t){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return Jb(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Jb(e,2):void 0}}(e)||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.")}()}(t),o=r[0],i=r[1];Cr(e.getElm(i),"display",n[o]?null:"none")});var r=this.getElm("changeImage"),o=Boolean(t.filebrowser.ajax.url||t.uploader.url);Cr(r,"display",o?null:"none");var i=this.getElm("editImage"),a=Boolean(t.filebrowser.ajax.url)&&n.useImageEditor;Cr(i,"display",a?null:"none"),Cr(this.getElm("fixImage"),"display",o||a?null:"none")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);n_([ma("state.values.imageSrc")],r_.prototype,"onStateImageSrcChange",null),n_([ma("imageSrc:change")],r_.prototype,"onImageSrcChange",null),n_([ma("editImage:click")],r_.prototype,"onEditImageClick",null),n_([ma("changeImage:click")],r_.prototype,"onChangeImageClick",null),n_([ma("state.values.imageTitle")],r_.prototype,"onStateTitleChange",null),n_([ma("imageTitle:change")],r_.prototype,"onTitleChange",null),n_([ma("state.values.imageAlt")],r_.prototype,"onStateAltChange",null),n_([ma("imageAlt:change")],r_.prototype,"onAltChange",null),n_([ma("state.values.imageLink")],r_.prototype,"onStateImageLinkChange",null),n_([ma("imageLink:change")],r_.prototype,"onImageLinkChange",null),n_([ma("state.values.imageLinkOpenInNewTab")],r_.prototype,"onStateImageLinkOpenInNewTabChange",null),n_([ma("imageLinkOpenInNewTab:change")],r_.prototype,"onImageLinkOpenInNewTabChange",null),n_([Ga("ready")],r_.prototype,"hideFieldByOptions",null),r_=n_([pi],r_);var o_=function(e){return/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e},i_=function(e){return nr(e)?e?e+"px":e.toString():(e=ur(e),/^[0-9]+$/.test(e)?e+"px":e)};function a_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s_(e){return s_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s_(e)}function l_(e,t){return l_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l_(e,t)}function c_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u_=function(){return!!e})()}var d_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":c_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},f_=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=s_(t),function(e,t){return!t||"object"!==c_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,u_()?Reflect.construct(t,n||[],s_(e).constructor):t.apply(e,n))}(this,t,[e,{availableClasses:e.o.image.availableClasses}])).state=n,o.handlers=r,o}var n;return 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&&l_(e,t)}(t,e),n=[{key:"className",value:function(){return"UIImagePositionTab"}},{key:"render",value:function(e){var t,n=e.availableClasses;return'<div class="jodit-form__group &__editMargins">\n\t\t\t<label>~Margins~</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>\n\t\t\t\t<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlign">\n\t\t\t<label>~Align~</label>\n\t\t\t<select class="jodit-select &__align">\n\t\t\t\t<option value="">~--Not Set--~</option>\n\t\t\t\t<option value="left">~Left~</option>\n\t\t\t\t<option value="center">~Center~</option>\n\t\t\t\t<option value="right">~Right~</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editStyle">\n\t\t\t<label>~Styles~</label>\n\t\t\t<input type="text" class="jodit-input &__style"/>\n\t\t</div>
50\n\t\t<div class="jodit-form__group &__editClass">\n\t\t\t<label>~Classes~</label>\n\t\t\t'.concat((t=[],n&&n.length>0?(t.push('<select class="jodit-input jodit-select &__classes">'),n.forEach(function(e){In(e)?t.push('<option value="'.concat(e,'">').concat(e,"</option>")):t.push('<option value="'.concat(e[0],'">').concat(e[1],"</option>"))}),t.push("</select>")):t.push('<input type="text" class="jodit-input &__classes"/>'),t.join("")),'\n\t\t</div>\n\t\t<div class="jodit-form__group &__editId">\n\t\t\t<label>Id</label>\n\t\t\t<input type="text" class="jodit-input &__id"/>\n\t\t</div>\n\t\t<div\n\t\t\tclass="jodit-form__group &__editBorderRadius"\n\t\t>\n\t\t\t<label>~Border radius~</label>\n\t\t\t<input type="number" class="jodit-input &__borderRadius"/>\n\t\t</div>')}},{key:"onStateAlignChange",value:function(){this.getElm("align").value=this.state.values.align}},{key:"onChangeAlign",value:function(){var e=this.getElm("align");this.state.values.align=e.value}},{key:"onStateValuesBorderRadiusChange",value:function(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}},{key:"onChangeBorderRadius",value:function(){var e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}},{key:"onStateValuesIdChange",value:function(){this.getElm("id").value=this.state.values.id}},{key:"onChangeId",value:function(){var e=this.getElm("id");this.state.values.id=e.value}},{key:"onStateValuesStyleChange",value:function(){this.getElm("style").value=this.state.values.style}},{key:"onChangeStyle",value:function(){var e=this.getElm("style");this.state.values.style=e.value}},{key:"onStateValuesClassesChange",value:function(){this.getElm("classes").value=this.state.values.classes}},{key:"onChangClasses",value:function(){var e=this.getElm("classes");this.state.values.classes=e.value}},{key:"onLockMarginClick",value:function(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}},{key:"onChangeMarginIsLocked",value:function(){var e=this,t=this.getElm("marginBottom"),n=this.getElm("marginRight"),r=this.getElm("marginLeft"),o=this.getElm("lockMargin");if([n,t,r].forEach(function(t){$r(t,"disabled",e.state.marginIsLocked||null)}),o.innerHTML=ls.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){var i=this.state.values.marginTop;this.state.values.marginRight=i,this.state.values.marginBottom=i,this.state.values.marginLeft=i}}},{key:"onStateValuesMarginChange",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),n=this.getElm("marginBottom"),r=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),n.value=this.state.values.marginBottom.toString(),r.value=this.state.values.marginLeft.toString()}},{key:"onChangeMargin",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),n=this.getElm("marginBottom"),r=this.getElm("marginLeft");this.state.values.marginTop=o_(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=o_(t.value),this.state.values.marginBottom=o_(n.value),this.state.values.marginLeft=o_(r.value))}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach(function(n){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return a_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a_(e,2):void 0}}
50(e)||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.")}()}(n),o=r[0],i=r[1];Cr(e.getElm(i),"display",t[o]?null:"none")})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h_(e,t,n){return h_="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m_(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},h_(e,t,n||e)}function m_(e){return m_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m_(e)}function g_(e,t){return g_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g_(e,t)}function y_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v_=function(){return!!e})()}d_([Ga("ready"),ma("state.values.align")],f_.prototype,"onStateAlignChange",null),d_([ma("align:change")],f_.prototype,"onChangeAlign",null),d_([Ga("ready"),ma("state.values.borderRadius")],f_.prototype,"onStateValuesBorderRadiusChange",null),d_([ma("borderRadius:change")],f_.prototype,"onChangeBorderRadius",null),d_([Ga("ready"),ma("state.values.id")],f_.prototype,"onStateValuesIdChange",null),d_([ma("id:change")],f_.prototype,"onChangeId",null),d_([Ga("ready"),ma("state.values.style")],f_.prototype,"onStateValuesStyleChange",null),d_([ma("style:change")],f_.prototype,"onChangeStyle",null),d_([Ga("ready"),ma("state.values.classes")],f_.prototype,"onStateValuesClassesChange",null),d_([ma("classes:change")],f_.prototype,"onChangClasses",null),d_([ma("lockMargin:click")],f_.prototype,"onLockMarginClick",null),d_([Ga("ready"),ma("state.marginIsLocked")],f_.prototype,"onChangeMarginIsLocked",null),d_([Ga("ready"),ma(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],f_.prototype,"onStateValuesMarginChange",null),d_([ma(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],f_.prototype,"onChangeMargin",null),d_([Ga("ready")],f_.prototype,"hideFieldByOptions",null),f_=d_([pi],f_);var b_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":y_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},__=function(e){function t(e,n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,n){return t=m_(t),function(e,t){return!t||"object"!==y_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,v_()?Reflect.construct(t,n||[],m_(e).constructor):t.apply(e,n))}(this,t,[e])).state=n,i.handlers=o,i.__mainTab=new r_(i.jodit,i.state,i.handlers),i.__positionTab=new f_(i.jodit,i.state,i.handlers),i.getElm("tabsBox").appendChild(ag(e,[{name:"Image",content:i.__mainTab},{name:"Advanced",content:i.__positionTab}],r)),i.setMod("lock-size",i.state.sizeIsLocked),i.append(i.__mainTab).append(i.__positionTab),i}var n;return 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)}(t,e),n=[{key:"className",value:function(){return"UIImagePropertiesForm"}},{key:"appendChildToContainer",value:function(){}},{key:"getElm",value:function(e){var n=h_(m_(t.prototype),"getElm",this).call(this,e);if(n)return n;var r=!0,o=!1,i=void 0;try{for(var a,s=this.elements[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value.getElm(e);
50if(l)return l}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return null}},{key:"render",value:function(){return'<form>\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="&__view-box">\n\t\t\t\t\t<div class="&__imageView">\n\t\t\t\t\t\t<img class="&__imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="jodit-form__group &__imageSizes">\n\t\t\t\t\t\t<input type="text" class="jodit-input &__imageWidth"/>\n\t\t\t\t\t\t<a class="&__lockSize">'.concat(ls.get("lock"),'</a>\n\t\t\t\t\t\t<input type="text" class="&__imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>\n\t\t</div>\n\t</form>')}},{key:"onChangeSizeIsLocked",value:function(){var e=this.getElm("lockSize"),t=this.getElm("imageWidth");e.innerHTML=ls.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(t,"change")}},{key:"onLockSizeClick",value:function(){this.state.sizeIsLocked=!this.state.sizeIsLocked}},{key:"onStateValuesSizeChange",value:function(){var e=this.getElm("imageWidth"),t=this.getElm("imageHeight");e!==this.j.od.activeElement&&(e.value=this.state.values.imageWidth.toString()),t!==this.j.od.activeElement&&(t.value=this.state.values.imageHeight.toString())}},{key:"onImageWidthChange",value:function(e){var t=this.getElm("imageWidth"),n=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!Jn(t.value)||!Jn(n.value))return this.state.values.imageWidth=t.value,void(this.state.values.imageHeight=n.value);var r=parseFloat(t.value),o=parseFloat(n.value);e.target===t?(this.state.values.imageWidth=r,this.state.values.imageHeight=Math.round(r/this.state.ratio)):(this.state.values.imageWidth=Math.round(o*this.state.ratio),this.state.values.imageHeight=o)}},{key:"onStateValuesImageSrcChange",value:function(){var e=this.state.values.imageSrc;if(e){$r(this.getElm("imageViewSrc"),"src",e);var t=new Image;t.src=e,this.state.image=t}}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach(function(n){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return p_(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p_(e,2):void 0}}(e)||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.")}()}(n),o=r[0],i=r[1];Cr(e.getElm(i),"display",t[o]?null:"none")})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xs);function w_(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function S_(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function E_(e,t,n){return k_.apply(this,arguments)}function k_(){var e;return e=function(e,t,n){var r,o,i,a,s,l,c;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,e.decode()];case 1:return u.sent(),[3,3];case 2:return r=u.sent(),console.error(r),[3,3];case 3:return o=Cr(e,"width",!0)||$r(e,"width")||!1,i=Cr(e,"height",!0)||$r(e,"height")||!1,t.imageWidth=!1!==o?o_(o):e.offsetWidth||e.naturalWi
50dth,Jn(t.imageWidth)?t.imageHeight=!1!==i?o_(i):e.offsetHeight||e.naturalHeight:t.imageHeight=i||"",a=t.imageWidth,s=t.imageHeight,l=parseFloat(a.toString()),Jn(a)&&Jn(s)?!1===i?(t.imageHeight=Math.round(l/n.ratio),n.sizeIsLocked=!0,[2]):(c=parseFloat(s.toString()),n.sizeIsLocked=Math.abs(l-c*n.ratio)<1,[2]):(n.sizeIsLocked=!1,[2])}})},k_=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){S_(i,r,o,a,s,"next",e)}function s(e){S_(i,r,o,a,s,"throw",e)}a(void 0)})},k_.apply(this,arguments)}function T_(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x_(){var e;return e=function(e,t){var n,r;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(o){return n=t.sourceImage,r=t.values,function(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=Cr(e,"float"):"block"===Cr(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}(n,r),r.borderRadius=parseInt(n.style.borderRadius||"0",10)||0,r.id=$r(n,"id")||"",r.imageTitle=$r(n,"title")||"",r.imageAlt=$r(n,"alt")||"",r.style=$r(n,"style")||"",r.classes=($r(n,"class")||"").replace(/jodit_focused_image[\s]*/,""),function(e,t,n){var r=!0,o=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach(function(n){var i=e.style.getPropertyValue(Sr(n));if(!i)return o=!0,void(t[n]=0);/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),t[n]=i,(o&&t[n]||r&&"marginTop"!==n&&t[n]!==t.marginTop)&&(r=!1)}),n.marginIsLocked=r}(n,r,t),function(e,t,n){var r=ii.closest(e.sourceImage,"a",t.editor);r?(n.imageLink=$r(r,"href")||"",n.imageLinkOpenInNewTab="_blank"===$r(r,"target")):(n.imageLink="",n.imageLinkOpenInNewTab=!1)}(t,e,r),r.imageSrc=$r(n,"src")||"",[2,E_(n,r,t)]})},x_=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){T_(i,r,o,a,s,"next",e)}function s(e){T_(i,r,o,a,s,"throw",e)}a(void 0)})},x_.apply(this,arguments)}function O_(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function C_(e,t,n){return C_=j_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&A_(o,n.prototype),o},C_.apply(null,arguments)}function P_(e){return P_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},P_(e)}function A_(e,t){return A_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},A_(e,t)}function I_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function R_(e){var t="function"==typeof Map?new Map:void 0;return R_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return C_(e,arguments,P_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),A_(r,e)},R_(e)}function j_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(j_=function(){return!!e})()}b_([Ga("ready"),ma("state.sizeIsLocked")],__.prototype,"onChangeSizeIsLocked",null),b_([ma("lockSize:click")],__.prototype,"onLockSizeClick",null),b_([Ga("ready"),ma(["state.values.imageWidth","state.values.imageHeight"])],__.prototype,"onStateValuesSizeChange",null),b_([ma(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),za()],__.prototype,"onImageWidthChange",null),b_([Ga("ready"),ma("state.values.imageSrc")],__.prototype,"onStateValuesImageSrcChange",null),b_([Ga("ready")],__.prototype,"hideFieldByOptions",null),__=b_([pi],__);var M_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":I_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D_=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=P_(t),function(e,t){return!t||"object"!==I_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,j_()?Reflect.construct(t,n||[],P_(e).constructor):t.apply(e,n))}(this,t,arguments)).state={image:new Image,sourceImage:new Image,get ratio(){var e=this.image;
50return e.naturalWidth/e.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},e.activeTabState={activeTab:"Image"},e}var n;return 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&&A_(e,t)}(t,e),n=[{key:"form",get:function(){var e=this;return new __(this.j,this.state,this.activeTabState,{openImageEditor:function(){return function(e,t){var n=$r(t.image,"src")||"",r=e.c.element("a"),o=function(){r.host===location.host||e.confirm("You can only edit your own images. Download this image on the host?",function(n){n&&e.uploader&&e.uploader.uploadRemoteImage(r.href.toString(),function(n){e.alert("The image has been successfully uploaded to the host!",function(){In(n.newfilename)&&(t.values.imageSrc=n.baseurl+n.newfilename)})},function(t){e.alert("There was an error loading %s",t.message)})})};r.href=n,e.filebrowser.dataProvider.getPathByUrl(r.href.toString()).then(function(o){xf.call(e.filebrowser,r.href,o.name,o.path,o.source,function(){var e=(new Date).getTime();t.values.imageSrc=n+(-1!==n.indexOf("?")?"":"?")+"&_tmp="+e.toString()},function(t){e.alert(t.message)})}).catch(function(t){e.alert(t.message,o)})}(e.j,e.state)},openImagePopup:function(t){return function(e,t,n,r){var o=new Fc(t),i=function(){o.close(),o.destruct()};o.setContent(sg(e,{upload:function(e){e.files&&e.files.length&&(n.values.imageSrc=e.baseurl+e.files[0]),i()},filebrowser:function(){var e,t=(e=function(e){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(t){return e&&An(e.files)&&e.files.length&&(n.values.imageSrc=e.files[0],i()),[2]})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){w_(i,r,o,a,s,"next",e)}function s(e){w_(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()},n.image,i)).open(function(){return $i(r)})}(e.j,e.dialog,e.state,t)}})}},{key:"dialog",get:function(){var e=this,t=this.j,n=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),r=this.__buttons;return r.check.onAction(function(){(function(e,t,n){var r=t.values,o=r.style,i=r.imageSrc,a=r.borderRadius,s=r.imageTitle,l=r.imageAlt,c=r.imageLink,u=r.imageWidth,d=r.imageHeight,f=r.marginTop,p=r.marginRight,h=r.marginBottom,m=r.marginLeft,g=r.imageLinkOpenInNewTab,y=r.align,v=r.classes,b=r.id,_=e.o;_.image.editStyle&&$r(n,"style",o||null),i?($r(n,"src",i),n.style.borderRadius=a?a+"px":"",$r(n,"title",s||null),$r(n,"alt",l||null),function(e,t,n,r){var o=ii.closest(t,"a",e.editor);n?(o||(o=ii.wrap(t,"a",e.createInside)),$r(o,"href",n),$r(o,"target",r?"_blank":null)):o&&o.parentNode&&o.parentNode.replaceChild(t,o)}(e,n,c,g),function(e,t,n,r){if(t!==e.offsetWidth||n!==e.offsetHeight){var o=t?i_(t):null,i=n?i_(n):null;Cr(e,{width:o,height:o&&r?null:i}),$r(e,"width",o&&Jn(t)&&$r(e,"width")?o:null),$r(e,"width")&&!r||(i=null),$r(e,"height",i)}}(n,u,d,t.sizeIsLocked),e.o.image.editMargins&&function(e,t,n,r,o,i,a){var s=[t,n,r,o],l=function(e,t){var n=Cr(i,e),r=i_(t);n.toString()!==r.toString()&&Cr(i,e,r)};if(a)l("margin",t);else{var c=["margin-top","margin-right","margin-bottom","margin-left"];
50s.forEach(function(e,t){l(c[t],e)})}}(0,f,p,h,m,n,t.marginIsLocked),_.image.editClass&&$r(n,"class",v||null),_.image.editId&&$r(n,"id",b||null),_.image.editAlign&&Ar(n,y)):ii.safeRemove(n)})(t,e.state,e.state.sourceImage),t.synchronizeValues(),n.close()}),r.remove.onAction(function(){t.s.removeNode(e.state.sourceImage),n.close()}),r.cancel.onAction(function(){n.close()}),n.setHeader(t.i18n("Image properties")),n.setContent(this.form),n.setFooter([[r.cancel,r.remove],r.check]),t.e.on(n,"afterClose",function(){e.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(e.state.sourceImage)}),n.setSize(t.o.image.dialogWidth),io(t,n.container),n}},{key:"__buttons",get:function(){var e=this.j;return{check:al(e,"ok","Apply","primary"),remove:al(e,"bin","Delete"),cancel:al(e,"cancel","Cancel")}}},{key:"open",value:function(){var e=this;return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise(function(t,n){return function(e,t){return x_.apply(this,arguments)}(e.j,e.state).then(t,n)}).catch(function(t){Bn(t)||e.dialog.message.error(t.message)}).finally(function(){return e.__unlock()}),!1}},{key:"__lock",value:function(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach(function(e){return e.state.disabled=!0})}},{key:"__unlock",value:function(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach(function(e){return e.state.disabled=!1})}},{key:"afterInit",value:function(e){var t=this,n=this;e.e.on("afterConstructor changePlace",function(){e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",function(r){var o=r.target;if(ii.isTag(o,"img"))if(e.o.image.openOnDblClick){if(!1===t.j.e.fire("openOnDblClick",o))return;n.state.sourceImage=o,n.state.image=o.cloneNode(!0),e.o.readonly||(r.stopImmediatePropagation(),r.preventDefault(),n.open())}else r.stopImmediatePropagation(),e.s.select(o)})}).on("openImageProperties.imageproperties",function(e){n.state.sourceImage=e,t.state.image=e.cloneNode(!0),t.open()})}},{key:"onStateValuesImageSrcChange",value:function(){var e,t=this;return(e=function(){var e,n,r,o,i,a;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(s){switch(s.label){case 0:if(e=t.state,n=e.image,r=e.values,!n.src)return[2];s.label=1;case 1:s.trys.push([1,6,7,8]),t.__lock(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,n.decode()];case 3:return s.sent(),[3,5];case 4:return o=s.sent(),console.error(o),[3,5];case 5:return t.state.sizeIsLocked&&Jn(r.imageWidth)&&(i=parseFloat(r.imageWidth.toString()),r.imageHeight=Math.round(i/t.state.ratio)),t.j.e.fire("updateImageProperties.imageproperties",n),[3,8];case 6:return a=s.sent(),t.j.alert(a.message),[3,8];case 7:return t.__unlock(),[7];case 8:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){O_(i,r,o,a,s,"next",e)}function s(e){O_(i,r,o,a,s,"throw",e)}a(void 0)})})()}},{key:"beforeDestruct",value:function(e){var t,n,r;Object.values(null!==(t=ai(this,"__buttons"))&&void 0!==t?t:{}
50).forEach(function(e){return e.destruct()}),null===(n=ai(this,"dialog"))||void 0===n||n.destruct(),null===(r=ai(this,"form"))||void 0===r||r.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(R_(ip));M_([si],D_.prototype,"form",null),M_([si],D_.prototype,"dialog",null),M_([si],D_.prototype,"__buttons",null),M_([ma("state.image")],D_.prototype,"onStateValuesImageSrcChange",null),ka.add("imageProperties",D_);var N_=function(e,t){return"".concat(ii.isCell(t)?"padding":"margin").concat("rtl"===e?"Right":"Left")};ls.set("indent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("outdent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),Qr.prototype.controls.indent={tooltip:"Increase Indent"},Qr.prototype.controls.outdent={isDisabled:function(e){var t=e.s.current();if(t){var n=ii.closest(t,ii.isBlock,e.editor);if(n){var r=N_(e.o.direction,n);return!n.style[r]||parseInt(n.style[r],10)<=0}}return!0},tooltip:"Decrease Indent"},Qr.prototype.indentMargin=10;var L_=function(e,t,n,r){if(t&&!e.has(t)){var o=N_(n.o.direction,t);e.add(t);var i=t.style[o]?parseInt(t.style[o],10):0;i+=n.o.indentMargin*("outdent"===r?-1:1),t.style[o]=i>0?i+"px":"",$r(t,"style")||$r(t,"style",null)}};function F_(e,t,n){return F_=V_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&z_(o,n.prototype),o},F_.apply(null,arguments)}function B_(e){return B_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B_(e)}function z_(e,t){return z_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z_(e,t)}function U_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function H_(e){var t="function"==typeof Map?new Map:void 0;return H_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return F_(e,arguments,B_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),z_(r,e)},H_(e)}function V_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(V_=function(){return!!e})()}ka.add("indent",function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});var t=function(t){var n=new Set,r=e.o,o=r.enter,i=r.enterBlock,a=o.toLowerCase()===Jt,s=e.s.current();if(a&&e.s.isCollapsed()&&s){var l=ii.wrapNextInline(s,i,e);return L_(n,l,e,t),!1}return e.s.eachSelection(function(r){e.s.save();var s=!!r&&ii.up(r,ii.isBlock,e.editor);if(!s&&r&&(s=oo(a?ii.wrapNextInline:ii.wrapInline,r,a?i:o.toLowerCase(),e)),!s)return e.s.restore(
50),!1;L_(n,s,e,t),e.s.restore()}),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})}),ls.set("justify",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '),Qr.prototype.controls.align={name:"left",tooltip:"Align",update:function(e,t){var n=t.control,r=e.s.current();if(r){var o=Cr(ii.closest(r,ii.isBlock,e.editor)||e.editor,"text-align").toString();n.defaultValue&&-1!==n.defaultValue.indexOf(o)&&(o="left");var i=n.list,a=n.data;a&&a.currentValue!==o&&i&&(or(i)?i[o]:i.includes(o))&&(e.o.textIcons||"select"===n.component?t.state.text=o:t.state.icon.name=o,a.currentValue=o)}},isActive:function(e,t){var n=e.s.current();if(!n||!t.control.defaultValue)return!1;var r=ii.closest(n,ii.isBlock,e.editor)||e.editor;return-1===t.control.defaultValue.indexOf(Cr(r,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},Qr.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},Qr.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},Qr.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},Qr.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},ka.add("justify",function(e){e.registerButton({name:"align",group:"indent"});var t=function(t){return e.s.focus(),e.s.eachSelection(function(n){if(n){var r=ii.up(n,ii.isBlock,e.editor);r||(r=ii.wrapInline(n,e.o.enterBlock,e)),Rr(t,r)}}),!1};e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)});var q_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=B_(n=t),function(e,t){return!t||"object"!==U_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,V_()?Reflect.construct(n,r||[],B_(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&z_(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"onKeyDownArrow",value:function(e){var t;if(e.key===Ht&&this.j.selection.isCollapsed()){var n=this.j.selection.range,r=n.endContainer,o=n.endOffset;if(ii.isText(r)&&(null===(t=r.nodeValue)||void 0===t?void 0:t.length)===o){var i=r.parentNode;ii.isInlineBlock(i)&&!ii.findNotEmptyNeighbor(i,!1,this.j.editor)&&ii.after(i,this.j.createInside.text(bt))}}}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(H_(ip));function G_(e,t,n){return G_=J_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&$_(o,n.prototype),o},G_.apply(null,arguments)}function W_(e){return W_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},W_(e)}function $_(e,t){return $_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$_(e,t)}function Y_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function K_(e){var t="function"==typeof Map?new Map:void 0;return K_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return G_(e,arguments,W_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),$_(r,e)},K_(e)}function J_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J_=function(){return!!e})()}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":U_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([ma(":keydown")],q_.prototype,"onKeyDownArrow",null),ka.add("keyArrowOutside",q_),Qr.prototype.limitWords=!1,Qr.prototype.limitChars=!1,Qr.prototype.limitHTML=!1;var Q_=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Y_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},X_=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=W_(n=t),function(e,t){return!t||"object"!==Y_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,J_()?Reflect.construct(n,r||[],W_(e).constructor):n.apply(e,r));var e,n,r}var n;return 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)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this,n=e.o,r=n.limitWords,o=n.limitChars;if(e&&(r||o)){var i=null;e.e.off(".limit").on("beforePaste.limit",function(){i=e.history.snapshot.make()}).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKe
50yPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",function(){if(t.__shouldDenyInput(!0)&&i)return e.history.snapshot.restore(i),e.e.fire("denyPaste.limit"),!1})}}},{key:"shouldPreventInsertHTML",value:function(e){return(!e||!(Kt.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}},{key:"__shouldDenyInput",value:function(e){var t=this.jodit,n=t.o,r=n.limitWords,o=n.limitChars,i=t.o.limitHTML?t.value:t.text,a=this.__splitWords(i);if(r&&Z_(a.length,r,e))return t.e.fire("denyWords.limit limit.limit"),!0;var s=Boolean(o&&Z_(a.join("").length,o,e));return s&&t.e.fire("denyChars.limit limit.limit"),s}},{key:"checkPreventKeyPressOrPaste",value:function(e){if(this.shouldPreventInsertHTML(e))return!1}},{key:"checkPreventChanging",value:function(e,t){var n=this.jodit;this.__shouldDenyInput(!0)&&(n.value=t)}},{key:"__splitWords",value:function(e){return e.replace(_t(),"").split(Et()).filter(function(e){return e.length})}},{key:"beforeDestruct",value:function(e){e.e.off(".limit")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(K_(ip));function Z_(e,t,n){return n?e>t:e>=t}Q_([On],X_.prototype,"checkPreventKeyPressOrPaste",null),Q_([On],X_.prototype,"checkPreventChanging",null),ka.add("limit",X_),Qr.prototype.defaultLineHeight=null,ls.set("line-height",'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '),Qr.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:function(e,t,n){var r=n.control;return co(e,t,{control:r},function(e){return e})}};const ew={"Line height":"ارتفاع الخط"},tw={"Line height":"Výška čáry"},nw={"Line height":"Zeilenhöhe"},rw={"Line height":"Altura de la línea"},ow={"Line height":"ارتفاع خط"},iw={"Line height":"Rivin korkeus"},aw={"Line height":"Hauteur de ligne"},sw={"Line height":"גובה שורה"},lw={"Line height":"Vonal magassága"},cw={"Line height":"Tinggi baris"},uw={"Line height":"Altezza linea"},dw={"Line height":"ラインの高さ"},fw={"Line height":"선 높이"},pw={"Line height":"Зураасны өндөр"},hw={"Line height":"Lijnhoogte"},mw={"Line height":"Wysokość linii"},gw={"Line height":"Altura da linha"},yw={"Line height":"Высота линии"},vw={"Line height":"Çizgi yüksekliği"},bw={"Line height":"Висота лінії"},_w={"Line height":"线高"},ww={"Line height":"行高"};function Sw(e,t,n){return Sw=Ow()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&kw(o,n.prototype),o},Sw.apply(null,arguments)}function Ew(e){return Ew=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ew(e)}function kw(e,t){return kw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kw(e,t)}function Tw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function xw(e){var t="function"==typeof Map?new Map:void 0;return xw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Sw(e,arguments,Ew(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),kw(r,e)},xw(e)}function Ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ow=function(){return!!e})()}var Cw=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Ew(t),function(e,t){return!t||"object"!==Tw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ow()?Reflect.construct(t,n||[],Ew(e).constructor):t.apply(e,n))}(this,t,[e])).buttons=[{name:"lineHeight",group:"font"}],xa(L),n}var n;return 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}}
50),t&&kw(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){Cr(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}},{key:"applyLineHeight",value:function(e,t,n){var r,o=this.j,i=o.s,a=o.createInside,s=o.editor,l=o.o;i.isFocused()||i.focus(),i.save();var c=function(e){var t=ii.closest(e,ii.isBlock,s);t||(t=ii.wrap(e,l.enter,a));var o=Cr(t,"lineHeight");void 0===r&&(r=o.toString()!==n.toString()),Cr(t,"lineHeight",r?n:null)};try{if(i.isCollapsed()){var u=a.fake();i.insertNode(u,!1,!1),c(u),ii.safeRemove(u)}else i.eachSelection(c)}finally{i.restore()}}},{key:"beforeDestruct",value:function(e){Cr(e.editor,{lineHeight:null})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xw(ip));function Pw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aw(e,t,n){if(!t.isInDestruct){(function(e){return Boolean(e&&"drop"===e.type)})(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);var r=t.e.fire("beforePasteInsert",n);!jn(r)&&(In(r)||nr(r)||ii.isNode(r))&&(n=r),In(n)&&(n=function(e){var t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));var n=e.search(/<!--EndFragment-->/i);return-1!==n&&(e=e.substring(0,n)),e}(n)),t.s.insertHTML(n)}}function Iw(e,t,n,r,o){if(!1!==e.e.fire("beforeOpenPasteDialog",t,n,r,o)){var i=e.confirm('<div style="word-break: normal; white-space: normal">'.concat(e.i18n(t),"</div>"),e.i18n(n)),a=o.map(function(t){var n=t.text,o=t.value;return al(e,{text:n,name:n.toLowerCase(),tabIndex:0}).onAction(function(){i.close(),r(o)})});i.e.one(i,"afterClose",function(){e.s.isFocused()||e.s.focus()});var s=al(e,{text:"Cancel",tabIndex:0}).onAction(function(){i.close()});return i.setFooter(function(e){return function(e){if(Array.isArray(e))return Pw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pw(e,t):void 0}}(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.")}()}(a).concat([s])),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",i,t,n,r,o),i}}function Rw(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Tw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([On],Cw.prototype,"applyLineHeight",null),ka.add("lineHeight",Cw),Qr.prototype.mediaFakeTag="jodit-media",Qr.prototype.mediaInFakeBlock=!0,Qr.prototype.mediaBlocks=["video","audio"],ka.add("media",function(e){var t="jodit_fake_wrapper",n=e.options,r=n.mediaFakeTag,o=n.mediaBlocks;n.mediaInFakeBlock&&e.e.on("afterGetValueFromEditor",function(e){var n=new RegExp("<".concat(r,"[^>]+data-").concat(t,"[^>]+>([^]+?)</").concat(r,">"),"ig");n.test(e.value)&&(e.value=e.value.replace(n,"$1"))}).on("change afterInit afterSetMode changePlace",e.async.debounce(function(){e.isDestructed||e.getMode()===Zt||Wo(o.join(","),e.editor).forEach(function(n){no(n,t)||(no(n,t,!0),function(n){if(n.parentNode&&$r(n.parentNode,"data-jodit_iframe_wrapper"))n=n.parentNode;else{var o=e.createInside.element(r,function(e,t){return t in e?Object.defineProperty(e,t,{value:1,enumerable:!0,configurable:!0,writable:!0}):e[t]=1,e}({"data-jodit-temp":1,contenteditable:!1,draggable:!0},"data-".concat(t)));$r(o,"style",$r(n,"style")),o.style.display="inline-block"===n.style.display?"inline-block":"block",o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px",n.parentNode&&n.parentNode.insertBefore(o,n),o.appendChild(n),n=o}e.e.off(n,"mousedown.select touchstart.select").on(n,"mousedown.select touchstart.select",function(){e.s.setCursorAfter(n)})}(n))})},e.defaultTimeout))}),Qr.prototype.mobileTapTimeout=300,Qr.prototype.toolbarAdaptive=!0,Qr.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],Qr.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],Qr.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],Qr.prototype.controls.dots={mode:Zt+Xt,popup:function(e,t,n,r){var o=r.control.data;return void 0===o&&(o={toolbar:gd(e),rebuild:function(){var t,n;if(r){var i=e.e.fire("getDiffButtons.mobile",r.closest(Bu));if(i&&o){o.toolbar.build(Ei(i));var a=(null===(n=null===(t=e.toolbar)||void 0===t?void 0:t.firstButton)||void 0===n?void 0:n.container.offsetWidth)||36;o.toolbar.container.style.width=3*(a+4)+"px"}}}},r.control.data=o),o.rebuild(),o.toolbar},tooltip:"Show all"},ka.add("mobile",function(e){var t=0,n=Ei(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",function(n){if(n.changedTouches&&n.changedTouches.length){var r=(new Date).getTime(),o=r-t;o>e.o.mobileTapTimeout&&(t=r,o<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(n.clientX,n.clientY))}}),e.e.on("getDiffButtons.mobile",function(t){if(t===e.toolbar){var r=zs(Ei(e.o.buttons),e),o=zs(n,e);return Ln(r).reduce(function(e,t){return o.has(t)||e.push(t),e},[])}}),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",function(){var t,r;if(e.o.toolbar){var o=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,i=e.isFullSize||o>=e.o.sizeLG?Ei(e.o.buttons):o>=e.o.sizeMD?Ei(e.o.buttonsMD):o>=e.o.sizeSM?Ei(e.o.buttonsSM):Ei(e.o.buttonsXS);i.toString()!==n.toString()&&(n=i,e.e.fire("closeAllPopups"),null===(r=e.toolbar)||void 0===r||r.setRemoveButtons(e.o.removeButtons).build(n.concat(e.o.extraButtons)))}}).on(e.ow,"load resize",function(){return e.e.fire("recalcAdaptive")}
50)}),Qr.prototype.askBeforePasteHTML=!0,Qr.prototype.processPasteHTML=!0,Qr.prototype.scrollToPastedContent=!0,Qr.prototype.pasteExcludeStripTags=["br","hr"],Qr.prototype.pasteHTMLActionList=[{value:ln,text:"Keep"},{value:un,text:"Insert as Text"},{value:dn,text:"Insert only Text"}],Qr.prototype.memorizeChoiceWhenPasteFragment=!1,Qr.prototype.nl2brInPlainText=!0;var jw="pasteStorage";function Mw(e,t,n){return Mw=Bw()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Nw(o,n.prototype),o},Mw.apply(null,arguments)}function Dw(e){return Dw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Dw(e)}function Nw(e,t){return Nw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nw(e,t)}function Lw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Fw(e){var t="function"==typeof Map?new Map:void 0;return Fw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Mw(e,arguments,Dw(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Nw(r,e)},Fw(e)}function Bw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bw=function(){return!!e})()}Qr.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(e,t,n){var r,o=n.control;return(r=function(){var t,n,r,i,a,s,l;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(c){switch(c.label){case 0:if(o.name===jw)return e.execCommand("showPasteStorage"),[2];if(e.s.focus(),t="",n=!0,!navigator.clipboard)return[3,11];c.label=1;case 1:return c.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(r=c.sent())&&r.length?[4,r[0].getType(nn)]:[3,5];case 3:return i=c.sent(),[4,new Response(i).text()];case 4:t=c.sent(),c.label=5;case 5:return n=!1,[3,7];case 6:return a=c.sent(),ft||console.log(a),[3,7];case 7:if(!n)return[3,11];c.label=8;case 8:return c.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return t=c.sent(),n=!1,[3,11];case 10:return s=c.sent(),ft||console.log(s),[3,11];case 11:return n&&(t=e.buffer.get(En)||"",n=0===t.length),l=e.value,n?(e.ed.execCommand("paste"),!(n=l===e.value)&&e.e.fire("afterPaste")):t.length?(Aw(null,e,t),e.e.fire("afterPaste")):n&&e.alert("Your browser doesn't support direct access to the clipboard.",function(){e.s.focus()}),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){Rw(i,n,o,a,s,"next",e)}function s(e){Rw(i,n,o,a,s,"throw",e)}a(void 0)})})()},list:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},jw,"Paste Storage"),isChildDisabled:function(e){return e.e.fire("pasteStorageList")<2}};var zw=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Lw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Uw=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Dw(t),function(e,t){return!t||"object"!==Lw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Bw()?Reflect.construct(t,n||[],Dw(e).constructor):t.apply(e,n))}(this,t,arguments)).pasteStack=new ti(20),e._isDialogOpened=!1,e}var n;return 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&&Nw(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",function(e){return t.pasteStack.push(e)}),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}},{key:"beforeDestruct",value:function(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}},{key:"onPaste",value:function(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}},{key:"customPasteProcess",value:function(e){if(this.j.o.processPasteHTML){var t=uo(e),n=[null==t?void 0:t.getData(nn),null==t?void 0:t.getData(rn),null==t?void 0:t.getData(on)],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if(Gn(l)&&(this.j.e.fire("processHTML",e,l,{plain:n[0],html:n[1],rtf:n[2]})||this.processHTML(e,l)))return!1}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}}},{key:"defaultPasteProcess",value:function(e){var t=uo(e),n=(null==t?void 0:t.getData(rn))||(null==t?void 0:t.getData(nn));if(t&&n&&""!==ur(n)){var r=this.j.e.fire("processPaste",e,n,function(e){var t=e.types,n="";if(An(t)||"[object DOMStringList]"==={}.toString.call(t))for(var r=0;r<t.length;r+=1)n+=t[r]+";";else n=(t||nn).toString()+";";return n}(t));void 0!==r&&(n=r),(In(n)||ii.isNode(n))&&this.__insertByType(e,n,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}},{key:"processHTML",value:function(e,t){var n=this;if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){var r=this.pasteStack.find(function(e){return e.html===t});if(r)return this.__insertByType(e,t,r.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;var o=Iw(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",function(r){n._isDialogOpened=!1,n.__insertByType(e,t,r)},this.j.o.pasteHTMLActionList);return o&&(this._isDialogOpened=!0,o.e.on("beforeClose",function(){n._isDialogOpened=!1})),!0}},{key:"__insertByType",value:function(e,t,n){if(this.pasteStack.push({html:t,action:n}),In(t))switch(this.j.buffer.set(En,t),n){case cn:t=xi(t);break;case dn:t=Mi(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags)
50);break;case un:t=Oi(t);break;default:var r=this.j.e.fire("onCustomPasteHTMLOption",n,t,e);"string"==typeof r&&(t=r)}Aw(e,this.j,t)}},{key:"onProcessPasteReplaceNl2Br",value:function(e,t,n){if(n===nn+";"&&!Gn(t))return Ci(t)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Fw(ip));function Hw(e,t,n){return Hw=$w()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&qw(o,n.prototype),o},Hw.apply(null,arguments)}function Vw(e){return Vw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vw(e)}function qw(e,t){return qw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qw(e,t)}function Gw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ww(e){var t="function"==typeof Map?new Map:void 0;return Ww=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Hw(e,arguments,Vw(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),qw(r,e)},Ww(e)}function $w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($w=function(){return!!e})()}zw([On],Uw.prototype,"onPaste",null),zw([On],Uw.prototype,"onProcessPasteReplaceNl2Br",null),ka.add("paste",Uw),Qr.prototype.askBeforePasteFromWord=!0,Qr.prototype.processPasteFromWord=!0,Qr.prototype.defaultActionOnPasteFromWord=null,Qr.prototype.pasteFromWordActionList=[{value:ln,text:"Keep"},{value:un,text:"Clean"},{value:dn,text:"Insert only Text"}];var Yw=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=Vw(n=t),function(e,t){return!t||"object"!==Gw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,$w()?Reflect.construct(n,r||[],Vw(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&qw(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"processWordHTML",value:function(e,t,n){var r=this,o=this.j,i=o.o,a=i.processPasteFromWord,s=i.askBeforePasteFromWord,l=i.defaultActionOnPasteFromWord,c=i.defaultActionOnPaste,u=i.pasteFromWordActionList;return!(!a||!Wn(t)||(s?Iw(o,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",function(o){r.insertFromWordByType(e,t,o,n)},u):this.insertFromWordByType(e,t,l||c,n),0))}},{key:"insertFromWordByType",value:function(e,t,n,r){var o;switch(n){case ln:t=Ti(t);var i=null===(o=this.j.events)||void 0===o?void 0:o.fire("beautifyHTML",t);In(i)&&(t=i);break;case un:t=xi(t);break;case dn:t=Mi(xi(t))}Aw(e,this.j,t)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Ww(ip));function Kw(e,t,n){return Kw=Zw()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Qw(o,n.prototype),o},Kw.apply(null,arguments)}function Jw(e){return Jw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jw(e)}function Qw(e,t){return Qw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qw(e,t)}function Xw(e){var t="function"==typeof Map?new Map:void 0;return Xw=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Kw(e,arguments,Jw(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Qw(r,e)},Xw(e)}function Zw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zw=function(){return!!e})()}Yw.requires=["paste"],function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Gw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([ma(":processHTML")],Yw.prototype,"processWordHTML",null),ka.add("pasteFromWord",Yw);var eS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Jw(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,Zw()?Reflect.construct(t,n||[],Jw(e).constructor):t.apply(e,n))}(this,t,arguments)).currentIndex=0,e.list=[],e.container=null,e.listBox=null,e.previewBox=null,e.dialog=null,e.paste=function(){if(e.j.s.focus(),e.j.s.insertHTML(e.list[e.currentIndex]),0!==e.currentIndex){var t=e.list[0];e.list[0]=e.list[e.currentIndex],e.list[e.currentIndex]=t}e.dialog&&e.dialog.close(),e.j.synchronizeValues(),e.j.e.fire("afterPaste")},e.onKeyDown=function(t){var n=e.currentIndex;-1!==[Ut,Vt,Lt].indexOf(t.key)&&(t.key===Ut&&(0===n?n=e.list.length-1:n-=1),t.key===Vt&&(n===e.list.length-1?n=0:n+=1),t.key!==Lt?(n!==e.currentIndex&&e.selectIndex(n),t.stopImmediatePropagation(),t.preventDefault()):e.paste())},e.selectIndex=function(t){e.listBox&&Ln(e.listBox.childNodes).forEac
50h(function(n,r){n.classList.remove("jodit_active"),t===r&&e.previewBox&&(n.classList.add("jodit_active"),e.previewBox.innerHTML=e.list[t],n.focus())}),e.currentIndex=t},e.showDialog=function(){e.list.length<2||(e.dialog||e.createDialog(),e.listBox&&(e.listBox.innerHTML=""),e.previewBox&&(e.previewBox.innerHTML=""),e.list.forEach(function(t,n){var r=e.j.c.element("a");r.textContent=n+1+". "+t.replace(Et(),""),e.j.e.on(r,"keydown",e.onKeyDown),$r(r,"href","#"),$r(r,"data-index",n.toString()),$r(r,"tab-index","-1"),e.listBox&&e.listBox.appendChild(r)}),e.dialog&&e.dialog.open(),e.j.async.setTimeout(function(){e.selectIndex(0)},100))},e}var n;return 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&&Qw(e,t)}(t,e),n=[{key:"createDialog",value:function(){var e=this;this.dialog=this.j.dlg();var t=al(this.j,"paste","Paste","primary");t.onAction(this.paste);var n=al(this.j,"","Cancel");n.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,n]),this.j.e.on(this.listBox,"click dblclick",function(t){var n=t.target;return ii.isTag(n,"a")&&n.hasAttribute("data-index")&&e.selectIndex(parseInt($r(n,"-index")||"0",10)),"dblclick"===t.type&&e.paste(),!1})}},{key:"afterInit",value:function(){var e=this;this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",function(){return e.list.length}).on("afterCopy.paste-storage",function(t){-1!==e.list.indexOf(t)&&e.list.splice(e.list.indexOf(t),1),e.list.unshift(t),e.list.length>5&&(e.list.length=5)}),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}},{key:"beforeDestruct",value:function(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),ii.safeRemove(this.previewBox),ii.safeRemove(this.listBox),ii.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Xw(ip));function tS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nS(e,t):void 0}}(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 oS(e,t,n){return oS=cS()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&aS(o,n.prototype),o},oS.apply(null,arguments)}function iS(e){return iS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iS(e)}function aS(e,t){return aS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},aS(e,t)}function sS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function lS(e){var t="function"==typeof Map?new Map:void 0;return lS=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return oS(e,arguments,iS(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),aS(r,e)},lS(e)}function cS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cS=function(){return!!e})()}ka.add("pasteStorage",eS),Qr.prototype.controls.preview={icon:"eye",command:"preview",mode:Zt+Xt,tooltip:"Preview"},ka.add("preview",function(e){e.registerButton({name:"preview"}),e.registerCommand("preview",function(t,n,r){var o=e.dlg();o.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0);var i=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return tS(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?tS(e,2):void 0}}
50(e)||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.")}()}(Qo(e,r,"px",o.getElm("content")))[1];o.e.on(o,"afterClose",i)})}),ls.set("print",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg> '),Qr.prototype.controls.print={exec:function(e){var t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),Ca(e,Qr).appendChild(t);var n=function(){e.e.off(e.ow,"mousemove",n),ii.safeRemove(t)},r=t.contentWindow;if(r){e.e.on(r,"onbeforeunload onafterprint",n).on(e.ow,"mousemove",n),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",r.document,e),r.document.body.innerHTML=e.value):(r.document.write('
50<!doctype html><html lang="'+_o(e.o.language)+'"><head><title></title></head><style>'+function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.ownerDocument.styleSheets;return Ln(t).map(function(e){try{return Ln(e.cssRules)}catch(e){}return[]}).flat().filter(function(t){try{return Boolean(t&&e.matches(t.selectorText))}catch(e){}return!1})},n=function(){function n(r,o,i){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.css={};var s=i||{},l=function(t){var n=t.selectorText.split(",").map(function(e){return e.trim()}).sort().join(",");!1===Boolean(a.css[n])&&(a.css[n]={});for(var r=t.style.cssText.split(/;(?![A-Za-z0-9])/),o=0;o<r.length;o++)if(r[o]){var i=r[o].split(":");i[0]=i[0].trim(),i[1]=i[1].trim(),a.css[n][i[0]]=i[1].replace(/var\(([^)]+)\)/g,function(t,n){var r=rS(n.split(","),2),o=r[0],i=r[1];return(e.ew.getComputedStyle(e.editor).getPropertyValue(o.trim())||i||t).trim()})}};!function(){for(var n=r.innerHeight,i=o.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,function(){return NodeFilter.FILTER_ACCEPT});i.nextNode();){var a=i.currentNode;if(a.getBoundingClientRect().top<n||s.scanFullPage){var c=t(a);if(c)for(var u=0;u<c.length;u++)l(c[u])}}}()}var r;return(r=[{key:"generateCSS",value:function(){var e="";for(var t in this.css)if(!/:not\(/.test(t)){for(var n in e+=t+" { ",this.css[t])e+=n+": "+this.css[t][n]+"; ";e+="}\n"}return e}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(n.prototype,r),n}();try{return new n(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch(e){}return""}(e)+"</style><body></body></html>"),r.document.close(),Qo(e,void 0,"px",r.document.body));var o=r.document.createElement("style");o.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",r.document.head.appendChild(o),r.focus(),r.print()}},mode:Zt+Xt,tooltip:"Print"},ka.add("print",function(e){e.registerButton({name:"print"})}),Qr.prototype.tableAllowCellResize=!0;var uS=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":sS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dS="table_processor_observer-resize",fS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=iS(t),function(e,t){return!t||"object"!==sS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,cS()?Reflect.construct(t,n||[],iS(e).constructor):t.apply(e,n))}(this,t,arguments)).selectMode=!1,e.resizeDelta=0,e.createResizeHandle=function(){e.resizeHandler||(e.resizeHandler=e.j.c.div("jodit-table-resizer"),e.j.e.on(e.resizeHandler,"mousedown.table touchstart.table",e.onHandleMouseDown).on(e.resizeHandler,"mouseenter.table",function(){e.j.async.clearTimeout(e.hideTimeout)}))},e.hideTimeout=0,e.drag=!1,e.minX=0,e.maxX=0,e.startX=0,e}var n;return 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&&aS(e,t)}(t,e),n=[{key:"module",get:function(){return this.j.getInstance("Table",this.j.o)}},{key:"isRTL",get:function(){return"rtl"===this.j.o.direction}},{key:"showResizeHandle",value:function(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}},{key:"hideResizeHandle",value:function(){var e=this;this.hideTimeout=this.j.async.setTimeout(function(){ii.safeRemove(e.resizeHandler)},{timeout:this.j.defaultTimeout,label:"hideResizer"})}},{key:"onHandleMouseDown",value:function(e){var t=this;if(!this.j.isLocked){this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(dS),this.resizeHandler.classList.add("jodit-table-resizer_moved");var n,r=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)r=this.workTable.parentNode.getBoundingClientRect(),this.minX=r.left,this.maxX=this.minX+r.width;else{var o=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,function(e,r,i){o[1]===i&&(n=e.getBoundingClientRect(),t.minX=Math.max(n.left+$t/2,t.minX)),o[1]+(t.isRTL?
50-1:1)===i&&(n=e.getBoundingClientRect(),t.maxX=Math.min(n.left+n.width-$t/2,t.maxX))})}return!1}}},{key:"onMouseMove",value:function(e){if(this.drag){this.j.e.fire("closeAllPopups");var t=e.clientX,n=Wi(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?n.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:n.left)+"px";var r=this.j.s.sel;r&&r.removeAllRanges()}}},{key:"onMouseUp",value:function(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}},{key:"resizeColumns",value:function(){var e=this.resizeDelta,t=[],n=this.module;n.setColumnWidthByDelta(this.workTable,n.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);var r=oo(this.isRTL?ii.prev:ii.next,this.workCell,ii.isCell,this.workCell.parentNode);n.setColumnWidthByDelta(this.workTable,n.formalCoordinate(this.workTable,r)[1],-e,!1,t)}},{key:"resizeTable",value:function(){var e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,n=Hi(this.workTable.parentNode,this.j.ew),r=!this.wholeTable;if(this.isRTL?!r:r)this.workTable.style.width=(t+e)/n*100+"%";else{var o=this.isRTL?"marginRight":"marginLeft",i=parseInt(this.j.ew.getComputedStyle(this.workTable)[o]||"0",10);this.workTable.style.width=(t-e)/n*100+"%",this.workTable.style[o]=(i+e)/n*100+"%"}}},{key:"setWorkCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.wholeTable=t,this.workCell=e,this.workTable=ii.up(e,function(e){return ii.isTag(e,"table")},this.j.editor)}},{key:"calcHandlePosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=Wi(t,this.j,this.j.ed);if(n>$t&&n<o.width-$t)this.hideResizeHandle();else{var i=Wi(this.j.workplace,this.j,this.j.od,!0),a=Wi(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(n<=$t?o.left:o.left+o.width)-i.left+r+"px",Object.assign(this.resizeHandler.style,{height:a.height+"px",top:a.top-i.top+"px"}),this.showResizeHandle(),n<=$t){var s=oo(this.isRTL?ii.next:ii.prev,t,ii.isCell,t.parentNode);this.setWorkCell(s||t,!s||null)}else{var l=oo(this.isRTL?ii.prev:ii.next,t,ii.isCell,t.parentNode);this.setWorkCell(t,!!l&&null)}}}},{key:"afterInit",value:function(e){var t=this;e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",function(){Wo("table",e.editor).forEach(t.observe)}).on(this.j.ow,"scroll.resize-cells",function(){if(t.drag){var n=ii.up(t.workCell,function(e){return ii.isTag(e,"table")},e.editor);if(n){var r=n.getBoundingClientRect();t.resizeHandler.style.top=r.top+"px"}}}).on("beforeSetMode.resize-cells",function(){var n=t.module;
50n.getAllSelectedCells().forEach(function(t){n.removeSelection(t),n.normalizeTable(ii.closest(t,"table",e.editor))})})}},{key:"observe",value:function(e){var t=this;no(e,dS)||(no(e,dS,!0),this.j.e.on(e,"mouseleave.resize-cells",function(e){t.resizeHandler&&t.resizeHandler!==e.relatedTarget&&t.hideResizeHandle()}).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle(function(n){if(!t.j.isLocked){var r=ii.up(n.target,ii.isCell,e);r&&t.calcHandlePosition(e,r,n.offsetX)}},{timeout:this.j.defaultTimeout})),this.createResizeHandle())}},{key:"beforeDestruct",value:function(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(lS(ip));function pS(e,t,n){return pS=vS()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&mS(o,n.prototype),o},pS.apply(null,arguments)}function hS(e){return hS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hS(e)}function mS(e,t){return mS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mS(e,t)}function gS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function yS(e){var t="function"==typeof Map?new Map:void 0;return yS=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return pS(e,arguments,hS(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),mS(r,e)},yS(e)}function vS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vS=function(){return!!e})()}uS([On],fS.prototype,"onHandleMouseDown",null),uS([On],fS.prototype,"onMouseMove",null),uS([On],fS.prototype,"onMouseUp",null),uS([On],fS.prototype,"observe",null),ka.add("resizeCells",fS),Qr.prototype.allowResizeX=!1,Qr.prototype.allowResizeY=!0;var bS=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":gS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_S=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=hS(t),function(e,t){return!t||"object"!==gS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,vS()?Reflect.construct(t,n||[],hS(e).constructor):t.apply(e,n))}(this,t,arguments)).isResized=!1,e.start={x:0,y:0,w:0,h:0},e.handle=e.j.c.div("jodit-editor__resize",ls.get("resize_handler")),e}var n;return 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&&mS(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this,n=e.o,r=n.height,o=n.width,i=n.allowResizeX,a=e.o.allowResizeY;"auto"===r&&"auto"!==o&&(a=!1),"auto"===r&&"auto"===o||!i&&!a||(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",function(){t.handle.style.display=e.isFullSize?"none":"block"}).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}},{key:"onHandleResizeStart",value:function(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}},{key:"onHandleResize",value:function(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}},{key:"onHandleResizeEnd",value:function(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}},{key:"beforeDestruct",value:function(){ii.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(yS(ip));function wS(e,t,n){return wS=xS()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ES(o,n.prototype),o},wS.apply(null,arguments)}
50function SS(e){return SS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},SS(e)}function ES(e,t){return ES=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ES(e,t)}function kS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function TS(e){var t="function"==typeof Map?new Map:void 0;return TS=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wS(e,arguments,SS(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ES(r,e)},TS(e)}function xS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xS=function(){return!!e})()}_S.requires=["size"],bS([On],_S.prototype,"onHandleResizeStart",null),bS([On],_S.prototype,"onHandleResize",null),bS([On],_S.prototype,"onHandleResizeEnd",null),ka.add("resizeHandler",_S),Qr.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),Qr.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])};var OS=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":kS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},CS="__jodit-resizer_binded",PS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=SS(t),function(e,t){return!t||"object"!==kS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xS()?Reflect.construct(t,n||[],SS(e).constructor):t.apply(e,n))}(this,t,arguments)).LOCK_KEY="resizer",e.element=null,e.isResizeMode=!1,e.isShown=!1,e.startX=0,e.startY=0,e.width=0,e.height=0,e.ratio=0,e.rect=e.j.c.fromHTML('<div title="'.concat(e.j.i18n("Press Alt for custom resizing"),'" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>')),e.sizeViewer=e.rect.getElementsByTagName("span")[0],e.pointerX=0,e.pointerY=0,e.isAltMode=!1,e.onClickElement=function(t){e.isResizeMode||e.element===t&&e.isShown||(e.element=t,e.show(),ii.isTag(e.element,"img")&&!e.element.complete&&e.j.e.one(e.element,"load",e.updateSize))},e.updateSize=function(){if(!e.isInDestruct&&e.isShown&&e.element&&e.rect){var t=e.getWorkplacePosition(),n=Wi(e.element,e.j,e.j.ed),r=parseInt(e.rect.style.left||"0",10),o=parseInt(e.rect.style.top||"0",10),i=e.rect.offsetWidth,a=e.rect.offsetHeight,s=n.top-t.top,l=n.left-t.left;o===s&&r===l&&i===e.element.offsetWidth&&a===e.element.offsetHeight||(Cr(e.rect,{top:s,left:l,width:e.element.offsetWidth,height:e.element.offsetHeight}),e.j.events&&(e.j.e.fire(e.element,"changesize"),isNaN(r)||e.j.e.fire("resize")))}},e.hideSizeViewer=function(){e.sizeViewer.style.opacity="0"},e}var n;return 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&&ES(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;Wo("div",this.rect).forEach(function(n){e.e.on(n,"mousedown.resizer touchstart.resizer",t.onStartResizing.bind(t,n))}),Aa.on("hideHelpers",this.hide),e.e.on("readonly",function(e){e&&t.hide()}).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",function(e){var t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}),this.addEventListeners(),this.__onChangeEditor()}},{key:"onEditorClick",value:function(e){for(var t=e.target,n=this.j,r=n.editor,o=n.options.allowResizeTags;t&&t!==r;){if(ii.isTag(t,o))return this.__bind(t),void this.onClickElement(t);t=t.parentNode}}},{key:"__afterInsertImage",value:function(e){if(!this.j.o.resizer.forImageChangeAttributes){var t=$r(e,"width");t&&!Cr(e,"width",!0)&&(Cr(e,"width",t),$r(e,"width",null))}}},{key:"addEventListeners",value:function(){var e=this,t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",function(t){e.isShown&&t.key===Gt&&e.element&&!ii.isTag(e.element,"table")&&e.onDelete(t)}).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",function(){e.isShown&&!e.isResizeMode&&e.hide()}).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}},{key:"onStartResizing",value:function(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;var n=this.j;n.e.fire("hidePopup"),n.lock(this.LOCK_KEY),n.e.on(n.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onEndResizing",value:function(){var e=this.j;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onResize",value:function(e){if(this.isResizeMode){if(!this.element)return;var t,n;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){var r=this.getWorkplacePosition();t=e.clientX+r.left-this.startX,n=e.clientY+r.top-this.startY}else t=this.pointerX-this.startX,n=this.pointerY-this.startY;var o=this.handle.className,i=0,a=0,s=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===s||s&&ii.isTag(this.element,s))?(t?(i=this.width+(o.match(/left/)?-1:1)*t,a=Math.round(i/this.ratio)):(a=this.height+(o.match(/top/)?-1:1)*n,i=Math.round(a*this.ratio)),i>qi(this.j.editor,this.j.ow)&&(i=qi(this.j.editor,this.j.ow),a=Math.round(i/this.ratio))):(i=this.width+(o.match(/left/)?-1:1)*t,a=this.height+(o.match(/top/)?-1:1)*n),i>
50this.j.o.resizer.min_width&&(i<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",i):this.applySize(this.element,"width","100%")),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}},{key:"onKeyDown",value:function(e){this.isAltMode=e.key===Bt,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}},{key:"onKeyUp",value:function(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}},{key:"onClickOutside",value:function(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}},{key:"getWorkplacePosition",value:function(){return Wi(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}},{key:"applySize",value:function(e,t,n){var r=ii.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;r&&$r(e,t,n),r&&!e.style[t]||Cr(e,t,n)}},{key:"onDelete",value:function(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(ii.safeRemove(this.element),this.hide(),e.preventDefault()))}},{key:"__onChangeEditor",value:function(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),Wo("iframe",this.j.editor).forEach(this.__bind)}},{key:"__bind",value:function(e){var t=this;if(ii.isHTMLElement(e)&&this.j.o.allowResizeTags.has(e.tagName.toLowerCase())&&!no(e,CS)){var n;if(no(e,CS,!0),ii.isTag(e,"iframe")){var r=e;ii.isHTMLElement(e.parentNode)&&$r(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:($r(n=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),"style",$r(e,"style")),Cr(n,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(n,e),n.appendChild(e),this.j.e.on(n,"click",function(){$r(n,"data-jodit-wrapper_active",!0)}),e=n),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",function(){t.j.s.select(e)}).off(e,"changesize").on(e,"changesize",function(){r.setAttribute("width",e.offsetWidth+"px"),r.setAttribute("height",e.offsetHeight+"px")})}this.j.e.on(e,"dragstart",this.hide),!dt&&tn&&this.j.e.on(e,"mousedown",function(t){ii.isTag(e,"img")&&t.preventDefault()})}}},{key:"showSizeViewer",value:function(e,t){this.j.o.resizer.showSize&&(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent="".concat(e," x ").concat(t),this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}},{key:"show",value:function(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(io(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=Cr(this.j.container,"zIndex").toString()),this.updateSize())}},{key:"hide",value:function(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,ii.safeRemove(this.rect),Wo("[data-jodit-wrapper_active='true']",this.j.editor).forEach(function(e){return $r(e,"data-jodit-wrapper_active",!1)}))}},{key:"beforeDestruct",value:function(e){this.hide(),Aa.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(TS(ip));function AS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function IS(e,t,n){return IS=MS()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&RS(o,n.prototype),o},IS.apply(null,arguments)}
50function RS(e,t){return RS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RS(e,t)}function jS(e){return function(e){if(Array.isArray(e))return AS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return AS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AS(e,t):void 0}}(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 MS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(MS=function(){return!!e})()}OS([ma(":click")],PS.prototype,"onEditorClick",null),OS([ma(":afterInsertImage")],PS.prototype,"__afterInsertImage",null),OS([On],PS.prototype,"onStartResizing",null),OS([On],PS.prototype,"onEndResizing",null),OS([On],PS.prototype,"onResize",null),OS([On],PS.prototype,"onKeyDown",null),OS([On],PS.prototype,"onKeyUp",null),OS([On],PS.prototype,"onClickOutside",null),OS([ma(":change")],PS.prototype,"__onChangeEditor",null),OS([On],PS.prototype,"__bind",null),OS([On,ma(":hideResizer")],PS.prototype,"hide",null),ka.add("resizer",PS),Qr.prototype.useSearch=!0,Qr.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:xt&&void 0!==xt.Highlight},ls.set("search",'<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg> '),Qr.prototype.controls.find={tooltip:"Find",icon:"search",exec:function(e,t,n){var r=n.control;switch(r.args&&r.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:function(e,t,n){return n}};var DS="jd-tmp-selection";function NS(e,t,n,r,o){if(null!=t.startContainer.nodeValue&&null!=t.endContainer.nodeValue&&!function(e,t,n){if(e.o.search.useCustomHighlightAPI&&xt&&void 0!==xt.Highlight){var r=[t].concat(jS(n)).map(function(t){var n=e.selection.createRange();return n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset),n}),o=IS(Highlight,jS(r));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",o),n.length=0,!0}return!1}(e,t,n)){var i=r.element("span",function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},DS,!0));ii.markTemporary(i),function(e,t,n){var r=e.startContainer.nodeValue,o=0;if(0!==e.startOffset){var i=n.text(r.substring(0,e.startOffset));e.startContainer.nodeValue=r.substring(e.startOffset),ii.before(e.startContainer,i),e.startContainer===e.endContainer&&(o=e.startOffset,e.endOffset-=o),e.startOffset=0}var a=e.endContainer.nodeValue;if(e.endOffset!==a.length){var s=n.text(a.substring(e.endOffset));e.endContainer.nodeValue=a.substring(0,e.endOffset),ii.after(e.endContainer,s);var l=!0,c=!1,u=void 0;try{for(var d,f=t[Symbol.iterator]();!(l=(d=f.next()).done);l=!0){var p=d.value;if(p.startContainer!==e.endContainer)break;p.startContainer=s,p.startOffset=p.startOffset-e.endOffset-o,p.endContainer===e.endContainer&&(p.endContainer=s,p.endOffset=p.endOffset-e.endOffset-o)}}catch(e){c=!0,u=e}finally{try{l||null==f.return||f.return()}finally{if(c)throw u}}e.endOffset=e.endContainer.nodeValue.length}}(t,n,r);var a,s=t.startContainer;do{if(!s)break;if(!ii.isText(s)||(a=s.parentNode,ii.isElement(a)&&a.hasAttribute(DS))||ii.wrap(s,i.cloneNode(),r),s===t.endContainer)break;var l=s.firstChild||s.nextSibling;if(!l){for(;s&&!s.nextSibling&&s!==o;)s=s.parentNode;l=null==s?void 0:s.nextSibling}s=l}while(s&&s!==o)}}function LS(e){return Wo("[".concat(DS,"]"),e)}function FS(e){LS(e.editor).forEach(function(e){return ii.unwrap(e)}),function(e){e.o.search.useCustomHighlightAPI&&xt&&void 0!==xt.Highlight&&CSS.highlights.clear()}(e)}function BS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return BS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BS(e,t):void 0}}
50(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.")}()}var US=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yi;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.searchIndex=t,this.queue=[],this.value=""}var t;return t=[{key:"add",value:function(e){var t,n=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(n.length){var r=this.value.length;this.queue.push({startIndex:r,endIndex:r+n.length,node:e}),this.value+=n}}},{key:"ranges",value:function(e){var t=[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=0,o=0;do{var i;if(n=(i=zS(this.searchIndex(e,this.value,n),2))[0],r=i[1],-1!==n){for(var a=void 0,s=0,l=void 0,c=0,u=o;u<this.queue.length;u+=1)if(!a&&this.queue[u].endIndex>n&&(a=this.queue[u].node,s=n-this.queue[u].startIndex),a&&this.queue[u].endIndex>=n+r){l=this.queue[u].node,c=n+r-this.queue[u].startIndex,o=u;break}a&&l&&t.push({startContainer:a,startOffset:s,endContainer:l,endOffset:c}),n+=r}}while(-1!==n);return 0===t.length?null:t}}],t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function HS(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function VS(e){return VS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},VS(e)}function qS(e,t){return qS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qS(e,t)}function GS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function WS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WS=function(){return!!e})()}var $S=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":GS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},YS=function(e){function t(e){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t,n){return t=VS(t),function(e,t){return!t||"object"!==GS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,WS()?Reflect.construct(t,n||[],VS(e).constructor):t.apply(e,n))}(this,t,[e]),r=n,n.selInfo=null,n._currentIndex=0,n.isOpened=!1;var o=Yo(n.container),i=o.query,a=o.replace,s=o.cancel,l=o.next,c=o.prev,u=o.replaceBtn,d=o.current,f=o.count;return n.queryInput=i,n.replaceInput=a,n.closeButton=s,n.replaceButton=u,n.currentBox=d,n.countBox=f,e.e.on(n.closeButton,"pointerdown",function(){return n.close(),!1}).on(n.queryInput,"input",function(){n.currentIndex=0}).on(n.queryInput,"pointerdown",function(){e.s.isFocused()&&(e.s.removeMarkers(),n.selInfo=e.s.save())}).on(n.replaceButton,"pointerdown",function(){return e.e.fire(n,"pressReplaceButton"),!1}).on(l,"pointerdown",function(){return e.e.fire("searchNext"),!1}).on(c,"pointerdown",function(){return e.e.fire("searchPrevious"),!1}).on(n.queryInput,"input",function(){n.setMod("empty-query",!ur(n.queryInput.value).length)}).on(n.queryInput,"keydown",n.j.async.debounce(function(){var t,n=(t=function(t){return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(n){switch(n.label){case 0:return t.key===Lt?[3,1]:[3,3];case 1:return t.preventDefault(),t.stopImmediatePropagation(),[4,e.e.fire("searchNext")];case 2:return n.sent()&&r.close(),[3,4];case 3:return e.e.fire(r,"needUpdateCounters"),[3,4];case 4:return[2]}})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){HS(i,r,o,a,s,"next",e)}function s(e){HS(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e){return n.apply(this,arguments)}}(),n.j.defaultTimeout)),n}var n;return 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&&qS(e,t)}(t,e),n=[{key:"className",value:function(){return"UISearch"}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">'.concat(ls.get("angle-down"),'</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">').concat(ls.get("angle-up"),'</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">').concat(ls.get("cancel"),'</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>')}},{key:"currentIndex",get:function(){return this._currentIndex},set:function(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}},{key:"count",set:function(e){this.countBox.innerText=e.toString()}},{key:"query",get:function(){return this.queryInput.value}},{key:"replace",get:function(){return this.replaceInput.value}},{key:"onEditorKeyDown",value:function(e){if(this.isOpened){var t=this.j;if(t.getRealMode()===Xt)switch(e.key){case Ft:this.close();break;case Wt:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}}},{key:"open",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",n
50);var r=null!=e?e:(this.j.s.sel||"").toString();r&&(this.queryInput.value=r),t&&(this.replaceInput.value=t),this.setMod("empty-query",!r.length),this.j.e.fire(this,"needUpdateCounters"),r?this.queryInput.select():this.queryInput.focus()}},{key:"close",value:function(){this.isOpened&&(this.j.s.restore(),ii.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}},{key:"calcSticky",value:function(e){if(this.isOpened)if(this.setMod("sticky",e),e){var t=$i(this.j.toolbarContainer);Cr(this.container,{top:t.top+t.height,left:t.left+t.width})}else Cr(this.container,{top:null,left:null})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);function KS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JS(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function QS(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){JS(i,r,o,a,s,"next",e)}function s(e){JS(i,r,o,a,s,"throw",e)}a(void 0)})}}function XS(e,t,n){return XS=rE()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&eE(o,n.prototype),o},XS.apply(null,arguments)}function ZS(e){return ZS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ZS(e)}function eE(e,t){return eE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eE(e,t)}function tE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nE(e){var t="function"==typeof Map?new Map:void 0;return nE=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return XS(e,arguments,ZS(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),eE(r,e)},nE(e)}function rE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rE=function(){return!!e})()}function oE(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}$S([ma([":keydown","queryInput:keydown"])],YS.prototype,"onEditorKeyDown",null),$S([On],YS.prototype,"open",null),$S([On],YS.prototype,"close",null),$S([ma(":toggleSticky")],YS.prototype,"calcSticky",null),YS=$S([pi],YS);var iE=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":tE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},aE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=ZS(t),function(e,t){return!t||"object"!==tE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,rE()?Reflect.construct(t,n||[],ZS(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"find",group:"search"}],e.previousQuery="",e.drawPromise=null,e.walker=null,e.walkerCount=null,e.cache={},e.wrapFrameRequest=0,e}var n;return 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&&eE(e,t)}(t,e),n=[{key:"ui",get:function(){return new YS(this.j)}},{key:"updateCounters",value:function(){var e=this;return QS(function(){var t;return oE(this,function(n){switch(n.label){case 0:return e.ui.isOpened?(t=e.ui,[4,e.calcCounts(e.ui.query)]):[2];case 1:return t.count=n.sent(),[2]}})})()}},{key:"onPressReplaceButton",value:function(){this.findAndReplace(this.ui.query),this.updateCounters()}},{key:"tryScrollToElement",value:function(e){var t=ii.closest(e,ii.isElement,this.j.editor);t||(t=ii.prev(e,ii.isElement,this.j.editor)),t&&t!==this.j.editor&&Zo(t,this.j.editor,this.j.ed)}},{key:"calcCounts",value:function(e){var t=this;return QS(function(){return oE(this,function(n){switch(n.label){case 0:return[4,t.findQueryBounds(e,"walkerCount")];case 1:return[2,n.sent().length]}})})()}},{key:"findQueryBounds",value:function(e,t){var n=this;return QS(function(){var r;return oE(this,function(o){return(r=n[t])&&r.break(),r=new _r(n.j.async,{timeout:n.j.o.search.lazyIdleTimeout}),n[t]=r,[2,n.find(r,e).catch(function(e){return!ft&&console.error(e),[]})]})})()}},{key:"findAndReplace",value:function(e){var t=this;return QS(function(){var n,r,o,i,a;return oE(this,function(s){switch(s.label){case 0:return[4,t.findQueryBounds(e,"walker")];case 1:if(!(n=s.sent()).length)return[2,!1];if(-1===(r=t.findCurrentIndexInRanges(n,t.j.s.range))&&(r=0),!(o=n[r]))return[3,6];s.label=2;case 2:return s.trys.push([2,,4,5]),(i=t.j.ed.createRange()).setStart(o.startContainer,o.startOffset),i.setEnd(o.endContainer,o.endOffset),i.deleteContents(),a=t.j.createInside.text(t.ui.replace),ii.safeInsertNode(i,a),FS(t.j),t.j.s.setCursorAfter(a),t.tryScrollToElement(a),t.cache={},t.ui.currentIndex=r,[4,t.findAndSelect(e,!0).catch(function(e){return!ft&&console.error(e),null})];case 3:return s.sent(),[3,5];case 4:return t.j.synchronizeValues(),[7];case 5:return t.j.e.fire("afterFindAndReplace"),[2,!0];case 6:return[2,!1]}})})()}},{key:"findAndSelect",value:function(e,t){var n=this;return QS(function(){var r,o,i,a,s;return oE(this,function(l){switch(l.label){case 0:return[4,n.findQueryBounds(e,"walker")];case 1:if(!(o=l.sent()).length)return[2,!1];if(n.previousQuery===e&&LS(n.j.editor).length||(null===(r=n.drawPromise)||void 0===r||r.rejectCallback(),n.j.async.cancelAnimationFrame(n.wrapFrameRequest),FS(n.j),n.drawPromise=n.__drawSelectionRanges(o)),n.previousQuery=e,i=-1==(i=n.ui.currentIndex-1)?0:t?i===o.length-1?0:i+1:0===i?o.length-1:i-1,n.ui.currentIndex=i+1,!(a=o[i]))return[3,4];s=n.j.ed.createRange();try{s.setStart(a.startContainer,a.startOffset),s.setEnd(a.endContainer,a.endOffset),n.j.s.selectRange(s)}catch(e){!ft&&console.error(e)}return n.tryScrollToElement(a.startContainer),[4,n.updateCounters()];case 2:return l.sent(),[4,n.drawPromise];case 3:return l.sent(),n.j.e.fire("afterFindAndSelect"),[2,!0];case 4:return[2,!1]}})})()}},{key:"findCurrentIndexInRanges",value:function(e,t){return e.findIndex(function(e){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset})}},{key:"isValidCache",value:function(e){return QS(function(){return oE(this,function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent().every(function(e){var t,n,r,o;return e.startContainer.isConnected&&e.startOffset<=(null!==(n=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==n?n:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(o=null===(r=e.endContainer.nodeValue)||void 0===r?void 0:r.length)&&void 0!==o?o:0)})]}})})()}},{key:"find",value:function(e,t){var n=this;return QS(function(){var r,o;return oE(this,function(i){switch(i.label){case 0:return t.length?(r=n.cache[t],(o=r)?[4,n.isValidCache(r)]:[3,2]):[2,[]];case 1:o=i.sent(),i.label=2;case 2:return o?[2,r]:(n.cache[t]=n.j.async.promise(function(r){var o=new US(n.j.o.search.fuzzySearch);e.on("break",function(){r([])}
50).on("visit",function(e){return ii.isText(e)&&o.add(e),!1}).on("end",function(){var e;r(null!==(e=o.ranges(t))&&void 0!==e?e:[])}).setWork(n.j.editor)}),[2,n.cache[t]])}})})()}},{key:"__drawSelectionRanges",value:function(e){var t=this,n=this.j,r=n.async,o=n.createInside,i=n.editor;r.cancelAnimationFrame(this.wrapFrameRequest);var a,s=function(e){return function(e){if(Array.isArray(e))return KS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return KS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KS(e,t):void 0}}(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.")}()}(e),l=0;return r.promise(function(e){var n=function(){do{(a=s.shift())&&NS(t.j,a,s,o,i),l+=1}while(a&&l<=5);s.length?t.wrapFrameRequest=r.requestAnimationFrame(n):e()};n()})}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(RegExp("<span[^>]+".concat(DS,"[^>]+>(.*?)</span>"),"g"),"$1")}},{key:"afterInit",value:function(e){var t=this;if(e.o.useSearch){var n=this,r=this;e.e.on("beforeSetMode.search",function(){t.ui.close()}).on(this.ui,"afterClose",function(){FS(e),t.ui.currentIndex=0,t.ui.count=0,t.cache={},e.focus()}).on("click",function(){t.ui.currentIndex=0,FS(e)}).on("change.search",function(){t.cache={}}).on("keydown.search mousedown.search",e.async.debounce(function(){t.ui.selInfo&&(e.s.removeMarkers(),t.ui.selInfo=null),t.ui.isOpened&&t.updateCounters()},e.defaultTimeout)).on("searchNext.search searchPrevious.search",function(){return t.ui.isOpened||t.ui.open(),r.findAndSelect(r.ui.query,"searchNext"===e.e.current).catch(function(e){!ft&&console.error("Search error",e)})}).on("search.search",function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n.ui.currentIndex=0,r.findAndSelect(e||"",t).catch(function(e){!ft&&console.error("Search error",e)})}),e.registerCommand("search",{exec:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t&&r.findAndSelect(t,n).catch(function(e){!ft&&console.error("Search error",e)}),!1}}).registerCommand("openSearchDialog",{exec:function(e,t){return r.ui.open(t),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:function(t,n,o){return e.o.readonly||r.ui.open(n,o,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}},{key:"beforeDestruct",value:function(e){var t;null===(t=ai(this,"ui"))||void 0===t||t.destruct(),e.e.off(".search")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(nE(ip));function sE(e,t,n){return sE=fE()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&cE(o,n.prototype),o},sE.apply(null,arguments)}function lE(e){return lE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lE(e)}function cE(e,t){return cE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cE(e,t)}function uE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function dE(e){var t="function"==typeof Map?new Map:void 0;return dE=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return sE(e,arguments,lE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),cE(r,e)},dE(e)}function fE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fE=function(){return!!e})()}iE([si],aE.prototype,"ui",null),iE([ma("ui:needUpdateCounters")],aE.prototype,"updateCounters",null),iE([ma("ui:pressReplaceButton")],aE.prototype,"onPressReplaceButton",null),iE([On],aE.prototype,"findQueryBounds",null),iE([On],aE.prototype,"findAndReplace",null),iE([On],aE.prototype,"findAndSelect",null),iE([On],aE.prototype,"find",null),iE([ma(":afterGetValueFromEditor")],aE.prototype,"onAfterGetValueFromEditor",null),ka.add("search",aE),Qr.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0};var pE=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":uE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=lE(t),function(e,t){return!t||"object"!==uE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,fE()?Reflect.construct(t,n||[],lE(e).constructor):t.apply(e,n))}(this,t,arguments)).proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],e}var n;return 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&&cE(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;this.proxyEventsList.forEach(function(n){e.e.on(n+".select",t.onStart
50Selection)})}},{key:"beforeDestruct",value:function(e){var t=this;this.proxyEventsList.forEach(function(n){e.e.on(n+".select",t.onStartSelection)})}},{key:"onStartSelection",value:function(e){for(var t,n=this.j,r=e.target;void 0===t&&r&&r!==n.editor;)t=n.e.fire(Or(e.type+"_"+r.nodeName.toLowerCase()),r,e),r=r.parentElement;"click"===e.type&&void 0===t&&r===n.editor&&n.e.fire(e.type+"Editor",r,e)}},{key:"onOutsideClick",value:function(e){var t=this,n=e.target;ii.up(n,function(e){return e===t.j.editor})||gs.closestElement(n,Fc)||this.j.e.fire("outsideClick",e)}},{key:"beforeCommandCut",value:function(){var e=this.j.s;if(!e.isCollapsed()){var t=e.current();t&&ii.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}},{key:"beforeCommandSelectAll",value:function(){var e=this.j.s;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}},{key:"onTripleClickNormalizeSelection",value:function(e){if(3===e.detail&&this.j.o.select.normalizeTripleClick){var t=this.j.s,n=t.range,r=n.startContainer;0===n.startOffset&&ii.isText(r)&&t.select(ii.closest(r,ii.isBlock,this.j.editor)||r,!0)}}},{key:"onCopyNormalizeSelectionBound",value:function(e){var t=this.j,n=t.s,r=t.editor;t.o.select.normalizeSelectionBeforeCutAndCopy&&!n.isCollapsed()&&(!e||e.isTrusted&&ii.isNode(e.target)&&ii.isOrContains(r,e.target))&&this.jodit.s.expandSelection()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(dE(ip));function mE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gE(e,t,n){return gE=wE()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&vE(o,n.prototype),o},gE.apply(null,arguments)}function yE(e){return yE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yE(e)}function vE(e,t){return vE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vE(e,t)}function bE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _E(e){var t="function"==typeof Map?new Map:void 0;return _E=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return gE(e,arguments,yE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vE(r,e)},_E(e)}function wE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wE=function(){return!!e})()}pE([On],hE.prototype,"onStartSelection",null),pE([ma("ow:click")],hE.prototype,"onOutsideClick",null),pE([ma([":beforeCommandCut"])],hE.prototype,"beforeCommandCut",null),pE([ma([":beforeCommandSelectall"])],hE.prototype,"beforeCommandSelectAll",null),pE([ma([":click"])],hE.prototype,"onTripleClickNormalizeSelection",null),pE([ma([":copy",":cut"])],hE.prototype,"onCopyNormalizeSelectionBound",null),ka.add("select",hE),Qr.prototype.tableAllowCellSelection=!0;var SE=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":bE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},EE="table_processor_observer",kE="onMoveTableSelectCell",TE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=yE(t),function(e,t){return!t||"object"!==bE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,wE()?Reflect.construct(t,n||[],yE(e).constructor):t.apply(e,n))}(this,t,arguments)).__selectedCell=null,e.__isSelectionMode=!1,e}var n;return 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&&vE(e,t)}(t,e),n=[{key:"__tableModule",get:function(){return this.j.getInstance(jp,this.j.o)}},{key:"afterInit",value:function(e){var t=this;
50e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",function(e){e.key===Nt&&t.unselectCells()}).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map(function(e){return e+".select-cells"}).join(" "),this.onStartSelection).on("clickTr clickTbody",function(){var e,n=t.__tableModule.getAllSelectedCells().length;if(n)return n>1&&(null===(e=t.j.s.sel)||void 0===e||e.removeAllRanges()),!1})}},{key:"onStartSelection",value:function(e){if(!this.j.o.readonly&&(this.unselectCells(),e!==this.j.editor)){var t=ii.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:kE,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}}},{key:"onOutsideClick",value:function(){this.__selectedCell=null,this.__onRemoveSelection()}},{key:"onChange",value:function(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}},{key:"__onMove",value:function(e,t){var n,r=this;if((!this.j.o.readonly||this.j.isLocked)&&!this.j.isLockedNotBy(EE)){var o=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(o){var i=ii.closest(o,["td","th"],e);if(i&&this.__selectedCell){i!==this.__selectedCell&&this.j.lock(EE),this.unselectCells();for(var a=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=a[0][0];l<=a[1][0];l+=1)for(var c=a[0][1];c<=a[1][1];c+=1)this.__tableModule.addSelection(s[l][c]);var u;this.__tableModule.getAllSelectedCells().length>1&&(null===(n=this.j.s.sel)||void 0===n||n.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),u=r.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0">&nbsp;</div>'),i.appendChild(u),r.j.async.setTimeout(function(){var e;null===(e=u.parentNode)||void 0===e||e.removeChild(u)},r.j.defaultTimeout/5)}}}}},{key:"__onRemoveSelection",value:function(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}},{key:"__onStopSelection",value:function(e,t){var n=this;if(this.__selectedCell){this.__isSelectionMode=!1,this.j.unlock();var r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(r){var o=ii.closest(r,["td","th"],e);if(o){var i=ii.closest(o,"table",e);if(!i||i===e){var a=this.__tableModule.getSelectedBound(e,[o,this.__selectedCell]),s=this.__tableModule.formalMatrix(e),l=s[a[1][0]][a[1][1]],c=s[a[0][0]][a[0][1]];this.j.e.fire("showPopup",e,function(){var e=$i(c,n.j),t=$i(l,n.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}},"cells"),Wo("table",this.j.editor).forEach(function(e){n.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")}),this.j.async.clearTimeout(kE)}}}}}},{key:"unselectCells",value:function(e){var t=this.__tableModule,n=t.getAllSelectedCells();n.length&&n.forEach(function(n){e&&e===n||t.removeSelection(n)})}},{key:"onExecCommand",value:function(e){var t=this;if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var n=this.__tableModule.getAllSelectedCells();if(n.length){var r=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return mE(e,1);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mE(e,1):void 0}}
50(e)||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.")}()}(n)[0];if(!r)return;var o=ii.closest(r,"table",this.j.editor);if(!o)return;switch(e){case"splitv":this.__tableModule.splitVertical(o);break;case"splitg":this.__tableModule.splitHorizontal(o);break;case"merge":this.__tableModule.mergeSelected(o);break;case"empty":n.forEach(function(e){return ii.detach(e)});break;case"bin":ii.safeRemove(o);break;case"binrow":new Set(n.map(function(e){return e.parentNode})).forEach(function(e){t.__tableModule.removeRow(o,e.rowIndex)});break;case"bincolumn":var i=new Set;n.reduce(function(e,t){return i.has(t.cellIndex)||(e.push(t),i.add(t.cellIndex)),e},[]).forEach(function(e){t.__tableModule.removeColumn(o,e.cellIndex)});break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(o,r,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(o,r.parentNode,"addrowafter"===e)}}return!1}}},{key:"onAfterCommand",value:function(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEac
50h(function(t){return Rr(e,t)})}},{key:"beforeDestruct",value:function(e){this.__onRemoveSelection(),e.e.off(".select-cells")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(_E(ip));TE.requires=["select"],SE([On],TE.prototype,"onStartSelection",null),SE([ma(":outsideClick")],TE.prototype,"onOutsideClick",null),SE([ma(":change")],TE.prototype,"onChange",null),SE([On],TE.prototype,"__onRemoveSelection",null),SE([On],TE.prototype,"__onStopSelection",null),SE([On],TE.prototype,"onExecCommand",null),SE([On],TE.prototype,"onAfterCommand",null),ka.add("selectCells",TE),Qr.prototype.beautifyHTML=!tn,Qr.prototype.sourceEditor="ace",Qr.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},Qr.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],Qr.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],ls.set("source",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '),Qr.prototype.controls.source={mode:en,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===Zt},tooltip:"Change mode"};var xE=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,this.container=n,this.toWYSIWYG=r,this.fromWYSIWYG=o,this.className="",this.isReady=!1}var t;return(t=[{key:"j",get:function(){return this.jodit}},{key:"onReady",value:function(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}},{key:"onReadyAlways",value:function(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();
50function OE(e){return OE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},OE(e)}function CE(e,t){return CE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},CE(e,t)}function PE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(PE=function(){return!!e})()}var AE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=OE(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,PE()?Reflect.construct(t,n||[],OE(e).constructor):t.apply(e,n))}(this,t,arguments)).className="jodit_ace_editor",e.proxyOnBlur=function(t){e.j.e.fire("blur",t)},e.proxyOnFocus=function(t){e.j.e.fire("focus",t)},e.proxyOnMouseDown=function(t){e.j.e.fire("mousedown",t)},e}var n;return 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&&CE(e,t)}(t,e),(n=[{key:"aceExists",value:function(){return void 0!==this.j.ow.ace}},{key:"getLastColumnIndex",value:function(e){return this.instance.session.getLine(e).length}},{key:"getLastColumnIndices",value:function(){for(var e=this.instance.session.getLength(),t=[],n=0,r=0;r<e;r++)n+=this.getLastColumnIndex(r),r>0&&(n+=1),t[r]=n;return t}},{key:"getRowColumnIndices",value:function(e){var t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};for(var n=1,r=1;r<t.length;r++)e>t[r]&&(n=r+1);return{row:n,column:e-t[n-1]-1}}},{key:"setSelectionRangeIndices",value:function(e,t){var n=this.getRowColumnIndices(e),r=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:n,end:r})}},{key:"getIndexByRowColumn",value:function(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}},{key:"init",value:function(e){var t=this,n=function(){if(void 0===t.instance&&t.aceExists()){var n=t.j.c.div("jodit-source__mirror-fake");t.container.appendChild(n);var r=e.ow.ace;t.instance=r.edit(n),"rtl"===e.o.direction&&(t.instance.setOption("rtlText",!0),t.instance.setOption("rtl",!0)),t.instance.setTheme(e.o.sourceEditorNativeOptions.theme),t.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),t.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),t.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),t.instance.getSession().setUseWrapMode(!0),t.instance.setOption("indentedSoftWrap",!1),t.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),t.instance.getSession().setUseWorker(!1),t.instance.$blockScrolling=1/0,t.instance.on("change",t.toWYSIWYG),t.instance.on("focus",t.proxyOnFocus),t.instance.on("mousedown",t.proxyOnMouseDown),t.instance.on("blur",t.proxyOnBlur),e.getRealMode()!==Xt&&t.setValue(t.getValue());var o=t.j.async.throttle(function(){if(!e.isInDestruct&&e.getMode()!==Xt){var n=t.instance.isFocused();"auto"!==e.o.height?t.instance.setOption("maxLines",e.workplace.offsetHeight/t.instance.renderer.lineHeight):t.instance.setOption("maxLines",1/0),t.instance.resize(),n&&t.focus()}},2*t.j.defaultTimeout);e.e.on(e,"resize",o).on("afterResize afterSetMode",o),o(),t.onReady()}};e.e.on("afterSetMode",function(){e.getRealMode()!==Zt&&e.getMode()!==en||(t.fromWYSIWYG(),n())}),n(),this.aceExists()||Fr(e,e.o.sourceEditorCDNUrlsJS).then(function(){e.isInDestruct||n()}).catch(function(){return null})}},{key:"destruct",value:function(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}},{key:"setValue",value:function(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var t=this.j.e.fire("beautifyHTML",e);In(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}},{key:"getValue",value:function(){return this.instance.getValue()}},{key:"setReadOnly",value:function(e){this.instance.setReadOnly(e)}},{key:"isFocused",get:function(){return this.instance.isFocused()}},{key:"focus",value:function(){this.instance.container.focus(),this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"getSelectionStart",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}},{key:"getSelectionEnd",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}},{key:"selectAll",value:function(){this.instance.selection.selectAll()}},{key:"insertRaw",value:function(e){var t=this.instance.selection.getCursor(),n=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:n},!1)}},{key:"setSelectionRange",value:function(e,t){this.setSelectionRangeIndices(e,t)}},{key:"setPlaceHolder",value:function(e){}},{key:"replaceUndoManager",value:function(){var e=this.jodit.history;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:function(){e.redo()}})}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xE);
50function IE(e){return IE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},IE(e)}function RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function jE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jE=function(){return!!e})()}var ME=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=IE(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,jE()?Reflect.construct(t,n||[],IE(e).constructor):t.apply(e,n))}(this,t,arguments)).autosize=e.j.async.debounce(function(){e.instance.style.height="auto",e.instance.style.height=e.instance.scrollHeight+"px"},e.j.defaultTimeout),e}var n;return 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&&RE(e,t)}(t,e),n=[{key:"init",value:function(e){var t=this;this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",function(e){Cr(t.instance,"minHeight",e)}).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",function(t){e.e.fire(t.type,t)}),this.autosize(),this.onReady()}},{key:"destruct",value:function(){ii.safeRemove(this.instance)}},{key:"getValue",value:function(){return this.instance.value}},{key:"setValue",value:function(e){this.instance.value=e}},{key:"insertRaw",value:function(e){var t=this.getValue();if(this.getSelectionStart()>=0){var n=this.getSelectionStart(),r=this.getSelectionEnd();this.setValue(t.substring(0,n)+e+t.substring(r,t.length))}else this.setValue(t+e)}},{key:"getSelectionStart",value:function(){return this.instance.selectionStart}},{key:"getSelectionEnd",value:function(){return this.instance.selectionEnd}},{key:"setSelectionRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;this.instance.setSelectionRange(e,t)}},{key:"isFocused",get:function(){return this.instance===this.j.od.activeElement}},{key:"focus",value:function(){this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"setPlaceHolder",value:function(e){this.instance.setAttribute("placeholder",e)}},{key:"setReadOnly",value:function(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}},{key:"selectAll",value:function(){this.instance.select()}},{key:"replaceUndoManager",value:function(){var e=this,t=this.jodit.history;this.j.e.on(this.instance,"keydown",function(n){if((n.ctrlKey||n.metaKey)&&"z"===n.key)return n.shiftKey?t.redo():t.undo(),e.setSelectionRange(e.getValue().length),!1})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(xE);function DE(e,t,n,r,o){var i;if(xn(e))i=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){i=new AE(t,n,r,o);break}default:i=new ME(t,n,r,o)}return i.init(t),i.onReadyAlways(function(){i.setReadOnly(t.o.readonly)}),i}function NE(e,t,n){return NE=UE()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&FE(o,n.prototype),o},NE.apply(null,arguments)}function LE(e){return LE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},LE(e)}function FE(e,t){return FE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},FE(e,t)}function BE(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function zE(e){var t="function"==typeof Map?new Map:void 0;return zE=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return NE(e,arguments,LE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),FE(r,e)},zE(e)}function UE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(UE=function(){return!!e})()}var HE=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":BE(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},VE=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=LE(t),function(e,t){return!t||"object"!==BE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,UE()?Reflect.construct(t,n||[],LE(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{name:"source",group:"source"}],e.__lock=!1,e.__oldMirrorValue="",e.tempMarkerStart="{start-jodit-selection}",e.tempMarkerStartReg=/{start-jodit-selection}/g,e.tempMarkerEnd="{end-jodit-selection}",e.tempMarkerEndReg=/{end-jodit-selection}/g,e.getSelectionStart=function(){var t,n;return null!==(n=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionStart())&&void 0!==n?n:0},e.getSelectionEnd=function(){var t,n;return null!==(n=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionEnd())&&void 0!==n?n:0},e}var n;return 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&&FE(e,t)}(t,e),n=[{key:"onInsertHTML",value:function(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}},{key:"fromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.__lock||!0===e){this.__lock=!0;var t=this.j.getEditorValue(!1,kn);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}},{key:"toWYSIWYG",value:function(){if(!this.__lock){var e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}}},{key:"getNormalPosition",value:function(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,function(e){for(var t="",n=0;n<e.length;n+=1)t+=vt;return t});e>0&&t[e]===vt;)e--;for(var n=e;n>0;){if("<"===t[--n]&&void 0!==t[n+1]&&t[n+1].match(/[\w/]+/i))return n;if(">"===t[n])return e}return e}},{key:"clnInv",value:function(e){return e.replace(_t(),"")}},{key:"onSelectAll",value:function(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===Zt)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}},{key:"getMirrorValue",value:function(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}},{key:"setMirrorValue",value:function(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}},{key:"setFocusToMirror",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()}},{key:"saveSelection",value:function(){if(this.j.getRealMode()===Xt)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;var e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){var t=this.j.s.marker(!0),n=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,n)+this.clnInv(t.outerHTML)+e.substring(n))}else{var r=this.j.s.marker(!0),o=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),e),a=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,i)+this.clnInv(r.outerHTML)+e.slice(i,a)+this.clnInv(o.outerHTML)+e.slice(a))}this.toWYSIWYG()}}},{key:"removeSelection",value:function(){if(this.j.getRealMode()===Xt)return this.__lock=!0,this.j.s.restore(
50),void(this.__lock=!1);var e=this.getMirrorValue(),t=0,n=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var r=this.j.e.fire("beautifyHTML",e);In(r)&&(e=r)}if(n=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){var o=e.indexOf(this.tempMarkerEnd);-1!==o&&(n=o)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,n),this.toWYSIWYG(),this.setFocusToMirror()}},{key:"setMirrorSelectionRange",value:function(e,t){var n;null===(n=this.sourceEditor)||void 0===n||n.setSelectionRange(e,t)}},{key:"onReadonlyReact",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}},{key:"afterInit",value:function(e){var t=this;if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",function(){e.workplace.appendChild(t.mirrorContainer)}),this.sourceEditor=DE("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",function(e){var n;e.key===Ft&&(null===(n=t.sourceEditor)||void 0===n?void 0:n.isFocused)&&t.sourceEditor.blur()}),this.onReadonlyReact(),e.e.on("placeholder.source",function(e){var n;null===(n=t.sourceEditor)||void 0===n||n.setPlaceHolder(e)}).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",function(e){return e}),e.o.beautifyHTML){var n=function(){var t;if(e.isInDestruct)return!1;var n=e.ow.html_beautify;return!(!n||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",function(e){return n(e)}),0))};n()||Fr(e,e.o.beautifyHTMLCDNUrlsJS).then(n,function(){return null})}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}},{key:"syncValueFromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.j;t.getMode()!==en&&t.getMode()!==Zt||this.fromWYSIWYG(e)}},{key:"initSourceEditor",value:function(e){var t,n=this;if("area"!==e.o.sourceEditor){var r=DE(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);r.onReadyAlways(function(){var t,o;null===(t=n.sourceEditor)||void 0===t||t.destruct(),n.sourceEditor=r,n.syncValueFromWYSIWYG(!0),null===(o=e.events)||void 0===o||o.fire("sourceEditorReady",e)})}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways(function(){var t;n.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)})}},{key:"beforeDestruct",value:function(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),ii.safeRemove(this.mirrorContainer)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(zE(ip));HE([ma(":insertHTML.source")],VE.prototype,"onInsertHTML",null),HE([On],VE.prototype,"fromWYSIWYG",null),HE([On],VE.prototype,"toWYSIWYG",null),HE([On],VE.prototype,"getNormalPosition",null),HE([ma(":beforeCommand.source")],VE.prototype,"onSelectAll",null),HE([ma(":beforeSetMode.source")],VE.prototype,"saveSelection",null),HE([ma(":afterSetMode.source")],VE.prototype,"removeSelection",null),HE([On],VE.prototype,"setMirrorSelectionRange",null),HE([ma(":readonly.source")],VE.prototype,"onReadonlyReact",null),HE([On],VE.prototype,"syncValueFromWYSIWYG",null),ka.add("source",VE);const qE='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> ';Qr.prototype.spellcheck=!1,ls.set("spellcheck",qE),Qr.prototype.controls.spellcheck={isActive:function(e){return e.o.spellcheck},icon:qE,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};const GE={Spellcheck:"التدقيق الإملائي"},WE={Spellcheck:"Kontrola pravopisu"},$E={Spellcheck:"Rechtschreibprüfung"},YE={Spellcheck:"Corrección ortográfica"},KE={Spellcheck:"غلطیابی املایی"},JE={Spellcheck:"Oikeinkirjoituksen tarkistus"}
50,QE={Spellcheck:"Vérification Orthographique"},XE={Spellcheck:"בדיקת איות"},ZE={Spellcheck:"Helyesírás-ellenőrzés"},ek={Spellcheck:"Spellchecking"},tk={Spellcheck:"Controllo ortografico"},nk={Spellcheck:"スペルチェック"},rk={Spellcheck:"맞춤법 검사"},ok={Spellcheck:"Дүрмийн алдаа шалгах"},ik={Spellcheck:"Spellingcontrole"},ak={Spellcheck:"Stavekontroll"},sk={Spellcheck:"Sprawdzanie pisowni"},lk={Spellcheck:"Verificação ortográfica"},ck={Spellcheck:"Проверка орфографии"},uk={Spellcheck:"Yazım denetimi"},dk={Spellcheck:"Перевірка орфографії"},fk={Spellcheck:"拼写检查"},pk={Spellcheck:"拼字檢查"};function hk(e,t,n){return hk=bk()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&gk(o,n.prototype),o},hk.apply(null,arguments)}function mk(e){return mk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mk(e)}function gk(e,t){return gk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gk(e,t)}function yk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function vk(e){var t="function"==typeof Map?new Map:void 0;return vk=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return hk(e,arguments,mk(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),gk(r,e)},vk(e)}function bk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bk=function(){return!!e})()}var _k=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=mk(t),function(e,t){return!t||"object"!==yk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,bk()?Reflect.construct(t,n||[],mk(e).constructor):t.apply(e,n))}(this,t,[e])).buttons=[{group:"state",name:"spellcheck"}],xa(se),n}var n;return 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&&gk(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",function(){t.jodit.o.spellcheck=!t.jodit.o.spellcheck,t.toggleSpellcheck(),t.j.e.fire("updateToolbar")})}},{key:"toggleSpellcheck",value:function(){$r(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(vk(ip));function wk(e,t,n){return wk=xk()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ek(o,n.prototype),o},wk.apply(null,arguments)}function Sk(e){return Sk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Sk(e)}function Ek(e,t){return Ek=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ek(e,t)}function kk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Tk(e){var t="function"==typeof Map?new Map:void 0;return Tk=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wk(e,arguments,Sk(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ek(r,e)},Tk(e)}function xk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xk=function(){return!!e})()}(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":yk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([On],_k.prototype,"toggleSpellcheck",null),ka.add("spellcheck",_k),Qr.prototype.toolbarSticky=!0,Qr.prototype.toolbarDisableStickyForMobile=!0,Qr.prototype.toolbarStickyOffset=0;var Ok=!dt&&tn,Ck=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=Sk(t),function(e,t){return!t||"object"!==kk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xk()?Reflect.construct(t,n||[],Sk(e).constructor):t.apply(e,n))}(this,t,arguments)).__isToolbarStuck=!1,e.__createDummy=function(t){e.__dummyBox=e.j.c.div(),e.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),e.j.container.insertBefore(e.__dummyBox,t)},e.addSticky=function(t){e.__isToolbarStuck||(Ok&&!e.__dummyBox&&e.__createDummy(t),e.j.container.classList.add("jodit_sticky"),e.__isToolbarStuck=!0),Cr(t,{top:e.j.o.toolbarStickyOffset||null,width:e.j.container.offsetWidth-2}),e.__dummyBox&&Cr(e.__dummyBox,{height:t.offsetHeight})},e.removeSticky=function(t){e.__isToolbarStuck&&(Cr(t,{width:"",top:""}),e.j.container.classList.remove("jodit_sticky"),e.__isToolbarStuck=!1)},e}var n;return 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&&Ek(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){var t=this;e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",function(){return t.__isToolbarStuck})}},{key:"__onScroll",value:function(){var e=this.jodit;if(e.o.toolbarSticky&&e.o.toolbar){var t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,n=Wi(e.container,e,e.od,!0),r=e.getMode()===Xt&&t+e.o.toolbarStickyOffset>n.top&&t+e.o.toolbarStickyOffset<n.top+n.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck!==r){var o=e.toolbarContainer;o&&(r?this.addSticky(o):this.removeSticky(o)),e.e.fire("toggleSticky",r)}}}},{key:"__isMobile",value:function(){var e=this.j;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}},{key:"beforeDestruct",value:function(e){ii.safeRemove(this.__dummyBox
50),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(Tk(ip));(function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":kk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)})([Ua()],Ck.prototype,"__onScroll",null),ka.add("sticky",Ck),Qr.prototype.usePopupForSpecialCharacters=!1,Qr.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","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","[","]","^","_","`","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","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],ls.set("symbols",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '),Qr.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(e,t,n){var r=e.e.fire("generateSpecialCharactersTable.symbols");if(r){if(e.o.usePopupForSpecialCharacters){var o=e.c.div();return o.classList.add("jodit-symbols"),o.appendChild(r),e.e.on(r,"close_dialog",n),o}e.alert(r,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);var i=r.querySelector("a");i&&i.focus()}}};const Pk={symbols:"رمز"},Ak={symbols:"symbol"},Ik={symbols:"Symbol"},Rk={symbols:"Símbolo"},jk={symbols:"سمبل"},Mk={symbols:"Symbolit"},Dk={symbols:"caractère"},Nk={symbols:"תו מיוחד"},Lk={symbols:"Szimbólum"},Fk={symbols:"simbol"},Bk={symbols:"Simbolo"},zk={symbols:"symbol"},Uk={symbols:"기호"},Hk={symbols:"тэмдэгт"},Vk={symbols:"symbool"},qk={symbols:"symbol"},Gk={symbols:"Símbolo"},Wk={symbols:"символ"},$k={symbols:"Sembol"},Yk={symbols:"символ"},Kk={symbols:"符号"},Jk={symbols:"符號"};function Qk(e,t,n){return Qk=tT()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Zk(o,n.prototype),o},Qk.apply(null,arguments)}
50function Xk(e){return Xk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xk(e)}function Zk(e,t){return Zk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zk(e,t)}function eT(e){var t="function"==typeof Map?new Map:void 0;return eT=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Qk(e,arguments,Xk(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Zk(r,e)},eT(e)}function tT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tT=function(){return!!e})()}var nT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=Xk(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,tT()?Reflect.construct(t,n||[],Xk(e).constructor):t.apply(e,n))}(this,t,[e])).buttons=[{name:"symbols",group:"insert"}],n.__countInRow=17,xa(Ae),n}var n;return 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&&Zk(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this;e.e.on("generateSpecialCharactersTable.symbols",function(){for(var n=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),r=n.querySelector(".jodit-symbols__preview"),o=n.querySelector("table").tBodies[0],i=[],a=0;a<e.o.specialCharacters.length;){for(var s=e.c.element("tr"),l=0;l<t.__countInRow&&a<e.o.specialCharacters.length;l+=1,a+=1){var c=e.c.element("td"),u=e.c.fromHTML('<a\n\t\t\t\t\t\t\t\t\tdata-index="'.concat(a,'"\n\t\t\t\t\t\t\t\t\tdata-index-j="').concat(l,'"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>').concat(e.o.specialCharacters[a],"</a>"));i.push(u),c.appendChild(u),s.appendChild(c)}o.appendChild(s)}var d=t;return e.e.on(i,"focus",function(){r.innerHTML=this.innerHTML}).on(i,"mousedown",function(t){ii.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())}).on(i,"mouseenter",function(){ii.isTag(this,"a")&&this.focus()}).on(i,"keydown",function(t){var n=t.target;if(ii.isTag(n,"a")){var r,o=parseInt($r(n,"-index")||"0",10),a=parseInt($r(n,"data-index-j")||"0",10);switch(t.key){case Ut:case Vt:r=t.key===Ut?o-d.__countInRow:o+d.__countInRow,void 0===i[r]&&(r=t.key===Ut?Math.floor(i.length/d.__countInRow)*d.__countInRow+a:a)>i.length-1&&(r-=d.__countInRow),i[r]&&i[r].focus();break;case Ht:case zt:r=t.key===zt?o-1:o+1,void 0===i[r]&&(r=t.key===zt?i.length-1:0),i[r]&&i[r].focus();break;case Lt:e.e.fire(n,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}}),n})}},{key:"beforeDestruct",value:function(e){e.e.off("generateSpecialCharactersTable.symbols")}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(eT(ip));function rT(e){return rT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rT(e)}function oT(e,t){return oT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oT(e,t)}function iT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function aT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aT=function(){return!!e})()}ka.add("symbols",nT),Qr.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a 
50journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},ls.set("ai-assistant",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg> '),ls.set("ai-commands",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c 
50-0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg> '),Qr.prototype.controls["ai-commands"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec:function(e,t,n){var r=n.control;e.e.fire("generateAiAssistantForm.ai-assistant",r.name)}},Qr.prototype.controls["ai-assistant"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec:function(e,t,n){e.e.fire("generateAiAssistantForm.ai-assistant")}};var sT=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":iT(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},lT=function(e){function t(e,n){var r,o=n.onInsert,i=n.onInsertAfter;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=rT(t),function(e,t){return!t||"object"!==iT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,aT()?Reflect.construct(t,n||[],rT(e).constructor):t.apply(e,n))}(this,t,[e])).__aiResult="",r.__error=r.getElm("error"),r.__body=r.getElm("body"),r.__buttons=r.getElm("buttons"),r.__results=r.getElm("results"),r.__spinner=r.getElm("spinner"),r.__insertButton=al(e,"","Insert","primary").onAction(function(){return o(r.__aiResult)}),r.__insertAfterButton=al(e,"","Insert After","initial").onAction(function(){return i(r.__aiResult)});var a=function(){r.__formAiAssistant.validate()&&(r.__formAiAssistant.submit(),r.__toggleInsertButton(!0),r.__toggleSubmitButton(!0))};r.__submitButton=al(e,"ai-assistant","").onAction(a),r.__tryAgainButton=al(e,"update","","initial").onAction(a),r.promptInput=new cc(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:r.getFullElName("prompt-row-input")});var s=new Ol(e,[r.__insertButton,r.__insertAfterButton,r.__tryAgainButton],{className:r.getFullElName("prompt-row")});return r.__formAiAssistant=new ec(e,[new Ol(e,[r.promptInput,r.__submitButton],{className:r.getFullElName("prompt-row")})]).onSubmit(function(t){r.__error.textContent="",r.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);var n=r.getFullElName("","hide","true");r.__results.classList.remove(n),r.__buttons.classList.remove(n),ii.detach(r.__results),r.__results.appendChild(r.__spinner),r.__insertButton.focus()}),r.__buttons.appendChild(s.container),r.__body.appendChild(r.__formAiAssistant.container),r.onCh
50angePromptValue(),r}var n;return 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&&oT(e,t)}(t,e),n=[{key:"className",value:function(){return"UIAiAssistant"}},{key:"render",value:function(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}},{key:"setPrompt",value:function(e){if(e){var t=this.jodit,n=t.o.aiAssistant[e],r=t.o.aiAssistant,o=r.aiCommonPrefixPrompt,i=r.aiCommonSuffixPrompt;this.promptInput.value=[o,In(n)?n:"",i].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}},{key:"onAiAssistentResponse",value:function(e){this.setMod("loading",!1),ii.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}},{key:"onAiAssistentError",value:function(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,ii.detach(this.__results),this.__toggleSubmitButton(!1);var t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}},{key:"onChangePromptValue",value:function(){this.__toggleSubmitButton(!this.promptInput.value)}},{key:"__toggleSubmitButton",value:function(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}},{key:"__toggleInsertButton",value:function(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gs);sT([ma(":ai-assistant-response")],lT.prototype,"onAiAssistentResponse",null),sT([ma(":ai-assistant-error")],lT.prototype,"onAiAssistentError",null),sT([ma("promptInput:change")],lT.prototype,"onChangePromptValue",null),lT=sT([pi],lT);const cT={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"},uT={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"};function dT(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function fT(e,t,n){return fT=yT()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&hT(o,n.prototype),o},fT.apply(null,arguments)}function pT(e){return pT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pT(e)}function hT(e,t){return hT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hT(e,t)}function mT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gT(e){var t="function"==typeof Map?new Map:void 0;return gT=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return fT(e,arguments,pT(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),hT(r,e)},gT(e)}function yT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yT=function(){return!!e})()}var vT=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":mT(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},bT=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=pT(t),function(e,t){return!t||"object"!==mT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yT()?Reflect.construct(t,n||[],pT(e).constructor):t.apply(e,n))}(this,t,[e])).buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],xa(je),n}var n;return 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&&hT(e,t)}(t,e),n=[{key:"__dialog",get:function(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}},{key:"__container",get:function(){var e=this.jodit,t=this.__dialog;
50return new lT(e,{onInsertAfter:function(n){e.s.focus(),e.s.setCursorAfter(e.s.current()),e.s.insertHTML(n),t.close()},onInsert:function(n){e.s.focus(),e.s.insertHTML(n),t.close()}})}},{key:"afterInit",value:function(){}},{key:"onGenerateAiAssistantForm",value:function(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}},{key:"onInvokeAiAssistant",value:function(e){var t=this.jodit;t.s.focus();var n=t.s.html;t.async.promise(function(){var r,o=(r=function(r,o){var i,a;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,t.o.aiAssistant.aiAssistantCallback(e,n)];case 1:return i=s.sent(),r(i),[3,3];case 2:return a=s.sent(),o(a),[3,3];case 3:return[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,o){var i=r.apply(e,t);function a(e){dT(i,n,o,a,s,"next",e)}function s(e){dT(i,n,o,a,s,"throw",e)}a(void 0)})});return function(e,t){return o.apply(this,arguments)}}()).then(function(e){t.e.fire("ai-assistant-response",e)}).catch(function(e){Bn(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))})}},{key:"beforeDestruct",value:function(e){var t,n;null===(t=ai(this,"__container"))||void 0===t||t.destruct(),null===(n=ai(this,"__dialog"))||void 0===n||n.destruct()}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(gT(ip));function _T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wT(e,t,n){return wT=xT()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ET(o,n.prototype),o},wT.apply(null,arguments)}function ST(e){return ST=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ST(e)}function ET(e,t){return ET=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ET(e,t)}function kT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function TT(e){var t="function"==typeof Map?new Map:void 0;return TT=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return wT(e,arguments,ST(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ET(r,e)},TT(e)}function xT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xT=function(){return!!e})()}vT([si],bT.prototype,"__dialog",null),vT([si],bT.prototype,"__container",null),vT([ma(":generateAiAssistantForm.ai-assistant")],bT.prototype,"onGenerateAiAssistantForm",null),vT([ma(":invokeAiAssistant")],bT.prototype,"onInvokeAiAssistant",null),ka.add("ai-assistant",bT),Qr.prototype.tab={tabInsideLiInsertNewList:!0};var OT=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":kT(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}
50,CT=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,r=arguments,n=ST(n=t),function(e,t){return!t||"object"!==kT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xT()?Reflect.construct(n,r||[],ST(e).constructor):n.apply(e,r));var e,n,r}var n;return 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&&ET(e,t)}(t,e),(n=[{key:"afterInit",value:function(e){}},{key:"__onTab",value:function(e){if(e.key===Nt&&this.__onShift(e.shiftKey))return!1}},{key:"__onCommand",value:function(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}},{key:"__onShift",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.o.tab.tabInsideLiInsertNewList)return!1;var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return _T(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_T(e,2):void 0}}(e)||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(e){var t=e.createInside.fake(),n=e.createInside.fake(),r=e.s.range.cloneRange();r.collapse(!0),r.insertNode(t);var o=e.s.range.cloneRange();return o.collapse(!1),o.insertNode(n),[t,n]}(e)),r=n[0],o=n[1];try{var i=function(e,t,n){var r=ii.closest(t,"li",e.editor);return!!r&&!(!n&&!ii.isLeaf(r.previousElementSibling))&&!(n&&!ii.closest(r,"li",e.editor))&&r}(e,r,t);if(!i)return!1;if(!function(e,t,n){var r=ii.closest(n,"li",t.editor);return!(!r||r!==e&&!e.contains(r))}(i,e,r))return!1;var a=ii.closest(i,["ol","ul"],e.editor);return!(!a||t&&!ii.closest(a,"li",e.editor)||(t?function(e,t,n){var r=ii.closest(t,"li",e.editor);Wr(r,"tab parent li is null");var o=Array.from(t.children).filter(function(e){return ii.isLeaf(e)});ii.after(r,n);var i=o.indexOf(n);if(0!==i&&1!==o.length||ii.safeRemove(t),i!==o.length-1){var a=t.cloneNode();ii.append(n,a);for(var s=i+1;s<o.length;s+=1)ii.append(a,o[s])}}(e,a,i):function(e,t,n){var r=n.previousElementSibling;Wr(r,"tab previousElementSibling is null");var o=r.lastElementChild,i=ii.isTag(o,t.tagName)?o:e.createInside.element(t.tagName,Array.from(t.attributes).reduce(function(e,t){return e[t.name]=t.value,e},{}));i.appendChild(n),o!==i&&r.appendChild(i)}(e,a,i),0))}finally{var s=e.s.createRange();s.setStartAfter(r),s.setEndBefore(o),e.s.selectRange(s),ii.safeRemove(r),ii.safeRemove(o)}}(this.j,e);return t&&this.j.e.fire("afterTab",e),t}},{key:"beforeDestruct",value:function(e){}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(TT(ip));function PT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}OT([ma(":keydown.tab")],CT.prototype,"__onTab",null),OT([ma(":beforeCommand.tab")],CT.prototype,"__onCommand",null),ka.add("tab",CT);var AT=new Set([Nt,zt,Ht,Ut,Vt]);function IT(e,t,n){return IT=NT()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&MT(o,n.prototype),o},IT.apply(null,arguments)}function RT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(e){return jT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jT(e)}function MT(e,t){return MT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},MT(e,t)}function DT(e){var t="function"==typeof Map?new Map:void 0;return DT=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return IT(e,arguments,jT(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),MT(r,e)},DT(e)}function NT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(NT=function(){return!!e})()}ka.add("tableKeyboardNavigation",function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",function(t){var n=t.key,r=function(e,t){if(AT.has(t)){var n=e.s.current();if(n){var r=ii.up(n,ii.isCell,e.editor);if(r){var o=e.s.range;if(t!==Nt&&n!==r){var i=t===Ht||t===Vt,a=oo(i?ii.next:ii.prev,n,function(e){return t===Ut||t===Vt?ii.isTag(e,"br"):Boolean(e)},r);if(!i&&(a||t!==Ut&&ii.isText(n)&&0!==o.startOffset)||i&&(a||t!==Vt&&ii.isText(n)&&n.nodeValue&&o.startOffset!==n.nodeValue.length))return}return r}}}}(e,n);if(r){var o=e.getInstance(jp,e.o),i=ii.closest(r,"table",e.editor),a=null,s=n===zt||t.shiftKey,l=function(){return oo(s?ii.prev:ii.next,r,ii.isCell,i)};switch(n){case Nt:case zt:(a=l())||(o.appendRow(i,!!s&&i.querySelector("tr"),!s),a=l());break;case Ut:case Vt:var c=o.formalMatrix(i),u=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return PT(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?PT(e,2):void 0}}
50(e)||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.")}()}(o.formalCoordinate(i,r)),d=u[0],f=u[1];n===Ut?void 0!==c[d-1]&&(a=c[d-1][f]):void 0!==c[d+1]&&(a=c[d+1][f])}if(a){if(e.e.fire("hidePopup hideResizer"),a.firstChild)n===Nt?e.s.select(a,!0):e.s.setCursorIn(a,n===Ht||n===Vt);else{var p=e.createInside.element("br");a.appendChild(p),e.s.setCursorBefore(p)}return e.synchronizeValues(),!1}}})}),Qr.prototype.video={parseUrlToVideoEmbed:vo,defaultWidth:400,defaultHeight:345},ls.set("video",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '),Qr.prototype.controls.video={popup:function(e,t,n){var r=new ec(e,[new Ol(e,[new Bl(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new Ol(e,[al(e,"","Insert","primary").onAction(function(){return r.submit()})])]),o=new ec(e,[new Ol(e,[new cc(e,{name:"code",required:!0,label:"Embed code"})]),new Ol(e,[al(e,"","Insert","primary").onAction(function(){return o.submit()})])]),i=[],a=function(t){e.s.restore(),e.s.insertHTML(t),n()};return e.s.save(),i.push({icon:"link",name:"Link",content:r.container},{icon:"source",name:"Code",content:o.container}),r.onSubmit(function(t){var n,r,o,i;a(oo(null!==(r=null===(n=e.o.video)||void 0===n?void 0:n.parseUrlToVideoEmbed)&&void 0!==r?r:vo,t.url,{width:null===(o=e.o.video)||void 0===o?void 0:o.defaultWidth,height:null===(i=e.o.video)||void 0===i?void 0:i.defaultHeight}))}),o.onSubmit(function(e){a(e.code)}),ag(e,i)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},ka.add("video",function(e){e.registerButton({name:"video",group:"media"})}),Qr.prototype.showXPathInStatusbar=!0;var LT=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=jT(t),function(e,t){return!t||"object"!=((n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var n}(e,NT()?Reflect.construct(t,n||[],jT(e).constructor):t.apply(e,n))}(this,t,arguments)).onContext=function(t,n){return e.menu||(e.menu=new Wd(e.j)),e.menu.show(n.clientX,n.clientY,[{icon:"bin",title:t===e.j.editor?"Clear":"Remove",exec:function(){t!==e.j.editor?ii.safeRemove(t):e.j.value="",e.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:function(){e.j.s.select(t)}}]),!1},e.onSelectPath=function(t,n){e.j.s.focus();var r=$r(n.target,"-path")||"/";if("/"===r)return e.j.execCommand("selectall"),!1;try{var o=e.j.ed.evaluate(r,e.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(o)return e.j.s.select(o),!1}catch(e){}return e.j.s.select(t),!1},e.tpl=function(t,n,r,o){var i=e.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(n,'" title="').concat(o,'" tabindex="-1"\'>').concat(ur(r),"</a></span>")),a=i.firstChild;return e.j.e.on(a,"click",e.onSelectPath.bind(e,t)).on(a,"contextmenu",e.onContext.bind(e,t)),i},e.removeSelectAll=function(){e.selectAllButton&&(e.selectAllButton.destruct(),delete e.selectAllButton)},e.appendSelectAll=function(){e.removeSelectAll(),e.selectAllButton=yd(e.j,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){RT(e,t,n[t])})}return e}({name:"selectall"},e.j.o.controls.selectall)),e.selectAllButton.state.size="tiny",e.container&&e.container.insertBefore(e.selectAllButton.container,e.container.firstChild)},e.calcPathImd=function(){if(!e.isDestructed){var t,n,r,o=e.j.s.current();e.container&&(e.container.innerHTML=vt),o&&ii.up(o,function(o){!o||e.j.editor===o||ii.isText(o)||ii.isComment(o)||(t=o.nodeName.toLowerCase(),n=$o(o,e.j.editor).replace(/^\//,""),r=e.tpl(o,n,t,e.j.i18n("Select %s",t)),e.container&&e.container.insertBefore(r,e.container.firstChild))}
50,e.j.editor),e.appendSelectAll()}},e.calcPath=e.j.async.debounce(e.calcPathImd,2*e.j.defaultTimeout),e}var n;return 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&&MT(e,t)}(t,e),(n=[{key:"afterInit",value:function(){var e=this;this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",function(){e.j.o.showXPathInStatusbar&&e.container&&(e.j.statusbar.append(e.container),e.j.getRealMode()===Xt?e.calcPath():(e.container&&(e.container.innerHTML=vt),e.appendSelectAll()))}),this.calcPath())}},{key:"beforeDestruct",value:function(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),ii.safeRemove(this.container),delete this.menu,delete this.container}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(DT(ip));ka.add("xpath",LT);var FT=xt?xt.SpeechRecognition||xt.webkitSpeechRecognition:void 0;function BT(e,t,n){return BT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zT(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n||e):o.value}},BT(e,t,n||e)}function zT(e){return zT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zT(e)}function UT(e,t){return UT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},UT(e,t)}function HT(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function VT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(VT=function(){return!!e})()}var qT=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":HT(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},GT=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=zT(t),function(e,t){return!t||"object"!==HT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,VT()?Reflect.construct(t,[],zT(e).constructor):t.apply(e,n))}(this,t)).async=e,r._continuous=!1,r._interimResults=!1,r.sound=!0,r._isEnabled=!1,r._restartTimeout=0,r._onSpeechStart=function(e){r._isEnabled&&(r.async.clearTimeout(r._restartTimeout),r._restartTimeout=r.async.setTimeout(function(){r.restart(),r.emit("pulse",!1),r._makeSound(940)},5e3),r.emit("pulse",!0))},r.__interimResults="",r._api=n,t._instances.add(r),r}var n;return 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&&UT(e,t)}(t,e),n=[{key:"lang",get:function(){return this._lang},set:function(e){this._lang=e,this._api.lang=e}},{key:"continuous",get:function(){return this._continuous},set:function(e){this._continuous=e,this._api.continuous=e}},{key:"interimResults",get:function(){return this._interimResults},set:function(e){this._interimResults=e,this._api.interimResults=e}},{key:"destruct",value:function(){this.stop(),t._instances.delete(this),BT(zT(t.prototype),"destruct",this).call(this)}},{key:"isEnabled",get:function(){return this._isEnabled}},{key:"start",value:function(){var e=this;
50if(!this._isEnabled){this._isEnabled=!0,t._instances.forEach(function(t){t!==e&&t.stop()});try{this._api.start()}catch(e){return this._onError(e),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}},{key:"stop",value:function(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}},{key:"toggle",value:function(){this._isEnabled?this.stop():this.start()}},{key:"restart",value:function(){this.stop(),this.start()}},{key:"__on",value:function(e,t){return this._api.addEventListener(e,t),this}},{key:"__off",value:function(e,t){return this._api.removeEventListener(e,t),this}},{key:"_onResults",value:function(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}},{key:"_onProgress",value:function(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(var t=0;t<e.results.length;t++){var n=e.results.item(t);if(n.length){var r=n.item(0).transcript;this.__interimResults+=r}}this.__interimResults&&this.emit("progress",this.__interimResults)}}},{key:"_onError",value:function(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),"language-unavailable"!==e.error&&"language-not-supported"!==e.error||this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}},{key:"_makeSound",value:function(e){this.sound&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sec,n=void 0===t?.1:t,r=e.frequency,o=void 0===r?440:r,i=e.gain,a=void 0===i?.1:i,s=e.type,l=void 0===s?"sine":s;if(xt&&(void 0!==xt.AudioContext||void 0!==xt.webkitAudioContext)){var c=new(xt.AudioContext||xt.webkitAudioContext),u=c.createGain(),d=c.createOscillator();d.type=l,d.frequency.value=o,d.connect(u),u.connect(c.destination),d.start(),d.stop(c.currentTime+n),u.gain.value=a}}({frequency:e})}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(hr);function WT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}GT._instances=new Set,qT([On],GT.prototype,"_onResults",null),qT([On],GT.prototype,"_onProgress",null),qT([On],GT.prototype,"_onError",null),Qr.prototype.speechRecognize={api:void 0!==FT?FT:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},ls.set("speech-recognize",'<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '),Qr.prototype.controls.speechRecognize={isVisible:function(e){return Boolean(e.o.speechRecognize.api)},isActive:function(e,t){var n=no(e,"speech");return Boolean(null==n?void 0:n.isEnabled)},isDisabled:function(e){return!e.o.speechRecognize.api},exec:function(e,t,n){var r,o=n.button,i=n.control,a=e.o.speechRecognize,s=a.api,l=a.lang,c=a.continuous,u=a.interimResults,d=a.sound;if(s){var f=no(e,"speech");if(!f){var p=new s;(f=new GT(e.async,p)).lang=In(l)?l:null!==(r=$r(e.od.documentElement,"lang"))&&void 0!==r?r:void 0,f.continuous=c,f.interimResults=u,f.sound=d,no(e,"speech",f),f.on("pulse",function(e){o.setMod("pulse",e)}),f.on("result",function(t){return e.e.fire("speechRecognizeResult",t)}),f.on("progress",function(t){return e.e.fire("speechRecognizeProgressResult",t)}),f.on("error",function(t){return e.message.error(t)}),o.hookStatus("beforeDestruct",function(){no(e,"speech",null),f.destruct()})}
50if(i.args){var h=i.args[0];if(zn(f[h]))return f[h]=!f[h],void(f.isEnabled&&f.restart())}f.toggle(),f.isEnabled&&o.setMod("pulse",!0),o.state.activated=f.isEnabled}else e.alert("Speech recognize API unsupported in your browser")},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate:function(e,t,n){var r,o=no(e,"speech"),i=null!==(r=null==o?void 0:o[t])&&void 0!==r?r:e.o.speechRecognize[t];return"<span class='jodit-speech-recognize__list-item'><input ".concat(i?"checked":""," class='jodit-checkbox' type='checkbox'>&nbsp;").concat(n,"</span>")},mods:{stroke:!1}};const $T={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"},YT={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"},KT={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"},JT={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"},QT={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"},XT={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"},ZT={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"},ex={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"},tx={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",S
50ound:"Hang","Interim Results":"Időközi Eredmények"},nx={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"},rx={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"},ox={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"},ix={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"},ax={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"},sx={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"},lx={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"},cx={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"},ux={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"},dx={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"},fx={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"},px={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"},hx={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"},mx={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"};function gx(e,t,n){return gx=wx()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&vx(o,n.prototype),o},gx.apply(null,arguments)}
50function yx(e){return yx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yx(e)}function vx(e,t){return vx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vx(e,t)}function bx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _x(e){var t="function"==typeof Map?new Map:void 0;return _x=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return gx(e,arguments,yx(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vx(r,e)},_x(e)}function wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wx=function(){return!!e})()}var Sx=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"==typeof Reflect?"undefined":bx(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ex=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=yx(t),function(e,t){return!t||"object"!==bx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,wx()?Reflect.construct(t,n||[],yx(e).constructor):t.apply(e,n))}(this,t,arguments)).buttons=[{group:"state",name:"speechRecognize"}],e._commandToWord={},e}var n;return 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&&vx(e,t)}(t,e),n=[{key:"afterInit",value:function(e){var t=this,n=e.o.speechRecognize.commands;n&&(xa(rt),lo(n,!1).forEach(function(r){r.split("|").forEach(function(o){o=o.trim().toLowerCase(),t._commandToWord[o]=n[r];var i=e.i18n(o);i!==o&&i.split("|").forEach(function(e){t._commandToWord[e.trim().toLowerCase()]=n[r].trim()})})}))}},{key:"beforeDestruct",value:function(e){ii.safeRemove(this.messagePopup)}},{key:"onSpeechRecognizeProgressResult",value:function(e){var t=this;this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout(function(){ii.safeRemove(t.messagePopup)},1e3),this.messagePopup.innerText=e+"|"}},{key:"onSpeechRecognizeResult",value:function(e){this.j.async.clearTimeout(this.__hidePopupTimeout),ii.safeRemove(this.messagePopup);var t=this.j,n=t.s;if(!this._checkCommand(e)){var r=n.range,o=n.current();if(n.isCollapsed()&&ii.isText(o)&&ii.isOrContains(t.editor,o)&&o.nodeValue){var i=o.nodeValue;o.nodeValue=i+(/[\u00A0 ]\uFEFF*$/.test(i)?"":" ")+e,r.setStartAfter(o),n.selectRange(r),t.synchronizeValues()}else n.insertHTML(e)}}},{key:"_checkCommand",value:function(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&(function(e,t){var n=function(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o=[],i=!0,a=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(e){a=!0,r=e}finally{try{i||null==t.return||t.return()}finally{if(a)throw r}}return o}}(e)||function(e){if(e){if("string"==typeof e)return WT(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?WT(e,2):void 0}}
50(e)||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.")}()}(t.split("::")),r=n[0],o=n[1];e.execCommand(r,null,o)}(this.j,this._commandToWord[e]),!0)}}],n&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(t.prototype,n),t}(_x(ip));Sx([ma(":speechRecognizeProgressResult")],Ex.prototype,"onSpeechRecognizeProgressResult",null),Sx([ma(":speechRecognizeResult")],Ex.prototype,"onSpeechRecognizeResult",null),rm.plugins.add("speech-recognize",Ex);var kx=rm,Tx=(0,ot.forwardRef)(function(e,t){var n=e.JoditConstructor,r=void 0===n?kx:n,o=e.className,i=e.config,a=e.id,s=e.name,l=e.onBlur,c=e.onChange,u=e.tabIndex,d=e.value,f=e.editorRef,p=(0,ot.useRef)(null),h=(0,ot.useRef)(null);(0,ot.useEffect)(function(){var e=p.current,t=r.make(e,i);return h.current=t,"function"==typeof f&&f(t),function(){t.isReady?t.destruct():t.waitForReady().then(function(e){return e.destruct()})}},[r,i,f]),(0,ot.useEffect)(function(){t&&("function"==typeof t?t(h.current):t.current=h.current)},[p,t,h]);var m=function(e){var t=(0,ot.useRef)("");return(0,ot.useEffect)(function(){t.current=e},[e]),t.current}(null!=o?o:"");return(0,ot.useEffect)(function(){var e,t,n=null===(t=h.current)||void 0===t||null===(e=t.container)||void 0===e?void 0:e.classList;m!==o&&"string"==typeof m&&m.split(/\s+/).filter(Boolean).forEach(function(e){return null==n?void 0:n.remove(e)}),o&&"string"==typeof o&&o.split(/\s+/).filter(Boolean).forEach(function(e){return null==n?void 0:n.add(e)})},[o,m]),(0,ot.useEffect)(function(){var e;(null===(e=h.current)||void 0===e?void 0:e.workplace)&&(h.current.workplace.tabIndex=u||-1)},[u]),(0,ot.useEffect)(function(){var e=h.current;if((null==e?void 0:e.events)&&(l||c)){var t=function(e){var t,n;return l&&l(null!==(n=null==h||null===(t=h.current)||void 0===t?void 0:t.value)&&void 0!==n?n:"",e)},n=function(e){return c&&c(e)};return e.events.on("blur",t).on("change",n),function(){var r;null===(r=e.events)||void 0===r||r.off("blur",t).off("change",n)}}},[l,c]),(0,ot.useEffect)(function(){var e=h.current,t=function(){e&&void 0!==d&&e.value!==d&&(e.value=d)};e&&(e.isReady?t():e.waitForReady().then(t))},[d]),it().createElement("div",{className:"jodit-react-container"},it().createElement("textarea",{defaultValue:d,name:s,id:a,ref:p}))});Tx.displayName="JoditEditor";const xx=Tx;return o})(),e.exports=r(n(396))},,,,,,(e,t,n)=>{"use strict";n.r(t),n.d(t,{EmitterInstance:()=>l});var r=n(914),o=n(1013),i=n(1018);function a(e,t,n,o){(e.paint??=new r.Paint).fill={color:r.AnimatableColor.create(void 0,{value:t}),enable:o,opacity:n}}function s(e,t,n,o){(e.paint??=new r.Paint).stroke={color:r.AnimatableColor.create(void 0,{value:t}),opacity:n,width:o}}class l{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;#f;#Ct;#Pt;#At;#x;#It;#Rt;#jt;#Mt;#Dt;#B;#Nt;#M;#p;#Lt;#_e;#Ft;#Bt;#zt;#Ut;constructor(e,t,n,i,a){this.#p=e,this.#f=t,this.#Lt=n,this.#Ct=0,this.#Pt=0,this.#At=0,this.#Mt=a,i instanceof o.Emitter?this.options=i:(this.options=new o.Emitter,this.options.load(i)),this.#zt=t.retina.reduceFactor?(0,r.getRangeValue)(this.options.life.delay??0)*r.millisecondsToSeconds/t.retina.reduceFactor:1/0,this.position=this.#Mt??this.#at(),this.name=this.options.name,this.fill=this.options.fill,this.#Rt=!this.options.life.wait,this.#Ut=!1;const s=(0,r.deepExtend)({},this.options.particles);if(s.move??={},s.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=(0,r.rangeColorToHsl)(this.#p,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=(0,r.rangeColorToHsl)(this.#p,this.options.spawn.stroke.color)),this.#M=!this.options.autoPlay,this.#Nt=s,this.#Bt=this.#Ht(),this.size=(0,r.getSize)(this.#Bt,this.#f.canvas.size),this.#Dt=this.options.life.count??-1,this.#jt=this.#Dt<=0,this.options.domId){const e=(0,r.safeDocument)().getElementById(this.options.domId);e&&(this.#B=new MutationObserver(()=>{this.resize()}),this.#_e=new ResizeObserver(()=>{this.resize()}),this.#B.observe(e,{attributes:!0,attributeFilter:["style","width","height"]}),this.#_e.observe(e))}const l=this.options.shape,c=this.#p.emitterShapeManager?.getShapeGenerator(l.type);c&&(this.#Ft=c.generate(this.#f,this.position,this.size,this.fill,l.options)),this.#f.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this.#M=!0,this.pause()}externalPlay(){this.#M=!1,this.play()}
vendor: 4,587 bytes, lines 50-51
50async init(){await(this.#Ft?.init())}pause(){this.#M||(this.#It=void 0)}play(){if(this.#M)return;if(!(this.#Dt>0||this.#jt)&&this.options.life.count||!(this.#Rt||this.#At>=(this.#zt??0)))return;const e=this.#f;if(void 0===this.#It){const t=(0,r.getRangeValue)(this.options.rate.delay);this.#It=e.retina.reduceFactor?t*r.millisecondsToSeconds/e.retina.reduceFactor:1/0}(this.#Dt>0||this.#jt)&&this.#Vt()}resize(){const e=this.#Mt,t=this.#f;this.position=e&&(0,r.isPointInside)(e,t.canvas.size,r.Vector.origin)?e:this.#at(),this.#Bt=this.#Ht(),this.size=(0,r.getSize)(this.#Bt,t.canvas.size),this.#Ft?.resize(this.position,this.size)}update(e){if(this.#M)return;const t=this.#f;this.#Rt&&(this.#Rt=!1,this.#At=this.#zt??0,this.#Pt=this.#It??0),this.#Ut||(this.#Ut=!0,this.#qt(this.options.startCount)),void 0!==this.#x&&(this.#Ct+=e.value,this.#Ct>=this.#x&&(this.pause(),void 0!==this.#zt&&(this.#zt=void 0),this.#jt||this.#Dt--,this.#Dt>0||this.#jt?(this.position=this.#at(),this.#Ft?.resize(this.position,this.size),this.#zt=t.retina.reduceFactor?(0,r.getRangeValue)(this.options.life.delay??0)*r.millisecondsToSeconds/t.retina.reduceFactor:1/0):this.#Gt(),this.#Ct-=this.#x,this.#x=void 0)),void 0!==this.#zt&&(this.#At+=e.value,this.#At>=this.#zt&&(this.#f.dispatchEvent("emitterPlay"),this.play(),this.#At-=this.#zt,this.#zt=void 0)),void 0!==this.#It&&(this.#Pt+=e.value,this.#Pt>=this.#It&&(this.#Wt(),this.#Pt-=this.#It))}#at(){const e=this.#f;if(this.options.domId){const t=(0,r.safeDocument)().getElementById(this.options.domId);if(t){const n=t.getBoundingClientRect(),o=e.retina.pixelRatio;return{x:(n.x+n.width*r.half)*o,y:(n.y+n.height*r.half)*o}}}return(0,r.calcPositionOrRandomFromSizeRanged)({size:e.canvas.size,position:this.options.position})}#Ht(){const e=this.#f;if(this.options.domId){const t=(0,r.safeDocument)().getElementById(this.options.domId);if(t){const n=t.getBoundingClientRect();return{width:n.width*e.retina.pixelRatio,height:n.height*e.retina.pixelRatio,mode:r.PixelMode.precise}}}return this.options.size??(()=>{const e=new i.EmitterSize;return e.load({height:0,mode:r.PixelMode.percent,width:0}),e})()}#Gt=()=>{this.#B?.disconnect(),this.#B=void 0,this.#_e?.disconnect(),this.#_e=void 0,this.#Lt(this),this.#f.dispatchEvent("emitterDestroyed",{emitter:this})};#Wt(){if(this.#M)return;const e=(0,r.getRangeValue)(this.options.rate.quantity);this.#qt(e)}#qt(e){const t=(0,r.itemFromSingleOrMultiple)(this.#Nt)??{},n=this.options.spawn.fill?.color?.animation,o=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,i=void 0===this.options.spawn.fill?.opacity?r.defaultOpacity:(0,r.getRangeValue)(this.options.spawn.fill.opacity),l=this.options.spawn.stroke?.color?.animation,c=void 0===this.options.spawn.stroke?.opacity?r.defaultOpacity:(0,r.getRangeValue)(this.options.spawn.stroke.opacity),u=void 0===this.options.spawn.stroke?.width?1:(0,r.getRangeValue)(this.options.spawn.stroke.width),d=this.#f.retina.reduceFactor,f=!!n,p=!!l,h=!!this.#Ft,m=f||p,g=m||h,y=m?{h:r.hMax,s:r.sMax,l:r.lMax}:null,v=this.options.shape;for(let f=0;f<e*d;f++){const e=g?(0,r.deepExtend)({},t):t;this.spawnFillOpacity=i,this.spawnFillEnabled=o,this.spawnStrokeOpacity=c,this.spawnStrokeWidth=u,this.spawnFillColor&&(n&&y&&(this.spawnFillColor.h=this.#$t(n.h,this.spawnFillColor.h,y.h,3.6),this.spawnFillColor.s=this.#$t(n.s,this.spawnFillColor.s,y.s),this.spawnFillColor.l=this.#$t(n.l,this.spawnFillColor.l,y.l)),a(e,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor&&(l&&y&&(this.spawnStrokeColor.h=this.#$t(l.h,this.spawnStrokeColor.h,y.h,3.6),this.spawnStrokeColor.s=this.#$t(l.s,this.spawnStrokeColor.s,y.s),this.spawnStrokeColor.l=this.#$t(l.l,this.spawnStrokeColor.l,y.l)),s(e,this.spawnStrokeColor,this.spawnStrokeOpacity,this.spawnStrokeWidth));let d=this.position;if(this.#Ft){const t=this.#Ft.randomPosition();if(t){d=t.position;const n=v.replace;n.color&&t.color&&a(e,t.color,n.opacity?t.opacity??r.defaultOpacity:r.defaultOpacity,!0)}else d=null}d&&this.#f.particles.addParticle(d,e)}}#Vt=()=>{if(this.#M)return;const e=void 0!==this.options.life.duration?(0,r.getRangeValue)(this.options.life.duration):void 0;(this.#Dt>0||this.#jt)&&void 0!==e&&e>0&&(this.#x=e*r.millisecondsToSeconds)};#$t=(e,t,n,o=1)=>{const i=this.#f;if(!e.enable)return t;const a=(0,r.randomInRangeValue)(e.offset),s=(0,r.getRangeValue)(this.options.rate.delay),l=i.retina.reduceFactor?s*r.millisecondsToSeconds/i.retina.reduceFactor:1/0;return(t+(0,r.getRangeValue)(e.speed)*i.fpsLimit/l+a*o)%n}}}]]);
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.