var NW=Object.defineProperty;var BW=(t,e,r)=>e in t?NW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ae=(t,e,r)=>(BW(t,typeof e!="symbol"?e+"":e,r),r);function FW(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}/*! * Vue.js v2.7.14 * (c) 2014-2022 Evan You * Released under the MIT License. */var ri=Object.freeze({}),Ke=Array.isArray;function $e(t){return t==null}function Q(t){return t!=null}function Yt(t){return t===!0}function jW(t){return t===!1}function Ep(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function Ht(t){return typeof t=="function"}function Zr(t){return t!==null&&typeof t=="object"}var nE=Object.prototype.toString;function li(t){return nE.call(t)==="[object Object]"}function HW(t){return nE.call(t)==="[object RegExp]"}function nN(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function oS(t){return Q(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function zW(t){return t==null?"":Array.isArray(t)||li(t)&&t.toString===nE?JSON.stringify(t,null,2):String(t)}function Vh(t){var e=parseFloat(t);return isNaN(e)?t:e}function Qi(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(n,1)}}var UW=Object.prototype.hasOwnProperty;function hn(t,e){return UW.call(t,e)}function _c(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var GW=/-(\w)/g,Ju=_c(function(t){return t.replace(GW,function(e,r){return r?r.toUpperCase():""})}),WW=_c(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),YW=/\B([A-Z])/g,xp=_c(function(t){return t.replace(YW,"-$1").toLowerCase()});function KW(t,e){function r(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return r._length=t.length,r}function qW(t,e){return t.bind(e)}var iN=Function.prototype.bind?qW:KW;function uS(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function kt(t,e){for(var r in e)t[r]=e[r];return t}function aN(t){for(var e={},r=0;r0,lN=Ai&&Ai.indexOf("edge/")>0;Ai&&Ai.indexOf("android")>0;var t9=Ai&&/iphone|ipad|ipod|ios/.test(Ai),eA=Ai&&Ai.match(/firefox\/(\d+)/),cS={}.watch,dN=!1;if(fi)try{var tA={};Object.defineProperty(tA,"passive",{get:function(){dN=!0}}),window.addEventListener("test-passive",null,tA)}catch{}var Om,Pp=function(){return Om===void 0&&(!fi&&typeof global<"u"?Om=global.process&&global.process.env.VUE_ENV==="server":Om=!1),Om},Lv=fi&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ul(t){return typeof t=="function"&&/native code/.test(t.toString())}var Cp=typeof Symbol<"u"&&Ul(Symbol)&&typeof Reflect<"u"&&Ul(Reflect.ownKeys),Uh;typeof Set<"u"&&Ul(Set)?Uh=Set:Uh=function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(e){return this.set[e]===!0},t.prototype.add=function(e){this.set[e]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var bh=null;function Io(t){t===void 0&&(t=null),t||bh&&bh._scope.off(),bh=t,t&&t._scope.on()}var di=function(){function t(e,r,n,i,a,s,o,u){this.tag=e,this.data=r,this.children=n,this.text=i,this.elm=a,this.ns=void 0,this.context=s,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=r&&r.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=u,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),ju=function(t){t===void 0&&(t="");var e=new di;return e.text=t,e.isComment=!0,e};function Pl(t){return new di(void 0,void 0,void 0,String(t))}function lS(t){var e=new di(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var r9=0,Lg=[],n9=function(){for(var t=0;t0&&(i=bN(i,"".concat(e||"","_").concat(n)),ff(i[0])&&ff(s)&&(r[a]=Pl(s.text+i[0].text),i.shift()),r.push.apply(r,i)):Ep(i)?ff(s)?r[a]=Pl(s.text+i):i!==""&&r.push(Pl(i)):ff(i)&&ff(s)?r[a]=Pl(s.text+i.text):(Yt(t._isVList)&&Q(i.tag)&&$e(i.key)&&Q(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),r.push(i)));return r}function f9(t,e){var r=null,n,i,a,s;if(Ke(t)||typeof t=="string")for(r=new Array(t.length),n=0,i=t.length;n0,s=e?!!e.$stable:!a,o=e&&e.$key;if(!e)i={};else{if(e._normalized)return e._normalized;if(s&&n&&n!==ri&&o===n.$key&&!a&&!n.$hasNormal)return n;i={};for(var u in e)e[u]&&u[0]!=="$"&&(i[u]=O9(t,r,u,e[u]))}for(var c in r)c in i||(i[c]=T9(r,c));return e&&Object.isExtensible(e)&&(e._normalized=i),Oo(i,"$stable",s),Oo(i,"$key",o),Oo(i,"$hasNormal",a),i}function O9(t,e,r,n){var i=function(){var a=bh;Io(t);var s=arguments.length?n.apply(null,arguments):n({});s=s&&typeof s=="object"&&!Ke(s)?[s]:oE(s);var o=s&&s[0];return Io(a),s&&(!o||s.length===1&&o.isComment&&!Gh(o))?void 0:s};return n.proxy&&Object.defineProperty(e,r,{get:i,enumerable:!0,configurable:!0}),i}function T9(t,e){return function(){return t[e]}}function E9(t){var e=t.$options,r=e.setup;if(r){var n=t._setupContext=x9(t);Io(t),$d();var i=No(r,null,[t._props||gN({}),n],t,"setup");if(kd(),Io(),Ht(i))e.render=i;else if(Zr(i))if(t._setupState=i,i.__sfc){var s=t._setupProxy={};for(var a in i)a!=="__sfc"&&dS(s,i,a)}else for(var a in i)cN(a)||dS(t,i,a)}}function x9(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};Oo(e,"_v_attr_proxy",!0),Bv(e,t.$attrs,ri,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Bv(e,t.$listeners,ri,t,"$listeners")}return t._listenersProxy},get slots(){return C9(t)},emit:iN(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(r){return dS(t,e,r)})}}}function Bv(t,e,r,n,i){var a=!1;for(var s in e)s in t?e[s]!==r[s]&&(a=!0):(a=!0,P9(t,s,n,i));for(var s in t)s in e||(a=!0,delete t[s]);return a}function P9(t,e,r,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return r[n][e]}})}function C9(t){return t._slotsProxy||SN(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function SN(t,e){for(var r in e)t[r]=e[r];for(var r in t)r in e||delete t[r]}function A9(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,n=r&&r.context;t.$slots=uE(e._renderChildren,n),t.$scopedSlots=r?yh(t.$parent,r.data.scopedSlots,t.$slots):ri,t._c=function(a,s,o,u){return Fv(t,a,s,o,u,!1)},t.$createElement=function(a,s,o,u){return Fv(t,a,s,o,u,!0)};var i=r&&r.data;Zu(t,"$attrs",i&&i.attrs||ri,null,!0),Zu(t,"$listeners",e._parentListeners||ri,null,!0)}var hS=null;function M9(t){wN(t.prototype),t.prototype.$nextTick=function(e){return cE(e,this)},t.prototype._render=function(){var e=this,r=e.$options,n=r.render,i=r._parentVnode;i&&e._isMounted&&(e.$scopedSlots=yh(e.$parent,i.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&SN(e._slotsProxy,e.$scopedSlots)),e.$vnode=i;var a;try{Io(e),hS=e,a=n.call(e._renderProxy,e.$createElement)}catch(s){ec(s,e,"render"),a=e._vnode}finally{hS=null,Io()}return Ke(a)&&a.length===1&&(a=a[0]),a instanceof di||(a=ju()),a.parent=i,a}}function Z_(t,e){return(t.__esModule||Cp&&t[Symbol.toStringTag]==="Module")&&(t=t.default),Zr(t)?e.extend(t):t}function $9(t,e,r,n,i){var a=ju();return a.asyncFactory=t,a.asyncMeta={data:e,context:r,children:n,tag:i},a}function k9(t,e){if(Yt(t.error)&&Q(t.errorComp))return t.errorComp;if(Q(t.resolved))return t.resolved;var r=hS;if(r&&Q(t.owners)&&t.owners.indexOf(r)===-1&&t.owners.push(r),Yt(t.loading)&&Q(t.loadingComp))return t.loadingComp;if(r&&!Q(t.owners)){var n=t.owners=[r],i=!0,a=null,s=null;r.$on("hook:destroyed",function(){return Wo(n,r)});var o=function(d){for(var f=0,p=n.length;f1?uS(i):i;for(var a=uS(arguments,1),s='event handler for "'.concat(r,'"'),o=0,u=i.length;odocument.createEvent("Event").timeStamp&&(bS=function(){return ew.now()})}var X9=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function J9(){MN=bS(),hE=!0;var t,e;for(ys.sort(X9),Cl=0;ClCl&&ys[r].id>t.id;)r--;ys.splice(r+1,0,t)}vS||(vS=!0,cE(J9))}}function rY(t){var e=t.$options.provide;if(e){var r=Ht(e)?e.call(t):e;if(!Zr(r))return;for(var n=c9(t),i=Cp?Reflect.ownKeys(r):Object.keys(r),a=0;a-1){if(a&&!hn(i,"default"))s=!1;else if(s===""||s===xp(t)){var u=bA(String,i.type);(u<0||o-1)return this;var n=uS(arguments,1);return n.unshift(this),Ht(e.install)?e.install.apply(e,n):Ht(e)&&e.apply(null,n),r.push(e),this}}function DY(t){t.mixin=function(e){return this.options=tc(this.options,e),this}}function IY(t){t.cid=0;var e=1;t.extend=function(r){r=r||{};var n=this,i=n.cid,a=r._Ctor||(r._Ctor={});if(a[i])return a[i];var s=zv(r)||zv(n.options),o=function(c){this._init(c)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=tc(n.options,r),o.super=n,o.options.props&&RY(o),o.options.computed&&LY(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,Tb.forEach(function(u){o[u]=n[u]}),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=r,o.sealedOptions=kt({},o.options),a[i]=o,o}}function RY(t){var e=t.options.props;for(var r in e)vE(t.prototype,"_props",r)}function LY(t){var e=t.options.computed;for(var r in e)kN(t.prototype,r,e[r])}function NY(t){Tb.forEach(function(e){t[e]=function(r,n){return n?(e==="component"&&li(n)&&(n.name=n.name||r,n=this.options._base.extend(n)),e==="directive"&&Ht(n)&&(n={bind:n,update:n}),this.options[e+"s"][r]=n,n):this.options[e+"s"][r]}})}function wA(t){return t&&(zv(t.Ctor.options)||t.tag)}function xm(t,e){return Ke(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:HW(t)?t.test(e):!1}function SA(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var a in r){var s=r[a];if(s){var o=s.name;o&&!e(o)&&wS(r,a,n,i)}}}function wS(t,e,r,n){var i=t[e];i&&(!n||i.tag!==n.tag)&&i.componentInstance.$destroy(),t[e]=null,Wo(r,e)}var OA=[String,RegExp,Array],BY={name:"keep-alive",abstract:!0,props:{include:OA,exclude:OA,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,r=t.keys,n=t.vnodeToCache,i=t.keyToCache;if(n){var a=n.tag,s=n.componentInstance,o=n.componentOptions;e[i]={name:wA(o),tag:a,componentInstance:s},r.push(i),this.max&&r.length>parseInt(this.max)&&wS(e,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)wS(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){SA(t,function(r){return xm(e,r)})}),this.$watch("exclude",function(e){SA(t,function(r){return!xm(e,r)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=ON(t),r=e&&e.componentOptions;if(r){var n=wA(r),i=this,a=i.include,s=i.exclude;if(a&&(!n||!xm(a,n))||s&&n&&xm(s,n))return e;var o=this,u=o.cache,c=o.keys,l=e.key==null?r.Ctor.cid+(r.tag?"::".concat(r.tag):""):e.key;u[l]?(e.componentInstance=u[l].componentInstance,Wo(c,l),c.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},FY={KeepAlive:BY};function jY(t){var e={};e.get=function(){return Ci},Object.defineProperty(t,"config",e),t.util={warn:cY,extend:kt,mergeOptions:tc,defineReactive:Zu},t.set=aE,t.delete=pN,t.nextTick=cE,t.observable=function(r){return As(r),r},t.options=Object.create(null),Tb.forEach(function(r){t.options[r+"s"]=Object.create(null)}),t.options._base=t,kt(t.options.components,FY),kY(t),DY(t),IY(t),NY(t)}jY(Ne);Object.defineProperty(Ne.prototype,"$isServer",{get:Pp});Object.defineProperty(Ne.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(Ne,"FunctionalRenderContext",{value:pE});Ne.version=B9;var HY=Qi("style,class"),zY=Qi("input,textarea,option,select,progress"),VY=function(t,e,r){return r==="value"&&zY(t)&&e!=="button"||r==="selected"&&t==="option"||r==="checked"&&t==="input"||r==="muted"&&t==="video"},DN=Qi("contenteditable,draggable,spellcheck"),UY=Qi("events,caret,typing,plaintext-only"),GY=function(t,e){return Uv(e)||e==="false"?"false":t==="contenteditable"&&UY(e)?e:"true"},WY=Qi("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),SS="http://www.w3.org/1999/xlink",yE=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},IN=function(t){return yE(t)?t.slice(6,t.length):""},Uv=function(t){return t==null||t===!1};function YY(t){for(var e=t.data,r=t,n=t;Q(n.componentInstance);)n=n.componentInstance._vnode,n&&n.data&&(e=TA(n.data,e));for(;Q(r=r.parent);)r&&r.data&&(e=TA(e,r.data));return KY(e.staticClass,e.class)}function TA(t,e){return{staticClass:_E(t.staticClass,e.staticClass),class:Q(t.class)?[t.class,e.class]:e.class}}function KY(t,e){return Q(t)||Q(e)?_E(t,wE(e)):""}function _E(t,e){return t?e?t+" "+e:t:e||""}function wE(t){return Array.isArray(t)?qY(t):Zr(t)?XY(t):typeof t=="string"?t:""}function qY(t){for(var e="",r,n=0,i=t.length;n-1?Pm[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Pm[t]=/HTMLUnknownElement/.test(e.toString())}var OS=Qi("text,number,password,search,email,tel,url");function tK(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function rK(t,e){var r=document.createElement(t);return t!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&r.setAttribute("multiple","multiple"),r}function nK(t,e){return document.createElementNS(JY[t],e)}function iK(t){return document.createTextNode(t)}function aK(t){return document.createComment(t)}function sK(t,e,r){t.insertBefore(e,r)}function oK(t,e){t.removeChild(e)}function uK(t,e){t.appendChild(e)}function cK(t){return t.parentNode}function lK(t){return t.nextSibling}function dK(t){return t.tagName}function fK(t,e){t.textContent=e}function hK(t,e){t.setAttribute(e,"")}var pK=Object.freeze({__proto__:null,createElement:rK,createElementNS:nK,createTextNode:iK,createComment:aK,insertBefore:sK,removeChild:oK,appendChild:uK,parentNode:cK,nextSibling:lK,tagName:dK,setTextContent:fK,setStyleScope:hK}),mK={create:function(t,e){Al(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Al(t,!0),Al(e))},destroy:function(t){Al(t,!0)}};function Al(t,e){var r=t.data.ref;if(Q(r)){var n=t.context,i=t.componentInstance||t.elm,a=e?null:i,s=e?void 0:i;if(Ht(r)){No(r,n,[a],n,"template ref function");return}var o=t.data.refInFor,u=typeof r=="string"||typeof r=="number",c=Ra(r),l=n.$refs;if(u||c){if(o){var d=u?l[r]:r.value;e?Ke(d)&&Wo(d,i):Ke(d)?d.includes(i)||d.push(i):u?(l[r]=[i],EA(n,r,l[r])):r.value=[i]}else if(u){if(e&&l[r]!==i)return;l[r]=s,EA(n,r,a)}else if(c){if(e&&r.value!==i)return;r.value=a}}}}function EA(t,e,r){var n=t._setupState;n&&hn(n,e)&&(Ra(n[e])?n[e].value=r:n[e]=r)}var mo=new di("",{},[]),hf=["create","activate","update","remove","destroy"];function uu(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&Q(t.data)===Q(e.data)&&gK(t,e)||Yt(t.isAsyncPlaceholder)&&$e(e.asyncFactory.error))}function gK(t,e){if(t.tag!=="input")return!0;var r,n=Q(r=t.data)&&Q(r=r.attrs)&&r.type,i=Q(r=e.data)&&Q(r=r.attrs)&&r.type;return n===i||OS(n)&&OS(i)}function vK(t,e,r){var n,i,a={};for(n=e;n<=r;++n)i=t[n].key,Q(i)&&(a[i]=n);return a}function bK(t){var e,r,n={},i=t.modules,a=t.nodeOps;for(e=0;ej?(se=$e($[J+1])?null:$[J+1].elm,E(P,se,$,N,J,D)):N>J&&h(x,R,j)}function T(P,x,$,D){for(var M=$;M-1?AA(t,e,r):WY(e)?Uv(r)?t.removeAttribute(e):(r=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,r)):DN(e)?t.setAttribute(e,GY(e,r)):yE(e)?Uv(r)?t.removeAttributeNS(SS,IN(e)):t.setAttributeNS(SS,e,r):AA(t,e,r)}function AA(t,e,r){if(Uv(r))t.removeAttribute(e);else{if(Ad&&!Md&&t.tagName==="TEXTAREA"&&e==="placeholder"&&r!==""&&!t.__ieph){var n=function(i){i.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var TK={create:PA,update:PA};function MA(t,e){var r=e.elm,n=e.data,i=t.data;if(!($e(n.staticClass)&&$e(n.class)&&($e(i)||$e(i.staticClass)&&$e(i.class)))){var a=YY(e),s=r._transitionClasses;Q(s)&&(a=_E(a,wE(s))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var EK={create:MA,update:MA},rw="__r",nw="__c";function xK(t){if(Q(t[rw])){var e=Ad?"change":"input";t[e]=[].concat(t[rw],t[e]||[]),delete t[rw]}Q(t[nw])&&(t.change=[].concat(t[nw],t.change||[]),delete t[nw])}var Kh;function PK(t,e,r){var n=Kh;return function i(){var a=e.apply(null,arguments);a!==null&&LN(t,i,r,n)}}var CK=pS&&!(eA&&Number(eA[1])<=53);function AK(t,e,r,n){if(CK){var i=MN,a=e;e=a._wrapper=function(s){if(s.target===s.currentTarget||s.timeStamp>=i||s.timeStamp<=0||s.target.ownerDocument!==document)return a.apply(this,arguments)}}Kh.addEventListener(t,e,dN?{capture:r,passive:n}:r)}function LN(t,e,r,n){(n||Kh).removeEventListener(t,e._wrapper||e,r)}function iw(t,e){if(!($e(t.data.on)&&$e(e.data.on))){var r=e.data.on||{},n=t.data.on||{};Kh=e.elm||t.elm,xK(r),vN(r,n,AK,LN,PK,e.context),Kh=void 0}}var MK={create:iw,update:iw,destroy:function(t){return iw(t,mo)}},Cm;function $A(t,e){if(!($e(t.data.domProps)&&$e(e.data.domProps))){var r,n,i=e.elm,a=t.data.domProps||{},s=e.data.domProps||{};(Q(s.__ob__)||Yt(s._v_attr_proxy))&&(s=e.data.domProps=kt({},s));for(r in a)r in s||(i[r]="");for(r in s){if(n=s[r],r==="textContent"||r==="innerHTML"){if(e.children&&(e.children.length=0),n===a[r])continue;i.childNodes.length===1&&i.removeChild(i.childNodes[0])}if(r==="value"&&i.tagName!=="PROGRESS"){i._value=n;var o=$e(n)?"":String(n);$K(i,o)&&(i.value=o)}else if(r==="innerHTML"&&SE(i.tagName)&&$e(i.innerHTML)){Cm=Cm||document.createElement("div"),Cm.innerHTML="".concat(n,"");for(var u=Cm.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}else if(n!==a[r])try{i[r]=n}catch{}}}}function $K(t,e){return!t.composing&&(t.tagName==="OPTION"||kK(t,e)||DK(t,e))}function kK(t,e){var r=!0;try{r=document.activeElement!==t}catch{}return r&&t.value!==e}function DK(t,e){var r=t.value,n=t._vModifiers;if(Q(n)){if(n.number)return Vh(r)!==Vh(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}var IK={create:$A,update:$A},RK=_c(function(t){var e={},r=/;(?![^(]*\))/g,n=/:(.+)/;return t.split(r).forEach(function(i){if(i){var a=i.split(n);a.length>1&&(e[a[0].trim()]=a[1].trim())}}),e});function aw(t){var e=NN(t.style);return t.staticStyle?kt(t.staticStyle,e):e}function NN(t){return Array.isArray(t)?aN(t):typeof t=="string"?RK(t):t}function LK(t,e){var r={},n;if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i&&i.data&&(n=aw(i.data))&&kt(r,n);(n=aw(t.data))&&kt(r,n);for(var a=t;a=a.parent;)a.data&&(n=aw(a.data))&&kt(r,n);return r}var NK=/^--/,kA=/\s*!important$/,DA=function(t,e,r){if(NK.test(e))t.style.setProperty(e,r);else if(kA.test(r))t.style.setProperty(xp(e),r.replace(kA,""),"important");else{var n=BK(e);if(Array.isArray(r))for(var i=0,a=r.length;i-1?e.split(BN).forEach(function(n){return t.classList.add(n)}):t.classList.add(e);else{var r=" ".concat(t.getAttribute("class")||""," ");r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function jN(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(BN).forEach(function(i){return t.classList.remove(i)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" ".concat(t.getAttribute("class")||""," "),n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");r=r.trim(),r?t.setAttribute("class",r):t.removeAttribute("class")}}function HN(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&kt(e,LA(t.name||"v")),kt(e,t),e}else if(typeof t=="string")return LA(t)}}var LA=_c(function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}}),zN=fi&&!Md,yl="transition",sw="animation",Fg="transition",Gv="transitionend",TS="animation",VN="animationend";zN&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Fg="WebkitTransition",Gv="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(TS="WebkitAnimation",VN="webkitAnimationEnd"));var NA=fi?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function UN(t){NA(function(){NA(t)})}function zu(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),FN(t,e))}function _s(t,e){t._transitionClasses&&Wo(t._transitionClasses,e),jN(t,e)}function GN(t,e,r){var n=WN(t,e),i=n.type,a=n.timeout,s=n.propCount;if(!i)return r();var o=i===yl?Gv:VN,u=0,c=function(){t.removeEventListener(o,l),r()},l=function(d){d.target===t&&++u>=s&&c()};setTimeout(function(){u0&&(c=yl,l=a,d=i.length):e===sw?u>0&&(c=sw,l=u,d=o.length):(l=Math.max(a,u),c=l>0?a>u?yl:sw:null,d=c?c===yl?i.length:o.length:0);var f=c===yl&&jK.test(r[Fg+"Property"]);return{type:c,timeout:l,propCount:d,hasTransform:f}}function BA(t,e){for(;t.length1}function jA(t,e){e.data.show!==!0&&ES(e)}var HK=fi?{create:jA,activate:jA,remove:function(t,e){t.data.show!==!0?YN(t,e):e()}}:{},zK=[TK,EK,MK,IK,FK,HK],VK=zK.concat(OK),UK=bK({nodeOps:pK,modules:VK});Md&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&TE(t,"input")});var qN={inserted:function(t,e,r,n){r.tag==="select"?(n.elm&&!n.elm._vOptions?po(r,"postpatch",function(){qN.componentUpdated(t,e,r)}):HA(t,e,r.context),t._vOptions=[].map.call(t.options,Wv)):(r.tag==="textarea"||OS(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",GK),t.addEventListener("compositionend",UA),t.addEventListener("change",UA),Md&&(t.vmodel=!0)))},componentUpdated:function(t,e,r){if(r.tag==="select"){HA(t,e,r.context);var n=t._vOptions,i=t._vOptions=[].map.call(t.options,Wv);if(i.some(function(s,o){return!Qu(s,n[o])})){var a=t.multiple?e.value.some(function(s){return VA(s,i)}):e.value!==e.oldValue&&VA(e.value,i);a&&TE(t,"change")}}}};function HA(t,e,r){zA(t,e),(Ad||lN)&&setTimeout(function(){zA(t,e)},0)}function zA(t,e,r){var n=e.value,i=t.multiple;if(!(i&&!Array.isArray(n))){for(var a,s,o=0,u=t.options.length;o-1,s.selected!==a&&(s.selected=a);else if(Qu(Wv(s),n)){t.selectedIndex!==o&&(t.selectedIndex=o);return}i||(t.selectedIndex=-1)}}function VA(t,e){return e.every(function(r){return!Qu(r,t)})}function Wv(t){return"_value"in t?t._value:t.value}function GK(t){t.target.composing=!0}function UA(t){t.target.composing&&(t.target.composing=!1,TE(t.target,"input"))}function TE(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function xS(t){return t.componentInstance&&(!t.data||!t.data.transition)?xS(t.componentInstance._vnode):t}var WK={bind:function(t,e,r){var n=e.value;r=xS(r);var i=r.data&&r.data.transition,a=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;n&&i?(r.data.show=!0,ES(r,function(){t.style.display=a})):t.style.display=n?a:"none"},update:function(t,e,r){var n=e.value,i=e.oldValue;if(!n!=!i){r=xS(r);var a=r.data&&r.data.transition;a?(r.data.show=!0,n?ES(r,function(){t.style.display=t.__vOriginalDisplay}):YN(r,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none"}},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}},YK={model:qN,show:WK},XN={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function PS(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?PS(ON(e.children)):t}function JN(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var n in i)e[Ju(n)]=i[n];return e}function GA(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function KK(t){for(;t=t.parent;)if(t.data.transition)return!0}function qK(t,e){return e.key===t.key&&e.tag===t.tag}var XK=function(t){return t.tag||Gh(t)},JK=function(t){return t.name==="show"},QK={name:"transition",props:XN,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(XK),!!r.length)){var n=this.mode,i=r[0];if(KK(this.$vnode))return i;var a=PS(i);if(!a)return i;if(this._leaving)return GA(t,i);var s="__transition-".concat(this._uid,"-");a.key=a.key==null?a.isComment?s+"comment":s+a.tag:Ep(a.key)?String(a.key).indexOf(s)===0?a.key:s+a.key:a.key;var o=(a.data||(a.data={})).transition=JN(this),u=this._vnode,c=PS(u);if(a.data.directives&&a.data.directives.some(JK)&&(a.data.show=!0),c&&c.data&&!qK(a,c)&&!Gh(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var l=c.data.transition=kt({},o);if(n==="out-in")return this._leaving=!0,po(l,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),GA(t,i);if(n==="in-out"){if(Gh(a))return u;var d,f=function(){d()};po(o,"afterEnter",f),po(o,"enterCancelled",f),po(l,"delayLeave",function(p){d=p})}}return i}}},QN=kt({tag:String,moveClass:String},XN);delete QN.mode;var ZK={props:QN,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=PN(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],s=JN(this),o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function uq(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a=0)&&(r[i]=t[i]);return r}function Yv(t){"@babel/helpers - typeof";return Yv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yv(t)}var xs="_uid",yn=Ne.version.startsWith("3"),EE=yn?"ref_for":"refInFor",cq=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopedSlots","slot","key","ref","refInFor"],G=Ne.extend.bind(Ne);if(yn){var lq=Ne.extend,dq=["router-link","transition","transition-group"],fq=Ne.vModelDynamic.created,hq=Ne.vModelDynamic.beforeUpdate;Ne.vModelDynamic.created=function(t,e,r){fq.call(this,t,e,r),t._assign||(t._assign=function(){})},Ne.vModelDynamic.beforeUpdate=function(t,e,r){hq.call(this,t,e,r),t._assign||(t._assign=function(){})},G=(function(e){if(Yv(e)==="object"&&e.render&&!e.__alreadyPatched){var r=e.render;e.__alreadyPatched=!0,e.render=function(n){var i=function(f,p,m){var b=m===void 0?[]:[Array.isArray(m)?m.filter(Boolean):m],_=typeof f=="string"&&!dq.includes(f),S=p&&Yv(p)==="object"&&!Array.isArray(p);if(!S)return n.apply(void 0,[f,p].concat(b));var E=p.attrs,O=p.props,h=oq(p,["attrs","props"]),v=mf(mf({},h),{},{attrs:E,props:_?{}:O});return f==="router-link"&&!v.slots&&!v.scopedSlots&&(v.scopedSlots={$hasNormal:function(){}}),n.apply(void 0,[f,v].concat(b))};if(e.functional){var a,s,o=arguments[1],u=mf({},o);u.data={attrs:mf({},o.data.attrs||{}),props:mf({},o.data.props||{})},Object.keys(o.data||{}).forEach(function(d){cq.includes(d)?u.data[d]=o.data[d]:d in o.props?u.data.props[d]=o.data[d]:d.startsWith("on")||(u.data.attrs[d]=o.data[d])});var c=["_ctx"],l=((a=o.children)===null||a===void 0||(s=a.default)===null||s===void 0?void 0:s.call(a))||o.children;return l&&Object.keys(u.children).filter(function(d){return!c.includes(d)}).length===0?delete u.children:u.children=l,u.data.on=o.listeners,r.call(this,i,u)}return r.call(this,i)}}return lq.call(this,e)}).bind(Ne)}var xE=Ne.nextTick,Dd=typeof window<"u",eB=typeof document<"u",tB=typeof navigator<"u",rB=typeof Promise<"u",pq=typeof MutationObserver<"u"||typeof WebKitMutationObserver<"u"||typeof MozMutationObserver<"u",ht=Dd&&eB&&tB,Kt=Dd?window:{},Id=eB?document:{},nB=tB?navigator:{},mq=(nB.userAgent||"").toLowerCase(),gq=mq.indexOf("jsdom")>0,vq=function(){var t=!1;if(ht)try{var e={get passive(){t=!0}};Kt.addEventListener("test",e,e),Kt.removeEventListener("test",e,e)}catch{t=!1}return t}(),Kv=ht&&("ontouchstart"in Id.documentElement||nB.maxTouchPoints>0),gf=ht&&!!(Kt.PointerEvent||Kt.MSPointerEvent),YA=ht&&"IntersectionObserver"in Kt&&"IntersectionObserverEntry"in Kt&&"intersectionRatio"in Kt.IntersectionObserverEntry.prototype,bq="BvConfig",_l="$bvConfig",yq=["xs","sm","md","lg","xl"],_q=/\[(\d+)]/g,wq=/^(BV?)/,iB=/^\d+$/,Sq=/^\..+/,Oq=/^#/,Tq=/^#[A-Za-z]+[\w\-:.]*$/,Eq=/(<([^>]+)>)/gi,xq=/\B([A-Z])/g,Pq=/([a-z])([A-Z])/g,Cq=/^[0-9]*\.?[0-9]+$/,Aq=/\+/g,Mq=/[-/\\^$*+?.()|[\]{}]/g,aB=/[\s\uFEFF\xA0]+/g,jg=/\s+/,$q=/\/\*$/,kq=/(\s|^)(\w)/g,Dq=/^\s+/,Iq=/_/g,Rq=/-(\w)/g,Lq=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,Nq=/-|\s|T/,Bq=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,KA=/^.*(#[^#]+)$/,Fq=/%2C/g,jq=/[!'()*]/g,Hq=/^(\?|#|&)/,zq=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,Vq=/[/:]/,Uq=/^col-/,Gq=/^BIcon/,Wq=/-u-.+/;function CS(t){"@babel/helpers - typeof";return CS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CS(t)}function Eb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&qh(t,e)}function Pb(t){var e=sB();return function(){var n=Xh(t),i;if(e){var a=Xh(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Yq(this,i)}}function Yq(t,e){if(e&&(CS(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kq(t)}function Kq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qv(t){var e=typeof Map=="function"?new Map:void 0;return qv=function(n){if(n===null||!qq(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Hg(n,arguments,Xh(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),qh(i,n)},qv(t)}function Hg(t,e,r){return sB()?Hg=Reflect.construct:Hg=function(i,a,s){var o=[null];o.push.apply(o,a);var u=Function.bind.apply(i,o),c=new u;return s&&qh(c,s.prototype),c},Hg.apply(null,arguments)}function sB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qq(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function qh(t,e){return qh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},qh(t,e)}function Xh(t){return Xh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Xh(t)}var PE=Dd?Kt.Element:function(t){xb(r,t);var e=Pb(r);function r(){return Eb(this,r),e.apply(this,arguments)}return r}(qv(Object)),To=Dd?Kt.HTMLElement:function(t){xb(r,t);var e=Pb(r);function r(){return Eb(this,r),e.apply(this,arguments)}return r}(PE),oB=Dd?Kt.SVGElement:function(t){xb(r,t);var e=Pb(r);function r(){return Eb(this,r),e.apply(this,arguments)}return r}(PE),uB=Dd?Kt.File:function(t){xb(r,t);var e=Pb(r);function r(){return Eb(this,r),e.apply(this,arguments)}return r}(qv(Object));function Xv(t){"@babel/helpers - typeof";return Xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xv(t)}var Cb=function(e){return Xv(e)},Xq=function(e){return Object.prototype.toString.call(e).slice(8,-1)},Zt=function(e){return e===void 0},Ot=function(e){return e===null},at=function(e){return Zt(e)||Ot(e)},be=function(e){return Cb(e)==="function"},Ei=function(e){return Cb(e)==="boolean"},We=function(e){return Cb(e)==="string"},Ui=function(e){return Cb(e)==="number"},_h=function(e){return Cq.test(String(e))},nt=function(e){return Array.isArray(e)},Jt=function(e){return e!==null&&Xv(e)==="object"},en=function(e){return Object.prototype.toString.call(e)==="[object Object]"},td=function(e){return e instanceof Date},rc=function(e){return e instanceof Event},Jq=function(e){return e instanceof uB},qA=function(e){return Xq(e)==="RegExp"},Qq=function(e){return!at(e)&&be(e.then)&&be(e.catch)};function XA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function nc(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&arguments[1]!==void 0?arguments[1]:e;return nt(e)?e.reduce(function(n,i){return[].concat(tX(n),[t(i,i)])},[]):en(e)?Ce(e).reduce(function(n,i){return ZA(ZA({},n),{},cB({},i,t(e[i],e[i])))},{}):r},Oe=function(e){return e},lB=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(r=nt(r)?r.join("."):r,!r||!Jt(e))return n;if(r in e)return e[r];r=String(r).replace(_q,".$1");var i=r.split(".").filter(Oe);return i.length===0?n:i.every(function(a){return Jt(e)&&a in e&&!at(e=e[a])})?e:Ot(e)?null:n},Gr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=lB(e,r);return at(i)?n:i},eM=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=typeof process<"u"&&process?process.env||{}:{};return e?n[e]||r:n},sX=function(){return eM("BOOTSTRAP_VUE_NO_WARN")||eM("NODE_ENV")==="production"},xr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;sX()||console.warn("[BootstrapVue warn]: ".concat(r?"".concat(r," - "):"").concat(e))},Jv=function(e){return ht?!1:(xr("".concat(e,": Can not be called during SSR.")),!0)},tM=function(e){return rB?!1:(xr("".concat(e,": Requires Promise support.")),!0)},oX=function(e){return pq?!1:(xr("".concat(e,": Requires MutationObserver support.")),!0)};function uX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rM(t,e){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:{};if(en(n)){var i=JA(n);i.forEach(function(a){var s=n[a];a==="breakpoints"?!nt(s)||s.length<2||s.some(function(o){return!We(o)||o.length===0})?xr('"breakpoints" must be an array of at least 2 breakpoint names',bq):r.$_config[a]=xi(s):en(s)&&(r.$_config[a]=JA(s).reduce(function(o,u){return Zt(s[u])||(o[u]=xi(s[u])),o},r.$_config[a]||{}))})}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return xi(this.$_config)}},{key:"getConfigValue",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;return xi(lB(this.$_config,r,n))}}]),t}(),dX=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ne;r.prototype[_l]=Ne.prototype[_l]=r.prototype[_l]||Ne.prototype[_l]||new lX,r.prototype[_l].setConfig(e)};function nM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function iM(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{},r=e.components,n=e.directives,i=e.plugins,a=function s(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};s.installed||(s.installed=!0,hX(o),dX(u,o),gX(o,r),bX(o,n),pX(o,i))};return a.installed=!1,a},pe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return iM(iM({},r),{},{install:dB(e)})},pX=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in r)n&&r[n]&&e.use(r[n])},mX=function(e,r,n){e&&r&&n&&e.component(r,n)},gX=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in r)mX(e,n,r[n])},vX=function(e,r,n){e&&r&&n&&e.directive(r.replace(/^VB/,"B"),n)},bX=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in r)vX(e,n,r[n])},fB="BAlert",hB="BAspect",pB="BAvatar",mB="BAvatarGroup",gB="BBadge",vB="BBreadcrumb",bB="BBreadcrumbItem",yB="BBreadcrumbLink",_B="BButton",wB="BButtonClose",SB="BButtonGroup",OB="BButtonToolbar",TB="BCalendar",AE="BCard",EB="BCardBody",xB="BCardFooter",PB="BCardGroup",CB="BCardHeader",AB="BCardImg",MB="BCardImgLazy",$B="BCardSubTitle",kB="BCardText",DB="BCardTitle",IB="BCarousel",RB="BCarouselSlide",LB="BCol",Wr="BCollapse",NB="BContainer",ac="BDropdown",BB="BDropdownDivider",FB="BDropdownForm",jB="BDropdownGroup",HB="BDropdownHeader",zB="BDropdownItem",VB="BDropdownItemButton",UB="BDropdownText",GB="BEmbed",WB="BForm",YB="BFormCheckbox",KB="BFormCheckboxGroup",qB="BFormDatalist",XB="BFormDatepicker",ME="BFormFile",JB="BFormGroup",QB="BFormInput",ZB="BFormInvalidFeedback",eF="BFormRadio",tF="BFormRadioGroup",rF="BFormRating",nF="BFormRow",iF="BFormSelect",aF="BFormSelectOption",sF="BFormSelectOptionGroup",oF="BFormSpinbutton",uF="BFormTag",cF="BFormTags",lF="BFormText",dF="BFormTextarea",fF="BFormTimepicker",hF="BFormValidFeedback",pF="BIcon",yX="BIconBase",mF="BImg",gF="BImgLazy",vF="BInputGroup",bF="BInputGroupAddon",yF="BInputGroupAppend",_F="BInputGroupPrepend",wF="BInputGroupText",SF="BJumbotron",$E="BLink",OF="BListGroup",TF="BListGroupItem",EF="BMedia",xF="BMediaAside",PF="BMediaBody",Pn="BModal",_X="BMsgBox",CF="BNav",AF="BNavbar",MF="BNavbarBrand",$F="BNavbarNav",kF="BNavbarToggle",DF="BNavForm",IF="BNavItem",RF="BNavItemDropdown",wX="BNavText",LF="BOverlay",Mb="BPagination",MS="BPaginationNav",Cu="BPopover",NF="BProgress",BF="BProgressBar",FF="BRow",jF="BSidebar",HF="BSkeleton",zF="BSkeletonIcon",VF="BSkeletonImg",UF="BSkeletonTable",GF="BSkeletonWrapper",WF="BSpinner",YF="BTab",sc="BTable",KF="BTableCell",qF="BTableLite",XF="BTableSimple",JF="BTabs",QF="BTbody",ZF="BTfoot",e4="BTh",t4="BThead",r4="BTime",ws="BToast",Gl="BToaster",Au="BTooltip",n4="BTr",SX="BVCollapse",OX="BVFormBtnLabelControl",TX="BVFormRatingStar",EX="BVPopover",xX="BVPopoverTemplate",PX="BVPopper",CX="BVTabButton",AX="BVToastPop",MX="BVTooltip",$X="BVTooltipTemplate",kX="BVTransition",i4="BVTransporter",DX="BVTransporterTarget",IX="activate-tab",a4="blur",RX="cancel",Bn="change",LX="changed",Mi="click",$S="close",rd="context",s4="context-changed",kE="destroyed",kS="disable",zg="disabled",NX="dismissed",BX="dismiss-count-down",DS="enable",Vg="enabled",IS="filtered",o4="first",FX="focus",Qv="focusin",Zv="focusout",wh="head-clicked",Qt="hidden",In="hide",jX="img-error",u4="input",c4="last",l4="mouseenter",d4="mouseleave",f4="next",HX="ok",aM="open",h4="page-click",zX="paused",p4="prev",VX="refresh",Jf="refreshed",UX="remove",e0="row-clicked",GX="row-contextmenu",WX="row-dblclicked",YX="row-hovered",KX="row-middle-clicked",qX="row-selected",XX="row-unhovered",m4="selected",Fr="show",pn="shown",uw="sliding-end",JX="sliding-start",QX="sort-changed",ZX="tag-state",g4="toggle",eJ="unpaused",tJ="update",v4=yn?"vnodeBeforeUnmount":"hook:beforeDestroy",Jh=yn?"vNodeUnmounted":"hook:destroyed",Ko="update:",b4="bv",y4="::",$n={passive:!0},Ue={passive:!0,capture:!1},nd=void 0,mn=Array,B=Boolean,rJ=Date,vn=Function,Qr=Number,gr=Object,nJ=RegExp,I=String,_4=[mn,vn],iJ=[mn,gr],we=[mn,gr,I],tn=[mn,I],aJ=[B,Qr],Qh=[B,Qr,I],rn=[B,I],Vu=[rJ,I],sJ=[vn,I],le=[Qr,I],oJ=[Qr,gr,I],uJ=[gr,vn],w4=[gr,I],cJ="add-button-text",sM="append",lJ="aside",oM="badge",uM="bottom-row",Ms="button-content",cM="custom-foot",dJ="decrement",_r="default",fJ="description",hJ="dismiss",pJ="drop-placeholder",mJ="ellipsis-text",S4="empty",gJ="emptyfiltered",lM="file-name",DE="first",vJ="first-text",RS="footer",Bo="header",bJ="header-close",yJ="icon-clear",_J="icon-empty",wJ="icon-full",SJ="icon-half",OJ="img",TJ="increment",EJ="invalid-feedback",O4="label",xJ="last-text",dM="lead",PJ="loading",CJ="modal-backdrop",fM="modal-cancel",AJ="modal-footer",MJ="modal-header",$J="modal-header-close",hM="modal-ok",cw="modal-title",kJ="nav-next-decade",DJ="nav-next-month",IJ="nav-next-year",RJ="nav-prev-decade",LJ="nav-prev-month",NJ="nav-prev-year",BJ="nav-this-month",FJ="next-text",jJ="overlay",HJ="page",zJ="placeholder",pM="prepend",VJ="prev-text",vf="row-details",Qf="table-busy",mM="table-caption",gM="table-colgroup",UJ="tabs-end",GJ="tabs-start",WJ="text",YJ="thead-top",$p="title",KJ="toast-title",vM="top-row",qJ="valid-feedback",oc=function(){return Array.from.apply(Array,arguments)},Ee=function(e,r){return e.indexOf(r)!==-1},Ye=function(){for(var e=arguments.length,r=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=Ye(e).filter(Oe),e.some(function(i){return r[i]||n[i]})},jr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};e=Ye(e).filter(Oe);for(var a,s=0;s0&&arguments[0]!==void 0?arguments[0]:_r,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.$scopedSlots,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.$slots;return $s(e,r,n)},normalizeSlot:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.$scopedSlots,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:this.$slots,a=jr(e,r,n,i);return a&&Ye(a)}}}),oe=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=parseInt(e,10);return isNaN(n)?r:n},Be=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=parseFloat(e);return isNaN(n)?r:n},lw=function(e,r){return Be(e).toFixed(oe(r,0))},IE=function(e){return e.replace(xq,"-$1").toLowerCase()},T4=function(e){return e=IE(e).replace(Rq,function(r,n){return n?n.toUpperCase():""}),e.charAt(0).toUpperCase()+e.slice(1)},Ug=function(e){return e.replace(Iq," ").replace(Pq,function(r,n,i){return n+" "+i}).replace(kq,function(r,n,i){return n+i.toUpperCase()})},JJ=function(e){return e=We(e)?e.trim():String(e),e.charAt(0).toLowerCase()+e.slice(1)},E4=function(e){return e=We(e)?e.trim():String(e),e.charAt(0).toUpperCase()+e.slice(1)},RE=function(e){return e.replace(Mq,"\\$&")},_e=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return at(e)?"":nt(e)||en(e)&&e.toString===Object.prototype.toString?JSON.stringify(e,null,r):String(e)},QJ=function(e){return _e(e).replace(Dq,"")},Eo=function(e){return _e(e).trim()},t0=function(e){return _e(e).toLowerCase()},Gg=PE.prototype,ZJ=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(function(t){return"".concat(t,":not(:disabled):not([disabled])")}).join(", "),eQ=Gg.matches||Gg.msMatchesSelector||Gg.webkitMatchesSelector,tQ=Gg.closest||function(t){var e=this;do{if(Ps(e,t))return e;e=e.parentElement||e.parentNode}while(!Ot(e)&&e.nodeType===Node.ELEMENT_NODE);return null},st=(Kt.requestAnimationFrame||Kt.webkitRequestAnimationFrame||Kt.mozRequestAnimationFrame||Kt.msRequestAnimationFrame||Kt.oRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(Kt),rQ=Kt.MutationObserver||Kt.WebKitMutationObserver||Kt.MozMutationObserver||null,nQ=function(e){return e&&e.parentNode&&e.parentNode.removeChild(e)},_t=function(e){return!!(e&&e.nodeType===Node.ELEMENT_NODE)},Fo=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=Id.activeElement;return r&&!e.some(function(n){return n===r})?r:null},Ya=function(e,r){return _e(e).toLowerCase()===_e(r).toLowerCase()},LE=function(e){return _t(e)&&e===Fo()},Yi=function(e){if(!_t(e)||!e.parentNode||!fr(Id.body,e)||Ml(e,"display")==="none")return!1;var r=uc(e);return!!(r&&r.height>0&&r.width>0)},ku=function(e){return!_t(e)||e.disabled||Na(e,"disabled")||Zh(e,"disabled")},NE=function(e){return _t(e)&&e.offsetHeight},ci=function(e,r){return oc((_t(r)?r:Id).querySelectorAll(e))},si=function(e,r){return(_t(r)?r:Id).querySelector(e)||null},Ps=function(e,r){return _t(e)?eQ.call(e,r):!1},Rn=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!_t(r))return null;var i=tQ.call(r,e);return n?i:i===r?null:i},fr=function(e,r){return e&&be(e.contains)?e.contains(r):!1},LS=function(e){return Id.getElementById(/^#/.test(e)?e.slice(1):e)||null},dn=function(e,r){r&&_t(e)&&e.classList&&e.classList.add(r)},qr=function(e,r){r&&_t(e)&&e.classList&&e.classList.remove(r)},Zh=function(e,r){return r&&_t(e)&&e.classList?e.classList.contains(r):!1},$t=function(e,r,n){r&&_t(e)&&e.setAttribute(r,n)},La=function(e,r){r&&_t(e)&&e.removeAttribute(r)},oi=function(e,r){return r&&_t(e)?e.getAttribute(r):null},Na=function(e,r){return r&&_t(e)?e.hasAttribute(r):null},Ur=function(e,r,n){r&&_t(e)&&(e.style[r]=n)},$b=function(e,r){r&&_t(e)&&(e.style[r]="")},Ml=function(e,r){return r&&_t(e)&&e.style[r]||null},uc=function(e){return _t(e)?e.getBoundingClientRect():null},ni=function(e){var r=Kt.getComputedStyle;return r&&_t(e)?r(e):{}},iQ=function(){var e=Kt.getSelection;return e?Kt.getSelection():null},NS=function(e){var r={top:0,left:0};if(!_t(e)||e.getClientRects().length===0)return r;var n=uc(e);if(n){var i=e.ownerDocument.defaultView;r.top=n.top+i.pageYOffset,r.left=n.left+i.pageXOffset}return r},aQ=function(e){var r={top:0,left:0};if(!_t(e))return r;var n={top:0,left:0},i=ni(e);if(i.position==="fixed")r=uc(e)||r;else{r=NS(e);for(var a=e.ownerDocument,s=e.offsetParent||a.documentElement;s&&(s===a.body||s===a.documentElement)&&ni(s).position==="static";)s=s.parentNode;if(s&&s!==e&&s.nodeType===Node.ELEMENT_NODE){n=NS(s);var o=ni(s);n.top+=Be(o.borderTopWidth,0),n.left+=Be(o.borderLeftWidth,0)}}return{top:r.top-n.top-Be(i.marginTop,0),left:r.left-n.left-Be(i.marginLeft,0)}},BS=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return ci(ZJ,e).filter(Yi).filter(function(r){return r.tabIndex>-1&&!r.disabled})},Ie=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};try{e.focus(r)}catch{}return LE(e)},Hn=function(e){try{e.blur()}catch{}return!LE(e)},kp=function(e){var r=go(null);return function(){for(var n=arguments.length,i=new Array(n),a=0;a1&&arguments[1]!==void 0?arguments[1]:void 0,n=sQ[_l];return n?n.getConfigValue(e,r):xi(r)},ii=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;return r?FS("".concat(e,".").concat(r),n):FS(e,{})},x4=function(){return FS("breakpoints",yq)},oQ=kp(function(){return x4()}),uQ=function(){return xi(oQ())},ep=kp(function(){var t=uQ();return t[0]="",t});function bM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Uu(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:nd,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:void 0,a=n===!0;return i=a?i:n,Uu(Uu(Uu({},e?{type:e}:{}),a?{required:a}:Zt(r)?{}:{default:Jt(r)?function(){return r}:r}),Zt(i)?{}:{validator:i})},Db=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe;if(nt(e))return e.map(r);var n={};for(var i in e)ic(e,i)&&(n[r(i)]=Jt(e[i])?Yo(e[i]):e[i]);return n},xt=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oe;return(nt(e)?e.slice():Ce(e)).reduce(function(i,a){return i[n(a)]=r[a],i},{})},A4=function(e,r,n){return Uu(Uu({},xi(e)),{},{default:function(){var a=ii(n,r,e.default);return be(a)?a():a}})},ee=function(e,r){return Ce(e).reduce(function(n,i){return Uu(Uu({},n),{},P4({},i,A4(e[i],i,r)))},{})},cQ=A4({},"","").default.name,Va=function(e){return be(e)&&e.name&&e.name!==cQ};function lQ(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.type,i=n===void 0?nd:n,a=r.defaultValue,s=a===void 0?void 0:a,o=r.validator,u=o===void 0?void 0:o,c=r.event,l=c===void 0?u4:c,d=lQ({},e,y(i,s,u)),f=G({model:{prop:e,event:l},props:d});return{mixin:f,props:d,prop:e,event:l}},M4=function(e){return vq?Jt(e)?e:{capture:!!e||!1}:!!(Jt(e)?e.capture:e)},Tt=function(e,r,n,i){e&&e.addEventListener&&e.addEventListener(r,n,M4(i))},Dt=function(e,r,n,i){e&&e.removeEventListener&&e.removeEventListener(r,n,M4(i))},Ki=function(e){for(var r=e?Tt:Dt,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a1&&arguments[1]!==void 0?arguments[1]:{},n=r.preventDefault,i=n===void 0?!0:n,a=r.propagation,s=a===void 0?!0:a,o=r.immediatePropagation,u=o===void 0?!1:o;i&&e.preventDefault(),s&&e.stopPropagation(),u&&e.stopImmediatePropagation()},$4=function(e){return IE(e.replace(wq,""))},zt=function(e,r){return[b4,$4(e),r].join(y4)},hr=function(e,r){return[b4,r,$4(e)].join(y4)};function dQ(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var fQ=ee({ariaLabel:y(I,"Close"),content:y(I,"×"),disabled:y(B,!1),textVariant:y(I)},wB),cc=G({name:wB,functional:!0,props:fQ,render:function(e,r){var n=r.props,i=r.data,a=r.slots,s=r.scopedSlots,o=a(),u=s||{},c={staticClass:"close",class:dQ({},"text-".concat(n.textVariant),n.textVariant),attrs:{type:"button",disabled:n.disabled,"aria-label":n.ariaLabel?String(n.ariaLabel):null},on:{click:function(d){n.disabled&&rc(d)&&ke(d)}}};return $s(_r,u,o)||(c.domProps={innerHTML:n.content}),e("button",ve(i,c),jr(_r,{},u,o))}});function yM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mu(t){for(var e=1;e0?e:0)},dw=function(e){return e===""||e===!0?!0:oe(e,0)<1?!1:!!e},bQ=ee(fe(wM(wM({},vQ),{},{dismissLabel:y(I,"Close"),dismissible:y(B,!1),fade:y(B,!1),variant:y(I,"info")})),fB),yQ=G({name:fB,mixins:[gQ,Pe],props:bQ,data:function(){return{countDown:0,localShow:dw(this[_f])}},watch:(yf={},Zf(yf,_f,function(t){this.countDown=OM(t),this.localShow=dw(t)}),Zf(yf,"countDown",function(e){var r=this;this.clearCountDownInterval();var n=this[_f];_h(n)&&(this.$emit(BX,e),n!==e&&this.$emit(SM,e),e>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout(function(){r.countDown--},1e3)):this.$nextTick(function(){st(function(){r.localShow=!1})}))}),Zf(yf,"localShow",function(e){var r=this[_f];!e&&(this.dismissible||_h(r))&&this.$emit(NX),!_h(r)&&r!==e&&this.$emit(SM,e)}),yf),created:function(){this.$_filterTimer=null;var e=this[_f];this.countDown=OM(e),this.localShow=dw(e)},beforeDestroy:function(){this.clearCountDownInterval()},methods:{dismiss:function(){this.clearCountDownInterval(),this.countDown=0,this.localShow=!1},clearCountDownInterval:function(){clearTimeout(this.$_countDownTimeout),this.$_countDownTimeout=null}},render:function(e){var r=e();if(this.localShow){var n=this.dismissible,i=this.variant,a=e();n&&(a=e(cc,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(hJ)])),r=e("div",{staticClass:"alert",class:Zf({"alert-dismissible":n},"alert-".concat(i),i),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[xs]},[a,this.normalizeSlot()])}return e(wc,{props:{noFade:!this.fade}},[r])}}),_Q=pe({components:{BAlert:yQ}}),Ss=Math.min,Qe=Math.max,D4=Math.abs,I4=Math.ceil,tp=Math.floor,R4=Math.pow,jS=Math.round;function wQ(t,e){return EQ(t)||TQ(t,e)||OQ(t,e)||SQ()}function SQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OQ(t,e){if(t){if(typeof t=="string")return TM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TM(t,e)}}function TM(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},r=e.target,n=e.rel;return r==="_blank"&&Ot(n)?"noopener":n||null},F4=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.href,n=e.to,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N4,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"/";if(r)return r;if(B4(i))return null;if(We(n))return n||s;if(en(n)&&(n.path||n.query||n.hash)){var o=_e(n.path),u=AQ(n.query),c=_e(n.hash);return c=!c||c.charAt(0)==="#"?c:"#".concat(c),"".concat(o).concat(u).concat(c)||s}return a};function PM(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kQ={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},DQ={width:null,height:null,focusable:null,role:null,"aria-label":null},BE={animation:y(I),content:y(I),flipH:y(B,!1),flipV:y(B,!1),fontScale:y(le,1),rotate:y(le,0),scale:y(le,1),shiftH:y(le,0),shiftV:y(le,0),stacked:y(B,!1),title:y(I),variant:y(I)},IQ=G({name:yX,functional:!0,props:BE,render:function(e,r){var n,i=r.data,a=r.props,s=r.children,o=a.animation,u=a.content,c=a.flipH,l=a.flipV,d=a.stacked,f=a.title,p=a.variant,m=Qe(Be(a.fontScale,1),0)||1,b=Qe(Be(a.scale,1),0)||1,_=Be(a.rotate,0),S=Be(a.shiftH,0),E=Be(a.shiftV,0),O=c||l||b!==1,h=O||_,v=S||E,g=!at(u),T=[h?"translate(8 8)":null,O?"scale(".concat((c?-1:1)*b," ").concat((l?-1:1)*b,")"):null,_?"rotate(".concat(_,")"):null,h?"translate(-8 -8)":null].filter(Oe),C=e("g",{attrs:{transform:T.join(" ")||null},domProps:g?{innerHTML:u||""}:{}},s);v&&(C=e("g",{attrs:{transform:"translate(".concat(16*S/16," ").concat(-16*E/16,")")}},[C])),d&&(C=e("g",[C]));var k=f?e("title",f):null,w=[k,C].filter(Oe);return e("svg",ve({staticClass:"b-icon bi",class:(n={},PM(n,"text-".concat(p),p),PM(n,"b-icon-animation-".concat(o),o),n),attrs:kQ,style:d?{}:{fontSize:m===1?null:"".concat(m*100,"%")}},i,d?{attrs:DQ}:{},{attrs:{xmlns:d?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),w)}});function CM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function AM(t){for(var e=1;e'),BQ=br("CalendarFill",''),fBe=br("Check",''),$M=br("ChevronBarLeft",''),kM=br("ChevronDoubleLeft",''),FQ=br("ChevronDown",''),DM=br("ChevronLeft",''),IM=br("ChevronUp",''),HS=br("CircleFill",''),jQ=br("Clock",''),HQ=br("ClockFill",''),zQ=br("Dash",''),VQ=br("PersonFill",''),UQ=br("Plus",''),hBe=br("Slash",''),pBe=br("SlashCircle",''),GQ=br("Star",''),WQ=br("StarFill",''),YQ=br("StarHalf",''),j4=br("X",'');function RM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function LM(t){for(var e=1;e1?n-1:0),a=1;at.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:"";return String(e).replace(Eq,"")},Lt=function(e,r){return e?{innerHTML:e}:r?{textContent:r}:{}};function XM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function JM(t){for(var e=1;e-1&&(r=r.slice(0,n).reverse(),Ie(r[0]))},focusNext:function(e){var r=this.getItems(),n=r.indexOf(e.target);n>-1&&(r=r.slice(n+1),Ie(r[0]))},focusLast:function(){var e=this.getItems().reverse();Ie(e[0])},onFocusin:function(e){var r=this.$el;e.target===r&&!fr(r,e.relatedTarget)&&(ke(e),this.focusFirst(e))},onKeydown:function(e){var r=e.keyCode,n=e.shiftKey;r===Ln||r===qi?(ke(e),n?this.focusFirst(e):this.focusPrev(e)):(r===gn||r===ks)&&(ke(e),n?this.focusLast(e):this.focusNext(e))}},render:function(e){var r=this.keyNav;return e("div",{staticClass:"btn-toolbar",class:{"justify-content-between":this.justify},attrs:{role:"toolbar",tabindex:r?"0":null},on:r?{focusin:this.onFocusin,keydown:this.onKeydown}:{}},[this.normalizeSlot()])}}),LZ=pe({components:{BButtonToolbar:n$,BBtnToolbar:n$}}),ro="gregory",Oh="long",NZ="narrow",US="short",i$="2-digit",o0="numeric";function BZ(t,e){return zZ(t)||HZ(t,e)||jZ(t,e)||FZ()}function FZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jZ(t,e){if(t){if(typeof t=="string")return a$(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a$(t,e)}}function a$(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function GS(t,e){return GS=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},GS(t,e)}var Ir=function(){for(var e=arguments.length,r=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:ro;e=Ye(e).filter(Oe);var n=new Intl.DateTimeFormat(e,{calendar:r});return n.resolvedOptions().locale},eh=function(e,r){var n=new Intl.DateTimeFormat(e,r);return n.format},Mm=function(e,r){return St(e)===St(r)},pw=function(e){return e=Ir(e),e.setDate(1),e},mw=function(e){return e=Ir(e),e.setMonth(e.getMonth()+1),e.setDate(0),e},Nb=function(e,r){e=Ir(e);var n=e.getMonth();return e.setFullYear(e.getFullYear()+r),e.getMonth()!==n&&e.setDate(0),e},gw=function(e){e=Ir(e);var r=e.getMonth();return e.setMonth(r-1),e.getMonth()===r&&e.setDate(0),e},vw=function(e){e=Ir(e);var r=e.getMonth();return e.setMonth(r+1),e.getMonth()===(r+2)%12&&e.setDate(0),e},bw=function(e){return Nb(e,-1)},yw=function(e){return Nb(e,1)},_w=function(e){return Nb(e,-10)},ww=function(e){return Nb(e,10)},u0=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return e=lr(e),r=lr(r)||e,n=lr(n)||e,e?en?n:e:null},s$=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map(function(t){return t.toLowerCase()}),Bb=function(e){var r=_e(e).toLowerCase().replace(Wq,"").split("-"),n=r.slice(0,2).join("-"),i=r[0];return Ee(s$,n)||Ee(s$,i)},lt={id:y(I)},pt=G({props:lt,data:function(){return{localId_:null}},computed:{safeId:function(){var e=this.id||this.localId_,r=function(i){return e?(i=String(i||"").replace(/\s+/g,"_"),i?e+"_"+i:e):null};return r}},mounted:function(){var e=this;this.$nextTick(function(){e.localId_="__BVID__".concat(e[xs])})}}),qc;function o$(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ta(t){for(var e=1;er}},dateDisabled:function(){var e=this,r=this.dateOutOfRange;return function(n){n=lr(n);var i=St(n);return!!(r(n)||e.computedDateDisabledFn(i,n))}},formatDateString:function(){return eh(this.calendarLocale,Ta(Ta({year:o0,month:i$,day:i$},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:ro}))},formatYearMonth:function(){return eh(this.calendarLocale,{year:o0,month:Oh,calendar:ro})},formatWeekdayName:function(){return eh(this.calendarLocale,{weekday:Oh,calendar:ro})},formatWeekdayNameShort:function(){return eh(this.calendarLocale,{weekday:this.weekdayHeaderFormat||US,calendar:ro})},formatDay:function(){var e=new Intl.NumberFormat([this.computedLocale],{style:"decimal",minimumIntegerDigits:1,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return function(r){return e.format(r.getDate())}},prevDecadeDisabled:function(){var e=this.computedMin;return this.disabled||e&&mw(_w(this.activeDate))e},nextYearDisabled:function(){var e=this.computedMax;return this.disabled||e&&pw(yw(this.activeDate))>e},nextDecadeDisabled:function(){var e=this.computedMax;return this.disabled||e&&pw(ww(this.activeDate))>e},calendar:function(){for(var e=[],r=this.calendarFirstDay,n=r.getFullYear(),i=r.getMonth(),a=this.calendarDaysInMonth,s=r.getDay(),o=(this.computedWeekStarts>s?7:0)-this.computedWeekStarts,u=0-o-s,c=0;c<6&&u0);i!==this.visible&&(this.visible=i,this.callback(i),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}},{key:"stop",value:function(){this.observer&&this.observer.disconnect(),this.observer=null}}]),t}(),fj=function(e){var r=e[id];r&&r.stop&&r.stop(),delete e[id]},hj=function(e,r){var n=r.value,i=r.modifiers,a={margin:"0px",once:!1,callback:n};Ce(i).forEach(function(s){iB.test(s)?a.margin="".concat(s,"px"):s.toLowerCase()==="once"&&(a.once=!0)}),fj(e),e[id]=new ree(e,a),e[id]._prevModifiers=Yo(i)},nee=function(e,r,n){var i=r.value,a=r.oldValue,s=r.modifiers;s=Yo(s),e&&(i!==a||!e[id]||!Ze(s,e[id]._prevModifiers))&&hj(e,{value:i,modifiers:s})},iee=function(e){fj(e)},KE={bind:hj,componentUpdated:nee,unbind:iee},km;function v$(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function c0(t){for(var e=1;e0||u.removedNodes.length>0))&&(s=!0)}s&&r()});return i.observe(e,pee({childList:!0,subtree:!0},n)),i},Jc;function w$(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Tw(t){for(var e=1;e0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(Jc={},rh(Jc,Ew,function(t,e){t!==e&&this.setSlide(oe(t,0))}),rh(Jc,"interval",function(e,r){e!==r&&(e?(this.pause(!0),this.start(!1)):this.pause(!1))}),rh(Jc,"isPaused",function(e,r){e!==r&&this.$emit(e?zX:eJ)}),rh(Jc,"index",function(e,r){e===r||this.isSliding||this.doSlide(e,r)}),Jc),created:function(){this.$_interval=null,this.$_animationTimeout=null,this.$_touchTimeout=null,this.$_observer=null,this.isPaused=!(oe(this.interval,0)>0)},mounted:function(){this.transitionEndEvent=wee(this.$el)||null,this.updateSlides(),this.setObserver(!0)},beforeDestroy:function(){this.clearInterval(),this.clearAnimationTimeout(),this.clearTouchTimeout(),this.setObserver(!1)},methods:{clearInterval:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){clearInterval(this.$_interval),this.$_interval=null}),clearAnimationTimeout:function(){clearTimeout(this.$_animationTimeout),this.$_animationTimeout=null},clearTouchTimeout:function(){clearTimeout(this.$_touchTimeout),this.$_touchTimeout=null},setObserver:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=np(this.$refs.inner,this.updateSlides.bind(this),{subtree:!1,childList:!0,attributes:!0,attributeFilter:["id"]}))},setSlide:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(ht&&document.visibilityState&&document.hidden)){var i=this.noWrap,a=this.numSlides;if(e=tp(e),a!==0){if(this.isSliding){this.$once(uw,function(){st(function(){return r.setSlide(e,n)})});return}this.direction=n,this.index=e>=a?i?a-1:0:e<0?i?0:a-1:e,i&&this.index!==e&&this.index!==this[Ew]&&this.$emit(S$,this.index)}}},prev:function(){this.setSlide(this.index-1,"prev")},next:function(){this.setSlide(this.index+1,"next")},pause:function(e){e||(this.isPaused=!0),this.clearInterval()},start:function(e){e||(this.isPaused=!1),this.clearInterval(),this.interval&&this.numSlides>1&&(this.$_interval=setInterval(this.next,Qe(1e3,this.interval)))},restart:function(){this.$el.contains(Fo())||this.start()},doSlide:function(e,r){var n=this,i=!!this.interval,a=this.calcDirection(this.direction,r,e),s=a.overlayClass,o=a.dirClass,u=this.slides[r],c=this.slides[e];if(!(!u||!c)){if(this.isSliding=!0,i&&this.pause(!1),this.$emit(JX,e),this.$emit(S$,this.index),this.noAnimation)dn(c,"active"),qr(u,"active"),this.isSliding=!1,this.$nextTick(function(){return n.$emit(uw,e)});else{dn(c,s),NE(c),dn(u,o),dn(c,o);var l=!1,d=function p(){if(!l){if(l=!0,n.transitionEndEvent){var m=n.transitionEndEvent.split(/\s+/);m.forEach(function(b){return Dt(c,b,p,Ue)})}n.clearAnimationTimeout(),qr(c,o),qr(c,s),dn(c,"active"),qr(u,"active"),qr(u,o),qr(u,s),$t(u,"aria-current","false"),$t(c,"aria-current","true"),$t(u,"aria-hidden","true"),$t(c,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick(function(){return n.$emit(uw,e)})}};if(this.transitionEndEvent){var f=this.transitionEndEvent.split(/\s+/);f.forEach(function(p){return Tt(c,p,d,Ue)})}this.$_animationTimeout=setTimeout(d,bee)}i&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=ci(".carousel-item",this.$refs.inner);var e=this.slides.length,r=Qe(0,Ss(tp(this.index),e-1));this.slides.forEach(function(n,i){var a=i+1;i===r?(dn(n,"active"),$t(n,"aria-current","true")):(qr(n,"active"),$t(n,"aria-current","false")),$t(n,"aria-posinset",String(a)),$t(n,"aria-setsize",String(e))}),this.setSlide(r),this.start(this.isPaused)},calcDirection:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return e?xw[e]:n>r?xw.next:xw.prev},handleClick:function(e,r){var n=e.keyCode;(e.type==="click"||n===Ka||n===Ns)&&(ke(e),r())},handleSwipe:function(){var e=D4(this.touchDeltaX);if(!(e<=_ee)){var r=e/this.touchDeltaX;this.touchDeltaX=0,r>0?this.prev():r<0&&this.next()}},touchStart:function(e){gf&&O$[e.pointerType.toUpperCase()]?this.touchStartX=e.clientX:gf||(this.touchStartX=e.touches[0].clientX)},touchMove:function(e){e.touches&&e.touches.length>1?this.touchDeltaX=0:this.touchDeltaX=e.touches[0].clientX-this.touchStartX},touchEnd:function(e){gf&&O$[e.pointerType.toUpperCase()]&&(this.touchDeltaX=e.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,yee+Qe(1e3,this.interval))}},render:function(e){var r=this,n=this.indicators,i=this.background,a=this.noAnimation,s=this.noHoverPause,o=this.noTouch,u=this.index,c=this.isSliding,l=this.pause,d=this.restart,f=this.touchStart,p=this.touchEnd,m=this.safeId("__BV_inner_"),b=e("div",{staticClass:"carousel-inner",attrs:{id:m,role:"list"},ref:"inner"},[this.normalizeSlot()]),_=e();if(this.controls){var S=function(v,g,T){var C=function(w){c?ke(w,{propagation:!1}):r.handleClick(w,T)};return e("a",{staticClass:"carousel-control-".concat(v),attrs:{href:"#",role:"button","aria-controls":m,"aria-disabled":c?"true":null},on:{click:C,keydown:C}},[e("span",{staticClass:"carousel-control-".concat(v,"-icon"),attrs:{"aria-hidden":"true"}}),e("span",{class:"sr-only"},[g])])};_=[S("prev",this.labelPrev,this.prev),S("next",this.labelNext,this.next)]}var E=e("ol",{staticClass:"carousel-indicators",directives:[{name:"show",value:n}],attrs:{id:this.safeId("__BV_indicators_"),"aria-hidden":n?"false":"true","aria-label":this.labelIndicators,"aria-owns":m}},this.slides.map(function(h,v){var g=function(C){r.handleClick(C,function(){r.setSlide(v)})};return e("li",{class:{active:v===u},attrs:{role:"button",id:r.safeId("__BV_indicator_".concat(v+1,"_")),tabindex:n?"0":"-1","aria-current":v===u?"true":"false","aria-label":"".concat(r.labelGotoSlide," ").concat(v+1),"aria-describedby":h.id||null,"aria-controls":m},on:{click:g,keydown:g},key:"slide_".concat(v)})})),O={mouseenter:s?rp:l,mouseleave:s?rp:d,focusin:l,focusout:d,keydown:function(v){if(!/input|textarea/i.test(v.target.tagName)){var g=v.keyCode;(g===qi||g===ks)&&(ke(v),r[g===qi?"prev":"next"]())}}};return Kv&&!o&&(gf?(O["&pointerdown"]=f,O["&pointerup"]=p):(O["&touchstart"]=f,O["&touchmove"]=this.touchMove,O["&touchend"]=p)),e("div",{staticClass:"carousel",class:{slide:!a,"carousel-fade":!a&&this.fade,"pointer-event":Kv&&gf&&!o},style:{background:i},attrs:{role:"region",id:this.safeId(),"aria-busy":c?"true":"false"},on:O},[b,_,E])}});function E$(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Eh(t){for(var e=1;e0?($t(e,qS,i.join(" ")),Ur(e,QS,"none")):(La(e,qS),$b(e,QS)),st(function(){Jee(e,Ba(n,r))}),Ze(i,e[ad])||(e[ad]=i,i.forEach(function(a){Ua(Ba(n,r)).$emit(Kee,a)}))}},Tj={bind:function(e,r,n){e[d0]=!1,e[ad]=[],Qee(e,Ba(n,r)),Aw(e,r,n)},componentUpdated:Aw,updated:Aw,unbind:function(e,r,n){wj(e),Sj(e,Ba(n,r)),Rm(e,xh),Rm(e,l0),Rm(e,d0),Rm(e,ad),qr(e,YS),qr(e,KS),La(e,XS),La(e,qS),La(e,JS),$b(e,QS)}},qE=pe({directives:{VBToggle:Tj}}),Ej=pe({components:{BCollapse:Uee},plugins:{VBTogglePlugin:qE}});/**! * @fileOverview Kickass library to create and place poppers near their reference elements. * @version 1.16.1 * @license * Copyright (c) 2016 Federico Zivolo and contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */var Lp=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",Zee=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function ete(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function tte(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Zee))}}var rte=Lp&&window.Promise,nte=rte?ete:tte;function xj(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function Sc(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function XE(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Np(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=Sc(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?t:Np(XE(t))}function Pj(t){return t&&t.referenceNode?t.referenceNode:t}var A$=Lp&&!!(window.MSInputMethodContext&&document.documentMode),M$=Lp&&/MSIE 10/.test(navigator.userAgent);function Rd(t){return t===11?A$:t===10?M$:A$||M$}function sd(t){if(!t)return document.documentElement;for(var e=Rd(10)?document.body:null,r=t.offsetParent||null;r===e&&t.nextElementSibling;)r=(t=t.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?t?t.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Sc(r,"position")==="static"?sd(r):r}function ite(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||sd(t.firstElementChild)===t}function ZS(t){return t.parentNode!==null?ZS(t.parentNode):t}function f0(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var r=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?t:e,i=r?e:t,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var s=a.commonAncestorContainer;if(t!==s&&e!==s||n.contains(i))return ite(s)?s:sd(s);var o=ZS(t);return o.host?f0(o.host,e):f0(t,ZS(e).host)}function od(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=e==="top"?"scrollTop":"scrollLeft",n=t.nodeName;if(n==="BODY"||n==="HTML"){var i=t.ownerDocument.documentElement,a=t.ownerDocument.scrollingElement||i;return a[r]}return t[r]}function ate(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=od(e,"top"),i=od(e,"left"),a=r?-1:1;return t.top+=n*a,t.bottom+=n*a,t.left+=i*a,t.right+=i*a,t}function $$(t,e){var r=e==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(t["border"+r+"Width"])+parseFloat(t["border"+n+"Width"])}function k$(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Rd(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function Cj(t){var e=t.body,r=t.documentElement,n=Rd(10)&&getComputedStyle(r);return{height:k$("Height",e,r,n),width:k$("Width",e,r,n)}}var ste=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},ote=function(){function t(e,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=Rd(10),i=e.nodeName==="HTML",a=eO(t),s=eO(e),o=Np(t),u=Sc(e),c=parseFloat(u.borderTopWidth),l=parseFloat(u.borderLeftWidth);r&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=zo({top:a.top-s.top-c,left:a.left-s.left-l,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!n&&i){var f=parseFloat(u.marginTop),p=parseFloat(u.marginLeft);d.top-=c-f,d.bottom-=c-f,d.left-=l-p,d.right-=l-p,d.marginTop=f,d.marginLeft=p}return(n&&!r?e.contains(o):e===o&&o.nodeName!=="BODY")&&(d=ate(d,e)),d}function ute(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=JE(t,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),s=e?0:od(r),o=e?0:od(r,"left"),u={top:s-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:i,height:a};return zo(u)}function Aj(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(Sc(t,"position")==="fixed")return!0;var r=XE(t);return r?Aj(r):!1}function Mj(t){if(!t||!t.parentElement||Rd())return document.documentElement;for(var e=t.parentElement;e&&Sc(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function QE(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?Mj(t):f0(t,Pj(e));if(n==="viewport")a=ute(s,i);else{var o=void 0;n==="scrollParent"?(o=Np(XE(e)),o.nodeName==="BODY"&&(o=t.ownerDocument.documentElement)):n==="window"?o=t.ownerDocument.documentElement:o=n;var u=JE(o,s,i);if(o.nodeName==="HTML"&&!Aj(s)){var c=Cj(t.ownerDocument),l=c.height,d=c.width;a.top+=u.top-u.marginTop,a.bottom=l+u.top,a.left+=u.left-u.marginLeft,a.right=d+u.left}else a=u}r=r||0;var f=typeof r=="number";return a.left+=f?r:r.left||0,a.top+=f?r:r.top||0,a.right-=f?r:r.right||0,a.bottom-=f?r:r.bottom||0,a}function cte(t){var e=t.width,r=t.height;return e*r}function $j(t,e,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(t.indexOf("auto")===-1)return t;var s=QE(r,n,a,i),o={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},u=Object.keys(o).map(function(f){return Pi({key:f},o[f],{area:cte(o[f])})}).sort(function(f,p){return p.area-f.area}),c=u.filter(function(f){var p=f.width,m=f.height;return p>=r.clientWidth&&m>=r.clientHeight}),l=c.length>0?c[0].key:u[0].key,d=t.split("-")[1];return l+(d?"-"+d:"")}function kj(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?Mj(e):f0(e,Pj(r));return JE(r,i,n)}function Dj(t){var e=t.ownerDocument.defaultView,r=e.getComputedStyle(t),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:t.offsetWidth+i,height:t.offsetHeight+n};return a}function h0(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(r){return e[r]})}function Ij(t,e,r){r=r.split("-")[0];var n=Dj(t),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,s=a?"top":"left",o=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return i[s]=e[s]+e[u]/2-n[u]/2,r===o?i[o]=e[o]-n[c]:i[o]=e[h0(o)],i}function Bp(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function lte(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(i){return i[e]===r});var n=Bp(t,function(i){return i[e]===r});return t.indexOf(n)}function Rj(t,e,r){var n=r===void 0?t:t.slice(0,lte(t,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&xj(a)&&(e.offsets.popper=zo(e.offsets.popper),e.offsets.reference=zo(e.offsets.reference),e=a(e,i))}),e}function dte(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=kj(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=$j(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=Ij(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Rj(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function Lj(t,e){return t.some(function(r){var n=r.name,i=r.enabled;return i&&n===e})}function ZE(t){for(var e=[!1,"ms","Webkit","Moz","O"],r=t.charAt(0).toUpperCase()+t.slice(1),n=0;ns[p]&&(t.offsets.popper[d]+=o[d]+m-s[p]),t.offsets.popper=zo(t.offsets.popper);var b=o[d]+o[c]/2-m/2,_=Sc(t.instance.popper),S=parseFloat(_["margin"+l]),E=parseFloat(_["border"+l+"Width"]),O=b-t.offsets.popper[d]-S-E;return O=Math.max(Math.min(s[c]-m,O),0),t.arrowElement=n,t.offsets.arrow=(r={},ud(r,d,Math.round(O)),ud(r,f,""),r),t}function Tte(t){return t==="end"?"start":t==="start"?"end":t}var jj=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Mw=jj.slice(3);function D$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Mw.indexOf(t),n=Mw.slice(r+1).concat(Mw.slice(0,r));return e?n.reverse():n}var $w={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ete(t,e){if(Lj(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=QE(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],i=h0(n),a=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case $w.FLIP:s=[n,i];break;case $w.CLOCKWISE:s=D$(n);break;case $w.COUNTERCLOCKWISE:s=D$(n,!0);break;default:s=e.behavior}return s.forEach(function(o,u){if(n!==o||s.length===u+1)return t;n=t.placement.split("-")[0],i=h0(n);var c=t.offsets.popper,l=t.offsets.reference,d=Math.floor,f=n==="left"&&d(c.right)>d(l.left)||n==="right"&&d(c.left)d(l.top)||n==="bottom"&&d(c.top)d(r.right),b=d(c.top)d(r.bottom),S=n==="left"&&p||n==="right"&&m||n==="top"&&b||n==="bottom"&&_,E=["top","bottom"].indexOf(n)!==-1,O=!!e.flipVariations&&(E&&a==="start"&&p||E&&a==="end"&&m||!E&&a==="start"&&b||!E&&a==="end"&&_),h=!!e.flipVariationsByContent&&(E&&a==="start"&&m||E&&a==="end"&&p||!E&&a==="start"&&_||!E&&a==="end"&&b),v=O||h;(f||S||v)&&(t.flipped=!0,(f||S)&&(n=s[u+1]),v&&(a=Tte(a)),t.placement=n+(a?"-"+a:""),t.offsets.popper=Pi({},t.offsets.popper,Ij(t.instance.popper,t.offsets.reference,t.placement)),t=Rj(t.instance.modifiers,t,"flip"))}),t}function xte(t){var e=t.offsets,r=e.popper,n=e.reference,i=t.placement.split("-")[0],a=Math.floor,s=["top","bottom"].indexOf(i)!==-1,o=s?"right":"bottom",u=s?"left":"top",c=s?"width":"height";return r[o]a(n[o])&&(t.offsets.popper[u]=a(n[o])),t}function Pte(t,e,r,n){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],s=i[2];if(!a)return t;if(s.indexOf("%")===0){var o=void 0;switch(s){case"%p":o=r;break;case"%":case"%r":default:o=n}var u=zo(o);return u[e]/100*a}else if(s==="vh"||s==="vw"){var c=void 0;return s==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function Cte(t,e,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,s=t.split(/(\+|\-)/).map(function(l){return l.trim()}),o=s.indexOf(Bp(s,function(l){return l.search(/,|\s/)!==-1}));s[o]&&s[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=o!==-1?[s.slice(0,o).concat([s[o].split(u)[0]]),[s[o].split(u)[1]].concat(s.slice(o+1))]:[s];return c=c.map(function(l,d){var f=(d===1?!a:a)?"height":"width",p=!1;return l.reduce(function(m,b){return m[m.length-1]===""&&["+","-"].indexOf(b)!==-1?(m[m.length-1]=b,p=!0,m):p?(m[m.length-1]+=b,p=!1,m):m.concat(b)},[]).map(function(m){return Pte(m,f,e,r)})}),c.forEach(function(l,d){l.forEach(function(f,p){ex(f)&&(i[d]+=f*(l[p-1]==="-"?-1:1))})}),i}function Ate(t,e){var r=e.offset,n=t.placement,i=t.offsets,a=i.popper,s=i.reference,o=n.split("-")[0],u=void 0;return ex(+r)?u=[+r,0]:u=Cte(r,a,s,o),o==="left"?(a.top+=u[0],a.left-=u[1]):o==="right"?(a.top+=u[0],a.left+=u[1]):o==="top"?(a.left+=u[0],a.top-=u[1]):o==="bottom"&&(a.left+=u[0],a.top+=u[1]),t.popper=a,t}function Mte(t,e){var r=e.boundariesElement||sd(t.instance.popper);t.instance.reference===r&&(r=sd(r));var n=ZE("transform"),i=t.instance.popper.style,a=i.top,s=i.left,o=i[n];i.top="",i.left="",i[n]="";var u=QE(t.instance.popper,t.instance.reference,e.padding,r,t.positionFixed);i.top=a,i.left=s,i[n]=o,e.boundaries=u;var c=e.priority,l=t.offsets.popper,d={primary:function(p){var m=l[p];return l[p]u[p]&&!e.escapeWithReference&&(b=Math.min(l[m],u[p]-(p==="right"?l.width:l.height))),ud({},m,b)}};return c.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";l=Pi({},l,d[p](f))}),t.offsets.popper=l,t}function $te(t){var e=t.placement,r=e.split("-")[0],n=e.split("-")[1];if(n){var i=t.offsets,a=i.reference,s=i.popper,o=["bottom","top"].indexOf(r)!==-1,u=o?"left":"top",c=o?"width":"height",l={start:ud({},u,a[u]),end:ud({},u,a[u]+a[c]-s[c])};t.offsets.popper=Pi({},s,l[n])}return t}function kte(t){if(!Fj(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Bp(t.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(e.bottomr.right||e.top>r.bottom||e.right2&&arguments[2]!==void 0?arguments[2]:{};ste(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=nte(this.update.bind(this)),this.options=Pi({},t.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Pi({},t.Defaults.modifiers,i.modifiers)).forEach(function(s){n.options.modifiers[s]=Pi({},t.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Pi({name:s},n.options.modifiers[s])}).sort(function(s,o){return s.order-o.order}),this.modifiers.forEach(function(s){s.enabled&&xj(s.onLoad)&&s.onLoad(n.reference,n.popper,n.options,s,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return ote(t,[{key:"update",value:function(){return dte.call(this)}},{key:"destroy",value:function(){return fte.call(this)}},{key:"enableEventListeners",value:function(){return pte.call(this)}},{key:"disableEventListeners",value:function(){return gte.call(this)}}]),t}();Ub.Utils=(typeof window<"u"?window:global).PopperUtils;Ub.placements=jj;Ub.Defaults=Rte;const rO=Ub;var Lte="top-start",Nte="top-end",Bte="bottom-start",Fte="bottom-end",jte="right-start",Hte="left-start";function zte(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function I$(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(zte(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));Mp(this,t.Defaults,this.constructor.Defaults,r,{type:e}),Ab(this,{type:Oi(),cancelable:Oi(),nativeEvent:Oi(),target:Oi(),relatedTarget:Oi(),vueTarget:Oi(),componentId:Oi()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},CE(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return Vte(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),Ute=G({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(e,r){e!==r&&(Dt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ue),e&&Tt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ue))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Tt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ue)},beforeDestroy:function(){Dt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ue)},methods:{isClickOut:function(e){return!fr(this.$el,e.target)},_clickOutHandler:function(e){this.clickOutHandler&&this.isClickOut(e)&&this.clickOutHandler(e)}}}),Gte=G({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(e,r){e!==r&&(Dt(this.focusInElement,"focusin",this._focusInHandler,Ue),e&&Tt(this.focusInElement,"focusin",this._focusInHandler,Ue))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Tt(this.focusInElement,"focusin",this._focusInHandler,Ue)},beforeDestroy:function(){Dt(this.focusInElement,"focusin",this._focusInHandler,Ue)},methods:{_focusInHandler:function(e){this.focusInHandler&&this.focusInHandler(e)}}}),ip=null;yn&&(ip=new WeakMap);var Wte=function(e,r){yn&&ip.set(e,r)},Yte=function(e){yn&&ip.delete(e)},Kte=function(e){if(!yn)return e.__vue__;for(var r=e;r;){if(ip.has(r))return ip.get(r);r=r.parentNode}return null};function R$(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function L$(t){for(var e=1;e"u")xr("Popper.js not found. Falling back to CSS positioning",ac);else{var r=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;r=r.$el||r,this.createPopper(r)}this.emitOnRoot(N$,this),this.whileOpenListen(!0),this.$nextTick(function(){e.focusMenu(),e.$emit(pn)})}},hideMenu:function(){this.whileOpenListen(!1),this.emitOnRoot(Xte,this),this.$emit(Qt),this.destroyPopper()},createPopper:function(e){this.destroyPopper(),this.$_popper=new rO(e,this.$refs.menu,this.getPopperConfig())},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){try{this.$_popper.scheduleUpdate()}catch{}},clearHideTimeout:function(){clearTimeout(this.$_hideTimeout),this.$_hideTimeout=null},getPopperConfig:function(){var e=Bte;this.dropup?e=this.right?Nte:Lte:this.dropright?e=jte:this.dropleft?e=Hte:this.right&&(e=Fte);var r={placement:e,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}},n=this.boundary;return n&&(r.modifiers.preventOverflow={boundariesElement:n}),eX(r,this.popperOpts||{})},whileOpenListen:function(e){this.listenForClickOut=e,this.listenForFocusIn=e;var r=e?"listenOnRoot":"listenOffRoot";this[r](N$,this.rootCloseListener)},rootCloseListener:function(e){e!==this&&(this.visible=!1)},show:function(){var e=this;this.disabled||st(function(){e.visible=!0})},hide:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.disabled||(this.visible=!1,e&&this.$once(Qt,this.focusToggler))},toggle:function(e){e=e||{};var r=e,n=r.type,i=r.keyCode;if(!(n!=="click"&&!(n==="keydown"&&[Ns,Ka,gn].indexOf(i)!==-1))){if(this.disabled){this.visible=!1;return}this.$emit(g4,e),ke(e),this.visible?this.hide(!0):this.show()}},onMousedown:function(e){ke(e,{propagation:!1})},onKeydown:function(e){var r=e.keyCode;r===FE?this.onEsc(e):r===gn?this.focusNext(e,!1):r===Ln&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,ke(e),this.$once(Qt,this.focusToggler))},onSplitClick:function(e){if(this.disabled){this.visible=!1;return}this.$emit(Mi,e)},hideHandler:function(e){var r=this,n=e.target;this.visible&&!fr(this.$refs.menu,n)&&!fr(this.toggler,n)&&(this.clearHideTimeout(),this.$_hideTimeout=setTimeout(function(){return r.hide()},this.hideDelay))},clickOutHandler:function(e){this.hideHandler(e)},focusInHandler:function(e){this.hideHandler(e)},focusNext:function(e,r){var n=this,i=e.target;!this.visible||e&&Rn(Jte,i)||(ke(e),this.$nextTick(function(){var a=n.getItems();if(!(a.length<1)){var s=a.indexOf(i);r&&s>0?s--:!r&&s1&&arguments[1]!==void 0?arguments[1]:null;if(en(e)){var n=Gr(e,this.valueField),i=Gr(e,this.textField);return{value:Zt(n)?r||i:n,text:qM(String(Zt(i)?r:i)),html:Gr(e,this.htmlField),disabled:!!Gr(e,this.disabledField)}}return{value:r||e,text:qM(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return nt(e)?e.map(function(n){return r.normalizeOption(n)}):en(e)?(xr(gre,this.$options.name),Ce(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}});function rk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function nk(t){for(var e=1;e-1:Ze(r,e)},isRadio:function(){return!1}},watch:kl({},y0,function(t,e){Ze(t,e)||this.setIndeterminate(t)}),mounted:function(){this.setIndeterminate(this[y0])},methods:{computedLocalCheckedWatcher:function(e,r){if(!Ze(e,r)){this.$emit(Yj,e);var n=this.$refs.input;n&&this.$emit(kw,n.indeterminate)}},handleChange:function(e){var r=this,n=e.target,i=n.checked,a=n.indeterminate,s=this.value,o=this.uncheckedValue,u=this.computedLocalChecked;if(nt(u)){var c=ak(u,s);i&&c<0?u=u.concat(s):!i&&c>-1&&(u=u.slice(0,c).concat(u.slice(c+1)))}else u=i?s:o;this.computedLocalChecked=u,this.$nextTick(function(){r.$emit(Bn,u),r.isGroup&&r.bvGroup.$emit(Bn,u),r.$emit(kw,a)})},setIndeterminate:function(e){nt(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit(kw,e))}}}),Cre=ee(ax,eF),iO=G({name:eF,mixins:[Kj],inject:{getBvGroup:{from:"getBvRadioGroup",default:function(){return function(){return null}}}},props:Cre,computed:{bvGroup:function(){return this.getBvGroup()}}}),Bm;function lk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function wa(t){for(var e=1;e0&&(c=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":c.length>1,"justify-content-end":c.length<2}},c)]);var p=e(aj,{staticClass:"b-form-date-calendar w-100",props:gs(gs({},xt(Zj,s)),{},{hidden:!this.isVisible,value:r,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:Zi(o,["nav-prev-decade","nav-prev-year","nav-prev-month","nav-this-month","nav-next-month","nav-next-year","nav-next-decade"]),key:"calendar",ref:"calendar"},c);return e(Qj,{staticClass:"b-form-datepicker",props:gs(gs({},xt(e6,s)),{},{formattedValue:r?this.formattedValue:"",id:this.safeId(),lang:this.computedLang,menuClass:[{"bg-dark":a,"text-light":a},this.menuClass],placeholder:u,rtl:this.isRTL,value:r}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:nh({},Ms,o[Ms]||this.defaultButtonFn),ref:"control"},[p])}}),jre=pe({components:{BFormDatepicker:bk,BDatepicker:bk}}),Hm;function yk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!0;return Promise.all(oc(e).filter(function(n){return n.kind==="file"}).map(function(n){var i=t6(n);if(i){if(i.isDirectory&&r)return Kre(i.createReader(),"".concat(i.name,"/"));if(i.isFile)return new Promise(function(a){i.file(function(s){s.$path="",a(s)})})}return null}).filter(Oe))},Kre=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise(function(n){var i=[],a=function s(){e.readEntries(function(o){o.length===0?n(Promise.all(i).then(function(u){return XJ(u)})):(i.push(Promise.all(o.map(function(u){if(u){if(u.isDirectory)return t(u.createReader(),"".concat(r).concat(u.name,"/"));if(u.isFile)return new Promise(function(c){u.file(function(l){l.$path="".concat(r).concat(l.name),c(l)})})}return null}).filter(Oe))),s())})};a()})},qre=ee(fe(cs(cs(cs(cs(cs(cs(cs({},lt),zre),ra),jp),ia),na),{},{accept:y(I,""),browseText:y(I,"Browse"),capture:y(B,!1),directory:y(B,!1),dropPlaceholder:y(I,"Drop files here"),fileNameFormatter:y(vn),multiple:y(B,!1),noDrop:y(B,!1),noDropPlaceholder:y(I,"Not allowed"),noTraverse:y(B,!1),placeholder:y(I,"No file chosen")})),ME),_k=G({name:ME,mixins:[Pr,pt,Hre,Pe,Tc,qa,Yb,Pe],inheritAttrs:!1,props:qre,data:function(){return{files:[],dragging:!1,dropAllowed:!this.noDrop,hasFocus:!1}},computed:{computedAccept:function(){var e=this.accept;return e=(e||"").trim().split(/[,\s]+/).filter(Oe),e.length===0?null:e.map(function(r){var n="name",i="^",a="$";Sq.test(r)?i="":(n="type",$q.test(r)&&(a=".+$",r=r.slice(0,-1))),r=RE(r);var s=new RegExp("".concat(i).concat(r).concat(a));return{rx:s,prop:n}})},computedCapture:function(){var e=this.capture;return e===!0||e===""?!0:e||null},computedAttrs:function(){var e=this.name,r=this.disabled,n=this.required,i=this.form,a=this.computedCapture,s=this.accept,o=this.multiple,u=this.directory;return cs(cs({},this.bvAttrs),{},{type:"file",id:this.safeId(),name:e,disabled:r,required:n,form:i||null,capture:a,accept:s||null,multiple:o,directory:u,webkitdirectory:u,"aria-required":n?"true":null})},computedFileNameFormatter:function(){var e=this.fileNameFormatter;return Va(e)?e:this.defaultFileNameFormatter},clonedFiles:function(){return xi(this.files)},flattenedFiles:function(){return bf(this.files)},fileNames:function(){return this.flattenedFiles.map(function(e){return e.name})},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot(pJ,{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(this.files.length===0)return this.normalizeSlot(zJ)||this.placeholder;var e=this.flattenedFiles,r=this.clonedFiles,n=this.fileNames,i=this.computedFileNameFormatter;return this.hasNormalizedSlot(lM)?this.normalizeSlot(lM,{files:e,filesTraversed:r,names:n}):i(e,r,n)}},watch:(Hm={},Qg(Hm,Vre,function(t){(!t||nt(t)&&t.length===0)&&this.reset()}),Qg(Hm,"files",function(e,r){if(!Ze(e,r)){var n=this.multiple,i=this.noTraverse,a=!n||i?bf(e):e;this.$emit(Ure,n?a:a[0]||null)}}),Hm),created:function(){this.$_form=null},mounted:function(){var e=Rn("form",this.$el);e&&(Tt(e,"reset",this.reset,$n),this.$_form=e)},beforeDestroy:function(){var e=this.$_form;e&&Dt(e,"reset",this.reset,$n)},methods:{isFileValid:function(e){if(!e)return!1;var r=this.computedAccept;return r?r.some(function(n){return n.rx.test(e[n.prop])}):!0},isFilesArrayValid:function(e){var r=this;return nt(e)?e.every(function(n){return r.isFileValid(n)}):this.isFileValid(e)},defaultFileNameFormatter:function(e,r,n){return n.join(", ")},setFiles:function(e){this.dropAllowed=!this.noDrop,this.dragging=!1,this.files=this.multiple?this.directory?e:bf(e):bf(e).slice(0,1)},setInputFiles:function(e){try{var r=new ClipboardEvent("").clipboardData||new DataTransfer;bf(xi(e)).forEach(function(n){delete n.$path,r.items.add(n)}),this.$refs.input.files=r.files}catch{}},reset:function(){try{var e=this.$refs.input;e.value="",e.type="",e.type="file"}catch{}this.files=[]},handleFiles:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(r){var n=e.filter(this.isFilesArrayValid);n.length>0&&(this.setFiles(n),this.setInputFiles(n))}else this.setFiles(e)},focusHandler:function(e){this.plain||e.type==="focusout"?this.hasFocus=!1:this.hasFocus=!0},onChange:function(e){var r=this,n=e.type,i=e.target,a=e.dataTransfer,s=a===void 0?{}:a,o=n==="drop";this.$emit(Bn,e);var u=oc(s.items||[]);if(rB&&u.length>0&&!Ot(t6(u[0])))Yre(u,this.directory).then(function(l){return r.handleFiles(l,o)});else{var c=oc(i.files||s.files||[]).map(function(l){return l.$path=l.webkitRelativePath||"",l});this.handleFiles(c,o)}},onDragenter:function(e){ke(e),this.dragging=!0;var r=e.dataTransfer,n=r===void 0?{}:r;if(this.noDrop||this.disabled||!this.dropAllowed){n.dropEffect="none",this.dropAllowed=!1;return}n.dropEffect="copy"},onDragover:function(e){ke(e),this.dragging=!0;var r=e.dataTransfer,n=r===void 0?{}:r;if(this.noDrop||this.disabled||!this.dropAllowed){n.dropEffect="none",this.dropAllowed=!1;return}n.dropEffect="copy"},onDragleave:function(e){var r=this;ke(e),this.$nextTick(function(){r.dragging=!1,r.dropAllowed=!r.noDrop})},onDrop:function(e){var r=this;if(ke(e),this.dragging=!1,this.noDrop||this.disabled||!this.dropAllowed){this.$nextTick(function(){r.dropAllowed=!r.noDrop});return}this.onChange(e)}},render:function(e){var r=this.custom,n=this.plain,i=this.size,a=this.dragging,s=this.stateClass,o=this.bvAttrs,u=e("input",{class:[{"form-control-file":n,"custom-file-input":r,focus:r&&this.hasFocus},s],style:r?{zIndex:-5}:{},attrs:this.computedAttrs,on:{change:this.onChange,focusin:this.focusHandler,focusout:this.focusHandler,reset:this.reset},ref:"input"});if(n)return u;var c=e("label",{staticClass:"custom-file-label",class:{dragging:a},attrs:{for:this.safeId(),"data-browse":this.browseText||null}},[e("span",{staticClass:"d-block form-file-text",style:{pointerEvents:"none"}},[this.labelContent])]);return e("div",{staticClass:"custom-file b-form-file",class:[Qg({},"b-custom-control-".concat(i),i),s,o.class],style:o.style,attrs:{id:this.safeId("_BV_file_outer_")},on:{dragenter:this.onDragenter,dragover:this.onDragover,dragleave:this.onDragleave,drop:this.onDrop}},[u,c])}}),Xre=pe({components:{BFormFile:_k,BFile:_k}}),Rw=function(e){return"\\"+e},r6=function(e){e=_e(e);var r=e.length,n=e.charCodeAt(0);return e.split("").reduce(function(i,a,s){var o=e.charCodeAt(s);return o===0?i+"�":o===127||o>=1&&o<=31||s===0&&o>=48&&o<=57||s===1&&o>=48&&o<=57&&n===45?i+Rw("".concat(o.toString(16)," ")):s===0&&o===45&&r===1?i+Rw(a):o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?i+a:i+Rw(a)},"")};function wk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zm(t){for(var e=1;e0||Ce(this.labelColProps).length>0}},watch:{ariaDescribedby:function(e,r){e!==r&&this.updateAriaDescribedby(e,r)}},mounted:function(){var e=this;this.$nextTick(function(){e.updateAriaDescribedby(e.ariaDescribedby)})},methods:{getAlignClasses:function(e,r){return ep().reduce(function(n,i){var a=e[xo(i,"".concat(r,"Align"))]||null;return a&&n.push(["text",i,a].filter(Oe).join("-")),n},[])},getColProps:function(e,r){return ep().reduce(function(n,i){var a=e[xo(i,"".concat(r,"Cols"))];return a=a===""?!0:a||!1,!Ei(a)&&a!=="auto"&&(a=oe(a,0),a=a>0?a:!1),a&&(n[i||(Ei(a)?"col":"cols")]=a),n},{})},updateAriaDescribedby:function(e,r){var n=this.labelFor;if(ht&&n){var i=si("#".concat(r6(n)),this.$refs.content);if(i){var a="aria-describedby",s=(e||"").split(jg),o=(r||"").split(jg),u=(oi(i,a)||"").split(jg).filter(function(c){return!Ee(o,c)}).concat(s).filter(function(c,l,d){return d.indexOf(c)===l}).filter(Oe).join(" ").trim();u?$t(i,a,u):La(i,a)}}},onLegendClick:function(e){if(!this.labelFor){var r=e.target,n=r?r.tagName:"";if(nne.indexOf(n)===-1){var i=ci(rne,this.$refs.content).filter(Yi);i.length===1&&Ie(i[0])}}}},render:function(e){var r=this.computedState,n=this.feedbackAriaLive,i=this.isHorizontal,a=this.labelFor,s=this.normalizeSlot,o=this.safeId,u=this.tooltip,c=o(),l=!a,d=e(),f=s(O4)||this.label,p=f?o("_BV_label_"):null;if(f||i){var m=this.labelSize,b=this.labelColProps,_=l?"legend":"label";this.labelSrOnly?(f&&(d=e(_,{class:"sr-only",attrs:{id:p,for:a||null}},[f])),d=e(i?Zg:"div",{props:i?b:{}},[d])):d=e(i?Zg:_,{on:l?{click:this.onLegendClick}:{},props:i?Dl(Dl({},b),{},{tag:_}):{},attrs:{id:p,for:a||null,tabindex:l?"-1":null},class:[l?"bv-no-focus-ring":"",i||l?"col-form-label":"",!i&&l?"pt-0":"",!i&&!l?"d-block":"",m?"col-form-label-".concat(m):"",this.labelAlignClasses,this.labelClass]},[f])}var S=e(),E=s(EJ)||this.invalidFeedback,O=E?o("_BV_feedback_invalid_"):null;E&&(S=e(v0,{props:{ariaLive:n,id:O,state:r,tooltip:u},attrs:{tabindex:E?"-1":null}},[E]));var h=e(),v=s(qJ)||this.validFeedback,g=v?o("_BV_feedback_valid_"):null;v&&(h=e(Wj,{props:{ariaLive:n,id:g,state:r,tooltip:u},attrs:{tabindex:v?"-1":null}},[v]));var T=e(),C=s(fJ)||this.description,k=C?o("_BV_description_"):null;C&&(T=e(g0,{attrs:{id:k,tabindex:"-1"}},[C]));var w=this.ariaDescribedby=[k,r===!1?O:null,r===!0?g:null].filter(Oe).join(" ")||null,A=e(i?Zg:"div",{props:i?this.contentColProps:{},ref:"content"},[s(_r,{ariaDescribedby:w,descriptionId:k,id:c,labelId:p})||e(),S,h,T]);return e(l?"fieldset":i?b0:"div",{staticClass:"form-group",class:[{"was-validated":this.validated},this.stateClass],attrs:{id:c,disabled:l?this.disabled:null,role:l?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":l&&i?p:null}},i&&l?[e(b0,[d,A])]:[d,A])}},ane=pe({components:{BFormGroup:Ok,BFormFieldset:Ok}}),i6=G({computed:{selectionStart:{cache:!1,get:function(){return this.$refs.input.selectionStart},set:function(e){this.$refs.input.selectionStart=e}},selectionEnd:{cache:!1,get:function(){return this.$refs.input.selectionEnd},set:function(e){this.$refs.input.selectionEnd=e}},selectionDirection:{cache:!1,get:function(){return this.$refs.input.selectionDirection},set:function(e){this.$refs.input.selectionDirection=e}}},methods:{select:function(){var e;(e=this.$refs.input).select.apply(e,arguments)},setSelectionRange:function(){var e;(e=this.$refs.input).setSelectionRange.apply(e,arguments)},setRangeText:function(){var e;(e=this.$refs.input).setRangeText.apply(e,arguments)}}});function Tk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ek(t){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:!1;return e=_e(e),this.hasFormatter&&(!this.lazyFormatter||n)&&(e=this.formatter(e,r)),e},modifyValue:function(e){return e=_e(e),this.trim&&(e=e.trim()),this.number&&(e=Be(e,e)),e},updateValue:function(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.lazy;if(!(i&&!n)){this.clearDebounce();var a=function(){if(e=r.modifyValue(e),e!==r.vModelValue)r.vModelValue=e,r.$emit(une,e);else if(r.hasFormatter){var u=r.$refs.input;u&&e!==u.value&&(u.value=e)}},s=this.computedDebounce;s>0&&!i&&!n?this.$_inputDebounceTimer=setTimeout(a,s):a()}},onInput:function(e){if(!e.target.composing){var r=e.target.value,n=this.formatValue(r,e);if(n===!1||e.defaultPrevented){ke(e,{propagation:!1});return}this.localValue=n,this.updateValue(n),this.$emit(u4,n)}},onChange:function(e){var r=e.target.value,n=this.formatValue(r,e);if(n===!1||e.defaultPrevented){ke(e,{propagation:!1});return}this.localValue=n,this.updateValue(n,!0),this.$emit(Bn,n)},onBlur:function(e){var r=e.target.value,n=this.formatValue(r,e,!0);n!==!1&&(this.localValue=_e(this.modifyValue(n)),this.updateValue(n,!0)),this.$emit(a4,e)},focus:function(){this.disabled||Ie(this.$el)},blur:function(){this.disabled||Hn(this.$el)}}}),o6=G({computed:{validity:{cache:!1,get:function(){return this.$refs.input.validity}},validationMessage:{cache:!1,get:function(){return this.$refs.input.validationMessage}},willValidate:{cache:!1,get:function(){return this.$refs.input.willValidate}}},methods:{setCustomValidity:function(){var e;return(e=this.$refs.input).setCustomValidity.apply(e,arguments)},checkValidity:function(){var e;return(e=this.$refs.input).checkValidity.apply(e,arguments)},reportValidity:function(){var e;return(e=this.$refs.input).reportValidity.apply(e,arguments)}}});function Pk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function io(t){for(var e=1;e=n?"full":r>=n-.5?"half":"empty",d={variant:s,disabled:o,readonly:u};return e("span",{staticClass:"b-rating-star",class:{focused:i&&r===n||!oe(r)&&n===c,"b-rating-star-empty":l==="empty","b-rating-star-half":l==="half","b-rating-star-full":l==="full"},attrs:{tabindex:!o&&!u?"-1":null},on:{click:this.onClick}},[e("span",{staticClass:"b-rating-icon"},[this.normalizeSlot(l,d)])])}}),bne=ee(fe(Tf(Tf(Tf(Tf(Tf({},lt),mne),Re(ra,["required","autofocus"])),na),{},{color:y(I),iconClear:y(I,"x"),iconEmpty:y(I,"star"),iconFull:y(I,"star-fill"),iconHalf:y(I,"star-half"),inline:y(B,!1),locale:y(tn),noBorder:y(B,!1),precision:y(le),readonly:y(B,!1),showClear:y(B,!1),showValue:y(B,!1),showValueMax:y(B,!1),stars:y(le,l6,function(t){return oe(t)>=c6}),variant:y(I)})),rF),Dk=G({name:rF,components:{BIconStar:GQ,BIconStarHalf:YQ,BIconStarFill:WQ,BIconX:j4},mixins:[pt,pne,Fs],props:bne,data:function(){var e=Be(this[$k],null),r=kk(this.stars);return{localValue:Ot(e)?null:cu(e,0,r),hasFocus:!1}},computed:{computedStars:function(){return kk(this.stars)},computedRating:function(){var e=Be(this.localValue,0),r=oe(this.precision,3);return cu(Be(e.toFixed(r)),0,this.computedStars)},computedLocale:function(){var e=Ye(this.locale).filter(Oe),r=new Intl.NumberFormat(e);return r.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return Bb(this.computedLocale)},formattedRating:function(){var e=oe(this.precision),r=this.showValueMax,n=this.computedLocale,i={notation:"standard",minimumFractionDigits:isNaN(e)?0:e,maximumFractionDigits:isNaN(e)?3:e},a=this.computedStars.toLocaleString(n),s=this.localValue;return s=Ot(s)?r?"-":"":s.toLocaleString(n,i),r?"".concat(s,"/").concat(a):s}},watch:(Of={},ev(Of,$k,function(t,e){if(t!==e){var r=Be(t,null);this.localValue=Ot(r)?null:cu(r,0,this.computedStars)}}),ev(Of,"localValue",function(e,r){e!==r&&e!==(this.value||0)&&this.$emit(gne,e||null)}),ev(Of,"disabled",function(e){e&&(this.hasFocus=!1,this.blur())}),Of),methods:{focus:function(){this.disabled||Ie(this.$el)},blur:function(){this.disabled||Hn(this.$el)},onKeydown:function(e){var r=e.keyCode;if(this.isInteractive&&Ee([qi,gn,ks,Ln],r)){ke(e,{propagation:!1});var n=oe(this.localValue,0),i=this.showClear?0:1,a=this.computedStars,s=this.isRTL?-1:1;r===qi?this.localValue=cu(n-s,i,a)||null:r===ks?this.localValue=cu(n+s,i,a):r===gn?this.localValue=cu(n-1,i,a)||null:r===Ln&&(this.localValue=cu(n+1,i,a))}},onSelected:function(e){this.isInteractive&&(this.localValue=e)},onFocus:function(e){this.hasFocus=this.isInteractive?e.type==="focus":!1},renderIcon:function(e){return this.$createElement(r0,{props:{icon:e,variant:this.disabled||this.color?null:this.variant||null}})},iconEmptyFn:function(){return this.renderIcon(this.iconEmpty)},iconHalfFn:function(){return this.renderIcon(this.iconHalf)},iconFullFn:function(){return this.renderIcon(this.iconFull)},iconClearFn:function(){return this.$createElement(r0,{props:{icon:this.iconClear}})}},render:function(e){var r=this,n=this.disabled,i=this.readonly,a=this.name,s=this.form,o=this.inline,u=this.variant,c=this.color,l=this.noBorder,d=this.hasFocus,f=this.computedRating,p=this.computedStars,m=this.formattedRating,b=this.showClear,_=this.isRTL,S=this.isInteractive,E=this.$scopedSlots,O=[];if(b&&!n&&!i){var h=e("span",{staticClass:"b-rating-icon"},[(E[yJ]||this.iconClearFn)()]);O.push(e("span",{staticClass:"b-rating-star b-rating-star-clear flex-grow-1",class:{focused:d&&f===0},attrs:{tabindex:S?"-1":null},on:{click:function(){return r.onSelected(null)}},key:"clear"},[h]))}for(var v=0;v1&&arguments[1]!==void 0?arguments[1]:null;if(en(e)){var n=Gr(e,this.valueField),i=Gr(e,this.textField),a=Gr(e,this.optionsField,null);return Ot(a)?{value:Zt(n)?r||i:n,text:String(Zt(i)?r:i),html:Gr(e,this.htmlField),disabled:!!Gr(e,this.disabledField)}:{label:String(Gr(e,this.labelField)||i),options:this.normalizeOptions(a)}}return{value:r||e,text:String(e),disabled:!1}}}}),Pne=ee({disabled:y(B,!1),value:y(nd,void 0,!0)},aF),_0=G({name:aF,functional:!0,props:Pne,render:function(e,r){var n=r.props,i=r.data,a=r.children,s=n.value,o=n.disabled;return e("option",ve(i,{attrs:{disabled:o},domProps:{value:s}}),a)}});function Lk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Nk(t){for(var e=1;e0?e:p6},computedInterval:function(){var e=oe(this.repeatInterval,0);return e>0?e:m6},computedThreshold:function(){return Qe(oe(this.repeatThreshold,g6),1)},computedStepMultiplier:function(){return Qe(oe(this.repeatStepMultiplier,v6),1)},computedPrecision:function(){var e=this.computedStep;return tp(e)===e?0:(e.toString().split(".")[1]||"").length},computedMultiplier:function(){return R4(10,this.computedPrecision||0)},valueAsFixed:function(){var e=this.localValue;return Ot(e)?"":e.toFixed(this.computedPrecision)},computedLocale:function(){var e=Ye(this.locale).filter(Oe),r=new Intl.NumberFormat(e);return r.resolvedOptions().locale},computedRTL:function(){return Bb(this.computedLocale)},defaultFormatter:function(){var e=this.computedPrecision,r=new Intl.NumberFormat(this.computedLocale,{style:"decimal",useGrouping:!1,minimumIntegerDigits:1,minimumFractionDigits:e,maximumFractionDigits:e,notation:"standard"});return r.format},computedFormatter:function(){var e=this.formatterFn;return Va(e)?e:this.defaultFormatter},computedAttrs:function(){return xa(xa({},this.bvAttrs),{},{role:"group",lang:this.computedLocale,tabindex:this.disabled?null:"-1",title:this.ariaLabel})},computedSpinAttrs:function(){var e=this.spinId,r=this.localValue,n=this.computedRequired,i=this.disabled,a=this.state,s=this.computedFormatter,o=!Ot(r);return xa(xa({dir:this.computedRTL?"rtl":"ltr"},this.bvAttrs),{},{id:e,role:"spinbutton",tabindex:i?null:"0","aria-live":"off","aria-label":this.ariaLabel||null,"aria-controls":this.ariaControls||null,"aria-invalid":a===!1||!o&&n?"true":null,"aria-required":n?"true":null,"aria-valuemin":_e(this.computedMin),"aria-valuemax":_e(this.computedMax),"aria-valuenow":o?r:null,"aria-valuetext":o?s(r):null})}},watch:(el={},ah(el,Hk,function(t){this.localValue=Be(t,null)}),ah(el,"localValue",function(e){this.$emit(Rne,e)}),ah(el,"disabled",function(e){e&&this.clearRepeat()}),ah(el,"readonly",function(e){e&&this.clearRepeat()}),el),created:function(){this.$_autoDelayTimer=null,this.$_autoRepeatTimer=null,this.$_keyIsDown=!1},beforeDestroy:function(){this.clearRepeat()},deactivated:function(){this.clearRepeat()},methods:{focus:function(){this.disabled||Ie(this.$refs.spinner)},blur:function(){this.disabled||Hn(this.$refs.spinner)},emitChange:function(){this.$emit(Bn,this.localValue)},stepValue:function(e){var r=this.localValue;if(!this.disabled&&!Ot(r)){var n=this.computedStep*e,i=this.computedMin,a=this.computedMax,s=this.computedMultiplier,o=this.wrap;r=jS((r-i)/n)*n+i+n,r=jS(r*s)/s,this.localValue=r>a?o?i:a:r0&&arguments[0]!==void 0?arguments[0]:1,r=this.localValue;Ot(r)?this.localValue=this.computedMin:this.stepValue(1*e)},stepDown:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,r=this.localValue;Ot(r)?this.localValue=this.wrap?this.computedMax:this.computedMin:this.stepValue(-1*e)},onKeydown:function(e){var r=e.keyCode,n=e.altKey,i=e.ctrlKey,a=e.metaKey;if(!(this.disabled||this.readonly||n||i||a)&&Ee(zk,r)){if(ke(e,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),Ee([Ln,gn],r)?(this.$_keyIsDown=!0,r===Ln?this.handleStepRepeat(e,this.stepUp):r===gn&&this.handleStepRepeat(e,this.stepDown)):r===i0?this.stepUp(this.computedStepMultiplier):r===n0?this.stepDown(this.computedStepMultiplier):r===Ho?this.localValue=this.computedMin:r===jo&&(this.localValue=this.computedMax)}},onKeyup:function(e){var r=e.keyCode,n=e.altKey,i=e.ctrlKey,a=e.metaKey;this.disabled||this.readonly||n||i||a||Ee(zk,r)&&(ke(e,{propagation:!1}),this.resetTimers(),this.$_keyIsDown=!1,this.emitChange())},handleStepRepeat:function(e,r){var n=this,i=e||{},a=i.type,s=i.button;if(!this.disabled&&!this.readonly){if(a==="mousedown"&&s)return;this.resetTimers(),r(1);var o=this.computedThreshold,u=this.computedStepMultiplier,c=this.computedDelay,l=this.computedInterval;this.$_autoDelayTimer=setTimeout(function(){var d=0;n.$_autoRepeatTimer=setInterval(function(){r(dt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&i.indexOf(r)===n})},Kk=function(e){return We(e)?e:rc(e)&&e.target.value||""},Nw=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},Kne=ee(fe(Jn(Jn(Jn(Jn(Jn(Jn({},lt),Une),ra),na),ia),{},{addButtonText:y(I,"Add"),addButtonVariant:y(I,"outline-secondary"),addOnChange:y(B,!1),duplicateTagText:y(I,"Duplicate tag(s)"),feedbackAriaLive:y(I,"assertive"),ignoreInputFocusSelector:y(tn,Wne),inputAttrs:y(gr,{}),inputClass:y(we),inputId:y(I),inputType:y(I,"text",function(t){return Ee(y6,t)}),invalidTagText:y(I,"Invalid tag(s)"),limit:y(Qr),limitTagsText:y(I,"Tag limit reached"),noAddOnEnter:y(B,!1),noOuterFocus:y(B,!1),noTagRemove:y(B,!1),placeholder:y(I,"Add tag..."),removeOnDelete:y(B,!1),separator:y(tn),tagClass:y(we),tagPills:y(B,!1),tagRemoveLabel:y(I,"Remove tag"),tagRemovedLabel:y(I,"Tag removed"),tagValidator:y(vn),tagVariant:y(I,"secondary")})),cF),qk=G({name:cF,mixins:[Bs,pt,Vne,Tc,Fs,qa,Pe],props:Kne,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:Nw(),focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return Ee(y6,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var e=this.disabled,r=this.form;return Jn(Jn({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:e,form:r})},computedInputHandlers:function(){return Jn(Jn({},Re(this.bvListeners,[Qv,Zv])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return Ye(this.separator).filter(We).filter(Oe).join("")},computedSeparatorRegExp:function(){var e=this.computedSeparator;return e?new RegExp("[".concat(Yne(e),"]+")):null},computedJoiner:function(){var e=this.computedSeparator.charAt(0);return e!==" "?"".concat(e," "):e},computeIgnoreInputFocusSelector:function(){return Ye(this.ignoreInputFocusSelector).filter(Oe).join(",").trim()},disableAddButton:function(){var e=this,r=Eo(this.newTag);return r===""||!this.splitTags(r).some(function(n){return!Ee(e.tags,n)&&e.validateTag(n)})},duplicateTags:function(){return this.tagsState.duplicate},hasDuplicateTags:function(){return this.duplicateTags.length>0},invalidTags:function(){return this.tagsState.invalid},hasInvalidTags:function(){return this.invalidTags.length>0},isLimitReached:function(){var e=this.limit;return Ui(e)&&e>=0&&this.tags.length>=e}},watch:(Ef={},tv(Ef,Lw,function(t){this.tags=Yk(t)}),tv(Ef,"tags",function(e,r){Ze(e,this[Lw])||this.$emit(Gne,e),Ze(e,r)||(e=Ye(e).filter(Oe),r=Ye(r).filter(Oe),this.removedTags=r.filter(function(n){return!Ee(e,n)}))}),tv(Ef,"tagsState",function(e,r){Ze(e,r)||this.$emit(ZX,e.valid,e.invalid,e.duplicate)}),Ef),created:function(){this.tags=Yk(this[Lw])},mounted:function(){var e=Rn("form",this.$el);e&&Tt(e,"reset",this.reset,$n)},beforeDestroy:function(){var e=Rn("form",this.$el);e&&Dt(e,"reset",this.reset,$n)},methods:{addTag:function(e){if(e=We(e)?e:this.newTag,!(this.disabled||Eo(e)===""||this.isLimitReached)){var r=this.parseTags(e);if(r.valid.length>0||r.all.length===0)if(Ps(this.getInput(),"select"))this.newTag="";else{var n=[].concat(Gk(r.invalid),Gk(r.duplicate));this.newTag=r.all.filter(function(i){return Ee(n,i)}).join(this.computedJoiner).concat(n.length>0?this.computedJoiner.charAt(0):"")}r.valid.length>0&&(this.tags=Ye(this.tags,r.valid)),this.tagsState=r,this.focus()}},removeTag:function(e){this.disabled||(this.tags=this.tags.filter(function(r){return r!==e}))},reset:function(){var e=this;this.newTag="",this.tags=[],this.$nextTick(function(){e.removedTags=[],e.tagsState=Nw()})},onInputInput:function(e){if(!(this.disabled||rc(e)&&e.target.composing)){var r=Kk(e),n=this.computedSeparatorRegExp;this.newTag!==r&&(this.newTag=r),r=QJ(r),n&&n.test(r.slice(-1))?this.addTag():this.tagsState=r===""?Nw():this.parseTags(r)}},onInputChange:function(e){if(!this.disabled&&this.addOnChange){var r=Kk(e);this.newTag!==r&&(this.newTag=r),this.addTag()}},onInputKeydown:function(e){if(!(this.disabled||!rc(e))){var r=e.keyCode,n=e.target.value||"";!this.noAddOnEnter&&r===Ns?(ke(e,{propagation:!1}),this.addTag()):this.removeOnDelete&&(r===JQ||r===z4)&&n===""&&(ke(e,{propagation:!1}),this.tags=this.tags.slice(0,-1))}},onClick:function(e){var r=this,n=this.computeIgnoreInputFocusSelector;(!n||!Rn(n,e.target,!0))&&this.$nextTick(function(){r.focus()})},onInputFocus:function(e){var r=this;this.focusState!=="out"&&(this.focusState="in",this.$nextTick(function(){st(function(){r.hasFocus&&(r.$emit(FX,e),r.focusState=null)})}))},onInputBlur:function(e){var r=this;this.focusState!=="in"&&(this.focusState="out",this.$nextTick(function(){st(function(){r.hasFocus||(r.$emit(a4,e),r.focusState=null)})}))},onFocusin:function(e){this.hasFocus=!0,this.$emit(Qv,e)},onFocusout:function(e){this.hasFocus=!1,this.$emit(Zv,e)},handleAutofocus:function(){var e=this;this.$nextTick(function(){st(function(){e.autofocus&&e.focus()})})},focus:function(){this.disabled||Ie(this.getInput())},blur:function(){this.disabled||Hn(this.getInput())},splitTags:function(e){e=_e(e);var r=this.computedSeparatorRegExp;return(r?e.split(r):[e]).map(Eo).filter(Oe)},parseTags:function(e){var r=this,n=this.splitTags(e),i={all:n,valid:[],invalid:[],duplicate:[]};return n.forEach(function(a){Ee(r.tags,a)||Ee(i.valid,a)?Ee(i.duplicate,a)||i.duplicate.push(a):r.validateTag(a)?i.valid.push(a):Ee(i.invalid,a)||i.invalid.push(a)}),i},validateTag:function(e){var r=this.tagValidator;return Va(r)?r(e):!0},getInput:function(){return si("#".concat(r6(this.computedInputId)),this.$el)},defaultRender:function(e){var r=e.addButtonText,n=e.addButtonVariant,i=e.addTag,a=e.disableAddButton,s=e.disabled,o=e.duplicateTagText,u=e.inputAttrs,c=e.inputClass,l=e.inputHandlers,d=e.inputType,f=e.invalidTagText,p=e.isDuplicate,m=e.isInvalid,b=e.isLimitReached,_=e.limitTagsText,S=e.noTagRemove,E=e.placeholder,O=e.removeTag,h=e.tagClass,v=e.tagPills,g=e.tagRemoveLabel,T=e.tagVariant,C=e.tags,k=this.$createElement,w=C.map(function(K){return K=_e(K),k(lO,{class:h,props:{disabled:s,noRemove:S,pill:v,removeLabel:g,tag:"li",title:K,variant:T},on:{remove:function(){return O(K)}},key:"tags_".concat(K)},K)}),A=f&&m?this.safeId("__invalid_feedback__"):null,P=o&&p?this.safeId("__duplicate_feedback__"):null,x=_&&b?this.safeId("__limit_feedback__"):null,$=[u["aria-describedby"],A,P,x].filter(Oe).join(" "),D=k("input",{staticClass:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",class:c,style:{outline:0,minWidth:"5rem"},attrs:Jn(Jn({},u),{},{"aria-describedby":$||null,type:d,placeholder:E||null}),domProps:{value:u.value},on:l,directives:[{name:"model",value:u.value}],ref:"input"}),M=k(Nn,{staticClass:"b-form-tags-button py-0",class:{invisible:a},style:{fontSize:"90%"},props:{disabled:a||b,variant:n},on:{click:function(){return i()}},ref:"button"},[this.normalizeSlot(cJ)||r]),R=this.safeId("__tag_list__"),N=k("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":R},key:"tags_field"},[k("div",{staticClass:"d-flex",attrs:{role:"group"}},[D,M])]),j=k("ul",{staticClass:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center",attrs:{id:R},key:"tags_list"},[w,N]),z=k();if(f||o||_){var V=this.feedbackAriaLive,J=this.computedJoiner,re=k();A&&(re=k(v0,{props:{id:A,ariaLive:V,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(J)]));var Y=k();P&&(Y=k(g0,{props:{id:P,ariaLive:V},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(J)]));var U=k();x&&(U=k(g0,{props:{id:x,ariaLive:V},key:"tags_limit_feedback"},[_])),z=k("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[re,Y,U])}return[j,z]}},render:function(e){var r=this.name,n=this.disabled,i=this.required,a=this.form,s=this.tags,o=this.computedInputId,u=this.hasFocus,c=this.noOuterFocus,l=Jn({tags:s.slice(),inputAttrs:this.computedInputAttrs,inputType:this.computedInputType,inputHandlers:this.computedInputHandlers,removeTag:this.removeTag,addTag:this.addTag,reset:this.reset,inputId:o,isInvalid:this.hasInvalidTags,invalidTags:this.invalidTags.slice(),isDuplicate:this.hasDuplicateTags,duplicateTags:this.duplicateTags.slice(),isLimitReached:this.isLimitReached,disableAddButton:this.disableAddButton},Zi(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),d=this.normalizeSlot(_r,l)||this.defaultRender(l),f=e("output",{staticClass:"sr-only",attrs:{id:this.safeId("__selected_tags__"),role:"status",for:o,"aria-live":u?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"}},this.tags.join(", ")),p=e("div",{staticClass:"sr-only",attrs:{id:this.safeId("__removed_tags__"),role:"status","aria-live":u?"assertive":"off","aria-atomic":"true"}},this.removedTags.length>0?"(".concat(this.tagRemovedLabel,") ").concat(this.removedTags.join(", ")):""),m=e();if(r&&!n){var b=s.length>0;m=(b?s:[""]).map(function(_){return e("input",{class:{"sr-only":!b},attrs:{type:b?"hidden":"text",value:_,required:i,name:r,form:a},key:"tag_input_".concat(_)})})}return e("div",{staticClass:"b-form-tags form-control h-auto",class:[{focus:u&&!c&&!n,disabled:n},this.sizeFormClass,this.stateClass],attrs:{id:this.safeId(),role:"group",tabindex:n||c?null:"-1","aria-describedby":this.safeId("__selected_tags__")},on:{click:this.onClick,focusin:this.onFocusin,focusout:this.onFocusout}},[f,p,d,m])}}),qne=pe({components:{BFormTags:qk,BTags:qk,BFormTag:lO,BTag:lO}});function Xk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ao(t){for(var e=1;ef?u:"".concat(f,"px")}},render:function(e){return e("textarea",{class:this.computedClass,style:this.computedStyle,directives:[{name:"b-visible",value:this.visibleCallback,modifiers:{640:!0}}],attrs:this.computedAttrs,domProps:{value:this.localValue},on:this.computedListeners,ref:"input"})}}),Qne=pe({components:{BFormTextarea:Jk,BTextarea:Jk}}),du;function Qk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function sh(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&arguments[1]!==void 0?arguments[1]:!1;if(Ot(r)||Ot(n)||a&&Ot(i))return"";var s=[r,n,a?i:0];return s.map(oie).join(":")},_6=ee(fe(sh(sh(sh(sh({},lt),aie),Zi(b6,["labelIncrement","labelDecrement"])),{},{ariaLabelledby:y(I),disabled:y(B,!1),footerTag:y(I,"footer"),headerTag:y(I,"header"),hidden:y(B,!1),hideHeader:y(B,!1),hour12:y(B,null),labelAm:y(I,"AM"),labelAmpm:y(I,"AM/PM"),labelHours:y(I,"Hours"),labelMinutes:y(I,"Minutes"),labelNoTimeSelected:y(I,"No time selected"),labelPm:y(I,"PM"),labelSeconds:y(I,"Seconds"),labelSelected:y(I,"Selected time"),locale:y(tn),minutesStep:y(le,1),readonly:y(B,!1),secondsStep:y(le,1),showSeconds:y(B,!1)})),r4),w6=G({name:r4,mixins:[pt,iie,Pe],props:_6,data:function(){var e=Vm(this[eD]||"");return{modelHours:e.hours,modelMinutes:e.minutes,modelSeconds:e.seconds,modelAmpm:e.ampm,isLive:!1}},computed:{computedHMS:function(){var e=this.modelHours,r=this.modelMinutes,n=this.modelSeconds;return uie({hours:e,minutes:r,seconds:n},this.showSeconds)},resolvedOptions:function(){var e=Ye(this.locale).filter(Oe),r={hour:tl,minute:tl,second:tl};at(this.hour12)||(r.hour12=!!this.hour12);var n=new Intl.DateTimeFormat(e,r),i=n.resolvedOptions(),a=i.hour12||!1,s=i.hourCycle||(a?"h12":"h23");return{locale:i.locale,hour12:a,hourCycle:s}},computedLocale:function(){return this.resolvedOptions.locale},computedLang:function(){return(this.computedLocale||"").replace(/-u-.*$/,"")},computedRTL:function(){return Bb(this.computedLang)},computedHourCycle:function(){return this.resolvedOptions.hourCycle},is12Hour:function(){return!!this.resolvedOptions.hour12},context:function(){return{locale:this.computedLocale,isRTL:this.computedRTL,hourCycle:this.computedHourCycle,hour12:this.is12Hour,hours:this.modelHours,minutes:this.modelMinutes,seconds:this.showSeconds?this.modelSeconds:0,value:this.computedHMS,formatted:this.formattedTimeString}},valueId:function(){return this.safeId()||null},computedAriaLabelledby:function(){return[this.ariaLabelledby,this.valueId].filter(Oe).join(" ")||null},timeFormatter:function(){var e={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:tl,minute:tl,timeZone:"UTC"};return this.showSeconds&&(e.second=tl),eh(this.computedLocale,e)},numberFormatter:function(){var e=new Intl.NumberFormat(this.computedLocale,{style:"decimal",minimumIntegerDigits:2,minimumFractionDigits:0,maximumFractionDigits:0,notation:"standard"});return e.format},formattedTimeString:function(){var e=this.modelHours,r=this.modelMinutes,n=this.showSeconds&&this.modelSeconds||0;return this.computedHMS?this.timeFormatter(Ir(Date.UTC(0,0,1,e,r,n))):this.labelNoTimeSelected||" "},spinScopedSlots:function(){var e=this.$createElement;return{increment:function(n){var i=n.hasFocus;return e(IM,{props:{scale:i?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(n){var i=n.hasFocus;return e(IM,{props:{flipV:!0,scale:i?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(du={},Ou(du,eD,function(t,e){if(t!==e&&!Ze(Vm(t),Vm(this.computedHMS))){var r=Vm(t),n=r.hours,i=r.minutes,a=r.seconds,s=r.ampm;this.modelHours=n,this.modelMinutes=i,this.modelSeconds=a,this.modelAmpm=s}}),Ou(du,"computedHMS",function(e,r){e!==r&&this.$emit(sie,e)}),Ou(du,"context",function(e,r){Ze(e,r)||this.$emit(rd,e)}),Ou(du,"modelAmpm",function(e,r){var n=this;if(e!==r){var i=Ot(this.modelHours)?0:this.modelHours;this.$nextTick(function(){e===0&&i>11?n.modelHours=i-12:e===1&&i<12&&(n.modelHours=i+12)})}}),Ou(du,"modelHours",function(e,r){e!==r&&(this.modelAmpm=e>11?1:0)}),du),created:function(){var e=this;this.$nextTick(function(){e.$emit(rd,e.context)})},mounted:function(){this.setLive(!0)},activated:function(){this.setLive(!0)},deactivated:function(){this.setLive(!1)},beforeDestroy:function(){this.setLive(!1)},methods:{focus:function(){this.disabled||Ie(this.$refs.spinners[0])},blur:function(){if(!this.disabled){var e=Fo();fr(this.$el,e)&&Hn(e)}},formatHours:function(e){var r=this.computedHourCycle;return e=this.is12Hour&&e>12?e-12:e,e=e===0&&r==="h12"?12:e===0&&r==="h24"?24:e===12&&r==="h11"?0:e,this.numberFormatter(e)},formatMinutes:function(e){return this.numberFormatter(e)},formatSeconds:function(e){return this.numberFormatter(e)},formatAmpm:function(e){return e===0?this.labelAm:e===1?this.labelPm:""},setHours:function(e){this.modelHours=e},setMinutes:function(e){this.modelMinutes=e},setSeconds:function(e){this.modelSeconds=e},setAmpm:function(e){this.modelAmpm=e},onSpinLeftRight:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.type,n=e.keyCode;if(!this.disabled&&r==="keydown"&&(n===qi||n===ks)){ke(e);var i=this.$refs.spinners||[],a=i.map(function(s){return!!s.hasFocus}).indexOf(!0);a=a+(n===qi?-1:1),a=a>=i.length?0:a<0?i.length-1:a,Ie(i[a])}},setLive:function(e){var r=this;e?this.$nextTick(function(){st(function(){r.isLive=!0})}):this.isLive=!1}},render:function(e){var r=this;if(this.hidden)return e();var n=this.disabled,i=this.readonly,a=this.computedLocale,s=this.computedAriaLabelledby,o=this.labelIncrement,u=this.labelDecrement,c=this.valueId,l=this.focus,d=[],f=function(h,v,g){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=r.safeId("_spinbutton_".concat(v,"_"))||null;return d.push(C),e(cO,Ou({class:g,props:sh({id:C,placeholder:"--",vertical:!0,required:!0,disabled:n,readonly:i,locale:a,labelIncrement:o,labelDecrement:u,wrap:!0,ariaControls:c,min:0},T),scopedSlots:r.spinScopedSlots,on:{change:h},key:v,ref:"spinners"},EE,!0))},p=function(){return e("div",{staticClass:"d-flex flex-column",class:{"text-muted":n||i},attrs:{"aria-hidden":"true"}},[e(HS,{props:{shiftV:4,scale:.5}}),e(HS,{props:{shiftV:-4,scale:.5}})])},m=[];m.push(f(this.setHours,"hours","b-time-hours",{value:this.modelHours,max:23,step:1,formatterFn:this.formatHours,ariaLabel:this.labelHours})),m.push(p()),m.push(f(this.setMinutes,"minutes","b-time-minutes",{value:this.modelMinutes,max:59,step:this.minutesStep||1,formatterFn:this.formatMinutes,ariaLabel:this.labelMinutes})),this.showSeconds&&(m.push(p()),m.push(f(this.setSeconds,"seconds","b-time-seconds",{value:this.modelSeconds,max:59,step:this.secondsStep||1,formatterFn:this.formatSeconds,ariaLabel:this.labelSeconds}))),this.isLive&&this.is12Hour&&m.push(f(this.setAmpm,"ampm","b-time-ampm",{value:this.modelAmpm,max:1,formatterFn:this.formatAmpm,ariaLabel:this.labelAmpm,required:!1})),m=e("div",{staticClass:"d-flex align-items-center justify-content-center mx-auto",attrs:{role:"group",tabindex:n||i?null:"-1","aria-labelledby":s},on:{keydown:this.onSpinLeftRight,click:function(h){h.target===h.currentTarget&&l()}}},m);var b=e("output",{staticClass:"form-control form-control-sm text-center",class:{disabled:n||i},attrs:{id:c,role:"status",for:d.filter(Oe).join(" ")||null,tabindex:n?null:"-1","aria-live":this.isLive?"polite":"off","aria-atomic":"true"},on:{click:l,focus:l}},[e("bdi",this.formattedTimeString),this.computedHMS?e("span",{staticClass:"sr-only"}," (".concat(this.labelSelected,") ")):""]),_=e(this.headerTag,{staticClass:"b-time-header",class:{"sr-only":this.hideHeader}},[b]),S=this.normalizeSlot(),E=S?e(this.footerTag,{staticClass:"b-time-footer"},S):e();return e("div",{staticClass:"b-time d-inline-flex flex-column text-center",attrs:{role:"group",lang:this.computedLang||null,"aria-labelledby":s||null,"aria-disabled":n?"true":null,"aria-readonly":i&&!n?"true":null}},[_,m,E])}}),Um;function tD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function vs(t){for(var e=1;e0&&o.push(e("span"," "));var c=this.labelResetButton;o.push(e(Nn,{props:{size:"sm",disabled:n||i,variant:this.resetButtonVariant},attrs:{"aria-label":c||null},on:{click:this.onResetButton},key:"reset-btn"},c))}if(!this.noCloseButton){o.length>0&&o.push(e("span"," "));var l=this.labelCloseButton;o.push(e(Nn,{props:{size:"sm",disabled:n,variant:this.closeButtonVariant},attrs:{"aria-label":l||null},on:{click:this.onCloseButton},key:"close-btn"},l))}o.length>0&&(o=[e("div",{staticClass:"b-form-date-controls d-flex flex-wrap",class:{"justify-content-between":o.length>1,"justify-content-end":o.length<2}},o)]);var d=e(w6,{staticClass:"b-form-time-control",props:vs(vs({},xt(S6,a)),{},{value:r,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},o);return e(Qj,{staticClass:"b-form-timepicker",props:vs(vs({},xt(O6,a)),{},{id:this.safeId(),value:r,formattedValue:r?this.formattedValue:"",placeholder:s,rtl:this.isRTL,lang:this.computedLang}),on:{show:this.onShow,shown:this.onShown,hidden:this.onHidden},scopedSlots:rv({},Ms,this.$scopedSlots[Ms]||this.defaultButtonFn),ref:"control"},[d])}}),hie=pe({components:{BFormTimepicker:nD,BTimepicker:nD}}),pie=pe({components:{BImg:GE,BImgLazy:gj}}),mie=ee({tag:y(I,"div")},wF),w0=G({name:wF,functional:!0,props:mie,render:function(e,r){var n=r.props,i=r.data,a=r.children;return e(n.tag,ve(i,{staticClass:"input-group-text"}),a)}}),cx=ee({append:y(B,!1),id:y(I),isText:y(B,!1),tag:y(I,"div")},bF),lx=G({name:bF,functional:!0,props:cx,render:function(e,r){var n=r.props,i=r.data,a=r.children,s=n.append;return e(n.tag,ve(i,{class:{"input-group-append":s,"input-group-prepend":!s},attrs:{id:n.id}}),n.isText?[e(w0,a)]:a)}});function iD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function aD(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function Xie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dx=G({mixins:[qo],computed:{scopedStyleAttrs:function(){var e=cd(this.bvParent);return e?Xie({},e,""):{}}}});function fD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function hD(t){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{},i=e.$root?e.$root.$options.bvEventRoot||e.$root:null;return new r(hD(hD({},n),{},{parent:e,bvParent:e,bvEventRoot:i}))},Qie=G({abstract:!0,name:DX,props:{nodes:y(_4)},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){nQ(this.$el)},render:function(e){var r=this.updatedNodes,n=be(r)?r({}):r;return n=Ye(n).filter(Oe),n&&n.length>0&&!n[0].text?n[0]:e()}}),M6={container:y([To,I],"body"),disabled:y(B,!1),tag:y(I,"div")},Zie=G({name:i4,mixins:[Pe],props:M6,watch:{disabled:{immediate:!0,handler:function(e){e?this.unmountTarget():this.$nextTick(this.mountTarget)}}},created:function(){this.$_defaultFn=null,this.$_target=null},beforeMount:function(){this.mountTarget()},updated:function(){this.updateTarget()},beforeDestroy:function(){this.unmountTarget(),this.$_defaultFn=null},methods:{getContainer:function(){if(ht){var e=this.container;return We(e)?si(e):e}else return null},mountTarget:function(){if(!this.$_target){var e=this.getContainer();if(e){var r=document.createElement("div");e.appendChild(r),this.$_target=Xo(this,Qie,{el:r,propsData:{nodes:Ye(this.normalizeSlot())}})}}},updateTarget:function(){if(ht&&this.$_target){var e=this.$scopedSlots.default;this.disabled||(e&&this.$_defaultFn!==e?this.$_target.updatedNodes=e:e||(this.$_target.updatedNodes=this.$slots.default)),this.$_defaultFn=e}},unmountTarget:function(){this.$_target&&this.$_target.$destroy(),this.$_target=null}},render:function(e){if(this.disabled){var r=Ye(this.normalizeSlot()).filter(Oe);if(r.length>0&&!r[0].text)return r[0]}return e()}}),eae=G({name:i4,mixins:[Pe],props:M6,render:function(e){if(this.disabled){var r=Ye(this.normalizeSlot()).filter(Oe);if(r.length>0)return r[0]}return e(Ne.Teleport,{to:this.container},this.normalizeSlot())}}),tae=yn?eae:Zie;function fO(t){"@babel/helpers - typeof";return fO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fO(t)}function pD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function mD(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ld(t){return ld=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},ld(t)}var lae=function(t){sae(r,t);var e=oae(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return nae(this,r),i=e.call(this,n,a),Ab($6(i),{trigger:Oi()}),i}return iae(r,null,[{key:"Defaults",get:function(){return mD(mD({},iv(ld(r),"Defaults",this)),{},{trigger:null})}}]),r}(Oc),vD=1040,dae=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fae=".sticky-top",hae=".navbar-toggler",pae=G({data:function(){return{modals:[],baseZIndex:null,scrollbarWidth:null,isBodyOverflowing:!1}},computed:{modalCount:function(){return this.modals.length},modalsAreOpen:function(){return this.modalCount>0}},watch:{modalCount:function(e,r){ht&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),dn(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),qr(document.body,"modal-open")),$t(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),st(function(){r.updateModals(e||[])})}},methods:{registerModal:function(e){e&&this.modals.indexOf(e)===-1&&this.modals.push(e)},unregisterModal:function(e){var r=this.modals.indexOf(e);r>-1&&(this.modals.splice(r,1),!e._isBeingDestroyed&&!e._isDestroyed&&this.resetModal(e))},getBaseZIndex:function(){if(ht&&Ot(this.baseZIndex)){var e=document.createElement("div");dn(e,"modal-backdrop"),dn(e,"d-none"),Ur(e,"display","none"),document.body.appendChild(e),this.baseZIndex=oe(ni(e).zIndex,vD),document.body.removeChild(e)}return this.baseZIndex||vD},getScrollbarWidth:function(){if(ht&&Ot(this.scrollbarWidth)){var e=document.createElement("div");dn(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=uc(e).width-e.clientWidth,document.body.removeChild(e)}return this.scrollbarWidth||0},updateModals:function(e){var r=this,n=this.getBaseZIndex(),i=this.getScrollbarWidth();e.forEach(function(a,s){a.zIndex=n+s,a.scrollbarWidth=i,a.isTop=s===r.modals.length-1,a.isBodyOverflowing=r.isBodyOverflowing})},resetModal:function(e){e&&(e.zIndex=this.getBaseZIndex(),e.isTop=!0,e.isBodyOverflowing=!1)},checkScrollbar:function(){var e=uc(document.body),r=e.left,n=e.right;this.isBodyOverflowing=r+n0&&arguments[0]!==void 0?arguments[0]:!1;this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,e&&(this.$_observer=np(this.$refs.content,this.checkModalOverflow.bind(this),Oae))},updateModel:function(e){e!==this[Fw]&&this.$emit(vae,e)},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new lae(e,fo(fo({cancelable:!1,target:this.$refs.modal||this.$el||null,relatedTarget:null,trigger:null},r),{},{vueTarget:this,componentId:this.modalId}))},show:function(){if(!(this.isVisible||this.isOpening)){if(this.isClosing){this.$once(Qt,this.show);return}this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var e=this.buildEvent(Fr,{cancelable:!0});if(this.emitEvent(e),e.defaultPrevented||this.isVisible){this.isOpening=!1,this.updateModel(!1);return}this.doShow()}},hide:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(!(!this.isVisible||this.isClosing)){this.isClosing=!0;var r=this.buildEvent(In,{cancelable:e!==_ae,trigger:e||null});if(e===ov?this.$emit(HX,r):e===av?this.$emit(RX,r):e===sv&&this.$emit($S,r),this.emitEvent(r),r.defaultPrevented||!this.isVisible){this.isClosing=!1,this.updateModel(!0);return}this.setObserver(!1),this.isVisible=!1,this.updateModel(!1)}},toggle:function(e){e&&(this.$_returnFocus=e),this.isVisible?this.hide(wae):this.show()},getActiveElement:function(){var e=Fo(ht?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(rl.modalsAreOpen&&this.noStacking){this.listenOnRootOnce(zt(Pn,Qt),this.doShow);return}rl.registerModal(this),this.isHidden=!1,this.$nextTick(function(){e.isVisible=!0,e.isOpening=!1,e.updateModel(!0),e.$nextTick(function(){e.setObserver(!0)})})},onBeforeEnter:function(){this.isTransitioning=!0,this.setResizeEvent(!0)},onEnter:function(){var e=this;this.isBlock=!0,st(function(){st(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,st(function(){e.emitEvent(e.buildEvent(pn)),e.setEnforceFocus(!0),e.$nextTick(function(){e.focusFirst()})})},onBeforeLeave:function(){this.isTransitioning=!0,this.setResizeEvent(!1),this.setEnforceFocus(!1)},onLeave:function(){this.isShow=!1},onAfterLeave:function(){var e=this;this.isBlock=!1,this.isTransitioning=!1,this.isModalOverflowing=!1,this.isHidden=!0,this.$nextTick(function(){e.isClosing=!1,rl.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent(Qt))})},emitEvent:function(e){var r=e.type;this.emitOnRoot(zt(Pn,r),e,e.componentId),this.$emit(r,e)},onDialogMousedown:function(){var e=this,r=this.$refs.modal,n=function i(a){Dt(r,"mouseup",i,Ue),a.target===r&&(e.ignoreBackdropClick=!0)};Tt(r,"mouseup",n,Ue)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!fr(document.body,e.target)||fr(this.$refs.content,e.target)||this.hide(bae)},onOk:function(){this.hide(ov)},onCancel:function(){this.hide(av)},onClose:function(){this.hide(sv)},onEsc:function(e){e.keyCode===FE&&this.isVisible&&!this.noCloseOnEsc&&this.hide(yae)},focusHandler:function(e){var r=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!r||document===n||fr(r,n)||this.computeIgnoreEnforceFocusSelector&&Rn(this.computeIgnoreEnforceFocusSelector,n,!0))){var i=BS(this.$refs.content),a=this.$refs["bottom-trap"],s=this.$refs["top-trap"];if(a&&n===a){if(Ie(i[0]))return}else if(s&&n===s&&Ie(i[i.length-1]))return;Ie(r,{preventScroll:!0})}},setEnforceFocus:function(e){this.listenDocument(e,"focusin",this.focusHandler)},setResizeEvent:function(e){this.listenWindow(e,"resize",this.checkModalOverflow),this.listenWindow(e,"orientationchange",this.checkModalOverflow)},showHandler:function(e,r){e===this.modalId&&(this.$_returnFocus=r||this.getActiveElement(),this.show())},hideHandler:function(e){e===this.modalId&&this.hide("event")},toggleHandler:function(e,r){e===this.modalId&&this.toggle(r)},modalListener:function(e){this.noStacking&&e.vueTarget!==this&&this.hide()},focusFirst:function(){var e=this;ht&&st(function(){var r=e.$refs.modal,n=e.$refs.content,i=e.getActiveElement();if(r&&n&&!(i&&fr(n,i))){var a=e.$refs["ok-button"],s=e.$refs["cancel-button"],o=e.$refs["close-button"],u=e.autoFocusButton,c=u===ov&&a?a.$el||a:u===av&&s?s.$el||s:u===sv&&o?o.$el||o:n;Ie(c),c===n&&e.$nextTick(function(){r.scrollTop=0})}})},returnFocusTo:function(){var e=this.returnFocus||this.$_returnFocus||null;this.$_returnFocus=null,this.$nextTick(function(){e=We(e)?si(e):e,e&&(e=e.$el||e,Ie(e))})},checkModalOverflow:function(){if(this.isVisible){var e=this.$refs.modal;this.isModalOverflowing=e.scrollHeight>document.documentElement.clientHeight}},makeModal:function(e){var r=e();if(!this.hideHeader){var n=this.normalizeSlot(MJ,this.slotScope);if(!n){var i=e();this.hideHeaderClose||(i=e(cc,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot($J)])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(cw)?{}:Lt(this.titleHtml,this.title)},this.normalizeSlot(cw,this.slotScope)),i]}r=e(this.headerTag,{staticClass:"modal-header",class:this.headerClasses,attrs:{id:this.modalHeaderId},ref:"header"},[n])}var a=e("div",{staticClass:"modal-body",class:this.bodyClasses,attrs:{id:this.modalBodyId},ref:"body"},this.normalizeSlot(_r,this.slotScope)),s=e();if(!this.hideFooter){var o=this.normalizeSlot(AJ,this.slotScope);if(!o){var u=e();this.okOnly||(u=e(Nn,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(fM)?{}:Lt(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(fM)));var c=e(Nn,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(hM)?{}:Lt(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(hM));o=[u,c]}s=e(this.footerTag,{staticClass:"modal-footer",class:this.footerClasses,attrs:{id:this.modalFooterId},ref:"footer"},[o])}var l=e("div",{staticClass:"modal-content",class:this.contentClass,attrs:{id:this.modalContentId,tabindex:"-1"},ref:"content"},[r,a,s]),d=e(),f=e();this.isVisible&&!this.noEnforceFocus&&(d=e("span",{attrs:{tabindex:"0"},ref:"top-trap"}),f=e("span",{attrs:{tabindex:"0"},ref:"bottom-trap"}));var p=e("div",{staticClass:"modal-dialog",class:this.dialogClasses,on:{mousedown:this.onDialogMousedown},ref:"dialog"},[d,l,f]),m=e("div",{staticClass:"modal",class:this.modalClasses,style:this.modalStyles,attrs:this.computedModalAttrs,on:{keydown:this.onEsc,click:this.onClickOut},directives:[{name:"show",value:this.isVisible}],ref:"modal"},[p]);m=e("transition",{props:{enterClass:"",enterToClass:"",enterActiveClass:"",leaveClass:"",leaveActiveClass:"",leaveToClass:""},on:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave}},[m]);var b=e();return!this.hideBackdrop&&this.isVisible&&(b=e("div",{staticClass:"modal-backdrop",attrs:{id:this.modalBackdropId}},this.normalizeSlot(CJ))),b=e(wc,{props:{noFade:this.noFade}},[b]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[xs])},[m,b])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(tae,[this.makeModal(e)])}}),Tae=hr(Pn,Fr),S0="__bv_modal_directive__",I6=function(e){var r=e.modifiers,n=r===void 0?{}:r,i=e.arg,a=e.value;return We(a)?a:We(i)?i:Ce(n).reverse()[0]},R6=function(e){return e&&Ps(e,".dropdown-menu > li, li.nav-item")&&si("a, button",e)||e},L6=function(e){e&&e.tagName!=="BUTTON"&&(Na(e,"role")||$t(e,"role","button"),e.tagName!=="A"&&!Na(e,"tabindex")&&$t(e,"tabindex","0"))},Eae=function(e,r,n){var i=I6(r),a=R6(e);if(i&&a){var s=function(u){var c=u.currentTarget;if(!ku(c)){var l=u.type,d=u.keyCode;(l==="click"||l==="keydown"&&(d===Ns||d===Ka))&&Ua(Ba(n,r)).$emit(Tae,i,c)}};e[S0]={handler:s,target:i,trigger:a},L6(a),Tt(a,"click",s,$n),a.tagName!=="BUTTON"&&oi(a,"role")==="button"&&Tt(a,"keydown",s,$n)}},N6=function(e){var r=e[S0]||{},n=r.trigger,i=r.handler;n&&i&&(Dt(n,"click",i,$n),Dt(n,"keydown",i,$n),Dt(e,"click",i,$n),Dt(e,"keydown",i,$n)),delete e[S0]},yD=function(e,r,n){var i=e[S0]||{},a=I6(r),s=R6(e);(a!==i.target||s!==i.trigger)&&(N6(e),Eae(e,r,n)),L6(s)},xae=function(){},B6={inserted:yD,updated:xae,componentUpdated:yD,unbind:N6};function Pae(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _D(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&arguments[2]!==void 0?arguments[2]:Lae;if(!(Jv(fu)||tM(fu))){var l=Xo(o,r,{propsData:ns(ns(ns({},SD(ii(Pn))),{},{hideHeaderClose:!0,hideHeader:!(u.title||u.titleHtml)},Re(u,Ce(Hw))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return Ce(Hw).forEach(function(d){Zt(u[d])||(l.$slots[Hw[d]]=Ye(u[d]))}),new Promise(function(d,f){var p=!1;l.$once(Jh,function(){p||f(new Error("BootstrapVue MsgBox destroyed before resolve"))}),l.$on(In,function(b){if(!b.defaultPrevented){var _=c(b);b.defaultPrevented||(p=!0,d(_))}});var m=document.createElement("div");document.body.appendChild(m),l.$mount(m)})}},i=function(o,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;if(!(!u||tM(fu)||Jv(fu)||!be(l)))return n(o,ns(ns({},SD(c)),{},{msgBoxContent:u}),l)},a=function(){function s(o){Pae(this,s),Mp(this,{_vm:o,_root:Ua(o)}),Ab(this,{_vm:Oi(),_root:Oi()})}return Cae(s,[{key:"show",value:function(u){if(u&&this._root){for(var c,l=arguments.length,d=new Array(l>1?l-1:0),f=1;f1?l-1:0),f=1;f1&&arguments[1]!==void 0?arguments[1]:{},l=ns(ns({},c),{},{okOnly:!0,okDisabled:!1,hideFooter:!1,msgBoxContent:u});return i(this._vm,u,l,function(){return!0})}},{key:"msgBoxConfirm",value:function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=ns(ns({},c),{},{okOnly:!1,okDisabled:!1,cancelDisabled:!1,hideFooter:!1});return i(this._vm,u,l,function(d){var f=d.trigger;return f==="ok"?!0:f==="cancel"?!1:null})}}]),s}();e.mixin({beforeCreate:function(){this[jw]=new a(this)}}),ic(e.prototype,fu)||CE(e.prototype,fu,{get:function(){return(!this||!this[jw])&&xr('"'.concat(fu,'" must be accessed from a Vue instance "this" context.'),Pn),this[jw]}})},Bae=pe({plugins:{plugin:Nae}}),Fae=pe({components:{BModal:D6},directives:{VBModal:B6},plugins:{BVModalPlugin:Bae}});function OD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jae=function(e){return e=e==="left"?"start":e==="right"?"end":e,"justify-content-".concat(e)},fx=ee({align:y(I),cardHeader:y(B,!1),fill:y(B,!1),justified:y(B,!1),pills:y(B,!1),small:y(B,!1),tabs:y(B,!1),tag:y(I,"ul"),vertical:y(B,!1)},CF),F6=G({name:CF,functional:!0,props:fx,render:function(e,r){var n,i=r.props,a=r.data,s=r.children,o=i.tabs,u=i.pills,c=i.vertical,l=i.align,d=i.cardHeader;return e(i.tag,ve(a,{staticClass:"nav",class:(n={"nav-tabs":o,"nav-pills":u&&!o,"card-header-tabs":!c&&d&&o,"card-header-pills":!c&&d&&u&&!o,"flex-column":c,"nav-fill":!c&&i.fill,"nav-justified":!c&&i.justified},OD(n,jae(l),!c&&l),OD(n,"small",i.small),n)}),s)}});function TD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ED(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0&&e<=1}),overlayTag:y(I,"div"),rounded:y(rn,!1),show:y(B,!1),spinnerSmall:y(B,!1),spinnerType:y(I,"border"),spinnerVariant:y(I),variant:y(I,"light"),wrapTag:y(I,"div"),zIndex:y(le,10)},LF),vse=G({name:LF,mixins:[Pe],props:gse,computed:{computedRounded:function(){var e=this.rounded;return e===!0||e===""?"rounded":e?"rounded-".concat(e):""},computedVariant:function(){var e=this.variant;return e&&!this.bgColor?"bg-".concat(e):""},slotScope:function(){return{spinnerType:this.spinnerType||null,spinnerVariant:this.spinnerVariant||null,spinnerSmall:this.spinnerSmall}}},methods:{defaultOverlayFn:function(e){var r=e.spinnerType,n=e.spinnerVariant,i=e.spinnerSmall;return this.$createElement(V6,{props:{type:r,variant:n,small:i}})}},render:function(e){var r=this,n=this.show,i=this.fixed,a=this.noFade,s=this.noWrap,o=this.slotScope,u=e();if(n){var c=e("div",{staticClass:"position-absolute",class:[this.computedVariant,this.computedRounded],style:Pf(Pf({},Uw),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),l=e("div",{staticClass:"position-absolute",style:this.noCenter?Pf({},Uw):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(jJ,o)||this.defaultOverlayFn(o)]);u=e(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!s||s&&!i,"position-fixed":s&&i},style:Pf(Pf({},Uw),{},{zIndex:this.zIndex||10}),on:{click:function(f){return r.$emit(Mi,f)}},key:"overlay"},[c,l])}return u=e(wc,{props:{noFade:a,appear:!0},on:{"after-enter":function(){return r.$emit(pn)},"after-leave":function(){return r.$emit(Qt)}}},[u]),s?u:e(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},s?[u]:[this.normalizeSlot(),u])}}),bse=pe({components:{BOverlay:vse}}),Cf;function RD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function LD(t){for(var e=1;er?r:n<1?1:n},FD=function(e){if(e.keyCode===Ka)return ke(e,{immediatePropagation:!0}),e.currentTarget.click(),!1},px=ee(fe(LD(LD({},_se),{},{align:y(I,"left"),ariaLabel:y(I,"Pagination"),disabled:y(B,!1),ellipsisClass:y(we),ellipsisText:y(I,"…"),firstClass:y(we),firstNumber:y(B,!1),firstText:y(I,"«"),hideEllipsis:y(B,!1),hideGotoEndButtons:y(B,!1),labelFirstPage:y(I,"Go to first page"),labelLastPage:y(I,"Go to last page"),labelNextPage:y(I,"Go to next page"),labelPage:y(sJ,"Go to page"),labelPrevPage:y(I,"Go to previous page"),lastClass:y(we),lastNumber:y(B,!1),lastText:y(I,"»"),limit:y(le,hx,function(t){return oe(t,0)<1?(xr('Prop "limit" must be a number greater than "0"',Mb),!1):!0}),nextClass:y(we),nextText:y(I,"›"),pageClass:y(we),pills:y(B,!1),prevClass:y(we),prevText:y(I,"‹"),size:y(I)})),"pagination"),U6=G({mixins:[yse,Pe],props:px,data:function(){var e=oe(this[gO],0);return e=e>0?e:-1,{currentPage:e,localNumberOfPages:1,localLimit:hx}},computed:{btnSize:function(){var e=this.size;return e?"pagination-".concat(e):""},alignment:function(){var e=this.align;return e==="center"?"justify-content-center":e==="end"||e==="right"?"justify-content-end":e==="fill"?"text-center":""},styleClass:function(){return this.pills?"b-pagination-pills":""},computedCurrentPage:function(){return BD(this.currentPage,this.localNumberOfPages)},paginationParams:function(){var e=this.localLimit,r=this.localNumberOfPages,n=this.computedCurrentPage,i=this.hideEllipsis,a=this.firstNumber,s=this.lastNumber,o=!1,u=!1,c=e,l=1;r<=e?c=r:nWm?((!i||s)&&(u=!0,c=e-(a?0:1)),c=Ss(c,e)):r-n+2Wm?((!i||a)&&(o=!0,c=e-(s?0:1)),l=r-c+1):(e>Wm&&(c=e-(i?0:2),o=!!(!i||a),u=!!(!i||s)),l=n-tp(c/2)),l<1?(l=1,o=!1):l>r-c&&(l=r-c+1,u=!1),o&&a&&l<4&&(c=c+2,l=1,o=!1);var d=l+c-1;return u&&s&&d>r-3&&(c=c+(d===r-2?2:3),u=!1),e<=Wm&&(a&&l===1?c=Ss(c+1,r,e+1):s&&r===l+c-1&&(l=Qe(l-1,1),c=Ss(r-l+1,r,e+1))),c=Ss(c,r-l+1),{showFirstDots:o,showLastDots:u,numberOfLinks:c,startNumber:l}},pageList:function(){var e=this.paginationParams,r=e.numberOfLinks,n=e.startNumber,i=this.computedCurrentPage,a=Sse(n,r);if(a.length>3){var s=i-n,o="bv-d-xs-down-none";if(s===0)for(var u=3;us+1;d--)a[d].classes=o}}return a}},watch:(Cf={},uv(Cf,gO,function(t,e){t!==e&&(this.currentPage=BD(t,this.localNumberOfPages))}),uv(Cf,"currentPage",function(e,r){e!==r&&this.$emit(wse,e>0?e:null)}),uv(Cf,"limit",function(e,r){e!==r&&(this.localLimit=ND(e))}),Cf),created:function(){var e=this;this.localLimit=ND(this.limit),this.$nextTick(function(){e.currentPage=e.currentPage>e.localNumberOfPages?e.localNumberOfPages:e.currentPage})},methods:{handleKeyNav:function(e){var r=e.keyCode,n=e.shiftKey;this.isNav||(r===qi||r===Ln?(ke(e,{propagation:!1}),n?this.focusFirst():this.focusPrev()):(r===ks||r===gn)&&(ke(e,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return ci("button.page-link, a.page-link",this.$el).filter(function(e){return Yi(e)})},focusCurrent:function(){var e=this;this.$nextTick(function(){var r=e.getButtons().find(function(n){return oe(oi(n,"aria-posinset"),0)===e.computedCurrentPage});Ie(r)||e.focusFirst()})},focusFirst:function(){var e=this;this.$nextTick(function(){var r=e.getButtons().find(function(n){return!ku(n)});Ie(r)})},focusLast:function(){var e=this;this.$nextTick(function(){var r=e.getButtons().reverse().find(function(n){return!ku(n)});Ie(r)})},focusPrev:function(){var e=this;this.$nextTick(function(){var r=e.getButtons(),n=r.indexOf(Fo());n>0&&!ku(r[n-1])&&Ie(r[n-1])})},focusNext:function(){var e=this;this.$nextTick(function(){var r=e.getButtons(),n=r.indexOf(Fo());nu,R=k<1?1:k>u?u:k,N={disabled:M,page:R,index:R-1},j=r.normalizeSlot(A,N)||_e(P)||e(),z=e(M?"span":o?Fn:"button",{staticClass:"page-link",class:{"flex-grow-1":!o&&!M&&m},props:M||!o?{}:r.linkProps(k),attrs:{role:o?null:"menuitem",type:o||M?null:"button",tabindex:M||o?null:"-1","aria-label":w,"aria-controls":qt(r).ariaControls||null,"aria-disabled":M?"true":null},on:M?{}:{"!click":function(J){r.onClick(J,k)},keydown:FD}},[j]);return e("li",{key:D,staticClass:"page-item",class:[{disabled:M,"flex-fill":m,"d-flex":m&&!o&&!M},x],attrs:{role:o?null:"presentation","aria-hidden":M?"true":null}},[z])},O=function(k){return e("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",m?"flex-fill":"",r.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(k?"last":"first")},[e("span",{staticClass:"page-link"},[r.normalizeSlot(mJ)||_e(r.ellipsisText)||e()])])},h=function(k,w){var A=k.number,P=_(A)&&!S,x=i?null:P||S&&w===0?"0":"-1",$={role:o?null:"menuitemradio",type:o||i?null:"button","aria-disabled":i?"true":null,"aria-controls":qt(r).ariaControls||null,"aria-label":Va(a)?a(A):"".concat(be(a)?a():a," ").concat(A),"aria-checked":o?null:P?"true":"false","aria-current":o&&P?"page":null,"aria-posinset":o?null:A,"aria-setsize":o?null:u,tabindex:o?null:x},D=_e(r.makePage(A)),M={page:A,index:A-1,content:D,active:P,disabled:i},R=e(i?"span":o?Fn:"button",{props:i||!o?{}:r.linkProps(A),staticClass:"page-link",class:{"flex-grow-1":!o&&!i&&m},attrs:$,on:i?{}:{"!click":function(j){r.onClick(j,A)},keydown:FD}},[r.normalizeSlot(HJ,M)||D]);return e("li",{staticClass:"page-item",class:[{disabled:i,active:P,"flex-fill":m,"d-flex":m&&!o&&!i},k.classes,r.pageClass],attrs:{role:o?null:"presentation"},key:"page-".concat(A)},[R])},v=e();!this.firstNumber&&!this.hideGotoEndButtons&&(v=E(1,this.labelFirstPage,vJ,this.firstText,this.firstClass,1,"pagination-goto-first")),b.push(v),b.push(E(c-1,this.labelPrevPage,VJ,this.prevText,this.prevClass,1,"pagination-goto-prev")),b.push(this.firstNumber&&l[0]!==1?h({number:1},0):e()),b.push(f?O(!1):e()),this.pageList.forEach(function(C,k){var w=f&&r.firstNumber&&l[0]!==1?1:0;b.push(h(C,k+w))}),b.push(p?O(!0):e()),b.push(this.lastNumber&&l[l.length-1]!==u?h({number:u},-1):e()),b.push(E(c+1,this.labelNextPage,FJ,this.nextText,this.nextClass,u,"pagination-goto-next"));var g=e();!this.lastNumber&&!this.hideGotoEndButtons&&(g=E(u,this.labelLastPage,xJ,this.lastText,this.lastClass,u,"pagination-goto-last")),b.push(g);var T=e("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:o?null:"menubar","aria-disabled":i?"true":"false","aria-label":o?null:s||null},on:o?{}:{keydown:this.handleKeyNav},ref:"ul"},b);return o?e("nav",{attrs:{"aria-disabled":i?"true":null,"aria-hidden":i?"true":"false","aria-label":o&&s||null}},[T]):T}});function jD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function HD(t){for(var e=1;ee.numberOfPages&&(this.currentPage=1)),this.localNumberOfPages=e.numberOfPages}},created:function(){var e=this;this.localNumberOfPages=this.numberOfPages;var r=oe(this[gO],0);r>0?this.currentPage=r:this.$nextTick(function(){e.currentPage=0})},methods:{onClick:function(e,r){var n=this;if(r!==this.currentPage){var i=e.target,a=new Oc(h4,{cancelable:!0,vueTarget:this,target:i});this.$emit(a.type,a,r),!a.defaultPrevented&&(this.currentPage=r,this.$emit(Bn,this.currentPage),this.$nextTick(function(){Yi(i)&&n.$el.contains(i)?Ie(i):n.focusCurrent()}))}},makePage:function(e){return e},linkProps:function(){return{}}}}),xse=pe({components:{BPagination:Ese}});function UD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Gw(t){for(var e=1;e0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=Cse(this.numberOfPages),this.$nextTick(function(){e.guessCurrentPage()})},onClick:function(e,r){var n=this;if(r!==this.currentPage){var i=e.currentTarget||e.target,a=new Oc(h4,{cancelable:!0,vueTarget:this,target:i});this.$emit(a.type,a,r),!a.defaultPrevented&&(st(function(){n.currentPage=r,n.$emit(Bn,r)}),this.$nextTick(function(){Hn(i)}))}},getPageInfo:function(e){if(!nt(this.pages)||this.pages.length===0||Zt(this.pages[e-1])){var r="".concat(this.baseUrl).concat(e);return{link:this.useRouter?{path:r}:r,text:_e(e)}}var n=this.pages[e-1];if(Jt(n)){var i=n.link;return{link:Jt(i)?i:this.useRouter?{path:i}:i,text:_e(n.text||e)}}else return{link:_e(n),text:_e(e)}},makePage:function(e){var r=this.pageGen,n=this.getPageInfo(e);return Va(r)?r(e,n):n.text},makeLink:function(e){var r=this.linkGen,n=this.getPageInfo(e);return Va(r)?r(e,n):n.link},linkProps:function(e){var r=xt(Y6,this),n=this.makeLink(e);return this.useRouter||Jt(n)?r.to=n:r.href=n,r},resolveLink:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r;try{r=document.createElement("a"),r.href=F4({to:e},"a","/","/"),document.body.appendChild(r);var n=r,i=n.pathname,a=n.hash,s=n.search;return document.body.removeChild(r),{path:i,hash:a,query:xM(s)}}catch{try{r&&r.parentNode&&r.parentNode.removeChild(r)}catch{}return{}}},resolveRoute:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";try{var r=this.$router.resolve(e,this.$route).route;return{path:r.path,hash:r.hash,query:r.query}}catch{return{}}},guessCurrentPage:function(){var e=this.$router,r=this.$route,n=this.computedValue;if(!this.noPageDetect&&!n&&(ht||!ht&&e))for(var i=e&&r?{path:r.path,hash:r.hash,query:r.query}:{},a=ht?window.location||document.location:null,s=a?{path:a.pathname,hash:a.hash,query:xM(a.search)}:{},o=1;!n&&o<=this.localNumberOfPages;o++){var u=this.makeLink(o);e&&(Jt(u)||this.useRouter)?n=Ze(this.resolveRoute(u),i)?o:null:ht?n=Ze(this.resolveLink(u),s)?o:null:n=-1}this.currentPage=n>0?n:0}}}),$se=pe({components:{BPaginationNav:Mse}}),kse={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left",TOPLEFT:"top",TOPRIGHT:"top",RIGHTTOP:"right",RIGHTBOTTOM:"right",BOTTOMLEFT:"bottom",BOTTOMRIGHT:"bottom",LEFTTOP:"left",LEFTBOTTOM:"left"},Dse={AUTO:0,TOPLEFT:-1,TOP:0,TOPRIGHT:1,RIGHTTOP:-1,RIGHT:0,RIGHTBOTTOM:1,BOTTOMLEFT:-1,BOTTOM:0,BOTTOMRIGHT:1,LEFTTOP:-1,LEFT:0,LEFTBOTTOM:1},Ise={arrowPadding:y(le,6),boundary:y([To,I],"scrollParent"),boundaryPadding:y(le,5),fallbackPlacement:y(tn,"flip"),offset:y(le,0),placement:y(I,"top"),target:y([To,oB])},Rse=G({name:PX,mixins:[qo],props:Ise,data:function(){return{noFade:!1,localShow:!0,attachment:this.getAttachment(this.placement)}},computed:{templateType:function(){return"unknown"},popperConfig:function(){var e=this,r=this.placement;return{placement:this.getAttachment(r),modifiers:{offset:{offset:this.getOffset(r)},flip:{behavior:this.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{padding:this.boundaryPadding,boundariesElement:this.boundary}},onCreate:function(i){i.originalPlacement!==i.placement&&e.popperPlacementChange(i)},onUpdate:function(i){e.popperPlacementChange(i)}}}},created:function(){var e=this;this.$_popper=null,this.localShow=!0,this.$on(Fr,function(n){e.popperCreate(n)});var r=function(){e.$nextTick(function(){st(function(){e.$destroy()})})};this.bvParent.$once(Jh,r),this.$once(Qt,r)},beforeMount:function(){this.attachment=this.getAttachment(this.placement)},updated:function(){this.updatePopper()},beforeDestroy:function(){this.destroyPopper()},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},methods:{hide:function(){this.localShow=!1},getAttachment:function(e){return kse[String(e).toUpperCase()]||"auto"},getOffset:function(e){if(!this.offset){var r=this.$refs.arrow||si(".arrow",this.$el),n=Be(ni(r).width,0)+Be(this.arrowPadding,0);switch(Dse[String(e).toUpperCase()]||0){case 1:return"+50%p - ".concat(n,"px");case-1:return"-50%p + ".concat(n,"px");default:return 0}}return this.offset},popperCreate:function(e){this.destroyPopper(),this.$_popper=new rO(this.target,e,this.popperConfig)},destroyPopper:function(){this.$_popper&&this.$_popper.destroy(),this.$_popper=null},updatePopper:function(){this.$_popper&&this.$_popper.scheduleUpdate()},popperPlacementChange:function(e){this.attachment=this.getAttachment(e.placement)},renderTemplate:function(e){return e("div")}},render:function(e){var r=this,n=this.noFade;return e(wc,{props:{appear:!0,noFade:n},on:{beforeEnter:function(a){return r.$emit(Fr,a)},afterEnter:function(a){return r.$emit(pn,a)},beforeLeave:function(a){return r.$emit(In,a)},afterLeave:function(a){return r.$emit(Qt,a)}}},[this.localShow?this.renderTemplate(e):e()])}});function GD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function WD(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{},n=!1;Ce(KD).forEach(function(i){!Zt(r[i])&&e[i]!==r[i]&&(e[i]=r[i],i==="title"&&(n=!0))}),n&&this.localShow&&this.fixTitle()},createTemplateAndShow:function(){var e=this.getContainer(),r=this.getTemplate(),n=this.$_tip=Xo(this,r,{propsData:{id:this.computedId,html:this.html,placement:this.placement,fallbackPlacement:this.fallbackPlacement,target:this.getPlacementTarget(),boundary:this.getBoundary(),offset:oe(this.offset,0),arrowPadding:oe(this.arrowPadding,0),boundaryPadding:oe(this.boundaryPadding,0)}});this.handleTemplateUpdate(),n.$once(Fr,this.onTemplateShow),n.$once(pn,this.onTemplateShown),n.$once(In,this.onTemplateHide),n.$once(Qt,this.onTemplateHidden),n.$once(Jh,this.destroyTemplate),n.$on(Qv,this.handleEvent),n.$on(Zv,this.handleEvent),n.$on(l4,this.handleEvent),n.$on(d4,this.handleEvent),n.$mount(e.appendChild(document.createElement("div")))},hideTemplate:function(){this.$_tip&&this.$_tip.hide(),this.clearActiveTriggers(),this.$_hoverState=""},destroyTemplate:function(){this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.localPlacementTarget=null;try{this.$_tip.$destroy()}catch{}this.$_tip=null,this.removeAriaDescribedby(),this.restoreTitle(),this.localShow=!1},getTemplateElement:function(){return this.$_tip?this.$_tip.$el:null},handleTemplateUpdate:function(){var e=this,r=this.$_tip;if(r){var n=["title","content","variant","customClass","noFade","interactive"];n.forEach(function(i){r[i]!==e[i]&&(r[i]=e[i])})}},show:function(){var e=this.getTarget();if(!(!e||!fr(document.body,e)||!Yi(e)||this.dropdownOpen()||(at(this.title)||this.title==="")&&(at(this.content)||this.content===""))&&!(this.$_tip||this.localShow)){this.localShow=!0;var r=this.buildEvent(Fr,{cancelable:!0});if(this.emitEvent(r),r.defaultPrevented){this.destroyTemplate();return}this.fixTitle(),this.addAriaDescribedby(),this.createTemplateAndShow()}},hide:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.getTemplateElement();if(!r||!this.localShow){this.restoreTitle();return}var n=this.buildEvent(In,{cancelable:!e});this.emitEvent(n),!n.defaultPrevented&&this.hideTemplate()},forceHide:function(){var e=this.getTemplateElement();!e||!this.localShow||(this.setWhileOpenListeners(!1),this.clearHoverTimeout(),this.$_hoverState="",this.clearActiveTriggers(),this.$_tip&&(this.$_tip.noFade=!0),this.hide(!0))},enable:function(){this.$_enabled=!0,this.emitEvent(this.buildEvent(Vg))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(zg))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var e=this.$_hoverState;this.$_hoverState="",e==="out"&&this.leave(null),this.emitEvent(this.buildEvent(pn))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(Qt))},getTarget:function(){var e=this.target;return We(e)?e=LS(e.replace(/^#/,"")):be(e)?e=e():e&&(e=e.$el||e),_t(e)?e:null},getPlacementTarget:function(){return this.getTarget()},getTargetId:function(){var e=this.getTarget();return e&&e.id?e.id:null},getContainer:function(){var e=this.container?this.container.$el||this.container:!1,r=document.body,n=this.getTarget();return e===!1?Rn(jse,n)||r:We(e)&&LS(e.replace(/^#/,""))||r},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var e=this.getTarget();return e&&Rn(q6,e)},isDropdown:function(){var e=this.getTarget();return e&&Zh(e,Hse)},dropdownOpen:function(){var e=this.getTarget();return this.isDropdown()&&e&&si(zse,e)},clearHoverTimeout:function(){clearTimeout(this.$_hoverTimeout),this.$_hoverTimeout=null},clearVisibilityInterval:function(){clearInterval(this.$_visibleInterval),this.$_visibleInterval=null},clearActiveTriggers:function(){for(var e in this.activeTrigger)this.activeTrigger[e]=!1},addAriaDescribedby:function(){var e=this.getTarget(),r=oi(e,"aria-describedby")||"";r=r.split(/\s+/).concat(this.computedId).join(" ").trim(),$t(e,"aria-describedby",r)},removeAriaDescribedby:function(){var e=this,r=this.getTarget(),n=oi(r,"aria-describedby")||"";n=n.split(/\s+/).filter(function(i){return i!==e.computedId}).join(" ").trim(),n?$t(r,"aria-describedby",n):La(r,"aria-describedby")},fixTitle:function(){var e=this.getTarget();if(Na(e,"title")){var r=oi(e,"title");$t(e,"title",""),r&&$t(e,Ym,r)}},restoreTitle:function(){var e=this.getTarget();if(Na(e,Ym)){var r=oi(e,Ym);La(e,Ym),r&&$t(e,"title",r)}},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Oc(e,Ww({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},r))},emitEvent:function(e){var r=e.type;this.emitOnRoot(zt(this.templateType,r),e),this.$emit(r,e)},listen:function(){var e=this,r=this.getTarget();r&&(this.setRootListener(!0),this.computedTriggers.forEach(function(n){n==="click"?Tt(r,"click",e.handleEvent,Ue):n==="focus"?(Tt(r,"focusin",e.handleEvent,Ue),Tt(r,"focusout",e.handleEvent,Ue)):n==="blur"?Tt(r,"focusout",e.handleEvent,Ue):n==="hover"&&(Tt(r,"mouseenter",e.handleEvent,Ue),Tt(r,"mouseleave",e.handleEvent,Ue))},this))},unListen:function(){var e=this,r=["click","focusin","focusout","mouseenter","mouseleave"],n=this.getTarget();this.setRootListener(!1),r.forEach(function(i){n&&Dt(n,i,e.handleEvent,Ue)},this)},setRootListener:function(e){var r=e?"listenOnRoot":"listenOffRoot",n=this.templateType;this[r](hr(n,In),this.doHide),this[r](hr(n,Fr),this.doShow),this[r](hr(n,kS),this.doDisable),this[r](hr(n,DS),this.doEnable)},setWhileOpenListeners:function(e){this.setModalListener(e),this.setDropdownListener(e),this.visibleCheck(e),this.setOnTouchStartListener(e)},visibleCheck:function(e){var r=this;this.clearVisibilityInterval();var n=this.getTarget();e&&(this.$_visibleInterval=setInterval(function(){var i=r.getTemplateElement();i&&r.localShow&&(!n.parentNode||!Yi(n))&&r.forceHide()},100))},setModalListener:function(e){this.isInModal()&&this[e?"listenOnRoot":"listenOffRoot"](Bse,this.forceHide)},setOnTouchStartListener:function(e){var r=this;"ontouchstart"in document.documentElement&&oc(document.body.children).forEach(function(n){Ki(e,n,"mouseover",r.$_noop)})},setDropdownListener:function(e){var r=this.getTarget();if(!(!r||!this.bvEventRoot||!this.isDropdown)){var n=Kte(r);n&&n[e?"$on":"$off"](pn,this.forceHide)}},handleEvent:function(e){var r=this.getTarget();if(!(!r||ku(r)||!this.$_enabled||this.dropdownOpen())){var n=e.type,i=this.computedTriggers;if(n==="click"&&Ee(i,"click"))this.click(e);else if(n==="mouseenter"&&Ee(i,"hover"))this.enter(e);else if(n==="focusin"&&Ee(i,"focus"))this.enter(e);else if(n==="focusout"&&(Ee(i,"focus")||Ee(i,"blur"))||n==="mouseleave"&&Ee(i,"hover")){var a=this.getTemplateElement(),s=e.target,o=e.relatedTarget;if(a&&fr(a,s)&&fr(r,o)||a&&fr(r,s)&&fr(a,o)||a&&fr(a,s)&&fr(a,o)||fr(r,s)&&fr(r,o))return;this.leave(e)}}},doHide:function(e){(!e||this.getTargetId()===e||this.computedId===e)&&this.forceHide()},doShow:function(e){(!e||this.getTargetId()===e||this.computedId===e)&&this.show()},doDisable:function(e){(!e||this.getTargetId()===e||this.computedId===e)&&this.disable()},doEnable:function(e){(!e||this.getTargetId()===e||this.computedId===e)&&this.enable()},click:function(e){!this.$_enabled||this.dropdownOpen()||(Ie(e.currentTarget),this.activeTrigger.click=!this.activeTrigger.click,this.isWithActiveTrigger?this.enter(null):this.leave(null))},toggle:function(){!this.$_enabled||this.dropdownOpen()||(this.localShow?this.leave(null):this.enter(null))},enter:function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(r&&(this.activeTrigger[r.type==="focusin"?"focus":"hover"]=!0),this.localShow||this.$_hoverState==="in"){this.$_hoverState="in";return}this.clearHoverTimeout(),this.$_hoverState="in",this.computedDelay.show?(this.fixTitle(),this.$_hoverTimeout=setTimeout(function(){e.$_hoverState==="in"?e.show():e.localShow||e.restoreTitle()},this.computedDelay.show)):this.show()},leave:function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;r&&(this.activeTrigger[r.type==="focusout"?"focus":"hover"]=!1,r.type==="focusout"&&Ee(this.computedTriggers,"blur")&&(this.activeTrigger.click=!1,this.activeTrigger.hover=!1)),!this.isWithActiveTrigger&&(this.clearHoverTimeout(),this.$_hoverState="out",this.computedDelay.hide?this.$_hoverTimeout=setTimeout(function(){e.$_hoverState==="out"&&e.hide()},this.computedDelay.hide):this.hide())}}}),On,hu;function qD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Vse(t){for(var e=1;e0&&e[wi].updateData(c)})}var s={title:i.title,content:i.content,triggers:i.trigger,placement:i.placement,fallbackPlacement:i.fallbackPlacement,variant:i.variant,customClass:i.customClass,container:i.container,boundary:i.boundary,delay:i.delay,offset:i.offset,noFade:!i.animation,id:i.id,disabled:i.disabled,html:i.html},o=e[wi].__bv_prev_data__;if(e[wi].__bv_prev_data__=s,!Ze(s,o)){var u={target:e};Ce(s).forEach(function(c){s[c]!==o[c]&&(u[c]=(c==="title"||c==="content")&&be(s[c])?s[c](e):s[c])}),e[wi].updateData(u)}}},uoe=function(e){e[wi]&&(e[wi].$destroy(),e[wi]=null),delete e[wi]},coe={bind:function(e,r,n){rI(e,r,n)},componentUpdated:function(e,r,n){xE(function(){rI(e,r,n)})},unbind:function(e){uoe(e)}},Z6=pe({directives:{VBPopover:coe}}),loe=pe({components:{BPopover:Kse},plugins:{VBPopoverPlugin:Z6}}),e5=ee({animated:y(B,null),label:y(I),labelHtml:y(I),max:y(le,null),precision:y(le,null),showProgress:y(B,null),showValue:y(B,null),striped:y(B,null),value:y(le,0),variant:y(I)},BF),t5=G({name:BF,mixins:[Pe],inject:{getBvProgress:{default:function(){return function(){return{}}}}},props:e5,computed:{bvProgress:function(){return this.getBvProgress()},progressBarClasses:function(){var e=this.computedAnimated,r=this.computedVariant;return[r?"bg-".concat(r):"",this.computedStriped||e?"progress-bar-striped":"",e?"progress-bar-animated":""]},progressBarStyles:function(){return{width:100*(this.computedValue/this.computedMax)+"%"}},computedValue:function(){return Be(this.value,0)},computedMax:function(){var e=Be(this.max)||Be(this.bvProgress.max,0);return e>0?e:100},computedPrecision:function(){return Qe(oe(this.precision,oe(this.bvProgress.precision,0)),0)},computedProgress:function(){var e=this.computedPrecision,r=R4(10,e);return lw(100*r*this.computedValue/this.computedMax/r,e)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return Ei(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return Ei(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return Ei(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return Ei(this.showValue)?this.showValue:this.bvProgress.showValue||!1}},render:function(e){var r=this.label,n=this.labelHtml,i=this.computedValue,a=this.computedPrecision,s,o={};return this.hasNormalizedSlot()?s=this.normalizeSlot():r||n?o=Lt(n,r):this.computedShowProgress?s=this.computedProgress:this.computedShowValue&&(s=lw(i,a)),e("div",{staticClass:"progress-bar",class:this.progressBarClasses,style:this.progressBarStyles,attrs:{role:"progressbar","aria-valuemin":"0","aria-valuemax":_e(this.computedMax),"aria-valuenow":lw(i,a)},domProps:o},s)}});function nI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function iI(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};!this.noCloseOnRouteChange&&e.fullPath!==r.fullPath&&this.hide()}),Af),created:function(){this.$_returnFocusEl=null},mounted:function(){var e=this;this.listenOnRoot(goe,this.handleToggle),this.listenOnRoot(moe,this.handleSync),this.$nextTick(function(){e.emitState(e.localShow)})},activated:function(){this.emitSync()},beforeDestroy:function(){this.localShow=!1,this.$_returnFocusEl=null},methods:{hide:function(){this.localShow=!1},emitState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.localShow;this.emitOnRoot(voe,this.safeId(),e)},emitSync:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.localShow;this.emitOnRoot(boe,this.safeId(),e)},handleToggle:function(e){e&&e===this.safeId()&&(this.localShow=!this.localShow)},handleSync:function(e){var r=this;e&&e===this.safeId()&&this.$nextTick(function(){r.emitSync(r.localShow)})},onKeydown:function(e){var r=e.keyCode;!this.noCloseOnEsc&&r===FE&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var e=BS(this.$refs.content);this.enforceFocus(e.reverse()[0])},onBottomTrapFocus:function(){var e=BS(this.$refs.content);this.enforceFocus(e[0])},onBeforeEnter:function(){this.$_returnFocusEl=Fo(ht?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(e){fr(e,Fo())||this.enforceFocus(e),this.$emit(pn)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(Qt)},enforceFocus:function(e){this.noEnforceFocus||Ie(e)}},render:function(e){var r,n=this.bgVariant,i=this.width,a=this.textVariant,s=this.localShow,o=this.shadow===""?!0:this.shadow,u=e(this.tag,{staticClass:ap,class:[(r={shadow:o===!0},ls(r,"shadow-".concat(o),o&&o!==!0),ls(r,"".concat(ap,"-right"),this.right),ls(r,"bg-".concat(n),n),ls(r,"text-".concat(a),a),r),this.sidebarClass],style:{width:i},attrs:this.computedAttrs,directives:[{name:"show",value:s}],ref:"content"},[Coe(e,this)]);u=e("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[u]);var c=e(wc,{props:{noFade:this.noSlide}},[Aoe(e,this)]),l=e(),d=e();return this.backdrop&&s&&(l=e("div",{attrs:{tabindex:"0"},on:{focus:this.onTopTrapFocus}}),d=e("div",{attrs:{tabindex:"0"},on:{focus:this.onBottomTrapFocus}})),e("div",{staticClass:"b-sidebar-outer",style:{zIndex:this.zIndex},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown}},[l,u,d,c])}}),$oe=pe({components:{BSidebar:Moe},plugins:{VBTogglePlugin:qE}});function Yw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var koe=ee({animation:y(I,"wave"),height:y(I),size:y(I),type:y(I,"text"),variant:y(I),width:y(I)},HF),E0=G({name:HF,functional:!0,props:koe,render:function(e,r){var n,i=r.data,a=r.props,s=a.size,o=a.animation,u=a.variant;return e("div",ve(i,{staticClass:"b-skeleton",style:{width:s||a.width,height:s||a.height},class:(n={},Yw(n,"b-skeleton-".concat(a.type),!0),Yw(n,"b-skeleton-animate-".concat(o),o),Yw(n,"bg-".concat(u),u),n)}))}});function oI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function uI(t){for(var e=1;e0}}});function cI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Boe(t){for(var e=1;e0?e:null},pI=function(e){return at(e)||bO(e)>0},a5=ee({colspan:y(le,null,pI),rowspan:y(le,null,pI),stackedHeading:y(I),stickyColumn:y(B,!1),variant:y(I)},KF),dd=G({name:KF,mixins:[Pr,Bs,Pe],inject:{getBvTableTr:{default:function(){return function(){return{}}}}},inheritAttrs:!1,props:a5,computed:{bvTableTr:function(){return this.getBvTableTr()},tag:function(){return"td"},inTbody:function(){return this.bvTableTr.inTbody},inThead:function(){return this.bvTableTr.inThead},inTfoot:function(){return this.bvTableTr.inTfoot},isDark:function(){return this.bvTableTr.isDark},isStacked:function(){return this.bvTableTr.isStacked},isStackedCell:function(){return this.inTbody&&this.isStacked},isResponsive:function(){return this.bvTableTr.isResponsive},isStickyHeader:function(){return this.bvTableTr.isStickyHeader},hasStickyHeader:function(){return this.bvTableTr.hasStickyHeader},isStickyColumn:function(){return!this.isStacked&&(this.isResponsive||this.hasStickyHeader)&&this.stickyColumn},rowVariant:function(){return this.bvTableTr.variant},headVariant:function(){return this.bvTableTr.headVariant},footVariant:function(){return this.bvTableTr.footVariant},tableVariant:function(){return this.bvTableTr.tableVariant},computedColspan:function(){return bO(this.colspan)},computedRowspan:function(){return bO(this.rowspan)},cellClasses:function(){var e=this.variant,r=this.headVariant,n=this.isStickyColumn;return(!e&&this.isStickyHeader&&!r||!e&&n&&this.inTfoot&&!this.footVariant||!e&&n&&this.inThead&&!r||!e&&n&&this.inTbody)&&(e=this.rowVariant||this.tableVariant||"b-table-default"),[e?"".concat(this.isDark?"bg":"table","-").concat(e):null,n?"b-table-sticky-column":null]},cellAttrs:function(){var e=this.stackedHeading,r=this.inThead||this.inTfoot,n=this.computedColspan,i=this.computedRowspan,a="cell",s=null;return r?(a="columnheader",s=n>0?"colspan":"col"):Ya(this.tag,"th")&&(a="rowheader",s=i>0?"rowgroup":"row"),hI(hI({colspan:n,rowspan:i,role:a,scope:s},this.bvAttrs),{},{"data-label":this.isStackedCell&&!at(e)?_e(e):null})}},render:function(e){var r=[this.normalizeSlot()];return e(this.tag,{class:this.cellClasses,attrs:this.cellAttrs,on:this.bvListeners},[this.isStackedCell?e("div",[r]):r])}});function Voe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var vx="busy",Uoe=Ko+vx,s5=Voe({},vx,y(B,!1)),Goe=G({props:s5,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[vx]||this.localBusy}},watch:{localBusy:function(e,r){e!==r&&this.$emit(Uoe,e)}},methods:{stopIfBusy:function(e){return this.computedBusy?(ke(e),!0):!1},renderBusy:function(){var e=this.tbodyTrClass,r=this.tbodyTrAttr,n=this.$createElement;return this.computedBusy&&this.hasNormalizedSlot(Qf)?n(Ds,{staticClass:"b-table-busy-slot",class:[be(e)?e(null,Qf):e],attrs:be(r)?r(null,Qf):r,key:"table-busy-slot"},[n(dd,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Qf)])]):null}}}),bx={caption:y(I),captionHtml:y(I)},o5=G({props:bx,computed:{captionId:function(){return this.isStacked?this.safeId("_caption_"):null}},methods:{renderCaption:function(){var e=this.caption,r=this.captionHtml,n=this.$createElement,i=n(),a=this.hasNormalizedSlot(mM);return(a||e||r)&&(i=n("caption",{attrs:{id:this.captionId},domProps:a?{}:Lt(r,e),key:"caption",ref:"caption"},this.normalizeSlot(mM))),i}}}),u5={},c5=G({methods:{renderColgroup:function(){var e=this.computedFields,r=this.$createElement,n=r();return this.hasNormalizedSlot(gM)&&(n=r("colgroup",{key:"colgroup"},[this.normalizeSlot(gM,{columns:e.length,fields:e})])),n}}}),l5={emptyFilteredHtml:y(I),emptyFilteredText:y(I,"There are no records matching your request"),emptyHtml:y(I),emptyText:y(I,"There are no records to show"),showEmpty:y(B,!1)},Woe=G({props:l5,methods:{renderEmpty:function(){var e=qt(this),r=e.computedItems,n=e.computedBusy,i=this.$createElement,a=i();if(this.showEmpty&&(!r||r.length===0)&&!(n&&this.hasNormalizedSlot(Qf))){var s=this.computedFields,o=this.isFiltered,u=this.emptyText,c=this.emptyHtml,l=this.emptyFilteredText,d=this.emptyFilteredHtml,f=this.tbodyTrClass,p=this.tbodyTrAttr;a=this.normalizeSlot(o?gJ:S4,{emptyFilteredHtml:d,emptyFilteredText:l,emptyHtml:c,emptyText:u,fields:s,items:r}),a||(a=i("div",{class:["text-center","my-2"],domProps:o?Lt(d,l):Lt(c,u)})),a=i(dd,{props:{colspan:s.length||null}},[i("div",{attrs:{role:"alert","aria-live":"polite"}},[a])]),a=i(Ds,{staticClass:"b-table-empty-row",class:[be(f)?f(null,"row-empty"):f],attrs:be(p)?p(null,"row-empty"):p,key:o?"b-empty-filtered-row":"b-empty-row"},[a])}return a}}}),yO=function t(e){return at(e)?"":Jt(e)&&!td(e)?Ce(e).sort().map(function(r){return t(e[r])}).filter(function(r){return!!r}).join(" "):_e(e)};function mI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function gI(t){for(var e=1;e3&&arguments[3]!==void 0?arguments[3]:{},a=Ce(i).reduce(function(o,u){var c=i[u],l=c.filterByFormatted,d=be(l)?l:l?c.formatter:null;return be(d)&&(o[u]=d(e[u],u,e)),o},Yo(e)),s=Ce(a).filter(function(o){return!f5[o]&&!(nt(r)&&r.length>0&&Ee(r,o))&&!(nt(n)&&n.length>0&&!Ee(n,o))});return Zi(a,s)},Koe=function(e,r,n,i){return Jt(e)?yO(wO(e,r,n,i)):""};function qoe(t){return Zoe(t)||Qoe(t)||Joe(t)||Xoe()}function Xoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Joe(t,e){if(t){if(typeof t=="string")return SO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SO(t,e)}}function Qoe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zoe(t){if(Array.isArray(t))return SO(t)}function SO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&xr(eue,sc),e},localFiltering:function(){return this.hasProvider?!!this.noProviderFiltering:!0},filteredCheck:function(){var e=this.filteredItems,r=this.localItems,n=this.localFilter;return{filteredItems:e,localItems:r,localFilter:n}},localFilterFn:function(){var e=this.filterFunction;return Va(e)?e:null},filteredItems:function(){var e=this.localItems,r=this.localFilter,n=this.localFiltering?this.filterFnFactory(this.localFilterFn,r)||this.defaultFilterFnFactory(r):null;return n&&e.length>0?e.filter(n):e}},watch:{computedFilterDebounce:function(e){!e&&this.$_filterTimer&&(this.clearFilterTimer(),this.localFilter=this.filterSanitize(this.filter))},filter:{deep:!0,handler:function(e){var r=this,n=this.computedFilterDebounce;this.clearFilterTimer(),n&&n>0?this.$_filterTimer=setTimeout(function(){r.localFilter=r.filterSanitize(e)},n):this.localFilter=this.filterSanitize(e)}},filteredCheck:function(e){var r=e.filteredItems,n=e.localFilter,i=!1;n?Ze(n,[])||Ze(n,{})?i=!1:n&&(i=!0):i=!1,i&&this.$emit(IS,r,r.length),this.isFiltered=i},isFiltered:function(e,r){if(e===!1&&r===!0){var n=this.localItems;this.$emit(IS,n,n.length)}}},created:function(){var e=this;this.$_filterTimer=null,this.$nextTick(function(){e.isFiltered=!!e.localFilter})},beforeDestroy:function(){this.clearFilterTimer()},methods:{clearFilterTimer:function(){clearTimeout(this.$_filterTimer),this.$_filterTimer=null},filterSanitize:function(e){return this.localFiltering&&!this.localFilterFn&&!(We(e)||qA(e))?"":xi(e)},filterFnFactory:function(e,r){if(!e||!be(e)||!r||Ze(r,[])||Ze(r,{}))return null;var n=function(a){return e(a,r)};return n},defaultFilterFnFactory:function(e){var r=this;if(!e||!(We(e)||qA(e)))return null;var n=e;if(We(n)){var i=RE(e).replace(aB,"\\s+");n=new RegExp(".*".concat(i,".*"),"i")}var a=function(o){return n.lastIndex=0,n.test(Koe(o,r.computedFilterIgnored,r.computedFilterIncluded,r.computedFieldsObj))};return a}}}),rue=function(e,r){var n=null;return We(r)?n={key:e,label:r}:be(r)?n={key:e,formatter:r}:Jt(r)?(n=Yo(r),n.key=n.key||e):r!==!1&&(n={key:e}),n},nue=function(e,r){var n=[];if(nt(e)&&e.filter(Oe).forEach(function(s){if(We(s))n.push({key:s,label:Ug(s)});else if(Jt(s)&&s.key&&We(s.key))n.push(Yo(s));else if(Jt(s)&&Ce(s).length===1){var o=Ce(s)[0],u=rue(o,s[o]);u&&n.push(u)}}),n.length===0&&nt(r)&&r.length>0){var i=r[0];Ce(i).forEach(function(s){f5[s]||n.push({key:s,label:Ug(s)})})}var a={};return n.filter(function(s){return a[s.key]?!1:(a[s.key]=!0,s.label=We(s.label)?s.label:Ug(s.key),!0)})};function vI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function bI(t){for(var e=1;e0&&e.some(Oe)},selectableIsMultiSelect:function(){return this.isSelectable&&Ee(["range","multi"],this.selectMode)},selectableTableClasses:function(){var e,r=this.isSelectable;return e={"b-table-selectable":r},Km(e,"b-table-select-".concat(this.selectMode),r),Km(e,"b-table-selecting",this.selectableHasSelection),Km(e,"b-table-selectable-no-click",r&&!this.hasSelectableRowClick),e},selectableTableAttrs:function(){if(!this.isSelectable)return{};var e=this.bvAttrs.role||_I;return{role:e,"aria-multiselectable":e===_I?_e(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(e,r){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=nt(e)&&nt(r)&&e.length===r.length;for(var i=0;n&&i=0&&e0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?Sh(e,!0):[!0])},isRowSelected:function(e){return!!(Ui(e)&&this.selectedRows[e])},clearSelected:function(){this.selectedLastClicked=-1,this.selectedRows=[]},selectableRowClasses:function(e){if(this.isSelectable&&this.isRowSelected(e)){var r=this.selectedVariant;return Km({"b-table-row-selected":!0},"".concat(this.dark?"bg":"table","-").concat(r),r)}return{}},selectableRowAttrs:function(e){return{"aria-selected":this.isSelectable?this.isRowSelected(e)?"true":"false":null}},setSelectionHandlers:function(e){var r=e&&!this.noSelectOnClick?"$on":"$off";this[r](e0,this.selectionHandler),this[r](IS,this.clearSelected),this[r](s4,this.clearSelected)},selectionHandler:function(e,r,n){if(!this.isSelectable||this.noSelectOnClick){this.clearSelected();return}var i=this.selectMode,a=this.selectedLastRow,s=this.selectedRows.slice(),o=!s[r];if(i==="single")s=[];else if(i==="range")if(a>-1&&n.shiftKey){for(var u=Ss(a,r);u<=Qe(a,r);u++)s[u]=!0;o=!0}else n.ctrlKey||n.metaKey||(s=[],o=!0),o&&(this.selectedLastRow=r);s[r]=o,this.selectedRows=s}}}),y5=function(e,r){return e.map(function(n,i){return[i,n]}).sort((function(n,i){return this(n[1],i[1])||n[0]-i[0]}).bind(r)).map(function(n){return n[1]})},wI=function(e){return at(e)?"":_h(e)?Be(e,e):e},hue=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.sortBy,a=i===void 0?null:i,s=n.formatter,o=s===void 0?null:s,u=n.locale,c=u===void 0?void 0:u,l=n.localeOptions,d=l===void 0?{}:l,f=n.nullLast,p=f===void 0?!1:f,m=Gr(e,a,null),b=Gr(r,a,null);return be(o)&&(m=o(m,a,e),b=o(b,a,r)),m=wI(m),b=wI(b),td(m)&&td(b)||Ui(m)&&Ui(b)?mb?1:0:p&&m===""&&b!==""?1:p&&m!==""&&b===""?-1:yO(m).localeCompare(yO(b),c,d)},ga,nl;function SI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function OI(t){for(var e=1;e0&&!o,[s,{"table-striped":this.striped,"table-hover":r,"table-dark":this.dark,"table-bordered":this.bordered,"table-borderless":this.borderless,"table-sm":this.small,border:this.outlined,"b-table-fixed":this.fixed,"b-table-caption-top":this.captionTop,"b-table-no-border-collapse":this.noBorderCollapse},n?"".concat(this.dark?"bg":"table","-").concat(n):"",a,i]},tableAttrs:function(){var e=qt(this),r=e.computedItems,n=e.filteredItems,i=e.computedFields,a=e.selectableTableAttrs,s=e.computedBusy,o=this.isTableSimple?{}:{"aria-busy":_e(s),"aria-colcount":_e(i.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null},u=r&&n&&n.length>r.length?_e(n.length):null;return Kw(Kw(Kw({"aria-rowcount":u},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},o),a)}},render:function(e){var r=qt(this),n=r.wrapperClasses,i=r.renderCaption,a=r.renderColgroup,s=r.renderThead,o=r.renderTbody,u=r.renderTfoot,c=[];this.isTableSimple?c.push(this.normalizeSlot()):(c.push(i?i():null),c.push(a?a():null),c.push(s?s():null),c.push(o?o():null),c.push(u?u():null));var l=e("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},c.filter(Oe));return n.length>0?e("div",{class:n,style:this.wrapperStyles,key:"wrap"},[l]):l}});function EI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function qw(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:document,r=iQ();return r&&r.toString().trim()!==""&&r.containsNode&&_t(e)?r.containsNode(e,!0):!1},Oue=ee(a5,e4),Sx=G({name:e4,extends:dd,props:Oue,computed:{tag:function(){return"th"}}});function xI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Mf(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(h=String((u-1)*c+r+1));var v=_e(Gr(e,o))||null,g=v||_e(r),T=v?this.safeId("_row_".concat(v)):null,C=qt(this).selectableRowClasses?this.selectableRowClasses(r):{},k=qt(this).selectableRowAttrs?this.selectableRowAttrs(r):{},w=be(l)?l(e,"row"):l,A=be(d)?d(e,"row"):d;if(S.push(p(Ds,O5({class:[w,C,b?"b-table-has-details":""],props:{variant:e[_O]||null},attrs:Mf(Mf({id:T},A),{},{tabindex:_?"0":null,"data-pk":v||null,"aria-details":E,"aria-owns":E,"aria-rowindex":h},k),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(g,"__"),ref:"item-rows"},EE,!0),O)),b){var P={item:e,index:r,fields:a,toggleDetails:this.toggleDetailsFactory(m,e)};qt(this).supportsSelectableRows&&(P.rowSelected=this.isRowSelected(r),P.selectRow=function(){return n.selectRow(r)},P.unselectRow=function(){return n.unselectRow(r)});var x=p(dd,{props:{colspan:a.length},class:this.detailsTdClass},[this.normalizeSlot(vf,P)]);s&&S.push(p("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(g)}));var $=be(this.tbodyTrClass)?this.tbodyTrClass(e,vf):this.tbodyTrClass,D=be(this.tbodyTrAttr)?this.tbodyTrAttr(e,vf):this.tbodyTrAttr;S.push(p(Ds,{staticClass:"b-table-details",class:[$],props:{variant:e[_O]||null},attrs:Mf(Mf({},D),{},{id:E,tabindex:"-1"}),key:"__b-table-details__".concat(g)},[x]))}else m&&(S.push(p()),s&&S.push(p()));return S}}});function PI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Xw(t){for(var e=1;e0&&n&&n.length>0?oc(r.children).filter(function(i){return Ee(n,i)}):[]},getTbodyTrIndex:function(e){if(!_t(e))return-1;var r=e.tagName==="TR"?e:Rn("tr",e,!0);return r?this.getTbodyTrs().indexOf(r):-1},emitTbodyRowEvent:function(e,r){if(e&&this.hasListener(e)&&r&&r.target){var n=this.getTbodyTrIndex(r.target);if(n>-1){var i=this.computedItems[n];this.$emit(e,i,n,r)}}},tbodyRowEventStopped:function(e){return this.stopIfBusy&&this.stopIfBusy(e)},onTbodyRowKeydown:function(e){var r=e.target,n=e.keyCode;if(!(this.tbodyRowEventStopped(e)||r.tagName!=="TR"||!LE(r)||r.tabIndex!==0)){if(Ee([Ns,Ka],n))ke(e),this.onTBodyRowClicked(e);else if(Ee([Ln,gn,Ho,jo],n)){var i=this.getTbodyTrIndex(r);if(i>-1){ke(e);var a=this.getTbodyTrs(),s=e.shiftKey;n===Ho||s&&n===Ln?Ie(a[0]):n===jo||s&&n===gn?Ie(a[a.length-1]):n===Ln&&i>0?Ie(a[i-1]):n===gn&&it.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:!1,n=qt(this),i=n.computedFields,a=n.isSortable,s=n.isSelectable,o=n.headVariant,u=n.footVariant,c=n.headRowVariant,l=n.footRowVariant,d=this.$createElement;if(this.isStackedAlways||i.length===0)return d();var f=a||this.hasListener(wh),p=s?this.selectAllRows:rp,m=s?this.clearSelected:rp,b=function(h,v){var g=h.label,T=h.labelHtml,C=h.variant,k=h.stickyColumn,w=h.key,A=null;!h.label.trim()&&!h.headerTitle&&(A=Ug(h.key));var P={};f&&(P.click=function(V){e.headClicked(V,h,r)},P.keydown=function(V){var J=V.keyCode;(J===Ns||J===Ka)&&e.headClicked(V,h,r)});var x=a?e.sortTheadThAttrs(w,h,r):{},$=a?e.sortTheadThClasses(w,h,r):null,D=a?e.sortTheadThLabel(w,h,r):null,M={class:[{"position-relative":D},e.fieldClasses(h),$],props:{variant:C,stickyColumn:k},style:h.thStyle||{},attrs:kI(kI({tabindex:f&&h.sortable?"0":null,abbr:h.headerAbbr||null,title:h.headerTitle||null,"aria-colindex":v+1,"aria-label":A},e.getThValues(null,w,h.thAttr,r?"foot":"head",{})),x),on:P,key:w},R=[Qw(w),Qw(w.toLowerCase()),Qw()];r&&(R=[Zw(w),Zw(w.toLowerCase()),Zw()].concat(Lue(R)));var N={label:g,column:w,field:h,isFoot:r,selectAllRows:p,clearSelected:m},j=e.normalizeSlot(R,N)||d("div",{domProps:Lt(T,g)}),z=D?d("span",{staticClass:"sr-only"}," (".concat(D,")")):null;return d(Sx,M,[j,z].filter(Oe))},_=i.map(b).filter(Oe),S=[];if(r)S.push(d(Ds,{class:this.tfootTrClass,props:{variant:at(l)?c:l}},_));else{var E={columns:i.length,fields:i,selectAllRows:p,clearSelected:m};S.push(this.normalizeSlot(YJ,E)||d()),S.push(d(Ds,{class:this.theadTrClass,props:{variant:c}},_))}return d(r?Tx:P5,{class:(r?this.tfootClass:this.theadClass)||null,props:r?{footVariant:u||o||null}:{headVariant:o||null},key:r?"bv-tfoot":"bv-thead"},S)}}}),zue={},Vue=G({methods:{renderTopRow:function(){var e=this.computedFields,r=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,a=this.$createElement;return!this.hasNormalizedSlot(vM)||r===!0||r===""?a():a(Ds,{staticClass:"b-table-top-row",class:[be(n)?n(null,"row-top"):n],attrs:be(i)?i(null,"row-top"):i,key:"b-top-row"},[this.normalizeSlot(vM,{columns:e.length,fields:e})])}}});function DI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function $r(t){for(var e=1;e0},nce=ee({animation:y(I),columns:y(Qr,5,NI),hideHeader:y(B,!1),rows:y(Qr,3,NI),showFooter:y(B,!1),tableProps:y(gr,{})},UF),ice=G({name:UF,functional:!0,props:nce,render:function(e,r){var n=r.data,i=r.props,a=i.animation,s=i.columns,o=e("th",[e(E0,{props:{animation:a}})]),u=e("tr",Sh(s,o)),c=e("td",[e(E0,{props:{width:"75%",animation:a}})]),l=e("tr",Sh(s,c)),d=e("tbody",Sh(i.rows,l)),f=i.hideHeader?e():e("thead",[u]),p=i.showFooter?e("tfoot",[u]):e();return e(A5,ve(n,{props:tce({},i.tableProps)}),[f,d,p])}}),ace=ee({loading:y(B,!1)},GF),sce=G({name:GF,functional:!0,props:ace,render:function(e,r){var n=r.data,i=r.props,a=r.slots,s=r.scopedSlots,o=a(),u=s||{},c={};return i.loading?e("div",ve(n,{attrs:{role:"alert","aria-live":"polite","aria-busy":!0},staticClass:"b-skeleton-wrapper",key:"loading"}),jr(PJ,c,u,o)):jr(_r,c,u,o)}}),oce=pe({components:{BSkeleton:E0,BSkeletonIcon:Ioe,BSkeletonImg:Noe,BSkeletonTable:ice,BSkeletonWrapper:sce}}),uce=pe({components:{BSpinner:V6}}),il;function BI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Il(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:!0;if(this.$_observer&&this.$_observer.disconnect(),this.$_observer=null,r){var n=function(){e.$nextTick(function(){st(function(){e.updateTabs()})})};this.$_observer=np(this.$refs.content,n,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var e=this.registeredTabs,r=[];if(ht&&e.length>0){var n=e.map(function(i){return"#".concat(i.safeId())}).join(", ");r=ci(n,this.$el).map(function(i){return i.id}).filter(Oe)}return y5(e,function(i,a){return r.indexOf(i.safeId())-r.indexOf(a.safeId())})},updateTabs:function(){var e=this.getTabs(),r=e.indexOf(e.slice().reverse().find(function(i){return i.localActive&&!i.disabled}));if(r<0){var n=this.currentTab;n>=e.length?r=e.indexOf(e.slice().reverse().find(pu)):e[n]&&!e[n].disabled&&(r=n)}r<0&&(r=e.indexOf(e.find(pu))),e.forEach(function(i,a){i.localActive=a===r}),this.tabs=e,this.currentTab=r},getButtonForTab:function(e){return(this.$refs.buttons||[]).find(function(r){return r.tab===e})},updateButton:function(e){var r=this.getButtonForTab(e);r&&r.$forceUpdate&&r.$forceUpdate()},activateTab:function(e){var r=this.currentTab,n=this.tabs,i=!1;if(e){var a=n.indexOf(e);if(a!==r&&a>-1&&!e.disabled){var s=new Oc(IX,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(s.type,a,r,s),s.defaultPrevented||(this.currentTab=a,i=!0)}}return!i&&this[t1]!==r&&this.$emit(FI,r),i},deactivateTab:function(e){return e?this.activateTab(this.tabs.filter(function(r){return r!==e}).find(pu)):!1},focusButton:function(e){var r=this;this.$nextTick(function(){Ie(r.getButtonForTab(e))})},emitTabClick:function(e,r){rc(r)&&e&&e.$emit&&!e.disabled&&e.$emit(Mi,r)},clickTab:function(e,r){this.activateTab(e),this.emitTabClick(e,r)},firstTab:function(e){var r=this.tabs.find(pu);this.activateTab(r)&&e&&(this.focusButton(r),this.emitTabClick(r,e))},previousTab:function(e){var r=Qe(this.currentTab,0),n=this.tabs.slice(0,r).reverse().find(pu);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},nextTab:function(e){var r=Qe(this.currentTab,-1),n=this.tabs.slice(r+1).find(pu);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},lastTab:function(e){var r=this.tabs.slice().reverse().find(pu);this.activateTab(r)&&e&&(this.focusButton(r),this.emitTabClick(r,e))}},render:function(e){var r=this,n=this.align,i=this.card,a=this.end,s=this.fill,o=this.firstTab,u=this.justified,c=this.lastTab,l=this.nextTab,d=this.noKeyNav,f=this.noNavStyle,p=this.pills,m=this.previousTab,b=this.small,_=this.tabs,S=this.vertical,E=_.find(function(k){return k.localActive&&!k.disabled}),O=_.find(function(k){return!k.disabled}),h=_.map(function(k,w){var A,P=k.safeId,x=null;return d||(x=-1,(k===E||!E&&k===O)&&(x=null)),e(dce,Li({props:{controls:P?P():null,id:k.controlledBy||(P?P("_BV_tab_button_"):null),noKeyNav:d,posInSet:w+1,setSize:_.length,tab:k,tabIndex:x},on:(A={},Li(A,Mi,function($){r.clickTab(k,$)}),Li(A,o4,o),Li(A,p4,m),Li(A,f4,l),Li(A,c4,c),A),key:k[xs]||w,ref:"buttons"},EE,!0))}),v=e(F6,{class:this.localNavClass,attrs:{role:"tablist",id:this.safeId("_BV_tab_controls_")},props:{fill:s,justified:u,align:n,tabs:!f&&!p,pills:!f&&p,vertical:S,small:b,cardHeader:i&&!S},ref:"nav"},[this.normalizeSlot(GJ)||e(),h,this.normalizeSlot(UJ)||e()]);v=e("div",{class:[{"card-header":i&&!S&&!a,"card-footer":i&&!S&&a,"col-auto":S},this.navWrapperClass],key:"bv-tabs-nav"},[v]);var g=this.normalizeSlot()||[],T=e();g.length===0&&(T=e("div",{class:["tab-pane","active",{"card-body":i}],key:"bv-empty-tab"},this.normalizeSlot(S4)));var C=e("div",{staticClass:"tab-content",class:[{col:S},this.contentClass],attrs:{id:this.safeId("_BV_tab_container_")},key:"bv-content",ref:"content"},[g,T]);return e(this.tag,{staticClass:"tabs",class:{row:S,"no-gutters":S&&i},attrs:{id:this.safeId()}},[a?C:e(),v,a?e():C])}}),bi,$f;function jI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function HI(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};return t.reduce(function(r,n){var i=n.passengers[0],a=typeof i=="function"?i(e):n.passengers;return r.concat(a)},[])}function Ece(t,e){return t.map(function(r,n){return[n,r]}).sort(function(r,n){return e(r[1],n[1])||r[0]-n[0]}).map(function(r){return r[1]})}function VI(t,e){return e.reduce(function(r,n){return t.hasOwnProperty(n)&&(r[n]=t[n]),r},{})}var M5={},xce={},Pce={},Cce=Ne.extend({data:function(){return{transports:M5,targets:xce,sources:Pce,trackInstances:qm}},methods:{open:function(e){if(qm){var r=e.to,n=e.from,i=e.passengers,a=e.order,s=a===void 0?1/0:a;if(!(!r||!n||!i)){var o={to:r,from:n,passengers:Oce(i),order:s},u=Object.keys(this.transports);u.indexOf(r)===-1&&Ne.set(this.transports,r,[]);var c=this.$_getTransportIndex(o),l=this.transports[r].slice(0);c===-1?l.push(o):l[c]=o,this.transports[r]=Ece(l,function(d,f){return d.order-f.order})}}},close:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.to,i=e.from;if(!(!n||!i&&r===!1)&&this.transports[n])if(r)this.transports[n]=[];else{var a=this.$_getTransportIndex(e);if(a>=0){var s=this.transports[n].slice(0);s.splice(a,1),this.transports[n]=s}}},registerTarget:function(e,r,n){qm&&(this.trackInstances&&!n&&this.targets[e]&&console.warn("[portal-vue]: Target ".concat(e," already exists")),this.$set(this.targets,e,Object.freeze([r])))},unregisterTarget:function(e){this.$delete(this.targets,e)},registerSource:function(e,r,n){qm&&(this.trackInstances&&!n&&this.sources[e]&&console.warn("[portal-vue]: source ".concat(e," already exists")),this.$set(this.sources,e,Object.freeze([r])))},unregisterSource:function(e){this.$delete(this.sources,e)},hasTarget:function(e){return!!(this.targets[e]&&this.targets[e][0])},hasSource:function(e){return!!(this.sources[e]&&this.sources[e][0])},hasContentFor:function(e){return!!this.transports[e]&&!!this.transports[e].length},$_getTransportIndex:function(e){var r=e.to,n=e.from;for(var i in this.transports[r])if(this.transports[r][i].from===n)return+i;return-1}}}),ai=new Cce(M5),Ace=1,$5=Ne.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(Ace++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(Math.random()*1e7))}}},created:function(){var e=this;this.$nextTick(function(){ai.registerSource(e.name,e)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){ai.unregisterSource(this.name),this.clear()},watch:{to:function(e,r){r&&r!==e&&this.clear(r),this.sendUpdate()}},methods:{clear:function(e){var r={from:this.name,to:e||this.to};ai.close(r)},normalizeSlots:function(){return this.$scopedSlots.default?[this.$scopedSlots.default]:this.$slots.default},normalizeOwnChildren:function(e){return typeof e=="function"?e(this.slotProps):e},sendUpdate:function(){var e=this.normalizeSlots();if(e){var r={from:this.name,to:this.to,passengers:yce(e),order:this.order};ai.open(r)}else this.clear()}},render:function(e){var r=this.$slots.default||this.$scopedSlots.default||[],n=this.tag;return r&&this.disabled?r.length<=1&&this.slim?this.normalizeOwnChildren(r)[0]:e(n,[this.normalizeOwnChildren(r)]):this.slim?e():e(n,{class:{"v-portal":!0},style:{display:"none"},key:"v-portal-placeholder"})}}),k5=Ne.extend({name:"portalTarget",props:{multiple:{type:Boolean,default:!1},name:{type:String,required:!0},slim:{type:Boolean,default:!1},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},data:function(){return{transports:ai.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick(function(){ai.registerTarget(e.name,e)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,r){ai.unregisterTarget(r),ai.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick(function(){e.firstRender=!1})},beforeDestroy:function(){ai.unregisterTarget(this.name)},computed:{ownTransports:function(){var e=this.transports[this.name]||[];return this.multiple?e:e.length===0?[]:[e[e.length-1]]},passengers:function(){return Tce(this.ownTransports,this.slotProps)}},methods:{children:function(){return this.passengers.length!==0?this.passengers:this.$scopedSlots.default?this.$scopedSlots.default(this.slotProps):this.$slots.default||[]},noWrapper:function(){var e=this.slim&&!this.transition;return e&&this.children().length>1&&console.warn("[portal-vue]: PortalTarget with `slim` option received more than one child element."),e}},render:function(e){var r=this.noWrapper(),n=this.children(),i=this.transition||this.tag;return r?n[0]:this.slim&&!i?e():e(i,{props:{tag:this.transition&&this.tag?this.tag:void 0},class:{"vue-portal-target":!0}},n)}}),Mce=0,$ce=["disabled","name","order","slim","slotProps","tag","to"],kce=["multiple","transition"];Ne.extend({name:"MountingPortal",inheritAttrs:!1,props:{append:{type:[Boolean,String]},bail:{type:Boolean},mountTo:{type:String,required:!0},disabled:{type:Boolean},name:{type:String,default:function(){return"mounted_"+String(Mce++)}},order:{type:Number,default:0},slim:{type:Boolean},slotProps:{type:Object,default:function(){return{}}},tag:{type:String,default:"DIV"},to:{type:String,default:function(){return String(Math.round(Math.random()*1e7))}},multiple:{type:Boolean,default:!1},targetSlim:{type:Boolean},targetSlotProps:{type:Object,default:function(){return{}}},targetTag:{type:String,default:"div"},transition:{type:[String,Object,Function]}},created:function(){if(!(typeof document>"u")){var e=document.querySelector(this.mountTo);if(!e){console.error("[portal-vue]: Mount Point '".concat(this.mountTo,"' not found in document"));return}var r=this.$props;if(ai.targets[r.name]){r.bail?console.warn("[portal-vue]: Target ".concat(r.name,` is already mounted. Aborting because 'bail: true' is set`)):this.portalTarget=ai.targets[r.name];return}var n=r.append;if(n){var i=typeof n=="string"?n:"DIV",a=document.createElement(i);e.appendChild(a),e=a}var s=VI(this.$props,kce);s.slim=this.targetSlim,s.tag=this.targetTag,s.slotProps=this.targetSlotProps,s.name=this.to,this.portalTarget=new k5({el:e,parent:this.$parent||this,propsData:s})}},beforeDestroy:function(){var e=this.portalTarget;if(this.append){var r=e.$el;r.parentNode.removeChild(r)}e.$destroy()},render:function(e){if(!this.portalTarget)return console.warn("[portal-vue] Target wasn't mounted"),e();if(!this.$scopedSlots.manual){var r=VI(this.$props,$ce);return e($5,{props:r,attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots},this.$slots.default)}var n=this.$scopedSlots.manual({to:this.to});return Array.isArray(n)&&(n=n[0]),n||e()}});var Dce=G({mixins:[Pe],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(e){var r=this;st(function(){qr(e,"".concat(r.name,"-enter-to"))})}},render:function(e){return e("transition-group",{props:{tag:"div",name:this.name},on:{afterEnter:this.onAfterEnter}},this.normalizeSlot())}}),Ice=ee({ariaAtomic:y(I),ariaLive:y(I),name:y(I,void 0,!0),role:y(I)},Gl),D5=G({name:Gl,mixins:[ea],props:Ice,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var e=this.name;this.staticName=e,ai.hasTarget(e)?(xr('A "" with name "'.concat(e,'" already exists in the document.'),Gl),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot(zt(Gl,kE),this.name)},destroyed:function(){var e=this.$el;e&&e.parentNode&&e.parentNode.removeChild(e)},render:function(e){var r=e("div",{class:["d-none",{"b-dead-toaster":this.dead}]});if(this.doRender){var n=e(k5,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:Dce}});r=e("div",{staticClass:"b-toaster",class:[this.staticName],attrs:{id:this.staticName,role:this.role||null,"aria-live":this.ariaLive,"aria-atomic":this.ariaAtomic}},[n])}return r}}),al;function UI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pa(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};return new Oc(e,Pa(Pa({cancelable:!1,target:this.$el||null,relatedTarget:null},r),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(e){var r=e.type;this.emitOnRoot(zt(ws,r),e),this.$emit(r,e)},ensureToaster:function(){if(!this.static){var e=this.computedToaster;if(!ai.hasTarget(e)){var r=document.createElement("div");document.body.appendChild(r);var n=Xo(this.bvEventRoot,D5,{propsData:{name:e}});n.$mount(r)}}},startDismissTimer:function(){this.clearDismissTimer(),this.noAutoHide||(this.$_dismissTimer=setTimeout(this.hide,this.resumeDismiss||this.computedDuration),this.dismissStarted=Date.now(),this.resumeDismiss=0)},clearDismissTimer:function(){clearTimeout(this.$_dismissTimer),this.$_dismissTimer=null},setHoverHandler:function(e){var r=this.$refs["b-toast"];Ki(e,r,"mouseenter",this.onPause,Ue),Ki(e,r,"mouseleave",this.onUnPause,Ue)},onPause:function(){if(!(this.noAutoHide||this.noHoverPause||!this.$_dismissTimer||this.resumeDismiss)){var e=Date.now()-this.dismissStarted;e>0&&(this.clearDismissTimer(),this.resumeDismiss=Qe(this.computedDuration-e,GI))}},onUnPause:function(){if(this.noAutoHide||this.noHoverPause||!this.resumeDismiss){this.resumeDismiss=this.dismissStarted=0;return}this.startDismissTimer()},onLinkClick:function(){var e=this;this.$nextTick(function(){st(function(){e.hide()})})},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var e=this.buildEvent(pn);this.emitEvent(e),this.startDismissTimer(),this.setHoverHandler(!0)},onBeforeLeave:function(){this.isTransitioning=!0},onAfterLeave:function(){this.isTransitioning=!1,this.order=0,this.resumeDismiss=this.dismissStarted=0;var e=this.buildEvent(Qt);this.emitEvent(e),this.doRender=!1},makeToast:function(e){var r=this,n=this.title,i=this.slotScope,a=Dp(this),s=[],o=this.normalizeSlot(KJ,i);o?s.push(o):n&&s.push(e("strong",{staticClass:"mr-2"},n)),this.noCloseButton||s.push(e(cc,{staticClass:"ml-auto mb-1",on:{click:function(){r.hide()}}}));var u=e();s.length>0&&(u=e(this.headerTag,{staticClass:"toast-header",class:this.headerClass},s));var c=e(a?Fn:"div",{staticClass:"toast-body",class:this.bodyClass,props:a?xt(I5,this):{},on:a?{click:this.onLinkClick}:{}},this.normalizeSlot(_r,i));return e("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[xs]),ref:"toast"},[u,c])}},render:function(e){if(!this.doRender||!this.isMounted)return e();var r=this.order,n=this.static,i=this.isHiding,a=this.isStatus,s="b-toast-".concat(this[xs]),o=e("div",{staticClass:"b-toast",class:this.toastClasses,attrs:Pa(Pa({},n?{}:this.scopedStyleAttrs),{},{id:this.safeId("_toast_outer"),role:i?null:a?"status":"alert","aria-live":i?null:a?"polite":"assertive","aria-atomic":i?null:"true"}),key:s,ref:"b-toast"},[e(wc,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(e):e()])]);return e($5,{props:{name:s,to:this.computedToaster,order:r,slim:!0,disabled:n}},[o])}});function Bce(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WI(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&arguments[1]!==void 0?arguments[1]:{};!o||Jv(Df)||n(kf(kf({},KI(u)),{},{toastContent:o}),this._vm)}},{key:"show",value:function(o){o&&this._root.$emit(hr(ws,Fr),o)}},{key:"hide",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._root.$emit(hr(ws,In),o)}}]),a}();e.mixin({beforeCreate:function(){this[n1]=new i(this)}}),ic(e.prototype,Df)||CE(e.prototype,Df,{get:function(){return(!this||!this[n1])&&xr('"'.concat(Df,'" must be accessed from a Vue instance "this" context.'),ws),this[n1]}})},Kce=pe({plugins:{plugin:Yce}}),qce=pe({components:{BToast:L5,BToaster:D5},plugins:{BVToastPlugin:Kce}});function qI(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function XI(t){for(var e=1;e=i){var a=this.$targets[this.$targets.length-1];this.$activeTarget!==a&&this.activate(a);return}if(this.$activeTarget&&r0){this.$activeTarget=null,this.clear();return}for(var s=this.$offsets.length;s--;){var o=this.$activeTarget!==this.$targets[s]&&r>=this.$offsets[s]&&(Zt(this.$offsets[s+1])||r0&&this.$root&&this.$root.$emit(Ele,r,i)}},{key:"clear",value:function(){var r=this;ci("".concat(this.$selector,", ").concat(o1),this.$el).filter(function(n){return Zh(n,a1)}).forEach(function(n){return r.setActiveState(n,!1)})}},{key:"setActiveState",value:function(r,n){r&&(n?dn(r,a1):qr(r,a1))}}],[{key:"Name",get:function(){return yle}},{key:"Default",get:function(){return Ple}},{key:"DefaultType",get:function(){return Cle}}]),t}(),Du="__BV_Scrollspy__",$le=/^\d+$/,kle=/^(auto|position|offset)$/,Dle=function(e){var r={};return e.arg&&(r.element="#".concat(e.arg)),Ce(e.modifiers).forEach(function(n){$le.test(n)?r.offset=oe(n,0):kle.test(n)&&(r.method=n)}),We(e.value)?r.element=e.value:Ui(e.value)?r.offset=jS(e.value):Jt(e.value)&&Ce(e.value).filter(function(n){return!!B5.DefaultType[n]}).forEach(function(n){r[n]=e.value[n]}),r},Xm=function(e,r,n){if(ht){var i=Dle(r);e[Du]?e[Du].updateConfig(i,Ua(Ba(n,r))):e[Du]=new B5(e,i,Ua(Ba(n,r)))}},Ile=function(e){e[Du]&&(e[Du].dispose(),e[Du]=null,delete e[Du])},Rle={bind:function(e,r,n){Xm(e,r,n)},inserted:function(e,r,n){Xm(e,r,n)},update:function(e,r,n){r.value!==r.oldValue&&Xm(e,r,n)},componentUpdated:function(e,r,n){r.value!==r.oldValue&&Xm(e,r,n)},unbind:function(e){Ile(e)}},Lle=pe({directives:{VBScrollspy:Rle}}),Nle=pe({directives:{VBVisible:KE}}),Ble=pe({plugins:{VBHoverPlugin:ple,VBModalPlugin:mle,VBPopoverPlugin:Z6,VBScrollspyPlugin:Lle,VBTogglePlugin:qE,VBTooltipPlugin:N5,VBVisiblePlugin:Nle}});/*! * BootstrapVue 2.23.1 * * @link https://bootstrap-vue.org * @source https://github.com/bootstrap-vue/bootstrap-vue * @copyright (c) 2016-2022 BootstrapVue * @license MIT * https://github.com/bootstrap-vue/bootstrap-vue/blob/master/LICENSE */var Fle="BootstrapVue",jle=dB({plugins:{componentsPlugin:hle,directivesPlugin:Ble}}),mBe={install:jle,NAME:Fle},Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Hle(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var F5={exports:{}};(function(t){(function(){function e(h){var v={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(h===!1)return JSON.parse(JSON.stringify(v));var g={};for(var T in v)v.hasOwnProperty(T)&&(g[T]=v[T].defaultValue);return g}function r(){var h=e(!0),v={};for(var g in h)h.hasOwnProperty(g)&&(v[g]=!0);return v}var n={},i={},a={},s=e(!0),o="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:e(!0),allOn:r()};n.helper={},n.extensions={},n.setOption=function(h,v){return s[h]=v,this},n.getOption=function(h){return s[h]},n.getOptions=function(){return s},n.resetOptions=function(){s=e(!0)},n.setFlavor=function(h){if(!u.hasOwnProperty(h))throw Error(h+" flavor was not found");n.resetOptions();var v=u[h];o=h;for(var g in v)v.hasOwnProperty(g)&&(s[g]=v[g])},n.getFlavor=function(){return o},n.getFlavorOptions=function(h){if(u.hasOwnProperty(h))return u[h]},n.getDefaultOptions=function(h){return e(h)},n.subParser=function(h,v){if(n.helper.isString(h))if(typeof v<"u")i[h]=v;else{if(i.hasOwnProperty(h))return i[h];throw Error("SubParser named "+h+" not registered!")}},n.extension=function(h,v){if(!n.helper.isString(h))throw Error("Extension 'name' must be a string");if(h=n.helper.stdExtName(h),n.helper.isUndefined(v)){if(!a.hasOwnProperty(h))throw Error("Extension named "+h+" is not registered!");return a[h]}else{typeof v=="function"&&(v=v()),n.helper.isArray(v)||(v=[v]);var g=c(v,h);if(g.valid)a[h]=v;else throw Error(g.error)}},n.getAllExtensions=function(){return a},n.removeExtension=function(h){delete a[h]},n.resetExtensions=function(){a={}};function c(h,v){var g=v?"Error in "+v+" extension->":"Error in unnamed extension",T={valid:!0,error:""};n.helper.isArray(h)||(h=[h]);for(var C=0;C"u"},n.helper.forEach=function(h,v){if(n.helper.isUndefined(h))throw new Error("obj param is required");if(n.helper.isUndefined(v))throw new Error("callback param is required");if(!n.helper.isFunction(v))throw new Error("callback param must be a function/closure");if(typeof h.forEach=="function")h.forEach(v);else if(n.helper.isArray(h))for(var g=0;g").replace(/&/g,"&")};var d=function(h,v,g,T){var C=T||"",k=C.indexOf("g")>-1,w=new RegExp(v+"|"+g,"g"+C.replace(/g/g,"")),A=new RegExp(v,C.replace(/g/g,"")),P=[],x,$,D,M,R;do for(x=0;D=w.exec(h);)if(A.test(D[0]))x++||($=w.lastIndex,M=$-D[0].length);else if(x&&!--x){R=D.index+D[0].length;var N={left:{start:M,end:$},match:{start:$,end:D.index},right:{start:D.index,end:R},wholeMatch:{start:M,end:R}};if(P.push(N),!k)return P}while(x&&(w.lastIndex=$));return P};n.helper.matchRecursiveRegExp=function(h,v,g,T){for(var C=d(h,v,g,T),k=[],w=0;w0){var x=[];w[0].wholeMatch.start!==0&&x.push(h.slice(0,w[0].wholeMatch.start));for(var $=0;$=0?T+(g||0):T},n.helper.splitAtIndex=function(h,v){if(!n.helper.isString(h))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[h.substring(0,v),h.substring(v)]},n.helper.encodeEmailAddress=function(h){var v=[function(g){return"&#"+g.charCodeAt(0)+";"},function(g){return"&#x"+g.charCodeAt(0).toString(16)+";"},function(g){return g}];return h=h.replace(/./g,function(g){if(g==="@")g=v[Math.floor(Math.random()*2)](g);else{var T=Math.random();g=T>.9?v[2](g):T>.45?v[1](g):v[0](g)}return g}),h},n.helper.padEnd=function(v,g,T){return g=g>>0,T=String(T||" "),v.length>g?String(v):(g=g-v.length,g>T.length&&(T+=T.repeat(g/T.length)),String(v)+T.slice(0,g))},typeof console>"u"&&(console={warn:function(h){alert(h)},log:function(h){alert(h)},error:function(h){throw h}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:`S`},n.Converter=function(h){var v={},g=[],T=[],C={},k=o,w={parsed:{},raw:"",format:""};A();function A(){h=h||{};for(var M in s)s.hasOwnProperty(M)&&(v[M]=s[M]);if(typeof h=="object")for(var R in h)h.hasOwnProperty(R)&&(v[R]=h[R]);else throw Error("Converter expects the passed parameter to be an object, but "+typeof h+" was passed instead.");v.extensions&&n.helper.forEach(v.extensions,P)}function P(M,R){if(R=R||null,n.helper.isString(M))if(M=n.helper.stdExtName(M),R=M,n.extensions[M]){console.warn("DEPRECATION WARNING: "+M+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),x(n.extensions[M],M);return}else if(!n.helper.isUndefined(a[M]))M=a[M];else throw Error('Extension "'+M+'" could not be loaded. It was either not found or is not a valid extension.');typeof M=="function"&&(M=M()),n.helper.isArray(M)||(M=[M]);var N=c(M,R);if(!N.valid)throw Error(N.error);for(var j=0;j[ \t]+¨NBSP;<"),!R)if(window&&window.document)R=window.document;else throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");var N=R.createElement("div");N.innerHTML=M;var j={preList:Y(N)};re(N);for(var z=N.childNodes,V="",J=0;J'}else X.push(K[se].innerHTML),K[se].innerHTML="",K[se].setAttribute("prenum",se.toString());return X}return V},this.setOption=function(M,R){v[M]=R},this.getOption=function(M){return v[M]},this.getOptions=function(){return v},this.addExtension=function(M,R){R=R||null,P(M,R)},this.useExtension=function(M){P(M)},this.setFlavor=function(M){if(!u.hasOwnProperty(M))throw Error(M+" flavor was not found");var R=u[M];k=M;for(var N in R)R.hasOwnProperty(N)&&(v[N]=R[N])},this.getFlavor=function(){return k},this.removeExtension=function(M){n.helper.isArray(M)||(M=[M]);for(var R=0;R? ?(['"].*['"])?\)$/m)>-1)A="";else if(!A)if(w||(w=k.toLowerCase().replace(/ ?\n/g," ")),A="#"+w,!n.helper.isUndefined(g.gUrls[w]))A=g.gUrls[w],n.helper.isUndefined(g.gTitles[w])||($=g.gTitles[w]);else return C;A=A.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var D='",D};return h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,T),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,T),h=h.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,T),h=h.replace(/\[([^\[\]]+)]()()()()()/g,T),v.ghMentions&&(h=h.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gmi,function(C,k,w,A,P){if(w==="\\")return k+A;if(!n.helper.isString(v.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var x=v.ghMentionsLink.replace(/\{u}/g,P),$="";return v.openLinksInNewWindow&&($=' rel="noopener noreferrer" target="¨E95Eblank"'),k+'"+A+""})),h=g.converter._dispatch("anchors.after",h,v,g),h});var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,b=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gmi,_=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,S=function(h){return function(v,g,T,C,k,w,A){T=T.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var P=T,x="",$="",D=g||"",M=A||"";return/^www\./i.test(T)&&(T=T.replace(/^www\./i,"http://www.")),h.excludeTrailingPunctuationFromURLs&&w&&(x=w),h.openLinksInNewWindow&&($=' rel="noopener noreferrer" target="¨E95Eblank"'),D+'"+P+""+x+M}},E=function(h,v){return function(g,T,C){var k="mailto:";return T=T||"",C=n.subParser("unescapeSpecialChars")(C,h,v),h.encodeEmails?(k=n.helper.encodeEmailAddress(k+C),C=n.helper.encodeEmailAddress(C)):k=k+C,T+''+C+""}};n.subParser("autoLinks",function(h,v,g){return h=g.converter._dispatch("autoLinks.before",h,v,g),h=h.replace(m,S(v)),h=h.replace(_,E(v,g)),h=g.converter._dispatch("autoLinks.after",h,v,g),h}),n.subParser("simplifiedAutoLinks",function(h,v,g){return v.simplifiedAutoLink&&(h=g.converter._dispatch("simplifiedAutoLinks.before",h,v,g),v.excludeTrailingPunctuationFromURLs?h=h.replace(p,S(v)):h=h.replace(f,S(v)),h=h.replace(b,E(v,g)),h=g.converter._dispatch("simplifiedAutoLinks.after",h,v,g)),h}),n.subParser("blockGamut",function(h,v,g){return h=g.converter._dispatch("blockGamut.before",h,v,g),h=n.subParser("blockQuotes")(h,v,g),h=n.subParser("headers")(h,v,g),h=n.subParser("horizontalRule")(h,v,g),h=n.subParser("lists")(h,v,g),h=n.subParser("codeBlocks")(h,v,g),h=n.subParser("tables")(h,v,g),h=n.subParser("hashHTMLBlocks")(h,v,g),h=n.subParser("paragraphs")(h,v,g),h=g.converter._dispatch("blockGamut.after",h,v,g),h}),n.subParser("blockQuotes",function(h,v,g){h=g.converter._dispatch("blockQuotes.before",h,v,g),h=h+` `;var T=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return v.splitAdjacentBlockquotes&&(T=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),h=h.replace(T,function(C){return C=C.replace(/^[ \t]*>[ \t]?/gm,""),C=C.replace(/¨0/g,""),C=C.replace(/^[ \t]+$/gm,""),C=n.subParser("githubCodeBlocks")(C,v,g),C=n.subParser("blockGamut")(C,v,g),C=C.replace(/(^|\n)/g,"$1 "),C=C.replace(/(\s*
[^\r]+?<\/pre>)/gm,function(k,w){var A=w;return A=A.replace(/^  /mg,"¨0"),A=A.replace(/¨0/g,""),A}),n.subParser("hashBlock")(`
`+C+`
`,v,g)}),h=g.converter._dispatch("blockQuotes.after",h,v,g),h}),n.subParser("codeBlocks",function(h,v,g){h=g.converter._dispatch("codeBlocks.before",h,v,g),h+="¨0";var T=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;return h=h.replace(T,function(C,k,w){var A=k,P=w,x=` `;return A=n.subParser("outdent")(A,v,g),A=n.subParser("encodeCode")(A,v,g),A=n.subParser("detab")(A,v,g),A=A.replace(/^\n+/g,""),A=A.replace(/\n+$/g,""),v.omitExtraWLInCodeBlocks&&(x=""),A="
"+A+x+"
",n.subParser("hashBlock")(A,v,g)+P}),h=h.replace(/¨0/,""),h=g.converter._dispatch("codeBlocks.after",h,v,g),h}),n.subParser("codeSpans",function(h,v,g){return h=g.converter._dispatch("codeSpans.before",h,v,g),typeof h>"u"&&(h=""),h=h.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(T,C,k,w){var A=w;return A=A.replace(/^([ \t]*)/g,""),A=A.replace(/[ \t]*$/g,""),A=n.subParser("encodeCode")(A,v,g),A=C+""+A+"",A=n.subParser("hashHTMLSpans")(A,v,g),A}),h=g.converter._dispatch("codeSpans.after",h,v,g),h}),n.subParser("completeHTMLDocument",function(h,v,g){if(!v.completeHTMLDocument)return h;h=g.converter._dispatch("completeHTMLDocument.before",h,v,g);var T="html",C=` `,k="",w=` `,A="",P="";typeof g.metadata.parsed.doctype<"u"&&(C=" `,T=g.metadata.parsed.doctype.toString().toLowerCase(),(T==="html"||T==="html5")&&(w=''));for(var x in g.metadata.parsed)if(g.metadata.parsed.hasOwnProperty(x))switch(x.toLowerCase()){case"doctype":break;case"title":k=""+g.metadata.parsed.title+` `;break;case"charset":T==="html"||T==="html5"?w=' `:w=' `;break;case"language":case"lang":A=' lang="'+g.metadata.parsed[x]+'"',P+=' `;break;default:P+=' `}return h=C+" `+k+w+P+` `+h.trim()+` `,h=g.converter._dispatch("completeHTMLDocument.after",h,v,g),h}),n.subParser("detab",function(h,v,g){return h=g.converter._dispatch("detab.before",h,v,g),h=h.replace(/\t(?=\t)/g," "),h=h.replace(/\t/g,"¨A¨B"),h=h.replace(/¨B(.+?)¨A/g,function(T,C){for(var k=C,w=4-k.length%4,A=0;A/g,">"),h=g.converter._dispatch("encodeAmpsAndAngles.after",h,v,g),h}),n.subParser("encodeBackslashEscapes",function(h,v,g){return h=g.converter._dispatch("encodeBackslashEscapes.before",h,v,g),h=h.replace(/\\(\\)/g,n.helper.escapeCharactersCallback),h=h.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,n.helper.escapeCharactersCallback),h=g.converter._dispatch("encodeBackslashEscapes.after",h,v,g),h}),n.subParser("encodeCode",function(h,v,g){return h=g.converter._dispatch("encodeCode.before",h,v,g),h=h.replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),h=g.converter._dispatch("encodeCode.after",h,v,g),h}),n.subParser("escapeSpecialCharsWithinTagAttributes",function(h,v,g){h=g.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",h,v,g);var T=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,C=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return h=h.replace(T,function(k){return k.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=h.replace(C,function(k){return k.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=g.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",h,v,g),h}),n.subParser("githubCodeBlocks",function(h,v,g){return v.ghCodeBlocks?(h=g.converter._dispatch("githubCodeBlocks.before",h,v,g),h+="¨0",h=h.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(T,C,k,w){var A=v.omitExtraWLInCodeBlocks?"":` `;return w=n.subParser("encodeCode")(w,v,g),w=n.subParser("detab")(w,v,g),w=w.replace(/^\n+/g,""),w=w.replace(/\n+$/g,""),w="
"+w+A+"
",w=n.subParser("hashBlock")(w,v,g),` ¨G`+(g.ghCodeBlocks.push({text:T,codeblock:w})-1)+`G `}),h=h.replace(/¨0/,""),g.converter._dispatch("githubCodeBlocks.after",h,v,g)):h}),n.subParser("hashBlock",function(h,v,g){return h=g.converter._dispatch("hashBlock.before",h,v,g),h=h.replace(/(^\n+|\n+$)/g,""),h=` ¨K`+(g.gHtmlBlocks.push(h)-1)+`K `,h=g.converter._dispatch("hashBlock.after",h,v,g),h}),n.subParser("hashCodeTags",function(h,v,g){h=g.converter._dispatch("hashCodeTags.before",h,v,g);var T=function(C,k,w,A){var P=w+n.subParser("encodeCode")(k,v,g)+A;return"¨C"+(g.gHtmlSpans.push(P)-1)+"C"};return h=n.helper.replaceRecursiveRegExp(h,T,"]*>","","gim"),h=g.converter._dispatch("hashCodeTags.after",h,v,g),h}),n.subParser("hashElement",function(h,v,g){return function(T,C){var k=C;return k=k.replace(/\n\n/g,` `),k=k.replace(/^\n/,""),k=k.replace(/\n+$/g,""),k=` ¨K`+(g.gHtmlBlocks.push(k)-1)+`K `,k}}),n.subParser("hashHTMLBlocks",function(h,v,g){h=g.converter._dispatch("hashHTMLBlocks.before",h,v,g);var T=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],C=function(M,R,N,j){var z=M;return N.search(/\bmarkdown\b/)!==-1&&(z=N+g.converter.makeHtml(R)+j),` ¨K`+(g.gHtmlBlocks.push(z)-1)+`K `};v.backslashEscapesHTMLTags&&(h=h.replace(/\\<(\/?[^>]+?)>/g,function(M,R){return"<"+R+">"}));for(var k=0;k]*>)","im"),P="<"+T[k]+"\\b[^>]*>",x="";(w=n.helper.regexIndexOf(h,A))!==-1;){var $=n.helper.splitAtIndex(h,w),D=n.helper.replaceRecursiveRegExp($[1],C,P,x,"im");if(D===$[1])break;h=$[0].concat(D)}return h=h.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,v,g)),h=n.helper.replaceRecursiveRegExp(h,function(M){return` ¨K`+(g.gHtmlBlocks.push(M)-1)+`K `},"^ {0,3}","gm"),h=h.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(h,v,g)),h=g.converter._dispatch("hashHTMLBlocks.after",h,v,g),h}),n.subParser("hashHTMLSpans",function(h,v,g){h=g.converter._dispatch("hashHTMLSpans.before",h,v,g);function T(C){return"¨C"+(g.gHtmlSpans.push(C)-1)+"C"}return h=h.replace(/<[^>]+?\/>/gi,function(C){return T(C)}),h=h.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(C){return T(C)}),h=h.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(C){return T(C)}),h=h.replace(/<[^>]+?>/gi,function(C){return T(C)}),h=g.converter._dispatch("hashHTMLSpans.after",h,v,g),h}),n.subParser("unhashHTMLSpans",function(h,v,g){h=g.converter._dispatch("unhashHTMLSpans.before",h,v,g);for(var T=0;T]*>\\s*]*>","^ {0,3}\\s*
","gim"),h=g.converter._dispatch("hashPreCodeTags.after",h,v,g),h}),n.subParser("headers",function(h,v,g){h=g.converter._dispatch("headers.before",h,v,g);var T=isNaN(parseInt(v.headerLevelStart))?1:parseInt(v.headerLevelStart),C=v.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,k=v.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;h=h.replace(C,function(P,x){var $=n.subParser("spanGamut")(x,v,g),D=v.noHeaderId?"":' id="'+A(x)+'"',M=T,R=""+$+"";return n.subParser("hashBlock")(R,v,g)}),h=h.replace(k,function(P,x){var $=n.subParser("spanGamut")(x,v,g),D=v.noHeaderId?"":' id="'+A(x)+'"',M=T+1,R=""+$+"";return n.subParser("hashBlock")(R,v,g)});var w=v.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;h=h.replace(w,function(P,x,$){var D=$;v.customizedHeaderId&&(D=$.replace(/\s?\{([^{]+?)}\s*$/,""));var M=n.subParser("spanGamut")(D,v,g),R=v.noHeaderId?"":' id="'+A($)+'"',N=T-1+x.length,j=""+M+"";return n.subParser("hashBlock")(j,v,g)});function A(P){var x,$;if(v.customizedHeaderId){var D=P.match(/\{([^{]+?)}\s*$/);D&&D[1]&&(P=D[1])}return x=P,n.helper.isString(v.prefixHeaderId)?$=v.prefixHeaderId:v.prefixHeaderId===!0?$="section-":$="",v.rawPrefixHeaderId||(x=$+x),v.ghCompatibleHeaderId?x=x.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():v.rawHeaderId?x=x.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():x=x.replace(/[^\w]/g,"").toLowerCase(),v.rawPrefixHeaderId&&(x=$+x),g.hashLinkCounts[x]?x=x+"-"+g.hashLinkCounts[x]++:g.hashLinkCounts[x]=1,x}return h=g.converter._dispatch("headers.after",h,v,g),h}),n.subParser("horizontalRule",function(h,v,g){h=g.converter._dispatch("horizontalRule.before",h,v,g);var T=n.subParser("hashBlock")("
",v,g);return h=h.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,T),h=h.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,T),h=h.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,T),h=g.converter._dispatch("horizontalRule.after",h,v,g),h}),n.subParser("images",function(h,v,g){h=g.converter._dispatch("images.before",h,v,g);var T=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,C=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,k=/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,w=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,A=/!\[([^\[\]]+)]()()()()()/g;function P($,D,M,R,N,j,z,V){return R=R.replace(/\s/g,""),x($,D,M,R,N,j,z,V)}function x($,D,M,R,N,j,z,V){var J=g.gUrls,re=g.gTitles,Y=g.gDimensions;if(M=M.toLowerCase(),V||(V=""),$.search(/\(? ?(['"].*['"])?\)$/m)>-1)R="";else if(R===""||R===null)if((M===""||M===null)&&(M=D.toLowerCase().replace(/ ?\n/g," ")),R="#"+M,!n.helper.isUndefined(J[M]))R=J[M],n.helper.isUndefined(re[M])||(V=re[M]),n.helper.isUndefined(Y[M])||(N=Y[M].width,j=Y[M].height);else return $;D=D.replace(/"/g,""").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),R=R.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var U=''+D+'","
")}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(C,k){return T(k,"","")}),h=h.replace(/\b_(\S[\s\S]*?)_\b/g,function(C,k){return T(k,"","")})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C}),h=h.replace(/__(\S[\s\S]*?)__/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C}),h=h.replace(/_([^\s_][\s\S]*?)_/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C})),v.literalMidWordAsterisks?(h=h.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(C,k,w){return T(w,k+"","")}),h=h.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(C,k,w){return T(w,k+"","")}),h=h.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(C,k,w){return T(w,k+"","")})):(h=h.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C}),h=h.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C}),h=h.replace(/\*([^\s*][\s\S]*?)\*/g,function(C,k){return/\S$/.test(k)?T(k,"",""):C})),h=g.converter._dispatch("italicsAndBold.after",h,v,g),h}),n.subParser("lists",function(h,v,g){function T(w,A){g.gListLevel++,w=w.replace(/\n{2,}$/,` `),w+="¨0";var P=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,x=/\n[ \t]*\n(?!¨0)/.test(w);return v.disableForced4SpacesIndentedSublists&&(P=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),w=w.replace(P,function($,D,M,R,N,j,z){z=z&&z.trim()!=="";var V=n.subParser("outdent")(N,v,g),J="";return j&&v.tasklists&&(J=' class="task-list-item" style="list-style-type: none;"',V=V.replace(/^[ \t]*\[(x|X| )?]/m,function(){var re='-1?(V=n.subParser("githubCodeBlocks")(V,v,g),V=n.subParser("blockGamut")(V,v,g)):(V=n.subParser("lists")(V,v,g),V=V.replace(/\n$/,""),V=n.subParser("hashHTMLBlocks")(V,v,g),V=V.replace(/\n\n+/g,` `),x?V=n.subParser("paragraphs")(V,v,g):V=n.subParser("spanGamut")(V,v,g)),V=V.replace("¨A",""),V=""+V+` `,V}),w=w.replace(/¨0/g,""),g.gListLevel--,A&&(w=w.replace(/\s+$/,"")),w}function C(w,A){if(A==="ol"){var P=w.match(/^ *(\d+)\./);if(P&&P[1]!=="1")return' start="'+P[1]+'"'}return""}function k(w,A,P){var x=v.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,$=v.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,D=A==="ul"?x:$,M="";if(w.search(D)!==-1)(function N(j){var z=j.search(D),V=C(w,A);z!==-1?(M+=` <`+A+V+`> `+T(j.slice(0,z),!!P)+" `,A=A==="ul"?"ol":"ul",D=A==="ul"?x:$,N(j.slice(z))):M+=` <`+A+V+`> `+T(j,!!P)+" `})(w);else{var R=C(w,A);M=` <`+A+R+`> `+T(w,!!P)+" `}return M}return h=g.converter._dispatch("lists.before",h,v,g),h+="¨0",g.gListLevel?h=h.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(w,A,P){var x=P.search(/[*+-]/g)>-1?"ul":"ol";return k(A,x,!0)}):h=h.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(w,A,P,x){var $=x.search(/[*+-]/g)>-1?"ul":"ol";return k(P,$,!1)}),h=h.replace(/¨0/,""),h=g.converter._dispatch("lists.after",h,v,g),h}),n.subParser("metadata",function(h,v,g){if(!v.metadata)return h;h=g.converter._dispatch("metadata.before",h,v,g);function T(C){g.metadata.raw=C,C=C.replace(/&/g,"&").replace(/"/g,"""),C=C.replace(/\n {4}/g," "),C.replace(/^([\S ]+): +([\s\S]+?)$/gm,function(k,w,A){return g.metadata.parsed[w]=A,""})}return h=h.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(C,k,w){return T(w),"¨M"}),h=h.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(C,k,w){return k&&(g.metadata.format=k),T(w),"¨M"}),h=h.replace(/¨M/g,""),h=g.converter._dispatch("metadata.after",h,v,g),h}),n.subParser("outdent",function(h,v,g){return h=g.converter._dispatch("outdent.before",h,v,g),h=h.replace(/^(\t|[ ]{1,4})/gm,"¨0"),h=h.replace(/¨0/g,""),h=g.converter._dispatch("outdent.after",h,v,g),h}),n.subParser("paragraphs",function(h,v,g){h=g.converter._dispatch("paragraphs.before",h,v,g),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,"");for(var T=h.split(/\n{2,}/g),C=[],k=T.length,w=0;w=0?C.push(A):A.search(/\S/)>=0&&(A=n.subParser("spanGamut")(A,v,g),A=A.replace(/^([ \t]*)/g,"

"),A+="

",C.push(A))}for(k=C.length,w=0;w]*>\s*]*>/.test(x)&&($=!0)}C[w]=x}return h=C.join(` `),h=h.replace(/^\n+/g,""),h=h.replace(/\n+$/g,""),g.converter._dispatch("paragraphs.after",h,v,g)}),n.subParser("runExtension",function(h,v,g,T){if(h.filter)v=h.filter(v,T.converter,g);else if(h.regex){var C=h.regex;C instanceof RegExp||(C=new RegExp(C,"g")),v=v.replace(C,h.replace)}return v}),n.subParser("spanGamut",function(h,v,g){return h=g.converter._dispatch("spanGamut.before",h,v,g),h=n.subParser("codeSpans")(h,v,g),h=n.subParser("escapeSpecialCharsWithinTagAttributes")(h,v,g),h=n.subParser("encodeBackslashEscapes")(h,v,g),h=n.subParser("images")(h,v,g),h=n.subParser("anchors")(h,v,g),h=n.subParser("autoLinks")(h,v,g),h=n.subParser("simplifiedAutoLinks")(h,v,g),h=n.subParser("emoji")(h,v,g),h=n.subParser("underline")(h,v,g),h=n.subParser("italicsAndBold")(h,v,g),h=n.subParser("strikethrough")(h,v,g),h=n.subParser("ellipsis")(h,v,g),h=n.subParser("hashHTMLSpans")(h,v,g),h=n.subParser("encodeAmpsAndAngles")(h,v,g),v.simpleLineBreaks?/\n\n¨K/.test(h)||(h=h.replace(/\n+/g,`
`)):h=h.replace(/ +\n/g,`
`),h=g.converter._dispatch("spanGamut.after",h,v,g),h}),n.subParser("strikethrough",function(h,v,g){function T(C){return v.simplifiedAutoLink&&(C=n.subParser("simplifiedAutoLinks")(C,v,g)),""+C+""}return v.strikethrough&&(h=g.converter._dispatch("strikethrough.before",h,v,g),h=h.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(C,k){return T(k)}),h=g.converter._dispatch("strikethrough.after",h,v,g)),h}),n.subParser("stripLinkDefinitions",function(h,v,g){var T=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,C=/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;h+="¨0";var k=function(w,A,P,x,$,D,M){return A=A.toLowerCase(),P.match(/^data:.+?\/.+?;base64,/)?g.gUrls[A]=P.replace(/\s/g,""):g.gUrls[A]=n.subParser("encodeAmpsAndAngles")(P,v,g),D?D+M:(M&&(g.gTitles[A]=M.replace(/"|'/g,""")),v.parseImgDimensions&&x&&$&&(g.gDimensions[A]={width:x,height:$}),"")};return h=h.replace(C,k),h=h.replace(T,k),h=h.replace(/¨0/,""),h}),n.subParser("tables",function(h,v,g){if(!v.tables)return h;var T=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,C=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function k($){return/^:[ \t]*--*$/.test($)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test($)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test($)?' style="text-align:center;"':""}function w($,D){var M="";return $=$.trim(),(v.tablesHeaderId||v.tableHeaderId)&&(M=' id="'+$.replace(/ /g,"_").toLowerCase()+'"'),$=n.subParser("spanGamut")($,v,g),""+$+` `}function A($,D){var M=n.subParser("spanGamut")($,v,g);return""+M+` `}function P($,D){for(var M=` `,R=$.length,N=0;N `,N=0;N `;for(var j=0;j `}return M+=`
`,M}function x($){var D,M=$.split(` `);for(D=0;D"+C+""}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(T,C){return""+C+""})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(T,C){return/\S$/.test(C)?""+C+"":T}),h=h.replace(/__(\S[\s\S]*?)__/g,function(T,C){return/\S$/.test(C)?""+C+"":T})),h=h.replace(/(_)/g,n.helper.escapeCharactersCallback),h=g.converter._dispatch("underline.after",h,v,g)),h}),n.subParser("unescapeSpecialChars",function(h,v,g){return h=g.converter._dispatch("unescapeSpecialChars.before",h,v,g),h=h.replace(/¨E(\d+)E/g,function(T,C){var k=parseInt(C);return String.fromCharCode(k)}),h=g.converter._dispatch("unescapeSpecialChars.after",h,v,g),h}),n.subParser("makeMarkdown.blockquote",function(h,v){var g="";if(h.hasChildNodes())for(var T=h.childNodes,C=T.length,k=0;k "+g.split(` `).join(` > `),g}),n.subParser("makeMarkdown.codeBlock",function(h,v){var g=h.getAttribute("language"),T=h.getAttribute("precodenum");return"```"+g+` `+v.preList[T]+"\n```"}),n.subParser("makeMarkdown.codeSpan",function(h){return"`"+h.innerHTML+"`"}),n.subParser("makeMarkdown.emphasis",function(h,v){var g="";if(h.hasChildNodes()){g+="*";for(var T=h.childNodes,C=T.length,k=0;k",h.hasAttribute("width")&&h.hasAttribute("height")&&(v+=" ="+h.getAttribute("width")+"x"+h.getAttribute("height")),h.hasAttribute("title")&&(v+=' "'+h.getAttribute("title")+'"'),v+=")"),v}),n.subParser("makeMarkdown.links",function(h,v){var g="";if(h.hasChildNodes()&&h.hasAttribute("href")){var T=h.childNodes,C=T.length;g="[";for(var k=0;k",h.hasAttribute("title")&&(g+=' "'+h.getAttribute("title")+'"'),g+=")"}return g}),n.subParser("makeMarkdown.list",function(h,v,g){var T="";if(!h.hasChildNodes())return"";for(var C=h.childNodes,k=C.length,w=h.getAttribute("start")||1,A=0;A"u"||C[A].tagName.toLowerCase()!=="li")){var P="";g==="ol"?P=w.toString()+". ":P="- ",T+=P+n.subParser("makeMarkdown.listItem")(C[A],v),++w}return T+=` `,T.trim()}),n.subParser("makeMarkdown.listItem",function(h,v){for(var g="",T=h.childNodes,C=T.length,k=0;k `;if(h.nodeType!==1)return"";var C=h.tagName.toLowerCase();switch(C){case"h1":g||(T=n.subParser("makeMarkdown.header")(h,v,1)+` `);break;case"h2":g||(T=n.subParser("makeMarkdown.header")(h,v,2)+` `);break;case"h3":g||(T=n.subParser("makeMarkdown.header")(h,v,3)+` `);break;case"h4":g||(T=n.subParser("makeMarkdown.header")(h,v,4)+` `);break;case"h5":g||(T=n.subParser("makeMarkdown.header")(h,v,5)+` `);break;case"h6":g||(T=n.subParser("makeMarkdown.header")(h,v,6)+` `);break;case"p":g||(T=n.subParser("makeMarkdown.paragraph")(h,v)+` `);break;case"blockquote":g||(T=n.subParser("makeMarkdown.blockquote")(h,v)+` `);break;case"hr":g||(T=n.subParser("makeMarkdown.hr")(h,v)+` `);break;case"ol":g||(T=n.subParser("makeMarkdown.list")(h,v,"ol")+` `);break;case"ul":g||(T=n.subParser("makeMarkdown.list")(h,v,"ul")+` `);break;case"precode":g||(T=n.subParser("makeMarkdown.codeBlock")(h,v)+` `);break;case"pre":g||(T=n.subParser("makeMarkdown.pre")(h,v)+` `);break;case"table":g||(T=n.subParser("makeMarkdown.table")(h,v)+` `);break;case"code":T=n.subParser("makeMarkdown.codeSpan")(h,v);break;case"em":case"i":T=n.subParser("makeMarkdown.emphasis")(h,v);break;case"strong":case"b":T=n.subParser("makeMarkdown.strong")(h,v);break;case"del":T=n.subParser("makeMarkdown.strikethrough")(h,v);break;case"a":T=n.subParser("makeMarkdown.links")(h,v);break;case"img":T=n.subParser("makeMarkdown.image")(h,v);break;default:T=h.outerHTML+` `}return T}),n.subParser("makeMarkdown.paragraph",function(h,v){var g="";if(h.hasChildNodes())for(var T=h.childNodes,C=T.length,k=0;k"+v.preList[g]+""}),n.subParser("makeMarkdown.strikethrough",function(h,v){var g="";if(h.hasChildNodes()){g+="~~";for(var T=h.childNodes,C=T.length,k=0;ktr>th"),k=h.querySelectorAll("tbody>tr"),w,A;for(w=0;wN&&(N=j)}for(w=0;w/g,"\\$1>"),v=v.replace(/^#/gm,"\\#"),v=v.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3"),v=v.replace(/^( {0,3}\d+)\./gm,"$1\\."),v=v.replace(/^( {0,3})([+-])/gm,"$1\\$2"),v=v.replace(/]([\s]*)\(/g,"\\]$1\\("),v=v.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:"),v});var O=this;t.exports?t.exports=n:O.showdown=n}).call(Te)})(F5);var zle=F5.exports;const dv=hi(zle);/*! * vue-showdown - Use showdown as a vue component * * @version v2.4.1 * @link https://vue-showdown.js.org * @license MIT * @copyright 2018-2019 meteorlxy */var i2={name:"VueShowdown",props:{markdown:{type:String,required:!1,default:null},tag:{type:String,required:!1,default:"div"},flavor:{type:String,required:!1,default:null,validator:function(e){return[null,"original","vanilla","github"].includes(e)}},options:{type:Object,required:!1,default:function(){return{}}},extensions:{type:[Object,Array],required:!1,default:null},vueTemplate:{type:Boolean,required:!1,default:!1}},computed:{converter:function(){var e=new dv.Converter({extensions:this.extensions||void 0});this.flavor!==null&&e.setFlavor(this.flavor);for(var r in this.options)e.setOption(r,this.options[r]);return e},inputMarkdown:function(){return this.markdown===null?this.$slots.default[0].text:this.markdown},outputHtml:function(){return this.converter?this.converter.makeHtml(this.inputMarkdown):""}},render:function(e){return this.vueTemplate?e({template:"<".concat(this.tag,">").concat(this.outputHtml,"")}):e(this.tag,{domProps:{innerHTML:this.outputHtml}})}},gBe={install:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.flavor,i=n===void 0?null:n,a=r.options,s=a===void 0?{}:a;i!==null&&dv.setFlavor(i);for(var o in s)dv.setOption(o,s[o]);e.component("VueShowdown",i2)},VueShowdown:i2,showdown:dv};/*! * vue-router v3.6.5 * (c) 2022 Evan You * @license MIT */function Fi(t,e){for(var r in e)t[r]=e[r];return t}var Vle=/[!'()*]/g,Ule=function(t){return"%"+t.charCodeAt(0).toString(16)},Gle=/%2C/g,sl=function(t){return encodeURIComponent(t).replace(Vle,Ule).replace(Gle,",")};function CO(t){try{return decodeURIComponent(t)}catch{}return t}function Wle(t,e,r){e===void 0&&(e={});var n=r||Yle,i;try{i=n(t||"")}catch{i={}}for(var a in e){var s=e[a];i[a]=Array.isArray(s)?s.map(a2):a2(s)}return i}var a2=function(t){return t==null||typeof t=="object"?t:String(t)};function Yle(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t&&t.split("&").forEach(function(r){var n=r.replace(/\+/g," ").split("="),i=CO(n.shift()),a=n.length>0?CO(n.join("=")):null;e[i]===void 0?e[i]=a:Array.isArray(e[i])?e[i].push(a):e[i]=[e[i],a]}),e}function Kle(t){var e=t?Object.keys(t).map(function(r){var n=t[r];if(n===void 0)return"";if(n===null)return sl(r);if(Array.isArray(n)){var i=[];return n.forEach(function(a){a!==void 0&&(a===null?i.push(sl(r)):i.push(sl(r)+"="+sl(a)))}),i.join("&")}return sl(r)+"="+sl(n)}).filter(function(r){return r.length>0}).join("&"):null;return e?"?"+e:""}var $0=/\/?$/;function k0(t,e,r,n){var i=n&&n.options.stringifyQuery,a=e.query||{};try{a=AO(a)}catch{}var s={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:a,params:e.params||{},fullPath:s2(e,i),matched:t?qle(t):[]};return r&&(s.redirectedFrom=s2(r,i)),Object.freeze(s)}function AO(t){if(Array.isArray(t))return t.map(AO);if(t&&typeof t=="object"){var e={};for(var r in t)e[r]=AO(t[r]);return e}else return t}var Jo=k0(null,{path:"/"});function qle(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function s2(t,e){var r=t.path,n=t.query;n===void 0&&(n={});var i=t.hash;i===void 0&&(i="");var a=e||Kle;return(r||"/")+a(n)+i}function j5(t,e,r){return e===Jo?t===e:e?t.path&&e.path?t.path.replace($0,"")===e.path.replace($0,"")&&(r||t.hash===e.hash&&fv(t.query,e.query)):t.name&&e.name?t.name===e.name&&(r||t.hash===e.hash&&fv(t.query,e.query)&&fv(t.params,e.params)):!1:!1}function fv(t,e){if(t===void 0&&(t={}),e===void 0&&(e={}),!t||!e)return t===e;var r=Object.keys(t).sort(),n=Object.keys(e).sort();return r.length!==n.length?!1:r.every(function(i,a){var s=t[i],o=n[a];if(o!==i)return!1;var u=e[i];return s==null||u==null?s===u:typeof s=="object"&&typeof u=="object"?fv(s,u):String(s)===String(u)})}function Xle(t,e){return t.path.replace($0,"/").indexOf(e.path.replace($0,"/"))===0&&(!e.hash||t.hash===e.hash)&&Jle(t.query,e.query)}function Jle(t,e){for(var r in e)if(!(r in t))return!1;return!0}function H5(t){for(var e=0;e=0&&(e=t.slice(n),t=t.slice(0,n));var i=t.indexOf("?");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{path:t,query:r,hash:e}}function Po(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var D0=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Ld=G5,tde=Px,rde=sde,nde=V5,ide=U5,ade=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Px(t,e){for(var r=[],n=0,i=0,a="",s=e&&e.delimiter||"/",o;(o=ade.exec(t))!=null;){var u=o[0],c=o[1],l=o.index;if(a+=t.slice(i,l),i=l+u.length,c){a+=c[1];continue}var d=t[i],f=o[2],p=o[3],m=o[4],b=o[5],_=o[6],S=o[7];a&&(r.push(a),a="");var E=f!=null&&d!=null&&d!==f,O=_==="+"||_==="*",h=_==="?"||_==="*",v=o[2]||s,g=m||b;r.push({name:p||n++,prefix:f||"",delimiter:v,optional:h,repeat:O,partial:E,asterisk:!!S,pattern:g?cde(g):S?".*":"[^"+hv(v)+"]+?"})}return i1||!v.length)return v.length===0?e():e("span",{},v)}if(this.tag==="a")h.on=O,h.attrs={href:u,"aria-current":S};else{var g=W5(this.$slots.default);if(g){g.isStatic=!1;var T=g.data=Fi({},g.data);T.on=T.on||{};for(var C in T.on){var k=T.on[C];C in O&&(T.on[C]=Array.isArray(k)?k:[k])}for(var w in O)w in T.on?T.on[w].push(O[w]):T.on[w]=E;var A=g.data.attrs=Fi({},g.data.attrs);A.href=u,A["aria-current"]=S}else h.on=O}return e(this.tag,h,this.$slots.default)}};function l2(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function W5(t){if(t){for(var e,r=0;r-1&&(_.params[h]=m.params[h]);return _.path=pv(E.path,_.params),f(E,_,b)}else if(_.path){_.params={};for(var v=0;v-1}function vy(t,e){return L0(t)&&t._isRouter&&(e==null||t.type===e)}function g2(t,e,r){var n=function(i){i>=t.length?r():t[i]?e(t[i],function(){n(i+1)}):n(i+1)};n(0)}function $de(t){return function(e,r,n){var i=!1,a=0,s=null;Z5(t,function(o,u,c,l){if(typeof o=="function"&&o.cid===void 0){i=!0,a++;var d=v2(function(b){Dde(b)&&(b=b.default),o.resolved=typeof b=="function"?b:I0.extend(b),c.components[l]=b,a--,a<=0&&n()}),f=v2(function(b){var _="Failed to resolve async component "+l+": "+b;s||(s=L0(b)?b:new Error(_),n(s))}),p;try{p=o(d,f)}catch(b){f(b)}if(p)if(typeof p.then=="function")p.then(d,f);else{var m=p.component;m&&typeof m.then=="function"&&m.then(d,f)}}}),i||n()}}function Z5(t,e){return eH(t.map(function(r){return Object.keys(r.components).map(function(n){return e(r.components[n],r.instances[n],r,n)})}))}function eH(t){return Array.prototype.concat.apply([],t)}var kde=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Dde(t){return t.__esModule||kde&&t[Symbol.toStringTag]==="Module"}function v2(t){var e=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!e)return e=!0,t.apply(this,r)}}var aa=function(e,r){this.router=e,this.base=Ide(r),this.current=Jo,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};aa.prototype.listen=function(e){this.cb=e};aa.prototype.onReady=function(e,r){this.ready?e():(this.readyCbs.push(e),r&&this.readyErrorCbs.push(r))};aa.prototype.onError=function(e){this.errorCbs.push(e)};aa.prototype.transitionTo=function(e,r,n){var i=this,a;try{a=this.router.match(e,this.current)}catch(o){throw this.errorCbs.forEach(function(u){u(o)}),o}var s=this.current;this.confirmTransition(a,function(){i.updateRoute(a),r&&r(a),i.ensureURL(),i.router.afterHooks.forEach(function(o){o&&o(a,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(o){o(a)}))},function(o){n&&n(o),o&&!i.ready&&(!vy(o,Ec.redirected)||s!==Jo)&&(i.ready=!0,i.readyErrorCbs.forEach(function(u){u(o)}))})};aa.prototype.confirmTransition=function(e,r,n){var i=this,a=this.current;this.pending=e;var s=function(b){!vy(b)&&L0(b)&&(i.errorCbs.length?i.errorCbs.forEach(function(_){_(b)}):console.error(b)),n&&n(b)},o=e.matched.length-1,u=a.matched.length-1;if(j5(e,a)&&o===u&&e.matched[o]===a.matched[u])return this.ensureURL(),e.hash&&Co(this.router,a,e,!1),s(Pde(a,e));var c=Rde(this.current.matched,e.matched),l=c.updated,d=c.deactivated,f=c.activated,p=[].concat(Nde(d),this.router.beforeHooks,Bde(l),f.map(function(b){return b.beforeEnter}),$de(f)),m=function(b,_){if(i.pending!==e)return s(m2(a,e));try{b(e,a,function(S){S===!1?(i.ensureURL(!0),s(Cde(a,e))):L0(S)?(i.ensureURL(!0),s(S)):typeof S=="string"||typeof S=="object"&&(typeof S.path=="string"||typeof S.name=="string")?(s(xde(a,e)),typeof S=="object"&&S.replace?i.replace(S):i.push(S)):_(S)})}catch(S){s(S)}};g2(p,m,function(){var b=Fde(f),_=b.concat(i.router.resolveHooks);g2(_,m,function(){if(i.pending!==e)return s(m2(a,e));i.pending=null,r(e),i.router.app&&i.router.app.$nextTick(function(){H5(e)})})})};aa.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)};aa.prototype.setupListeners=function(){};aa.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Jo,this.pending=null};function Ide(t){if(!t)if(Hp){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return t.charAt(0)!=="/"&&(t="/"+t),t.replace(/\/$/,"")}function Rde(t,e){var r,n=Math.max(t.length,e.length);for(r=0;r0)){var i=this.router,a=i.options.scrollBehavior,s=Ao&&a;s&&this.listeners.push(J5());var o=function(){var u=n.current,c=ch(n.base);n.current===Jo&&c===n._startLocation||n.transitionTo(c,function(l){s&&Co(i,l,u,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},e.prototype.go=function(n){window.history.go(n)},e.prototype.push=function(n,i,a){var s=this,o=this,u=o.current;this.transitionTo(n,function(c){R0(Po(s.base+c.fullPath)),Co(s.router,c,u,!1),i&&i(c)},a)},e.prototype.replace=function(n,i,a){var s=this,o=this,u=o.current;this.transitionTo(n,function(c){kO(Po(s.base+c.fullPath)),Co(s.router,c,u,!1),i&&i(c)},a)},e.prototype.ensureURL=function(n){if(ch(this.base)!==this.current.fullPath){var i=Po(this.base+this.current.fullPath);n?R0(i):kO(i)}},e.prototype.getCurrentLocation=function(){return ch(this.base)},e}(aa);function ch(t){var e=window.location.pathname,r=e.toLowerCase(),n=t.toLowerCase();return t&&(r===n||r.indexOf(Po(n+"/"))===0)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var nH=function(t){function e(r,n,i){t.call(this,r,n),!(i&&Hde(this.base))&&b2()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,a=i.options.scrollBehavior,s=Ao&&a;s&&this.listeners.push(J5());var o=function(){var c=n.current;b2()&&n.transitionTo(mv(),function(l){s&&Co(n.router,l,c,!0),Ao||gv(l.fullPath)})},u=Ao?"popstate":"hashchange";window.addEventListener(u,o),this.listeners.push(function(){window.removeEventListener(u,o)})}},e.prototype.push=function(n,i,a){var s=this,o=this,u=o.current;this.transitionTo(n,function(c){y2(c.fullPath),Co(s.router,c,u,!1),i&&i(c)},a)},e.prototype.replace=function(n,i,a){var s=this,o=this,u=o.current;this.transitionTo(n,function(c){gv(c.fullPath),Co(s.router,c,u,!1),i&&i(c)},a)},e.prototype.go=function(n){window.history.go(n)},e.prototype.ensureURL=function(n){var i=this.current.fullPath;mv()!==i&&(n?y2(i):gv(i))},e.prototype.getCurrentLocation=function(){return mv()},e}(aa);function Hde(t){var e=ch(t);if(!/^\/#/.test(e))return window.location.replace(Po(t+"/#"+e)),!0}function b2(){var t=mv();return t.charAt(0)==="/"?!0:(gv("/"+t),!1)}function mv(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function DO(t){var e=window.location.href,r=e.indexOf("#"),n=r>=0?e.slice(0,r):e;return n+"#"+t}function y2(t){Ao?R0(DO(t)):window.location.hash=t}function gv(t){Ao?kO(DO(t)):window.location.replace(DO(t))}var zde=function(t){function e(r,n){t.call(this,r,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(n,i,a){var s=this;this.transitionTo(n,function(o){s.stack=s.stack.slice(0,s.index+1).concat(o),s.index++,i&&i(o)},a)},e.prototype.replace=function(n,i,a){var s=this;this.transitionTo(n,function(o){s.stack=s.stack.slice(0,s.index).concat(o),i&&i(o)},a)},e.prototype.go=function(n){var i=this,a=this.index+n;if(!(a<0||a>=this.stack.length)){var s=this.stack[a];this.confirmTransition(s,function(){var o=i.current;i.index=a,i.updateRoute(s),i.router.afterHooks.forEach(function(u){u&&u(s,o)})},function(o){vy(o,Ec.duplicated)&&(i.index=a)})}},e.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},e.prototype.ensureURL=function(){},e}(aa),Bt=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=bde(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback=r==="history"&&!Ao&&e.fallback!==!1,this.fallback&&(r="hash"),Hp||(r="abstract"),this.mode=r,r){case"history":this.history=new rH(this,e.base);break;case"hash":this.history=new nH(this,e.base,this.fallback);break;case"abstract":this.history=new zde(this,e.base);break}},iH={currentRoute:{configurable:!0}};Bt.prototype.match=function(e,r,n){return this.matcher.match(e,r,n)};iH.currentRoute.get=function(){return this.history&&this.history.current};Bt.prototype.init=function(e){var r=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var s=r.apps.indexOf(e);s>-1&&r.apps.splice(s,1),r.app===e&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof rH||n instanceof nH){var i=function(s){var o=n.current,u=r.options.scrollBehavior,c=Ao&&u;c&&"fullPath"in s&&Co(r,s,o,!1)},a=function(s){n.setupListeners(),i(s)};n.transitionTo(n.getCurrentLocation(),a,a)}n.listen(function(s){r.apps.forEach(function(o){o._route=s})})}};Bt.prototype.beforeEach=function(e){return kx(this.beforeHooks,e)};Bt.prototype.beforeResolve=function(e){return kx(this.resolveHooks,e)};Bt.prototype.afterEach=function(e){return kx(this.afterHooks,e)};Bt.prototype.onReady=function(e,r){this.history.onReady(e,r)};Bt.prototype.onError=function(e){this.history.onError(e)};Bt.prototype.push=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,s){i.history.push(e,a,s)});this.history.push(e,r,n)};Bt.prototype.replace=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(a,s){i.history.replace(e,a,s)});this.history.replace(e,r,n)};Bt.prototype.go=function(e){this.history.go(e)};Bt.prototype.back=function(){this.go(-1)};Bt.prototype.forward=function(){this.go(1)};Bt.prototype.getMatchedComponents=function(e){var r=e?e.matched?e:this.resolve(e).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]};Bt.prototype.resolve=function(e,r,n){r=r||this.history.current;var i=Mx(e,r,n,this),a=this.match(i,r),s=a.redirectedFrom||a.fullPath,o=this.history.base,u=Vde(o,s,this.mode);return{location:i,route:a,href:u,normalizedTo:i,resolved:a}};Bt.prototype.getRoutes=function(){return this.matcher.getRoutes()};Bt.prototype.addRoute=function(e,r){this.matcher.addRoute(e,r),this.history.current!==Jo&&this.history.transitionTo(this.history.getCurrentLocation())};Bt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Jo&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Bt.prototype,iH);var vBe=Bt;function kx(t,e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function Vde(t,e,r){var n=r==="hash"?"#"+e:e;return t?Po(t+"/"+n):n}Bt.install=MO;Bt.version="3.6.5";Bt.isNavigationFailure=vy;Bt.NavigationFailureType=Ec;Bt.START_LOCATION=Jo;Hp&&window.Vue&&window.Vue.use(Bt);var aH={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Te,function(){return function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={exports:{},id:a,loaded:!1};return r[a].call(s.exports,s,s.exports,i),s.loaded=!0,s.exports}return i.m=r,i.c=n,i.p="",i(0)}([function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function A(P,x){for(var $=0;$"u"||this.config.encodingType===this.constants.EncrytionTypes.BASE64)}},{key:"_isAESEncryptionType",value:function(){return S.default&&this.config.encodingType===this.constants.EncrytionTypes.AES}},{key:"_isDESEncryptionType",value:function(){return O.default&&this.config.encodingType===this.constants.EncrytionTypes.DES}},{key:"_isRabbitEncryptionType",value:function(){return v.default&&this.config.encodingType===this.constants.EncrytionTypes.RABBIT}},{key:"_isRC4EncryptionType",value:function(){return T.default&&this.config.encodingType===this.constants.EncrytionTypes.RC4}},{key:"_isDataCompressionEnabled",value:function(){return this.config.isCompression}},{key:"getEncryptionSecret",value:function(x){var $=this.getMetaData(),D=this.utils.getObjectFromKey($.keys,x);D&&(this._isAES||this._isDES||this._isRabbit||this._isRC4)&&(typeof this.config.encryptionSecret>"u"?(this.utils.encryptionSecret=D.s,this.utils.encryptionSecret||(this.utils.encryptionSecret=this.utils.generateSecretKey(),this.setMetaData())):this.utils.encryptionSecret=this.config.encryptionSecret||D.s||"")}},{key:"get",value:function(x,$){var D="",M="",R=void 0,N=void 0,j=void 0;if(!this.utils.is(x))return this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED),M;if(j=this.getDataFromLocalStorage(x),!j)return M;R=j,(this._isCompression||$)&&(R=b.default.decompressFromUTF16(j)),D=R,this._isBase64||$?D=p.default.decode(R):(this.getEncryptionSecret(x),this._isAES?N=S.default.decrypt(R.toString(),this.utils.encryptionSecret):this._isDES?N=O.default.decrypt(R.toString(),this.utils.encryptionSecret):this._isRabbit?N=v.default.decrypt(R.toString(),this.utils.encryptionSecret):this._isRC4&&(N=T.default.decrypt(R.toString(),this.utils.encryptionSecret)),N&&(D=N.toString(d.default._Utf8)));try{M=JSON.parse(D)}catch{throw new Error("Could not parse JSON")}return M}},{key:"getDataFromLocalStorage",value:function(x){return this.ls.getItem(x,!0)}},{key:"getAllKeys",value:function(){var x=this.getMetaData();return this.utils.extractKeyNames(x)||[]}},{key:"set",value:function(x,$){var D="";if(!this.utils.is(x)){this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED);return}this.getEncryptionSecret(x),String(x)!==String(this.utils.metaKey)&&(this.utils.isKeyPresent(x)||(this.utils.addToKeysList(x),this.setMetaData())),D=this.processData($),this.setDataToLocalStorage(x,D)}},{key:"setDataToLocalStorage",value:function(x,$){this.ls.setItem(x,$)}},{key:"remove",value:function(x){if(!this.utils.is(x)){this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED);return}if(x===this.utils.metaKey&&this.getAllKeys().length){this.utils.warn(this.WarningEnum.META_KEY_REMOVE);return}this.utils.isKeyPresent(x)&&(this.utils.removeFromKeysList(x),this.setMetaData()),this.ls.removeItem(x)}},{key:"removeAll",value:function(){var x=void 0,$=void 0;for(x=this.getAllKeys(),$=0;$>16)&m,f=18e3*(f&65535)+(f>>16)&m;var b=(p<<16)+f&m;return b/=4294967296,b+=.5,b*(Math.random()>.5?1:-1)}},u=0,c;u>>2]>>>24-C%4*8&255;h[g+C>>>2]|=k<<24-(g+C)%4*8}else for(var C=0;C>>2]=v[C>>>2];return this.sigBytes+=T,this},clamp:function(){var O=this.words,h=this.sigBytes;O[h>>>2]&=4294967295<<32-h%4*8,O.length=s.ceil(h/4)},clone:function(){var O=d.clone.call(this);return O.words=this.words.slice(0),O},random:function(O){for(var h=[],v=function(w){var w=w,A=987654321,P=4294967295;return function(){A=36969*(A&65535)+(A>>16)&P,w=18e3*(w&65535)+(w>>16)&P;var x=(A<<16)+w&P;return x/=4294967296,x+=.5,x*(s.random()>.5?1:-1)}},g=0,T;g>>2]>>>24-T%4*8&255;g.push((C>>>4).toString(16)),g.push((C&15).toString(16))}return g.join("")},parse:function(O){for(var h=O.length,v=[],g=0;g>>3]|=parseInt(O.substr(g,2),16)<<24-g%8*4;return new f.init(v,h/2)}},b=p.Latin1={stringify:function(O){for(var h=O.words,v=O.sigBytes,g=[],T=0;T>>2]>>>24-T%4*8&255;g.push(String.fromCharCode(C))}return g.join("")},parse:function(O){for(var h=O.length,v=[],g=0;g>>2]|=(O.charCodeAt(g)&255)<<24-g%4*8;return new f.init(v,h)}},_=p.Utf8={stringify:function(O){try{return decodeURIComponent(escape(b.stringify(O)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(O){return b.parse(unescape(encodeURIComponent(O)))}},S=l.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(O){typeof O=="string"&&(O=_.parse(O)),this._data.concat(O),this._nDataBytes+=O.sigBytes},_process:function(O){var h=this._data,v=h.words,g=h.sigBytes,T=this.blockSize,C=T*4,k=g/C;O?k=s.ceil(k):k=s.max((k|0)-this._minBufferSize,0);var w=k*T,A=s.min(w*4,g);if(w){for(var P=0;P>>31}var T=(_<<5|_>>>27)+h+d[v];v<20?T+=(S&E|~S&O)+1518500249:v<40?T+=(S^E^O)+1859775393:v<60?T+=(S&E|S&O|E&O)-1894007588:T+=(S^E^O)-899497514,h=O,O=E,E=S<<30|S>>>2,S=_,_=T}b[0]=b[0]+_|0,b[1]=b[1]+S|0,b[2]=b[2]+E|0,b[3]=b[3]+O|0,b[4]=b[4]+h|0},_doFinalize:function(){var p=this._data,m=p.words,b=this._nDataBytes*8,_=p.sigBytes*8;return m[_>>>5]|=128<<24-_%32,m[(_+64>>>9<<4)+14]=Math.floor(b/4294967296),m[(_+64>>>9<<4)+15]=b,p.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var p=c.clone.call(this);return p._hash=this._hash.clone(),p}});s.SHA1=c._createHelper(f),s.HmacSHA1=c._createHmacHelper(f)}(),a.SHA1})},function(r,n,i){(function(a,s){r.exports=s(i(5))})(this,function(a){(function(){var s=a,o=s.lib,u=o.Base,c=s.enc,l=c.Utf8,d=s.algo;d.HMAC=u.extend({init:function(f,p){f=this._hasher=new f.init,typeof p=="string"&&(p=l.parse(p));var m=f.blockSize,b=m*4;p.sigBytes>b&&(p=f.finalize(p)),p.clamp();for(var _=this._oKey=p.clone(),S=this._iKey=p.clone(),E=_.words,O=S.words,h=0;h>>2]>>>24-l%4*8&255,c.push(String.fromCharCode(d));return c.join("")}},i._Utf8={stringify:function(s){try{return decodeURIComponent(escape(i.Latin1.stringify(s)))}catch{throw new Error("Malformed UTF-8 data")}}},r.exports=i},function(r,n){var i={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(s){var o="",u=void 0,c=void 0,l=void 0,d=void 0,f=void 0,p=void 0,m=void 0,b=0;for(s=i._utf8Encode(s);b>2,f=(u&3)<<4|c>>4,p=(c&15)<<2|l>>6,m=l&63,isNaN(c)?p=m=64:isNaN(l)&&(m=64),o=o+this._keyStr.charAt(d)+this._keyStr.charAt(f)+this._keyStr.charAt(p)+this._keyStr.charAt(m);return o},decode:function(s){var o="",u=void 0,c=void 0,l=void 0,d=void 0,f=void 0,p=void 0,m=void 0,b=0;for(s=s.replace(/[^A-Za-z0-9\+\/\=]/g,"");b>4,c=(f&15)<<4|p>>2,l=(p&3)<<6|m,o=o+String.fromCharCode(u),p!==64&&(o=o+String.fromCharCode(c)),m!==64&&(o=o+String.fromCharCode(l));return o=i._utf8Decode(o),o},_utf8Encode:function(s){s=s.replace(/\r\n/g,` `);for(var o="",u=0;u127&&c<2048?(o+=String.fromCharCode(c>>6|192),o+=String.fromCharCode(c&63|128)):(o+=String.fromCharCode(c>>12|224),o+=String.fromCharCode(c>>6&63|128),o+=String.fromCharCode(c&63|128))}return o},_utf8Decode:function(s){var o="",u=0,c=void 0,l=void 0,d=void 0;for(c=l=0;u191&&c<224?(l=s.charCodeAt(u+1),o+=String.fromCharCode((c&31)<<6|l&63),u+=2):(l=s.charCodeAt(u+1),d=s.charCodeAt(u+2),o+=String.fromCharCode((c&15)<<12|(l&63)<<6|d&63),u+=3);return o}};r.exports=i},function(r,n,i){var a,s=function(){var o=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",l={};function d(p,m){if(!l[p]){l[p]={};for(var b=0;b>>8,b[_*2+1]=E%256}return b},decompressFromUint8Array:function(p){if(p==null)return f.decompress(p);for(var m=new Array(p.length/2),b=0,_=m.length;b<_;b++)m[b]=p[b*2]*256+p[b*2+1];var S=[];return m.forEach(function(E){S.push(o(E))}),f.decompress(S.join(""))},compressToEncodedURIComponent:function(p){return p==null?"":f._compress(p,6,function(m){return c.charAt(m)})},decompressFromEncodedURIComponent:function(p){return p==null?"":p==""?null:(p=p.replace(/ /g,"+"),f._decompress(p.length,32,function(m){return d(c,p.charAt(m))}))},compress:function(p){return f._compress(p,16,function(m){return o(m)})},_compress:function(p,m,b){if(p==null)return"";var _,S,E={},O={},h="",v="",g="",T=2,C=3,k=2,w=[],A=0,P=0,x;for(x=0;x>1}else{for(S=1,_=0;_>1}T--,T==0&&(T=Math.pow(2,k),k++),delete O[g]}else for(S=E[g],_=0;_>1;T--,T==0&&(T=Math.pow(2,k),k++),E[v]=C++,g=String(h)}if(g!==""){if(Object.prototype.hasOwnProperty.call(O,g)){if(g.charCodeAt(0)<256){for(_=0;_>1}else{for(S=1,_=0;_>1}T--,T==0&&(T=Math.pow(2,k),k++),delete O[g]}else for(S=E[g],_=0;_>1;T--,T==0&&(T=Math.pow(2,k),k++)}for(S=2,_=0;_>1;for(;;)if(A=A<<1,P==m-1){w.push(b(A));break}else P++;return w.join("")},decompress:function(p){return p==null?"":p==""?null:f._decompress(p.length,32768,function(m){return p.charCodeAt(m)})},_decompress:function(p,m,b){var _=[],S=4,E=4,O=3,h="",v=[],g,T,C,k,w,A,P,x={val:b(0),position:m,index:1};for(g=0;g<3;g+=1)_[g]=g;for(C=0,w=Math.pow(2,2),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;switch(C){case 0:for(C=0,w=Math.pow(2,8),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;P=o(C);break;case 1:for(C=0,w=Math.pow(2,16),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;P=o(C);break;case 2:return""}for(_[3]=P,T=P,v.push(P);;){if(x.index>p)return"";for(C=0,w=Math.pow(2,O),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;switch(P=C){case 0:for(C=0,w=Math.pow(2,8),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;_[E++]=o(C),P=E-1,S--;break;case 1:for(C=0,w=Math.pow(2,16),A=1;A!=w;)k=x.val&x.position,x.position>>=1,x.position==0&&(x.position=m,x.val=b(x.index++)),C|=(k>0?1:0)*A,A<<=1;_[E++]=o(C),P=E-1,S--;break;case 2:return v.join("")}if(S==0&&(S=Math.pow(2,O),O++),_[P])h=_[P];else if(P===E)h=T+T.charAt(0);else return null;v.push(h),_[E++]=T+h.charAt(0),S--,T=h,S==0&&(S=Math.pow(2,O),O++)}}};return f}();a=(function(){return s}).call(n,i,n,r),a!==void 0&&(r.exports=a)},function(r,n,i){(function(a,s,o){r.exports=s(i(5),i(12),i(13),i(14),i(15))})(this,function(a){return function(){var s=a,o=s.lib,u=o.BlockCipher,c=s.algo,l=[],d=[],f=[],p=[],m=[],b=[],_=[],S=[],E=[],O=[];(function(){for(var g=[],T=0;T<256;T++)T<128?g[T]=T<<1:g[T]=T<<1^283;for(var C=0,k=0,T=0;T<256;T++){var w=k^k<<1^k<<2^k<<3^k<<4;w=w>>>8^w&255^99,l[C]=w,d[w]=C;var A=g[C],P=g[A],x=g[P],$=g[w]*257^w*16843008;f[C]=$<<24|$>>>8,p[C]=$<<16|$>>>16,m[C]=$<<8|$>>>24,b[C]=$;var $=x*16843009^P*65537^A*257^C*16843008;_[w]=$<<24|$>>>8,S[w]=$<<16|$>>>16,E[w]=$<<8|$>>>24,O[w]=$,C?(C=A^g[g[g[x^A]]],k^=g[g[k]]):C=k=1}})();var h=[0,1,2,4,8,16,32,64,128,27,54],v=c.AES=u.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var g=this._keyPriorReset=this._key,T=g.words,C=g.sigBytes/4,k=this._nRounds=C+6,w=(k+1)*4,A=this._keySchedule=[],P=0;P6&&P%C==4&&(x=l[x>>>24]<<24|l[x>>>16&255]<<16|l[x>>>8&255]<<8|l[x&255]):(x=x<<8|x>>>24,x=l[x>>>24]<<24|l[x>>>16&255]<<16|l[x>>>8&255]<<8|l[x&255],x^=h[P/C|0]<<24),A[P]=A[P-C]^x}for(var $=this._invKeySchedule=[],D=0;D>>24]]^S[l[x>>>16&255]]^E[l[x>>>8&255]]^O[l[x&255]]}}},encryptBlock:function(g,T){this._doCryptBlock(g,T,this._keySchedule,f,p,m,b,l)},decryptBlock:function(g,T){var C=g[T+1];g[T+1]=g[T+3],g[T+3]=C,this._doCryptBlock(g,T,this._invKeySchedule,_,S,E,O,d);var C=g[T+1];g[T+1]=g[T+3],g[T+3]=C},_doCryptBlock:function(g,T,C,k,w,A,P,x){for(var $=this._nRounds,D=g[T]^C[0],M=g[T+1]^C[1],R=g[T+2]^C[2],N=g[T+3]^C[3],j=4,z=1;z<$;z++){var V=k[D>>>24]^w[M>>>16&255]^A[R>>>8&255]^P[N&255]^C[j++],J=k[M>>>24]^w[R>>>16&255]^A[N>>>8&255]^P[D&255]^C[j++],re=k[R>>>24]^w[N>>>16&255]^A[D>>>8&255]^P[M&255]^C[j++],Y=k[N>>>24]^w[D>>>16&255]^A[M>>>8&255]^P[R&255]^C[j++];D=V,M=J,R=re,N=Y}var V=(x[D>>>24]<<24|x[M>>>16&255]<<16|x[R>>>8&255]<<8|x[N&255])^C[j++],J=(x[M>>>24]<<24|x[R>>>16&255]<<16|x[N>>>8&255]<<8|x[D&255])^C[j++],re=(x[R>>>24]<<24|x[N>>>16&255]<<16|x[D>>>8&255]<<8|x[M&255])^C[j++],Y=(x[N>>>24]<<24|x[D>>>16&255]<<16|x[M>>>8&255]<<8|x[R&255])^C[j++];g[T]=V,g[T+1]=J,g[T+2]=re,g[T+3]=Y},keySize:256/32});s.AES=u._createHelper(v)}(),a.AES})},function(r,n,i){(function(a,s){r.exports=s(i(5))})(this,function(a){return function(){var s=a,o=s.lib,u=o.WordArray,c=s.enc;c.Base64={stringify:function(d){var f=d.words,p=d.sigBytes,m=this._map;d.clamp();for(var b=[],_=0;_>>2]>>>24-_%4*8&255,E=f[_+1>>>2]>>>24-(_+1)%4*8&255,O=f[_+2>>>2]>>>24-(_+2)%4*8&255,h=S<<16|E<<8|O,v=0;v<4&&_+v*.75>>6*(3-v)&63));var g=m.charAt(64);if(g)for(;b.length%4;)b.push(g);return b.join("")},parse:function(d){var f=d.length,p=this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var b=0;b>>6-_%4*2;m[b>>>2]|=(S|E)<<24-b%4*8,b++}return u.create(m,b)}}(),a.enc.Base64})},function(r,n,i){(function(a,s){r.exports=s(i(5))})(this,function(a){return function(s){var o=a,u=o.lib,c=u.WordArray,l=u.Hasher,d=o.algo,f=[];(function(){for(var E=0;E<64;E++)f[E]=s.abs(s.sin(E+1))*4294967296|0})();var p=d.MD5=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,O){for(var h=0;h<16;h++){var v=O+h,g=E[v];E[v]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var T=this._hash.words,C=E[O+0],k=E[O+1],w=E[O+2],A=E[O+3],P=E[O+4],x=E[O+5],$=E[O+6],D=E[O+7],M=E[O+8],R=E[O+9],N=E[O+10],j=E[O+11],z=E[O+12],V=E[O+13],J=E[O+14],re=E[O+15],Y=T[0],U=T[1],K=T[2],X=T[3];Y=m(Y,U,K,X,C,7,f[0]),X=m(X,Y,U,K,k,12,f[1]),K=m(K,X,Y,U,w,17,f[2]),U=m(U,K,X,Y,A,22,f[3]),Y=m(Y,U,K,X,P,7,f[4]),X=m(X,Y,U,K,x,12,f[5]),K=m(K,X,Y,U,$,17,f[6]),U=m(U,K,X,Y,D,22,f[7]),Y=m(Y,U,K,X,M,7,f[8]),X=m(X,Y,U,K,R,12,f[9]),K=m(K,X,Y,U,N,17,f[10]),U=m(U,K,X,Y,j,22,f[11]),Y=m(Y,U,K,X,z,7,f[12]),X=m(X,Y,U,K,V,12,f[13]),K=m(K,X,Y,U,J,17,f[14]),U=m(U,K,X,Y,re,22,f[15]),Y=b(Y,U,K,X,k,5,f[16]),X=b(X,Y,U,K,$,9,f[17]),K=b(K,X,Y,U,j,14,f[18]),U=b(U,K,X,Y,C,20,f[19]),Y=b(Y,U,K,X,x,5,f[20]),X=b(X,Y,U,K,N,9,f[21]),K=b(K,X,Y,U,re,14,f[22]),U=b(U,K,X,Y,P,20,f[23]),Y=b(Y,U,K,X,R,5,f[24]),X=b(X,Y,U,K,J,9,f[25]),K=b(K,X,Y,U,A,14,f[26]),U=b(U,K,X,Y,M,20,f[27]),Y=b(Y,U,K,X,V,5,f[28]),X=b(X,Y,U,K,w,9,f[29]),K=b(K,X,Y,U,D,14,f[30]),U=b(U,K,X,Y,z,20,f[31]),Y=_(Y,U,K,X,x,4,f[32]),X=_(X,Y,U,K,M,11,f[33]),K=_(K,X,Y,U,j,16,f[34]),U=_(U,K,X,Y,J,23,f[35]),Y=_(Y,U,K,X,k,4,f[36]),X=_(X,Y,U,K,P,11,f[37]),K=_(K,X,Y,U,D,16,f[38]),U=_(U,K,X,Y,N,23,f[39]),Y=_(Y,U,K,X,V,4,f[40]),X=_(X,Y,U,K,C,11,f[41]),K=_(K,X,Y,U,A,16,f[42]),U=_(U,K,X,Y,$,23,f[43]),Y=_(Y,U,K,X,R,4,f[44]),X=_(X,Y,U,K,z,11,f[45]),K=_(K,X,Y,U,re,16,f[46]),U=_(U,K,X,Y,w,23,f[47]),Y=S(Y,U,K,X,C,6,f[48]),X=S(X,Y,U,K,D,10,f[49]),K=S(K,X,Y,U,J,15,f[50]),U=S(U,K,X,Y,x,21,f[51]),Y=S(Y,U,K,X,z,6,f[52]),X=S(X,Y,U,K,A,10,f[53]),K=S(K,X,Y,U,N,15,f[54]),U=S(U,K,X,Y,k,21,f[55]),Y=S(Y,U,K,X,M,6,f[56]),X=S(X,Y,U,K,re,10,f[57]),K=S(K,X,Y,U,$,15,f[58]),U=S(U,K,X,Y,V,21,f[59]),Y=S(Y,U,K,X,P,6,f[60]),X=S(X,Y,U,K,j,10,f[61]),K=S(K,X,Y,U,w,15,f[62]),U=S(U,K,X,Y,R,21,f[63]),T[0]=T[0]+Y|0,T[1]=T[1]+U|0,T[2]=T[2]+K|0,T[3]=T[3]+X|0},_doFinalize:function(){var E=this._data,O=E.words,h=this._nDataBytes*8,v=E.sigBytes*8;O[v>>>5]|=128<<24-v%32;var g=s.floor(h/4294967296),T=h;O[(v+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,O[(v+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,E.sigBytes=(O.length+1)*4,this._process();for(var C=this._hash,k=C.words,w=0;w<4;w++){var A=k[w];k[w]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return C},clone:function(){var E=l.clone.call(this);return E._hash=this._hash.clone(),E}});function m(E,O,h,v,g,T,C){var k=E+(O&h|~O&v)+g+C;return(k<>>32-T)+O}function b(E,O,h,v,g,T,C){var k=E+(O&v|h&~v)+g+C;return(k<>>32-T)+O}function _(E,O,h,v,g,T,C){var k=E+(O^h^v)+g+C;return(k<>>32-T)+O}function S(E,O,h,v,g,T,C){var k=E+(h^(O|~v))+g+C;return(k<>>32-T)+O}o.MD5=l._createHelper(p),o.HmacMD5=l._createHmacHelper(p)}(Math),a.MD5})},function(r,n,i){(function(a,s,o){r.exports=s(i(5),i(6),i(7))})(this,function(a){return function(){var s=a,o=s.lib,u=o.Base,c=o.WordArray,l=s.algo,d=l.MD5,f=l.EvpKDF=u.extend({cfg:u.extend({keySize:128/32,hasher:d,iterations:1}),init:function(p){this.cfg=this.cfg.extend(p)},compute:function(p,m){for(var b=this.cfg,_=b.hasher.create(),S=c.create(),E=S.words,O=b.keySize,h=b.iterations;E.length>>2]&255;x.sigBytes-=$}};u.BlockCipher=_.extend({cfg:_.cfg.extend({mode:O,padding:v}),reset:function(){_.reset.call(this);var x=this.cfg,$=x.iv,D=x.mode;if(this._xformMode==this._ENC_XFORM_MODE)var M=D.createEncryptor;else{var M=D.createDecryptor;this._minBufferSize=1}this._mode=M.call(D,this,$&&$.words)},_doProcessBlock:function(x,$){this._mode.processBlock(x,$)},_doFinalize:function(){var x=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){x.pad(this._data,this.blockSize);var $=this._process(!0)}else{var $=this._process(!0);x.unpad($)}return $},blockSize:128/32});var g=u.CipherParams=c.extend({init:function(x){this.mixIn(x)},toString:function(x){return(x||this.formatter).stringify(this)}}),T=o.format={},C=T.OpenSSL={stringify:function(x){var $=x.ciphertext,D=x.salt;if(D)var M=l.create([1398893684,1701076831]).concat(D).concat($);else var M=$;return M.toString(p)},parse:function(x){var $=p.parse(x),D=$.words;if(D[0]==1398893684&&D[1]==1701076831){var M=l.create(D.slice(2,4));D.splice(0,4),$.sigBytes-=16}return g.create({ciphertext:$,salt:M})}},k=u.SerializableCipher=c.extend({cfg:c.extend({format:C}),encrypt:function(x,$,D,M){M=this.cfg.extend(M);var R=x.createEncryptor(D,M),N=R.finalize($),j=R.cfg;return g.create({ciphertext:N,key:D,iv:j.iv,algorithm:x,mode:j.mode,padding:j.padding,blockSize:x.blockSize,formatter:M.format})},decrypt:function(x,$,D,M){M=this.cfg.extend(M),$=this._parse($,M.format);var R=x.createDecryptor(D,M).finalize($.ciphertext);return R},_parse:function(x,$){return typeof x=="string"?$.parse(x,this):x}}),w=o.kdf={},A=w.OpenSSL={execute:function(x,$,D,M){M||(M=l.random(64/8));var R=b.create({keySize:$+D}).compute(x,M),N=l.create(R.words.slice($),D*4);return R.sigBytes=$*4,g.create({key:R,iv:N,salt:M})}},P=u.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:A}),encrypt:function(x,$,D,M){M=this.cfg.extend(M);var R=M.kdf.execute(D,x.keySize,x.ivSize);M.iv=R.iv;var N=k.encrypt.call(this,x,$,R.key,M);return N.mixIn(R),N},decrypt:function(x,$,D,M){M=this.cfg.extend(M),$=this._parse($,M.format);var R=M.kdf.execute(D,x.keySize,x.ivSize,$.salt);M.iv=R.iv;var N=k.decrypt.call(this,x,$,R.key,M);return N}})}()})},function(r,n,i){(function(a,s,o){r.exports=s(i(5),i(12),i(13),i(14),i(15))})(this,function(a){return function(){var s=a,o=s.lib,u=o.WordArray,c=o.BlockCipher,l=s.algo,d=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],f=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],p=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],m=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],b=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=l.DES=c.extend({_doReset:function(){for(var h=this._key,v=h.words,g=[],T=0;T<56;T++){var C=d[T]-1;g[T]=v[C>>>5]>>>31-C%32&1}for(var k=this._subKeys=[],w=0;w<16;w++){for(var A=k[w]=[],P=p[w],T=0;T<24;T++)A[T/6|0]|=g[(f[T]-1+P)%28]<<31-T%6,A[4+(T/6|0)]|=g[28+(f[T+24]-1+P)%28]<<31-T%6;A[0]=A[0]<<1|A[0]>>>31;for(var T=1;T<7;T++)A[T]=A[T]>>>(T-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var x=this._invSubKeys=[],T=0;T<16;T++)x[T]=k[15-T]},encryptBlock:function(h,v){this._doCryptBlock(h,v,this._subKeys)},decryptBlock:function(h,v){this._doCryptBlock(h,v,this._invSubKeys)},_doCryptBlock:function(h,v,g){this._lBlock=h[v],this._rBlock=h[v+1],S.call(this,4,252645135),S.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),S.call(this,1,1431655765);for(var T=0;T<16;T++){for(var C=g[T],k=this._lBlock,w=this._rBlock,A=0,P=0;P<8;P++)A|=m[P][((w^C[P])&b[P])>>>0];this._lBlock=w,this._rBlock=k^A}var x=this._lBlock;this._lBlock=this._rBlock,this._rBlock=x,S.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),S.call(this,16,65535),S.call(this,4,252645135),h[v]=this._lBlock,h[v+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function S(h,v){var g=(this._lBlock>>>h^this._rBlock)&v;this._rBlock^=g,this._lBlock^=g<>>h^this._lBlock)&v;this._lBlock^=g,this._rBlock^=g<>>24)&16711935|(b[S]<<24|b[S]>>>8)&4278255360;var E=this._X=[b[0],b[3]<<16|b[2]>>>16,b[1],b[0]<<16|b[3]>>>16,b[2],b[1]<<16|b[0]>>>16,b[3],b[2]<<16|b[1]>>>16],O=this._C=[b[2]<<16|b[2]>>>16,b[0]&4294901760|b[1]&65535,b[3]<<16|b[3]>>>16,b[1]&4294901760|b[2]&65535,b[0]<<16|b[0]>>>16,b[2]&4294901760|b[3]&65535,b[1]<<16|b[1]>>>16,b[3]&4294901760|b[0]&65535];this._b=0;for(var S=0;S<4;S++)m.call(this);for(var S=0;S<8;S++)O[S]^=E[S+4&7];if(_){var h=_.words,v=h[0],g=h[1],T=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,C=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,k=T>>>16|C&4294901760,w=C<<16|T&65535;O[0]^=T,O[1]^=k,O[2]^=C,O[3]^=w,O[4]^=T,O[5]^=k,O[6]^=C,O[7]^=w;for(var S=0;S<4;S++)m.call(this)}},_doProcessBlock:function(b,_){var S=this._X;m.call(this),l[0]=S[0]^S[5]>>>16^S[3]<<16,l[1]=S[2]^S[7]>>>16^S[5]<<16,l[2]=S[4]^S[1]>>>16^S[7]<<16,l[3]=S[6]^S[3]>>>16^S[1]<<16;for(var E=0;E<4;E++)l[E]=(l[E]<<8|l[E]>>>24)&16711935|(l[E]<<24|l[E]>>>8)&4278255360,b[_+E]^=l[E]},blockSize:128/32,ivSize:64/32});function m(){for(var b=this._X,_=this._C,S=0;S<8;S++)d[S]=_[S];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0>>0?1:0)|0,this._b=_[7]>>>0>>0?1:0;for(var S=0;S<8;S++){var E=b[S]+_[S],O=E&65535,h=E>>>16,v=((O*O>>>17)+O*h>>>15)+h*h,g=((E&4294901760)*E|0)+((E&65535)*E|0);f[S]=v^g}b[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,b[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,b[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,b[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,b[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,b[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,b[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,b[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}s.Rabbit=u._createHelper(p)}(),a.Rabbit})},function(r,n,i){(function(a,s,o){r.exports=s(i(5),i(12),i(13),i(14),i(15))})(this,function(a){return function(){var s=a,o=s.lib,u=o.StreamCipher,c=s.algo,l=c.RC4=u.extend({_doReset:function(){for(var p=this._key,m=p.words,b=p.sigBytes,_=this._S=[],S=0;S<256;S++)_[S]=S;for(var S=0,E=0;S<256;S++){var O=S%b,h=m[O>>>2]>>>24-O%4*8&255;E=(E+_[S]+h)%256;var v=_[S];_[S]=_[E],_[E]=v}this._i=this._j=0},_doProcessBlock:function(p,m){p[m]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var p=this._S,m=this._i,b=this._j,_=0,S=0;S<4;S++){m=(m+1)%256,b=(b+p[m])%256;var E=p[m];p[m]=p[b],p[b]=E,_|=p[(p[m]+p[b])%256]<<24-S*8}return this._i=m,this._j=b,_}s.RC4=u._createHelper(l);var f=c.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var p=this.cfg.drop;p>0;p--)d.call(this)}});s.RC4Drop=u._createHelper(f)}(),a.RC4})}])})})(aH);var Ude=aH.exports;const bBe=hi(Ude);/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */function Gde(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:n});else{var r=t.prototype._init;t.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[n].concat(i.init):n,r.call(this,i)}}function n(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var Wde=typeof window<"u"?window:typeof global<"u"?global:{},ol=Wde.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Yde(t){ol&&(t._devtoolHook=ol,ol.emit("vuex:init",t),ol.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,r){ol.emit("vuex:mutation",e,r)},{prepend:!0}),t.subscribeAction(function(e,r){ol.emit("vuex:action",e,r)},{prepend:!0}))}function Kde(t,e){return t.filter(e)[0]}function IO(t,e){if(e===void 0&&(e=[]),t===null||typeof t!="object")return t;var r=Kde(e,function(i){return i.original===t});if(r)return r.copy;var n=Array.isArray(t)?[]:{};return e.push({original:t,copy:n}),Object.keys(t).forEach(function(i){n[i]=IO(t[i],e)}),n}function Nd(t,e){Object.keys(t).forEach(function(r){return e(t[r],r)})}function sH(t){return t!==null&&typeof t=="object"}function qde(t){return t&&typeof t.then=="function"}function Xde(t,e){return function(){return t(e)}}var sa=function(e,r){this.runtime=r,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=(typeof n=="function"?n():n)||{}},oH={namespaced:{configurable:!0}};oH.namespaced.get=function(){return!!this._rawModule.namespaced};sa.prototype.addChild=function(e,r){this._children[e]=r};sa.prototype.removeChild=function(e){delete this._children[e]};sa.prototype.getChild=function(e){return this._children[e]};sa.prototype.hasChild=function(e){return e in this._children};sa.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};sa.prototype.forEachChild=function(e){Nd(this._children,e)};sa.prototype.forEachGetter=function(e){this._rawModule.getters&&Nd(this._rawModule.getters,e)};sa.prototype.forEachAction=function(e){this._rawModule.actions&&Nd(this._rawModule.actions,e)};sa.prototype.forEachMutation=function(e){this._rawModule.mutations&&Nd(this._rawModule.mutations,e)};Object.defineProperties(sa.prototype,oH);var xc=function(e){this.register([],e,!1)};xc.prototype.get=function(e){return e.reduce(function(r,n){return r.getChild(n)},this.root)};xc.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};xc.prototype.update=function(e){uH([],this.root,e)};xc.prototype.register=function(e,r,n){var i=this;n===void 0&&(n=!0);var a=new sa(r,n);if(e.length===0)this.root=a;else{var s=this.get(e.slice(0,-1));s.addChild(e[e.length-1],a)}r.modules&&Nd(r.modules,function(o,u){i.register(e.concat(u),o,n)})};xc.prototype.unregister=function(e){var r=this.get(e.slice(0,-1)),n=e[e.length-1],i=r.getChild(n);i&&i.runtime&&r.removeChild(n)};xc.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),n=e[e.length-1];return r?r.hasChild(n):!1};function uH(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return;uH(t.concat(n),e.getChild(n),r.modules[n])}}var An,pi=function(e){var r=this;e===void 0&&(e={}),!An&&typeof window<"u"&&window.Vue&&dH(window.Vue);var n=e.plugins;n===void 0&&(n=[]);var i=e.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new xc(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new An,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,o=s.dispatch,u=s.commit;this.dispatch=function(f,p){return o.call(a,f,p)},this.commit=function(f,p,m){return u.call(a,f,p,m)},this.strict=i;var c=this._modules.root.state;by(this,c,[],this._modules.root),Ix(this,c),n.forEach(function(d){return d(r)});var l=e.devtools!==void 0?e.devtools:An.config.devtools;l&&Yde(this)},Dx={state:{configurable:!0}};Dx.state.get=function(){return this._vm._data.$$state};Dx.state.set=function(t){};pi.prototype.commit=function(e,r,n){var i=this,a=N0(e,r,n),s=a.type,o=a.payload,u={type:s,payload:o},c=this._mutations[s];c&&(this._withCommit(function(){c.forEach(function(d){d(o)})}),this._subscribers.slice().forEach(function(l){return l(u,i.state)}))};pi.prototype.dispatch=function(e,r){var n=this,i=N0(e,r),a=i.type,s=i.payload,o={type:a,payload:s},u=this._actions[a];if(u){try{this._actionSubscribers.slice().filter(function(l){return l.before}).forEach(function(l){return l.before(o,n.state)})}catch{}var c=u.length>1?Promise.all(u.map(function(l){return l(s)})):u[0](s);return new Promise(function(l,d){c.then(function(f){try{n._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(o,n.state)})}catch{}l(f)},function(f){try{n._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(o,n.state,f)})}catch{}d(f)})})}};pi.prototype.subscribe=function(e,r){return cH(e,this._subscribers,r)};pi.prototype.subscribeAction=function(e,r){var n=typeof e=="function"?{before:e}:e;return cH(n,this._actionSubscribers,r)};pi.prototype.watch=function(e,r,n){var i=this;return this._watcherVM.$watch(function(){return e(i.state,i.getters)},r,n)};pi.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._vm._data.$$state=e})};pi.prototype.registerModule=function(e,r,n){n===void 0&&(n={}),typeof e=="string"&&(e=[e]),this._modules.register(e,r),by(this,this.state,e,this._modules.get(e),n.preserveState),Ix(this,this.state)};pi.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=Rx(r.state,e.slice(0,-1));An.delete(n,e[e.length-1])}),lH(this)};pi.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};pi.prototype.hotUpdate=function(e){this._modules.update(e),lH(this,!0)};pi.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r};Object.defineProperties(pi.prototype,Dx);function cH(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function lH(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;by(t,r,[],t._modules.root,!0),Ix(t,r,e)}function Ix(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};Nd(i,function(o,u){a[u]=Xde(o,t),Object.defineProperty(t.getters,u,{get:function(){return t._vm[u]},enumerable:!0})});var s=An.config.silent;An.config.silent=!0,t._vm=new An({data:{$$state:e},computed:a}),An.config.silent=s,t.strict&&rfe(t),n&&(r&&t._withCommit(function(){n._data.$$state=null}),An.nextTick(function(){return n.$destroy()}))}function by(t,e,r,n,i){var a=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!a&&!i){var o=Rx(e,r.slice(0,-1)),u=r[r.length-1];t._withCommit(function(){An.set(o,u,n.state)})}var c=n.context=Jde(t,s,r);n.forEachMutation(function(l,d){var f=s+d;Zde(t,f,l,c)}),n.forEachAction(function(l,d){var f=l.root?d:s+d,p=l.handler||l;efe(t,f,p,c)}),n.forEachGetter(function(l,d){var f=s+d;tfe(t,f,l,c)}),n.forEachChild(function(l,d){by(t,e,r.concat(d),l,i)})}function Jde(t,e,r){var n=e==="",i={dispatch:n?t.dispatch:function(a,s,o){var u=N0(a,s,o),c=u.payload,l=u.options,d=u.type;return(!l||!l.root)&&(d=e+d),t.dispatch(d,c)},commit:n?t.commit:function(a,s,o){var u=N0(a,s,o),c=u.payload,l=u.options,d=u.type;(!l||!l.root)&&(d=e+d),t.commit(d,c,l)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return Qde(t,e)}},state:{get:function(){return Rx(t.state,r)}}}),i}function Qde(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach(function(i){if(i.slice(0,n)===e){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return t.getters[i]},enumerable:!0})}}),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}function Zde(t,e,r,n){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(s){r.call(t,n.state,s)})}function efe(t,e,r,n){var i=t._actions[e]||(t._actions[e]=[]);i.push(function(s){var o=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},s);return qde(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(u){throw t._devtoolHook.emit("vuex:error",u),u}):o})}function tfe(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(a){return r(n.state,n.getters,a.state,a.getters)})}function rfe(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function Rx(t,e){return e.reduce(function(r,n){return r[n]},t)}function N0(t,e,r){return sH(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function dH(t){An&&t===An||(An=t,Gde(An))}var fH=_y(function(t,e){var r={};return yy(e).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){var o=this.$store.state,u=this.$store.getters;if(t){var c=wy(this.$store,"mapState",t);if(!c)return;o=c.context.state,u=c.context.getters}return typeof a=="function"?a.call(this,o,u):o[a]},r[i].vuex=!0}),r}),hH=_y(function(t,e){var r={};return yy(e).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){for(var o=[],u=arguments.length;u--;)o[u]=arguments[u];var c=this.$store.commit;if(t){var l=wy(this.$store,"mapMutations",t);if(!l)return;c=l.context.commit}return typeof a=="function"?a.apply(this,[c].concat(o)):c.apply(this.$store,[a].concat(o))}}),r}),pH=_y(function(t,e){var r={};return yy(e).forEach(function(n){var i=n.key,a=n.val;a=t+a,r[i]=function(){if(!(t&&!wy(this.$store,"mapGetters",t)))return this.$store.getters[a]},r[i].vuex=!0}),r}),mH=_y(function(t,e){var r={};return yy(e).forEach(function(n){var i=n.key,a=n.val;r[i]=function(){for(var o=[],u=arguments.length;u--;)o[u]=arguments[u];var c=this.$store.dispatch;if(t){var l=wy(this.$store,"mapActions",t);if(!l)return;c=l.context.dispatch}return typeof a=="function"?a.apply(this,[c].concat(o)):c.apply(this.$store,[a].concat(o))}}),r}),nfe=function(t){return{mapState:fH.bind(null,t),mapGetters:pH.bind(null,t),mapMutations:hH.bind(null,t),mapActions:mH.bind(null,t)}};function yy(t){return ife(t)?Array.isArray(t)?t.map(function(e){return{key:e,val:e}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function ife(t){return Array.isArray(t)||sH(t)}function _y(t){return function(e,r){return typeof e!="string"?(r=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,r)}}function wy(t,e,r){var n=t._modulesNamespaceMap[r];return n}function afe(t){t===void 0&&(t={});var e=t.collapsed;e===void 0&&(e=!0);var r=t.filter;r===void 0&&(r=function(l,d,f){return!0});var n=t.transformer;n===void 0&&(n=function(l){return l});var i=t.mutationTransformer;i===void 0&&(i=function(l){return l});var a=t.actionFilter;a===void 0&&(a=function(l,d){return!0});var s=t.actionTransformer;s===void 0&&(s=function(l){return l});var o=t.logMutations;o===void 0&&(o=!0);var u=t.logActions;u===void 0&&(u=!0);var c=t.logger;return c===void 0&&(c=console),function(l){var d=IO(l.state);typeof c>"u"||(o&&l.subscribe(function(f,p){var m=IO(p);if(r(f,d,m)){var b=S2(),_=i(f),S="mutation "+f.type+b;_2(c,S,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",n(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",_),c.log("%c next state","color: #4CAF50; font-weight: bold",n(m)),w2(c)}d=m}),u&&l.subscribeAction(function(f,p){if(a(f,p)){var m=S2(),b=s(f),_="action "+f.type+m;_2(c,_,e),c.log("%c action","color: #03A9F4; font-weight: bold",b),w2(c)}}))}}function _2(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch{t.log(e)}}function w2(t){try{t.groupEnd()}catch{t.log("—— log end ——")}}function S2(){var t=new Date;return" @ "+Qm(t.getHours(),2)+":"+Qm(t.getMinutes(),2)+":"+Qm(t.getSeconds(),2)+"."+Qm(t.getMilliseconds(),3)}function sfe(t,e){return new Array(e+1).join(t)}function Qm(t,e){return sfe("0",e-t.toString().length)+t}var ofe={Store:pi,install:dH,version:"3.6.2",mapState:fH,mapMutations:hH,mapGetters:pH,mapActions:mH,createNamespacedHelpers:nfe,createLogger:afe};const yBe=ofe;var ufe=function(t){return function(e){return!!e&&typeof e=="object"}(t)&&!function(e){var r=Object.prototype.toString.call(e);return r==="[object RegExp]"||r==="[object Date]"||function(n){return n.$$typeof===cfe}(e)}(t)},cfe=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function lh(t,e){return e.clone!==!1&&e.isMergeableObject(t)?hd(Array.isArray(t)?[]:{},t,e):t}function lfe(t,e,r){return t.concat(e).map(function(n){return lh(n,r)})}function O2(t){return Object.keys(t).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return e.propertyIsEnumerable(r)}):[]}(t))}function T2(t,e){try{return e in t}catch{return!1}}function hd(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||lfe,r.isMergeableObject=r.isMergeableObject||ufe,r.cloneUnlessOtherwiseSpecified=lh;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):function(i,a,s){var o={};return s.isMergeableObject(i)&&O2(i).forEach(function(u){o[u]=lh(i[u],s)}),O2(a).forEach(function(u){(function(c,l){return T2(c,l)&&!(Object.hasOwnProperty.call(c,l)&&Object.propertyIsEnumerable.call(c,l))})(i,u)||(o[u]=T2(i,u)&&s.isMergeableObject(a[u])?function(c,l){if(!l.customMerge)return hd;var d=l.customMerge(c);return typeof d=="function"?d:hd}(u,s)(i[u],a[u],s):lh(a[u],s))}),o}(t,e,r):lh(e,r)}hd.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return hd(r,n,e)},{})};var dfe=hd;function _Be(t){var e=(t=t||{}).storage||window&&window.localStorage,r=t.key||"vuex";function n(l,d){var f=d.getItem(l);try{return typeof f=="string"?JSON.parse(f):typeof f=="object"?f:void 0}catch{}}function i(){return!0}function a(l,d,f){return f.setItem(l,JSON.stringify(d))}function s(l,d){return Array.isArray(d)?d.reduce(function(f,p){return function(_,S,E,O){return!/^(__proto__|constructor|prototype)$/.test(S)&&((S=S.split?S.split("."):S.slice(0)).slice(0,-1).reduce(function(h,v){return h[v]=h[v]||{}},_)[S.pop()]=E),_}(f,p,(m=l,(m=((b=p).split?b.split("."):b).reduce(function(_,S){return _&&_[S]},m))===void 0?void 0:m));var m,b},{}):l}function o(l){return function(d){return l.subscribe(d)}}(t.assertStorage||function(){e.setItem("@@",1),e.removeItem("@@")})(e);var u,c=function(){return(t.getState||n)(r,e)};return t.fetchBeforeUse&&(u=c()),function(l){t.fetchBeforeUse||(u=c()),typeof u=="object"&&u!==null&&(l.replaceState(t.overwrite?u:dfe(l.state,u,{arrayMerge:t.arrayMerger||function(d,f){return f},clone:!1})),(t.rehydrated||function(){})(l)),(t.subscriber||o)(l)(function(d,f){(t.filter||i)(d)&&(t.setState||a)(r,(t.reducer||s)(f,t.paths),e)})}}var RO={exports:{}};const ffe="2.0.0",gH=256,hfe=Number.MAX_SAFE_INTEGER||9007199254740991,pfe=16,mfe=gH-6,gfe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Sy={MAX_LENGTH:gH,MAX_SAFE_COMPONENT_LENGTH:pfe,MAX_SAFE_BUILD_LENGTH:mfe,MAX_SAFE_INTEGER:hfe,RELEASE_TYPES:gfe,SEMVER_SPEC_VERSION:ffe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const vfe=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var Oy=vfe;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n}=Sy,i=Oy;e=t.exports={};const a=e.re=[],s=e.safeRe=[],o=e.src=[],u=e.t={};let c=0;const l="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",r],[l,n]],f=m=>{for(const[b,_]of d)m=m.split(`${b}*`).join(`${b}{0,${_}}`).split(`${b}+`).join(`${b}{1,${_}}`);return m},p=(m,b,_)=>{const S=f(b),E=c++;i(m,E,b),u[m]=E,o[E]=b,a[E]=new RegExp(b,_?"g":void 0),s[E]=new RegExp(S,_?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${l}*`),p("MAINVERSION",`(${o[u.NUMERICIDENTIFIER]})\\.(${o[u.NUMERICIDENTIFIER]})\\.(${o[u.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${o[u.NUMERICIDENTIFIERLOOSE]})\\.(${o[u.NUMERICIDENTIFIERLOOSE]})\\.(${o[u.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${o[u.NUMERICIDENTIFIER]}|${o[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${o[u.NUMERICIDENTIFIERLOOSE]}|${o[u.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${o[u.PRERELEASEIDENTIFIER]}(?:\\.${o[u.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${o[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[u.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${l}+`),p("BUILD",`(?:\\+(${o[u.BUILDIDENTIFIER]}(?:\\.${o[u.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${o[u.MAINVERSION]}${o[u.PRERELEASE]}?${o[u.BUILD]}?`),p("FULL",`^${o[u.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${o[u.MAINVERSIONLOOSE]}${o[u.PRERELEASELOOSE]}?${o[u.BUILD]}?`),p("LOOSE",`^${o[u.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${o[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${o[u.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${o[u.XRANGEIDENTIFIER]})(?:\\.(${o[u.XRANGEIDENTIFIER]})(?:\\.(${o[u.XRANGEIDENTIFIER]})(?:${o[u.PRERELEASE]})?${o[u.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${o[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[u.XRANGEIDENTIFIERLOOSE]})(?:${o[u.PRERELEASELOOSE]})?${o[u.BUILD]}?)?)?`),p("XRANGE",`^${o[u.GTLT]}\\s*${o[u.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${o[u.GTLT]}\\s*${o[u.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),p("COERCERTL",o[u.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${o[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",p("TILDE",`^${o[u.LONETILDE]}${o[u.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${o[u.LONETILDE]}${o[u.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${o[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",p("CARET",`^${o[u.LONECARET]}${o[u.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${o[u.LONECARET]}${o[u.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${o[u.GTLT]}\\s*(${o[u.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${o[u.GTLT]}\\s*(${o[u.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${o[u.GTLT]}\\s*(${o[u.LOOSEPLAIN]}|${o[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${o[u.XRANGEPLAIN]})\\s+-\\s+(${o[u.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${o[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[u.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(RO,RO.exports);var zp=RO.exports;const bfe=Object.freeze({loose:!0}),yfe=Object.freeze({}),_fe=t=>t?typeof t!="object"?bfe:t:yfe;var Lx=_fe;const E2=/^[0-9]+$/,vH=(t,e)=>{const r=E2.test(t),n=E2.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:tvH(e,t);var bH={compareIdentifiers:vH,rcompareIdentifiers:wfe};const Zm=Oy,{MAX_LENGTH:x2,MAX_SAFE_INTEGER:eg}=Sy,{safeRe:P2,t:C2}=zp,Sfe=Lx,{compareIdentifiers:ul}=bH;let Ofe=class ya{constructor(e,r){if(r=Sfe(r),e instanceof ya){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>x2)throw new TypeError(`version is longer than ${x2} characters`);Zm("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=e.trim().match(r.loose?P2[C2.LOOSE]:P2[C2.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>eg||this.major<0)throw new TypeError("Invalid major version");if(this.minor>eg||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>eg||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){const a=+i;if(a>=0&&a=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let a=[r,i];n===!1&&(a=[r]),ul(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var _n=Ofe;const A2=_n,Tfe=(t,e,r=!1)=>{if(t instanceof A2)return t;try{return new A2(t,e)}catch(n){if(!r)return null;throw n}};var Bd=Tfe;const Efe=Bd,xfe=(t,e)=>{const r=Efe(t,e);return r?r.version:null};var Pfe=xfe;const Cfe=Bd,Afe=(t,e)=>{const r=Cfe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};var Mfe=Afe;const M2=_n,$fe=(t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new M2(t instanceof M2?t.version:t,r).inc(e,n,i).version}catch{return null}};var kfe=$fe;const $2=Bd,Dfe=(t,e)=>{const r=$2(t,null,!0),n=$2(e,null,!0),i=r.compare(n);if(i===0)return null;const a=i>0,s=a?r:n,o=a?n:r,u=!!s.prerelease.length;if(!!o.prerelease.length&&!u)return!o.patch&&!o.minor?"major":s.patch?"patch":s.minor?"minor":"major";const l=u?"pre":"";return r.major!==n.major?l+"major":r.minor!==n.minor?l+"minor":r.patch!==n.patch?l+"patch":"prerelease"};var Ife=Dfe;const Rfe=_n,Lfe=(t,e)=>new Rfe(t,e).major;var Nfe=Lfe;const Bfe=_n,Ffe=(t,e)=>new Bfe(t,e).minor;var jfe=Ffe;const Hfe=_n,zfe=(t,e)=>new Hfe(t,e).patch;var Vfe=zfe;const Ufe=Bd,Gfe=(t,e)=>{const r=Ufe(t,e);return r&&r.prerelease.length?r.prerelease:null};var Wfe=Gfe;const k2=_n,Yfe=(t,e,r)=>new k2(t,r).compare(new k2(e,r));var oa=Yfe;const Kfe=oa,qfe=(t,e,r)=>Kfe(e,t,r);var Xfe=qfe;const Jfe=oa,Qfe=(t,e)=>Jfe(t,e,!0);var Zfe=Qfe;const D2=_n,ehe=(t,e,r)=>{const n=new D2(t,r),i=new D2(e,r);return n.compare(i)||n.compareBuild(i)};var Nx=ehe;const the=Nx,rhe=(t,e)=>t.sort((r,n)=>the(r,n,e));var nhe=rhe;const ihe=Nx,ahe=(t,e)=>t.sort((r,n)=>ihe(n,r,e));var she=ahe;const ohe=oa,uhe=(t,e,r)=>ohe(t,e,r)>0;var Ty=uhe;const che=oa,lhe=(t,e,r)=>che(t,e,r)<0;var Bx=lhe;const dhe=oa,fhe=(t,e,r)=>dhe(t,e,r)===0;var yH=fhe;const hhe=oa,phe=(t,e,r)=>hhe(t,e,r)!==0;var _H=phe;const mhe=oa,ghe=(t,e,r)=>mhe(t,e,r)>=0;var Fx=ghe;const vhe=oa,bhe=(t,e,r)=>vhe(t,e,r)<=0;var jx=bhe;const yhe=yH,_he=_H,whe=Ty,She=Fx,Ohe=Bx,The=jx,Ehe=(t,e,r,n)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t===r;case"!==":return typeof t=="object"&&(t=t.version),typeof r=="object"&&(r=r.version),t!==r;case"":case"=":case"==":return yhe(t,r,n);case"!=":return _he(t,r,n);case">":return whe(t,r,n);case">=":return She(t,r,n);case"<":return Ohe(t,r,n);case"<=":return The(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var wH=Ehe;const xhe=_n,Phe=Bd,{safeRe:tg,t:rg}=zp,Che=(t,e)=>{if(t instanceof xhe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let r=null;if(!e.rtl)r=t.match(tg[rg.COERCE]);else{let n;for(;(n=tg[rg.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),tg[rg.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;tg[rg.COERCERTL].lastIndex=-1}return r===null?null:Phe(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};var Ahe=Che,c1,I2;function Mhe(){return I2||(I2=1,c1=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),c1}var $he=ot;ot.Node=lc;ot.create=ot;function ot(t){var e=this;if(e instanceof ot||(e=new ot),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=e;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)r=t(r,n.value,i),n=n.next;return r};ot.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)r=t(r,n.value,i),n=n.prev;return r};ot.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;r!==null;e++)t[e]=r.value,r=r.next;return t};ot.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;r!==null;e++)t[e]=r.value,r=r.prev;return t};ot.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var r=new ot;if(ethis.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&nthis.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>t;n--,i=i.prev)r.push(i.value);return r};ot.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,i=this.head;i!==null&&n1;class Lhe{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[$u]=e.max||1/0;const r=e.length||l1;if(this[cl]=typeof r!="function"?l1:r,this[Ah]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Iu]=e.maxAge||0,this[ds]=e.dispose,this[R2]=e.noDisposeOnSet||!1,this[SH]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[$u]=e||1/0,If(this)}get max(){return this[$u]}set allowStale(e){this[Ah]=!!e}get allowStale(){return this[Ah]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Iu]=e,If(this)}get maxAge(){return this[Iu]}set lengthCalculator(e){typeof e!="function"&&(e=l1),e!==this[cl]&&(this[cl]=e,this[ps]=0,this[kr].forEach(r=>{r.length=this[cl](r.value,r.key),this[ps]+=r.length})),If(this)}get lengthCalculator(){return this[cl]}get length(){return this[ps]}get itemCount(){return this[kr].length}rforEach(e,r){r=r||this;for(let n=this[kr].tail;n!==null;){const i=n.prev;L2(this,e,n,r),n=i}}forEach(e,r){r=r||this;for(let n=this[kr].head;n!==null;){const i=n.next;L2(this,e,n,r),n=i}}keys(){return this[kr].toArray().map(e=>e.key)}values(){return this[kr].toArray().map(e=>e.value)}reset(){this[ds]&&this[kr]&&this[kr].length&&this[kr].forEach(e=>this[ds](e.key,e.value)),this[Bi]=new Map,this[kr]=new Rhe,this[ps]=0}dump(){return this[kr].map(e=>B0(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[kr]}set(e,r,n){if(n=n||this[Iu],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[cl](r,e);if(this[Bi].has(e)){if(a>this[$u])return Wl(this,this[Bi].get(e)),!1;const u=this[Bi].get(e).value;return this[ds]&&(this[R2]||this[ds](e,u.value)),u.now=i,u.maxAge=n,u.value=r,this[ps]+=a-u.length,u.length=a,this.get(e),If(this),!0}const s=new Nhe(e,r,a,i,n);return s.length>this[$u]?(this[ds]&&this[ds](e,r),!1):(this[ps]+=s.length,this[kr].unshift(s),this[Bi].set(e,this[kr].head),If(this),!0)}has(e){if(!this[Bi].has(e))return!1;const r=this[Bi].get(e).value;return!B0(this,r)}get(e){return d1(this,e,!0)}peek(e){return d1(this,e,!1)}pop(){const e=this[kr].tail;return e?(Wl(this,e),e.value):null}del(e){Wl(this,this[Bi].get(e))}load(e){this.reset();const r=Date.now();for(let n=e.length-1;n>=0;n--){const i=e[n],a=i.e||0;if(a===0)this.set(i.k,i.v);else{const s=a-r;s>0&&this.set(i.k,i.v,s)}}}prune(){this[Bi].forEach((e,r)=>d1(this,r,!1))}}const d1=(t,e,r)=>{const n=t[Bi].get(e);if(n){const i=n.value;if(B0(t,i)){if(Wl(t,n),!t[Ah])return}else r&&(t[SH]&&(n.value.now=Date.now()),t[kr].unshiftNode(n));return i.value}},B0=(t,e)=>{if(!e||!e.maxAge&&!t[Iu])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[Iu]&&r>t[Iu]},If=t=>{if(t[ps]>t[$u])for(let e=t[kr].tail;t[ps]>t[$u]&&e!==null;){const r=e.prev;Wl(t,e),e=r}},Wl=(t,e)=>{if(e){const r=e.value;t[ds]&&t[ds](r.key,r.value),t[ps]-=r.length,t[Bi].delete(r.key),t[kr].removeNode(e)}};class Nhe{constructor(e,r,n,i,a){this.key=e,this.value=r,this.length=n,this.now=i,this.maxAge=a||0}}const L2=(t,e,r,n)=>{let i=r.value;B0(t,i)&&(Wl(t,r),t[Ah]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};var Bhe=Lhe,f1,N2;function ua(){if(N2)return f1;N2=1;class t{constructor($,D){if(D=n(D),$ instanceof t)return $.loose===!!D.loose&&$.includePrerelease===!!D.includePrerelease?$:new t($.raw,D);if($ instanceof i)return this.raw=$.value,this.set=[[$]],this.format(),this;if(this.options=D,this.loose=!!D.loose,this.includePrerelease=!!D.includePrerelease,this.raw=$.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(M=>this.parseRange(M)).filter(M=>M.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const M=this.set[0];if(this.set=this.set.filter(R=>!m(R[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const R of this.set)if(R.length===1&&b(R[0])){this.set=[R];break}}}this.format()}format(){return this.range=this.set.map($=>$.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange($){const M=((this.options.includePrerelease&&f)|(this.options.loose&&p))+":"+$,R=r.get(M);if(R)return R;const N=this.options.loose,j=N?o[u.HYPHENRANGELOOSE]:o[u.HYPHENRANGE];$=$.replace(j,A(this.options.includePrerelease)),a("hyphen replace",$),$=$.replace(o[u.COMPARATORTRIM],c),a("comparator trim",$),$=$.replace(o[u.TILDETRIM],l),a("tilde trim",$),$=$.replace(o[u.CARETTRIM],d),a("caret trim",$);let z=$.split(" ").map(Y=>S(Y,this.options)).join(" ").split(/\s+/).map(Y=>w(Y,this.options));N&&(z=z.filter(Y=>(a("loose invalid filter",Y,this.options),!!Y.match(o[u.COMPARATORLOOSE])))),a("range list",z);const V=new Map,J=z.map(Y=>new i(Y,this.options));for(const Y of J){if(m(Y))return[Y];V.set(Y.value,Y)}V.size>1&&V.has("")&&V.delete("");const re=[...V.values()];return r.set(M,re),re}intersects($,D){if(!($ instanceof t))throw new TypeError("a Range is required");return this.set.some(M=>_(M,D)&&$.set.some(R=>_(R,D)&&M.every(N=>R.every(j=>N.intersects(j,D)))))}test($){if(!$)return!1;if(typeof $=="string")try{$=new s($,this.options)}catch{return!1}for(let D=0;Dx.value==="<0.0.0-0",b=x=>x.value==="",_=(x,$)=>{let D=!0;const M=x.slice();let R=M.pop();for(;D&&M.length;)D=M.every(N=>R.intersects(N,$)),R=M.pop();return D},S=(x,$)=>(a("comp",x,$),x=v(x,$),a("caret",x),x=O(x,$),a("tildes",x),x=T(x,$),a("xrange",x),x=k(x,$),a("stars",x),x),E=x=>!x||x.toLowerCase()==="x"||x==="*",O=(x,$)=>x.trim().split(/\s+/).map(D=>h(D,$)).join(" "),h=(x,$)=>{const D=$.loose?o[u.TILDELOOSE]:o[u.TILDE];return x.replace(D,(M,R,N,j,z)=>{a("tilde",x,M,R,N,j,z);let V;return E(R)?V="":E(N)?V=`>=${R}.0.0 <${+R+1}.0.0-0`:E(j)?V=`>=${R}.${N}.0 <${R}.${+N+1}.0-0`:z?(a("replaceTilde pr",z),V=`>=${R}.${N}.${j}-${z} <${R}.${+N+1}.0-0`):V=`>=${R}.${N}.${j} <${R}.${+N+1}.0-0`,a("tilde return",V),V})},v=(x,$)=>x.trim().split(/\s+/).map(D=>g(D,$)).join(" "),g=(x,$)=>{a("caret",x,$);const D=$.loose?o[u.CARETLOOSE]:o[u.CARET],M=$.includePrerelease?"-0":"";return x.replace(D,(R,N,j,z,V)=>{a("caret",x,R,N,j,z,V);let J;return E(N)?J="":E(j)?J=`>=${N}.0.0${M} <${+N+1}.0.0-0`:E(z)?N==="0"?J=`>=${N}.${j}.0${M} <${N}.${+j+1}.0-0`:J=`>=${N}.${j}.0${M} <${+N+1}.0.0-0`:V?(a("replaceCaret pr",V),N==="0"?j==="0"?J=`>=${N}.${j}.${z}-${V} <${N}.${j}.${+z+1}-0`:J=`>=${N}.${j}.${z}-${V} <${N}.${+j+1}.0-0`:J=`>=${N}.${j}.${z}-${V} <${+N+1}.0.0-0`):(a("no pr"),N==="0"?j==="0"?J=`>=${N}.${j}.${z}${M} <${N}.${j}.${+z+1}-0`:J=`>=${N}.${j}.${z}${M} <${N}.${+j+1}.0-0`:J=`>=${N}.${j}.${z} <${+N+1}.0.0-0`),a("caret return",J),J})},T=(x,$)=>(a("replaceXRanges",x,$),x.split(/\s+/).map(D=>C(D,$)).join(" ")),C=(x,$)=>{x=x.trim();const D=$.loose?o[u.XRANGELOOSE]:o[u.XRANGE];return x.replace(D,(M,R,N,j,z,V)=>{a("xRange",x,M,R,N,j,z,V);const J=E(N),re=J||E(j),Y=re||E(z),U=Y;return R==="="&&U&&(R=""),V=$.includePrerelease?"-0":"",J?R===">"||R==="<"?M="<0.0.0-0":M="*":R&&U?(re&&(j=0),z=0,R===">"?(R=">=",re?(N=+N+1,j=0,z=0):(j=+j+1,z=0)):R==="<="&&(R="<",re?N=+N+1:j=+j+1),R==="<"&&(V="-0"),M=`${R+N}.${j}.${z}${V}`):re?M=`>=${N}.0.0${V} <${+N+1}.0.0-0`:Y&&(M=`>=${N}.${j}.0${V} <${N}.${+j+1}.0-0`),a("xRange return",M),M})},k=(x,$)=>(a("replaceStars",x,$),x.trim().replace(o[u.STAR],"")),w=(x,$)=>(a("replaceGTE0",x,$),x.trim().replace(o[$.includePrerelease?u.GTE0PRE:u.GTE0],"")),A=x=>($,D,M,R,N,j,z,V,J,re,Y,U,K)=>(E(M)?D="":E(R)?D=`>=${M}.0.0${x?"-0":""}`:E(N)?D=`>=${M}.${R}.0${x?"-0":""}`:j?D=`>=${D}`:D=`>=${D}${x?"-0":""}`,E(J)?V="":E(re)?V=`<${+J+1}.0.0-0`:E(Y)?V=`<${J}.${+re+1}.0-0`:U?V=`<=${J}.${re}.${Y}-${U}`:x?V=`<${J}.${re}.${+Y+1}-0`:V=`<=${V}`,`${D} ${V}`.trim()),P=(x,$,D)=>{for(let M=0;M0){const R=x[M].semver;if(R.major===$.major&&R.minor===$.minor&&R.patch===$.patch)return!0}return!1}return!0};return f1}var h1,B2;function Ey(){if(B2)return h1;B2=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(l,d){if(d=r(d),l instanceof e){if(l.loose===!!d.loose)return l;l=l.value}l=l.trim().split(/\s+/).join(" "),s("comparator",l,d),this.options=d,this.loose=!!d.loose,this.parse(l),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(l){const d=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR],f=l.match(d);if(!f)throw new TypeError(`Invalid comparator: ${l}`);this.operator=f[1]!==void 0?f[1]:"",this.operator==="="&&(this.operator=""),f[2]?this.semver=new o(f[2],this.options.loose):this.semver=t}toString(){return this.value}test(l){if(s("Comparator.test",l,this.options.loose),this.semver===t||l===t)return!0;if(typeof l=="string")try{l=new o(l,this.options)}catch{return!1}return a(l,this.operator,this.semver,this.options)}intersects(l,d){if(!(l instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new u(l.value,d).test(this.value):l.operator===""?l.value===""?!0:new u(this.value,d).test(l.semver):(d=r(d),d.includePrerelease&&(this.value==="<0.0.0-0"||l.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||l.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&l.operator.startsWith(">")||this.operator.startsWith("<")&&l.operator.startsWith("<")||this.semver.version===l.semver.version&&this.operator.includes("=")&&l.operator.includes("=")||a(this.semver,"<",l.semver,d)&&this.operator.startsWith(">")&&l.operator.startsWith("<")||a(this.semver,">",l.semver,d)&&this.operator.startsWith("<")&&l.operator.startsWith(">")))}}h1=e;const r=Lx,{safeRe:n,t:i}=zp,a=wH,s=Oy,o=_n,u=ua();return h1}const Fhe=ua(),jhe=(t,e,r)=>{try{e=new Fhe(e,r)}catch{return!1}return e.test(t)};var xy=jhe;const Hhe=ua(),zhe=(t,e)=>new Hhe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var Vhe=zhe;const Uhe=_n,Ghe=ua(),Whe=(t,e,r)=>{let n=null,i=null,a=null;try{a=new Ghe(e,r)}catch{return null}return t.forEach(s=>{a.test(s)&&(!n||i.compare(s)===-1)&&(n=s,i=new Uhe(n,r))}),n};var Yhe=Whe;const Khe=_n,qhe=ua(),Xhe=(t,e,r)=>{let n=null,i=null,a=null;try{a=new qhe(e,r)}catch{return null}return t.forEach(s=>{a.test(s)&&(!n||i.compare(s)===1)&&(n=s,i=new Khe(n,r))}),n};var Jhe=Xhe;const p1=_n,Qhe=ua(),F2=Ty,Zhe=(t,e)=>{t=new Qhe(t,e);let r=new p1("0.0.0");if(t.test(r)||(r=new p1("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{const o=new p1(s.semver.version);switch(s.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!a||F2(o,a))&&(a=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),a&&(!r||F2(r,a))&&(r=a)}return r&&t.test(r)?r:null};var epe=Zhe;const tpe=ua(),rpe=(t,e)=>{try{return new tpe(t,e).range||"*"}catch{return null}};var npe=rpe;const ipe=_n,OH=Ey(),{ANY:ape}=OH,spe=ua(),ope=xy,j2=Ty,H2=Bx,upe=jx,cpe=Fx,lpe=(t,e,r,n)=>{t=new ipe(t,n),e=new spe(e,n);let i,a,s,o,u;switch(r){case">":i=j2,a=upe,s=H2,o=">",u=">=";break;case"<":i=H2,a=cpe,s=j2,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ope(t,e,n))return!1;for(let c=0;c{p.semver===ape&&(p=new OH(">=0.0.0")),d=d||p,f=f||p,i(p.semver,d.semver,n)?d=p:s(p.semver,f.semver,n)&&(f=p)}),d.operator===o||d.operator===u||(!f.operator||f.operator===o)&&a(t,f.semver))return!1;if(f.operator===u&&s(t,f.semver))return!1}return!0};var Hx=lpe;const dpe=Hx,fpe=(t,e,r)=>dpe(t,e,">",r);var hpe=fpe;const ppe=Hx,mpe=(t,e,r)=>ppe(t,e,"<",r);var gpe=mpe;const z2=ua(),vpe=(t,e,r)=>(t=new z2(t,r),e=new z2(e,r),t.intersects(e,r));var bpe=vpe;const ype=xy,_pe=oa;var wpe=(t,e,r)=>{const n=[];let i=null,a=null;const s=t.sort((l,d)=>_pe(l,d,r));for(const l of s)ype(l,e,r)?(a=l,i||(i=l)):(a&&n.push([i,a]),a=null,i=null);i&&n.push([i,null]);const o=[];for(const[l,d]of n)l===d?o.push(l):!d&&l===s[0]?o.push("*"):d?l===s[0]?o.push(`<=${d}`):o.push(`${l} - ${d}`):o.push(`>=${l}`);const u=o.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return u.length{if(t===e)return!0;t=new V2(t,r),e=new V2(e,r);let n=!1;e:for(const i of t.set){for(const a of e.set){const s=Tpe(i,a,r);if(n=n||s!==null,s)continue e}if(n)return!1}return!0},Ope=[new zx(">=0.0.0-0")],U2=[new zx(">=0.0.0")],Tpe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===m1){if(e.length===1&&e[0].semver===m1)return!0;r.includePrerelease?t=Ope:t=U2}if(e.length===1&&e[0].semver===m1){if(r.includePrerelease)return!0;e=U2}const n=new Set;let i,a;for(const p of t)p.operator===">"||p.operator===">="?i=G2(i,p,r):p.operator==="<"||p.operator==="<="?a=W2(a,p,r):n.add(p.semver);if(n.size>1)return null;let s;if(i&&a){if(s=Vx(i.semver,a.semver,r),s>0)return null;if(s===0&&(i.operator!==">="||a.operator!=="<="))return null}for(const p of n){if(i&&!Rf(p,String(i),r)||a&&!Rf(p,String(a),r))return null;for(const m of e)if(!Rf(p,String(m),r))return!1;return!0}let o,u,c,l,d=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,f=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;d&&d.prerelease.length===1&&a.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const p of e){if(l=l||p.operator===">"||p.operator===">=",c=c||p.operator==="<"||p.operator==="<=",i){if(f&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===f.major&&p.semver.minor===f.minor&&p.semver.patch===f.patch&&(f=!1),p.operator===">"||p.operator===">="){if(o=G2(i,p,r),o===p&&o!==i)return!1}else if(i.operator===">="&&!Rf(i.semver,String(p),r))return!1}if(a){if(d&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===d.major&&p.semver.minor===d.minor&&p.semver.patch===d.patch&&(d=!1),p.operator==="<"||p.operator==="<="){if(u=W2(a,p,r),u===p&&u!==a)return!1}else if(a.operator==="<="&&!Rf(a.semver,String(p),r))return!1}if(!p.operator&&(a||i)&&s!==0)return!1}return!(i&&c&&!a&&s!==0||a&&l&&!i&&s!==0||f||d)},G2=(t,e,r)=>{if(!t)return e;const n=Vx(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},W2=(t,e,r)=>{if(!t)return e;const n=Vx(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};var Epe=Spe;const g1=zp,Y2=Sy,xpe=_n,K2=bH,Ppe=Bd,Cpe=Pfe,Ape=Mfe,Mpe=kfe,$pe=Ife,kpe=Nfe,Dpe=jfe,Ipe=Vfe,Rpe=Wfe,Lpe=oa,Npe=Xfe,Bpe=Zfe,Fpe=Nx,jpe=nhe,Hpe=she,zpe=Ty,Vpe=Bx,Upe=yH,Gpe=_H,Wpe=Fx,Ype=jx,Kpe=wH,qpe=Ahe,Xpe=Ey(),Jpe=ua(),Qpe=xy,Zpe=Vhe,eme=Yhe,tme=Jhe,rme=epe,nme=npe,ime=Hx,ame=hpe,sme=gpe,ome=bpe,ume=wpe,cme=Epe;var lme={parse:Ppe,valid:Cpe,clean:Ape,inc:Mpe,diff:$pe,major:kpe,minor:Dpe,patch:Ipe,prerelease:Rpe,compare:Lpe,rcompare:Npe,compareLoose:Bpe,compareBuild:Fpe,sort:jpe,rsort:Hpe,gt:zpe,lt:Vpe,eq:Upe,neq:Gpe,gte:Wpe,lte:Ype,cmp:Kpe,coerce:qpe,Comparator:Xpe,Range:Jpe,satisfies:Qpe,toComparators:Zpe,maxSatisfying:eme,minSatisfying:tme,minVersion:rme,validRange:nme,outside:ime,gtr:ame,ltr:sme,intersects:ome,simplifyRange:ume,subset:cme,SemVer:xpe,re:g1.re,src:g1.src,tokens:g1.t,SEMVER_SPEC_VERSION:Y2.SEMVER_SPEC_VERSION,RELEASE_TYPES:Y2.RELEASE_TYPES,compareIdentifiers:K2.compareIdentifiers,rcompareIdentifiers:K2.rcompareIdentifiers};const wBe=hi(lme),TH=Object.prototype.toString;function EH(t){switch(TH.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Is(t,Error)}}function Fd(t,e){return TH.call(t)===`[object ${e}]`}function Ux(t){return Fd(t,"ErrorEvent")}function q2(t){return Fd(t,"DOMError")}function dme(t){return Fd(t,"DOMException")}function Fa(t){return Fd(t,"String")}function Gx(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function Wx(t){return t===null||Gx(t)||typeof t!="object"&&typeof t!="function"}function pd(t){return Fd(t,"Object")}function Py(t){return typeof Event<"u"&&Is(t,Event)}function fme(t){return typeof Element<"u"&&Is(t,Element)}function hme(t){return Fd(t,"RegExp")}function Vp(t){return!!(t&&t.then&&typeof t.then=="function")}function pme(t){return pd(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function xH(t){return typeof t=="number"&&t!==t}function Is(t,e){try{return t instanceof e}catch{return!1}}function PH(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Yl(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function X2(t,e){if(!Array.isArray(t))return"";const r=[];for(let n=0;nmme(t,n,r))}function CH(t,e,r=250,n,i,a,s){if(!a.exception||!a.exception.values||!s||!Is(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=gme(LO(t,e,i,s.originalException,n,a.exception.values,o,0),r))}function LO(t,e,r,n,i,a,s,o){if(a.length>=r+1)return a;let u=[...a];if(Is(n[i],Error)){J2(s,o);const c=t(e,n[i]),l=u.length;Q2(c,i,l,o),u=LO(t,e,r,n[i],i,[c,...u],c,l)}return Array.isArray(n.errors)&&n.errors.forEach((c,l)=>{if(Is(c,Error)){J2(s,o);const d=t(e,c),f=u.length;Q2(d,`errors[${l}]`,f,o),u=LO(t,e,r,c,i,[d,...u],d,f)}}),u}function J2(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function Q2(t,e,r,n){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:r,parent_id:n}}function gme(t,e){return t.map(r=>(r.value&&(r.value=Yl(r.value,e)),r))}function ng(t){return t&&t.Math==Math?t:void 0}const je=typeof globalThis=="object"&&ng(globalThis)||typeof window=="object"&&ng(window)||typeof self=="object"&&ng(self)||typeof global=="object"&&ng(global)||function(){return this}()||{};function Yx(){return je}function AH(t,e,r){const n=r||je,i=n.__SENTRY__=n.__SENTRY__||{};return i[t]||(i[t]=e())}const Kl=Yx(),vme=80;function dc(t,e={}){if(!t)return"";try{let r=t;const n=5,i=[];let a=0,s=0;const o=" > ",u=o.length;let c;const l=Array.isArray(e)?e:e.keyAttrs,d=!Array.isArray(e)&&e.maxStringLength||vme;for(;r&&a++1&&s+i.length*u+c.length>=d));)i.push(c),s+=c.length,r=r.parentNode;return i.reverse().join(o)}catch{return""}}function bme(t,e){const r=t,n=[];let i,a,s,o,u;if(!r||!r.tagName)return"";if(Kl.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());const c=e&&e.length?e.filter(d=>r.getAttribute(d)).map(d=>[d,r.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{n.push(`[${d[0]}="${d[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),i=r.className,i&&Fa(i))for(a=i.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,yme="Sentry Logger ",NO=["debug","info","warn","error","log","assert","trace"],F0={};function Ga(t){if(!("console"in je))return t();const e=je.console,r={},n=Object.keys(F0);n.forEach(i=>{const a=F0[i];r[i]=e[i],e[i]=a});try{return t()}finally{n.forEach(i=>{e[i]=r[i]})}}function _me(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Hd?NO.forEach(r=>{e[r]=(...n)=>{t&&Ga(()=>{je.console[r](`${yme}[${r}]:`,...n)})}}):NO.forEach(r=>{e[r]=()=>{}}),e}const W=_me(),wme=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Sme(t){return t==="http"||t==="https"}function zd(t,e=!1){const{host:r,path:n,pass:i,port:a,projectId:s,protocol:o,publicKey:u}=t;return`${o}://${u}${e&&i?`:${i}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${s}`}function DH(t){const e=wme.exec(t);if(!e){Ga(()=>{console.error(`Invalid Sentry Dsn: ${t}`)});return}const[r,n,i="",a,s="",o]=e.slice(1);let u="",c=o;const l=c.split("/");if(l.length>1&&(u=l.slice(0,-1).join("/"),c=l.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return IH({host:a,pass:i,path:u,projectId:c,port:s,protocol:r,publicKey:n})}function IH(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Ome(t){if(!Hd)return!0;const{port:e,projectId:r,protocol:n}=t;return["protocol","publicKey","host","projectId"].find(s=>t[s]?!1:(W.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:r.match(/^\d+$/)?Sme(n)?e&&isNaN(parseInt(e,10))?(W.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(W.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(W.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function RH(t){const e=typeof t=="string"?DH(t):IH(t);if(!(!e||!Ome(e)))return e}class Ma extends Error{constructor(e,r="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}}function Lr(t,e,r){if(!(e in t))return;const n=t[e],i=r(n);typeof i=="function"&&LH(i,n),t[e]=i}function sp(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Hd&&W.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function LH(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,sp(t,"__sentry_original__",e)}catch{}}function Kx(t){return t.__sentry_original__}function Tme(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function NH(t){if(EH(t))return{message:t.message,name:t.name,stack:t.stack,...eR(t)};if(Py(t)){const e={type:t.type,target:Z2(t.target),currentTarget:Z2(t.currentTarget),...eR(t)};return typeof CustomEvent<"u"&&Is(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function Z2(t){try{return fme(t)?dc(t):Object.prototype.toString.call(t)}catch{return""}}function eR(t){if(typeof t=="object"&&t!==null){const e={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}else return{}}function Eme(t,e=40){const r=Object.keys(NH(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return Yl(r[0],e);for(let n=r.length;n>0;n--){const i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:Yl(i,e)}return""}function Xr(t){return BO(t,new Map)}function BO(t,e){if(xme(t)){const r=e.get(t);if(r!==void 0)return r;const n={};e.set(t,n);for(const i of Object.keys(t))typeof t[i]<"u"&&(n[i]=BO(t[i],e));return n}if(Array.isArray(t)){const r=e.get(t);if(r!==void 0)return r;const n=[];return e.set(t,n),t.forEach(i=>{n.push(BO(i,e))}),n}return t}function xme(t){if(!pd(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const BH=50,tR=/\(error: (.*)\)/,rR=/captureMessage|captureException/;function FH(...t){const e=t.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{const i=[],a=r.split(` `);for(let s=n;s1024)continue;const u=tR.test(o)?o.replace(tR,"$1"):o;if(!u.match(/\S*Error: /)){for(const c of e){const l=c(u);if(l){i.push(l);break}}if(i.length>=BH)break}}return Cme(i)}}function Pme(t){return Array.isArray(t)?FH(...t):t}function Cme(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),rR.test(e[e.length-1].function||"")&&(e.pop(),rR.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,BH).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}const v1="";function Rs(t){try{return!t||typeof t!="function"?v1:t.name||v1}catch{return v1}}const vv={},nR={};function Pc(t,e){vv[t]=vv[t]||[],vv[t].push(e)}function Cc(t,e){nR[t]||(e(),nR[t]=!0)}function Gi(t,e){const r=t&&vv[t];if(r)for(const n of r)try{n(e)}catch(i){Hd&&W.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Rs(n)} Error:`,i)}}function Ame(t){const e="console";Pc(e,t),Cc(e,Mme)}function Mme(){"console"in je&&NO.forEach(function(t){t in je.console&&Lr(je.console,t,function(e){return F0[t]=e,function(...r){Gi("console",{args:r,level:t});const i=F0[t];i&&i.apply(je.console,r)}})})}function jt(){const t=je,e=t.crypto||t.msCrypto;let r=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(r=()=>{const n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function jH(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function ho(t){const{message:e,event_id:r}=t;if(e)return e;const n=jH(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function FO(t,e,r){const n=t.exception=t.exception||{},i=n.values=n.values||[],a=i[0]=i[0]||{};a.value||(a.value=e||""),a.type||(a.type=r||"Error")}function op(t,e){const r=jH(t);if(!r)return;const n={type:"generic",handled:!0},i=r.mechanism;if(r.mechanism={...n,...i,...e},e&&"data"in e){const a={...i&&i.data,...e.data};r.mechanism.data=a}}function iR(t){if(t&&t.__sentry_captured__)return!0;try{sp(t,"__sentry_captured__",!0)}catch{}return!1}function qx(t){return Array.isArray(t)?t:[t]}const Ol=je,$me=1e3;let aR,jO,HO;function HH(t){const e="dom";Pc(e,t),Cc(e,kme)}function kme(){if(!Ol.document)return;const t=Gi.bind(null,"dom"),e=sR(t,!0);Ol.document.addEventListener("click",e,!1),Ol.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const n=Ol[r]&&Ol[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Lr(n,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__=u.__sentry_instrumentation_handlers__||{},l=c[a]=c[a]||{refCount:0};if(!l.handler){const d=sR(t);l.handler=d,i.call(this,a,d,o)}l.refCount++}catch{}return i.call(this,a,s,o)}}),Lr(n,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const u=this,c=u.__sentry_instrumentation_handlers__||{},l=c[a];l&&(l.refCount--,l.refCount<=0&&(i.call(this,a,l.handler,o),l.handler=void 0,delete c[a]),Object.keys(c).length===0&&delete u.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function Dme(t){if(t.type!==jO)return!1;try{if(!t.target||t.target._sentryId!==HO)return!1}catch{}return!0}function Ime(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function sR(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Rme(r);if(Ime(r.type,n))return;sp(r,"_sentryCaptured",!0),n&&!n._sentryId&&sp(n,"_sentryId",jt());const i=r.type==="keypress"?"input":r.type;Dme(r)||(t({event:r,name:i,global:e}),jO=r.type,HO=n?n._sentryId:void 0),clearTimeout(aR),aR=Ol.setTimeout(()=>{HO=void 0,jO=void 0},$me)}}function Rme(t){try{return t.target}catch{return null}}const zO=Yx();function zH(){if(!("fetch"in zO))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function VO(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Lme(){if(typeof EdgeRuntime=="string")return!0;if(!zH())return!1;if(VO(zO.fetch))return!0;let t=!1;const e=zO.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=VO(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Hd&&W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Xx(t){const e="fetch";Pc(e,t),Cc(e,Nme)}function Nme(){Lme()&&Lr(je,"fetch",function(t){return function(...e){const{method:r,url:n}=Bme(e),i={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return Gi("fetch",{...i}),t.apply(je,e).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Gi("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Gi("fetch",s),a})}})}function UO(t,e){return!!t&&typeof t=="object"&&!!t[e]}function oR(t){return typeof t=="string"?t:t?UO(t,"url")?t.url:t.toString?t.toString():"":""}function Bme(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:oR(r),method:UO(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:oR(e),method:UO(e,"method")?String(e.method).toUpperCase():"GET"}}let ig=null;function VH(t){const e="error";Pc(e,t),Cc(e,Fme)}function Fme(){ig=je.onerror,je.onerror=function(t,e,r,n,i){return Gi("error",{column:n,error:i,line:r,msg:t,url:e}),ig&&!ig.__SENTRY_LOADER__?ig.apply(this,arguments):!1},je.onerror.__SENTRY_INSTRUMENTED__=!0}let ag=null;function UH(t){const e="unhandledrejection";Pc(e,t),Cc(e,jme)}function jme(){ag=je.onunhandledrejection,je.onunhandledrejection=function(t){return Gi("unhandledrejection",t),ag&&!ag.__SENTRY_LOADER__?ag.apply(this,arguments):!0},je.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const sg=Yx();function Hme(){const t=sg.chrome,e=t&&t.app&&t.app.runtime,r="history"in sg&&!!sg.history.pushState&&!!sg.history.replaceState;return!e&&r}const Lf=je;let og;function Up(t){const e="history";Pc(e,t),Cc(e,zme)}function zme(){if(!Hme())return;const t=Lf.onpopstate;Lf.onpopstate=function(...r){const n=Lf.location.href,i=og;if(og=n,Gi("history",{from:i,to:n}),t)try{return t.apply(this,r)}catch{}};function e(r){return function(...n){const i=n.length>2?n[2]:void 0;if(i){const a=og,s=String(i);og=s,Gi("history",{from:a,to:s})}return r.apply(this,n)}}Lr(Lf.history,"pushState",e),Lr(Lf.history,"replaceState",e)}const Vme=je,vo="__sentry_xhr_v3__";function Jx(t){const e="xhr";Pc(e,t),Cc(e,Ume)}function Ume(){if(!Vme.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;Lr(t,"open",function(e){return function(...r){const n=Date.now(),i=Fa(r[0])?r[0].toUpperCase():void 0,a=Gme(r[1]);if(!i||!a)return e.apply(this,r);this[vo]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[vo];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const u={args:[i,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};Gi("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Lr(this,"onreadystatechange",function(o){return function(...u){return s(),o.apply(this,u)}}):this.addEventListener("readystatechange",s),Lr(this,"setRequestHeader",function(o){return function(...u){const[c,l]=u,d=this[vo];return d&&Fa(c)&&Fa(l)&&(d.request_headers[c.toLowerCase()]=l),o.apply(this,u)}}),e.apply(this,r)}}),Lr(t,"send",function(e){return function(...r){const n=this[vo];if(!n)return e.apply(this,r);r[0]!==void 0&&(n.body=r[0]);const i={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return Gi("xhr",i),e.apply(this,r)}})}function Gme(t){if(Fa(t))return t;try{return t.toString()}catch{}}function Wme(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Yme(){return"npm"}function Kme(){return!Wme()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function GO(){return typeof window<"u"&&(!Kme()||qme())}function qme(){return je.process!==void 0&&je.process.type==="renderer"}function Xme(){const t=typeof WeakSet=="function",e=t?new WeakSet:[];function r(i){if(t)return e.has(i)?!0:(e.add(i),!1);for(let a=0;ar?GH(t,e-1,r):n}function WO(t,e,r=1/0,n=1/0,i=Xme()){const[a,s]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!xH(e))return e;const o=Jme(t,e);if(!o.startsWith("[object "))return o;if(e.__sentry_skip_normalization__)return e;const u=typeof e.__sentry_override_normalization_depth__=="number"?e.__sentry_override_normalization_depth__:r;if(u===0)return o.replace("object ","");if(a(e))return"[Circular ~]";const c=e;if(c&&typeof c.toJSON=="function")try{const p=c.toJSON();return WO("",p,u-1,n,i)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const f=NH(e);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=n){l[p]="[MaxProperties ~]";break}const m=f[p];l[p]=WO(p,m,u-1,n,i),d++}return s(e),l}function Jme(t,e){try{if(t==="domain"&&e&&typeof e=="object"&&e._events)return"[Domain]";if(t==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&e===global)return"[Global]";if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(PH(e))return"[VueViewModel]";if(pme(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Rs(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=Qme(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Qme(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function Zme(t){return~-encodeURI(t).split(/%..|./).length}function ege(t){return Zme(JSON.stringify(t))}var fs;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(fs||(fs={}));function md(t){return new ei(e=>{e(t)})}function Qx(t){return new ei((e,r)=>{r(t)})}class ei{constructor(e){ei.prototype.__init.call(this),ei.prototype.__init2.call(this),ei.prototype.__init3.call(this),ei.prototype.__init4.call(this),this._state=fs.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new ei((n,i)=>{this._handlers.push([!1,a=>{if(!e)n(a);else try{n(e(a))}catch(s){i(s)}},a=>{if(!r)i(a);else try{n(r(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(e){return this.then(r=>r,e)}finally(e){return new ei((r,n)=>{let i,a;return this.then(s=>{a=!1,i=s,e&&e()},s=>{a=!0,i=s,e&&e()}).then(()=>{if(a){n(i);return}r(i)})})}__init(){this._resolve=e=>{this._setResult(fs.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(fs.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===fs.PENDING){if(Vp(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===fs.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===fs.RESOLVED&&r[1](this._value),this._state===fs.REJECTED&&r[2](this._value),r[0]=!0)})}}}function tge(t){const e=[];function r(){return t===void 0||e.lengthn(o)).then(null,()=>n(o).then(null,()=>{})),o}function a(s){return new ei((o,u)=>{let c=e.length;if(!c)return o(!0);const l=setTimeout(()=>{s&&s>0&&o(!1)},s);e.forEach(d=>{md(d).then(()=>{--c||(clearTimeout(l),o(!0))},u)})})}return{$:e,add:i,drain:a}}function bv(t){if(!t)return{};const e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const r=e[6]||"",n=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:r,hash:n,relative:e[5]+r+n}}const rge=["fatal","error","warning","log","info","debug"];function nge(t){return t==="warn"?"warning":rge.includes(t)?t:"log"}const WH=1e3;function Gp(){return Date.now()/WH}function ige(){const{performance:t}=je;if(!t||!t.now)return Gp;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/WH}const Qo=ige(),bn=(()=>{const{performance:t}=je;if(!t||!t.now)return;const e=3600*1e3,r=t.now(),n=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+r-n):e,a=i{const a=uR(i);for(const s of Object.keys(a))n[s]=a[s];return n},{});else{if(!t)return;e=uR(t)}const r=Object.entries(e).reduce((n,[i,a])=>{if(i.match(age)){const s=i.slice(YH.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function KH(t){if(!t)return;const e=Object.entries(t).reduce((r,[n,i])=>(i&&(r[`${YH}${n}`]=i),r),{});return uge(e)}function uR(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function uge(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],i)=>{const a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,s=i===0?a:`${e},${a}`;return s.length>sge?(Hd&&W.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}const cge=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function qH(t){if(!t)return;const e=t.match(cge);if(!e)return;let r;return e[3]==="1"?r=!0:e[3]==="0"&&(r=!1),{traceId:e[1],parentSampled:r,parentSpanId:e[2]}}function Zx(t,e){const r=qH(t),n=oge(e),{traceId:i,parentSpanId:a,parentSampled:s}=r||{};return r?{traceparentData:r,dynamicSamplingContext:n||{},propagationContext:{traceId:i||jt(),parentSpanId:a||jt().substring(16),spanId:jt().substring(16),sampled:s,dsc:n||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:i||jt(),spanId:jt().substring(16)}}}function eP(t=jt(),e=jt().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}function Ac(t,e=[]){return[t,e]}function lge(t,e){const[r,n]=t;return[r,[...n,e]]}function gd(t,e){const r=t[1];for(const n of r){const i=n[0].type;if(e(n,i))return!0}return!1}function dge(t,e){return gd(t,(r,n)=>e.includes(n))}function KO(t,e){return(e||new TextEncoder).encode(t)}function XH(t,e){const[r,n]=t;let i=JSON.stringify(r);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[KO(i,e),s]:i.push(typeof s=="string"?KO(s,e):s)}for(const s of n){const[o,u]=s;if(a(` ${JSON.stringify(o)} `),typeof u=="string"||u instanceof Uint8Array)a(u);else{let c;try{c=JSON.stringify(u)}catch{c=JSON.stringify(Ca(u))}a(c)}}return typeof i=="string"?i:fge(i)}function fge(t){const e=t.reduce((i,a)=>i+a.length,0),r=new Uint8Array(e);let n=0;for(const i of t)r.set(i,n),n+=i.length;return r}function hge(t,e,r){let n=typeof t=="string"?e.encode(t):t;function i(u){const c=n.subarray(0,u);return n=n.subarray(u+1),c}function a(){let u=n.indexOf(10);return u<0&&(u=n.length),JSON.parse(r.decode(i(u)))}const s=a(),o=[];for(;n.length;){const u=a(),c=typeof u.length=="number"?u.length:void 0;o.push([u,c?i(c):a()])}return[s,o]}function pge(t,e){const r=typeof t.data=="string"?KO(t.data,e):t.data;return[Xr({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}const mge={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function cR(t){return mge[t]}function tP(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function JH(t,e,r,n){const i=t.sdkProcessingMetadata&&t.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date().toISOString(),...e&&{sdk:e},...!!r&&n&&{dsn:zd(n)},...i&&{trace:Xr({...i})}}}function gge(t,e,r){const n=[{type:"client_report"},{timestamp:r||Gp(),discarded_events:t}];return Ac(e?{dsn:e}:{},[n])}const vge=60*1e3;function QH(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?vge:n-e}function bge(t,e){return t[e]||t.all||0}function ZH(t,e,r=Date.now()){return bge(t,e)>r}function ez(t,{statusCode:e,headers:r},n=Date.now()){const i={...t},a=r&&r["x-sentry-rate-limits"],s=r&&r["retry-after"];if(a)for(const o of a.trim().split(",")){const[u,c]=o.split(":",2),l=parseInt(u,10),d=(isNaN(l)?60:l)*1e3;if(!c)i.all=n+d;else for(const f of c.split(";"))i[f]=n+d}else s?i.all=n+QH(s,n):e===429&&(i.all=n+60*1e3);return i}function yge(t,e){return t(e.stack||"",1)}function _ge(t,e){const r={type:e.name||e.constructor.name,value:e.message},n=yge(t,e);return n.length&&(r.stacktrace={frames:n}),r}function wge(t,e){return t??e()}function yv(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}const ge=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wp="production";function rP(){return AH("globalEventProcessors",()=>[])}function tz(t){rP().push(t)}function j0(t,e,r,n=0){return new ei((i,a)=>{const s=t[n];if(e===null||typeof s!="function")i(e);else{const o=s({...e},r);ge&&s.id&&o===null&&W.log(`Event processor "${s.id}" dropped event`),Vp(o)?o.then(u=>j0(t,u,r,n+1).then(i)).then(null,a):j0(t,o,r,n+1).then(i).then(null,a)}})}function rz(t){const e=Qo(),r={sid:jt(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Sge(r)};return t&&fc(r,t),r}function fc(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||Qo(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:jt()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function nz(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),fc(t,r)}function Sge(t){return Xr({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const Oge=0,iz=1;function nP(t){const{spanId:e,traceId:r}=t.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:u}=Pt(t);return Xr({data:n,op:i,parent_span_id:a,span_id:e,status:s,tags:o,trace_id:r,origin:u})}function Cy(t){const{traceId:e,spanId:r}=t.spanContext(),n=az(t);return eP(e,r,n)}function Ay(t){return typeof t=="number"?lR(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?lR(t.getTime()):Qo()}function lR(t){return t>9999999999?t/1e3:t}function Pt(t){return Tge(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function Tge(t){return typeof t.getSpanJSON=="function"}function az(t){const{traceFlags:e}=t.spanContext();return!!(e&iz)}function iP(t,e,r,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=t,u={...e,event_id:e.event_id||r.event_id||jt(),timestamp:e.timestamp||Gp()},c=r.integrations||t.integrations.map(_=>_.name);Ege(u,t),Cge(u,c),e.type===void 0&&xge(u,t.stackParser);const l=Mge(n,r.captureContext);r.mechanism&&op(u,r.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=eve().getScopeData();if(a){const _=a.getScopeData();pR(f,_)}if(l){const _=l.getScopeData();pR(f,_)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),cz(u,f);const m=[...d,...rP(),...f.eventProcessors];return j0(m,u,r).then(_=>(_&&Pge(_),typeof s=="number"&&s>0?Age(_,s,o):_))}function Ege(t,e){const{environment:r,release:n,dist:i,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?r:Wp),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=Yl(t.message,a));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Yl(s.value,a));const o=t.request;o&&o.url&&(o.url=Yl(o.url,a))}const dR=new WeakMap;function xge(t,e){const r=je._sentryDebugIds;if(!r)return;let n;const i=dR.get(e);i?n=i:(n=new Map,dR.set(e,n));const a=Object.keys(r).reduce((s,o)=>{let u;const c=n.get(o);c?u=c:(u=e(o),n.set(o,u));for(let l=u.length-1;l>=0;l--){const d=u[l];if(d.filename){s[d.filename]=r[o];break}}return s},{});try{t.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function Pge(t){const e={};try{t.exception.values.forEach(n=>{n.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?e[i.abs_path]=i.debug_id:i.filename&&(e[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(e).length===0)return;t.debug_meta=t.debug_meta||{},t.debug_meta.images=t.debug_meta.images||[];const r=t.debug_meta.images;Object.keys(e).forEach(n=>{r.push({type:"sourcemap",code_file:n,debug_id:e[n]})})}function Cge(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Age(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:Ca(i.data,e,r)}}))},...t.user&&{user:Ca(t.user,e,r)},...t.contexts&&{contexts:Ca(t.contexts,e,r)},...t.extra&&{extra:Ca(t.extra,e,r)}};return t.contexts&&t.contexts.trace&&n.contexts&&(n.contexts.trace=t.contexts.trace,t.contexts.trace.data&&(n.contexts.trace.data=Ca(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(i=>{const a=Pt(i).data;return a&&(i.data=Ca(a,e,r)),i})),n}function Mge(t,e){if(!e)return t;const r=t?t.clone():new Hi;return r.update(e),r}function $ge(t){if(t)return kge(t)?{captureContext:t}:Ige(t)?{captureContext:t}:t}function kge(t){return t instanceof Hi||typeof t=="function"}const Dge=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Ige(t){return Object.keys(t).some(e=>Dge.includes(e))}function Vd(t,e){return bt().captureException(t,$ge(e))}function Rge(t,e){const r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return bt().captureMessage(t,r,n)}function aP(t,e){return bt().captureEvent(t,e)}function Lge(t){bt().configureScope(t)}function Ls(t,e){bt().addBreadcrumb(t,e)}function sz(t,e){bt().setContext(t,e)}function Nge(t){bt().setExtras(t)}function Bge(t,e){bt().setExtra(t,e)}function Fge(t){bt().setTags(t)}function jge(t,e){bt().setTag(t,e)}function Hge(t){bt().setUser(t)}function Yp(...t){const e=bt();if(t.length===2){const[r,n]=t;return r?e.withScope(()=>(e.getStackTop().scope=r,n(r))):e.withScope(n)}return e.withScope(t[0])}function zge(t){return oP(()=>t(ca()))}function Vge(t,e){return bt().startTransaction({...t},e)}async function Uge(t){const e=Xe();return e?e.flush(t):(ge&&W.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Gge(t){const e=Xe();return e?e.close(t):(ge&&W.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function Wge(){return bt().lastEventId()}function Xe(){return bt().getClient()}function Yge(){return!!Xe()}function wr(){return bt().getScope()}function fR(t){const e=Xe(),r=ca(),n=wr(),{release:i,environment:a=Wp}=e&&e.getOptions()||{},{userAgent:s}=je.navigator||{},o=rz({release:i,environment:a,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...t}),u=r.getSession();return u&&u.status==="ok"&&fc(u,{status:"exited"}),oz(),r.setSession(o),n.setSession(o),o}function oz(){const t=ca(),e=wr(),r=e.getSession()||t.getSession();r&&nz(r),uz(),t.setSession(),e.setSession()}function uz(){const t=ca(),e=wr(),r=Xe(),n=e.getSession()||t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function hR(t=!1){if(t){oz();return}uz()}function H0(t){return t.transaction}function My(t,e,r){const n=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Xr({environment:n.environment||Wp,release:n.release,user_segment:a,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",s),s}function up(t){const e=Xe();if(!e)return{};const r=My(Pt(t).trace_id||"",e,wr()),n=H0(t);if(!n)return r;const i=n&&n._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=n.metadata;a!=null&&(r.sample_rate=`${a}`);const o=Pt(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(az(n)),e.emit&&e.emit("createDsc",r),r}function cz(t,e){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=e;Kge(t,e),n&&Jge(t,n),Qge(t,r),qge(t,i),Xge(t,a)}function pR(t,e){const{extra:r,tags:n,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:u,fingerprint:c,eventProcessors:l,attachments:d,propagationContext:f,transactionName:p,span:m}=e;Nf(t,"extra",r),Nf(t,"tags",n),Nf(t,"user",i),Nf(t,"contexts",a),Nf(t,"sdkProcessingMetadata",o),s&&(t.level=s),p&&(t.transactionName=p),m&&(t.span=m),u.length&&(t.breadcrumbs=[...t.breadcrumbs,...u]),c.length&&(t.fingerprint=[...t.fingerprint,...c]),l.length&&(t.eventProcessors=[...t.eventProcessors,...l]),d.length&&(t.attachments=[...t.attachments,...d]),t.propagationContext={...t.propagationContext,...f}}function Nf(t,e,r){if(r&&Object.keys(r).length){t[e]={...t[e]};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[e][n]=r[n])}}function Kge(t,e){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=e,u=Xr(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const c=Xr(n);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const l=Xr(i);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=Xr(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),s&&(t.level=s),o&&(t.transaction=o)}function qge(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function Xge(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function Jge(t,e){t.contexts={trace:nP(e),...t.contexts};const r=H0(e);if(r){t.sdkProcessingMetadata={dynamicSamplingContext:up(e),...t.sdkProcessingMetadata};const n=Pt(r).description;n&&(t.tags={transaction:n,...t.tags})}}function Qge(t,e){t.fingerprint=t.fingerprint?qx(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const Zge=100;let b1;class Hi{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=mR()}static clone(e){return e?e.clone():new Hi}clone(){const e=new Hi;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}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,segment:void 0,username:void 0},this._session&&fc(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this._tags={...this._tags,[e]:r},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},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,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if(typeof e=="function"){const r=e(this);return r instanceof Hi?r:this}return e instanceof Hi?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):pd(e)&&(e=e,this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=mR(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:Zge;if(n<=0)return this;const i={timestamp:Gp(),...e},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>n?a.slice(-n):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:r,_contexts:n,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:u,_eventProcessors:c,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:r,contexts:n,tags:i,extra:a,user:s,level:o,fingerprint:u||[],eventProcessors:c,propagationContext:l,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(e,r={},n=[]){cz(e,this.getScopeData());const i=[...n,...rP(),...this._eventProcessors];return j0(i,e,r)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){const n=r&&r.event_id?r.event_id:jt();if(!this._client)return W.warn("No client configured on scope - will not capture exception!"),n;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureMessage(e,r,n){const i=n&&n.event_id?n.event_id:jt();if(!this._client)return W.warn("No client configured on scope - will not capture message!"),i;const a=new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureEvent(e,r){const n=r&&r.event_id?r.event_id:jt();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(W.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)}}function eve(){return b1||(b1=new Hi),b1}function mR(){return{traceId:jt(),spanId:jt().substring(16)}}const vd="7.99.0",lz=parseFloat(vd),tve=100;class sP{constructor(e,r,n,i=lz){this._version=i;let a;r?a=r:(a=new Hi,a.setClient(e));let s;n?s=n:(s=new Hi,s.setClient(e)),this._stack=[{scope:a}],e&&this.bindClient(e),this._isolationScope=s}isOlderThan(e){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,r){const n=this._lastEventId=r&&r.event_id?r.event_id:jt(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...r,event_id:n}),n}captureMessage(e,r,n){const i=this._lastEventId=n&&n.event_id?n.event_id:jt(),a=new Error(e);return this.getScope().captureMessage(e,r,{originalException:e,syntheticException:a,...n,event_id:i}),i}captureEvent(e,r){const n=r&&r.event_id?r.event_id:jt();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...r,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,r){const{scope:n,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=tve}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const u={timestamp:Gp(),...e},c=a?Ga(()=>a(u,r)):u;c!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",c,r),n.addBreadcrumb(c,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,r){this.getScope().setTag(e,r),this.getIsolationScope().setTag(e,r)}setExtra(e,r){this.getScope().setExtra(e,r),this.getIsolationScope().setExtra(e,r)}setContext(e,r){this.getScope().setContext(e,r),this.getIsolationScope().setContext(e,r)}configureScope(e){const{scope:r,client:n}=this.getStackTop();n&&e(r)}run(e){const r=qO(this);try{e(this)}finally{qO(r)}}getIntegration(e){const r=this.getClient();if(!r)return null;try{return r.getIntegration(e)}catch{return ge&&W.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,r){const n=this._callExtensionMethod("startTransaction",e,r);return ge&&!n&&(this.getClient()?W.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); `):W.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const r=this.getStackTop().scope,n=r.getSession();n&&nz(n),this._sendSessionUpdate(),r.setSession()}startSession(e){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=Wp}=n&&n.getOptions()||{},{userAgent:s}=je.navigator||{},o=rz({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...e}),u=r.getSession&&r.getSession();return u&&u.status==="ok"&&fc(u,{status:"exited"}),this.endSession(),r.setSession(o),o}shouldSendDefaultPii(){const e=this.getClient(),r=e&&e.getOptions();return!!(r&&r.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:r}=this.getStackTop(),n=e.getSession();n&&r&&r.captureSession&&r.captureSession(n)}_callExtensionMethod(e,...r){const i=Ud().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,r);ge&&W.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Ud(){return je.__SENTRY__=je.__SENTRY__||{extensions:{},hub:void 0},je}function qO(t){const e=Ud(),r=z0(e);return dz(e,t),r}function bt(){const t=Ud();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return rve(t)}function ca(){return bt().getIsolationScope()}function rve(t=Ud()){return(!nve(t)||z0(t).isOlderThan(lz))&&dz(t,new sP),z0(t)}function oP(t,e={}){const r=Ud();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function nve(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function z0(t){return AH("hub",()=>new sP,t)}function dz(t,e){if(!t)return!1;const r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}function Zo(t){return(t||bt()).getScope().getTransaction()}const ive=qH;let gR=!1;function ave(){gR||(gR=!0,VH(XO),UH(XO))}function XO(){const t=Zo();if(t){const e="internal_error";ge&&W.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}XO.tag="sentry_tracingErrorCallback";const kn="sentry.source",Rl="sentry.sample_rate",ug="sentry.op",Ll="sentry.origin";var vR;(function(t){const e="ok";t.Ok=e;const r="deadline_exceeded";t.DeadlineExceeded=r;const n="unauthenticated";t.Unauthenticated=n;const i="permission_denied";t.PermissionDenied=i;const a="not_found";t.NotFound=a;const s="resource_exhausted";t.ResourceExhausted=s;const o="invalid_argument";t.InvalidArgument=o;const u="unimplemented";t.Unimplemented=u;const c="unavailable";t.Unavailable=c;const l="internal_error";t.InternalError=l;const d="unknown_error";t.UnknownError=d;const f="cancelled";t.Cancelled=f;const p="already_exists";t.AlreadyExists=p;const m="failed_precondition";t.FailedPrecondition=m;const b="aborted";t.Aborted=b;const _="out_of_range";t.OutOfRange=_;const S="data_loss";t.DataLoss=S})(vR||(vR={}));function uP(t){if(t<400&&t>=100)return"ok";if(t>=400&&t<500)switch(t){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(t>=500&&t<600)switch(t){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}const sve=uP;function cP(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const r=uP(e);r!=="unknown_error"&&t.setStatus(r)}class fz{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class lP{constructor(e={}){this._traceId=e.traceId||jt(),this._spanId=e.spanId||jt().substring(16),this._startTime=e.startTimestamp||Qo(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Ll]:e.origin||"manual",[ug]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes[ug]}set op(e){this.setAttribute(ug,e)}get origin(){return this._attributes[Ll]}set origin(e){this.setAttribute(Ll,e)}spanContext(){const{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?iz:Oge}}startChild(e){const r=new lP({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);const n=H0(this);if(r.transaction=n,ge&&n){const i=e&&e.op||"< unknown op >",a=Pt(r).description||"< unknown name >",s=n.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;W.log(o),this._logMessage=o}return r}setTag(e,r){return this.tags={...this.tags,[e]:r},this}setData(e,r){return this.data={...this.data,[e]:r},this}setAttribute(e,r){r===void 0?delete this._attributes[e]:this._attributes[e]=r}setAttributes(e){Object.keys(e).forEach(r=>this.setAttribute(r,e[r]))}setStatus(e){return this._status=e,this}setHttpStatus(e){return cP(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return this._status==="ok"}finish(e){return this.end(e)}end(e){if(this._endTime)return;const r=H0(this);if(ge&&r&&r.spanContext().spanId!==this._spanId){const n=this._logMessage;n&&W.log(n.replace("Starting","Finishing"))}this._endTime=Ay(e)}toTraceparent(){return Cy(this)}toContext(){return Xr({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return nP(this)}getSpanJSON(){return Xr({data:this._getData(),description:this._name,op:this._attributes[ug],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ll]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:r}=this,n=Object.keys(e).length>0,i=Object.keys(r).length>0;if(!(!n&&!i))return n&&i?{...e,...r}:n?e:r}}class hz extends lP{constructor(e,r){super(e),this._measurements={},this._contexts={},this._hub=r||bt(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[kn]&&{source:this._attributes[kn]},...this._attributes[Rl]&&{sampleRate:this._attributes[Rl]}}}set metadata(e){this._metadata=e}setName(e,r="custom"){this._name=e,this.setAttribute(kn,r)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new fz(e)),this.spanRecorder.add(this)}setContext(e,r){r===null?delete this._contexts[e]:this._contexts[e]=r}setMeasurement(e,r,n=""){this._measurements[e]={value:r,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const r=Ay(e),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return Xr({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return up(this)}setHub(e){this._hub=e}_finishTransaction(e){if(this._endTime!==void 0)return;this._name||(ge&&W.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const r=this._hub.getClient();if(r&&r.emit&&r.emit("finishTransaction",this),this._sampled!==!0){ge&&W.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),r&&r.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&Pt(u).timestamp):[];if(this._trimEnd&&n.length>0){const u=n.map(c=>Pt(c).timestamp).filter(Boolean);this._endTime=u.reduce((c,l)=>c>l?c:l)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:nP(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:up(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(ge&&W.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),ge&&W.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const Mh={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},ove="finishReason",ll=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class uve extends fz{constructor(e,r,n,i){super(i),this._pushActivity=e,this._popActivity=r,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const r=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),r.apply(e,n)),Pt(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class cve extends hz{constructor(e,r,n=Mh.idleTimeout,i=Mh.finalTimeout,a=Mh.heartbeatInterval,s=!1,o=!1){super(e,r),this._idleHub=r,this._idleTimeout=n,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ll[4],this._autoFinishAllowed=!o,s&&(ge&&W.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),r.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ll[3],this.end())},this._finalTimeout)}end(e){const r=Ay(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(ove,this._finishReason),this.spanRecorder){ge&&W.log("[Tracing] finishing IdleTransaction",new Date(r*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,r);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanContext().spanId===this.spanContext().spanId)return!0;Pt(n).timestamp||(n.setStatus("cancelled"),n.end(r),ge&&W.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const{start_timestamp:i,timestamp:a}=Pt(n),s=i&&i{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new uve(r,n,this.spanContext().spanId,e),ge&&W.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:r}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=r===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ll[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(ge&&W.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ll[1],this.end(e))},this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),ge&&W.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,ge&&W.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(ge&&W.log(`[Tracing] popActivity ${e}`),delete this.activities[e],ge&&W.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const r=Qo();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ll[5],this.end(r)):this._restartIdleTimeout(r+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(ge&&W.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ll[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){ge&&W.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Gd(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=Xe(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function pz(t,e,r){if(!Gd(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(Rl,Number(t.sampled)),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setAttribute(Rl,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate<"u"?(n=e.tracesSampleRate,t.setAttribute(Rl,Number(n))):(n=1,t.setAttribute(Rl,n)),lve(n)?n?(t.sampled=Math.random()1?(ge&&W.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function dve(){const e=this.getScope().getSpan();return e?{"sentry-trace":Cy(e)}:{}}function fve(t,e){const r=this.getClient(),n=r&&r.getOptions()||{},i=n.instrumenter||"sentry",a=t.instrumenter||"sentry";i!==a&&(ge&&W.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),t.sampled=!1);let s=new hz(t,this);return s=pz(s,n,{parentSampled:t.parentSampled,transactionContext:t,...e}),s.isRecording()&&s.initSpanRecorder(n._experiments&&n._experiments.maxSpans),r&&r.emit&&r.emit("startTransaction",s),s}function V0(t,e,r,n,i,a,s,o=!1){const u=t.getClient(),c=u&&u.getOptions()||{};let l=new cve(e,t,r,n,s,i,o);return l=pz(l,c,{parentSampled:e.parentSampled,transactionContext:e,...a}),l.isRecording()&&l.initSpanRecorder(c._experiments&&c._experiments.maxSpans),u&&u.emit&&u.emit("startTransaction",l),l}function dP(){const t=Ud();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=fve),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=dve),ave())}function fP(t,e,r=()=>{}){let n;try{n=t()}catch(i){throw e(i),r(),i}return hve(n,e,r)}function hve(t,e,r){return Vp(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}function pve(t,e,r=()=>{},n=()=>{}){const i=bt(),a=wr(),s=a.getSpan(),o=$y(t),u=pP(i,s,o);return a.setSpan(u),fP(()=>e(u),c=>{u&&u.setStatus("internal_error"),r(c,u)},()=>{u&&u.end(),a.setSpan(s),n()})}function mve(t,e){const r=$y(t);return oP(()=>Yp(t.scope,n=>{const i=bt(),a=n.getSpan(),o=t.onlyIfParent&&!a?void 0:pP(i,a,r);return n.setSpan(o),fP(()=>e(o),()=>{if(o){const{status:u}=Pt(o);(!u||u==="ok")&&o.setStatus("internal_error")}},()=>o&&o.end())}))}function gve(t,e){const r=$y(t);return oP(()=>Yp(t.scope,n=>{const i=bt(),a=n.getSpan(),o=t.onlyIfParent&&!a?void 0:pP(i,a,r);n.setSpan(o);function u(){o&&o.end()}return fP(()=>e(o,u),()=>{if(o&&o.isRecording()){const{status:c}=Pt(o);(!c||c==="ok")&&o.setStatus("internal_error")}})}))}function hP(t){if(!Gd())return;const e=$y(t),r=bt(),n=t.scope?t.scope.getSpan():mz();if(!(t.onlyIfParent&&!n)){if(n)return n.startChild(e);{const a=ca(),s=wr(),{traceId:o,dsc:u,parentSpanId:c,sampled:l}={...a.getPropagationContext(),...s.getPropagationContext()};return r.startTransaction({traceId:o,parentSpanId:c,parentSampled:l,...e,metadata:{dynamicSamplingContext:u,...e.metadata}})}}}function mz(){return wr().getSpan()}function vve({sentryTrace:t,baggage:e},r){const n=wr(),{traceparentData:i,dynamicSamplingContext:a,propagationContext:s}=Zx(t,e);n.setPropagationContext(s),ge&&i&&W.log(`[Tracing] Continuing trace ${i.traceId}.`);const o={...i,metadata:Xr({dynamicSamplingContext:a})};return r?r(o):o}function pP(t,e,r){if(Gd()){if(e)return e.startChild(r);{const n=ca(),i=wr(),{traceId:a,dsc:s,parentSpanId:o,sampled:u}={...n.getPropagationContext(),...i.getPropagationContext()};return t.startTransaction({traceId:a,parentSpanId:o,parentSampled:u,...r,metadata:{dynamicSamplingContext:s,...r.metadata}})}}}function $y(t){if(t.startTime){const e={...t};return e.startTimestamp=Ay(t.startTime),delete e.startTime,e}return t}function gz(t,e,r){const n=Zo();n&&n.setMeasurement(t,e,r)}function bve(t,e){return e&&(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=[...t.sdk.integrations||[],...e.integrations||[]],t.sdk.packages=[...t.sdk.packages||[],...e.packages||[]]),t}function yve(t,e,r,n){const i=tP(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&e&&{dsn:zd(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return Ac(a,[s])}function vz(t,e,r,n){const i=tP(r),a=t.type&&t.type!=="replay_event"?t.type:"event";bve(t,r&&r.sdk);const s=JH(t,i,n,e);return delete t.sdkProcessingMetadata,Ac(s,[[{type:a},t]])}const _ve="7";function bz(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function wve(t){return`${bz(t)}${t.projectId}/envelope/`}function Sve(t,e){return Tme({sentry_key:t.publicKey,sentry_version:_ve,...e&&{sentry_client:`${e.name}/${e.version}`}})}function yz(t,e={}){const r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${wve(t)}?${Sve(t,n)}`}function Ove(t,e){const r=RH(t);if(!r)return"";const n=`${bz(r)}embed/error-page/`;let i=`dsn=${zd(r)}`;for(const a in e)if(a!=="dsn"&&a!=="onClose")if(a==="user"){const s=e.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(a)}=${encodeURIComponent(e[a])}`;return`${n}?${i}`}const bR=[];function Tve(t){const e={};return t.forEach(r=>{const{name:n}=r,i=e[n];i&&!i.isDefaultInstance&&r.isDefaultInstance||(e[n]=r)}),Object.keys(e).map(r=>e[r])}function Eve(t){const e=t.defaultIntegrations||[],r=t.integrations;e.forEach(s=>{s.isDefaultInstance=!0});let n;Array.isArray(r)?n=[...e,...r]:typeof r=="function"?n=qx(r(e)):n=e;const i=Tve(n),a=Cve(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function xve(t,e){const r={};return e.forEach(n=>{n&&_z(t,n,r)}),r}function yR(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function _z(t,e,r){if(r[e.name]){ge&&W.log(`Integration skipped because it was already installed: ${e.name}`);return}if(r[e.name]=e,bR.indexOf(e.name)===-1&&(e.setupOnce(tz,bt),bR.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(t),t.on&&typeof e.preprocessEvent=="function"){const n=e.preprocessEvent.bind(e);t.on("preprocessEvent",(i,a)=>n(i,a,t))}if(t.addEventProcessor&&typeof e.processEvent=="function"){const n=e.processEvent.bind(e),i=Object.assign((a,s)=>n(a,s,t),{id:e.name});t.addEventProcessor(i)}ge&&W.log(`Integration installed: ${e.name}`)}function Pve(t){const e=Xe();if(!e||!e.addIntegration){ge&&W.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function Cve(t,e){for(let r=0;ra[0].localeCompare(s[0]));return`${t}${e}${r}${i}`}function kve(t){let e=0;for(let r=0;r>>0}function Dve(t){let e="";for(const r of t){const n=Object.entries(r.tags),i=n.length>0?`|#${n.map(([a,s])=>`${a}:${s}`).join(",")}`:"";e+=`${r.name}@${r.unit}:${r.metric}|${r.metricType}${i}|T${r.timestamp} `}return e}function Ive(t){const e={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=r.replace(Ez,"_");e[n]=String(t[r]).replace(Ave,"_")}return e}function Rve(t,e,r,n){const i={sent_at:new Date().toISOString()};r&&r.sdk&&(i.sdk={name:r.sdk.name,version:r.sdk.version}),n&&e&&(i.dsn=zd(e));const a=Lve(t);return Ac(i,[a])}function Lve(t){const e=Dve(t);return[{type:"statsd",length:e.length},e]}const _R="Not capturing exception because it's already been captured.";class Nve{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=RH(e.dsn):ge&&W.warn("No DSN provided, client will not send events."),this._dsn){const r=yz(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(iR(e)){ge&&W.log(_R);return}let i=r&&r.event_id;return this._process(this.eventFromException(e,r).then(a=>this._captureEvent(a,r,n)).then(a=>{i=a})),i}captureMessage(e,r,n,i){let a=n&&n.event_id;const s=Gx(e)?e:String(e),o=Wx(e)?this.eventFromMessage(s,r,n):this.eventFromException(e,n);return this._process(o.then(u=>this._captureEvent(u,n,i)).then(u=>{a=u})),a}captureEvent(e,r,n){if(r&&r.originalException&&iR(r.originalException)){ge&&W.log(_R);return}let i=r&&r.event_id;return this._process(this._captureEvent(e,r,n).then(a=>{i=a})),i}captureSession(e){typeof e.release!="string"?ge&&W.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),fc(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const r=this._transport;return r?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then(n=>r.flush(e).then(i=>n&&i))):md(!0)}close(e){return this.flush(e).then(r=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),r))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch{return ge&&W.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const r=this._integrations[e.name];_z(this,e,this._integrations),r||yR(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=vz(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=lge(n,pge(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(n);i&&i.then(a=>this.emit("afterSendEvent",e,a),null)}sendSession(e){const r=yve(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}recordDroppedEvent(e,r,n){if(this._options.sendClientReports){const i=`${e}:${r}`;ge&&W.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(e){ge&&W.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const r=Rve(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(r)}on(e,r){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(r)}emit(e,...r){this._hooks[e]&&this._hooks[e].forEach(n=>n(...r))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=xve(this,e),yR(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,r){let n=!1,i=!1;const a=r.exception&&r.exception.values;if(a){i=!0;for(const u of a){const c=u.mechanism;if(c&&c.handled===!1){n=!0;break}}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(fc(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ei(r=>{let n=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),r(!0)):(n+=i,e&&n>=e&&(clearInterval(a),r(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,r,n,i=ca()){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",e,r),iP(a,e,r,n,this,i).then(o=>{if(o===null)return o;const u={...i.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&u){const{traceId:l,spanId:d,parentSpanId:f,dsc:p}=u;o.contexts={trace:{trace_id:l,span_id:d,parent_span_id:f},...o.contexts};const m=p||My(l,this,n);o.sdkProcessingMetadata={dynamicSamplingContext:m,...o.sdkProcessingMetadata}}return o})}_captureEvent(e,r={},n){return this._processEvent(e,r,n).then(i=>i.event_id,i=>{if(ge){const a=i;a.logLevel==="log"?W.log(a.message):W.warn(a)}})}_processEvent(e,r,n){const i=this.getOptions(),{sampleRate:a}=i,s=Pz(e),o=xz(e),u=e.type||"error",c=`before send for type \`${u}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",e),Qx(new Ma(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const l=u==="replay_event"?"replay":u;return this._prepareEvent(e,r,n).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",l,e),new Ma("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return d;const p=Fve(i,d,r);return Bve(p,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",l,e),new Ma(`${c} returned \`null\`, will not send event.`,"log");const f=n&&n.getSession();!s&&f&&this._updateSessionFromEvent(f,d);const p=d.transaction_info;if(s&&p&&d.transaction!==e.transaction){const m="custom";d.transaction_info={...p,source:m}}return this.sendEvent(d,r),d}).then(null,d=>{throw d instanceof Ma?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Ma(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. Reason: ${d}`))})}_process(e){this._numProcessing++,e.then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,r=>{ge&&W.error("Error while sending event:",r)});ge&&W.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map(r=>{const[n,i]=r.split(":");return{reason:n,category:i,quantity:e[r]}})}}function Bve(t,e){const r=`${e} must return \`null\` or a valid event.`;if(Vp(t))return t.then(n=>{if(!pd(n)&&n!==null)throw new Ma(r);return n},n=>{throw new Ma(`${e} rejected with ${n}`)});if(!pd(t)&&t!==null)throw new Ma(r);return t}function Fve(t,e,r){const{beforeSend:n,beforeSendTransaction:i}=t;return xz(e)&&n?n(e,r):Pz(e)&&i?i(e,r):e}function xz(t){return t.type===void 0}function Pz(t){return t.type==="transaction"}function Cz(t){const e=Xe();!e||!e.addEventProcessor||e.addEventProcessor(t)}class jve{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class Hve{constructor(e){this._last=e,this._min=e,this._max=e,this._sum=e,this._count=1}get weight(){return 5}add(e){this._last=e,ethis._max&&(this._max=e),this._sum+=e,this._count++}toString(){return`${this._last}:${this._min}:${this._max}:${this._sum}:${this._count}`}}class zve{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class Vve{constructor(e){this.first=e,this._value=new Set([e])}get weight(){return this._value.size}add(e){this._value.add(e)}toString(){return Array.from(this._value).map(e=>typeof e=="string"?kve(e):e).join(":")}}const Uve={[wz]:jve,[Sz]:Hve,[Tz]:zve,[Oz]:Vve};function Gve(t,e){e.debug===!0&&(ge?W.enable():Ga(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),wr().update(e.initialScope);const n=new t(e);Az(n),Wve(n)}function Az(t){const r=bt().getStackTop();r.client=t,r.scope.setClient(t)}function Wve(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const Yve=30;function mP(t,e,r=tge(t.bufferSize||Yve)){let n={};const i=s=>r.drain(s);function a(s){const o=[];if(gd(s,(d,f)=>{const p=cR(f);if(ZH(n,p)){const m=wR(d,f);t.recordDroppedEvent("ratelimit_backoff",p,m)}else o.push(d)}),o.length===0)return md();const u=Ac(s[0],o),c=d=>{gd(u,(f,p)=>{const m=wR(f,p);t.recordDroppedEvent(d,cR(p),m)})},l=()=>e({body:XH(u,t.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&ge&&W.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),n=ez(n,d),d),d=>{throw c("network_error"),d});return r.add(l).then(d=>d,d=>{if(d instanceof Ma)return ge&&W.error("Skipped sending event because buffer is full."),c("queue_overflow"),md();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function wR(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const Kve=100,SR=5e3,qve=36e5;function y1(t,e){ge&&W.info(`[Offline]: ${t}`,e)}function Xve(t){return e=>{const r=t(e),n=e.createStore?e.createStore(e):void 0;let i=SR,a;function s(l,d,f){return dge(l,["replay_event","replay_recording","client_report"])?!1:e.shouldStore?e.shouldStore(l,d,f):!0}function o(l){n&&(a&&clearTimeout(a),a=setTimeout(async()=>{a=void 0;const d=await n.pop();d&&(y1("Attempting to send previously queued event"),c(d).catch(f=>{y1("Failed to retry sending",f)}))},l),typeof a!="number"&&a.unref&&a.unref())}function u(){a||(o(i),i=Math.min(i*2,qve))}async function c(l){try{const d=await r.send(l);let f=Kve;if(d){if(d.headers&&d.headers["retry-after"])f=QH(d.headers["retry-after"]);else if((d.statusCode||0)>=400)return d}return o(f),i=SR,d}catch(d){if(n&&await s(l,d,i))return await n.insert(l),u(),y1("Error sending. Event queued",d),{};throw d}}return e.flushAtStartup&&u(),{send:c,flush:l=>r.flush(l)}}}function Mz(t,e){let r;return gd(t,(n,i)=>(e.includes(i)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function Jve(t,e){return r=>{const n=t(r);return{send:async i=>{const a=Mz(i,["event","transaction","profile","replay_event"]);return a&&(a.release=e),n.send(i)},flush:i=>n.flush(i)}}}function Qve(t,e){return r=>{const n=t(r),i={};function a(u,c){const l=c?`${u}:${c}`:u;if(!i[l]){const d=DH(u);if(!d)return;const f=yz(d);i[l]=c?Jve(t,c)({...r,url:f}):t({...r,url:f})}return i[l]}async function s(u){function c(f){const p=f&&f.length?f:["event"];return Mz(u,p)}const l=e({envelope:u,getEvent:c}).map(f=>typeof f=="string"?a(f,void 0):a(f.dsn,f.release)).filter(f=>!!f);return l.length===0&&l.push(n),(await Promise.all(l.map(f=>f.send(u))))[0]}async function o(u){const c=[...Object.keys(i).map(d=>i[d]),n];return(await Promise.all(c.map(d=>d.flush(u)))).every(d=>d)}return{send:s,flush:o}}}function Zve(t,e){const r=e&&r0e(e)?e.getClient():e,n=r&&r.getDsn(),i=r&&r.getOptions().tunnel;return t0e(t,n)||e0e(t,i)}function e0e(t,e){return e?OR(t)===OR(e):!1}function t0e(t,e){return e?t.includes(e.host):!1}function OR(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function r0e(t){return t.getClient!==void 0}function n0e(t,...e){const r=new String(String.raw(t,...e));return r.__sentry_template_string__=t.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=e,r}function i0e(t,e,r=[e],n="npm"){const i=t._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${e}`,packages:r.map(a=>({name:`${n}:@sentry/${a}`,version:vd})),version:vd}),t._metadata=i}const $z=new Map,TR=new Set;function a0e(t){if(je._sentryModuleMetadata)for(const e of Object.keys(je._sentryModuleMetadata)){const r=je._sentryModuleMetadata[e];if(TR.has(e))continue;TR.add(e);const n=t(e);for(const i of n.reverse())if(i.filename){$z.set(i.filename,r);break}}}function s0e(t,e){return a0e(t),$z.get(e)}function o0e(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(const n of r.stacktrace.frames||[]){if(!n.filename)continue;const i=s0e(t,n.filename);i&&(n.module_metadata=i)}})}catch{}}function u0e(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(const r of e.stacktrace.frames||[])delete r.module_metadata})}catch{}}const kz="ModuleMetadata",c0e=()=>({name:kz,setupOnce(){},setup(t){typeof t.on=="function"&&t.on("beforeEnvelope",e=>{gd(e,(r,n)=>{if(n==="event"){const i=Array.isArray(r)?r[1]:void 0;i&&(u0e(i),r[1]=i)}})})},processEvent(t,e,r){const n=r.getOptions().stackParser;return o0e(n,t),t}}),Dz=c0e,l0e=zn(kz,Dz),d0e=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],f0e=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Iz="InboundFilters",h0e=(t={})=>({name:Iz,setupOnce(){},processEvent(e,r,n){const i=n.getOptions(),a=p0e(t,i);return m0e(e,a)?null:e}}),gP=h0e,Rz=zn(Iz,gP);function p0e(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:d0e],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:f0e],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function m0e(t,e){return e.ignoreInternal&&w0e(t)?(ge&&W.warn(`Event dropped due to being internal Sentry Error. Event: ${ho(t)}`),!0):g0e(t,e.ignoreErrors)?(ge&&W.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${ho(t)}`),!0):v0e(t,e.ignoreTransactions)?(ge&&W.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${ho(t)}`),!0):b0e(t,e.denyUrls)?(ge&&W.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${ho(t)}. Url: ${U0(t)}`),!0):y0e(t,e.allowUrls)?!1:(ge&&W.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${ho(t)}. Url: ${U0(t)}`),!0)}function g0e(t,e){return t.type||!e||!e.length?!1:_0e(t).some(r=>jd(r,e))}function v0e(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?jd(r,e):!1}function b0e(t,e){if(!e||!e.length)return!1;const r=U0(t);return r?jd(r,e):!1}function y0e(t,e){if(!e||!e.length)return!0;const r=U0(t);return r?jd(r,e):!0}function _0e(t){const e=[];t.message&&e.push(t.message);let r;try{r=t.exception.values[t.exception.values.length-1]}catch{}return r&&r.value&&(e.push(r.value),r.type&&e.push(`${r.type}: ${r.value}`)),ge&&e.length===0&&W.error(`Could not extract message for event ${ho(t)}`),e}function w0e(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function S0e(t=[]){for(let e=t.length-1;e>=0;e--){const r=t[e];if(r&&r.filename!==""&&r.filename!=="[native code]")return r.filename||null}return null}function U0(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?S0e(e):null}catch{return ge&&W.error(`Cannot extract url for event ${ho(t)}`),null}}let ER;const Lz="FunctionToString",xR=new WeakMap,O0e=()=>({name:Lz,setupOnce(){ER=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Kx(this),r=xR.has(Xe())&&e!==void 0?e:this;return ER.apply(r,t)}}catch{}},setup(t){xR.set(t,!0)}}),vP=O0e,Nz=zn(Lz,vP),T0e="cause",E0e=5,Bz="LinkedErrors",x0e=(t={})=>{const e=t.limit||E0e,r=t.key||T0e;return{name:Bz,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();CH(_ge,s.stackParser,s.maxValueLength,r,e,n,i)}}},P0e=x0e,C0e=zn(Bz,P0e),A0e=Object.freeze(Object.defineProperty({__proto__:null,FunctionToString:Nz,InboundFilters:Rz,LinkedErrors:C0e},Symbol.toStringTag,{value:"Module"}));class M0e{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),Mve)}add(e,r,n,i="none",a={},s=Qo()){const o=Math.floor(s),u=r.replace(Ez,"_"),c=Ive(a),l=$ve(e,u,i,c),d=this._buckets.get(l);d?(d.metric.add(n),d.timestampr);this._client.captureAggregateMetrics(e)}this._buckets.clear()}}close(){clearInterval(this._interval),this.flush()}}const Fz="MetricsAggregator",$0e=()=>({name:Fz,setupOnce(){},setup(t){t.metricsAggregator=new M0e(t)}}),jz=$0e,k0e=zn(Fz,jz);function ky(t,e,r,n={}){const i=Xe(),a=wr();if(i){if(!i.metricsAggregator){ge&&W.warn("No metrics aggregator enabled. Please add the MetricsAggregator integration to use metrics APIs");return}const{unit:s,tags:o,timestamp:u}=n,{release:c,environment:l}=i.getOptions(),d=a.getTransaction(),f={};c&&(f.release=c),l&&(f.environment=l),d&&(f.transaction=Pt(d).description||""),ge&&W.log(`Adding value of ${r} to ${t} metric ${e}`),i.metricsAggregator.add(t,e,r,s,{...f,...o},u)}}function D0e(t,e=1,r){ky(wz,t,e,r)}function I0e(t,e,r){ky(Tz,t,e,r)}function R0e(t,e,r){ky(Oz,t,e,r)}function L0e(t,e,r){ky(Sz,t,e,r)}const N0e={increment:D0e,distribution:I0e,set:R0e,gauge:L0e,MetricsAggregator:k0e,metricsAggregatorIntegration:jz},B0e=A0e,ct=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ge=je;function Hz(){Ge&&Ge.document?Ge.document.addEventListener("visibilitychange",()=>{const t=Zo();if(Ge.document.hidden&&t){const e="cancelled",{op:r,status:n}=Pt(t);ct&&W.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):ct&&W.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const bP=(t,e,r)=>{let n,i;return a=>{e.value>=0&&(a||r)&&(i=e.value-(n||0),(i||n===void 0)&&(n=e.value,e.delta=i,t(e)))}},F0e=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,j0e=()=>{const t=Ge.performance.timing,e=Ge.performance.navigation.type,r={entryType:"navigation",startTime:0,type:e==2?"back_forward":e===1?"reload":"navigate"};for(const n in t)n!=="navigationStart"&&n!=="toJSON"&&(r[n]=Math.max(t[n]-t.navigationStart,0));return r},zz=()=>Ge.__WEB_VITALS_POLYFILL__?Ge.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||j0e()):Ge.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Vz=()=>{const t=zz();return t&&t.activationStart||0},yP=(t,e)=>{const r=zz();let n="navigate";return r&&(Ge.document.prerendering||Vz()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:F0e(),navigationType:n}},Dy=(t,e,r)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(t)){const n=new PerformanceObserver(i=>{e(i.getEntries())});return n.observe(Object.assign({type:t,buffered:!0},r||{})),n}}catch{}},Iy=(t,e)=>{const r=n=>{(n.type==="pagehide"||Ge.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},H0e=t=>{const e=yP("CLS",0);let r,n=0,i=[];const a=o=>{o.forEach(u=>{if(!u.hadRecentInput){const c=i[0],l=i[i.length-1];n&&i.length!==0&&u.startTime-l.startTime<1e3&&u.startTime-c.startTime<5e3?(n+=u.value,i.push(u)):(n=u.value,i=[u]),n>e.value&&(e.value=n,e.entries=i,r&&r())}})},s=Dy("layout-shift",a);if(s){r=bP(t,e);const o=()=>{a(s.takeRecords()),r(!0)};return Iy(o),o}};let _v=-1;const z0e=()=>Ge.document.visibilityState==="hidden"&&!Ge.document.prerendering?0:1/0,V0e=()=>{Iy(({timeStamp:t})=>{_v=t},!0)},_P=()=>(_v<0&&(_v=z0e(),V0e()),{get firstHiddenTime(){return _v}}),U0e=t=>{const e=_P(),r=yP("FID");let n;const i=o=>{o.startTime{o.forEach(i)},s=Dy("first-input",a);n=bP(t,r),s&&Iy(()=>{a(s.takeRecords()),s.disconnect()},!0)},PR={},G0e=t=>{const e=_P(),r=yP("LCP");let n;const i=s=>{const o=s[s.length-1];if(o){const u=Math.max(o.startTime-Vz(),0);u{PR[r.id]||(i(a.takeRecords()),a.disconnect(),PR[r.id]=!0,n(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),Iy(s,!0),s}},$h={},G0={};let Uz,Gz,Wz;function W0e(t,e=!1){return wP("cls",t,K0e,Uz,e)}function Yz(t,e=!1){return wP("lcp",t,X0e,Wz,e)}function Y0e(t){return wP("fid",t,q0e,Gz)}function Ry(t,e){return Kz(t,e),G0[t]||(J0e(t),G0[t]=!0),qz(t,e)}function Ly(t,e){const r=$h[t];if(!(!r||!r.length))for(const n of r)try{n(e)}catch(i){ct&&W.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Rs(n)} Error:`,i)}}function K0e(){return H0e(t=>{Ly("cls",{metric:t}),Uz=t})}function q0e(){return U0e(t=>{Ly("fid",{metric:t}),Gz=t})}function X0e(){return G0e(t=>{Ly("lcp",{metric:t}),Wz=t})}function wP(t,e,r,n,i=!1){Kz(t,e);let a;return G0[t]||(a=r(),G0[t]=!0),n&&e({metric:n}),qz(t,e,i?a:void 0)}function J0e(t){const e={};t==="event"&&(e.durationThreshold=0),Dy(t,r=>{Ly(t,{entries:r})},e)}function Kz(t,e){$h[t]=$h[t]||[],$h[t].push(e)}function qz(t,e,r){return()=>{r&&r();const n=$h[t];if(!n)return;const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}function _1(t){return typeof t=="number"&&isFinite(t)}function bd(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}const Q0e=2147483647;function Sr(t){return t/1e3}function Xz(){return Ge&&Ge.addEventListener&&Ge.performance}let CR=0,dr={},Sa,kh;function Jz(){const t=Xz();if(t&&bn){t.mark&&Ge.performance.mark("sentry-tracing-init");const e=tbe(),r=Z0e(),n=ebe();return()=>{e(),r(),n()}}return()=>{}}function Qz(){Ry("longtask",({entries:t})=>{for(const e of t){const r=Zo();if(!r)return;const n=Sr(bn+e.startTime),i=Sr(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})}function Zz(){Ry("event",({entries:t})=>{for(const e of t){const r=Zo();if(!r)return;if(e.name==="click"){const n=Sr(bn+e.startTime),i=Sr(e.duration),a={description:dc(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},s=kH(e.target);s&&(a.attributes={"ui.component_name":s}),r.startChild(a)}}})}function Z0e(){return W0e(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ct&&W.log("[Measurements] Adding CLS"),dr.cls={value:t.value,unit:""},kh=e)},!0)}function ebe(){return Yz(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ct&&W.log("[Measurements] Adding LCP"),dr.lcp={value:t.value,unit:"millisecond"},Sa=e)},!0)}function tbe(){return Y0e(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const r=Sr(bn),n=Sr(e.startTime);ct&&W.log("[Measurements] Adding FID"),dr.fid={value:t.value,unit:"millisecond"},dr["mark.fid"]={value:r+n,unit:"second"}})}function eV(t){const e=Xz();if(!e||!Ge.performance.getEntries||!bn)return;ct&&W.log("[Tracing] Adding & adjusting spans using Performance API");const r=Sr(bn),n=e.getEntries();let i,a;const{op:s,start_timestamp:o}=Pt(t);if(n.slice(CR).forEach(u=>{const c=Sr(u.startTime),l=Sr(u.duration);if(!(t.op==="navigation"&&o&&r+c{if(!dr[c]||!o||r>=o)return;const l=dr[c].value,d=r+Sr(l),f=Math.abs((d-o)*1e3),p=f-l;ct&&W.log(`[Measurements] Normalized ${c} from ${l} to ${f} (${p})`),dr[c].value=f});const u=dr["mark.fid"];u&&dr.fid&&(bd(t,{description:"first input delay",endTimestamp:u.value+Sr(dr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:u.value}),delete dr["mark.fid"]),"fcp"in dr||delete dr.cls,Object.keys(dr).forEach(c=>{gz(c,dr[c].value,dr[c].unit)}),obe(t)}Sa=void 0,kh=void 0,dr={}}function rbe(t,e,r,n,i){const a=i+r,s=a+n;return bd(t,{description:e.name,endTimestamp:s,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function nbe(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{cg(t,e,n,r)}),cg(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),cg(t,e,"fetch",r,"cache","domainLookupStart"),cg(t,e,"domainLookup",r,"DNS"),ibe(t,e,r)}function cg(t,e,r,n,i,a){const s=a?e[a]:e[`${r}End`],o=e[`${r}Start`];!o||!s||bd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+Sr(o),endTimestamp:n+Sr(s)})}function ibe(t,e,r){e.responseEnd&&(bd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+Sr(e.requestStart),endTimestamp:r+Sr(e.responseEnd)}),bd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+Sr(e.responseStart),endTimestamp:r+Sr(e.responseEnd)}))}function abe(t,e,r,n,i,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const s=bv(r),o={};w1(o,e,"transferSize","http.response_transfer_size"),w1(o,e,"encodedBodySize","http.response_content_length"),w1(o,e,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in e&&(o["resource.render_blocking_status"]=e.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=r.includes(Ge.location.origin);const u=a+n,c=u+i;bd(t,{description:r.replace(Ge.location.origin,""),endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:o})}function sbe(t){const e=Ge.navigator;if(!e)return;const r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),_1(r.rtt)&&(dr["connection.rtt"]={value:r.rtt,unit:"millisecond"})),_1(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),_1(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function obe(t){Sa&&(ct&&W.log("[Measurements] Adding LCP Data"),Sa.element&&t.setTag("lcp.element",dc(Sa.element)),Sa.id&&t.setTag("lcp.id",Sa.id),Sa.url&&t.setTag("lcp.url",Sa.url.trim().slice(0,200)),t.setTag("lcp.size",Sa.size)),kh&&kh.sources&&(ct&&W.log("[Measurements] Adding CLS Data"),kh.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,dc(e.node))))}function w1(t,e,r,n){const i=e[r];i!=null&&i0&&f.setAttribute("http.response_content_length",m)}}else t.error&&f.setStatus("internal_error");f.end(),delete n[d]}return}const s=wr(),o=Xe(),{method:u,url:c}=t.fetchData,l=a?hP({name:`${u} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":u,[Ll]:i},op:"http.client"}):void 0;if(l&&(t.fetchData.__span=l.spanContext().spanId,n[l.spanContext().spanId]=l),r(t.fetchData.url)&&o){const d=t.args[0];t.args[1]=t.args[1]||{};const f=t.args[1];f.headers=lbe(d,o,s,f,l)}return l}function lbe(t,e,r,n,i){const a=i||r.getSpan(),s=ca(),{traceId:o,spanId:u,sampled:c,dsc:l}={...s.getPropagationContext(),...r.getPropagationContext()},d=a?Cy(a):eP(o,u,c),f=KH(l||(a?up(a):My(o,e,r))),p=n.headers||(typeof Request<"u"&&Is(t,Request)?t.headers:void 0);if(p)if(typeof Headers<"u"&&Is(p,Headers)){const m=new Headers(p);return m.append("sentry-trace",d),f&&m.append(YO,f),m}else if(Array.isArray(p)){const m=[...p,["sentry-trace",d]];return f&&m.push([YO,f]),m}else{const m="baggage"in p?p.baggage:void 0,b=[];return Array.isArray(m)?b.push(...m):m&&b.push(m),f&&b.push(f),{...p,"sentry-trace":d,baggage:b.length>0?b.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}const JO=["localhost",/^\/(?!\/)/],cp={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:JO,tracePropagationTargets:JO};function SP(t){const{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:cp.traceFetch,traceXHR:cp.traceXHR,...t},o=typeof a=="function"?a:l=>!0,u=l=>pbe(l,n||i),c={};e&&Xx(l=>{const d=cbe(l,o,u,c);s&&d&&AR(d)}),r&&Jx(l=>{const d=mbe(l,o,u,c);s&&d&&AR(d)})}function dbe(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function AR(t){const{url:e}=Pt(t).data||{};if(!e||typeof e!="string")return;const r=Ry("resource",({entries:n})=>{n.forEach(i=>{dbe(i)&&i.name.endsWith(e)&&(hbe(i).forEach(s=>t.setAttribute(...s)),setTimeout(r))})})}function fbe(t){let e="unknown",r="unknown",n="";for(const i of t){if(i==="/"){[e,r]=t.split("/");break}if(!isNaN(Number(i))){e=n==="h"?"http":n,r=t.split(n)[1];break}n+=i}return n===t&&(e=n),{name:e,version:r}}function va(t=0){return((bn||performance.timeOrigin)+t)/1e3}function hbe(t){const{name:e,version:r}=fbe(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),bn?[...n,["http.request.redirect_start",va(t.redirectStart)],["http.request.fetch_start",va(t.fetchStart)],["http.request.domain_lookup_start",va(t.domainLookupStart)],["http.request.domain_lookup_end",va(t.domainLookupEnd)],["http.request.connect_start",va(t.connectStart)],["http.request.secure_connection_start",va(t.secureConnectionStart)],["http.request.connection_end",va(t.connectEnd)],["http.request.request_start",va(t.requestStart)],["http.request.response_start",va(t.responseStart)],["http.request.response_end",va(t.responseEnd)]]:n}function pbe(t,e){return jd(t,e||JO)}function mbe(t,e,r,n){const i=t.xhr,a=i&&i[vo];if(!Gd()||!i||i.__sentry_own_request__||!a)return;const s=e(a.url);if(t.endTimestamp&&s){const d=i.__sentry_xhr_span_id__;if(!d)return;const f=n[d];f&&a.status_code!==void 0&&(cP(f,a.status_code),f.end(),delete n[d]);return}const o=wr(),u=ca(),c=s?hP({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Ll]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,n[i.__sentry_xhr_span_id__]=c);const l=Xe();if(i.setRequestHeader&&r(a.url)&&l){const{traceId:d,spanId:f,sampled:p,dsc:m}={...u.getPropagationContext(),...o.getPropagationContext()},b=c?Cy(c):eP(d,f,p),_=KH(m||(c?up(c):My(d,l,o)));gbe(i,b,_)}return c}function gbe(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(YO,r)}catch{}}function vbe(t,e=!0,r=!0){if(!Ge||!Ge.location){ct&&W.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Ge.location.href,i;e&&(i=t({name:Ge.location.pathname,startTimestamp:bn?bn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&Up(({to:a,from:s})=>{if(s===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}s!==a&&(n=void 0,i&&(ct&&W.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=t({name:Ge.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const bbe="BrowserTracing",ybe={...Mh,markBackgroundTransactions:!0,routingInstrumentation:vbe,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...cp};class _be{constructor(e){this.name=bbe,this._hasSetTracePropagationTargets=!1,dP(),ct&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...ybe,...e},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Jz(),this.options.enableLongTask&&Qz(),this.options._experiments.enableInteractions&&Zz()}setupOnce(e,r){this._getCurrentHub=r;const i=r().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:u,markBackgroundTransactions:c,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:m}=this.options,b=a&&a.tracePropagationTargets,_=b||this.options.tracePropagationTargets;ct&&this._hasSetTracePropagationTargets&&b&&W.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(S=>{const E=this._createRouteTransaction(S);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(E,S,r),E},u,o),c&&Hz(),m.enableInteractions&&this._registerInteractionListener(),SP({traceFetch:l,traceXHR:d,tracePropagationTargets:_,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub){ct&&W.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`);return}const r=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=e.op==="pageload";let u;if(o){const p=o?MR("sentry-trace"):"",m=o?MR("baggage"):void 0,{traceparentData:b,dynamicSamplingContext:_}=Zx(p,m);u={...e,...b,metadata:{...e.metadata,dynamicSamplingContext:b&&!_?{}:_},trimEnd:!0}}else u={...e,trimEnd:!0};const c=typeof n=="function"?n(u):u,l=c===void 0?{...u,sampled:!1}:c;l.metadata=l.name!==u.name?{...l.metadata,source:"custom"}:l.metadata,this._latestRouteName=l.name,this._latestRouteSource=wbe(l),l.sampled===!1&&ct&&W.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),ct&&W.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:d}=Ge,f=V0(r,l,i,a,!0,{location:d},s,o);return o&&(Ge.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ge.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Ge.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),eV(p)}),f}_registerInteractionListener(){let e;const r=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=Zo();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ct&&W.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub){ct&&W.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){ct&&W.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:c}=Ge,l={name:this._latestRouteName,op:s,trimEnd:!0,data:{[kn]:this._latestRouteSource||"url"}};e=V0(u,l,n,i,!0,{location:c},a)};["click"].forEach(n=>{addEventListener(n,r,{once:!1,capture:!0})})}}function MR(t){const e=$H(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function wbe(t){const e=t.attributes&&t.attributes[kn],r=t.data&&t.data[kn],n=t.metadata&&t.metadata.source;return e||r||n}const Sbe="BrowserTracing",Obe={...Mh,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...cp},Tbe=(t={})=>{const e=ct?!!(t.tracePropagationTargets||t.tracingOrigins):!1;dP(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const r={...Obe,...t},n=Jz();r.enableLongTask&&Qz(),r._experiments.enableInteractions&&Zz();let i,a;function s(o){const u=bt(),{beforeStartSpan:c,idleTimeout:l,finalTimeout:d,heartbeatInterval:f}=r,p=o.op==="pageload";let m;if(p){const E=p?$R("sentry-trace"):"",O=p?$R("baggage"):void 0,{traceparentData:h,dynamicSamplingContext:v}=Zx(E,O);m={...o,...h,metadata:{...o.metadata,dynamicSamplingContext:h&&!v?{}:v},trimEnd:!0}}else m={...o,trimEnd:!0};const b=c?c(m):m;b.metadata=b.name!==m.name?{...b.metadata,source:"custom"}:b.metadata,i=b.name,a=xbe(b),b.sampled===!1&&ct&&W.log(`[Tracing] Will not send ${b.op} transaction because of beforeNavigate.`),ct&&W.log(`[Tracing] Starting ${b.op} transaction on scope`);const{location:_}=Ge,S=V0(u,b,l,d,!0,{location:_},f,p);return p&&(Ge.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ge.document.readyState)&&S.sendAutoFinishSignal()}),["interactive","complete"].includes(Ge.document.readyState)&&S.sendAutoFinishSignal()),S.registerBeforeFinishCallback(E=>{n(),eV(E)}),S}return{name:Sbe,setupOnce:()=>{},afterAllSetup(o){const u=o.getOptions(),{markBackgroundSpan:c,traceFetch:l,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:m}=r,b=u&&u.tracePropagationTargets,_=b||r.tracePropagationTargets;ct&&e&&b&&W.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let S,E=Ge.location.href;if(o.on&&(o.on("startNavigationSpan",O=>{S&&(ct&&W.log(`[Tracing] Finishing current transaction with op: ${Pt(S).op}`),S.end()),S=s(O)}),o.on("startPageLoadSpan",O=>{S&&(ct&&W.log(`[Tracing] Finishing current transaction with op: ${Pt(S).op}`),S.end()),S=s(O)})),r.instrumentPageLoad&&o.emit){const O={name:Ge.location.pathname,startTimestamp:bn?bn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}};tV(o,O)}r.instrumentNavigation&&o.emit&&Up(({to:O,from:h})=>{if(h===void 0&&E&&E.indexOf(O)!==-1){E=void 0;return}if(h!==O){E=void 0;const v={name:Ge.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}};rV(o,v)}}),c&&Hz(),m.enableInteractions&&Ebe(r,i,a),SP({traceFetch:l,traceXHR:d,tracePropagationTargets:_,shouldCreateSpanForRequest:f,enableHTTPTimings:p})},options:r}};function tV(t,e){t.emit&&t.emit("startPageLoadSpan",e)}function rV(t,e){t.emit&&t.emit("startNavigationSpan",e)}function $R(t){const e=$H(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Ebe(t,e,r){let n;const i=()=>{const{idleTimeout:a,finalTimeout:s,heartbeatInterval:o}=t,u="ui.action.click",c=Zo();if(c&&c.op&&["navigation","pageload"].includes(c.op)){ct&&W.warn(`[Tracing] Did not create ${u} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!e){ct&&W.warn(`[Tracing] Did not create ${u} transaction because _latestRouteName is missing.`);return}const{location:l}=Ge,d={name:e,op:u,trimEnd:!0,data:{[kn]:r||"url"}};n=V0(bt(),d,a,s,!0,{location:l},o)};["click"].forEach(a=>{addEventListener(a,i,{once:!1,capture:!0})})}function xbe(t){const e=t.attributes&&t.attributes[kn],r=t.data&&t.data[kn],n=t.metadata&&t.metadata.source;return e||r||n}const Se=je;let QO=0;function nV(){return QO>0}function Pbe(){QO++,setTimeout(()=>{QO--})}function hc(t,e={},r){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(Kx(t))return t}catch{return t}const n=function(){const i=Array.prototype.slice.call(arguments);try{r&&typeof r=="function"&&r.apply(this,arguments);const a=i.map(s=>hc(s,e));return t.apply(this,a)}catch(a){throw Pbe(),Yp(s=>{s.addEventProcessor(o=>(e.mechanism&&(FO(o,void 0,void 0),op(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),Vd(a)}),a}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}catch{}LH(n,t),sp(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const rt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function OP(t,e){const r=TP(t,e),n={type:e&&e.name,value:$be(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Cbe(t,e,r,n){const i=Xe(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:Py(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:kbe(e,{isUnhandledRejection:n})}]},extra:{__serialized__:GH(e,a)}};if(r){const o=TP(t,r);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function S1(t,e){return{exception:{values:[OP(t,e)]}}}function TP(t,e){const r=e.stacktrace||e.stack||"",n=Mbe(e);try{return t(r,n)}catch{}return[]}const Abe=/Minified React error #\d+;/i;function Mbe(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Abe.test(t.message))return 1}return 0}function $be(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function iV(t,e,r,n){const i=r&&r.syntheticException||void 0,a=EP(t,e,i,n);return op(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),md(a)}function aV(t,e,r="info",n,i){const a=n&&n.syntheticException||void 0,s=ZO(t,e,a,i);return s.level=r,n&&n.event_id&&(s.event_id=n.event_id),md(s)}function EP(t,e,r,n,i){let a;if(Ux(e)&&e.error)return S1(t,e.error);if(q2(e)||dme(e)){const s=e;if("stack"in e)a=S1(t,e);else{const o=s.name||(q2(s)?"DOMError":"DOMException"),u=s.message?`${o}: ${s.message}`:o;a=ZO(t,u,r,n),FO(a,u)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return EH(e)?S1(t,e):pd(e)||Py(e)?(a=Cbe(t,e,r,i),op(a,{synthetic:!0}),a):(a=ZO(t,e,r,n),FO(a,`${e}`,void 0),op(a,{synthetic:!0}),a)}function ZO(t,e,r,n){const i={};if(n&&r){const a=TP(t,r);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(Gx(e)){const{__sentry_template_string__:a,__sentry_template_values__:s}=e;return i.logentry={message:a,params:s},i}return i.message=e,i}function kbe(t,{isUnhandledRejection:e}){const r=Eme(t),n=e?"promise rejection":"exception";return Ux(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:Py(t)?`Event \`${Dbe(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function Dbe(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function sV(t,{metadata:e,tunnel:r,dsn:n}){const i={event_id:t.event_id,sent_at:new Date().toISOString(),...e&&e.sdk&&{sdk:{name:e.sdk.name,version:e.sdk.version}},...!!r&&!!n&&{dsn:zd(n)}},a=Ibe(t);return Ac(i,[a])}function Ibe(t){return[{type:"user_report"},t]}class oV extends Nve{constructor(e){const r=Se.SENTRY_SDK_SOURCE||Yme();i0e(e,"browser",["browser"],r),super(e),e.sendClientReports&&Se.document&&Se.document.addEventListener("visibilitychange",()=>{Se.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return iV(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return aV(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){rt&&W.warn("SDK not enabled, will not capture user feedback.");return}const r=sV(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(r)}_prepareEvent(e,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,r,n)}_flushOutcomes(){const e=this._clearOutcomes();if(e.length===0){rt&&W.log("No outcomes to send");return}if(!this._dsn){rt&&W.log("No dsn provided, will not send outcomes");return}rt&&W.log("Sending outcomes:",e);const r=gge(e,this._options.tunnel&&zd(this._dsn));this._sendEnvelope(r)}}let dh;function Rbe(){if(dh)return dh;if(VO(Se.fetch))return dh=Se.fetch.bind(Se);const t=Se.document;let e=Se.fetch;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);const n=r.contentWindow;n&&n.fetch&&(e=n.fetch),t.head.removeChild(r)}catch(r){rt&&W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return dh=e.bind(Se)}function Lbe(){dh=void 0}function uV(t,e=Rbe()){let r=0,n=0;function i(a){const s=a.body.length;r+=s,n++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:t.headers,keepalive:r<=6e4&&n<15,...t.fetchOptions};try{return e(t.url,o).then(u=>(r-=s,n--,{statusCode:u.status,headers:{"x-sentry-rate-limits":u.headers.get("X-Sentry-Rate-Limits"),"retry-after":u.headers.get("Retry-After")}}))}catch(u){return Lbe(),r-=s,n--,Qx(u)}}return mP(t,i)}const Nbe=4;function cV(t){function e(r){return new ei((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Nbe&&n({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",t.url);for(const s in t.headers)Object.prototype.hasOwnProperty.call(t.headers,s)&&a.setRequestHeader(s,t.headers[s]);a.send(r.body)})}return mP(t,e)}const Wd="?",Bbe=10,Fbe=20,jbe=30,Hbe=40,zbe=50;function Kp(t,e,r,n){const i={filename:t,function:e,in_app:!0};return r!==void 0&&(i.lineno=r),n!==void 0&&(i.colno=n),i}const Vbe=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ube=/\((\S*)(?::(\d+))(?::(\d+))\)/,Gbe=t=>{const e=Vbe.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const a=Ube.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}const[n,i]=mV(e[1]||Wd,e[2]);return Kp(i,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},lV=[jbe,Gbe],Wbe=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ybe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Kbe=t=>{const e=Wbe.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=Ybe.exec(e[3]);a&&(e[1]=e[1]||"eval",e[3]=a[1],e[4]=a[2],e[5]="")}let n=e[3],i=e[1]||Wd;return[i,n]=mV(i,n),Kp(n,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},dV=[zbe,Kbe],qbe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Xbe=t=>{const e=qbe.exec(t);return e?Kp(e[2],e[1]||Wd,+e[3],e[4]?+e[4]:void 0):void 0},fV=[Hbe,Xbe],Jbe=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Qbe=t=>{const e=Jbe.exec(t);return e?Kp(e[2],e[3]||Wd,+e[1]):void 0},Zbe=[Bbe,Qbe],eye=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,tye=t=>{const e=eye.exec(t);return e?Kp(e[5],e[3]||e[4]||Wd,+e[1],+e[2]):void 0},rye=[Fbe,tye],hV=[lV,dV,fV],pV=FH(...hV),mV=(t,e)=>{const r=t.indexOf("safari-extension")!==-1,n=t.indexOf("safari-web-extension")!==-1;return r||n?[t.indexOf("@")!==-1?t.split("@")[0]:Wd,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},lg=1024,gV="Breadcrumbs",nye=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:gV,setupOnce(){},setup(r){e.console&&Ame(sye(r)),e.dom&&HH(aye(r,e.dom)),e.xhr&&Jx(oye(r)),e.fetch&&Xx(uye(r)),e.history&&Up(cye(r)),e.sentry&&r.on&&r.on("beforeSendEvent",iye(r))}}},xP=nye,vV=zn(gV,xP);function iye(t){return function(r){Xe()===t&&Ls({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:ho(r)},{event:r})}}function aye(t,e){return function(n){if(Xe()!==t)return;let i,a,s=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>lg&&(rt&&W.warn(`\`dom.maxStringLength\` cannot exceed ${lg}, but a value of ${o} was configured. Sentry will use ${lg} instead.`),o=lg),typeof s=="string"&&(s=[s]);try{const c=n.event,l=lye(c)?c.target:c;i=dc(l,{keyAttrs:s,maxStringLength:o}),a=kH(l)}catch{i=""}if(i.length===0)return;const u={category:`ui.${n.name}`,message:i};a&&(u.data={"ui.component_name":a}),Ls(u,{event:n.event,name:n.name,global:n.global})}}function sye(t){return function(r){if(Xe()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:nge(r.level),message:X2(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${X2(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;Ls(n,{input:r.args,level:r.level})}}function oye(t){return function(r){if(Xe()!==t)return;const{startTimestamp:n,endTimestamp:i}=r,a=r.xhr[vo];if(!n||!i||!a)return;const{method:s,url:o,status_code:u,body:c}=a,l={method:s,url:o,status_code:u},d={xhr:r.xhr,input:c,startTimestamp:n,endTimestamp:i};Ls({category:"xhr",data:l,type:"http"},d)}}function uye(t){return function(r){if(Xe()!==t)return;const{startTimestamp:n,endTimestamp:i}=r;if(i&&!(r.fetchData.url.match(/sentry_key/)&&r.fetchData.method==="POST"))if(r.error){const a=r.fetchData,s={data:r.error,input:r.args,startTimestamp:n,endTimestamp:i};Ls({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=r.response,s={...r.fetchData,status_code:a&&a.status},o={input:r.args,response:a,startTimestamp:n,endTimestamp:i};Ls({category:"fetch",data:s,type:"http"},o)}}}function cye(t){return function(r){if(Xe()!==t)return;let n=r.from,i=r.to;const a=bv(Se.location.href);let s=n?bv(n):void 0;const o=bv(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(n=s.relative),Ls({category:"navigation",data:{from:n,to:i}})}}function lye(t){return!!t&&!!t.target}const bV="Dedupe",dye=()=>{let t;return{name:bV,setupOnce(){},processEvent(e){if(e.type)return e;try{if(fye(e,t))return rt&&W.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},PP=dye,yV=zn(bV,PP);function fye(t,e){return e?!!(hye(t,e)||pye(t,e)):!1}function hye(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!wV(t,e)||!_V(t,e))}function pye(t,e){const r=kR(e),n=kR(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!wV(t,e)||!_V(t,e))}function _V(t,e){let r=DR(t),n=DR(e);if(!r&&!n)return!0;if(r&&!n||!r&&n||(r=r,n=n,n.length!==r.length))return!1;for(let i=0;i{const e={onerror:!0,onunhandledrejection:!0,...t};return{name:SV,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(gye(r),IR("onerror")),e.onunhandledrejection&&(vye(r),IR("onunhandledrejection"))}}},CP=mye,OV=zn(SV,CP);function gye(t){VH(e=>{const{stackParser:r,attachStacktrace:n}=EV();if(Xe()!==t||nV())return;const{msg:i,url:a,line:s,column:o,error:u}=e,c=u===void 0&&Fa(i)?_ye(i,a,s,o):TV(EP(r,u||i,void 0,n,!1),a,s,o);c.level="error",aP(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function vye(t){UH(e=>{const{stackParser:r,attachStacktrace:n}=EV();if(Xe()!==t||nV())return;const i=bye(e),a=Wx(i)?yye(i):EP(r,i,void 0,n,!0);a.level="error",aP(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function bye(t){if(Wx(t))return t;const e=t;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return t}function yye(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function _ye(t,e,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Ux(t)?t.message:t,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),TV({exception:{values:[{type:s,value:a}]}},e,r,n)}function TV(t,e,r,n){const i=t.exception=t.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},u=o.frames=o.frames||[],c=isNaN(parseInt(n,10))?void 0:n,l=isNaN(parseInt(r,10))?void 0:r,d=Fa(e)&&e.length>0?e:MH();return u.length===0&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),t}function IR(t){rt&&W.log(`Global Handler attached: ${t}`)}function EV(){const t=Xe();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const xV="HttpContext",wye=()=>({name:xV,setupOnce(){},preprocessEvent(t){if(!Se.navigator&&!Se.location&&!Se.document)return;const e=t.request&&t.request.url||Se.location&&Se.location.href,{referrer:r}=Se.document||{},{userAgent:n}=Se.navigator||{},i={...t.request&&t.request.headers,...r&&{Referer:r},...n&&{"User-Agent":n}},a={...t.request,...e&&{url:e},headers:i};t.request=a}}),AP=wye,PV=zn(xV,AP),Sye="cause",Oye=5,CV="LinkedErrors",Tye=(t={})=>{const e=t.limit||Oye,r=t.key||Sye;return{name:CV,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();CH(OP,s.stackParser,s.maxValueLength,r,e,n,i)}}},MP=Tye,AV=zn(CV,MP),Eye=["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"],MV="TryCatch",xye=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:MV,setupOnce(){e.setTimeout&&Lr(Se,"setTimeout",RR),e.setInterval&&Lr(Se,"setInterval",RR),e.requestAnimationFrame&&Lr(Se,"requestAnimationFrame",Pye),e.XMLHttpRequest&&"XMLHttpRequest"in Se&&Lr(XMLHttpRequest.prototype,"send",Cye);const r=e.eventTarget;r&&(Array.isArray(r)?r:Eye).forEach(Aye)}}},$P=xye,$V=zn(MV,$P);function RR(t){return function(...e){const r=e[0];return e[0]=hc(r,{mechanism:{data:{function:Rs(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Pye(t){return function(e){return t.apply(this,[hc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Rs(t)},handled:!1,type:"instrument"}})])}}function Cye(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&Lr(r,i,function(a){const s={mechanism:{data:{function:i,handler:Rs(a)},handled:!1,type:"instrument"}},o=Kx(a);return o&&(s.mechanism.data.handler=Rs(o)),hc(a,s)})}),t.apply(this,e)}}function Aye(t){const e=Se,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Lr(r,"addEventListener",function(n){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=hc(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Rs(a),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[i,hc(a,{mechanism:{data:{function:"addEventListener",handler:Rs(a),target:t},handled:!1,type:"instrument"}}),s])}}),Lr(r,"removeEventListener",function(n){return function(i,a,s){const o=a;try{const u=o&&o.__sentry_wrapped__;u&&n.call(this,i,u,s)}catch{}return n.call(this,i,o,s)}}))}const kV=[gP(),vP(),$P(),xP(),CP(),MP(),PP(),AP()];function kP(t){return[...kV]}function Mye(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=kP()),t.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(t.release=__SENTRY_RELEASE__),Se.SENTRY_RELEASE&&Se.SENTRY_RELEASE.id&&(t.release=Se.SENTRY_RELEASE.id)),t.autoSessionTracking===void 0&&(t.autoSessionTracking=!0),t.sendClientReports===void 0&&(t.sendClientReports=!0);const e={...t,stackParser:Pme(t.stackParser||pV),integrations:Eve(t),transport:t.transport||(zH()?uV:cV)};Gve(oV,e),t.autoSessionTracking&&Rye()}const $ye=(t={},e=bt())=>{if(!Se.document){rt&&W.error("Global document not defined in showReportDialog call");return}const{client:r,scope:n}=e.getStackTop(),i=t.dsn||r&&r.getDsn();if(!i){rt&&W.error("DSN not configured for showReportDialog call");return}n&&(t.user={...n.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());const a=Se.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Ove(i,t),t.onLoad&&(a.onload=t.onLoad);const{onClose:s}=t;if(s){const u=c=>{if(c.data==="__sentry_reportdialog_closed__")try{s()}finally{Se.removeEventListener("message",u)}};Se.addEventListener("message",u)}const o=Se.document.head||Se.document.body;o?o.appendChild(a):rt&&W.error("Not injecting report dialog. No injection point found in HTML")};function kye(){}function Dye(t){t()}function Iye(t){return hc(t)()}function Rye(){if(typeof Se.document>"u"){rt&&W.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}fR({ignoreDuration:!0}),hR(),Up(({from:t,to:e})=>{t!==void 0&&t!==e&&(fR({ignoreDuration:!0}),hR())})}function Lye(t){const e=Xe();e&&e.captureUserFeedback(t)}const Nye=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:vV,Dedupe:yV,GlobalHandlers:OV,HttpContext:PV,LinkedErrors:AV,TryCatch:$V},Symbol.toStringTag,{value:"Module"})),At=je,DP="sentryReplaySession",Bye="replay_event",IP="Unable to send Replay",Fye=3e5,jye=9e5,Hye=5e3,zye=5500,Vye=6e4,Uye=5e3,Gye=3,LR=15e4,dg=5e3,Wye=3e3,Yye=300,RP=2e7,Kye=4999,qye=15e3,NR=36e5;function Xye(t,e){return t??e()}function W0(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}var Or;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Or||(Or={}));function Jye(t){return t.nodeType===t.ELEMENT_NODE}function Dh(t){const e=W0([t,"optionalAccess",r=>r.host]);return W0([e,"optionalAccess",r=>r.shadowRoot])===t}function Ih(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function Qye(t){return t.includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),t}function Zye(t){const{cssText:e}=t;if(e.split('"').length<3)return e;const r=["@import",`url(${JSON.stringify(t.href)})`];return t.layerName===""?r.push("layer"):t.layerName&&r.push(`layer(${t.layerName})`),t.supportsText&&r.push(`supports(${t.supportsText})`),t.media.length&&r.push(t.media.mediaText),r.join(" ")+";"}function Y0(t){try{const e=t.rules||t.cssRules;return e?Qye(Array.from(e,DV).join("")):null}catch{return null}}function DV(t){let e;if(t_e(t))try{e=Y0(t.styleSheet)||Zye(t)}catch{}else if(r_e(t)&&t.selectorText.includes(":"))return e_e(t.cssText);return e||t.cssText}function e_e(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function t_e(t){return"styleSheet"in t}function r_e(t){return"selectorText"in t}class IV{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const r=W0([this,"access",n=>n.getMeta,"call",n=>n(e),"optionalAccess",n=>n.id]);return Xye(r,()=>-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 r=this.getId(e);this.idNodeMap.delete(r),e.childNodes&&e.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,r){const n=r.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,r)}replace(e,r){const n=this.getNode(e);if(n){const i=this.nodeMetaMap.get(n);i&&this.nodeMetaMap.set(r,i)}this.idNodeMap.set(e,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function n_e(){return new IV}function Ny({maskInputOptions:t,tagName:e,type:r}){return e==="OPTION"&&(e="SELECT"),!!(t[e.toLowerCase()]||r&&t[r]||r==="password"||e==="INPUT"&&!r&&t.text)}function lp({isMasked:t,element:e,value:r,maskInputFn:n}){let i=r||"";return t?(n&&(i=n(i,e)),"*".repeat(i.length)):i}function yd(t){return t.toLowerCase()}function eT(t){return t.toUpperCase()}const BR="__rrweb_original__";function i_e(t){const e=t.getContext("2d");if(!e)return!0;const r=50;for(let n=0;nu!==0))return!1}return!0}function LP(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?yd(e):null}function K0(t,e,r){return e==="INPUT"&&(r==="radio"||r==="checkbox")?t.getAttribute("value")||"":t.value}let a_e=1;const s_e=new RegExp("[^a-z0-9-_:]"),dp=-2;function NP(){return a_e++}function o_e(t){if(t instanceof HTMLFormElement)return"form";const e=yd(t.tagName);return s_e.test(e)?"div":e}function u_e(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let dl,FR;const c_e=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,l_e=/^(?:[a-z+]+:)?\/\//i,d_e=/^www\..*/i,f_e=/^(data:)([^,]*),(.*)/i;function q0(t,e){return(t||"").replace(c_e,(r,n,i,a,s,o)=>{const u=i||s||o,c=n||a||"";if(!u)return r;if(l_e.test(u)||d_e.test(u))return`url(${c}${u}${c})`;if(f_e.test(u))return`url(${c}${u}${c})`;if(u[0]==="/")return`url(${c}${u_e(e)+u}${c})`;const l=e.split("/"),d=u.split("/");l.pop();for(const f of d)f!=="."&&(f===".."?l.pop():l.push(f));return`url(${c}${l.join("/")}${c})`})}const h_e=/^[^ \t\n\r\u000c]+/,p_e=/^[, \t\n\r\u000c]+/;function m_e(t,e){if(e.trim()==="")return e;let r=0;function n(a){let s;const o=a.exec(e.substring(r));return o?(s=o[0],r+=s.length,s):""}const i=[];for(;n(p_e),!(r>=e.length);){let a=n(h_e);if(a.slice(-1)===",")a=Nl(t,a.substring(0,a.length-1)),i.push(a);else{let s="";a=Nl(t,a);let o=!1;for(;;){const u=e.charAt(r);if(u===""){i.push((a+s).trim());break}else if(o)u===")"&&(o=!1);else if(u===","){r+=1,i.push((a+s).trim());break}else u==="("&&(o=!0);s+=u,r+=1}}}return i.join(", ")}function Nl(t,e){if(!e||e.trim()==="")return e;const r=t.createElement("a");return r.href=e,r.href}function g_e(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function BP(){const t=document.createElement("a");return t.href="",t.href}function RV(t,e,r,n,i,a){return n&&(r==="src"||r==="href"&&!(e==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(e==="table"||e==="td"||e==="th")?Nl(t,n):r==="srcset"?m_e(t,n):r==="style"?q0(n,BP()):e==="object"&&r==="data"?Nl(t,n):typeof a=="function"?a(r,n,i):n)}function LV(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function v_e(t,e,r,n){try{if(n&&t.matches(n))return!1;if(typeof e=="string"){if(t.classList.contains(e))return!0}else for(let i=t.classList.length;i--;){const a=t.classList[i];if(e.test(a))return!0}if(r)return t.matches(r)}catch{}return!1}function b_e(t,e){for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}return!1}function Ru(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:Ru(t.parentNode,e,r,n+1)}function Bl(t,e){return r=>{const n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(b_e(n,t))return!0}return!!(e&&n.matches(e))}catch{return!1}}}function _d(t,e,r,n,i,a){try{const s=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(s===null)return!1;let o=-1,u=-1;if(a){if(u=Ru(s,Bl(n,i)),u<0)return!0;o=Ru(s,Bl(e,r),u>=0?u:1/0)}else{if(o=Ru(s,Bl(e,r)),o<0)return!1;u=Ru(s,Bl(n,i),o>=0?o:1/0)}return o>=0?u>=0?o<=u:!0:u>=0?!1:!!a}catch{}return!!a}function y_e(t,e,r){const n=t.contentWindow;if(!n)return;let i=!1,a;try{a=n.document.readyState}catch{return}if(a!=="complete"){const o=setTimeout(()=>{i||(e(),i=!0)},r);t.addEventListener("load",()=>{clearTimeout(o),i=!0,e()});return}const s="about:blank";if(n.location.href!==s||t.src===s||t.src==="")return setTimeout(e,0),t.addEventListener("load",e);t.addEventListener("load",e)}function __e(t,e,r){let n=!1,i;try{i=t.sheet}catch{return}if(i)return;const a=setTimeout(()=>{n||(e(),n=!0)},r);t.addEventListener("load",()=>{clearTimeout(a),n=!0,e()})}function w_e(t,e){const{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskAttributeFn:u,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:b,maskInputFn:_,dataURLOptions:S={},inlineImages:E,recordCanvas:O,keepIframeSrcFn:h,newlyAddedElement:v=!1}=e,g=S_e(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:Or.Document,childNodes:[],compatMode:t.compatMode}:{type:Or.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:Or.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:g};case t.ELEMENT_NODE:return T_e(t,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:u,maskInputOptions:m,maskInputFn:_,dataURLOptions:S,inlineImages:E,recordCanvas:O,keepIframeSrcFn:h,newlyAddedElement:v,rootId:g,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case t.TEXT_NODE:return O_e(t,{maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:b,maskInputOptions:m,maskInputFn:_,rootId:g});case t.CDATA_SECTION_NODE:return{type:Or.CDATA,textContent:"",rootId:g};case t.COMMENT_NODE:return{type:Or.Comment,textContent:t.textContent||"",rootId:g};default:return!1}}function S_e(t,e){if(!e.hasNode(t))return;const r=e.getId(t);return r===1?void 0:r}function O_e(t,e){const{maskAllText:r,maskTextClass:n,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:s,maskTextFn:o,maskInputOptions:u,maskInputFn:c,rootId:l}=e,d=t.parentNode&&t.parentNode.tagName;let f=t.textContent;const p=d==="STYLE"?!0:void 0,m=d==="SCRIPT"?!0:void 0,b=d==="TEXTAREA"?!0:void 0;if(p&&f){try{t.nextSibling||t.previousSibling||W0([t,"access",S=>S.parentNode,"access",S=>S.sheet,"optionalAccess",S=>S.cssRules])&&(f=Y0(t.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,t)}f=q0(f,BP())}m&&(f="SCRIPT_PLACEHOLDER");const _=_d(t,n,a,i,s,r);if(!p&&!m&&!b&&f&&_&&(f=o?o(f):f.replace(/[\S]/g,"*")),b&&f&&(u.textarea||_)&&(f=c?c(f,t.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const S=Ny({type:null,tagName:d,maskInputOptions:u});f=lp({isMasked:_d(t,n,a,i,s,S),element:t,value:f,maskInputFn:c})}return{type:Or.Text,textContent:f||"",isStyle:p,rootId:l}}function T_e(t,e){const{doc:r,blockClass:n,blockSelector:i,unblockSelector:a,inlineStylesheet:s,maskInputOptions:o={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:l={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:b,maskAllText:_,maskTextClass:S,unmaskTextClass:E,maskTextSelector:O,unmaskTextSelector:h}=e,v=v_e(t,n,i,a),g=o_e(t);let T={};const C=t.attributes.length;for(let w=0;wP.href===t.href);let A=null;w&&(A=Y0(w)),A&&(delete T.rel,delete T.href,T._cssText=q0(A,w.href))}if(g==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const w=Y0(t.sheet);w&&(T._cssText=q0(w,BP()))}if(g==="input"||g==="textarea"||g==="select"||g==="option"){const w=t,A=LP(w),P=K0(w,eT(g),A),x=w.checked;if(A!=="submit"&&A!=="button"&&P){const $=_d(w,S,O,E,h,Ny({type:A,tagName:eT(g),maskInputOptions:o}));T.value=lp({isMasked:$,element:w,value:P,maskInputFn:c})}x&&(T.checked=x)}if(g==="option"&&(t.selected&&!o.select?T.selected=!0:delete T.selected),g==="canvas"&&f){if(t.__context==="2d")i_e(t)||(T.rr_dataURL=t.toDataURL(l.type,l.quality));else if(!("__context"in t)){const w=t.toDataURL(l.type,l.quality),A=document.createElement("canvas");A.width=t.width,A.height=t.height;const P=A.toDataURL(l.type,l.quality);w!==P&&(T.rr_dataURL=w)}}if(g==="img"&&d){dl||(dl=r.createElement("canvas"),FR=dl.getContext("2d"));const w=t,A=w.crossOrigin;w.crossOrigin="anonymous";const P=()=>{w.removeEventListener("load",P);try{dl.width=w.naturalWidth,dl.height=w.naturalHeight,FR.drawImage(w,0,0),T.rr_dataURL=dl.toDataURL(l.type,l.quality)}catch(x){console.warn(`Cannot inline img src=${w.currentSrc}! Error: ${x}`)}A?T.crossOrigin=A:w.removeAttribute("crossorigin")};w.complete&&w.naturalWidth!==0?P():w.addEventListener("load",P)}if((g==="audio"||g==="video")&&(T.rr_mediaState=t.paused?"paused":"played",T.rr_mediaCurrentTime=t.currentTime),m||(t.scrollLeft&&(T.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(T.rr_scrollTop=t.scrollTop)),v){const{width:w,height:A}=t.getBoundingClientRect();T={class:T.class,rr_width:`${w}px`,rr_height:`${A}px`}}g==="iframe"&&!p(T.src)&&(t.contentDocument||(T.rr_src=T.src),delete T.src);let k;try{customElements.get(g)&&(k=!0)}catch{}return{type:Or.Element,tagName:g,attributes:T,childNodes:[],isSVG:g_e(t)||void 0,needBlock:v,rootId:b,isCustom:k}}function Ct(t){return t==null?"":t.toLowerCase()}function E_e(t,e){if(e.comment&&t.type===Or.Comment)return!0;if(t.type===Or.Element){if(e.script&&(t.tagName==="script"||t.tagName==="link"&&(t.attributes.rel==="preload"||t.attributes.rel==="modulepreload")&&t.attributes.as==="script"||t.tagName==="link"&&t.attributes.rel==="prefetch"&&typeof t.attributes.href=="string"&&t.attributes.href.endsWith(".js")))return!0;if(e.headFavicon&&(t.tagName==="link"&&t.attributes.rel==="shortcut icon"||t.tagName==="meta"&&(Ct(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Ct(t.attributes.name)==="application-name"||Ct(t.attributes.rel)==="icon"||Ct(t.attributes.rel)==="apple-touch-icon"||Ct(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Ct(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Ct(t.attributes.property).match(/^(og|twitter|fb):/)||Ct(t.attributes.name).match(/^(og|twitter):/)||Ct(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Ct(t.attributes.name)==="robots"||Ct(t.attributes.name)==="googlebot"||Ct(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Ct(t.attributes.name)==="author"||Ct(t.attributes.name)==="generator"||Ct(t.attributes.name)==="framework"||Ct(t.attributes.name)==="publisher"||Ct(t.attributes.name)==="progid"||Ct(t.attributes.property).match(/^article:/)||Ct(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Ct(t.attributes.name)==="google-site-verification"||Ct(t.attributes.name)==="yandex-verification"||Ct(t.attributes.name)==="csrf-token"||Ct(t.attributes.name)==="p:domain_verify"||Ct(t.attributes.name)==="verify-v1"||Ct(t.attributes.name)==="verification"||Ct(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Fl(t,e){const{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOMOptions:E,dataURLOptions:O={},inlineImages:h=!1,recordCanvas:v=!1,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:C=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:P=!1}=e;let{preserveWhiteSpace:x=!0}=e;const $=w_e(t,{doc:r,mirror:n,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,dataURLOptions:O,inlineImages:h,recordCanvas:v,keepIframeSrcFn:A,newlyAddedElement:P});if(!$)return console.warn(t,"not serialized"),null;let D;n.hasNode(t)?D=n.getId(t):E_e($,E)||!x&&$.type===Or.Text&&!$.isStyle&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?D=dp:D=NP();const M=Object.assign($,{id:D});if(n.add(t,M),D===dp)return null;g&&g(t);let R=!f;if(M.type===Or.Element){R=R&&!M.needBlock,delete M.needBlock;const N=t.shadowRoot;N&&Ih(N)&&(M.isShadowHost=!0)}if((M.type===Or.Document||M.type===Or.Element)&&R){E.headWhitespace&&M.type===Or.Element&&M.tagName==="head"&&(x=!1);const N={doc:r,mirror:n,blockClass:i,blockSelector:a,maskAllText:o,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOMOptions:E,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:x,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A};for(const j of Array.from(t.childNodes)){const z=Fl(j,N);z&&M.childNodes.push(z)}if(Jye(t)&&t.shadowRoot)for(const j of Array.from(t.shadowRoot.childNodes)){const z=Fl(j,N);z&&(Ih(t.shadowRoot)&&(z.isShadow=!0),M.childNodes.push(z))}}return t.parentNode&&Dh(t.parentNode)&&Ih(t.parentNode)&&(M.isShadow=!0),M.type===Or.Element&&M.tagName==="iframe"&&y_e(t,()=>{const N=t.contentDocument;if(N&&T){const j=Fl(N,{doc:N,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOMOptions:E,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:x,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A});j&&T(t,j)}},C),M.type===Or.Element&&M.tagName==="link"&&M.attributes.rel==="stylesheet"&&__e(t,()=>{if(k){const N=Fl(t,{doc:r,mirror:n,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:o,maskTextClass:u,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOMOptions:E,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:x,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:C,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A});N&&k(t,N)}},w),M}function x_e(t,e){const{mirror:r=new IV,blockClass:n="rr-block",blockSelector:i=null,unblockSelector:a=null,maskAllText:s=!1,maskTextClass:o="rr-mask",unmaskTextClass:u=null,maskTextSelector:c=null,unmaskTextSelector:l=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOM:E=!1,dataURLOptions:O,preserveWhiteSpace:h,onSerialize:v,onIframeLoad:g,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w=()=>!1}=e||{};return Fl(t,{doc:t,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,maskAllText:s,maskTextClass:o,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:m===!1?{}:m,maskAttributeFn:b,maskTextFn:_,maskInputFn:S,slimDOMOptions:E===!0||E==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:E==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:E===!1?{}:E,dataURLOptions:O,inlineImages:f,recordCanvas:p,preserveWhiteSpace:h,onSerialize:v,onIframeLoad:g,iframeLoadTimeout:T,onStylesheetLoad:C,stylesheetLoadTimeout:k,keepIframeSrcFn:w,newlyAddedElement:!1})}function so(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}function fn(t,e,r=document){const n={capture:!0,passive:!0};return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}const Tl=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let jR={map:{},getId(){return console.error(Tl),-1},getNode(){return console.error(Tl),null},removeNodeFromMap(){console.error(Tl)},has(){return console.error(Tl),!1},reset(){console.error(Tl)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(jR=new Proxy(jR,{get(t,e,r){return e==="map"&&console.error(Tl),Reflect.get(t,e,r)}}));function fp(t,e,r={}){let n=null,i=0;return function(...a){const s=Date.now();!i&&r.leading===!1&&(i=s);const o=e-(s-i),u=this;o<=0||o>e?(n&&(clearTimeout(n),n=null),i=s,t.apply(u,a)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{i=r.leading===!1?0:Date.now(),n=null,t.apply(u,a)},o))}}function NV(t,e,r,n,i=window){const a=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>NV(t,e,a||{},!0)}function FP(t,e,r){try{if(!(e in t))return()=>{};const n=t[e],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=i,()=>{t[e]=n}}catch{return()=>{}}}let X0=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(X0=()=>new Date().getTime());function BV(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:so([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollLeft])||so([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollLeft])||so([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:so([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollTop])||so([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollTop])||so([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollTop])||0}}function FV(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function jV(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ji(t,e,r,n,i){if(!t)return!1;const a=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!a)return!1;const s=Bl(e,r);if(!i){const c=n&&a.matches(n);return s(a)&&!c}const o=Ru(a,s);let u=-1;return o<0?!1:(n&&(u=Ru(a,Bl(null,n))),o>-1&&u<0?!0:o{let r=e[0];if(!(0 in e))throw new TypeError("1 argument is required");do if(this===r)return!0;while(r=r&&r.parentNode);return!1})}function zV(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function VV(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function rT(t){return!!so([t,"optionalAccess",e=>e.shadowRoot])}class A_e{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return wge(this.styleIDMap.get(e),()=>-1)}has(e){return this.styleIDMap.has(e)}add(e,r){if(this.has(e))return this.getId(e);let n;return r===void 0?n=this.id++:n=r,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 UV(t){let e=null;return so([t,"access",r=>r.getRootNode,"optionalCall",r=>r(),"optionalAccess",r=>r.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&t.getRootNode().host&&(e=t.getRootNode().host),e}function M_e(t){let e=t,r;for(;r=UV(e);)e=r;return e}function $_e(t){const e=t.ownerDocument;if(!e)return!1;const r=M_e(t);return e.contains(r)}function GV(t){const e=t.ownerDocument;return e?e.contains(t)||$_e(t):!1}let T1;function k_e(){if(T1)return T1;const t=window.document;let e=window.requestAnimationFrame;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r);const n=r.contentWindow;n&&n.requestAnimationFrame&&(e=n.requestAnimationFrame),t.head.removeChild(r)}catch{}return T1=e.bind(window)}function D_e(...t){return k_e()(...t)}var ze=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(ze||{}),Ve=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(Ve||{}),on=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(on||{}),ss=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(ss||{});function I_e(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}function HR(t){return"__ln"in t}class R_e{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 r=this.head;for(let n=0;ni.next])||null;return r}addNode(e){const r={value:e,previous:null,next:null};if(e.__ln=r,e.previousSibling&&HR(e.previousSibling)){const n=e.previousSibling.__ln.next;r.next=n,r.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(e.nextSibling&&HR(e.nextSibling)&&e.nextSibling.__ln.previous){const n=e.nextSibling.__ln.previous;r.previous=n,r.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(e){const r=e.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const zR=(t,e)=>`${t}@${e}`;class L_e{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const e=[],r=new Set,n=new R_e,i=u=>{let c=u,l=dp;for(;l===dp;)c=c&&c.nextSibling,l=c&&this.mirror.getId(c);return l},a=u=>{if(!u.parentNode||!GV(u))return;const c=Dh(u.parentNode)?this.mirror.getId(UV(u)):this.mirror.getId(u.parentNode),l=i(u);if(c===-1||l===-1)return n.addNode(u);const d=Fl(u,{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:f=>{zV(f,this.mirror)&&this.iframeManager.addIframe(f),VV(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),rT(u)&&this.shadowDomManager.addShadowRoot(u.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{this.iframeManager.attachIframe(f,p),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)}});d&&(e.push({parentId:c,nextId:l,node:d}),r.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const u of this.movedSet)VR(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||a(u);for(const u of this.addedSet)!UR(this.droppedSet,u)&&!VR(this.removes,u,this.mirror)||UR(this.movedSet,u)?a(u):this.droppedSet.add(u);let s=null;for(;n.length;){let u=null;if(s){const c=this.mirror.getId(s.value.parentNode),l=i(s.value);c!==-1&&l!==-1&&(u=s)}if(!u){let c=n.tail;for(;c;){const l=c;if(c=c.previous,l){const d=this.mirror.getId(l.value.parentNode);if(i(l.value)===-1)continue;if(d!==-1){u=l;break}else{const p=l.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const m=p.parentNode.host;if(this.mirror.getId(m)!==-1){u=l;break}}}}}}if(!u){for(;n.head;)n.removeNode(n.head.value);break}s=u.previous,n.removeNode(u.value),a(u.value)}const o={texts:this.texts.map(u=>({id:this.mirror.getId(u.node),value:u.value})).filter(u=>!r.has(u.id)).filter(u=>this.mirror.has(u.id)),attributes:this.attributes.map(u=>{const{attributes:c}=u;if(typeof c.style=="string"){const l=JSON.stringify(u.styleDiff),d=JSON.stringify(u._unchangedStyles);l.length!r.has(u.id)).filter(u=>this.mirror.has(u.id)),removes:this.removes,adds:e};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.adds.length||(this.texts=[],this.attributes=[],this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(O1(e.target,this.mirror))return;let r;try{r=document.implementation.createHTMLDocument()}catch{r=this.doc}switch(e.type){case"characterData":{const n=e.target.textContent;!ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:_d(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let i=e.attributeName,a=e.target.getAttribute(i);if(i==="value"){const o=LP(n),u=n.tagName;a=K0(n,u,o);const c=Ny({maskInputOptions:this.maskInputOptions,tagName:u,type:o}),l=_d(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);a=lp({isMasked:l,element:n,value:a,maskInputFn:this.maskInputFn})}if(ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||a===e.oldValue)return;let s=this.attributes.find(o=>o.node===e.target);if(n.tagName==="IFRAME"&&i==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)i="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s)),i==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!LV(n.tagName,i)&&(s.attributes[i]=RV(this.doc,yd(n.tagName),yd(i),a,n,this.maskAttributeFn),i==="style")){const o=r.createElement("span");e.oldValue&&o.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),l=n.style.getPropertyPriority(u);c!==o.style.getPropertyValue(u)||l!==o.style.getPropertyPriority(u)?l===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,l]:s._unchangedStyles[u]=[c,l]}for(const u of Array.from(o.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}break}case"childList":{if(ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const i=this.mirror.getId(n),a=Dh(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);ji(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||O1(n,this.mirror)||!P_e(n,this.mirror)||(this.addedSet.has(n)?(nT(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&i===-1||HV(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[zR(i,a)]?nT(this.movedSet,n):this.removes.push({parentId:a,id:i,isShadow:Dh(e.target)&&Ih(e.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(e,r)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(O1(e,this.mirror))return;this.movedSet.add(e);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[zR(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ji(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(n=>this.genAdds(n)),rT(e)&&e.shadowRoot.childNodes.forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=e[r]})}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 nT(t,e){t.delete(e),e.childNodes.forEach(r=>nT(t,r))}function VR(t,e,r){return t.length===0?!1:WV(t,e,r)}function WV(t,e,r){const{parentNode:n}=e;if(!n)return!1;const i=r.getId(n);return t.some(a=>a.id===i)?!0:WV(t,n,r)}function UR(t,e){return t.size===0?!1:YV(t,e)}function YV(t,e){const{parentNode:r}=e;return r?t.has(r)?!0:YV(t,r):!1}let Rh;function N_e(t){Rh=t}function B_e(){Rh=void 0}const tt=t=>Rh?(...r)=>{try{return t(...r)}catch(n){if(Rh&&Rh(n)===!0)return()=>{};throw n}}:t;function Aa(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}const jl=[];function qp(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function KV(t,e){const r=new L_e;jl.push(r),r.init(t);let n=window.MutationObserver||window.__rrMutationObserver;const i=Aa([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);i&&window[i]&&(n=window[i]);const a=new n(tt(s=>{t.onMutation&&t.onMutation(s)===!1||r.processMutations.bind(r)(s)}));return a.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function F_e({mousemoveCb:t,sampling:e,doc:r,mirror:n}){if(e.mousemove===!1)return()=>{};const i=typeof e.mousemove=="number"?e.mousemove:50,a=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let s=[],o;const u=fp(tt(d=>{const f=Date.now()-o;t(s.map(p=>(p.timeOffset-=f,p)),d),s=[],o=null}),a),c=tt(fp(tt(d=>{const f=qp(d),{clientX:p,clientY:m}=tT(d)?d.changedTouches[0]:d;o||(o=X0()),s.push({x:p,y:m,id:n.getId(f),timeOffset:X0()-o}),u(typeof DragEvent<"u"&&d instanceof DragEvent?Ve.Drag:d instanceof MouseEvent?Ve.MouseMove:Ve.TouchMove)}),i,{trailing:!1})),l=[fn("mousemove",c,r),fn("touchmove",c,r),fn("drag",c,r)];return tt(()=>{l.forEach(d=>d())})}function j_e({mouseInteractionCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const o=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const l=d=>f=>{const p=qp(f);if(ji(p,n,i,a,!0))return;let m=null,b=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=ss.Mouse;break;case"touch":m=ss.Touch;break;case"pen":m=ss.Pen;break}m===ss.Touch?on[d]===on.MouseDown?b="TouchStart":on[d]===on.MouseUp&&(b="TouchEnd"):ss.Pen}else tT(f)&&(m=ss.Touch);m!==null?(c=m,(b.startsWith("Touch")&&m===ss.Touch||b.startsWith("Mouse")&&m===ss.Mouse)&&(m=null)):on[d]===on.Click&&(m=c,c=null);const _=tT(f)?f.changedTouches[0]:f;if(!_)return;const S=r.getId(p),{clientX:E,clientY:O}=_;tt(t)({type:on[b],id:S,x:E,y:O,...m!==null&&{pointerType:m}})};return Object.keys(on).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1).forEach(d=>{let f=yd(d);const p=l(d);if(window.PointerEvent)switch(on[d]){case on.MouseDown:case on.MouseUp:f=f.replace("mouse","pointer");break;case on.TouchStart:case on.TouchEnd:return}u.push(fn(f,p,e))}),tt(()=>{u.forEach(d=>d())})}function qV({scrollCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){const o=tt(fp(tt(u=>{const c=qp(u);if(!c||ji(c,n,i,a,!0))return;const l=r.getId(c);if(c===e&&e.defaultView){const d=BV(e.defaultView);t({id:l,x:d.left,y:d.top})}else t({id:l,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return fn("scroll",o,e)}function H_e({viewportResizeCb:t},{win:e}){let r=-1,n=-1;const i=tt(fp(tt(()=>{const a=FV(),s=jV();(r!==a||n!==s)&&(t({width:Number(s),height:Number(a)}),r=a,n=s)}),200));return fn("resize",i,e)}const z_e=["INPUT","TEXTAREA","SELECT"],GR=new WeakMap;function V_e({inputCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,ignoreClass:s,ignoreSelector:o,maskInputOptions:u,maskInputFn:c,sampling:l,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:b}){function _(T){let C=qp(T);const k=T.isTrusted,w=C&&eT(C.tagName);if(w==="OPTION"&&(C=C.parentElement),!C||!w||z_e.indexOf(w)<0||ji(C,n,i,a,!0))return;const A=C;if(A.classList.contains(s)||o&&A.matches(o))return;const P=LP(C);let x=K0(A,w,P),$=!1;const D=Ny({maskInputOptions:u,tagName:w,type:P}),M=_d(C,f,m,p,b,D);(P==="radio"||P==="checkbox")&&($=C.checked),x=lp({isMasked:M,element:C,value:x,maskInputFn:c}),S(C,d?{text:x,isChecked:$,userTriggered:k}:{text:x,isChecked:$});const R=C.name;P==="radio"&&R&&$&&e.querySelectorAll(`input[type="radio"][name="${R}"]`).forEach(N=>{if(N!==C){const j=lp({isMasked:M,element:N,value:K0(N,w,P),maskInputFn:c});S(N,d?{text:j,isChecked:!$,userTriggered:!1}:{text:j,isChecked:!$})}})}function S(T,C){const k=GR.get(T);if(!k||k.text!==C.text||k.isChecked!==C.isChecked){GR.set(T,C);const w=r.getId(T);tt(t)({...C,id:w})}}const O=(l.input==="last"?["change"]:["input","change"]).map(T=>fn(T,tt(_),e)),h=e.defaultView;if(!h)return()=>{O.forEach(T=>T())};const v=h.Object.getOwnPropertyDescriptor(h.HTMLInputElement.prototype,"value"),g=[[h.HTMLInputElement.prototype,"value"],[h.HTMLInputElement.prototype,"checked"],[h.HTMLSelectElement.prototype,"value"],[h.HTMLTextAreaElement.prototype,"value"],[h.HTMLSelectElement.prototype,"selectedIndex"],[h.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&O.push(...g.map(T=>NV(T[0],T[1],{set(){tt(_)({target:this,isTrusted:!1})}},!1,h))),tt(()=>{O.forEach(T=>T())})}function J0(t){const e=[];function r(n,i){if(fg("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||fg("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||fg("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||fg("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){const s=Array.from(n.parentRule.cssRules).indexOf(n);i.unshift(s)}else if(n.parentStyleSheet){const s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);i.unshift(s)}return i}return r(t,e)}function oo(t,e,r){let n,i;return t?(t.ownerNode?n=e.getId(t.ownerNode):i=r.getId(t),{styleId:i,id:n}):{}}function U_e({styleSheetRuleCb:t,mirror:e,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};const i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:tt((l,d,f)=>{const[p,m]=f,{id:b,styleId:_}=oo(d,e,r.styleMirror);return(b&&b!==-1||_&&_!==-1)&&t({id:b,styleId:_,adds:[{rule:p,index:m}]}),l.apply(d,f)})});const a=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:tt((l,d,f)=>{const[p]=f,{id:m,styleId:b}=oo(d,e,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&t({id:m,styleId:b,removes:[{index:p}]}),l.apply(d,f)})});let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:tt((l,d,f)=>{const[p]=f,{id:m,styleId:b}=oo(d,e,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&t({id:m,styleId:b,replace:p}),l.apply(d,f)})}));let o;n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:tt((l,d,f)=>{const[p]=f,{id:m,styleId:b}=oo(d,e,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&t({id:m,styleId:b,replaceSync:p}),l.apply(d,f)})}));const u={};hg("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(hg("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),hg("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),hg("CSSSupportsRule")&&(u.CSSSupportsRule=n.CSSSupportsRule));const c={};return Object.entries(u).forEach(([l,d])=>{c[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(c[l].insertRule,{apply:tt((f,p,m)=>{const[b,_]=m,{id:S,styleId:E}=oo(p.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||E&&E!==-1)&&t({id:S,styleId:E,adds:[{rule:b,index:[...J0(p),_||0]}]}),f.apply(p,m)})}),d.prototype.deleteRule=new Proxy(c[l].deleteRule,{apply:tt((f,p,m)=>{const[b]=m,{id:_,styleId:S}=oo(p.parentStyleSheet,e,r.styleMirror);return(_&&_!==-1||S&&S!==-1)&&t({id:_,styleId:S,removes:[{index:[...J0(p),b]}]}),f.apply(p,m)})})}),tt(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=a,s&&(n.CSSStyleSheet.prototype.replace=s),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(u).forEach(([l,d])=>{d.prototype.insertRule=c[l].insertRule,d.prototype.deleteRule=c[l].deleteRule})})}function XV({mirror:t,stylesheetManager:e},r){let n=null;r.nodeName==="#document"?n=t.getId(r):n=t.getId(r.host);const i=r.nodeName==="#document"?Aa([r,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):Aa([r,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),a=Aa([i,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(Aa([i,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return n===null||n===-1||!i||!a?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return Aa([a,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const o=Aa([a,"access",u=>u.set,"optionalAccess",u=>u.call,"call",u=>u(this,s)]);if(n!==null&&n!==-1)try{e.adoptStyleSheets(s,n)}catch{}return o}}),tt(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function G_e({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:tt((o,u,c)=>{const[l,d,f]=c;if(r.has(l))return a.apply(u,[l,d,f]);const{id:p,styleId:m}=oo(Aa([u,"access",b=>b.parentRule,"optionalAccess",b=>b.parentStyleSheet]),e,n.styleMirror);return(p&&p!==-1||m&&m!==-1)&&t({id:p,styleId:m,set:{property:l,value:d,priority:f},index:J0(u.parentRule)}),o.apply(u,c)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:tt((o,u,c)=>{const[l]=c;if(r.has(l))return s.apply(u,[l]);const{id:d,styleId:f}=oo(Aa([u,"access",p=>p.parentRule,"optionalAccess",p=>p.parentStyleSheet]),e,n.styleMirror);return(d&&d!==-1||f&&f!==-1)&&t({id:d,styleId:f,remove:{property:l},index:J0(u.parentRule)}),o.apply(u,c)})}),tt(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}function W_e({mediaInteractionCb:t,blockClass:e,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:s}){const o=tt(c=>fp(tt(l=>{const d=qp(l);if(!d||ji(d,e,r,n,!0))return;const{currentTime:f,volume:p,muted:m,playbackRate:b}=d;t({type:c,id:i.getId(d),currentTime:f,volume:p,muted:m,playbackRate:b})}),a.media||500)),u=[fn("play",o(0),s),fn("pause",o(1),s),fn("seeked",o(2),s),fn("volumechange",o(3),s),fn("ratechange",o(4),s)];return tt(()=>{u.forEach(c=>c())})}function Y_e({fontCb:t,doc:e}){const r=e.defaultView;if(!r)return()=>{};const n=[],i=new WeakMap,a=r.FontFace;r.FontFace=function(u,c,l){const d=new a(u,c,l);return i.set(d,{family:u,buffer:typeof c!="string",descriptors:l,fontSource:typeof c=="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))}),d};const s=FP(e.fonts,"add",function(o){return function(u){return setTimeout(tt(()=>{const c=i.get(u);c&&(t(c),i.delete(u))}),0),o.apply(this,[u])}});return n.push(()=>{r.FontFace=a}),n.push(s),tt(()=>{n.forEach(o=>o())})}function K_e(t){const{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:s}=t;let o=!0;const u=tt(()=>{const c=e.getSelection();if(!c||o&&Aa([c,"optionalAccess",f=>f.isCollapsed]))return;o=c.isCollapsed||!1;const l=[],d=c.rangeCount||0;for(let f=0;f{}:FP(r.customElements,"define",function(i){return function(a,s,o){try{e({define:{name:a}})}catch{}return i.apply(this,[a,s,o])}})}function X_e(t,e={}){const r=t.doc.defaultView;if(!r)return()=>{};const n=KV(t,t.doc),i=F_e(t),a=j_e(t),s=qV(t),o=H_e(t,{win:r}),u=V_e(t),c=W_e(t),l=U_e(t,{win:r}),d=XV(t,t.doc),f=G_e(t,{win:r}),p=t.collectFonts?Y_e(t):()=>{},m=K_e(t),b=q_e(t),_=[];for(const S of t.plugins)_.push(S.observer(S.callback,r,S.options));return tt(()=>{jl.forEach(S=>S.reset()),n.disconnect(),i(),a(),s(),o(),u(),c(),l(),d(),f(),p(),m(),b(),_.forEach(S=>S())})}function fg(t){return typeof window[t]<"u"}function hg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class iT{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,r,n,i){const a=n||this.getIdToRemoteIdMap(e),s=i||this.getRemoteIdToIdMap(e);let o=a.get(r);return o||(o=this.generateIdFn(),a.set(r,o),s.set(o,r)),o}getIds(e,r){const n=this.getIdToRemoteIdMap(e),i=this.getRemoteIdToIdMap(e);return r.map(a=>this.getId(e,a,n,i))}getRemoteId(e,r,n){const i=n||this.getRemoteIdToIdMap(e);if(typeof r!="number")return r;const a=i.get(r);return a||-1}getRemoteIds(e,r){const n=this.getRemoteIdToIdMap(e);return r.map(i=>this.getRemoteId(e,i,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let r=this.iframeIdToRemoteIdMap.get(e);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(e,r)),r}getRemoteIdToIdMap(e){let r=this.iframeRemoteIdToIdMap.get(e);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(e,r)),r}}function WR(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}class J_e{constructor(){this.crossOriginIframeMirror=new iT(NP),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Q_e{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iT(NP),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iT(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,r){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),WR([this,"access",n=>n.loadListener,"optionalCall",n=>n(e)]),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const r=e;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!e.source)return;const i=this.crossOriginIframeMap.get(e.source);if(!i)return;const a=this.transformCrossOriginEvent(i,r.data.event);a&&this.wrappedEmit(a,r.data.isCheckout)}transformCrossOriginEvent(e,r){switch(r.type){case ze.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(r.data.node,e);const n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:ze.IncrementalSnapshot,data:{source:Ve.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case ze.Meta:case ze.Load:case ze.DomContentLoaded:return!1;case ze.Plugin:return r;case ze.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case ze.IncrementalSnapshot:switch(r.data.source){case Ve.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,e);const i=this.crossOriginIframeRootIdMap.get(e);i&&this.patchRootIdOnNode(n.node,i)}),r.data.removes.forEach(n=>{this.replaceIds(n,e,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,e,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case Ve.Drag:case Ve.TouchMove:case Ve.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case Ve.ViewportResize:return!1;case Ve.MediaInteraction:case Ve.MouseInteraction:case Ve.Scroll:case Ve.CanvasMutation:case Ve.Input:return this.replaceIds(r.data,e,["id"]),r;case Ve.StyleSheetRule:case Ve.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case Ve.Font:return r;case Ve.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,e,["start","end"])}),r;case Ve.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),WR([r,"access",n=>n.data,"access",n=>n.styles,"optionalAccess",n=>n.forEach,"call",n=>n(i=>{this.replaceStyleIds(i,e,["styleId"])})]),r}}return!1}replace(e,r,n,i){for(const a of i)!Array.isArray(r[a])&&typeof r[a]!="number"||(Array.isArray(r[a])?r[a]=e.getIds(n,r[a]):r[a]=e.getId(n,r[a]));return r}replaceIds(e,r,n){return this.replace(this.crossOriginIframeMirror,e,r,n)}replaceStyleIds(e,r,n){return this.replace(this.crossOriginIframeStyleMirror,e,r,n)}replaceIdOnNode(e,r){this.replaceIds(e,r,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(e,r){e.type!==Or.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class Z_e{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class ewe{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,r){if(!Ih(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=KV({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(qV({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(XV({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,r){const n=this;this.restoreHandlers.push(FP(e.prototype,"attachShadow",function(i){return function(a){const s=i.call(this,a);return this.shadowRoot&&GV(this)&&n.addShadowRoot(this.shadowRoot,r),s}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class YR{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class twe{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new A_e,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,r){if(e.length===0)return;const n={id:r,styleIds:[]},i=[];for(const a of e){let s;this.styleMirror.has(a)?s=this.styleMirror.getId(a):(s=this.styleMirror.add(a),i.push({styleId:s,rules:Array.from(a.rules||CSSRule,(o,u)=>({rule:DV(o),index:u}))})),n.styleIds.push(s)}i.length>0&&(n.styles=i),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class rwe{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){D_e(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(e,r){const n=this.nodeMap.get(e);return n&&Array.from(n).some(i=>i!==r)}add(e,r){this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(r))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}function yr(t){const e=t;return e.timestamp=X0(),e}let Q0;const Ni=n_e();function Mo(t={}){const{emit:e,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:i="rr-block",blockSelector:a=null,unblockSelector:s=null,ignoreClass:o="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:b,maskInputOptions:_,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:O,maskTextFn:h,packFn:v,sampling:g={},dataURLOptions:T={},mousemoveWait:C,recordCanvas:k=!1,recordCrossOriginIframes:w=!1,recordAfter:A=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:x=!1,inlineImages:$=!1,plugins:D,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:R=new Set([]),errorHandler:N,onMutation:j,getCanvasManager:z}=t;N_e(N);const V=w?window.parent===window:!0;let J=!1;if(!V)try{window.parent.document&&(J=!1)}catch{J=!0}if(V&&!e)throw new Error("emit function is required");C!==void 0&&g.mousemove===void 0&&(g.mousemove=C),Ni.reset();const re=b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},Y=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};C_e();let U,K=0;const X=De=>{for(const Cr of D||[])Cr.eventProcessor&&(De=Cr.eventProcessor(De));return v&&!J&&(De=v(De)),De},se=(De,Cr)=>{if(yv([jl,"access",He=>He[0],"optionalAccess",He=>He.isFrozen,"call",He=>He()])&&De.type!==ze.FullSnapshot&&!(De.type===ze.IncrementalSnapshot&&De.data.source===Ve.Mutation)&&jl.forEach(He=>He.unfreeze()),V)yv([e,"optionalCall",He=>He(X(De),Cr)]);else if(J){const He={type:"rrweb",event:X(De),origin:window.location.origin,isCheckout:Cr};window.parent.postMessage(He,"*")}if(De.type===ze.FullSnapshot)U=De,K=0;else if(De.type===ze.IncrementalSnapshot){if(De.data.source===Ve.Mutation&&De.data.isAttachIframe)return;K++;const He=n&&K>=n,Yr=r&&De.timestamp-U.timestamp>r;(He||Yr)&&nu(!0)}},Ae=De=>{se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.Mutation,...De}}))},qe=De=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.Scroll,...De}})),yt=De=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.CanvasMutation,...De}})),sr=De=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.AdoptedStyleSheet,...De}})),Vr=new twe({mutationCb:Ae,adoptedStyleSheetCb:sr}),wn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new J_e:new Q_e({mirror:Ni,mutationCb:Ae,stylesheetManager:Vr,recordCrossOriginIframes:w,wrappedEmit:se});for(const De of D||[])De.getMirror&&De.getMirror({nodeMirror:Ni,crossOriginIframeMirror:wn.crossOriginIframeMirror,crossOriginIframeStyleMirror:wn.crossOriginIframeStyleMirror});const da=new rwe,Qa=iwe(z,{mirror:Ni,win:window,mutationCb:De=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.CanvasMutation,...De}})),recordCanvas:k,blockClass:i,blockSelector:a,unblockSelector:s,sampling:g.canvas,dataURLOptions:T}),fa=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Z_e:new ewe({mutationCb:Ae,scrollCb:qe,bypassOptions:{onMutation:j,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:re,dataURLOptions:T,maskAttributeFn:E,maskTextFn:h,maskInputFn:O,recordCanvas:k,inlineImages:$,sampling:g,slimDOMOptions:Y,iframeManager:wn,stylesheetManager:Vr,canvasManager:Qa,keepIframeSrcFn:M,processedNodeManager:da},mirror:Ni}),nu=(De=!1)=>{se(yr({type:ze.Meta,data:{href:window.location.href,width:jV(),height:FV()}}),De),Vr.reset(),fa.init(),jl.forEach(He=>He.lock());const Cr=x_e(document,{mirror:Ni,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:re,maskAttributeFn:E,maskInputFn:O,maskTextFn:h,slimDOM:Y,dataURLOptions:T,recordCanvas:k,inlineImages:$,onSerialize:He=>{zV(He,Ni)&&wn.addIframe(He),VV(He,Ni)&&Vr.trackLinkElement(He),rT(He)&&fa.addShadowRoot(He.shadowRoot,document)},onIframeLoad:(He,Yr)=>{wn.attachIframe(He,Yr),fa.observeAttachShadow(He)},onStylesheetLoad:(He,Yr)=>{Vr.attachLinkElement(He,Yr)},keepIframeSrcFn:M});if(!Cr)return console.warn("Failed to snapshot the document");se(yr({type:ze.FullSnapshot,data:{node:Cr,initialOffset:BV(window)}})),jl.forEach(He=>He.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Vr.adoptStyleSheets(document.adoptedStyleSheets,Ni.getId(document))};Q0=nu;try{const De=[],Cr=Yr=>tt(X_e)({onMutation:j,mutationCb:Ae,mousemoveCb:(et,Ar)=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ar,positions:et}})),mouseInteractionCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.MouseInteraction,...et}})),scrollCb:qe,viewportResizeCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.ViewportResize,...et}})),inputCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.Input,...et}})),mediaInteractionCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.MediaInteraction,...et}})),styleSheetRuleCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.StyleSheetRule,...et}})),styleDeclarationCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.StyleDeclaration,...et}})),canvasMutationCb:yt,fontCb:et=>se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.Font,...et}})),selectionCb:et=>{se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.Selection,...et}}))},customElementCb:et=>{se(yr({type:ze.IncrementalSnapshot,data:{source:Ve.CustomElement,...et}}))},blockClass:i,ignoreClass:o,ignoreSelector:u,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:re,inlineStylesheet:m,sampling:g,recordCanvas:k,inlineImages:$,userTriggeredOnInput:P,collectFonts:x,doc:Yr,maskAttributeFn:E,maskInputFn:O,maskTextFn:h,keepIframeSrcFn:M,blockSelector:a,unblockSelector:s,slimDOMOptions:Y,dataURLOptions:T,mirror:Ni,iframeManager:wn,stylesheetManager:Vr,shadowDomManager:fa,processedNodeManager:da,canvasManager:Qa,ignoreCSSAttributes:R,plugins:yv([D,"optionalAccess",et=>et.filter,"call",et=>et(Ar=>Ar.observer),"optionalAccess",et=>et.map,"call",et=>et(Ar=>({observer:Ar.observer,options:Ar.options,callback:zs=>se(yr({type:ze.Plugin,data:{plugin:Ar.name,payload:zs}}))}))])||[]},{});wn.addLoadListener(Yr=>{try{De.push(Cr(Yr.contentDocument))}catch(et){console.warn(et)}});const He=()=>{nu(),De.push(Cr(document))};return document.readyState==="interactive"||document.readyState==="complete"?He():(De.push(fn("DOMContentLoaded",()=>{se(yr({type:ze.DomContentLoaded,data:{}})),A==="DOMContentLoaded"&&He()})),De.push(fn("load",()=>{se(yr({type:ze.Load,data:{}})),A==="load"&&He()},window))),()=>{De.forEach(Yr=>Yr()),da.destroy(),Q0=void 0,B_e()}}catch(De){console.warn(De)}}function nwe(t){if(!Q0)throw new Error("please take full snapshot after start recording");Q0(t)}Mo.mirror=Ni;Mo.takeFullSnapshot=nwe;function iwe(t,e){try{return t?t(e):new YR}catch{return console.warn("Unable to initialize CanvasManager"),new YR}}const awe=3,swe=5;function jP(t){return t>9999999999?t:t*1e3}function E1(t){return t>9999999999?t/1e3:t}function Xp(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:ze.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ca(e,10,1e3)}}),e.category==="console")))}const owe="button,a";function JV(t){return t.closest(owe)||t}function QV(t){const e=ZV(t);return!e||!(e instanceof Element)?e:JV(e)}function ZV(t){return uwe(t)?t.target:t}function uwe(t){return typeof t=="object"&&!!t&&"target"in t}let uo;function cwe(t){return uo||(uo=[],lwe()),uo.push(t),()=>{const e=uo?uo.indexOf(t):-1;e>-1&&uo.splice(e,1)}}function lwe(){Lr(At,"open",function(t){return function(...e){if(uo)try{uo.forEach(r=>r())}catch{}return t.apply(At,e)}})}function dwe(t,e,r){t.handleClick(e,r)}class fwe{constructor(e,r,n=Xp){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=r.timeout/1e3,this._threshold=r.threshold/1e3,this._scollTimeout=r.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=r.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){const e=cwe(()=>{this._lastMutation=KR()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,r){if(pwe(r,this._ignoreSelector)||!mwe(e))return;const n={timestamp:E1(e.timestamp),clickBreadcrumb:e,clickCount:0,node:r};this._clicks.some(i=>i.node===n.node&&Math.abs(i.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=E1(e)}registerScroll(e=Date.now()){this._lastScroll=E1(e)}registerClick(e){const r=JV(e);this._handleMultiClick(r)}_handleMultiClick(e){this._getClicks(e).forEach(r=>{r.clickCount++})}_getClicks(e){return this._clicks.filter(r=>r.node===e)}_checkClicks(){const e=[],r=KR();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<=r&&e.push(n)});for(const n of e){const i=this._clicks.indexOf(n);i>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){const r=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scollTimeout,i=e.mutationAfter&&e.mutationAfter<=this._threshold,a=!n&&!i,{clickCount:s,clickBreadcrumb:o}=e;if(a){const u=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,c=u1){const u={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:At.location.href,route:r.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(r,u)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const hwe=["A","BUTTON","INPUT"];function pwe(t,e){return!!(!hwe.includes(t.tagName)||t.tagName==="INPUT"&&!["submit","button"].includes(t.getAttribute("type")||"")||t.tagName==="A"&&(t.hasAttribute("download")||t.hasAttribute("target")&&t.getAttribute("target")!=="_self")||e&&t.matches(e))}function mwe(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function KR(){return Date.now()/1e3}function gwe(t,e){try{if(!vwe(e))return;const{source:r}=e.data;if(r===Ve.Mutation&&t.registerMutation(e.timestamp),r===Ve.Scroll&&t.registerScroll(e.timestamp),bwe(e)){const{type:n,id:i}=e.data,a=Mo.mirror.getNode(i);a instanceof HTMLElement&&n===on.Click&&t.registerClick(a)}}catch{}}function vwe(t){return t.type===awe}function bwe(t){return t.data.source===Ve.MouseInteraction}function Ia(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var Z0;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(Z0||(Z0={}));const ywe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function _we(t){const e={};for(const r in t)if(ywe.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),e[n]=t[r]}return e}const wwe=t=>e=>{if(!t.isEnabled())return;const r=Swe(e);if(!r)return;const n=e.name==="click",i=n?e.event:void 0;n&&t.clickDetector&&i&&i.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&dwe(t.clickDetector,r,QV(e.event)),Xp(t,r)};function eU(t,e){const r=Mo.mirror.getId(t),n=r&&Mo.mirror.getNode(r),i=n&&Mo.mirror.getMeta(n),a=i&&Twe(i)?i:null;return{message:e,data:a?{nodeId:r,node:{id:r,tagName:a.tagName,textContent:Array.from(a.childNodes).map(s=>s.type===Z0.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:_we(a.attributes)}}:{}}}function Swe(t){const{target:e,message:r}=Owe(t);return Ia({category:`ui.${t.name}`,...eU(e,r)})}function Owe(t){const e=t.name==="click";let r,n=null;try{n=e?QV(t.event):ZV(t.event),r=dc(n,{maxStringLength:200})||""}catch{r=""}return{target:n,message:r}}function Twe(t){return t.type===Z0.Element}function Ewe(t,e){if(!t.isEnabled())return;t.updateUserActivity();const r=xwe(e);r&&Xp(t,r)}function xwe(t){const{metaKey:e,shiftKey:r,ctrlKey:n,altKey:i,key:a,target:s}=t;if(!s||Pwe(s)||!a)return null;const o=e||n||i,u=a.length===1;if(!o&&u)return null;const c=dc(s,{maxStringLength:200})||"",l=eU(s,c);return Ia({category:"ui.keyDown",message:c,data:{...l.data,metaKey:e,shiftKey:r,ctrlKey:n,altKey:i,key:a}})}function Pwe(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const qR={resource:kwe,paint:Mwe,navigation:$we};function Cwe(t){return t.map(Awe).filter(Boolean)}function Awe(t){return qR[t.entryType]?qR[t.entryType](t):null}function wd(t){return((bn||At.performance.timeOrigin)+t)/1e3}function Mwe(t){const{duration:e,entryType:r,name:n,startTime:i}=t,a=wd(i);return{type:r,name:n,start:a,end:a+e,data:void 0}}function $we(t){const{entryType:e,name:r,decodedBodySize:n,duration:i,domComplete:a,encodedBodySize:s,domContentLoadedEventStart:o,domContentLoadedEventEnd:u,domInteractive:c,loadEventStart:l,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:b}=t;return i===0?null:{type:`${e}.${b}`,start:wd(p),end:wd(a),name:r,data:{size:m,decodedBodySize:n,encodedBodySize:s,duration:i,domInteractive:c,domContentLoadedEventStart:o,domContentLoadedEventEnd:u,loadEventStart:l,loadEventEnd:d,domComplete:a,redirectCount:f}}}function kwe(t){const{entryType:e,initiatorType:r,name:n,responseEnd:i,startTime:a,decodedBodySize:s,encodedBodySize:o,responseStatus:u,transferSize:c}=t;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${e}.${r}`,start:wd(a),end:wd(i),name:n,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:o}}}function Dwe(t){const e=t.entries,r=e[e.length-1],n=r?r.element:void 0,i=t.value,a=wd(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:i,size:i,nodeId:n?Mo.mirror.getId(n):void 0}}}function Iwe(t){function e(i){t.performanceEntries.includes(i)||t.performanceEntries.push(i)}function r({entries:i}){i.forEach(e)}const n=[];return["navigation","paint","resource"].forEach(i=>{n.push(Ry(i,r))}),n.push(Yz(({metric:i})=>{t.replayPerformanceEntries.push(Dwe(i))})),()=>{n.forEach(i=>i())}}const Et=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Rwe='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<>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,a=0,s=new n(r);a>h]=l}else for(o=new n(i),a=0;a>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(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},A=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},_=function(r,e){for(var i=[],a=0;ad&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<e))break;p+=m-(1<>=y;p>0;){var M=o[a].s;g[M]=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(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,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+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+(X15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B255){A(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;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=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,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s>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(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),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(a[j+Q]==a[j+Q-W]){for(var $=0;$Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;Pnt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,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 a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),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(a),32768),this.s.z=n.length-a+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}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.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)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}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}(),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(r){for(var e=new t(n.length),i=0;i>1)),o=0,f=function(t){s[o++]=t};for(i=0;is.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}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(let r=0,e=t.length;r{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});';function Lwe(){const t=new Blob([Rwe]);return URL.createObjectURL(t)}function ln(t,e){Et&&(W.info(t),e&&tU(t))}function ql(t,e){Et&&(W.info(t),e&&setTimeout(()=>{tU(t)},0))}function tU(t){Ls({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class HP extends Error{constructor(){super(`Event buffer exceeded maximum size of ${RP}.`)}}class rU{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){const r=JSON.stringify(e).length;if(this._totalSize+=r,this._totalSize>RP)throw new HP;this.events.push(e)}finish(){return new Promise(e=>{const r=this.events;this.clear(),e(JSON.stringify(r))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const e=this.events.map(r=>r.timestamp).sort()[0];return e?jP(e):null}}class Nwe{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((e,r)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():r()},{once:!0}),this._worker.addEventListener("error",n=>{r(n)},{once:!0})}),this._ensureReadyPromise)}destroy(){ln("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(e,r){const n=this._getAndIncrementId();return new Promise((i,a)=>{const s=({data:o})=>{const u=o;if(u.method===e&&u.id===n){if(this._worker.removeEventListener("message",s),!u.success){Et&&W.error("[Replay]",u.response),a(new Error("Error in compression worker"));return}i(u.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:n,method:e,arg:r})})}_getAndIncrementId(){return this._id++}}class Bwe{constructor(e){this._worker=new Nwe(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){const r=jP(e.timestamp);(!this._earliestTimestamp||rRP?Promise.reject(new HP):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Et&&W.warn('[Replay] 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 Fwe{constructor(e){this._fallback=new rU,this._compression=new Bwe(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}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}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{ln("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:e,hasCheckout:r}=this._fallback,n=[];for(const i of e)n.push(this._compression.addEvent(i));this._compression.hasCheckout=r,this._used=this._compression;try{await Promise.all(n)}catch(i){Et&&W.warn("[Replay] Failed to add events when switching buffers.",i)}}}function jwe({useCompression:t,workerUrl:e}){if(t&&window.Worker){const r=Hwe(e);if(r)return r}return ln("[Replay] Using simple buffer"),new rU}function Hwe(t){try{const e=t||zwe();if(!e)return;ln(`[Replay] Using compression worker${t?` from ${t}`:""}`);const r=new Worker(e);return new Fwe(r)}catch{ln("[Replay] Failed to create compression worker")}}function zwe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Lwe():""}function zP(){try{return"sessionStorage"in At&&!!At.sessionStorage}catch{return!1}}function Vwe(t){Uwe(),t.session=void 0}function Uwe(){if(zP())try{At.sessionStorage.removeItem(DP)}catch{}}function nU(t){return t===void 0?!1:Math.random()t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(ln(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function qwe(t,e){try{if(typeof e=="function"&&Ywe(t))return e(t)}catch(r){return Et&&W.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",r),null}return t}function GP(t){return!t.type}function sT(t){return t.type==="transaction"}function Xwe(t){return t.type==="replay_event"}function JR(t){return t.type==="feedback"}function cU(t){const e=Zwe();return(r,n)=>{if(!t.isEnabled()||!GP(r)&&!sT(r))return;const i=n&&n.statusCode;if(!(e&&(!i||i<200||i>=300))){if(sT(r)){Jwe(t,r);return}Qwe(t,r)}}}function Jwe(t,e){const r=t.getContext();e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id&&r.traceIds.size<100&&r.traceIds.add(e.contexts.trace.trace_id)}function Qwe(t,e){const r=t.getContext();if(e.event_id&&r.errorIds.size<100&&r.errorIds.add(e.event_id),t.recordingMode!=="buffer"||!e.tags||!e.tags.replayId)return;const{beforeErrorSampling:n}=t.getOptions();typeof n=="function"&&!n(e)||setTimeout(()=>{t.sendBufferedReplayOrFlush()})}function Zwe(){const t=Xe();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function e1e(t){return e=>{!t.isEnabled()||!GP(e)||t1e(t,e)}}function t1e(t,e){const r=e.exception&&e.exception.values&&e.exception.values[0].value;if(typeof r=="string"&&(r.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||r.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const n=Ia({category:"replay.hydrate-error"});Xp(t,n)}}function r1e(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function n1e(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:ze.Custom,timestamp:e.timestamp*1e3,data:{timestamp:e.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function i1e(t,e){return t.recordingMode!=="buffer"||e.message===IP||!e.exception||e.type?!1:nU(t.getOptions().errorSampleRate)}function a1e(t,e=!1){const r=e?cU(t):void 0;return Object.assign((n,i)=>t.isEnabled()?Xwe(n)?(delete n.breadcrumbs,n):!GP(n)&&!sT(n)&&!JR(n)||!t.checkAndHandleExpiredSession()?n:JR(n)?(t.flush(),n.contexts.feedback.replay_id=t.getSessionId(),n1e(t,n),n):r1e(n,i)&&!t.getOptions()._experiments.captureExceptions?(Et&&W.log("[Replay] Ignoring error from rrweb internals",n),null):((i1e(t,n)||t.recordingMode==="session")&&(n.tags={...n.tags,replayId:t.getSessionId()}),r&&r(n,{statusCode:200}),n):n,{id:"Replay"})}function By(t,e){return e.map(({type:r,start:n,end:i,name:a,data:s})=>{const o=t.throttledAddEvent({type:ze.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:r,description:a,startTimestamp:n,endTimestamp:i,data:s}}});return typeof o=="string"?Promise.resolve(null):o})}function s1e(t){const{from:e,to:r}=t,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:e}}}function o1e(t){return e=>{if(!t.isEnabled())return;const r=s1e(e);r!==null&&(t.getContext().urls.push(r.name),t.triggerUserActivity(),t.addUpdate(()=>(By(t,[r]),!1)))}}function u1e(t,e){return Et&&t.getOptions()._experiments.traceInternals?!1:Zve(e,Xe())}function Fy(t,e){t.isEnabled()&&e!==null&&(u1e(t,e.name)||t.addUpdate(()=>(By(t,[e]),!0)))}function c1e(t){const{startTimestamp:e,endTimestamp:r,fetchData:n,response:i}=t;if(!r)return null;const{method:a,url:s}=n;return{type:"resource.fetch",start:e/1e3,end:r/1e3,name:s,data:{method:a,statusCode:i?i.status:void 0}}}function l1e(t){return e=>{if(!t.isEnabled())return;const r=c1e(e);Fy(t,r)}}function d1e(t){const{startTimestamp:e,endTimestamp:r,xhr:n}=t,i=n[vo];if(!e||!r||!i)return null;const{method:a,url:s,status_code:o}=i;return s===void 0?null:{type:"resource.xhr",name:s,start:e/1e3,end:r/1e3,data:{method:a,statusCode:o}}}function f1e(t){return e=>{if(!t.isEnabled())return;const r=d1e(e);Fy(t,r)}}function jy(t,e){if(t)try{if(typeof t=="string")return e.encode(t).length;if(t instanceof URLSearchParams)return e.encode(t.toString()).length;if(t instanceof FormData){const r=hU(t);return e.encode(r).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function lU(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function dU(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[hU(t)];if(!t)return[void 0]}catch{return Et&&W.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Et&&W.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function eb(t,e){if(!t)return{headers:{},size:void 0,_meta:{warnings:[e]}};const r={...t._meta},n=r.warnings||[];return r.warnings=[...n,e],t._meta=r,t}function fU(t,e){if(!e)return null;const{startTimestamp:r,endTimestamp:n,url:i,method:a,statusCode:s,request:o,response:u}=e;return{type:t,start:r/1e3,end:n/1e3,name:i,data:Xr({method:a,statusCode:s,request:o,response:u})}}function hp(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function $o(t,e,r){if(!e&&Object.keys(t).length===0)return;if(!e)return{headers:t};if(!r)return{headers:t,size:e};const n={headers:t,size:e},{body:i,warnings:a}=h1e(r);return n.body=i,a&&a.length>0&&(n._meta={warnings:a}),n}function oT(t,e){return Object.keys(t).reduce((r,n)=>{const i=n.toLowerCase();return e.includes(i)&&t[n]&&(r[i]=t[n]),r},{})}function hU(t){return new URLSearchParams(t).toString()}function h1e(t){if(!t||typeof t!="string")return{body:t};const e=t.length>LR,r=p1e(t);if(e){const n=t.slice(0,LR);return r?{body:n,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${n}…`,warnings:["TEXT_TRUNCATED"]}}if(r)try{return{body:JSON.parse(t)}}catch{}return{body:t}}function p1e(t){const e=t[0],r=t[t.length-1];return e==="["&&r==="]"||e==="{"&&r==="}"}function tb(t,e){const r=m1e(t);return jd(r,e)}function m1e(t,e=At.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(At.location.origin))return t;const r=new URL(t,e);if(r.origin!==new URL(e).origin)return t;const n=r.href;return!t.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}async function g1e(t,e,r){try{const n=await b1e(t,e,r),i=fU("resource.fetch",n);Fy(r.replay,i)}catch(n){Et&&W.error("[Replay] Failed to capture fetch breadcrumb",n)}}function v1e(t,e,r){const{input:n,response:i}=e,a=n?pU(n):void 0,s=jy(a,r.textEncoder),o=i?lU(i.headers.get("content-length")):void 0;s!==void 0&&(t.data.request_body_size=s),o!==void 0&&(t.data.response_body_size=o)}async function b1e(t,e,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n}=e,{url:s,method:o,status_code:u=0,request_body_size:c,response_body_size:l}=t.data,d=tb(s,r.networkDetailAllowUrls)&&!tb(s,r.networkDetailDenyUrls),f=d?y1e(r,e.input,c):hp(c),p=await _1e(d,r,e.response,l);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:u,request:f,response:p}}function y1e({networkCaptureBodies:t,networkRequestHeaders:e},r,n){const i=r?O1e(r,e):{};if(!t)return $o(i,n,void 0);const a=pU(r),[s,o]=dU(a),u=$o(i,n,s);return o?eb(u,o):u}async function _1e(t,{networkCaptureBodies:e,textEncoder:r,networkResponseHeaders:n},i,a){if(!t&&a!==void 0)return hp(a);const s=i?mU(i.headers,n):{};if(!i||!e&&a!==void 0)return $o(s,a,void 0);const[o,u]=await S1e(i),c=w1e(o,{networkCaptureBodies:e,textEncoder:r,responseBodySize:a,captureDetails:t,headers:s});return u?eb(c,u):c}function w1e(t,{networkCaptureBodies:e,textEncoder:r,responseBodySize:n,captureDetails:i,headers:a}){try{const s=t&&t.length&&n===void 0?jy(t,r):n;return i?e?$o(a,s,t):$o(a,s,void 0):hp(s)}catch(s){return Et&&W.warn("[Replay] Failed to serialize response body",s),$o(a,n,void 0)}}async function S1e(t){const e=T1e(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await E1e(e)]}catch(r){return Et&&W.warn("[Replay] Failed to get text body from response",r),[void 0,"BODY_PARSE_ERROR"]}}function pU(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function mU(t,e){const r={};return e.forEach(n=>{t.get(n)&&(r[n]=t.get(n))}),r}function O1e(t,e){return t.length===1&&typeof t[0]!="string"?QR(t[0],e):t.length===2?QR(t[1],e):{}}function QR(t,e){if(!t)return{};const r=t.headers;return r?r instanceof Headers?mU(r,e):Array.isArray(r)?{}:oT(r,e):{}}function T1e(t){try{return t.clone()}catch(e){Et&&W.warn("[Replay] Failed to clone response body",e)}}function E1e(t){return new Promise((e,r)=>{const n=setTimeout(()=>r(new Error("Timeout while trying to read response body")),500);x1e(t).then(i=>e(i),i=>r(i)).finally(()=>clearTimeout(n))})}async function x1e(t){return await t.text()}async function P1e(t,e,r){try{const n=A1e(t,e,r),i=fU("resource.xhr",n);Fy(r.replay,i)}catch(n){Et&&W.error("[Replay] Failed to capture xhr breadcrumb",n)}}function C1e(t,e,r){const{xhr:n,input:i}=e;if(!n)return;const a=jy(i,r.textEncoder),s=n.getResponseHeader("content-length")?lU(n.getResponseHeader("content-length")):D1e(n.response,n.responseType,r.textEncoder);a!==void 0&&(t.data.request_body_size=a),s!==void 0&&(t.data.response_body_size=s)}function A1e(t,e,r){const n=Date.now(),{startTimestamp:i=n,endTimestamp:a=n,input:s,xhr:o}=e,{url:u,method:c,status_code:l=0,request_body_size:d,response_body_size:f}=t.data;if(!u)return null;if(!o||!tb(u,r.networkDetailAllowUrls)||tb(u,r.networkDetailDenyUrls)){const g=hp(d),T=hp(f);return{startTimestamp:i,endTimestamp:a,url:u,method:c,statusCode:l,request:g,response:T}}const p=o[vo],m=p?oT(p.request_headers,r.networkRequestHeaders):{},b=oT(M1e(o),r.networkResponseHeaders),[_,S]=r.networkCaptureBodies?dU(s):[void 0],[E,O]=r.networkCaptureBodies?$1e(o):[void 0],h=$o(m,d,_),v=$o(b,f,E);return{startTimestamp:i,endTimestamp:a,url:u,method:c,statusCode:l,request:S?eb(h,S):h,response:O?eb(v,O):v}}function M1e(t){const e=t.getAllResponseHeaders();return e?e.split(`\r `).reduce((r,n)=>{const[i,a]=n.split(": ");return r[i.toLowerCase()]=a,r},{}):{}}function $1e(t){const e=[];try{return[t.responseText]}catch(r){e.push(r)}try{return k1e(t.response,t.responseType)}catch(r){e.push(r)}return Et&&W.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function k1e(t,e){try{if(typeof t=="string")return[t];if(t instanceof Document)return[t.body.outerHTML];if(e==="json"&&t&&typeof t=="object")return[JSON.stringify(t)];if(!t)return[void 0]}catch{return Et&&W.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Et&&W.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function D1e(t,e,r){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return jy(n,r)}catch{return}}function I1e(t){const e=Xe();try{const r=new TextEncoder,{networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o}=t.getOptions(),u={replay:t,textEncoder:r,networkDetailAllowUrls:n,networkDetailDenyUrls:i,networkCaptureBodies:a,networkRequestHeaders:s,networkResponseHeaders:o};e&&e.on?e.on("beforeAddBreadcrumb",(c,l)=>R1e(u,c,l)):(Xx(l1e(t)),Jx(f1e(t)))}catch{}}function R1e(t,e,r){if(e.data)try{L1e(e)&&B1e(r)&&(C1e(e,r,t),P1e(e,r,t)),N1e(e)&&F1e(r)&&(v1e(e,r,t),g1e(e,r,t))}catch{Et&&W.warn("Error when enriching network breadcrumb")}}function L1e(t){return t.category==="xhr"}function N1e(t){return t.category==="fetch"}function B1e(t){return t&&t.xhr}function F1e(t){return t&&t.response}let ZR=null;function j1e(t){return!!t.category}const H1e=t=>e=>{if(!t.isEnabled())return;const r=z1e(e);r&&Xp(t,r)};function z1e(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return ZR===e||!e||(ZR=e,!j1e(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?V1e(e):Ia(e)}function V1e(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return Ia(t);let r=!1;const n=e.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>dg?(r=!0,`${i.slice(0,dg)}…`):i;if(typeof i=="object")try{const a=Ca(i,7);return JSON.stringify(a).length>dg?(r=!0,`${JSON.stringify(a,null,2).slice(0,dg)}…`):a}catch{}return i});return Ia({...t,data:{...t.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function U1e(t){const e=wr(),r=Xe();e.addScopeListener(H1e(t)),HH(wwe(t)),Up(o1e(t)),I1e(t);const n=a1e(t,!e8(r));r&&r.addEventProcessor?r.addEventProcessor(n):Cz(n),e8(r)&&(r.on("beforeSendEvent",e1e(t)),r.on("afterSendEvent",cU(t)),r.on("createDsc",i=>{const a=t.getSessionId();a&&t.isEnabled()&&t.recordingMode==="session"&&t.checkAndHandleExpiredSession()&&(i.replay_id=a)}),r.on("startTransaction",i=>{t.lastTransaction=i}),r.on("finishTransaction",i=>{t.lastTransaction=i}),r.on("beforeSendFeedback",(i,a)=>{const s=t.getSessionId();a&&a.includeReplay&&t.isEnabled()&&s&&(t.flush(),i.contexts&&i.contexts.feedback&&(i.contexts.feedback.replay_id=s))}))}function e8(t){return!!(t&&t.on)}async function G1e(t){try{return Promise.all(By(t,[W1e(At.performance.memory)]))}catch{return[]}}function W1e(t){const{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}=t,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:e,totalJSHeapSize:r,usedJSHeapSize:n}}}}function Y1e(t,e,r){let n,i,a;const s=r&&r.maxWait?Math.max(r.maxWait,e):0;function o(){return u(),n=t(),n}function u(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function c(){return i!==void 0||a!==void 0?o():n}function l(){return i&&clearTimeout(i),i=setTimeout(o,e),s&&a===void 0&&(a=setTimeout(o,s)),n}return l.cancel=u,l.flush=c,l}function K1e(t){let e=!1;return(r,n)=>{if(!t.checkAndHandleExpiredSession()){Et&&W.warn("[Replay] Received replay event after session expired.");return}const i=n||!e;e=!0,t.clickDetector&&gwe(t.clickDetector,r),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&i&&t.setInitialState(),!UP(t,r,i))return!0;if(!i)return!1;if(X1e(t,i),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){const a=t.eventBuffer.getEarliestTimestamp();a&&(ln(`[Replay] Updating session start time to earliest event in buffer to ${new Date(a)}`,t.getOptions()._experiments.traceInternals),t.session.started=a,t.getOptions().stickySession&&VP(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function q1e(t){const e=t.getOptions();return{type:ze.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:t.isRecordingCanvas(),sessionSampleRate:e.sessionSampleRate,errorSampleRate:e.errorSampleRate,useCompressionOption:e.useCompression,blockAllMedia:e.blockAllMedia,maskAllText:e.maskAllText,maskAllInputs:e.maskAllInputs,useCompression:t.eventBuffer?t.eventBuffer.type==="worker":!1,networkDetailHasUrls:e.networkDetailAllowUrls.length>0,networkCaptureBodies:e.networkCaptureBodies,networkRequestHasHeaders:e.networkRequestHeaders.length>0,networkResponseHasHeaders:e.networkResponseHeaders.length>0}}}}function X1e(t,e){!e||!t.session||t.session.segmentId!==0||UP(t,q1e(t),!1)}function J1e(t,e,r,n){return Ac(JH(t,tP(t),n,r),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function Q1e({recordingData:t,headers:e}){let r;const n=`${JSON.stringify(e)} `;if(typeof t=="string")r=`${n}${t}`;else{const a=new TextEncoder().encode(n);r=new Uint8Array(a.length+t.length),r.set(a),r.set(t,a.length)}return r}async function Z1e({client:t,scope:e,replayId:r,event:n}){const i=typeof t._integrations=="object"&&t._integrations!==null&&!Array.isArray(t._integrations)?Object.keys(t._integrations):void 0,a={event_id:r,integrations:i};t.emit&&t.emit("preprocessEvent",n,a);const s=await iP(t.getOptions(),n,a,e,t,ca());if(!s)return null;s.platform=s.platform||"javascript";const o=t.getSdkMetadata&&t.getSdkMetadata(),{name:u,version:c}=o&&o.sdk||{};return s.sdk={...s.sdk,name:u||"sentry.javascript.unknown",version:c||"0.0.0"},s}async function eSe({recordingData:t,replayId:e,segmentId:r,eventContext:n,timestamp:i,session:a}){const s=Q1e({recordingData:t,headers:{segment_id:r}}),{urls:o,errorIds:u,traceIds:c,initialTimestamp:l}=n,d=Xe(),f=wr(),p=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!p||!m||!a.sampled)return;const b={type:Bye,replay_start_timestamp:l/1e3,timestamp:i/1e3,error_ids:u,trace_ids:c,urls:o,replay_id:e,segment_id:r,replay_type:a.sampled},_=await Z1e({scope:f,client:d,replayId:e,event:b});if(!_){d.recordDroppedEvent("event_processor","replay",b),ln("An event processor returned `null`, will not send event.");return}delete _.sdkProcessingMetadata;const S=J1e(_,s,m,d.getOptions().tunnel);let E;try{E=await p.send(S)}catch(h){const v=new Error(IP);try{v.cause=h}catch{}throw v}if(!E)return E;if(typeof E.statusCode=="number"&&(E.statusCode<200||E.statusCode>=300))throw new gU(E.statusCode);const O=ez({},E);if(ZH(O,"replay"))throw new vU(O);return E}class gU extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class vU extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function bU(t,e={count:0,interval:Uye}){const{recordingData:r,options:n}=t;if(r.length)try{return await eSe(t),!0}catch(i){if(i instanceof gU||i instanceof vU)throw i;if(sz("Replays",{_retryCount:e.count}),Et&&n._experiments&&n._experiments.captureExceptions&&Vd(i),e.count>=Gye){const a=new Error(`${IP} - max retries exceeded`);try{a.cause=i}catch{}throw a}return e.interval*=++e.count,new Promise((a,s)=>{setTimeout(async()=>{try{await bU(t,e),a(!0)}catch(o){s(o)}},e.interval)})}}const yU="__THROTTLED",tSe="__SKIPPED";function rSe(t,e,r){const n=new Map,i=o=>{const u=o-r;n.forEach((c,l)=>{l[...n.values()].reduce((o,u)=>o+u,0);let s=!1;return(...o)=>{const u=Math.floor(Date.now()/1e3);if(i(u),a()>=e){const l=s;return s=!0,l?tSe:yU}s=!1;const c=n.get(u)||0;return n.set(u,c+1),t(...o)}}class co{constructor({options:e,recordingOptions:r}){co.prototype.__init.call(this),co.prototype.__init2.call(this),co.prototype.__init3.call(this),co.prototype.__init4.call(this),co.prototype.__init5.call(this),co.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Fye,sessionIdleExpire:jye},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=r,this._options=e,this._debouncedFlush=Y1e(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=rSe((s,o)=>Kwe(this,s,o),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),a=n?{threshold:Math.min(Wye,n),timeout:n,scrollTimeout:Yye,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new fwe(this,a))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(e){const{errorSampleRate:r,sessionSampleRate:n}=this._options;if(!(r<=0&&n<=0)){if(this._initializeSessionForSampling(e),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",ql(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");ql("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=x1({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");ql("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=x1({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const e=this._canvas;this._stopRecording=Mo({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:Vye},emit:K1e(this),onMutation:this._onMutationHandler,...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:r}={}){if(this._isEnabled){this._isEnabled=!1;try{ln(`[Replay] Stopping Replay${r?` triggered by ${r}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,Vwe(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),ln("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),ln("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const r=Date.now();ln("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();const n=this.stopRecording();!e||!n||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(r),this._updateSessionActivity(r),this._maybeSaveSession()),this.startRecording())}addUpdate(e){const r=e();this.recordingMode!=="buffer"&&r!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&aT(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${At.location.pathname}${At.location.hash}${At.location.search}`,r=`${At.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=r,this._context.initialTimestamp=Date.now(),this._context.urls.push(r)}throttledAddEvent(e,r){const n=this._throttledAddEvent(e,r);if(n===yU){const i=Ia({category:"replay.throttled"});this.addUpdate(()=>!UP(this,{type:swe,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastTransaction||wr().getTransaction(),n=(e&&Pt(e).data||{})[kn];if(!(!e||!n||!["route","custom"].includes(n)))return Pt(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=jwe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Et&&W.error("[Replay]",e),Et&&this._options._experiments&&this._options._experiments.captureExceptions&&Vd(e)}_initializeSessionForSampling(e){const r=this._options.errorSampleRate>0,n=x1({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:r});this.session=n}_checkSession(){if(!this.session)return!1;const e=this.session;return sU(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{At.document.addEventListener("visibilitychange",this._handleVisibilityChange),At.addEventListener("blur",this._handleWindowBlur),At.addEventListener("focus",this._handleWindowFocus),At.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(U1e(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=Iwe(this)}_removeListeners(){try{At.document.removeEventListener("visibilitychange",this._handleVisibilityChange),At.removeEventListener("blur",this._handleWindowBlur),At.removeEventListener("focus",this._handleWindowFocus),At.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{At.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=Ia({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=Ia({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{Ewe(this,e)}}_doChangeToBackgroundTasks(e){!this.session||aU(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){ln("[Replay] Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}_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:ze.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=Cwe(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(By(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:e,eventBuffer:r}=this;if(!e||!r||e.segmentId)return;const n=r.getEarliestTimestamp();n&&nthis._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const n=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession();const a=await this.eventBuffer.finish();await bU({replayId:e,recordingData:a,segmentId:i,eventContext:n,session:this.session,options:this.getOptions(),timestamp:r})}catch(r){this._handleException(r),this.stop({reason:"sendReplay"});const n=Xe();n&&n.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Et&&W.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;const r=this.session.started,i=Date.now()-r;this._debouncedFlush.cancel();const a=ithis._options.maxReplayDuration+5e3;if(a||s){ln(`[Replay] Session duration (${Math.floor(i/1e3)}s) is too ${a?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),a&&this._debouncedFlush();return}const o=this.eventBuffer;if(o&&this.session.segmentId===0&&!o.hasCheckout&&ln("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(u){Et&&W.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&VP(this.session)}__init6(){this._onMutationHandler=e=>{const r=e.length,n=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=n&&r>n;if(r>i||a){const s=Ia({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(s)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Bf(t,e,r,n){const i=typeof n=="string"?n.split(","):[],a=[...t,...i,...e];return typeof r<"u"&&(typeof r=="string"&&a.push(`.${r}`),Ga(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),a.join(",")}function nSe({mask:t,unmask:e,block:r,unblock:n,ignore:i,blockClass:a,blockSelector:s,maskTextClass:o,maskTextSelector:u,ignoreClass:c}){const l=['base[href="/"]'],d=Bf(t,[".sentry-mask","[data-sentry-mask]"],o,u),f=Bf(e,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:f,blockSelector:Bf(r,[".sentry-block","[data-sentry-block]",...l],a,s),unblockSelector:Bf(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Bf(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],c)};return a instanceof RegExp&&(p.blockClass=a),o instanceof RegExp&&(p.maskTextClass=o),p}function iSe({el:t,key:e,maskAttributes:r,maskAllText:n,privacyOptions:i,value:a}){return!n||i.unmaskTextSelector&&t.matches(i.unmaskTextSelector)?a:r.includes(e)||e==="value"&&t.tagName==="INPUT"&&["submit","button"].includes(t.getAttribute("type")||"")?a.replace(/[\S]/g,"*"):a}const t8='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',aSe=["content-length","content-type","accept"];let r8=!1;const sSe=t=>new Jp(t);class Jp{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=Hye,flushMaxDelay:r=zye,minReplayDuration:n=Kye,maxReplayDuration:i=NR,stickySession:a=!0,useCompression:s=!0,workerUrl:o,_experiments:u={},sessionSampleRate:c,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:f=!0,blockAllMedia:p=!0,mutationBreadcrumbLimit:m=750,mutationLimit:b=1e4,slowClickTimeout:_=7e3,slowClickIgnoreSelectors:S=[],networkDetailAllowUrls:E=[],networkDetailDenyUrls:O=[],networkCaptureBodies:h=!0,networkRequestHeaders:v=[],networkResponseHeaders:g=[],mask:T=[],maskAttributes:C=["title","placeholder"],unmask:k=[],block:w=[],unblock:A=[],ignore:P=[],maskFn:x,beforeAddRecordingEvent:$,beforeErrorSampling:D,blockClass:M,blockSelector:R,maskInputOptions:N,maskTextClass:j,maskTextSelector:z,ignoreClass:V}={}){this.name=Jp.id;const J=nSe({mask:T,unmask:k,block:w,unblock:A,ignore:P,blockClass:M,blockSelector:R,maskTextClass:j,maskTextSelector:z,ignoreClass:V});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...N||{},password:!0},maskTextFn:x,maskInputFn:x,maskAttributeFn:(re,Y,U)=>iSe({maskAttributes:C,maskAllText:d,privacyOptions:J,key:re,value:Y,el:U}),...J,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:re=>{try{re.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:e,flushMaxDelay:r,minReplayDuration:Math.min(n,qye),maxReplayDuration:Math.min(i,NR),stickySession:a,sessionSampleRate:c,errorSampleRate:l,useCompression:s,workerUrl:o,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:m,mutationLimit:b,slowClickTimeout:_,slowClickIgnoreSelectors:S,networkDetailAllowUrls:E,networkDetailDenyUrls:O,networkCaptureBodies:h,networkRequestHeaders:n8(v),networkResponseHeaders:n8(g),beforeAddRecordingEvent:$,beforeErrorSampling:D,_experiments:u},typeof c=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysSessionSampleRate: ${c} })`),this._initialOptions.sessionSampleRate=c),typeof l=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration. This option is deprecated and will be removed soon. Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.: Sentry.init({ replaysOnErrorSampleRate: ${l} })`),this._initialOptions.errorSampleRate=l),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${t8}`:t8),this._isInitialized&&GO())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return r8}set _isInitialized(e){r8=e}setupOnce(){GO()&&(this._setup(),setTimeout(()=>this._initialize()))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session"}):Promise.resolve()}flush(e){return!this._replay||!this._replay.isEnabled()?Promise.resolve():this._replay.sendBufferedReplayOrFlush(e)}getReplayId(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.getSessionId()}_initialize(){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const e=oSe(this._initialOptions);this._replay=new co({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const r=Xe().getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch{}}}Jp.__initStatic();function oSe(t){const e=Xe(),r=e&&e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...Xr(t)};return r?(t.sessionSampleRate==null&&t.errorSampleRate==null&&r.replaysSessionSampleRate==null&&r.replaysOnErrorSampleRate==null&&Ga(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),typeof r.replaysSessionSampleRate=="number"&&(n.sessionSampleRate=r.replaysSessionSampleRate),typeof r.replaysOnErrorSampleRate=="number"&&(n.errorSampleRate=r.replaysOnErrorSampleRate),n):(Ga(()=>{console.warn("SDK client is not available.")}),n)}function n8(t){return[...aSe,...t.map(e=>e.toLowerCase())]}var i8;(function(t){t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment"})(i8||(i8={}));function uSe(t,e){for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}return!1}function uT(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:uT(t.parentNode,e,r,n+1)}function a8(t,e){return r=>{const n=r;if(n===null)return!1;try{if(t){if(typeof t=="string"){if(n.matches(`.${t}`))return!0}else if(uSe(n,t))return!0}return!!(e&&n.matches(e))}catch{return!1}}}const El=`Please stop import mirror directly. Instead of that,\r now you can use replayer.getMirror() to access the mirror instance of a replayer,\r or you can use record.mirror to access the mirror instance during recording.`;let s8={map:{},getId(){return console.error(El),-1},getNode(){return console.error(El),null},removeNodeFromMap(){console.error(El)},has(){return console.error(El),!1},reset(){console.error(El)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(s8=new Proxy(s8,{get(t,e,r){return e==="map"&&console.error(El),Reflect.get(t,e,r)}}));function WP(t,e,r,n,i=window){const a=i.Object.getOwnPropertyDescriptor(t,e);return i.Object.defineProperty(t,e,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),a&&a.set&&a.set.call(this,s)}}),()=>WP(t,e,a||{},!0)}function YP(t,e,r){try{if(!(e in t))return()=>{};const n=t[e],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),t[e]=i,()=>{t[e]=n}}catch{return()=>{}}}/[1-9][0-9]{12}/.test(Date.now().toString());function Hy(t,e,r,n,i){if(!t)return!1;const a=t.nodeType===t.ELEMENT_NODE?t:t.parentElement;if(!a)return!1;const s=a8(e,r);if(!i){const c=n&&a.matches(n);return s(a)&&!c}const o=uT(a,s);let u=-1;return o<0?!1:(n&&(u=uT(a,a8(null,n))),o>-1&&u<0?!0:o(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(Sd||{});const o8=t=>t;var Hl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lSe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var pg=0;pg>2],i+=Hl[(e[r]&3)<<4|e[r+1]>>4],i+=Hl[(e[r+1]&15)<<2|e[r+2]>>6],i+=Hl[e[r+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const u8=new Map;function fSe(t,e){let r=u8.get(t);return r||(r=new Map,u8.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}const _U=(t,e,r)=>{if(!t||!(SU(t,e)||typeof t=="object"))return;const n=t.constructor.name,i=fSe(r,n);let a=i.indexOf(t);return a===-1&&(a=i.length,i.push(t)),a};function wv(t,e,r){if(t instanceof Array)return t.map(n=>wv(n,e,r));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const n=t.constructor.name,i=dSe(t);return{rr_type:n,base64:i}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[wv(t.buffer,e,r),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const n=t.constructor.name,{src:i}=t;return{rr_type:n,src:i}}else if(t instanceof HTMLCanvasElement){const n="HTMLImageElement",i=t.toDataURL();return{rr_type:n,src:i}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[wv(t.data,e,r),t.width,t.height]};if(SU(t,e)||typeof t=="object"){const n=t.constructor.name,i=_U(t,e,r);return{rr_type:n,index:i}}}}return t}const wU=(t,e,r)=>t.map(n=>wv(n,e,r)),SU=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof e[i]=="function").find(i=>t instanceof e[i]);function hSe(t,e,r,n,i){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const o of s)try{if(typeof e.CanvasRenderingContext2D.prototype[o]!="function")continue;const u=YP(e.CanvasRenderingContext2D.prototype,o,function(c){return function(...l){return Hy(this.canvas,r,n,i,!0)||setTimeout(()=>{const d=wU(l,e,this);t(this.canvas,{type:Sd["2D"],property:o,args:d})},0),c.apply(this,l)}});a.push(u)}catch{const c=WP(e.CanvasRenderingContext2D.prototype,o,{set(l){t(this.canvas,{type:Sd["2D"],property:o,args:[l],setter:!0})}});a.push(c)}return()=>{a.forEach(o=>o())}}function pSe(t){return t==="experimental-webgl"?"webgl":t}function c8(t,e,r,n,i){const a=[];try{const s=YP(t.HTMLCanvasElement.prototype,"getContext",function(o){return function(u,...c){if(!Hy(this,e,r,n,!0)){const l=pSe(u);if("__context"in this||(this.__context=l),i&&["webgl","webgl2"].includes(l))if(c[0]&&typeof c[0]=="object"){const d=c[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return o.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function l8(t,e,r,n,i,a,s,o){const u=[],c=Object.getOwnPropertyNames(t);for(const l of c)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof t[l]!="function")continue;const d=YP(t,l,function(f){return function(...p){const m=f.apply(this,p);if(_U(m,o,this),"tagName"in this.canvas&&!Hy(this.canvas,n,i,a,!0)){const b=wU(p,o,this),_={type:e,property:l,args:b};r(this.canvas,_)}return m}});u.push(d)}catch{const f=WP(t,l,{set(p){r(this.canvas,{type:e,property:l,args:[p],setter:!0})}});u.push(f)}return u}function mSe(t,e,r,n,i,a){const s=[];return s.push(...l8(e.WebGLRenderingContext.prototype,Sd.WebGL,t,r,n,i,a,e)),typeof e.WebGL2RenderingContext<"u"&&s.push(...l8(e.WebGL2RenderingContext.prototype,Sd.WebGL2,t,r,n,i,a,e)),()=>{s.forEach(o=>o())}}var gSe='for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n=0;n<64;n++)e[t.charCodeAt(n)]=n;var a=function(e){var n,a=new Uint8Array(e),s=a.length,r="";for(n=0;n>2],r+=t[(3&a[n])<<4|a[n+1]>>4],r+=t[(15&a[n+1])<<2|a[n+2]>>6],r+=t[63&a[n+2]];return s%3==2?r=r.substring(0,r.length-1)+"=":s%3==1&&(r=r.substring(0,r.length-2)+"=="),r};const s=new Map,r=new Map;const i=self;i.onmessage=async function(t){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:t.data.id});{const{id:e,bitmap:n,width:o,height:f,dataURLOptions:c}=t.data,g=async function(t,e,n){const s=t+"-"+e;if("OffscreenCanvas"in globalThis){if(r.has(s))return r.get(s);const i=new OffscreenCanvas(t,e);i.getContext("2d");const o=await i.convertToBlob(n),f=await o.arrayBuffer(),c=a(f);return r.set(s,c),c}return""}(o,f,c),d=new OffscreenCanvas(o,f);d.getContext("2d").drawImage(n,0,0),n.close();const u=await d.convertToBlob(c),h=u.type,w=await u.arrayBuffer(),l=a(w);if(!s.has(e)&&await g===l)return s.set(e,l),i.postMessage({id:e});if(s.get(e)===l)return i.postMessage({id:e});i.postMessage({id:e,type:h,base64:l,width:o,height:f}),s.set(e,l)}};';function vSe(){const t=new Blob([gSe]);return URL.createObjectURL(t)}class bSe{reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=(c,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(l)};const{sampling:r="all",win:n,blockClass:i,blockSelector:a,unblockSelector:s,recordCanvas:o,dataURLOptions:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,!e.enableManualSnapshot&&o8(()=>{o&&r==="all"&&this.initCanvasMutationObserver(n,i,a,s),o&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,i,a,s,{dataURLOptions:u})})()}initCanvasFPSObserver(e,r,n,i,a,s){const o=c8(r,n,i,a,!0),u=this.takeSnapshot(!1,e,r,n,i,a,s.dataURLOptions);this.resetObservers=()=>{o(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,r,n,i){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=c8(e,r,n,i,!1),s=hSe(this.processMutation.bind(this),e,r,n,i),o=mSe(this.processMutation.bind(this),e,r,n,i,this.mirror);this.resetObservers=()=>{a(),s(),o()}}snapshot(e){const{options:r}=this,n=this.takeSnapshot(!0,r.sampling==="all"?2:r.sampling||2,r.win,r.blockClass,r.blockSelector,r.unblockSelector,r.dataURLOptions,e);this.resetObservers=()=>{cancelAnimationFrame(n)}}takeSnapshot(e,r,n,i,a,s,o,u){const c=new Map,l=new Worker(vSe());l.onmessage=_=>{const S=_.data,{id:E}=S;if(c.set(E,!1),!("base64"in S))return;const{base64:O,type:h,width:v,height:g}=S;this.mutationCb({id:E,type:Sd["2D"],commands:[{property:"clearRect",args:[0,0,v,g]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:O}],type:h}]},0,0]}]})};const d=1e3/r;let f=0,p;const m=_=>{if(_)return[_];const S=[];return n.document.querySelectorAll("canvas").forEach(E=>{Hy(E,i,a,s,!0)||S.push(E)}),S},b=_=>{if(f&&_-f{const E=this.mirror.getId(S);if(!c.get(E)){if(c.set(E,!0),!e&&["webgl","webgl2"].includes(S.__context)){const O=S.getContext(S.__context);yv([O,"optionalAccess",h=>h.getContextAttributes,"call",h=>h(),"optionalAccess",h=>h.preserveDrawingBuffer])===!1&&O.clear(O.COLOR_BUFFER_BIT)}createImageBitmap(S).then(O=>{l.postMessage({id:E,bitmap:O,width:S.width,height:S.height,dataURLOptions:o},[O])}).catch(O=>{o8(()=>{throw O})()})}}),p=mu(b)};return p=mu(b),p}startPendingCanvasMutationFlusher(){mu(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=r=>{this.rafStamps.latestId=r,mu(e)};mu(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),mu(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,r){if(this.frozen||this.locked)return;const n=this.pendingCanvasMutations.get(e);if(!n||r===-1)return;const i=n.map(s=>{const{type:o,...u}=s;return u}),{type:a}=n[0];this.mutationCb({id:r,type:a,commands:i}),this.pendingCanvasMutations.delete(e)}}const d8={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}}},OU="ReplayCanvas",ySe=(t={})=>{const e={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot};let r;const n=new Promise(i=>r=i);return{name:OU,setupOnce(){},getOptions(){const{quality:i,enableManualSnapshot:a}=e;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:s=>{const o=new bSe({...s,enableManualSnapshot:a});return r(o),o},...d8[i||"medium"]||d8.medium}},async snapshot(i){(await n).snapshot(i)}}},TU=ySe,_Se=zn(OU,TU),Mc=je,C1="#ffffff",f8="inherit",A1="rgba(108, 95, 199, 1)",h8={fontFamily:"'Helvetica Neue', Arial, sans-serif",fontSize:"14px",background:C1,backgroundHover:"#f6f6f7",foreground:"#2b2233",border:"1.5px solid rgba(41, 35, 47, 0.13)",borderRadius:"12px",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",success:"#268d75",error:"#df3338",submitBackground:"rgba(88, 74, 192, 1)",submitBackgroundHover:A1,submitBorder:A1,submitOutlineFocus:"#29232f",submitForeground:C1,submitForegroundHover:C1,cancelBackground:"transparent",cancelBackgroundHover:"var(--background-hover)",cancelBorder:"var(--border)",cancelOutlineFocus:"var(--input-outline-focus)",cancelForeground:"var(--foreground)",cancelForegroundHover:"var(--foreground)",inputBackground:f8,inputForeground:f8,inputBorder:"var(--border)",inputOutlineFocus:A1,formBorderRadius:"20px",formContentBorderRadius:"6px"},p8={light:h8,dark:{...h8,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},wSe="Report a Bug",SSe="Cancel",OSe="Send Bug Report",TSe="Report a Bug",ESe="your.email@example.org",xSe="Email",PSe="What's the bug? What did you expect?",CSe="Description",ASe="Your Name",MSe="Name",$Se="Thank you for your report!",EU="widget",xU="api";async function kSe({client:t,scope:e,event:r}){const n={};t.emit&&t.emit("preprocessEvent",r,n);const i=await iP(t.getOptions(),r,n,e,t,ca());return i===null?(t.recordDroppedEvent("event_processor","feedback",r),null):(i.platform=i.platform||"javascript",i)}async function DSe({feedback:{message:t,email:e,name:r,source:n,url:i}},{includeReplay:a=!0}={}){const s=Xe(),o=s&&s.getTransport(),u=s&&s.getDsn();if(!s||!o||!u)return;const c={contexts:{feedback:{contact_email:e,name:r,message:t,url:i,source:n}},type:"feedback"};return Yp(async l=>{l.clearBreadcrumbs(),[xU,EU].includes(String(n))&&l.setLevel("info");const d=await kSe({scope:l,client:s,event:c});if(!d)return;s.emit&&s.emit("beforeSendFeedback",d,{includeReplay:!!a});const f=vz(d,u,s.getOptions()._metadata,s.getOptions().tunnel);let p;try{p=await o.send(f)}catch(m){const b=new Error("Unable to send Feedback");try{b.cause=m}catch{}throw b}if(p){if(typeof p.statusCode=="number"&&(p.statusCode<200||p.statusCode>=300))throw new Error("Unable to send Feedback");return p}})}function PU({name:t,email:e,message:r,source:n=xU,url:i=MH()},a={}){if(!r)throw new Error("Unable to submit feedback with empty message");return DSe({feedback:{name:t,email:e,message:r,url:i,source:n}},a)}const xl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function m8(t,e){return{...t,...e,themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function ISe(t){const e=t.createElement("style");return e.textContent=` .widget__actor { line-height: 25px; display: flex; align-items: center; gap: 8px; border-radius: var(--border-radius); cursor: pointer; font-size: 14px; font-weight: 600; padding: 12px 16px; text-decoration: none; z-index: 9000; color: var(--foreground); background-color: var(--background); border: var(--border); box-shadow: var(--box-shadow); opacity: 1; transition: opacity 0.1s ease-in-out; } .widget__actor:hover { background-color: var(--background-hover); } .widget__actor svg { width: 16px; height: 16px; } .widget__actor--hidden { opacity: 0; pointer-events: none; visibility: hidden; } .widget__actor__text { } .feedback-icon path { fill: var(--foreground); } `,e}function RSe(t){const e=t.createElement("style");return e.textContent=` .dialog { line-height: 25px; background-color: rgba(0, 0, 0, 0.05); border: none; position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; opacity: 1; transition: opacity 0.2s ease-in-out; } .dialog:not([open]) { opacity: 0; pointer-events: none; visibility: hidden; } .dialog:not([open]) .dialog__content { transform: translate(0, -16px) scale(0.98); } .dialog__content { position: fixed; left: var(--left); right: var(--right); bottom: var(--bottom); top: var(--top); border: var(--border); border-radius: var(--form-border-radius); background-color: var(--background); color: var(--foreground); width: 320px; max-width: 100%; max-height: calc(100% - 2rem); display: flex; flex-direction: column; box-shadow: var(--box-shadow); transition: transform 0.2s ease-in-out; transform: translate(0, 0) scale(1); } .dialog__header { display: flex; align-items: center; justify-content: space-between; font-size: 20px; font-weight: 600; padding: 24px 24px 0 24px; margin: 0; margin-bottom: 16px; } .brand-link { display: inline-flex; } .error { color: var(--error); margin-bottom: 16px; } .form { display: grid; overflow: auto; flex-direction: column; gap: 16px; padding: 0 24px 24px; } .form__error-container { color: var(--error); } .form__error-container--hidden { display: none; } .form__label { display: flex; flex-direction: column; gap: 4px; margin: 0px; } .form__label__text { display: grid; gap: 4px; align-items: center; grid-auto-flow: column; grid-auto-columns: max-content; } .form__label__text--required { font-size: 0.85em; } .form__input { font-family: inherit; line-height: inherit; background-color: var(--input-background); box-sizing: border-box; border: var(--input-border); border-radius: var(--form-content-border-radius); color: var(--input-foreground); font-size: 14px; font-weight: 500; padding: 6px 12px; } .form__input:focus-visible { outline: 1px auto var(--input-outline-focus); } .form__input--textarea { font-family: inherit; resize: vertical; } .btn-group { display: grid; gap: 8px; margin-top: 8px; } .btn { line-height: inherit; border: var(--cancel-border); border-radius: var(--form-content-border-radius); cursor: pointer; font-size: 14px; font-weight: 600; padding: 6px 16px; } .btn[disabled] { opacity: 0.6; pointer-events: none; } .btn--primary { background-color: var(--submit-background); border-color: var(--submit-border); color: var(--submit-foreground); } .btn--primary:hover { background-color: var(--submit-background-hover); color: var(--submit-foreground-hover); } .btn--primary:focus-visible { outline: 1px auto var(--submit-outline-focus); } .btn--default { background-color: var(--cancel-background); color: var(--cancel-foreground); font-weight: 500; } .btn--default:hover { background-color: var(--cancel-background-hover); color: var(--cancel-foreground-hover); } .btn--default:focus-visible { outline: 1px auto var(--cancel-outline-focus); } .success-message { background-color: var(--background); border: var(--border); border-radius: var(--border-radius); box-shadow: var(--box-shadow); font-weight: 600; color: var(--success); padding: 12px 24px; line-height: 25px; display: grid; align-items: center; grid-auto-flow: column; gap: 6px; cursor: default; } .success-icon path { fill: var(--success); } `,e}function g8(t){return` --background: ${t.background}; --background-hover: ${t.backgroundHover}; --foreground: ${t.foreground}; --error: ${t.error}; --success: ${t.success}; --border: ${t.border}; --border-radius: ${t.borderRadius}; --box-shadow: ${t.boxShadow}; --submit-background: ${t.submitBackground}; --submit-background-hover: ${t.submitBackgroundHover}; --submit-border: ${t.submitBorder}; --submit-outline-focus: ${t.submitOutlineFocus}; --submit-foreground: ${t.submitForeground}; --submit-foreground-hover: ${t.submitForegroundHover}; --cancel-background: ${t.cancelBackground}; --cancel-background-hover: ${t.cancelBackgroundHover}; --cancel-border: ${t.cancelBorder}; --cancel-outline-focus: ${t.cancelOutlineFocus}; --cancel-foreground: ${t.cancelForeground}; --cancel-foreground-hover: ${t.cancelForegroundHover}; --input-background: ${t.inputBackground}; --input-foreground: ${t.inputForeground}; --input-border: ${t.inputBorder}; --input-outline-focus: ${t.inputOutlineFocus}; --form-border-radius: ${t.formBorderRadius}; --form-content-border-radius: ${t.formContentBorderRadius}; `}function LSe(t,e,r){const n=t.createElement("style");return n.textContent=` :host { --bottom: 1rem; --right: 1rem; --top: auto; --left: auto; --z-index: 100000; --font-family: ${r.light.fontFamily}; --font-size: ${r.light.fontSize}; position: fixed; left: var(--left); right: var(--right); bottom: var(--bottom); top: var(--top); z-index: var(--z-index); font-family: var(--font-family); font-size: var(--font-size); ${g8(e==="dark"?r.dark:r.light)} } ${e==="system"?` @media (prefers-color-scheme: dark) { :host { ${g8(r.dark)} } }`:""} }`,n}function NSe({id:t,colorScheme:e,themeDark:r,themeLight:n}){try{const i=Mc.document,a=i.createElement("div");a.id=t;const s=a.attachShadow({mode:"open"});return s.appendChild(LSe(i,e,{dark:r,light:n})),s.appendChild(RSe(i)),{shadow:s,host:a}}catch{throw W.warn("[Feedback] Browser does not support shadow DOM API"),new Error("Browser does not support shadow DOM API.")}}async function BSe(t,e,r){if(!t)return;const n=()=>{t&&t.showError("There was a problem submitting feedback, please wait and try again.")};t.hideError();try{return await PU({...e,source:EU},r)}catch(i){xl&&W.error(i),n()}}function ti(t,e){return Object.entries(e).forEach(([r,n])=>{t.setAttributeNS(null,r,n)}),t}const fl=20,FSe="http://www.w3.org/2000/svg";function jSe(){const t=o=>Mc.document.createElementNS(FSe,o),e=ti(t("svg"),{class:"feedback-icon",width:`${fl}`,height:`${fl}`,viewBox:`0 0 ${fl} ${fl}`,fill:"none"}),r=ti(t("g"),{clipPath:"url(#clip0_57_80)"}),n=ti(t("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"});e.appendChild(r).appendChild(n);const i=t("defs"),a=ti(t("clipPath"),{id:"clip0_57_80"}),s=ti(t("rect"),{width:`${fl}`,height:`${fl}`,fill:"white"});return a.appendChild(s),i.appendChild(a),e.appendChild(i).appendChild(a).appendChild(s),{get el(){return e}}}function Ft(t,e,...r){const i=Mc.document.createElement(t);e&&Object.entries(e).forEach(([a,s])=>{a==="className"&&typeof s=="string"?i.setAttribute("class",s):typeof s=="boolean"&&s?i.setAttribute(a,""):typeof s=="string"?i.setAttribute(a,s):a.startsWith("on")&&typeof s=="function"&&i.addEventListener(a.substring(2).toLowerCase(),s)});for(const a of r)CU(i,a);return i}function CU(t,e){const r=Mc.document;if(!(typeof e>"u"||e===null))if(Array.isArray(e))for(const n of e)CU(t,n);else e===!1||(typeof e=="string"?t.appendChild(r.createTextNode(e)):e instanceof Node?t.appendChild(e):t.appendChild(r.createTextNode(String(e))))}function HSe({buttonLabel:t,onClick:e}){function r(i){e&&e(i)}const n=Ft("button",{type:"button",className:"widget__actor","aria-label":t,"aria-hidden":"false"},jSe().el,t?Ft("span",{className:"widget__actor__text"},t):null);return n.addEventListener("click",r),{get el(){return n},show:()=>{n.classList.remove("widget__actor--hidden"),n.setAttribute("aria-hidden","false")},hide:()=>{n.classList.add("widget__actor--hidden"),n.setAttribute("aria-hidden","true")}}}function zSe({label:t}){return{el:Ft("button",{type:"submit",className:"btn btn--primary","aria-label":t},t)}}function M1(t,e){const r=t.get(e);return typeof r=="string"?r.trim():""}function VSe({nameLabel:t,namePlaceholder:e,emailLabel:r,emailPlaceholder:n,messageLabel:i,messagePlaceholder:a,cancelButtonLabel:s,submitButtonLabel:o,showName:u,showEmail:c,isNameRequired:l,isEmailRequired:d,defaultName:f,defaultEmail:p,onCancel:m,onSubmit:b}){const{el:_}=zSe({label:o});function S(w){if(w.preventDefault(),w.target instanceof HTMLFormElement)try{if(b){const A=new FormData(w.target),P={name:M1(A,"name"),email:M1(A,"email"),message:M1(A,"message")};b(P)}}catch{}}const E=Ft("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function O(w){E.textContent=w,E.classList.remove("form__error-container--hidden"),E.setAttribute("aria-hidden","false")}function h(){E.textContent="",E.classList.add("form__error-container--hidden"),E.setAttribute("aria-hidden","true")}const v=Ft("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:l,className:"form__input",placeholder:e,value:f}),g=Ft("input",{id:"email",type:c?"text":"hidden","aria-hidden":c?"false":"true",name:"email",required:d,className:"form__input",placeholder:n,value:p}),T=Ft("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:a}),C=Ft("button",{type:"button",className:"btn btn--default","aria-label":s,onClick:w=>{m&&m(w)}},s),k=Ft("form",{className:"form",onSubmit:S},[E,u&&Ft("label",{htmlFor:"name",className:"form__label"},[Ft("span",{className:"form__label__text"},t,l&&Ft("span",{className:"form__label__text--required"}," (required)")),v]),!u&&v,c&&Ft("label",{htmlFor:"email",className:"form__label"},[Ft("span",{className:"form__label__text"},r,d&&Ft("span",{className:"form__label__text--required"}," (required)")),g]),!c&&g,Ft("label",{htmlFor:"message",className:"form__label"},[Ft("span",{className:"form__label__text"},i,Ft("span",{className:"form__label__text--required"}," (required)")),T]),Ft("div",{className:"btn-group"},[_,C])]);return{get el(){return k},showError:O,hideError:h}}const USe="http://www.w3.org/2000/svg";function GSe({colorScheme:t}){const e=s=>Mc.document.createElementNS(USe,s),r=ti(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),n=ti(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"});r.append(n);const i=e("defs"),a=e("style");return t==="system"&&(a.textContent=` @media (prefers-color-scheme: dark) { path: { fill: '#fff'; } } `),a.textContent=` path { fill: ${t==="dark"?"#fff":"#362d59"}; }`,i.append(a),r.append(i),{get el(){return r}}}function WSe({formTitle:t,showBranding:e,showName:r,showEmail:n,isNameRequired:i,isEmailRequired:a,colorScheme:s,defaultName:o,defaultEmail:u,onClosed:c,onCancel:l,onSubmit:d,...f}){let p=null;function m(){b(),c&&c()}function b(){p&&(p.open=!1)}function _(){p&&(p.open=!0)}function S(){return p&&p.open===!0||!1}const{el:E,showError:O,hideError:h}=VSe({showEmail:n,showName:r,isEmailRequired:a,isNameRequired:i,defaultName:o,defaultEmail:u,onSubmit:d,onCancel:l,...f});return p=Ft("dialog",{className:"dialog",open:!0,onClick:m},Ft("div",{className:"dialog__content",onClick:v=>{v.stopPropagation()}},Ft("h2",{className:"dialog__header"},t,e&&Ft("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},GSe({colorScheme:s}).el)),E)),{get el(){return p},showError:O,hideError:h,open:_,close:b,checkIsOpen:S}}const mg=16,v8=17,YSe="http://www.w3.org/2000/svg";function KSe(){const t=u=>Mc.document.createElementNS(YSe,u),e=ti(t("svg"),{class:"success-icon",width:`${mg}`,height:`${v8}`,viewBox:`0 0 ${mg} ${v8}`,fill:"none"}),r=ti(t("g"),{clipPath:"url(#clip0_57_156)"}),n=ti(t("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=ti(t("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"});e.appendChild(r).append(i,n);const a=t("defs"),s=ti(t("clipPath"),{id:"clip0_57_156"}),o=ti(t("rect"),{width:`${mg}`,height:`${mg}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(o),a.appendChild(s),e.appendChild(a).appendChild(s).appendChild(o),{get el(){return e}}}function qSe({message:t,onRemove:e}){function r(){n&&(n.remove(),e&&e())}const n=Ft("div",{className:"success-message",onClick:r},KSe().el,t);return{el:n,remove:r}}function b8({shadow:t,options:{shouldCreateActor:e=!0,...r},attachTo:n}){let i,a,s=!1;function o(){if(t)try{const _=qSe({message:r.successMessageText,onRemove:()=>{S&&clearTimeout(S),c()}});if(!_.el)throw new Error("Unable to show success message");t.appendChild(_.el);const S=setTimeout(()=>{_&&_.remove()},5e3)}catch(_){W.error(_)}}async function u(_){if(!a)return;const S=[];if(r.isNameRequired&&!_.name&&S.push(r.nameLabel),r.isEmailRequired&&!_.email&&S.push(r.emailLabel),_.message||S.push(r.messageLabel),S.length>0){a.showError(`Please enter in the following required fields: ${S.join(", ")}`);return}if(!await BSe(a,_)){r.onSubmitError&&r.onSubmitError();return}m(),o(),r.onSubmitSuccess&&r.onSubmitSuccess()}function c(){i&&i.show()}function l(){i&&i.hide()}function d(){i&&i.el&&i.el.remove()}function f(){try{if(a){a.open(),s=!0,r.onFormOpen&&r.onFormOpen();return}const _=r.useSentryUser,S=wr(),E=S&&S.getUser();if(a=WSe({colorScheme:r.colorScheme,showBranding:r.showBranding,showName:r.showName||r.isNameRequired,showEmail:r.showEmail||r.isEmailRequired,isNameRequired:r.isNameRequired,isEmailRequired:r.isEmailRequired,formTitle:r.formTitle,cancelButtonLabel:r.cancelButtonLabel,submitButtonLabel:r.submitButtonLabel,emailLabel:r.emailLabel,emailPlaceholder:r.emailPlaceholder,messageLabel:r.messageLabel,messagePlaceholder:r.messagePlaceholder,nameLabel:r.nameLabel,namePlaceholder:r.namePlaceholder,defaultName:_&&E&&E[_.name]||"",defaultEmail:_&&E&&E[_.email]||"",onClosed:()=>{c(),s=!1,r.onFormClose&&r.onFormClose()},onCancel:()=>{p(),c()},onSubmit:u}),!a.el)throw new Error("Unable to open Feedback dialog");t.appendChild(a.el),l(),r.onFormOpen&&r.onFormOpen()}catch(_){W.error(_)}}function p(){a&&(a.close(),s=!1,r.onFormClose&&r.onFormClose())}function m(){if(a){p();const _=a.el;_&&_.remove(),a=void 0}}function b(){s||f(),l()}return n?n.addEventListener("click",b):e&&(i=HSe({buttonLabel:r.buttonLabel,onClick:b}),i.el&&t.appendChild(i.el)),{get actor(){return i},get dialog(){return a},showActor:c,hideActor:l,removeActor:d,openDialog:f,closeDialog:p,removeDialog:m}}const gg=Mc.document,XSe=t=>new Qp(t);class Qp{static __initStatic(){this.id="Feedback"}constructor({id:e="sentry-feedback",showBranding:r=!0,autoInject:n=!0,showEmail:i=!0,showName:a=!0,useSentryUser:s={email:"email",name:"username"},isEmailRequired:o=!1,isNameRequired:u=!1,themeDark:c,themeLight:l,colorScheme:d="system",buttonLabel:f=wSe,cancelButtonLabel:p=SSe,submitButtonLabel:m=OSe,formTitle:b=TSe,emailPlaceholder:_=ESe,emailLabel:S=xSe,messagePlaceholder:E=PSe,messageLabel:O=CSe,namePlaceholder:h=ASe,nameLabel:v=MSe,successMessageText:g=$Se,onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}={}){this.name=Qp.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={id:e,showBranding:r,autoInject:n,isEmailRequired:o,isNameRequired:u,showEmail:i,showName:a,useSentryUser:s,colorScheme:d,themeDark:{...p8.dark,...c},themeLight:{...p8.light,...l},buttonLabel:f,cancelButtonLabel:p,submitButtonLabel:m,formTitle:b,emailLabel:S,emailPlaceholder:_,messageLabel:O,messagePlaceholder:E,nameLabel:v,namePlaceholder:h,successMessageText:g,onFormClose:T,onFormOpen:C,onSubmitError:k,onSubmitSuccess:w}}setupOnce(){if(GO())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){xl&&W.error(e)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(e,r){try{const n=m8(this.options,r||{});return this._ensureShadowHost(n,({shadow:i})=>{const a=typeof e=="string"?gg.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!a)return xl&&W.error("[Feedback] Unable to attach to target element"),null;const s=b8({shadow:i,options:n,attachTo:a});return this._widgets.add(s),this._widget||(this._widget=s),s})}catch(n){return xl&&W.error(n),null}}createWidget(e){try{return this._createWidget(m8(this.options,e||{}))}catch(r){return xl&&W.error(r),null}}removeWidget(e){if(!e)return!1;try{if(this._widgets.has(e))return e.removeActor(),e.removeDialog(),this._widgets.delete(e),this._widget===e&&(this._widget=null),!0}catch(r){xl&&W.error(r)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();const e=gg.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:r})=>{const n=b8({shadow:r,options:e});return!this._hasInsertedActorStyles&&n.actor&&(r.appendChild(ISe(gg)),this._hasInsertedActorStyles=!0),this._widgets.add(n),this._widget||(this._widget=n),n})}_ensureShadowHost(e,r){let n=!1;if(!this._shadow||!this._host){const{id:a,colorScheme:s,themeLight:o,themeDark:u}=e,{shadow:c,host:l}=NSe({id:a,colorScheme:s,themeLight:o,themeDark:u});this._shadow=c,this._host=l,n=!0}this._host.dataset.sentryFeedbackColorscheme=e.colorScheme;const i=r({shadow:this._shadow,host:this._host});return n&&gg.body.appendChild(this._host),i}}Qp.__initStatic();function pp(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function JSe(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=pp(r);return i=>n.then(a=>i(a.transaction(e,"readwrite").objectStore(e)))}function AU(t){return pp(t.getAllKeys())}function QSe(t,e,r){return t(n=>AU(n).then(i=>{if(!(i.length>=r))return n.put(e,Math.max(...i,0)+1),pp(n.transaction)}))}function ZSe(t){return t(e=>AU(e).then(r=>{if(r.length!==0)return pp(e.get(r[0])).then(n=>(e.delete(r[0]),pp(e.transaction).then(()=>n)))}))}function eOe(t){let e;function r(){return e==null&&(e=JSe(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async n=>{try{const i=await XH(n,t.textEncoder);await QSe(r(),i,t.maxQueueSize||30)}catch{}},pop:async()=>{try{const n=await ZSe(r());if(n)return hge(n,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch{}}}}function tOe(t){return e=>t({...e,createStore:eOe})}function rOe(t){return tOe(Xve(t))}const y8=1e6,Sv=String(0),nOe="main";let MU="",$U="",kU="",cT=Se.navigator&&Se.navigator.userAgent||"",DU="";const iOe=Se.navigator&&Se.navigator.language||Se.navigator&&Se.navigator.languages&&Se.navigator.languages[0]||"";function aOe(t){return typeof t=="object"&&t!==null&&"getHighEntropyValues"in t}const _8=Se.navigator&&Se.navigator.userAgentData;aOe(_8)&&_8.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(MU=t.platform||"",kU=t.architecture||"",DU=t.model||"",$U=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];cT=`${e.brand} ${e.version}`}}).catch(t=>{});function sOe(t){return!("thread_metadata"in t)}function oOe(t){return sOe(t)?lOe(t):t}function uOe(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return typeof e=="string"&&e.length!==32&&rt&&W.log(`[Profiling] Invalid traceId: ${e} on profiled event`),typeof e!="string"?"":e}function cOe(t,e,r,n){if(n.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(r==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);const i=uOe(n),a=oOe(r),s=e||(typeof n.start_timestamp=="number"?n.start_timestamp*1e3:Date.now()),o=typeof n.timestamp=="number"?n.timestamp*1e3:Date.now();return{event_id:t,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||Wp,runtime:{name:"javascript",version:Se.navigator.userAgent},os:{name:MU,version:$U,build_number:cT},device:{locale:iOe,model:DU,manufacturer:cT,architecture:kU,is_emulator:!1},debug_meta:{images:hOe(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||jt(),trace_id:i,active_thread_id:Sv,relative_start_ns:"0",relative_end_ns:((o-s)*1e6).toFixed(0)}]}}function IU(t){return t.op==="pageload"}function lOe(t){let e,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[Sv]:{name:nOe}}};if(!t.samples.length)return n;const i=t.samples[0].timestamp,a=typeof performance.timeOrigin=="number"?performance.timeOrigin:bn||0,s=a-(bn||a);for(let o=0;o{if(n==="transaction")for(let i=1;i{let d;const f=a.get(l);f?d=f:(d=i(l),a.set(l,d));for(let p=d.length-1;p>=0;p--){const m=d[p],b=m&&m.filename;if(m&&b){c[b]=e[l];break}}return c},{}),u=[];for(const c of t)c&&o[c]&&u.push({type:"sourcemap",code_file:c,debug_id:o[c]});return u}function pOe(t){return typeof t!="number"&&typeof t!="boolean"||typeof t=="number"&&isNaN(t)?(rt&&W.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(t)} of type ${JSON.stringify(typeof t)}.`),!1):t===!0||t===!1?!0:t<0||t>1?(rt&&W.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function mOe(t){return t.samples.length<2?(rt&&W.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):t.frames.length?!0:(rt&&W.log("[Profiling] Discarding profile because it contains no frames"),!1)}let RU=!1;const LU=3e4;function gOe(t){return typeof t=="function"}function vOe(){const t=Se.Profiler;if(!gOe(t)){rt&&W.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const e=10,r=Math.floor(LU/e);try{return new t({sampleInterval:e,maxBufferSize:r})}catch{rt&&(W.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),W.log("[Profiling] Disabling profiling for current user session.")),RU=!0}}function lT(t){if(RU)return rt&&W.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return rt&&W.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=Xe(),r=e&&e.getOptions();if(!r)return rt&&W.log("[Profiling] Profiling disabled, no options found."),!1;const n=r.profilesSampleRate;return pOe(n)?n?(n===!0?!0:Math.random()30){const r=Lu.keys().next().value;Lu.delete(r)}}function SOe(t){return t?lT(t)?dT(t):t:(rt&&W.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function dT(t){let e;IU(t)&&(e=Qo()*1e3);const r=vOe();if(!r)return t;rt&&W.log(`[Profiling] started profiling transaction: ${Pt(t).description}`);const n=jt();async function i(){return!t||!r?null:r.stop().then(u=>(a&&(Se.clearTimeout(a),a=void 0),rt&&W.log(`[Profiling] stopped profiling of transaction: ${Pt(t).description}`),u?(wOe(n,u),null):(rt&&W.log(`[Profiling] profiler returned null profile for: ${Pt(t).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(u=>(rt&&W.log("[Profiling] error while stopping profiler:",u),null))}let a=Se.setTimeout(()=>{rt&&W.log("[Profiling] max profile duration elapsed, stopping profiling for:",Pt(t).description),i()},LU);const s=t.end.bind(t);function o(){return t?(i().then(()=>{t.setContext("profile",{profile_id:n,start_timestamp:e}),s()},()=>{s()}),t):s()}return t.end=o,t}const NU="BrowserProfiling",OOe=()=>({name:NU,setupOnce(){},setup(t){const r=wr().getTransaction();if(r&&IU(r)&&lT(r)&&dT(r),typeof t.on!="function"){W.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}t.on("startTransaction",n=>{lT(n)&&dT(n)}),t.on("beforeEnvelope",n=>{if(!yOe())return;const i=fOe(n);if(!i.length)return;const a=[];for(const s of i){const o=s&&s.contexts,u=o&&o.profile&&o.profile.profile_id,c=o&&o.profile&&o.profile.start_timestamp;if(typeof u!="string"){rt&&W.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!u){rt&&W.log("[Profiling] cannot find profile for a transaction without a profile context");continue}o&&o.profile&&delete o.profile;const l=_Oe(u);if(!l){rt&&W.log(`[Profiling] Could not retrieve profile for transaction: ${u}`);continue}const d=bOe(u,c,l,s);d&&a.push(d)}dOe(n,a)})}}),TOe=zn(NU,OOe);let BU={};Se.Sentry&&Se.Sentry.Integrations&&(BU=Se.Sentry.Integrations);const EOe={...BU,...B0e,...Nye},FU=["activate","mount","update"],xOe=/(?:^|[-_])(\w)/g,POe=t=>t.replace(xOe,e=>e.toUpperCase()).replace(/[-_]/g,""),COe="",$1="",AOe=(t,e)=>t.repeat?t.repeat(e):t,Lh=(t,e)=>{if(!t)return $1;if(t.$root===t)return COe;if(!t.$options)return $1;const r=t.$options;let n=r.name||r._componentTag;const i=r.__file;if(!n&&i){const a=i.match(/([^/\\]+)\.vue$/);a&&(n=a[1])}return(n?`<${POe(n)}>`:$1)+(i&&e!==!1?` at ${i}`:"")},MOe=t=>{if(t&&(t._isVue||t.__isVue)&&t.$parent){const e=[];let r=0;for(;t;){if(e.length>0){const i=e[e.length-1];if(i.constructor===t.constructor){r++,t=t.$parent;continue}else r>0&&(e[e.length-1]=[i,r],r=0)}e.push(t),t=t.$parent}return` found in ${e.map((i,a)=>`${(a===0?"---> ":AOe(" ",5+a*2))+(Array.isArray(i)?`${Lh(i[0])}... (${i[1]} recursive calls)`:Lh(i))}`).join(` `)}`}return` (found in ${Lh(t)})`},jU=(t,e)=>{const{errorHandler:r,warnHandler:n,silent:i}=t.config;t.config.errorHandler=(a,s,o)=>{const u=Lh(s,!1),c=s?MOe(s):"",l={componentName:u,lifecycleHook:o,trace:c};if(e.attachProps&&s&&(s.$options&&s.$options.propsData?l.propsData=s.$options.propsData:s.$props&&(l.propsData=s.$props)),setTimeout(()=>{Vd(a,{captureContext:{contexts:{vue:l}},mechanism:{handled:!1}})}),typeof r=="function"&&r.call(t,a,s,o),e.logErrors){const d=typeof console<"u",f=`Error in ${o}: "${a&&a.toString()}"`;n?n.call(null,f,s,c):d&&!i&&Ga(()=>{console.error(`[Vue warn]: ${f}${c}`)})}}},$Oe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S8="ui.vue",kOe={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function fT(){return wr().getTransaction()}function DOe(t,e,r){t.$_sentryRootSpanTimer&&clearTimeout(t.$_sentryRootSpanTimer),t.$_sentryRootSpanTimer=setTimeout(()=>{t.$root&&t.$root.$_sentryRootSpan&&(t.$root.$_sentryRootSpan.end(e),t.$root.$_sentryRootSpan=void 0)},r)}const HU=t=>{const e=(t.hooks||[]).concat(FU).filter((n,i,a)=>a.indexOf(n)===i),r={};for(const n of e){const i=kOe[n];if(!i){$Oe&&W.warn(`Unknown hook: ${n}`);continue}for(const a of i)r[a]=function(){const s=this.$root===this;if(s){const c=fT();c&&(this.$_sentryRootSpan=this.$_sentryRootSpan||c.startChild({description:"Application Render",op:`${S8}.render`,origin:"auto.ui.vue"}))}const o=Lh(this,!1),u=Array.isArray(t.trackComponents)?t.trackComponents.indexOf(o)>-1:t.trackComponents;if(!(!s&&!u))if(this.$_sentrySpans=this.$_sentrySpans||{},a==i[0]){const c=this.$root&&this.$root.$_sentryRootSpan||fT();if(c){const l=this.$_sentrySpans[n];l&&l.end(),this.$_sentrySpans[n]=c.startChild({description:`Vue <${o}>`,op:`${S8}.${n}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[n];if(!c)return;c.end(),DOe(this,Qo(),t.timeout)}}}return r},IOe=je,ROe={Vue:IOe.Vue,attachProps:!0,logErrors:!0,hooks:FU,timeout:2e3,trackComponents:!1},zU="Vue",LOe=(t={})=>({name:zU,setupOnce(){},setup(e){BOe(e,t)}}),KP=LOe,NOe=zn(zU,KP);function BOe(t,e){const r={...ROe,...t.getOptions(),...e};if(!r.Vue&&!r.app){Ga(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}r.app?qx(r.app).forEach(i=>O8(i,r)):r.Vue&&O8(r.Vue,r)}const O8=(t,e)=>{const r=t;(r._instance&&r._instance.isMounted)===!0&&Ga(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),jU(t,e),Gd(e)&&t.mixin(HU({...e,...e.tracingOptions}))};function FOe(t={}){const e={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:vd}],version:vd}},defaultIntegrations:[...kP(),KP()],...t};Mye(e)}function jOe(t,e={}){return(r,n=!0,i=!0)=>{const a={"routing.instrumentation":"vue-router"};n&&Se&&Se.location&&r({name:Se.location.pathname,op:"pageload",origin:"auto.pageload.vue",tags:a,data:{[kn]:"url"}}),t.onError(s=>Vd(s,{mechanism:{handled:!1}})),t.beforeEach((s,o,u)=>{const c=o.name==null&&o.matched.length===0,l={params:s.params,query:s.query};let d=s.path,f="url";if(s.name&&e.routeLabel!=="path"?(d=s.name.toString(),f="custom"):s.matched[0]&&s.matched[0].path&&(d=s.matched[0].path,f="route"),n&&c){const p=fT();p&&((Pt(p).data||{})[kn]!=="custom"&&(p.updateName(d),p.setAttribute(kn,f)),p.setData("params",l.params),p.setData("query",l.query))}i&&!c&&(l[kn]=f,r({name:d,op:"navigation",origin:"auto.navigation.vue",tags:a,data:l})),u&&u()})}}const SBe=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:vV,BrowserClient:oV,BrowserProfilingIntegration:TOe,BrowserTracing:_be,Dedupe:yV,Feedback:Qp,FunctionToString:Nz,GlobalHandlers:OV,HttpContext:PV,Hub:sP,InboundFilters:Rz,Integrations:EOe,LinkedErrors:AV,ModuleMetadata:l0e,Replay:Jp,ReplayCanvas:_Se,SDK_VERSION:vd,Scope:Hi,TryCatch:$V,VueIntegration:NOe,WINDOW:Se,addBreadcrumb:Ls,addEventProcessor:Cz,addGlobalEventProcessor:tz,addIntegration:Pve,addTracingExtensions:dP,attachErrorHandler:jU,breadcrumbsIntegration:xP,browserApiErrorsIntegration:$P,browserTracingIntegration:Tbe,captureEvent:aP,captureException:Vd,captureMessage:Rge,captureUserFeedback:Lye,chromeStackLineParser:lV,close:Gge,configureScope:Lge,continueTrace:vve,createTracingMixins:HU,createTransport:mP,createUserFeedbackEnvelope:sV,dedupeIntegration:PP,defaultIntegrations:kV,defaultRequestInstrumentationOptions:cp,defaultStackLineParsers:hV,defaultStackParser:pV,eventFromException:iV,eventFromMessage:aV,exceptionFromError:OP,extractTraceparentData:ive,feedbackIntegration:XSe,flush:Uge,forceLoad:kye,functionToStringIntegration:vP,geckoStackLineParser:dV,getActiveSpan:mz,getActiveTransaction:Zo,getClient:Xe,getCurrentHub:bt,getCurrentScope:wr,getDefaultIntegrations:kP,getHubFromCarrier:z0,getSpanStatusFromHttpCode:uP,globalHandlersIntegration:CP,httpContextIntegration:AP,inboundFiltersIntegration:gP,init:FOe,instrumentOutgoingRequests:SP,isInitialized:Yge,lastEventId:Wge,linkedErrorsIntegration:MP,makeBrowserOfflineTransport:rOe,makeFetchTransport:uV,makeMain:qO,makeMultiplexedTransport:Qve,makeXHRTransport:cV,metrics:N0e,moduleMetadataIntegration:Dz,onLoad:Dye,onProfilingStartRouteTransaction:SOe,opera10StackLineParser:Zbe,opera11StackLineParser:rye,parameterize:n0e,replayCanvasIntegration:TU,replayIntegration:sSe,sendFeedback:PU,setContext:sz,setCurrentClient:Az,setExtra:Bge,setExtras:Nge,setMeasurement:gz,setTag:jge,setTags:Fge,setUser:Hge,showReportDialog:$ye,spanStatusfromHttpCode:sve,startBrowserTracingNavigationSpan:rV,startBrowserTracingPageLoadSpan:tV,startInactiveSpan:hP,startSpan:mve,startSpanManual:gve,startTransaction:Vge,trace:pve,vueIntegration:KP,vueRouterInstrumentation:jOe,winjsStackLineParser:fV,withIsolationScope:zge,withScope:Yp,wrap:Iye},Symbol.toStringTag,{value:"Module"}));var VU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Te,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",u="hour",c="day",l="week",d="month",f="quarter",p="year",m="date",b="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(x,$,D){var M=String(x);return!M||M.length>=$?x:""+Array($+1-M.length).join(D)+x},h={s:O,z:function(x){var $=-x.utcOffset(),D=Math.abs($),M=Math.floor(D/60),R=D%60;return($<=0?"+":"-")+O(M,2,"0")+":"+O(R,2,"0")},m:function x($,D){if($.date()1)return x(j[0])}else{var z=$.name;g[z]=$,R=z}return!M&&R&&(v=R),R||!M&&v},k=function(x,$){if(T(x))return x.clone();var D=typeof $=="object"?$:{};return D.date=x,D.args=arguments,new A(D)},w=h;w.l=C,w.i=T,w.w=function(x,$){return k(x,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var A=function(){function x(D){this.$L=C(D.locale,null,!0),this.parse(D)}var $=x.prototype;return $.parse=function(D){this.$d=function(M){var R=M.date,N=M.utc;if(R===null)return new Date(NaN);if(w.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var j=R.match(_);if(j){var z=j[2]-1||0,V=(j[7]||"0").substring(0,3);return N?new Date(Date.UTC(j[1],z,j[3]||1,j[4]||0,j[5]||0,j[6]||0,V)):new Date(j[1],z,j[3]||1,j[4]||0,j[5]||0,j[6]||0,V)}}return new Date(R)}(D),this.$x=D.x||{},this.init()},$.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},$.$utils=function(){return w},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(D,M){var R=k(D);return this.startOf(M)<=R&&R<=this.endOf(M)},$.isAfter=function(D,M){return k(D)=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};return i.default.locale(a,null,!0),a})})(YOe);var KOe={exports:{}};(function(t,e){(function(r,n){t.exports=n(js)})(Te,function(r){function n(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=n(r),a={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(s){return s+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return i.default.locale(a,null,!0),a})})(KOe);var qOe={exports:{}};(function(t,e){(function(r,n){t.exports=n(js)})(Te,function(r){function n(f){return f&&typeof f=="object"&&"default"in f?f:{default:f}}var i=n(r);function a(f){return f%10<5&&f%10>1&&~~(f/10)%10!=1}function s(f,p,m){var b=f+" ";switch(m){case"m":return p?"minuta":"minutę";case"mm":return b+(a(f)?"minuty":"minut");case"h":return p?"godzina":"godzinę";case"hh":return b+(a(f)?"godziny":"godzin");case"MM":return b+(a(f)?"miesiące":"miesięcy");case"yy":return b+(a(f)?"lata":"lat")}}var o="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),u="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),c=/D MMMM/,l=function(f,p){return c.test(p)?o[f.month()]:u[f.month()]};l.s=u,l.f=o;var d={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:l,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(f){return f+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:s,y:"rok",yy:s},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(d,null,!0),d})})(qOe);var XOe={exports:{}};(function(t,e){(function(r,n){t.exports=n(js)})(Te,function(r){function n(m){return m&&typeof m=="object"&&"default"in m?m:{default:m}}var i=n(r),a="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),o="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),u="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),c=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function l(m,b,_){var S,E;return _==="m"?b?"минута":"минуту":m+" "+(S=+m,E={mm:b?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[_].split("_"),S%10==1&&S%100!=11?E[0]:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?E[1]:E[2])}var d=function(m,b){return c.test(b)?a[m.month()]:s[m.month()]};d.s=s,d.f=a;var f=function(m,b){return c.test(b)?o[m.month()]:u[m.month()]};f.s=u,f.f=o;var p={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:d,monthsShort:f,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:l,mm:l,h:"час",hh:l,d:"день",dd:l,M:"месяц",MM:l,y:"год",yy:l},ordinal:function(m){return m},meridiem:function(m){return m<4?"ночи":m<12?"утра":m<17?"дня":"вечера"}};return i.default.locale(p,null,!0),p})})(XOe);var rb={exports:{}};rb.exports;(function(t,e){var r=200,n="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",s="[object Array]",o="[object Boolean]",u="[object Date]",c="[object Error]",l="[object Function]",d="[object GeneratorFunction]",f="[object Map]",p="[object Number]",m="[object Object]",b="[object Promise]",_="[object RegExp]",S="[object Set]",E="[object String]",O="[object Symbol]",h="[object WeakMap]",v="[object ArrayBuffer]",g="[object DataView]",T="[object Float32Array]",C="[object Float64Array]",k="[object Int8Array]",w="[object Int16Array]",A="[object Int32Array]",P="[object Uint8Array]",x="[object Uint8ClampedArray]",$="[object Uint16Array]",D="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,R=/\w*$/,N=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,z={};z[a]=z[s]=z[v]=z[g]=z[o]=z[u]=z[T]=z[C]=z[k]=z[w]=z[A]=z[f]=z[p]=z[m]=z[_]=z[S]=z[E]=z[O]=z[P]=z[x]=z[$]=z[D]=!0,z[c]=z[l]=z[h]=!1;var V=typeof Te=="object"&&Te&&Te.Object===Object&&Te,J=typeof self=="object"&&self&&self.Object===Object&&self,re=V||J||Function("return this")(),Y=e&&!e.nodeType&&e,U=Y&&!0&&t&&!t.nodeType&&t,K=U&&U.exports===Y;function X(F,q){return F.set(q[0],q[1]),F}function se(F,q){return F.add(q),F}function Ae(F,q){for(var te=-1,he=F?F.length:0;++te-1}function Za(F,q){var te=this.__data__,he=jc(te,F);return he<0?te.push([F,q]):te[he][1]=q,this}ki.prototype.clear=S_,ki.prototype.delete=Fc,ki.prototype.get=nf,ki.prototype.has=dm,ki.prototype.set=Za;function Ws(F){var q=-1,te=F?F.length:0;for(this.clear();++q-1&&F%1==0&&F-1&&F%1==0&&F<=i}function Wc(F){var q=typeof F;return!!F&&(q=="object"||q=="function")}function J_(F){return!!F&&typeof F=="object"}function cf(F){return ts(F)?$_(F):R_(F)}function bm(){return[]}function ym(){return!1}t.exports=q_})(rb,rb.exports);rb.exports;var GU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Te,function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(i,a,s){var o,u=function(f,p,m){m===void 0&&(m={});var b=new Date(f),_=function(S,E){E===void 0&&(E={});var O=E.timeZoneName||"short",h=S+"|"+O,v=n[h];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:O}),n[h]=v),v}(p,m);return _.formatToParts(b)},c=function(f,p){for(var m=u(f,p),b=[],_=0;_=0&&(b[h]=parseInt(O,10))}var v=b[3],g=v===24?0:v,T=b[0]+"-"+b[1]+"-"+b[2]+" "+g+":"+b[4]+":"+b[5]+":000",C=+f;return(s.utc(T).valueOf()-(C-=C%1e3))/6e4},l=a.prototype;l.tz=function(f,p){f===void 0&&(f=o);var m=this.utcOffset(),b=this.toDate(),_=b.toLocaleString("en-US",{timeZone:f}),S=Math.round((b-new Date(_))/1e3/60),E=s(_).$set("millisecond",this.$ms).utcOffset(15*-Math.round(b.getTimezoneOffset()/15)-S,!0);if(p){var O=E.utcOffset();E=E.add(m-O,"minute")}return E.$x.$timezone=f,E},l.offsetName=function(f){var p=this.$x.$timezone||s.tz.guess(),m=u(this.valueOf(),p,{timeZoneName:f}).find(function(b){return b.type.toLowerCase()==="timezonename"});return m&&m.value};var d=l.startOf;l.startOf=function(f,p){if(!this.$x||!this.$x.$timezone)return d.call(this,f,p);var m=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return d.call(m,f,p).tz(this.$x.$timezone,!0)},s.tz=function(f,p,m){var b=m&&p,_=m||p||o,S=c(+s(),_);if(typeof f!="string")return s(f).tz(_);var E=function(g,T,C){var k=g-60*T*1e3,w=c(k,C);if(T===w)return[k,T];var A=c(k-=60*(w-T)*1e3,C);return w===A?[k,w]:[g-60*Math.min(w,A)*1e3,Math.max(w,A)]}(s.utc(f,b).valueOf(),S,_),O=E[0],h=E[1],v=s(O).utcOffset(h);return v.$x.$timezone=_,v},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(f){o=f}}})})(GU);var JOe=GU.exports;const EBe=hi(JOe);var WU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Te,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(a,s,o){var u=s.prototype;o.utc=function(b){var _={date:b,utc:!0,args:arguments};return new s(_)},u.utc=function(b){var _=o(this.toDate(),{locale:this.$L,utc:!0});return b?_.add(this.utcOffset(),r):_},u.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),c.call(this,b)};var l=u.init;u.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else l.call(this)};var d=u.utcOffset;u.utcOffset=function(b,_){var S=this.$utils().u;if(S(b))return this.$u?0:S(this.$offset)?d.call(this):this.$offset;if(typeof b=="string"&&(b=function(v){v===void 0&&(v="");var g=v.match(n);if(!g)return null;var T=(""+g[0]).match(i)||["-",0,0],C=T[0],k=60*+T[1]+ +T[2];return k===0?0:C==="+"?k:-k}(b),b===null))return this;var E=Math.abs(b)<=16?60*b:b,O=this;if(_)return O.$offset=E,O.$u=b===0,O;if(b!==0){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(E+h,r)).$offset=E,O.$x.$localOffset=h}else O=this.utc();return O};var f=u.format;u.format=function(b){var _=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,_)},u.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var p=u.toDate;u.toDate=function(b){return b==="s"&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var m=u.diff;u.diff=function(b,_,S){if(b&&this.$u===b.$u)return m.call(this,b,_,S);var E=this.local(),O=o(b).local();return m.call(E,O,_,S)}}})})(WU);var QOe=WU.exports;const xBe=hi(QOe);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License */function Zp(t){return t+.5|0}const bo=(t,e,r)=>Math.max(Math.min(t,r),e);function fh(t){return bo(Zp(t*2.55),0,255)}function ko(t){return bo(Zp(t*255),0,255)}function ms(t){return bo(Zp(t/2.55)/100,0,1)}function T8(t){return bo(Zp(t*100),0,100)}const yi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hT=[..."0123456789ABCDEF"],ZOe=t=>hT[t&15],eTe=t=>hT[(t&240)>>4]+hT[t&15],vg=t=>(t&240)>>4===(t&15),tTe=t=>vg(t.r)&&vg(t.g)&&vg(t.b)&&vg(t.a);function rTe(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&yi[t[1]]*17,g:255&yi[t[2]]*17,b:255&yi[t[3]]*17,a:e===5?yi[t[4]]*17:255}:(e===7||e===9)&&(r={r:yi[t[1]]<<4|yi[t[2]],g:yi[t[3]]<<4|yi[t[4]],b:yi[t[5]]<<4|yi[t[6]],a:e===9?yi[t[7]]<<4|yi[t[8]]:255})),r}const nTe=(t,e)=>t<255?e(t):"";function iTe(t){var e=tTe(t)?ZOe:eTe;return t?"#"+e(t.r)+e(t.g)+e(t.b)+nTe(t.a,e):void 0}const aTe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function YU(t,e,r){const n=e*Math.min(r,1-r),i=(a,s=(a+t/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function sTe(t,e,r){const n=(i,a=(i+t/60)%6)=>r-r*e*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function oTe(t,e,r){const n=YU(t,1,.5);let i;for(e+r>1&&(i=1/(e+r),e*=i,r*=i),i=0;i<3;i++)n[i]*=1-e-r,n[i]+=e;return n}function uTe(t,e,r,n,i){return t===i?(e-r)/n+(e.5?l/(2-a-s):l/(a+s),u=uTe(r,n,i,l,a),u=u*60+.5),[u|0,c||0,o]}function XP(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(ko)}function JP(t,e,r){return XP(YU,t,e,r)}function cTe(t,e,r){return XP(oTe,t,e,r)}function lTe(t,e,r){return XP(sTe,t,e,r)}function KU(t){return(t%360+360)%360}function dTe(t){const e=aTe.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?fh(+e[5]):ko(+e[5]));const i=KU(+e[2]),a=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=cTe(i,a,s):e[1]==="hsv"?n=lTe(i,a,s):n=JP(i,a,s),{r:n[0],g:n[1],b:n[2],a:r}}function fTe(t,e){var r=qP(t);r[0]=KU(r[0]+e),r=JP(r),t.r=r[0],t.g=r[1],t.b=r[2]}function hTe(t){if(!t)return;const e=qP(t),r=e[0],n=T8(e[1]),i=T8(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${ms(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const E8={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},x8={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function pTe(){const t={},e=Object.keys(x8),r=Object.keys(E8);let n,i,a,s,o;for(n=0;n>16&255,a>>8&255,a&255]}return t}let bg;function mTe(t){bg||(bg=pTe(),bg.transparent=[0,0,0,0]);const e=bg[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const gTe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vTe(t){const e=gTe.exec(t);let r=255,n,i,a;if(e){if(e[7]!==n){const s=+e[7];r=e[8]?fh(s):bo(s*255,0,255)}return n=+e[1],i=+e[3],a=+e[5],n=255&(e[2]?fh(n):bo(n,0,255)),i=255&(e[4]?fh(i):bo(i,0,255)),a=255&(e[6]?fh(a):bo(a,0,255)),{r:n,g:i,b:a,a:r}}}function bTe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ms(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const k1=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,hl=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function yTe(t,e,r){const n=hl(ms(t.r)),i=hl(ms(t.g)),a=hl(ms(t.b));return{r:ko(k1(n+r*(hl(ms(e.r))-n))),g:ko(k1(i+r*(hl(ms(e.g))-i))),b:ko(k1(a+r*(hl(ms(e.b))-a))),a:t.a+r*(e.a-t.a)}}function yg(t,e,r){if(t){let n=qP(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=JP(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function qU(t,e){return t&&Object.assign(e||{},t)}function P8(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=ko(t[3]))):(e=qU(t,{r:0,g:0,b:0,a:1}),e.a=ko(e.a)),e}function _Te(t){return t.charAt(0)==="r"?vTe(t):dTe(t)}class mp{constructor(e){if(e instanceof mp)return e;const r=typeof e;let n;r==="object"?n=P8(e):r==="string"&&(n=rTe(e)||mTe(e)||_Te(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=qU(this._rgb);return e&&(e.a=ms(e.a)),e}set rgb(e){this._rgb=P8(e)}rgbString(){return this._valid?bTe(this._rgb):void 0}hexString(){return this._valid?iTe(this._rgb):void 0}hslString(){return this._valid?hTe(this._rgb):void 0}mix(e,r){if(e){const n=this.rgb,i=e.rgb;let a;const s=r===a?.5:r,o=2*s-1,u=n.a-i.a,c=((o*u===-1?o:(o+u)/(1+o*u))+1)/2;a=1-c,n.r=255&c*n.r+a*i.r+.5,n.g=255&c*n.g+a*i.g+.5,n.b=255&c*n.b+a*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(e,r){return e&&(this._rgb=yTe(this._rgb,e._rgb,r)),this}clone(){return new mp(this.rgb)}alpha(e){return this._rgb.a=ko(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=Zp(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=r,this}opaquer(e){const r=this._rgb;return r.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return yg(this._rgb,2,e),this}darken(e){return yg(this._rgb,2,-e),this}saturate(e){return yg(this._rgb,1,e),this}desaturate(e){return yg(this._rgb,1,-e),this}rotate(e){return fTe(this._rgb,e),this}}/*! * Chart.js v4.3.3 * https://www.chartjs.org * (c) 2023 Chart.js Contributors * Released under the MIT License */function as(){}const wTe=(()=>{let t=0;return()=>t++})();function it(t){return t===null||typeof t>"u"}function It(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Je(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function rr(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Kn(t,e){return rr(t)?t:e}function Le(t,e){return typeof t>"u"?e:t}const STe=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,XU=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Mt(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function vt(t,e,r,n){let i,a,s;if(It(t))if(a=t.length,n)for(i=a-1;i>=0;i--)e.call(r,t[i],i);else for(i=0;it,x:t=>t.x,y:t=>t.y};function ETe(t){const e=t.split("."),r=[];let n="";for(const i of e)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function xTe(t){const e=ETe(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function Vo(t,e){return(C8[e]||(C8[e]=xTe(e)))(t)}function QP(t){return t.charAt(0).toUpperCase()+t.slice(1)}const vp=t=>typeof t<"u",Uo=t=>typeof t=="function",A8=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function PTe(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const Vt=Math.PI,Rt=2*Vt,CTe=Rt+Vt,ab=Number.POSITIVE_INFINITY,ATe=Vt/180,nr=Vt/2,gu=Vt/4,M8=Vt*2/3,yo=Math.log10,ja=Math.sign;function Bh(t,e,r){return Math.abs(t-e)i-a).pop(),e}function Od(t){return!isNaN(parseFloat(t))&&isFinite(t)}function $Te(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}function QU(t,e,r){let n,i,a;for(n=0,i=t.length;nu&&c=Math.min(e,r)-n&&t<=Math.max(e,r)+n}function eC(t,e,r){r=r||(s=>t[s]1;)a=i+n>>1,r(a)?i=a:n=a;return{lo:i,hi:n}}const Ts=(t,e,r,n)=>eC(t,r,n?i=>{const a=t[i][e];return at[i][e]eC(t,r,n=>t[n][e]>=r);function RTe(t,e,r){let n=0,i=t.length;for(;nn&&t[i-1]>r;)i--;return n>0||i{const n="_onData"+QP(r),i=t[r];Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return t._chartjs.listeners.forEach(o=>{typeof o[n]=="function"&&o[n](...a)}),s}})})}function D8(t,e){const r=t._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(e);i!==-1&&n.splice(i,1),!(n.length>0)&&(e7.forEach(a=>{delete t[a]}),delete t._chartjs)}function t7(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const r7=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function n7(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,r7.call(window,()=>{n=!1,t.apply(e,r)}))}}function NTe(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const tC=t=>t==="start"?"left":t==="end"?"right":"center",Kr=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,BTe=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e;function i7(t,e,r){const n=e.length;let i=0,a=n;if(t._sorted){const{iScale:s,_parsed:o}=t,u=s.axis,{min:c,max:l,minDefined:d,maxDefined:f}=s.getUserBounds();d&&(i=Nr(Math.min(Ts(o,u,c).lo,r?n:Ts(e,u,s.getPixelForValue(c)).lo),0,n-1)),f?a=Nr(Math.max(Ts(o,s.axis,l,!0).hi+1,r?0:Ts(e,u,s.getPixelForValue(l),!0).hi+1),i,n)-i:a=n-i}return{start:i,count:a}}function a7(t){const{xScale:e,yScale:r,_scaleRanges:n}=t,i={xmin:e.min,xmax:e.max,ymin:r.min,ymax:r.max};if(!n)return t._scaleRanges=i,!0;const a=n.xmin!==e.min||n.xmax!==e.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),a}const _g=t=>t===0||t===1,I8=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Rt/r)),R8=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*Rt/r)+1,Fh={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*nr)+1,easeOutSine:t=>Math.sin(t*nr),easeInOutSine:t=>-.5*(Math.cos(Vt*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>_g(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>_g(t)?t:I8(t,.075,.3),easeOutElastic:t=>_g(t)?t:R8(t,.075,.3),easeInOutElastic(t){return _g(t)?t:t<.5?.5*I8(t*2,.1125,.45):.5+.5*R8(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Fh.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Fh.easeInBounce(t*2)*.5:Fh.easeOutBounce(t*2-1)*.5+.5};function rC(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function L8(t){return rC(t)?t:new mp(t)}function D1(t){return rC(t)?t:new mp(t).saturate(.5).darken(.1).hexString()}const FTe=["x","y","borderWidth","radius","tension"],jTe=["color","borderColor","backgroundColor"];function HTe(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:jTe},numbers:{type:"number",properties:FTe}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function zTe(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const N8=new Map;function VTe(t,e){e=e||{};const r=t+JSON.stringify(e);let n=N8.get(r);return n||(n=new Intl.NumberFormat(t,e),N8.set(r,n)),n}function em(t,e,r){return VTe(e,r).format(t)}const s7={values(t){return It(t)?t:""+t},numeric(t,e,r){if(t===0)return"0";const n=this.chart.options.locale;let i,a=t;if(r.length>1){const c=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=UTe(t,r)}const s=yo(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(u,this.options.ticks.format),em(t,n,u)},logarithmic(t,e,r){if(t===0)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(yo(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?s7.numeric.call(this,t,e,r):""}};function UTe(t,e){let r=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(r)>=1&&t!==Math.floor(t)&&(r=t-Math.floor(t)),r}var zy={formatters:s7};function GTe(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,r)=>r.lineWidth,tickColor:(e,r)=>r.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zy.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const pc=Object.create(null),mT=Object.create(null);function jh(t,e){if(!e)return t;const r=e.split(".");for(let n=0,i=r.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>D1(i.backgroundColor),this.hoverBorderColor=(n,i)=>D1(i.borderColor),this.hoverColor=(n,i)=>D1(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(r)}set(e,r){return I1(this,e,r)}get(e){return jh(this,e)}describe(e,r){return I1(mT,e,r)}override(e,r){return I1(pc,e,r)}route(e,r,n,i){const a=jh(this,e),s=jh(this,n),o="_"+r;Object.defineProperties(a,{[o]:{value:a[r],writable:!0},[r]:{enumerable:!0,get(){const u=this[o],c=s[i];return Je(u)?Object.assign({},c,u):Le(u,c)},set(u){this[o]=u}}})}apply(e){e.forEach(r=>r(this))}}var ir=new WTe({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[HTe,zTe,GTe]);function YTe(t){return!t||it(t.size)||it(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function sb(t,e,r,n,i){let a=e[i];return a||(a=e[i]=t.measureText(i).width,r.push(i)),a>n&&(n=a),n}function KTe(t,e,r,n){n=n||{};let i=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(i=n.data={},a=n.garbageCollect=[],n.font=e),t.save(),t.font=e;let s=0;const o=r.length;let u,c,l,d,f;for(u=0;ur.length){for(u=0;u0&&t.stroke()}}function Es(t,e,r){return r=r||.5,!e||t&&t.x>e.left-r&&t.xe.top-r&&t.y0&&a.strokeColor!=="";let u,c;for(t.save(),t.font=i.string,JTe(t,a),u=0;u+t||0;function nC(t,e){const r={},n=Je(e),i=n?Object.keys(e):e,a=Je(t)?n?s=>Le(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)r[s]=nEe(a(s));return r}function u7(t){return nC(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Gu(t){return nC(t,["topLeft","topRight","bottomLeft","bottomRight"])}function nn(t){const e=u7(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Tr(t,e){t=t||{},e=e||ir.font;let r=Le(t.size,e.size);typeof r=="string"&&(r=parseInt(r,10));let n=Le(t.style,e.style);n&&!(""+n).match(tEe)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:Le(t.family,e.family),lineHeight:rEe(Le(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Le(t.weight,e.weight),string:""};return i.string=YTe(i),i}function hh(t,e,r,n){let i=!0,a,s,o;for(a=0,s=t.length;ar&&o===0?0:o+u;return{min:s(n,-Math.abs(a)),max:s(i,a)}}function eu(t,e){return Object.assign(Object.create(t),e)}function iC(t,e=[""],r,n,i=()=>t[0]){const a=r||t;typeof n>"u"&&(n=f7("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:n,_getTarget:i,override:o=>iC([o,...t],e,a,n)};return new Proxy(s,{deleteProperty(o,u){return delete o[u],delete o._keys,delete t[0][u],!0},get(o,u){return l7(o,u,()=>fEe(u,e,t,o))},getOwnPropertyDescriptor(o,u){return Reflect.getOwnPropertyDescriptor(o._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,u){return j8(o).includes(u)},ownKeys(o){return j8(o)},set(o,u,c){const l=o._storage||(o._storage=i());return o[u]=l[u]=c,delete o._keys,!0}})}function Td(t,e,r,n){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:c7(t,n),setContext:a=>Td(t,a,r,n),override:a=>Td(t.override(a),e,r,n)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete t[s],!0},get(a,s,o){return l7(a,s,()=>sEe(a,s,o))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(t,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,s)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(a,s){return Reflect.has(t,s)},ownKeys(){return Reflect.ownKeys(t)},set(a,s,o){return t[s]=o,delete a[s],!0}})}function c7(t,e={scriptable:!0,indexable:!0}){const{_scriptable:r=e.scriptable,_indexable:n=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:r,indexable:n,isScriptable:Uo(r)?r:()=>r,isIndexable:Uo(n)?n:()=>n}}const aEe=(t,e)=>t?t+QP(e):e,aC=(t,e)=>Je(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function l7(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=r();return t[e]=n,n}function sEe(t,e,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:s}=t;let o=n[e];return Uo(o)&&s.isScriptable(e)&&(o=oEe(e,o,t,r)),It(o)&&o.length&&(o=uEe(e,o,t,s.isIndexable)),aC(e,o)&&(o=Td(o,i,a&&a[e],s)),o}function oEe(t,e,r,n){const{_proxy:i,_context:a,_subProxy:s,_stack:o}=r;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let u=e(a,s||n);return o.delete(t),aC(t,u)&&(u=sC(i._scopes,i,t,u)),u}function uEe(t,e,r,n){const{_proxy:i,_context:a,_subProxy:s,_descriptors:o}=r;if(typeof a.index<"u"&&n(t))return e[a.index%e.length];if(Je(e[0])){const u=e,c=i._scopes.filter(l=>l!==u);e=[];for(const l of u){const d=sC(c,i,t,l);e.push(Td(d,a,s&&s[t],o))}}return e}function d7(t,e,r){return Uo(t)?t(e,r):t}const cEe=(t,e)=>t===!0?e:typeof t=="string"?Vo(e,t):void 0;function lEe(t,e,r,n,i){for(const a of e){const s=cEe(r,a);if(s){t.add(s);const o=d7(s._fallback,r,i);if(typeof o<"u"&&o!==r&&o!==n)return o}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function sC(t,e,r,n){const i=e._rootScopes,a=d7(e._fallback,r,n),s=[...t,...i],o=new Set;o.add(n);let u=F8(o,s,r,a||r,n);return u===null||typeof a<"u"&&a!==r&&(u=F8(o,s,a,u,n),u===null)?!1:iC(Array.from(o),[""],i,a,()=>dEe(e,r,n))}function F8(t,e,r,n,i){for(;r;)r=lEe(t,e,r,n,i);return r}function dEe(t,e,r){const n=t._getTarget();e in n||(n[e]={});const i=n[e];return It(i)&&Je(r)?r:i||{}}function fEe(t,e,r,n){let i;for(const a of e)if(i=f7(aEe(a,t),r),typeof i<"u")return aC(t,i)?sC(r,n,t,i):i}function f7(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function j8(t){let e=t._keys;return e||(e=t._keys=hEe(t._scopes)),e}function hEe(t){const e=new Set;for(const r of t)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))e.add(n);return Array.from(e)}function h7(t,e,r,n){const{iScale:i}=t,{key:a="r"}=this._parsing,s=new Array(n);let o,u,c,l;for(o=0,u=n;oet==="x"?"y":"x";function mEe(t,e,r,n){const i=t.skip?e:t,a=e,s=r.skip?e:r,o=pT(a,i),u=pT(s,a);let c=o/(o+u),l=u/(o+u);c=isNaN(c)?0:c,l=isNaN(l)?0:l;const d=n*c,f=n*l;return{previous:{x:a.x-d*(s.x-i.x),y:a.y-d*(s.y-i.y)},next:{x:a.x+f*(s.x-i.x),y:a.y+f*(s.y-i.y)}}}function gEe(t,e,r){const n=t.length;let i,a,s,o,u,c=Ed(t,0);for(let l=0;l!c.skip)),e.cubicInterpolationMode==="monotone")bEe(t,i);else{let c=n?t[t.length-1]:t[0];for(a=0,s=t.length;at.ownerDocument.defaultView.getComputedStyle(t,null);function wEe(t,e){return Gy(t).getPropertyValue(e)}const SEe=["top","right","bottom","left"];function Wu(t,e,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=SEe[i];n[a]=parseFloat(t[e+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const OEe=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function TEe(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:i,offsetY:a}=n;let s=!1,o,u;if(OEe(i,a,t.target))o=i,u=a;else{const c=e.getBoundingClientRect();o=n.clientX-c.left,u=n.clientY-c.top,s=!0}return{x:o,y:u,box:s}}function Tu(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,i=Gy(r),a=i.boxSizing==="border-box",s=Wu(i,"padding"),o=Wu(i,"border","width"),{x:u,y:c,box:l}=TEe(t,r),d=s.left+(l&&o.left),f=s.top+(l&&o.top);let{width:p,height:m}=e;return a&&(p-=s.width+o.width,m-=s.height+o.height),{x:Math.round((u-d)/p*r.width/n),y:Math.round((c-f)/m*r.height/n)}}function EEe(t,e,r){let n,i;if(e===void 0||r===void 0){const a=oC(t);if(!a)e=t.clientWidth,r=t.clientHeight;else{const s=a.getBoundingClientRect(),o=Gy(a),u=Wu(o,"border","width"),c=Wu(o,"padding");e=s.width-c.width-u.width,r=s.height-c.height-u.height,n=ob(o.maxWidth,a,"clientWidth"),i=ob(o.maxHeight,a,"clientHeight")}}return{width:e,height:r,maxWidth:n||ab,maxHeight:i||ab}}const Sg=t=>Math.round(t*10)/10;function xEe(t,e,r,n){const i=Gy(t),a=Wu(i,"margin"),s=ob(i.maxWidth,t,"clientWidth")||ab,o=ob(i.maxHeight,t,"clientHeight")||ab,u=EEe(t,e,r);let{width:c,height:l}=u;if(i.boxSizing==="content-box"){const f=Wu(i,"border","width"),p=Wu(i,"padding");c-=p.width+f.width,l-=p.height+f.height}return c=Math.max(0,c-a.width),l=Math.max(0,n?c/n:l-a.height),c=Sg(Math.min(c,s,u.maxWidth)),l=Sg(Math.min(l,o,u.maxHeight)),c&&!l&&(l=Sg(c/2)),(e!==void 0||r!==void 0)&&n&&u.height&&l>u.height&&(l=u.height,c=Sg(Math.floor(l*n))),{width:c,height:l}}function H8(t,e,r){const n=e||1,i=Math.floor(t.height*n),a=Math.floor(t.width*n);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),t.currentDevicePixelRatio!==n||s.height!==i||s.width!==a?(t.currentDevicePixelRatio=n,s.height=i,s.width=a,t.ctx.setTransform(n,0,0,n,0,0),!0):!1}const PEe=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return t}();function z8(t,e){const r=wEe(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Eu(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function CEe(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:n==="middle"?r<.5?t.y:e.y:n==="after"?r<1?t.y:e.y:r>0?e.y:t.y}}function AEe(t,e,r,n){const i={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},s=Eu(t,i,r),o=Eu(i,a,r),u=Eu(a,e,r),c=Eu(s,o,r),l=Eu(o,u,r);return Eu(c,l,r)}const MEe=function(t,e){return{x(r){return t+t+e-r},setWidth(r){e=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},$Ee=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Xl(t,e,r){return t?MEe(e,r):$Ee()}function g7(t,e){let r,n;(e==="ltr"||e==="rtl")&&(r=t.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",e,"important"),t.prevTextDirection=n)}function v7(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function b7(t){return t==="angle"?{between:bp,compare:kTe,normalize:Qn}:{between:Os,compare:(e,r)=>e-r,normalize:e=>e}}function V8({start:t,end:e,count:r,loop:n,style:i}){return{start:t%r,end:e%r,loop:n&&(e-t+1)%r===0,style:i}}function kEe(t,e,r){const{property:n,start:i,end:a}=r,{between:s,normalize:o}=b7(n),u=e.length;let{start:c,end:l,loop:d}=t,f,p;if(d){for(c+=u,l+=u,f=0,p=u;fu(i,O,S)&&o(i,O)!==0,v=()=>o(a,S)===0||u(a,O,S),g=()=>b||h(),T=()=>!b||v();for(let C=l,k=l;C<=d;++C)E=e[C%s],!E.skip&&(S=c(E[n]),S!==O&&(b=u(S,i,a),_===null&&g()&&(_=o(S,i)===0?C:k),_!==null&&T()&&(m.push(V8({start:_,end:C,loop:f,count:s,style:p})),_=null),k=C,O=S));return _!==null&&m.push(V8({start:_,end:d,loop:f,count:s,style:p})),m}function _7(t,e){const r=[],n=t.segments;for(let i=0;ii&&t[a%e].skip;)a--;return a%=e,{start:i,end:a}}function IEe(t,e,r,n){const i=t.length,a=[];let s=e,o=t[e],u;for(u=e+1;u<=r;++u){const c=t[u%i];c.skip||c.stop?o.skip||(n=!1,a.push({start:e%i,end:(u-1)%i,loop:n}),e=s=c.stop?u:null):(s=u,o.skip&&(e=u)),o=c}return s!==null&&a.push({start:e%i,end:s%i,loop:n}),a}function REe(t,e){const r=t.points,n=t.options.spanGaps,i=r.length;if(!i)return[];const a=!!t._loop,{start:s,end:o}=DEe(r,i,a,n);if(n===!0)return U8(t,[{start:s,end:o,loop:a}],r,e);const u=oo({chart:e,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=r7.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let r=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const a=n.items;let s=a.length-1,o=!1,u;for(;s>=0;--s)u=a[s],u._active?(u._total>n.duration&&(n.duration=u._total),u.tick(e),o=!0):(a[s]=a[a.length-1],a.pop());o&&(i.draw(),this._notify(i,n,e,"progress")),a.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),r+=a.length}),this._lastDate=e,r===0&&(this._running=!1)}_getAnims(e){const r=this._charts;let n=r.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(e,n)),n}listen(e,r,n){this._getAnims(e).listeners[r].push(n)}add(e,r){!r||!r.length||this._getAnims(e).items.push(...r)}has(e){return this._getAnims(e).items.length>0}start(e){const r=this._charts.get(e);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const r=this._charts.get(e);return!(!r||!r.running||!r.items.length)}stop(e){const r=this._charts.get(e);if(!r||!r.items.length)return;const n=r.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();r.items=[],this._notify(e,r,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var os=new BEe;const W8="transparent",FEe={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=L8(t||W8),i=n.valid&&L8(e||W8);return i&&i.valid?i.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class jEe{constructor(e,r,n,i){const a=r[n];i=hh([e.to,i,a,e.from]);const s=hh([e.from,a,i]);this._active=!0,this._fn=e.fn||FEe[e.type||typeof s],this._easing=Fh[e.easing]||Fh.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=r,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,r,n){if(this._active){this._notify(!1);const i=this._target[this._prop],a=n-this._start,s=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=hh([e.to,r,i,e.from]),this._from=hh([e.from,i,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const r=e-this._start,n=this._duration,i=this._prop,a=this._from,s=this._loop,o=this._to;let u;if(this._active=a!==o&&(s||r1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(a,o,u)}wait(){const e=this._promises||(this._promises=[]);return new Promise((r,n)=>{e.push({res:r,rej:n})})}_notify(e){const r=e?"res":"rej",n=this._promises||[];for(let i=0;i{const a=e[i];if(!Je(a))return;const s={};for(const o of r)s[o]=a[o];(It(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!n.has(o))&&n.set(o,s)})})}_animateOptions(e,r){const n=r.options,i=zEe(e,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&HEe(e.options.$animations,n).then(()=>{e.options=n},()=>{}),a}_createAnimations(e,r){const n=this._properties,i=[],a=e.$animations||(e.$animations={}),s=Object.keys(r),o=Date.now();let u;for(u=s.length-1;u>=0;--u){const c=s[u];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,r));continue}const l=r[c];let d=a[c];const f=n.get(c);if(d)if(f&&d.active()){d.update(f,l,o);continue}else d.cancel();if(!f||!f.duration){e[c]=l;continue}a[c]=d=new jEe(f,e,c,l),i.push(d)}return i}update(e,r){if(this._properties.size===0){Object.assign(e,r);return}const n=this._createAnimations(e,r);if(n.length)return os.add(this._chart,n),!0}}function HEe(t,e){const r=[],n=Object.keys(e);for(let i=0;i0||!r&&a<0)return i.index}return null}function J8(t,e){const{chart:r,_cachedMeta:n}=t,i=r._stacks||(r._stacks={}),{iScale:a,vScale:s,index:o}=n,u=a.axis,c=s.axis,l=WEe(a,s,n),d=e.length;let f;for(let p=0;pr[n].axis===e).shift()}function qEe(t,e){return eu(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function XEe(t,e,r){return eu(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function Ff(t,e){const r=t.controller.index,n=t.vScale&&t.vScale.axis;if(n){e=e||t._parsed;for(const i of e){const a=i._stacks;if(!a||a[n]===void 0||a[n][r]===void 0)return;delete a[n][r],a[n]._visualValues!==void 0&&a[n]._visualValues[r]!==void 0&&delete a[n]._visualValues[r]}}}const L1=t=>t==="reset"||t==="none",Q8=(t,e)=>e?t:Object.assign({},t),JEe=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:S7(r,!0),values:null};class Wi{constructor(e,r){this.chart=e,this._ctx=e.ctx,this.index=r,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=q8(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&Ff(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,r=this._cachedMeta,n=this.getDataset(),i=(d,f,p,m)=>d==="x"?f:d==="r"?m:p,a=r.xAxisID=Le(n.xAxisID,R1(e,"x")),s=r.yAxisID=Le(n.yAxisID,R1(e,"y")),o=r.rAxisID=Le(n.rAxisID,R1(e,"r")),u=r.indexAxis,c=r.iAxisID=i(u,a,s,o),l=r.vAxisID=i(u,s,a,o);r.xScale=this.getScaleForId(a),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(o),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const r=this._cachedMeta;return e===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&D8(this._data,this),e._stacked&&Ff(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(Je(r))this._data=GEe(r);else if(n!==r){if(n){D8(n,this);const i=this._cachedMeta;Ff(i),i._parsed=[]}r&&Object.isExtensible(r)&<e(r,this),this._syncList=[],this._data=r}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const r=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const a=r._stacked;r._stacked=q8(r.vScale,r),r.stack!==n.stack&&(i=!0,Ff(r),r.stack=n.stack),this._resyncElements(e),(i||a!==r._stacked)&&J8(this,r._parsed)}configure(){const e=this.chart.config,r=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),r,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,r){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:s}=n,o=a.axis;let u=e===0&&r===i.length?!0:n._sorted,c=e>0&&n._parsed[e-1],l,d,f;if(this._parsing===!1)n._parsed=i,n._sorted=!0,f=i;else{It(i[e])?f=this.parseArrayData(n,i,e,r):Je(i[e])?f=this.parseObjectData(n,i,e,r):f=this.parsePrimitiveData(n,i,e,r);const p=()=>d[o]===null||c&&d[o]b||d=0;--f)if(!m()){this.updateRangeFromParsed(c,e,p,u);break}}return c}getAllParsedValues(e){const r=this._cachedMeta._parsed,n=[];let i,a,s;for(i=0,a=r.length;i=0&&ethis.getContext(n,i,r),b=c.resolveNamedOptions(f,p,m,d);return b.$shared&&(b.$shared=u,a[s]=Object.freeze(Q8(b,u))),b}_resolveAnimations(e,r,n){const i=this.chart,a=this._cachedDataOpts,s=`animation-${r}`,o=a[s];if(o)return o;let u;if(i.options.animation!==!1){const l=this.chart.config,d=l.datasetAnimationScopeKeys(this._type,r),f=l.getOptionScopes(this.getDataset(),d);u=l.createResolver(f,this.getContext(e,n,r))}const c=new w7(i,u&&u.animations);return u&&u._cacheable&&(a[s]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,r){return!r||L1(e)||this.chart._animationsDisabled}_getSharedOptions(e,r){const n=this.resolveDataElementOptions(e,r),i=this._sharedOptions,a=this.getSharedOptions(n),s=this.includeOptions(r,a)||a!==i;return this.updateSharedOptions(a,r,n),{sharedOptions:a,includeOptions:s}}updateElement(e,r,n,i){L1(i)?Object.assign(e,n):this._resolveAnimations(r,i).update(e,n)}updateSharedOptions(e,r,n){e&&!L1(r)&&this._resolveAnimations(void 0,r).update(e,n)}_setStyle(e,r,n,i){e.active=i;const a=this.getStyle(r,i);this._resolveAnimations(r,n,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,r,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,r,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const r=this._data,n=this._cachedMeta.data;for(const[o,u,c]of this._syncList)this[o](u,c);this._syncList=[];const i=n.length,a=r.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,e):a{for(c.length+=r,o=c.length-1;o>=s;o--)c[o]=c[o-r]};for(u(a),o=e;oi-a))}return t._cache.$bar}function ZEe(t){const e=t.iScale,r=QEe(e,t.type);let n=e._length,i,a,s,o;const u=()=>{s===32767||s===-32768||(vp(o)&&(n=Math.min(n,Math.abs(s-o)||n)),o=s)};for(i=0,a=r.length;i0?i[t-1]:null,o=tMath.abs(o)&&(u=o,c=s),e[r.axis]=c,e._custom={barStart:u,barEnd:c,start:i,end:a,min:s,max:o}}function O7(t,e,r,n){return It(t)?rxe(t,e,r,n):e[r.axis]=r.parse(t,n),e}function Z8(t,e,r,n){const i=t.iScale,a=t.vScale,s=i.getLabels(),o=i===a,u=[];let c,l,d,f;for(c=r,l=r+n;c=r?1:-1)}function ixe(t){let e,r,n,i,a;return t.horizontal?(e=t.base>t.x,r="left",n="right"):(e=t.baseu.controller.options.grouped),a=n.options.stacked,s=[],o=u=>{const c=u.controller.getParsed(r),l=c&&c[u.vScale.axis];if(it(l)||isNaN(l))return!0};for(const u of i)if(!(r!==void 0&&o(u))&&((a===!1||s.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,r,n){const i=this._getStacks(e,n),a=r!==void 0?i.indexOf(r):-1;return a===-1?i.length-1:a}_getRuler(){const e=this.options,r=this._cachedMeta,n=r.iScale,i=[];let a,s;for(a=0,s=r.data.length;a=0;--n)r=Math.max(r,e[n].size(this.resolveDataElementOptions(n))/2);return r>0&&r}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart.data.labels||[],{xScale:i,yScale:a}=r,s=this.getParsed(e),o=i.getLabelForValue(s.x),u=a.getLabelForValue(s.y),c=s._custom;return{label:n[e]||"",value:"("+o+", "+u+(c?", "+c:"")+")"}}update(e){const r=this._cachedMeta.data;this.updateElements(r,0,r.length,e)}updateElements(e,r,n,i){const a=i==="reset",{iScale:s,vScale:o}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(r,i),l=s.axis,d=o.axis;for(let f=r;fbp(O,o,u,!0)?1:Math.max(h,h*r,v,v*r),m=(O,h,v)=>bp(O,o,u,!0)?-1:Math.min(h,h*r,v,v*r),b=p(0,c,d),_=p(nr,l,f),S=m(Vt,c,d),E=m(Vt+nr,l,f);n=(b-S)/2,i=(_-E)/2,a=-(b+S)/2,s=-(_+E)/2}return{ratioX:n,ratioY:i,offsetX:a,offsetY:s}}class Nu extends Wi{constructor(e,r){super(e,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,r){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let a=u=>+n[u];if(Je(n[e])){const{key:u="value"}=this._parsing;a=c=>+Vo(n[c],u)}let s,o;for(s=e,o=e+r;s0&&!isNaN(e)?Rt*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=em(r._parsed[e],n.options.locale);return{label:i[e]||"",value:a}}getMaxBorderWidth(e){let r=0;const n=this.chart;let i,a,s,o,u;if(!e){for(i=0,a=n.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),ae(Nu,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return r.labels.map((a,s)=>{const u=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}});class Ev extends Wi{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const r=this._cachedMeta,{dataset:n,data:i=[],_dataset:a}=r,s=this.chart._animationsDisabled;let{start:o,count:u}=i7(r,i,s);this._drawStart=o,this._drawCount=u,a7(r)&&(o=0,u=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},e),this.updateElements(i,o,u,e)}updateElements(e,r,n,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:u,_dataset:c}=this._cachedMeta,{sharedOptions:l,includeOptions:d}=this._getSharedOptions(r,i),f=s.axis,p=o.axis,{spanGaps:m,segment:b}=this.options,_=Od(m)?m:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||a||i==="none",E=r+n,O=e.length;let h=r>0&&this.getParsed(r-1);for(let v=0;v=E){T.skip=!0;continue}const C=this.getParsed(v),k=it(C[p]),w=T[f]=s.getPixelForValue(C[f],v),A=T[p]=a||k?o.getBasePixel():o.getPixelForValue(u?this.applyStack(o,C,u):C[p],v);T.skip=isNaN(w)||isNaN(A)||k,T.stop=v>0&&Math.abs(C[f]-h[f])>_,b&&(T.parsed=C,T.raw=c.data[v]),d&&(T.options=l||this.resolveDataElementOptions(v,g.active?"active":i)),S||this.updateElement(g,v,T,i),h=C}}getMaxOverflow(){const e=this._cachedMeta,r=e.dataset,n=r.options&&r.options.borderWidth||0,i=e.data||[];if(!i.length)return n;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,a,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}ae(Ev,"id","line"),ae(Ev,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(Ev,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class Hh extends Wi{constructor(e,r){super(e,r),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=em(r._parsed[e].r,n.options.locale);return{label:i[e]||"",value:a}}parseObjectData(e,r,n,i){return h7.bind(this)(e,r,n,i)}update(e){const r=this._cachedMeta.data;this._updateRadius(),this.updateElements(r,0,r.length,e)}getMinMax(){const e=this._cachedMeta,r={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((n,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(ar.max&&(r.max=a))}),r}_updateRadius(){const e=this.chart,r=e.chartArea,n=e.options,i=Math.min(r.right-r.left,r.bottom-r.top),a=Math.max(i/2,0),s=Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0),o=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(e,r,n,i){const a=i==="reset",s=this.chart,u=s.options.animation,c=this._cachedMeta.rScale,l=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Vt;let p=f,m;const b=360/this.countVisibleElements();for(m=0;m{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&r++}),r}_computeAngle(e,r,n){return this.chart.getDataVisibility(e)?zi(this.resolveDataElementOptions(e,r).angle||n):0}}ae(Hh,"id","polarArea"),ae(Hh,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(Hh,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const r=e.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:n,color:i}}=e.legend.options;return r.labels.map((a,s)=>{const u=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class vT extends Nu{}ae(vT,"id","pie"),ae(vT,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class xv extends Wi{getLabelAndValue(e){const r=this._cachedMeta.vScale,n=this.getParsed(e);return{label:r.getLabels()[e],value:""+r.getLabelForValue(n[r.axis])}}parseObjectData(e,r,n,i){return h7.bind(this)(e,r,n,i)}update(e){const r=this._cachedMeta,n=r.dataset,i=r.data||[],a=r.iScale.getLabels();if(n.points=i,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const o={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(n,void 0,o,e)}this.updateElements(i,0,i.length,e)}updateElements(e,r,n,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let o=r;o0&&this.getParsed(r-1);for(let h=r;h0&&Math.abs(g[p]-O[p])>S,_&&(T.parsed=g,T.raw=c.data[h]),f&&(T.options=d||this.resolveDataElementOptions(h,v.active?"active":i)),E||this.updateElement(v,h,T,i),O=g}this.updateSharedOptions(d,i,l)}getMaxOverflow(){const e=this._cachedMeta,r=e.data||[];if(!this.options.showLine){let o=0;for(let u=r.length-1;u>=0;--u)o=Math.max(o,r[u].size(this.resolveDataElementOptions(u))/2);return o>0&&o}const n=e.dataset,i=n.options&&n.options.borderWidth||0;if(!r.length)return i;const a=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,a,s)/2}}ae(Pv,"id","scatter"),ae(Pv,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(Pv,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var cxe=Object.freeze({__proto__:null,BarController:Ov,BubbleController:Tv,DoughnutController:Nu,LineController:Ev,PieController:vT,PolarAreaController:Hh,RadarController:xv,ScatterController:Pv});function bu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class uC{constructor(e){ae(this,"options");this.options=e||{}}static override(e){Object.assign(uC.prototype,e)}init(){}formats(){return bu()}parse(){return bu()}format(){return bu()}add(){return bu()}diff(){return bu()}startOf(){return bu()}endOf(){return bu()}}var T7={_date:uC};function lxe(t,e,r,n){const{controller:i,data:a,_sorted:s}=t,o=i._cachedMeta.iScale;if(o&&e===o.axis&&e!=="r"&&s&&a.length){const u=o._reversePixels?ITe:Ts;if(n){if(i._sharedOptions){const c=a[0],l=typeof c.getRange=="function"&&c.getRange(e);if(l){const d=u(a,e,r-l),f=u(a,e,r+l);return{lo:d.lo,hi:f.hi}}}}else return u(a,e,r)}return{lo:0,hi:a.length-1}}function tm(t,e,r,n,i){const a=t.getSortedVisibleDatasetMetas(),s=r[e];for(let o=0,u=a.length;o{u[s](e[r],i)&&(a.push({element:u,datasetIndex:c,index:l}),o=o||u.inRange(e.x,e.y,i))}),n&&!o?[]:a}var pxe={evaluateInteractionItems:tm,modes:{index(t,e,r,n){const i=Tu(e,t),a=r.axis||"x",s=r.includeInvisible||!1,o=r.intersect?B1(t,i,a,n,s):F1(t,i,a,!1,n,s),u=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const l=o[0].index,d=c.data[l];d&&!d.skip&&u.push({element:d,datasetIndex:c.index,index:l})}),u):[]},dataset(t,e,r,n){const i=Tu(e,t),a=r.axis||"xy",s=r.includeInvisible||!1;let o=r.intersect?B1(t,i,a,n,s):F1(t,i,a,!1,n,s);if(o.length>0){const u=o[0].datasetIndex,c=t.getDatasetMeta(u).data;o=[];for(let l=0;lr.pos===e)}function n3(t,e){return t.filter(r=>E7.indexOf(r.pos)===-1&&r.box.axis===e)}function Hf(t,e){return t.sort((r,n)=>{const i=e?n:r,a=e?r:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function mxe(t){const e=[];let r,n,i,a,s,o;for(r=0,n=(t||[]).length;rc.box.fullSize),!0),n=Hf(jf(e,"left"),!0),i=Hf(jf(e,"right")),a=Hf(jf(e,"top"),!0),s=Hf(jf(e,"bottom")),o=n3(e,"x"),u=n3(e,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:i.concat(u).concat(s).concat(o),chartArea:jf(e,"chartArea"),vertical:n.concat(i).concat(u),horizontal:a.concat(s).concat(o)}}function i3(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function x7(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function yxe(t,e,r,n){const{pos:i,box:a}=r,s=t.maxPadding;if(!Je(i)){r.size&&(t[i]-=r.size);const d=n[r.stack]||{size:0,count:1};d.size=Math.max(d.size,r.horizontal?a.height:a.width),r.size=d.size/d.count,t[i]+=r.size}a.getPadding&&x7(s,a.getPadding());const o=Math.max(0,e.outerWidth-i3(s,t,"left","right")),u=Math.max(0,e.outerHeight-i3(s,t,"top","bottom")),c=o!==t.w,l=u!==t.h;return t.w=o,t.h=u,r.horizontal?{same:c,other:l}:{same:l,other:c}}function _xe(t){const e=t.maxPadding;function r(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=r("top"),t.x+=r("left"),r("right"),r("bottom")}function wxe(t,e){const r=e.maxPadding;function n(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(e[s],r[s])}),a}return n(t?["left","right"]:["top","bottom"])}function ph(t,e,r,n){const i=[];let a,s,o,u,c,l;for(a=0,s=t.length,c=0;a{typeof b.beforeLayout=="function"&&b.beforeLayout()});const l=u.reduce((b,_)=>_.box.options&&_.box.options.display===!1?b:b+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:r,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/l,hBoxMaxHeight:s/2}),f=Object.assign({},i);x7(f,nn(n));const p=Object.assign({maxPadding:f,w:a,h:s,x:i.left,y:i.top},i),m=vxe(u.concat(c),d);ph(o.fullSize,p,d,m),ph(u,p,d,m),ph(c,p,d,m)&&ph(u,p,d,m),_xe(p),a3(o.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,a3(o.rightAndBottom,p,d,m),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},vt(o.chartArea,b=>{const _=b.box;Object.assign(_,t.chartArea),_.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class P7{acquireContext(e,r){}releaseContext(e){return!1}addEventListener(e,r,n){}removeEventListener(e,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,r,n,i){return r=Math.max(0,r||e.width),n=n||e.height,{width:r,height:Math.max(0,i?Math.floor(r/i):n)}}isAttached(e){return!0}updateConfig(e){}}class Sxe extends P7{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const Cv="$chartjs",Oxe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},s3=t=>t===null||t==="";function Txe(t,e){const r=t.style,n=t.getAttribute("height"),i=t.getAttribute("width");if(t[Cv]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",s3(i)){const a=z8(t,"width");a!==void 0&&(t.width=a)}if(s3(n))if(t.style.height==="")t.height=t.width/(e||2);else{const a=z8(t,"height");a!==void 0&&(t.height=a)}return t}const C7=PEe?{passive:!0}:!1;function Exe(t,e,r){t.addEventListener(e,r,C7)}function xxe(t,e,r){t.canvas.removeEventListener(e,r,C7)}function Pxe(t,e){const r=Oxe[t.type]||t.type,{x:n,y:i}=Tu(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:i!==void 0?i:null}}function ub(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function Cxe(t,e,r){const n=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||ub(o.addedNodes,n),s=s&&!ub(o.removedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function Axe(t,e,r){const n=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||ub(o.removedNodes,n),s=s&&!ub(o.addedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const _p=new Map;let o3=0;function A7(){const t=window.devicePixelRatio;t!==o3&&(o3=t,_p.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function Mxe(t,e){_p.size||window.addEventListener("resize",A7),_p.set(t,e)}function $xe(t){_p.delete(t),_p.size||window.removeEventListener("resize",A7)}function kxe(t,e,r){const n=t.canvas,i=n&&oC(n);if(!i)return;const a=n7((o,u)=>{const c=i.clientWidth;r(o,u),c{const u=o[0],c=u.contentRect.width,l=u.contentRect.height;c===0&&l===0||a(c,l)});return s.observe(i),Mxe(t,a),s}function j1(t,e,r){r&&r.disconnect(),e==="resize"&&$xe(t)}function Dxe(t,e,r){const n=t.canvas,i=n7(a=>{t.ctx!==null&&r(Pxe(a,t))},t);return Exe(n,e,i),i}class Ixe extends P7{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(Txe(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[Cv])return!1;const n=r[Cv].initial;["height","width"].forEach(a=>{const s=n[a];it(s)?r.removeAttribute(a):r.setAttribute(a,s)});const i=n.style||{};return Object.keys(i).forEach(a=>{r.style[a]=i[a]}),r.width=r.width,delete r[Cv],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const i=e.$proxies||(e.$proxies={}),s={attach:Cxe,detach:Axe,resize:kxe}[r]||Dxe;i[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),i=n[r];if(!i)return;({attach:j1,detach:j1,resize:j1}[r]||xxe)(e,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,i){return xEe(e,r,n,i)}isAttached(e){const r=oC(e);return!!(r&&r.isConnected)}}function Rxe(t){return!m7()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?Sxe:Ixe}var Rg;let Hs=(Rg=class{constructor(){ae(this,"x");ae(this,"y");ae(this,"active",!1);ae(this,"options");ae(this,"$animations")}tooltipPosition(e){const{x:r,y:n}=this.getProps(["x","y"],e);return{x:r,y:n}}hasValue(){return Od(this.x)&&Od(this.y)}getProps(e,r){const n=this.$animations;if(!r||!n)return this;const i={};return e.forEach(a=>{i[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),i}},ae(Rg,"defaults",{}),ae(Rg,"defaultRoutes"),Rg);function Lxe(t,e){const r=t.options.ticks,n=Nxe(t),i=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?Fxe(e):[],s=a.length,o=a[0],u=a[s-1],c=[];if(s>i)return jxe(e,c,a,s/i),c;const l=Bxe(a,e,i);if(s>0){let d,f;const p=s>1?Math.round((u-o)/(s-1)):null;for(Tg(e,c,l,it(p)?0:o-p,o),d=0,f=s-1;di)return u}return Math.max(i,1)}function Fxe(t){const e=[];let r,n;for(r=0,n=t.length;rt==="left"?"right":t==="right"?"left":t,u3=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,c3=(t,e)=>Math.min(e||t,t);function l3(t,e){const r=[],n=t.length/e,i=t.length;let a=0;for(;as+o)))return u}function Uxe(t,e){vt(t,r=>{const n=r.gc,i=n.length/2;let a;if(i>e){for(a=0;an?n:r,n=i&&r>n?r:n,{min:Kn(r,Kn(n,r)),max:Kn(n,Kn(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Mt(this.options.beforeUpdate,[this])}update(e,r,n){const{beginAtZero:i,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=iEe(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=o=a||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const l=this._getLabelSizes(),d=l.widest.width,f=l.highest.height,p=Nr(this.chart.width-d,0,this.maxWidth);o=e.offset?this.maxWidth/n:p/(n-1),d+6>o&&(o=p/(n-(e.offset?.5:1)),u=this.maxHeight-zf(e.grid)-r.padding-d3(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=ZP(Math.min(Math.asin(Nr((l.highest.height+6)/o,-1,1)),Math.asin(Nr(u/c,-1,1))-Math.asin(Nr(f/c,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Mt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Mt(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:r,options:{ticks:n,title:i,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const u=d3(i,r.options.font);if(o?(e.width=this.maxWidth,e.height=zf(a)+u):(e.height=this.maxHeight,e.width=zf(a)+u),n.display&&this.ticks.length){const{first:c,last:l,widest:d,highest:f}=this._getLabelSizes(),p=n.padding*2,m=zi(this.labelRotation),b=Math.cos(m),_=Math.sin(m);if(o){const S=n.mirror?0:_*d.width+b*f.height;e.height=Math.min(this.maxHeight,e.height+S+p)}else{const S=n.mirror?0:b*d.width+_*f.height;e.width=Math.min(this.maxWidth,e.width+S+p)}this._calculatePadding(c,l,_,b)}}this._handleMargins(),o?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,r,n,i){const{ticks:{align:a,padding:s},position:o}=this.options,u=this.labelRotation!==0,c=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const l=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;u?c?(f=i*e.width,p=n*r.height):(f=n*e.height,p=i*r.width):a==="start"?p=r.width:a==="end"?f=e.width:a!=="inner"&&(f=e.width/2,p=r.width/2),this.paddingLeft=Math.max((f-l+s)*this.width/(this.width-l),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{let l=r.height/2,d=e.height/2;a==="start"?(l=0,d=e.height):a==="end"&&(l=r.height,d=0),this.paddingTop=l+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Mt(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:r}=this.options;return r==="top"||r==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let r,n;for(r=0,n=e.length;r({width:s[k]||0,height:o[k]||0});return{first:C(0),last:C(r-1),widest:C(g),highest:C(T),widths:s,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,r){return NaN}getValueForPixel(e){}getPixelForTick(e){const r=this.ticks;return e<0||e>r.length-1?null:this.getPixelForValue(r[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const r=this._startPixel+e*this._length;return DTe(this._alignToPixels?vu(this.chart,r,0):r)}getDecimalForPixel(e){const r=(e-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:r}=this;return e<0&&r<0?r:e>0&&r>0?e:0}getContext(e){const r=this.ticks||[];if(e>=0&&eo*i?o/n:u/i:u*i0}_computeGridLineItems(e){const r=this.axis,n=this.chart,i=this.options,{grid:a,position:s,border:o}=i,u=a.offset,c=this.isHorizontal(),d=this.ticks.length+(u?1:0),f=zf(a),p=[],m=o.setContext(this.getContext()),b=m.display?m.width:0,_=b/2,S=function(M){return vu(n,M,b)};let E,O,h,v,g,T,C,k,w,A,P,x;if(s==="top")E=S(this.bottom),T=this.bottom-f,k=E-_,A=S(e.top)+_,x=e.bottom;else if(s==="bottom")E=S(this.top),A=e.top,x=S(e.bottom)-_,T=E+_,k=this.top+f;else if(s==="left")E=S(this.right),g=this.right-f,C=E-_,w=S(e.left)+_,P=e.right;else if(s==="right")E=S(this.left),w=e.left,P=S(e.right)-_,g=E+_,C=this.left+f;else if(r==="x"){if(s==="center")E=S((e.top+e.bottom)/2+.5);else if(Je(s)){const M=Object.keys(s)[0],R=s[M];E=S(this.chart.scales[M].getPixelForValue(R))}A=e.top,x=e.bottom,T=E+_,k=T+f}else if(r==="y"){if(s==="center")E=S((e.left+e.right)/2);else if(Je(s)){const M=Object.keys(s)[0],R=s[M];E=S(this.chart.scales[M].getPixelForValue(R))}g=E-_,C=g-f,w=e.left,P=e.right}const $=Le(i.ticks.maxTicksLimit,d),D=Math.max(1,Math.ceil(d/$));for(O=0;Oa.value===e);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const r=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,s;const o=(u,c,l)=>{!l.width||!l.color||(n.save(),n.lineWidth=l.width,n.strokeStyle=l.color,n.setLineDash(l.borderDash||[]),n.lineDashOffset=l.borderDashOffset,n.beginPath(),n.moveTo(u.x,u.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(a=0,s=i.length;a{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:r,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let a,s;for(a=0,s=r.length;a{const n=r.split("."),i=n.pop(),a=[t].concat(n).join("."),s=e[r].split("."),o=s.pop(),u=s.join(".");ir.route(a,i,u,o)})}function Jxe(t){return"id"in t&&"defaults"in t}class Qxe{constructor(){this.controllers=new Eg(Wi,"datasets",!0),this.elements=new Eg(Hs,"elements"),this.plugins=new Eg(Object,"plugins"),this.scales=new Eg($c,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,r,n){[...r].forEach(i=>{const a=n||this._getRegistryForType(i);n||a.isForType(i)||a===this.plugins&&i.id?this._exec(e,a,i):vt(i,s=>{const o=n||this._getRegistryForType(s);this._exec(e,o,s)})})}_exec(e,r,n){const i=QP(e);Mt(n["before"+i],[],n),r[e](n),Mt(n["after"+i],[],n)}_getRegistryForType(e){for(let r=0;ra.filter(o=>!s.some(u=>o.plugin.id===u.plugin.id));this._notify(i(r,n),e,"stop"),this._notify(i(n,r),e,"start")}}function ePe(t){const e={},r=[],n=Object.keys(Oa.plugins.items);for(let a=0;a1&&f3(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function h3(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function oPe(t,e){if(e.data&&e.data.datasets){const r=e.data.datasets.filter(n=>n.xAxisID===t||n.yAxisID===t);if(r.length)return h3(t,"x",r[0])||h3(t,"y",r[0])}return{}}function uPe(t,e){const r=pc[t.type]||{scales:{}},n=e.scales||{},i=bT(t.type,e),a=Object.create(null);return Object.keys(n).forEach(s=>{const o=n[s];if(!Je(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const u=yT(s,o,oPe(s,t),ir.scales[o.type]),c=aPe(u,i),l=r.scales||{};a[s]=Nh(Object.create(null),[{axis:u},o,l[u],l[c]])}),t.data.datasets.forEach(s=>{const o=s.type||t.type,u=s.indexAxis||bT(o,e),l=(pc[o]||{}).scales||{};Object.keys(l).forEach(d=>{const f=iPe(d,u),p=s[f+"AxisID"]||f;a[p]=a[p]||Object.create(null),Nh(a[p],[{axis:f},n[p],l[d]])})}),Object.keys(a).forEach(s=>{const o=a[s];Nh(o,[ir.scales[o.type],ir.scale])}),a}function M7(t){const e=t.options||(t.options={});e.plugins=Le(e.plugins,{}),e.scales=uPe(t,e)}function $7(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function cPe(t){return t=t||{},t.data=$7(t.data),M7(t),t}const p3=new Map,k7=new Set;function xg(t,e){let r=p3.get(t);return r||(r=e(),p3.set(t,r),k7.add(r)),r}const Vf=(t,e,r)=>{const n=Vo(e,r);n!==void 0&&t.add(n)};class lPe{constructor(e){this._config=cPe(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=$7(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),M7(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return xg(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return xg(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return xg(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return xg(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,r){const n=this._scopeCache;let i=n.get(e);return(!i||r)&&(i=new Map,n.set(e,i)),i}getOptionScopes(e,r,n){const{options:i,type:a}=this,s=this._cachedScopes(e,n),o=s.get(r);if(o)return o;const u=new Set;r.forEach(l=>{e&&(u.add(e),l.forEach(d=>Vf(u,e,d))),l.forEach(d=>Vf(u,i,d)),l.forEach(d=>Vf(u,pc[a]||{},d)),l.forEach(d=>Vf(u,ir,d)),l.forEach(d=>Vf(u,mT,d))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),k7.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,pc[r]||{},ir.datasets[r]||{},{type:r},ir,mT]}resolveNamedOptions(e,r,n,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=m3(this._resolverCache,e,i);let u=s;if(fPe(s,r)){a.$shared=!1,n=Uo(n)?n():n;const c=this.createResolver(e,n,o);u=Td(s,n,c)}for(const c of r)a[c]=u[c];return a}createResolver(e,r,n=[""],i){const{resolver:a}=m3(this._resolverCache,e,n);return Je(r)?Td(a,r,void 0,i):a}}function m3(t,e,r){let n=t.get(e);n||(n=new Map,t.set(e,n));const i=r.join();let a=n.get(i);return a||(a={resolver:iC(e,r),subPrefixes:r.filter(o=>!o.toLowerCase().includes("hover"))},n.set(i,a)),a}const dPe=t=>Je(t)&&Object.getOwnPropertyNames(t).reduce((e,r)=>e||Uo(t[r]),!1);function fPe(t,e){const{isScriptable:r,isIndexable:n}=c7(t);for(const i of e){const a=r(i),s=n(i),o=(s||a)&&t[i];if(a&&(Uo(o)||dPe(o))||s&&It(o))return!0}return!1}var hPe="4.3.3";const pPe=["top","bottom","left","right","chartArea"];function g3(t,e){return t==="top"||t==="bottom"||pPe.indexOf(t)===-1&&e==="x"}function v3(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function b3(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),Mt(r&&r.onComplete,[t],e)}function mPe(t){const e=t.chart,r=e.options.animation;Mt(r&&r.onProgress,[t],e)}function D7(t){return m7()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Av={},y3=t=>{const e=D7(t);return Object.values(Av).filter(r=>r.canvas===e).pop()};function gPe(t,e,r){const n=Object.keys(t);for(const i of n){const a=+i;if(a>=e){const s=t[i];delete t[i],(r>0||a>e)&&(t[a+r]=s)}}}function vPe(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function bPe(t){const{xScale:e,yScale:r}=t;if(e&&r)return{left:e.left,right:e.right,top:r.top,bottom:r.bottom}}class xu{static register(...e){Oa.add(...e),_3()}static unregister(...e){Oa.remove(...e),_3()}constructor(e,r){const n=this.config=new lPe(r),i=D7(e),a=y3(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||Rxe(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),u=o&&o.canvas,c=u&&u.height,l=u&&u.width;if(this.id=wTe(),this.ctx=o,this.canvas=u,this.width=l,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zxe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=NTe(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Av[this.id]=this,!o||!u){console.error("Failed to create chart: can't acquire context from the given item");return}os.listen(this,"complete",b3),os.listen(this,"progress",mPe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:i,_aspectRatio:a}=this;return it(e)?r&&a?a:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return Oa}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():H8(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return B8(this.canvas,this.ctx),this}stop(){return os.stop(this),this}resize(e,r){os.running(this)?this._resizeBeforeDraw={width:e,height:r}:this._resize(e,r)}_resize(e,r){const n=this.options,i=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,r,a),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,H8(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Mt(n.onResize,[this,s],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};vt(r,(n,i)=>{n.id=i})}buildOrUpdateScales(){const e=this.options,r=e.scales,n=this.scales,i=Object.keys(n).reduce((s,o)=>(s[o]=!1,s),{});let a=[];r&&(a=a.concat(Object.keys(r).map(s=>{const o=r[s],u=yT(s,o),c=u==="r",l=u==="x";return{options:o,dposition:c?"chartArea":l?"bottom":"left",dtype:c?"radialLinear":l?"category":"linear"}}))),vt(a,s=>{const o=s.options,u=o.id,c=yT(u,o),l=Le(o.type,s.dtype);(o.position===void 0||g3(o.position,c)!==g3(s.dposition))&&(o.position=s.dposition),i[u]=!0;let d=null;if(u in n&&n[u].type===l)d=n[u];else{const f=Oa.getScale(l);d=new f({id:u,type:l,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(o,e)}),vt(i,(s,o)=>{s||delete n[o]}),vt(n,s=>{Jr.configure(this,s,s.options),Jr.addBox(this,s)})}_updateMetasets(){const e=this._metasets,r=this.data.datasets.length,n=e.length;if(e.sort((i,a)=>i.index-a.index),n>r){for(let i=r;ir.length&&delete this._stacks,e.forEach((n,i)=>{r.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],r=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=r.length;n{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,l=this.data.datasets.length;c{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(v3("z","_idx"));const{_active:o,_lastEvent:u}=this;u?this._eventHandler(u,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){vt(this.scales,e=>{Jr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!A8(r,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:a}of r){const s=n==="_removeElements"?-a:a;gPe(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=a=>new Set(e.filter(s=>s[0]===a).map((s,o)=>o+","+s.splice(1).join(","))),i=n(0);for(let a=1;aa.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jr.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],vt(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r=0;--r)this._drawDataset(e[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const r=this.ctx,n=e._clip,i=!n.disabled,a=bPe(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Vy(r,{left:n.left===!1?0:a.left-n.left,right:n.right===!1?this.width:a.right+n.right,top:n.top===!1?0:a.top-n.top,bottom:n.bottom===!1?this.height:a.bottom+n.bottom}),e.controller.draw(),i&&Uy(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Es(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,i){const a=pxe.modes[r];return typeof a=="function"?a(this,e,n,i):[]}getDatasetMeta(e){const r=this.data.datasets[e],n=this._metasets;let i=n.filter(a=>a&&a._dataset===r).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:e,_dataset:r,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=eu(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const r=this.data.datasets[e];if(!r)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(e,r){const n=this.getDatasetMeta(e);n.hidden=!r}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,r,n){const i=n?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,i);vp(r)?(a.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),s.update(a,{visible:n}),this.update(o=>o.datasetIndex===e?i:void 0))}hide(e,r){this._updateVisibility(e,r,!1)}show(e,r){this._updateVisibility(e,r,!0)}_destroyDatasetMeta(e){const r=this._metasets[e];r&&r.controller&&r.controller._destroy(),delete this._metasets[e]}_stop(){let e,r;for(this.stop(),os.remove(this),e=0,r=this.data.datasets.length;e{r.addEventListener(this,a,s),e[a]=s},i=(a,s,o)=>{a.offsetX=s,a.offsetY=o,this._eventHandler(a)};vt(this.options.events,a=>n(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,r=this.platform,n=(u,c)=>{r.addEventListener(this,u,c),e[u]=c},i=(u,c)=>{e[u]&&(r.removeEventListener(this,u,c),delete e[u])},a=(u,c)=>{this.canvas&&this.resize(u,c)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",a),n("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),n("attach",o)},r.isAttached(this.canvas)?o():s()}unbindEvents(){vt(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},vt(this._responsiveListeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,r,n){const i=n?"set":"remove";let a,s,o,u;for(r==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,u=e.length;o{const o=this.getDatasetMeta(a);if(!o)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:o.data[s],index:s}});!nb(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(e,r,n){return this._plugins.notify(this,e,r,n)}isPluginEnabled(e){return this._plugins._cache.filter(r=>r.plugin.id===e).length===1}_updateHoverStyles(e,r,n){const i=this.options.hover,a=(u,c)=>u.filter(l=>!c.some(d=>l.datasetIndex===d.datasetIndex&&l.index===d.index)),s=a(r,e),o=n?e:a(e,r);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,r){const n={event:e,replay:r,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const a=this._handleEvent(e,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(a||n.changed)&&this.render(),this}_handleEvent(e,r,n){const{_active:i=[],options:a}=this,s=r,o=this._getActiveElements(e,i,n,s),u=PTe(e),c=vPe(e,this._lastEvent,n,u);n&&(this._lastEvent=null,Mt(a.onHover,[e,o,this],this),u&&Mt(a.onClick,[e,o,this],this));const l=!nb(o,i);return(l||r)&&(this._active=o,this._updateHoverStyles(o,i,r)),this._lastEvent=c,l}_getActiveElements(e,r,n,i){if(e.type==="mouseout")return[];if(!n)return r;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,i)}}ae(xu,"defaults",ir),ae(xu,"instances",Av),ae(xu,"overrides",pc),ae(xu,"registry",Oa),ae(xu,"version",hPe),ae(xu,"getChart",y3);function _3(){return vt(xu.instances,t=>t._plugins.invalidate())}function yPe(t,e,r){const{startAngle:n,pixelMargin:i,x:a,y:s,outerRadius:o,innerRadius:u}=e;let c=i/o;t.beginPath(),t.arc(a,s,o,n-c,r+c),u>i?(c=i/u,t.arc(a,s,u,r+c,n-c,!0)):t.arc(a,s,i,r+nr,n-nr),t.closePath(),t.clip()}function _Pe(t){return nC(t,["outerStart","outerEnd","innerStart","innerEnd"])}function wPe(t,e,r,n){const i=_Pe(t.options.borderRadius),a=(r-e)/2,s=Math.min(a,n*e/2),o=u=>{const c=(r-Math.min(a,u))*n/2;return Nr(u,0,Math.min(a,c))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:Nr(i.innerStart,0,s),innerEnd:Nr(i.innerEnd,0,s)}}function pl(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function cb(t,e,r,n,i,a){const{x:s,y:o,startAngle:u,pixelMargin:c,innerRadius:l}=e,d=Math.max(e.outerRadius+n+r-c,0),f=l>0?l+n+r+c:0;let p=0;const m=i-u;if(n){const D=l>0?l-n:0,M=d>0?d-n:0,R=(D+M)/2,N=R!==0?m*R/(R+n):m;p=(m-N)/2}const b=Math.max(.001,m*d-r/Vt)/d,_=(m-b)/2,S=u+_+p,E=i-_-p,{outerStart:O,outerEnd:h,innerStart:v,innerEnd:g}=wPe(e,f,d,E-S),T=d-O,C=d-h,k=S+O/T,w=E-h/C,A=f+v,P=f+g,x=S+v/A,$=E-g/P;if(t.beginPath(),a){const D=(k+w)/2;if(t.arc(s,o,d,k,D),t.arc(s,o,d,D,w),h>0){const j=pl(C,w,s,o);t.arc(j.x,j.y,h,w,E+nr)}const M=pl(P,E,s,o);if(t.lineTo(M.x,M.y),g>0){const j=pl(P,$,s,o);t.arc(j.x,j.y,g,E+nr,$+Math.PI)}const R=(E-g/f+(S+v/f))/2;if(t.arc(s,o,f,E-g/f,R,!0),t.arc(s,o,f,R,S+v/f,!0),v>0){const j=pl(A,x,s,o);t.arc(j.x,j.y,v,x+Math.PI,S-nr)}const N=pl(T,S,s,o);if(t.lineTo(N.x,N.y),O>0){const j=pl(T,k,s,o);t.arc(j.x,j.y,O,S-nr,k)}}else{t.moveTo(s,o);const D=Math.cos(k)*d+s,M=Math.sin(k)*d+o;t.lineTo(D,M);const R=Math.cos(w)*d+s,N=Math.sin(w)*d+o;t.lineTo(R,N)}t.closePath()}function SPe(t,e,r,n,i){const{fullCircles:a,startAngle:s,circumference:o}=e;let u=e.endAngle;if(a){cb(t,e,r,n,u,i);for(let c=0;c=Rt||bp(s,u,c),_=Os(o,l+p,d+p);return b&&_}getCenterPoint(r){const{x:n,y:i,startAngle:a,endAngle:s,innerRadius:o,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],r),{offset:c,spacing:l}=this.options,d=(a+s)/2,f=(o+u+l+c)/2;return{x:n+Math.cos(d)*f,y:i+Math.sin(d)*f}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:n,circumference:i}=this,a=(n.offset||0)/4,s=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=i>Rt?Math.floor(i/Rt):0,i===0||this.innerRadius<0||this.outerRadius<0)return;r.save();const u=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(u)*a,Math.sin(u)*a);const c=1-Math.sin(Math.min(Vt,i||0)),l=a*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,SPe(r,this,l,s,o),OPe(r,this,l,s,o),r.restore()}}ae(mh,"id","arc"),ae(mh,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ae(mh,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(mh,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});function I7(t,e,r=e){t.lineCap=Le(r.borderCapStyle,e.borderCapStyle),t.setLineDash(Le(r.borderDash,e.borderDash)),t.lineDashOffset=Le(r.borderDashOffset,e.borderDashOffset),t.lineJoin=Le(r.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Le(r.borderWidth,e.borderWidth),t.strokeStyle=Le(r.borderColor,e.borderColor)}function TPe(t,e,r){t.lineTo(r.x,r.y)}function EPe(t){return t.stepped?qTe:t.tension||t.cubicInterpolationMode==="monotone"?XTe:TPe}function R7(t,e,r={}){const n=t.length,{start:i=0,end:a=n-1}=r,{start:s,end:o}=e,u=Math.max(i,s),c=Math.min(a,o),l=io&&a>o;return{count:n,start:u,loop:e.loop,ilen:c(s+(c?o-h:h))%a,O=()=>{b!==_&&(t.lineTo(l,_),t.lineTo(l,b),t.lineTo(l,S))};for(u&&(p=i[E(0)],t.moveTo(p.x,p.y)),f=0;f<=o;++f){if(p=i[E(f)],p.skip)continue;const h=p.x,v=p.y,g=h|0;g===m?(v_&&(_=v),l=(d*l+h)/++d):(O(),t.lineTo(h,v),m=g,d=0,b=_=v),S=v}O()}function _T(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!r?PPe:xPe}function CPe(t){return t.stepped?CEe:t.tension||t.cubicInterpolationMode==="monotone"?AEe:Eu}function APe(t,e,r,n){let i=e._path;i||(i=e._path=new Path2D,e.path(i,r,n)&&i.closePath()),I7(t,e.options),t.stroke(i)}function MPe(t,e,r,n){const{segments:i,options:a}=e,s=_T(e);for(const o of i)I7(t,a,o.style),t.beginPath(),s(t,e,o,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}const $Pe=typeof Path2D=="function";function kPe(t,e,r,n){$Pe&&!e.options.segment?APe(t,e,r,n):MPe(t,e,r,n)}class _o extends Hs{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,r){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;_Ee(this._points,n,e,i,r),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=REe(this,this.options.segment))}first(){const e=this.segments,r=this.points;return e.length&&r[e[0].start]}last(){const e=this.segments,r=this.points,n=e.length;return n&&r[e[n-1].end]}interpolate(e,r){const n=this.options,i=e[r],a=this.points,s=_7(this,{property:r,start:i,end:i});if(!s.length)return;const o=[],u=CPe(n);let c,l;for(c=0,l=s.length;ce!=="borderDash"&&e!=="fill"});function w3(t,e,r,n){const i=t.options,{[r]:a}=t.getProps([r],n);return Math.abs(e-a)t.replace("rgb(","rgba(").replace(")",", 0.5)"));function N7(t){return wT[t%wT.length]}function B7(t){return S3[t%S3.length]}function FPe(t,e){return t.borderColor=N7(e),t.backgroundColor=B7(e),++e}function jPe(t,e){return t.backgroundColor=t.data.map(()=>N7(e++)),e}function HPe(t,e){return t.backgroundColor=t.data.map(()=>B7(e++)),e}function zPe(t){let e=0;return(r,n)=>{const i=t.getDatasetMeta(n).controller;i instanceof Nu?e=jPe(r,e):i instanceof Hh?e=HPe(r,e):i&&(e=FPe(r,e))}}function O3(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function VPe(t){return t&&(t.borderColor||t.backgroundColor)}var UPe={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,r){if(!r.enabled)return;const{data:{datasets:n},options:i}=t.config,{elements:a}=i;if(!r.forceOverride&&(O3(n)||VPe(i)||a&&O3(a)))return;const s=zPe(t);n.forEach(s)}};function GPe(t,e,r,n,i){const a=i.samples||n;if(a>=r)return t.slice(e,e+r);const s=[],o=(r-2)/(a-2);let u=0;const c=e+r-1;let l=e,d,f,p,m,b;for(s[u++]=t[l],d=0;dp&&(p=m,f=t[E],b=E);s[u++]=f,l=b}return s[u++]=t[c],s}function WPe(t,e,r,n){let i=0,a=0,s,o,u,c,l,d,f,p,m,b;const _=[],S=e+r-1,E=t[e].x,h=t[S].x-E;for(s=e;sb&&(b=c,f=s),i=(a*i+o.x)/++a;else{const g=s-1;if(!it(d)&&!it(f)){const T=Math.min(d,f),C=Math.max(d,f);T!==p&&T!==g&&_.push({...t[T],x:i}),C!==p&&C!==g&&_.push({...t[C],x:i})}s>0&&g!==p&&_.push(t[g]),_.push(o),l=v,a=0,m=b=c,d=f=p=s}}return _}function F7(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function T3(t){t.data.datasets.forEach(e=>{F7(e)})}function YPe(t,e){const r=e.length;let n=0,i;const{iScale:a}=t,{min:s,max:o,minDefined:u,maxDefined:c}=a.getUserBounds();return u&&(n=Nr(Ts(e,a.axis,s).lo,0,r-1)),c?i=Nr(Ts(e,a.axis,o).hi+1,n,r)-n:i=r-n,{start:n,count:i}}var KPe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,r)=>{if(!r.enabled){T3(t);return}const n=t.width;t.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:o}=i,u=t.getDatasetMeta(a),c=s||i.data;if(hh([o,t.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const l=t.scales[u.xAxisID];if(l.type!=="linear"&&l.type!=="time"||t.options.parsing)return;let{start:d,count:f}=YPe(u,c);const p=r.threshold||4*n;if(f<=p){F7(i);return}it(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let m;switch(r.algorithm){case"lttb":m=GPe(c,d,f,n,r);break;case"min-max":m=WPe(c,d,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${r.algorithm}'`)}i._decimated=m})},destroy(t){T3(t)}};function qPe(t,e,r){const n=t.segments,i=t.points,a=e.points,s=[];for(const o of n){let{start:u,end:c}=o;c=cC(u,c,i);const l=ST(r,i[u],i[c],o.loop);if(!e.segments){s.push({source:o,target:l,start:i[u],end:i[c]});continue}const d=_7(e,l);for(const f of d){const p=ST(r,a[f.start],a[f.end],f.loop),m=y7(o,i,p);for(const b of m)s.push({source:b,target:f,start:{[r]:E3(l,p,"start",Math.max)},end:{[r]:E3(l,p,"end",Math.min)}})}}return s}function ST(t,e,r,n){if(n)return;let i=e[t],a=r[t];return t==="angle"&&(i=Qn(i),a=Qn(a)),{property:t,start:i,end:a}}function XPe(t,e){const{x:r=null,y:n=null}=t||{},i=e.points,a=[];return e.segments.forEach(({start:s,end:o})=>{o=cC(s,o,i);const u=i[s],c=i[o];n!==null?(a.push({x:u.x,y:n}),a.push({x:c.x,y:n})):r!==null&&(a.push({x:r,y:u.y}),a.push({x:r,y:c.y}))}),a}function cC(t,e,r){for(;e>t;e--){const n=r[e];if(!isNaN(n.x)&&!isNaN(n.y))break}return e}function E3(t,e,r,n){return t&&e?n(t[r],e[r]):t?t[r]:e?e[r]:0}function j7(t,e){let r=[],n=!1;return It(t)?(n=!0,r=t):r=XPe(t,e),r.length?new _o({points:r,options:{tension:0},_loop:n,_fullLoop:n}):null}function x3(t){return t&&t.fill!==!1}function JPe(t,e,r){let i=t[e].fill;const a=[e];let s;if(!r)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!rr(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function QPe(t,e,r){const n=rCe(t);if(Je(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return rr(i)&&Math.floor(i)===i?ZPe(n[0],e,i,r):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function ZPe(t,e,r,n){return(t==="-"||t==="+")&&(r=e+r),r===e||r<0||r>=n?!1:r}function eCe(t,e){let r=null;return t==="start"?r=e.bottom:t==="end"?r=e.top:Je(t)?r=e.getPixelForValue(t.value):e.getBasePixel&&(r=e.getBasePixel()),r}function tCe(t,e,r){let n;return t==="start"?n=r:t==="end"?n=e.options.reverse?e.min:e.max:Je(t)?n=t.value:n=e.getBaseValue(),n}function rCe(t){const e=t.options,r=e.fill;let n=Le(r&&r.target,r);return n===void 0&&(n=!!e.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function nCe(t){const{scale:e,index:r,line:n}=t,i=[],a=n.segments,s=n.points,o=iCe(e,r);o.push(j7({x:null,y:e.bottom},n));for(let u=0;u=0;--s){const o=i[s].$filler;o&&(o.line.updateControlPoints(a,o.axis),n&&o.fill&&V1(t.ctx,o,a))}},beforeDatasetsDraw(t,e,r){if(r.drawTime!=="beforeDatasetsDraw")return;const n=t.getSortedVisibleDatasetMetas();for(let i=n.length-1;i>=0;--i){const a=n[i].$filler;x3(a)&&V1(t.ctx,a,t.chartArea)}},beforeDatasetDraw(t,e,r){const n=e.meta.$filler;!x3(n)||r.drawTime!=="beforeDatasetDraw"||V1(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const M3=(t,e)=>{let{boxHeight:r=e,boxWidth:n=e}=t;return t.usePointStyle&&(r=Math.min(r,e),n=t.pointStyleWidth||Math.min(n,e)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(e,r)}},mCe=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class $3 extends Hs{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r,n){this.maxWidth=e,this.maxHeight=r,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let r=Mt(e.generateLabels,[this.chart],this)||[];e.filter&&(r=r.filter(n=>e.filter(n,this.chart.data))),e.sort&&(r=r.sort((n,i)=>e.sort(n,i,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:e,ctx:r}=this;if(!e.display){this.width=this.height=0;return}const n=e.labels,i=Tr(n.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:u}=M3(n,a);let c,l;r.font=i.string,this.isHorizontal()?(c=this.maxWidth,l=this._fitRows(s,a,o,u)+10):(l=this.maxHeight,c=this._fitCols(s,i,o,u)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(l,e.maxHeight||this.maxHeight)}_fitRows(e,r,n,i){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,u=this.legendHitBoxes=[],c=this.lineWidths=[0],l=i+o;let d=e;a.textAlign="left",a.textBaseline="middle";let f=-1,p=-l;return this.legendItems.forEach((m,b)=>{const _=n+r/2+a.measureText(m.text).width;(b===0||c[c.length-1]+_+2*o>s)&&(d+=l,c[c.length-(b>0?0:1)]=0,p+=l,f++),u[b]={left:0,top:p,row:f,width:_,height:i},c[c.length-1]+=_+o}),d}_fitCols(e,r,n,i){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,u=this.legendHitBoxes=[],c=this.columnSizes=[],l=s-e;let d=o,f=0,p=0,m=0,b=0;return this.legendItems.forEach((_,S)=>{const{itemWidth:E,itemHeight:O}=gCe(n,r,a,_,i);S>0&&p+O+2*o>l&&(d+=f+o,c.push({width:f,height:p}),m+=f+o,b++,f=p=0),u[S]={left:m,top:p,col:b,width:E,height:O},f=Math.max(f,E),p+=O+o}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:i},rtl:a}}=this,s=Xl(a,this.left,this.width);if(this.isHorizontal()){let o=0,u=Kr(n,this.left+i,this.right-this.lineWidths[o]);for(const c of r)o!==c.row&&(o=c.row,u=Kr(n,this.left+i,this.right-this.lineWidths[o])),c.top+=this.top+e+i,c.left=s.leftForLtr(s.x(u),c.width),u+=c.width+i}else{let o=0,u=Kr(n,this.top+e+i,this.bottom-this.columnSizes[o].height);for(const c of r)c.col!==o&&(o=c.col,u=Kr(n,this.top+e+i,this.bottom-this.columnSizes[o].height)),c.top=u,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),u+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Vy(e,this),this._draw(),Uy(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:i}=this,{align:a,labels:s}=e,o=ir.color,u=Xl(e.rtl,this.left,this.width),c=Tr(s.font),{padding:l}=s,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:b,itemHeight:_}=M3(s,d),S=function(g,T,C){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;i.save();const k=Le(C.lineWidth,1);if(i.fillStyle=Le(C.fillStyle,o),i.lineCap=Le(C.lineCap,"butt"),i.lineDashOffset=Le(C.lineDashOffset,0),i.lineJoin=Le(C.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=Le(C.strokeStyle,o),i.setLineDash(Le(C.lineDash,[])),s.usePointStyle){const w={radius:b*Math.SQRT2/2,pointStyle:C.pointStyle,rotation:C.rotation,borderWidth:k},A=u.xPlus(g,m/2),P=T+f;o7(i,w,A,P,s.pointStyleWidth&&m)}else{const w=T+Math.max((d-b)/2,0),A=u.leftForLtr(g,m),P=Gu(C.borderRadius);i.beginPath(),Object.values(P).some(x=>x!==0)?yp(i,{x:A,y:w,w:m,h:b,radius:P}):i.rect(A,w,m,b),i.fill(),k!==0&&i.stroke()}i.restore()},E=function(g,T,C){mc(i,C.text,g,T+_/2,c,{strikethrough:C.hidden,textAlign:u.textAlign(C.textAlign)})},O=this.isHorizontal(),h=this._computeTitleHeight();O?p={x:Kr(a,this.left+l,this.right-n[0]),y:this.top+l+h,line:0}:p={x:this.left+l,y:Kr(a,this.top+h+l,this.bottom-r[0].height),line:0},g7(this.ctx,e.textDirection);const v=_+l;this.legendItems.forEach((g,T)=>{i.strokeStyle=g.fontColor,i.fillStyle=g.fontColor;const C=i.measureText(g.text).width,k=u.textAlign(g.textAlign||(g.textAlign=s.textAlign)),w=m+f+C;let A=p.x,P=p.y;u.setWidth(this.width),O?T>0&&A+w+l>this.right&&(P=p.y+=v,p.line++,A=p.x=Kr(a,this.left+l,this.right-n[p.line])):T>0&&P+v>this.bottom&&(A=p.x=A+r[p.line].width+l,p.line++,P=p.y=Kr(a,this.top+h+l,this.bottom-r[p.line].height));const x=u.x(A);if(S(x,P,g),A=BTe(k,A+m+f,O?A+w:this.right,e.rtl),E(u.x(A),P,g),O)p.x+=w+l;else if(typeof g.text!="string"){const $=c.lineHeight;p.y+=z7(g,$)+l}else p.y+=v}),v7(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=Tr(r.font),i=nn(r.padding);if(!r.display)return;const a=Xl(e.rtl,this.left,this.width),s=this.ctx,o=r.position,u=n.size/2,c=i.top+u;let l,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),l=this.top+c,d=Kr(e.align,d,this.right-f);else{const m=this.columnSizes.reduce((b,_)=>Math.max(b,_.height),0);l=c+Kr(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const p=Kr(o,d,d+f);s.textAlign=a.textAlign(tC(o)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,mc(s,r.text,p,l,n)}_computeTitleHeight(){const e=this.options.title,r=Tr(e.font),n=nn(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,i,a;if(Os(e,this.left,this.right)&&Os(r,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;na.length>s.length?a:s)),e+r.size/2+n.measureText(i).width}function bCe(t,e,r){let n=t;return typeof e.text!="string"&&(n=z7(e,r)),n}function z7(t,e){const r=t.text?t.text.length:0;return e*r}function yCe(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var _Ce={id:"legend",_element:$3,start(t,e,r){const n=t.legend=new $3({ctx:t.ctx,options:r,chart:t});Jr.configure(t,n,r),Jr.addBox(t,n)},stop(t){Jr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;Jr.configure(t,n,r),n.options=r},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,r){const n=e.datasetIndex,i=r.chart;i.isDatasetVisible(n)?(i.hide(n),e.hidden=!0):(i.show(n),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:r,pointStyle:n,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(u=>{const c=u.controller.getStyle(r?0:void 0),l=nn(c.borderWidth);return{text:e[u.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(o||c.borderRadius),datasetIndex:u.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class lC extends Hs{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,r){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=r;const i=It(n.text)?n.text.length:1;this._padding=nn(n.padding);const a=i*Tr(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:r,left:n,bottom:i,right:a,options:s}=this,o=s.align;let u=0,c,l,d;return this.isHorizontal()?(l=Kr(o,n,a),d=r+e,c=a-n):(s.position==="left"?(l=n+e,d=Kr(o,i,r),u=Vt*-.5):(l=a-e,d=Kr(o,r,i),u=Vt*.5),c=i-r),{titleX:l,titleY:d,maxWidth:c,rotation:u}}draw(){const e=this.ctx,r=this.options;if(!r.display)return;const n=Tr(r.font),a=n.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:u,rotation:c}=this._drawArgs(a);mc(e,r.text,0,0,n,{color:r.color,maxWidth:u,rotation:c,textAlign:tC(r.align),textBaseline:"middle",translation:[s,o]})}}function wCe(t,e){const r=new lC({ctx:t.ctx,options:e,chart:t});Jr.configure(t,r,e),Jr.addBox(t,r),t.titleBlock=r}var SCe={id:"title",_element:lC,start(t,e,r){wCe(t,r)},stop(t){const e=t.titleBlock;Jr.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;Jr.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Pg=new WeakMap;var OCe={id:"subtitle",start(t,e,r){const n=new lC({ctx:t.ctx,options:r,chart:t});Jr.configure(t,n,r),Jr.addBox(t,n),Pg.set(t,n)},stop(t){Jr.removeBox(t,Pg.get(t)),Pg.delete(t)},beforeUpdate(t,e,r){const n=Pg.get(t);Jr.configure(t,n,r),n.options=r},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const gh={average(t){if(!t.length)return!1;let e,r,n=0,i=0,a=0;for(e=0,r=t.length;e-1?t.split(` `):t}function TCe(t,e){const{element:r,datasetIndex:n,index:i}=e,a=t.getDatasetMeta(n).controller,{label:s,value:o}=a.getLabelAndValue(i);return{chart:t,label:s,parsed:a.getParsed(i),raw:t.data.datasets[n].data[i],formattedValue:o,dataset:a.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function k3(t,e){const r=t.chart.ctx,{body:n,footer:i,title:a}=t,{boxWidth:s,boxHeight:o}=e,u=Tr(e.bodyFont),c=Tr(e.titleFont),l=Tr(e.footerFont),d=a.length,f=i.length,p=n.length,m=nn(e.padding);let b=m.height,_=0,S=n.reduce((h,v)=>h+v.before.length+v.lines.length+v.after.length,0);if(S+=t.beforeBody.length+t.afterBody.length,d&&(b+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),S){const h=e.displayColors?Math.max(o,u.lineHeight):u.lineHeight;b+=p*h+(S-p)*u.lineHeight+(S-1)*e.bodySpacing}f&&(b+=e.footerMarginTop+f*l.lineHeight+(f-1)*e.footerSpacing);let E=0;const O=function(h){_=Math.max(_,r.measureText(h).width+E)};return r.save(),r.font=c.string,vt(t.title,O),r.font=u.string,vt(t.beforeBody.concat(t.afterBody),O),E=e.displayColors?s+2+e.boxPadding:0,vt(n,h=>{vt(h.before,O),vt(h.lines,O),vt(h.after,O)}),E=0,r.font=l.string,vt(t.footer,O),r.restore(),_+=m.width,{width:_,height:b}}function ECe(t,e){const{y:r,height:n}=e;return rt.height-n/2?"bottom":"center"}function xCe(t,e,r,n){const{x:i,width:a}=n,s=r.caretSize+r.caretPadding;if(t==="left"&&i+a+s>e.width||t==="right"&&i-a-s<0)return!0}function PCe(t,e,r,n){const{x:i,width:a}=r,{width:s,chartArea:{left:o,right:u}}=t;let c="center";return n==="center"?c=i<=(o+u)/2?"left":"right":i<=a/2?c="left":i>=s-a/2&&(c="right"),xCe(c,t,e,r)&&(c="center"),c}function D3(t,e,r){const n=r.yAlign||e.yAlign||ECe(t,r);return{xAlign:r.xAlign||e.xAlign||PCe(t,e,r,n),yAlign:n}}function CCe(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function ACe(t,e,r){let{y:n,height:i}=t;return e==="top"?n+=r:e==="bottom"?n-=i+r:n-=i/2,n}function I3(t,e,r,n){const{caretSize:i,caretPadding:a,cornerRadius:s}=t,{xAlign:o,yAlign:u}=r,c=i+a,{topLeft:l,topRight:d,bottomLeft:f,bottomRight:p}=Gu(s);let m=CCe(e,o);const b=ACe(e,u,c);return u==="center"?o==="left"?m+=c:o==="right"&&(m-=c):o==="left"?m-=Math.max(l,f)+i:o==="right"&&(m+=Math.max(d,p)+i),{x:Nr(m,0,n.width-e.width),y:Nr(b,0,n.height-e.height)}}function Cg(t,e,r){const n=nn(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function R3(t){return _a([],us(t))}function MCe(t,e,r){return eu(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function L3(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const V7={beforeTitle:as,title(t){if(t.length>0){const e=t[0],r=e.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(n>0&&e.dataIndex"u"?V7[e].call(r,n):i}class OT extends Hs{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const r=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&r.options.animation&&n.animations,a=new w7(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=MCe(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,i=Tn(n,"beforeTitle",this,e),a=Tn(n,"title",this,e),s=Tn(n,"afterTitle",this,e);let o=[];return o=_a(o,us(i)),o=_a(o,us(a)),o=_a(o,us(s)),o}getBeforeBody(e,r){return R3(Tn(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,i=[];return vt(e,a=>{const s={before:[],lines:[],after:[]},o=L3(n,a);_a(s.before,us(Tn(o,"beforeLabel",this,a))),_a(s.lines,Tn(o,"label",this,a)),_a(s.after,us(Tn(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,r){return R3(Tn(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,i=Tn(n,"beforeFooter",this,e),a=Tn(n,"footer",this,e),s=Tn(n,"afterFooter",this,e);let o=[];return o=_a(o,us(i)),o=_a(o,us(a)),o=_a(o,us(s)),o}_createItems(e){const r=this._active,n=this.chart.data,i=[],a=[],s=[];let o=[],u,c;for(u=0,c=r.length;ue.filter(l,d,f,n))),e.itemSort&&(o=o.sort((l,d)=>e.itemSort(l,d,n))),vt(o,l=>{const d=L3(e.callbacks,l);i.push(Tn(d,"labelColor",this,l)),a.push(Tn(d,"labelPointStyle",this,l)),s.push(Tn(d,"labelTextColor",this,l))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=o,o}update(e,r){const n=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const o=gh[n.position].call(this,i,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const u=this._size=k3(this,n),c=Object.assign({},o,u),l=D3(this.chart,n,c),d=I3(n,c,l,this.chart);this.xAlign=l.xAlign,this.yAlign=l.yAlign,a={opacity:1,x:d.x,y:d.y,width:u.width,height:u.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(e,r,n,i){const a=this.getCaretPosition(e,n,i);r.lineTo(a.x1,a.y1),r.lineTo(a.x2,a.y2),r.lineTo(a.x3,a.y3)}getCaretPosition(e,r,n){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:o}=n,{topLeft:u,topRight:c,bottomLeft:l,bottomRight:d}=Gu(o),{x:f,y:p}=e,{width:m,height:b}=r;let _,S,E,O,h,v;return a==="center"?(h=p+b/2,i==="left"?(_=f,S=_-s,O=h+s,v=h-s):(_=f+m,S=_+s,O=h-s,v=h+s),E=_):(i==="left"?S=f+Math.max(u,l)+s:i==="right"?S=f+m-Math.max(c,d)-s:S=this.caretX,a==="top"?(O=p,h=O-s,_=S-s,E=S+s):(O=p+b,h=O+s,_=S+s,E=S-s),v=O),{x1:_,x2:S,x3:E,y1:O,y2:h,y3:v}}drawTitle(e,r,n){const i=this.title,a=i.length;let s,o,u;if(a){const c=Xl(n.rtl,this.x,this.width);for(e.x=Cg(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=Tr(n.titleFont),o=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,u=0;uE!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,yp(e,{x:b,y:m,w:c,h:u,radius:S}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),yp(e,{x:_,y:m+1,w:c-2,h:u-2,radius:S}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(b,m,c,u),e.strokeRect(b,m,c,u),e.fillStyle=s.backgroundColor,e.fillRect(_,m+1,c-2,u-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,r,n){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:o,boxHeight:u,boxWidth:c,boxPadding:l}=n,d=Tr(n.bodyFont);let f=d.lineHeight,p=0;const m=Xl(n.rtl,this.x,this.width),b=function(C){r.fillText(C,m.x(e.x+p),e.y+f/2),e.y+=f+a},_=m.textAlign(s);let S,E,O,h,v,g,T;for(r.textAlign=s,r.textBaseline="middle",r.font=d.string,e.x=Cg(this,_,n),r.fillStyle=n.bodyColor,vt(this.beforeBody,b),p=o&&_!=="right"?s==="center"?c/2+l:c+2+l:0,h=0,g=i.length;h0&&r.stroke()}_updateAnimationTarget(e){const r=this.chart,n=this.$animations,i=n&&n.x,a=n&&n.y;if(i||a){const s=gh[e.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=k3(this,e),u=Object.assign({},s,this._size),c=D3(r,e,u),l=I3(e,u,c,r);(i._to!==l.x||a._to!==l.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=nn(r.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(a,e,i,r),g7(e,r.textDirection),a.y+=s.top,this.drawTitle(a,e,r),this.drawBody(a,e,r),this.drawFooter(a,e,r),v7(e,r.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,r){const n=this._active,i=e.map(({datasetIndex:o,index:u})=>{const c=this.chart.getDatasetMeta(o);if(!c)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:c.data[u],index:u}}),a=!nb(n,i),s=this._positionChanged(i,r);(a||s)&&(this._active=i,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(e,a,r,n),o=this._positionChanged(s,e),u=r||!nb(s,a)||o;return u&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,r))),u}_getActiveElements(e,r,n,i){const a=this.options;if(e.type==="mouseout")return[];if(!i)return r;const s=this.chart.getElementsAtEventForMode(e,a.mode,a,n);return a.reverse&&s.reverse(),s}_positionChanged(e,r){const{caretX:n,caretY:i,options:a}=this,s=gh[a.position].call(this,e,r);return s!==!1&&(n!==s.x||i!==s.y)}}ae(OT,"positioners",gh);var $Ce={id:"tooltip",_element:OT,positioners:gh,afterInit(t,e,r){r&&(t.tooltip=new OT({chart:t,options:r}))},beforeUpdate(t,e,r){t.tooltip&&t.tooltip.initialize(r)},reset(t,e,r){t.tooltip&&t.tooltip.initialize(r)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const r={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",r)}},afterEvent(t,e){if(t.tooltip){const r=e.replay;t.tooltip.handleEvent(e.event,r,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:V7},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},kCe=Object.freeze({__proto__:null,Colors:UPe,Decimation:KPe,Filler:pCe,Legend:_Ce,SubTitle:OCe,Title:SCe,Tooltip:$Ce});const DCe=(t,e,r,n)=>(typeof e=="string"?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r);function ICe(t,e,r,n){const i=t.indexOf(e);if(i===-1)return DCe(t,e,r,n);const a=t.lastIndexOf(e);return i!==a?r:i}const RCe=(t,e)=>t===null?null:Nr(Math.round(t),0,e);function N3(t){const e=this.getLabels();return t>=0&&tr.length-1?null:this.getPixelForValue(r[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}ae(TT,"id","category"),ae(TT,"defaults",{ticks:{callback:N3}});function LCe(t,e){const r=[],{bounds:i,step:a,min:s,max:o,precision:u,count:c,maxTicks:l,maxDigits:d,includeBounds:f}=t,p=a||1,m=l-1,{min:b,max:_}=e,S=!it(s),E=!it(o),O=!it(c),h=(_-b)/(d+1);let v=$8((_-b)/m/p)*p,g,T,C,k;if(v<1e-14&&!S&&!E)return[{value:b},{value:_}];k=Math.ceil(_/v)-Math.floor(b/v),k>m&&(v=$8(k*v/m/p)*p),it(u)||(g=Math.pow(10,u),v=Math.ceil(v*g)/g),i==="ticks"?(T=Math.floor(b/v)*v,C=Math.ceil(_/v)*v):(T=b,C=_),S&&E&&a&&$Te((o-s)/a,v/1e3)?(k=Math.round(Math.min((o-s)/v,l)),v=(o-s)/k,T=s,C=o):O?(T=S?s:T,C=E?o:C,k=c-1,v=(C-T)/k):(k=(C-T)/v,Bh(k,Math.round(k),v/1e3)?k=Math.round(k):k=Math.ceil(k));const w=Math.max(k8(v),k8(T));g=Math.pow(10,it(u)?w:u),T=Math.round(T*g)/g,C=Math.round(C*g)/g;let A=0;for(S&&(f&&T!==s?(r.push({value:s}),To)break;r.push({value:P})}return E&&f&&C!==o?r.length&&Bh(r[r.length-1].value,o,B3(o,h,t))?r[r.length-1].value=o:r.push({value:o}):(!E||C===o)&&r.push({value:C}),r}function B3(t,e,{horizontal:r,minRotation:n}){const i=zi(n),a=(r?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class lb extends $c{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,r){return it(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:r,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this;const s=u=>i=r?i:u,o=u=>a=n?a:u;if(e){const u=ja(i),c=ja(a);u<0&&c<0?o(0):u>0&&c>0&&s(0)}if(i===a){let u=a===0?1:Math.abs(a*.05);o(a+u),e||s(i-u)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:r,stepSize:n}=e,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),r=r||11),r&&(i=Math.min(r,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,r=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},a=this._range||this,s=LCe(i,a);return e.bounds==="ticks"&&QU(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let r=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-r)/Math.max(e.length-1,1)/2;r-=i,n+=i}this._startValue=r,this._endValue=n,this._valueRange=n-r}getLabelForValue(e){return em(e,this.chart.options.locale,this.options.ticks.format)}}class ET extends lb{determineDataLimits(){const{min:e,max:r}=this.getMinMax(!0);this.min=rr(e)?e:0,this.max=rr(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),r=e?this.width:this.height,n=zi(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}ae(ET,"id","linear"),ae(ET,"defaults",{ticks:{callback:zy.formatters.numeric}});const wp=t=>Math.floor(yo(t)),yu=(t,e)=>Math.pow(10,wp(t)+e);function F3(t){return t/Math.pow(10,wp(t))===1}function j3(t,e,r){const n=Math.pow(10,r),i=Math.floor(t/n);return Math.ceil(e/n)-i}function NCe(t,e){const r=e-t;let n=wp(r);for(;j3(t,e,n)>10;)n++;for(;j3(t,e,n)<10;)n--;return Math.min(n,wp(t))}function BCe(t,{min:e,max:r}){e=Kn(t.min,e);const n=[],i=wp(e);let a=NCe(e,r),s=a<0?Math.pow(10,Math.abs(a)):1;const o=Math.pow(10,a),u=i>a?Math.pow(10,i):0,c=Math.round((e-u)*s)/s,l=Math.floor((e-u)/o/10)*o*10;let d=Math.floor((c-l)/Math.pow(10,a)),f=Kn(t.min,Math.round((u+l+d*Math.pow(10,a))*s)/s);for(;f=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,s=a>=0?1:s),f=Math.round((u+l+d*Math.pow(10,a))*s)/s;const p=Kn(t.max,f);return n.push({value:p,major:F3(p),significand:d}),n}class xT extends $c{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,r){const n=lb.prototype.parse.apply(this,[e,r]);if(n===0){this._zero=!0;return}return rr(n)&&n>0?n:null}determineDataLimits(){const{min:e,max:r}=this.getMinMax(!0);this.min=rr(e)?Math.max(0,e):null,this.max=rr(r)?Math.max(0,r):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rr(this._userMin)&&(this.min=e===yu(this.min,0)?yu(this.min,-1):yu(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:r}=this.getUserBounds();let n=this.min,i=this.max;const a=o=>n=e?n:o,s=o=>i=r?i:o;n===i&&(n<=0?(a(1),s(10)):(a(yu(n,-1)),s(yu(i,1)))),n<=0&&a(yu(i,-1)),i<=0&&s(yu(n,1)),this.min=n,this.max=i}buildTicks(){const e=this.options,r={min:this._userMin,max:this._userMax},n=BCe(r,this);return e.bounds==="ticks"&&QU(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(e){return e===void 0?"0":em(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=yo(e),this._valueRange=yo(this.max)-yo(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(yo(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const r=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+r*this._valueRange)}}ae(xT,"id","logarithmic"),ae(xT,"defaults",{ticks:{callback:zy.formatters.logarithmic,major:{enabled:!0}}});function PT(t){const e=t.ticks;if(e.display&&t.display){const r=nn(e.backdropPadding);return Le(e.font&&e.font.size,ir.font.size)+r.height}return 0}function FCe(t,e,r){return r=It(r)?r:[r],{w:KTe(t,e.string,r),h:r.length*e.lineHeight}}function H3(t,e,r,n,i){return t===n||t===i?{start:e-r/2,end:e+r/2}:ti?{start:e-r,end:e}:{start:e,end:e+r}}function jCe(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},r=Object.assign({},e),n=[],i=[],a=t._pointLabels.length,s=t.options.pointLabels,o=s.centerPointLabels?Vt/a:0;for(let u=0;ue.r&&(o=(n.end-e.r)/a,t.r=Math.max(t.r,e.r+o)),i.starte.b&&(u=(i.end-e.b)/s,t.b=Math.max(t.b,e.b+u))}function zCe(t,e,r){const n=t.drawingArea,{extra:i,additionalAngle:a,padding:s,size:o}=r,u=t.getPointPosition(e,n+i+s,a),c=Math.round(ZP(Qn(u.angle+nr))),l=YCe(u.y,o.h,c),d=GCe(c),f=WCe(u.x,o.w,d);return{visible:!0,x:u.x,y:l,textAlign:d,left:f,top:l,right:f+o.w,bottom:l+o.h}}function VCe(t,e){if(!e)return!0;const{left:r,top:n,right:i,bottom:a}=t;return!(Es({x:r,y:n},e)||Es({x:r,y:a},e)||Es({x:i,y:n},e)||Es({x:i,y:a},e))}function UCe(t,e,r){const n=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:o}=a.pointLabels,u={extra:PT(a)/2,additionalAngle:s?Vt/i:0};let c;for(let l=0;l270||r<90)&&(t-=e),t}function KCe(t,e,r){const{left:n,top:i,right:a,bottom:s}=r,{backdropColor:o}=e;if(!it(o)){const u=Gu(e.borderRadius),c=nn(e.backdropPadding);t.fillStyle=o;const l=n-c.left,d=i-c.top,f=a-n+c.width,p=s-i+c.height;Object.values(u).some(m=>m!==0)?(t.beginPath(),yp(t,{x:l,y:d,w:f,h:p,radius:u}),t.fill()):t.fillRect(l,d,f,p)}}function qCe(t,e){const{ctx:r,options:{pointLabels:n}}=t;for(let i=e-1;i>=0;i--){const a=t._pointLabelItems[i];if(!a.visible)continue;const s=n.setContext(t.getPointLabelContext(i));KCe(r,s,a);const o=Tr(s.font),{x:u,y:c,textAlign:l}=a;mc(r,t._pointLabels[i],u,c+o.lineHeight/2,o,{color:s.color,textAlign:l,textBaseline:"middle"})}}function U7(t,e,r,n){const{ctx:i}=t;if(r)i.arc(t.xCenter,t.yCenter,e,0,Rt);else{let a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let s=1;s{const i=Mt(this.options.pointLabels.callback,[r,n],this);return i||i===0?i:""}).filter((r,n)=>this.chart.getDataVisibility(n))}fit(){const e=this.options;e.display&&e.pointLabels.display?jCe(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,r,n,i){this.xCenter+=Math.floor((e-r)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,r,n,i))}getIndexAngle(e){const r=Rt/(this._pointLabels.length||1),n=this.options.startAngle||0;return Qn(e*r+zi(n))}getDistanceFromCenterForValue(e){if(it(e))return NaN;const r=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*r:(e-this.min)*r}getValueForDistanceFromCenter(e){if(it(e))return NaN;const r=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-r:this.min+r}getPointLabelContext(e){const r=this._pointLabels||[];if(e>=0&&e{if(d!==0){u=this.getDistanceFromCenterForValue(l.value);const f=this.getContext(d),p=i.setContext(f),m=a.setContext(f);XCe(this,p,u,s,m)}}),n.display){for(e.save(),o=s-1;o>=0;o--){const l=n.setContext(this.getPointLabelContext(o)),{color:d,lineWidth:f}=l;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(l.borderDash),e.lineDashOffset=l.borderDashOffset,u=this.getDistanceFromCenterForValue(r.ticks.reverse?this.min:this.max),c=this.getPointPosition(o,u),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,r=this.options,n=r.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let a,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((o,u)=>{if(u===0&&!r.reverse)return;const c=n.setContext(this.getContext(u)),l=Tr(c.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),c.showLabelBackdrop){e.font=l.string,s=e.measureText(o.label).width,e.fillStyle=c.backdropColor;const d=nn(c.backdropPadding);e.fillRect(-s/2-d.left,-a-l.size/2-d.top,s+d.width,l.size+d.height)}mc(e,o.label,0,-a,l,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(vh,"id","radialLinear"),ae(vh,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:zy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(vh,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(vh,"descriptors",{angleLines:{_fallback:"grid"}});const Wy={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Mn=Object.keys(Wy);function z3(t,e){return t-e}function V3(t,e){if(it(e))return null;const r=t._adapter,{parser:n,round:i,isoWeekday:a}=t._parseOpts;let s=e;return typeof n=="function"&&(s=n(s)),rr(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(i&&(s=i==="week"&&(Od(a)||a===!0)?r.startOf(s,"isoWeek",a):r.startOf(s,i)),+s)}function U3(t,e,r,n){const i=Mn.length;for(let a=Mn.indexOf(t);a=Mn.indexOf(r);a--){const s=Mn[a];if(Wy[s].common&&t._adapter.diff(i,n,s)>=e-1)return s}return Mn[r?Mn.indexOf(r):0]}function ZCe(t){for(let e=Mn.indexOf(t)+1,r=Mn.length;e=e?r[n]:r[i];t[a]=!0}}function eAe(t,e,r,n){const i=t._adapter,a=+i.startOf(e[0].value,n),s=e[e.length-1].value;let o,u;for(o=a;o<=s;o=+i.add(o,1,n))u=r[o],u>=0&&(e[u].major=!0);return e}function W3(t,e,r){const n=[],i={},a=e.length;let s,o;for(s=0;s+e.value))}initOffsets(e=[]){let r=0,n=0,i,a;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?r=1-i:r=(this.getDecimalForValue(e[1])-i)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?n=a:n=(a-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;r=Nr(r,0,s),n=Nr(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,r=this.min,n=this.max,i=this.options,a=i.time,s=a.unit||U3(a.minUnit,r,n,this._getLabelCapacity(r)),o=Le(i.ticks.stepSize,1),u=s==="week"?a.isoWeekday:!1,c=Od(u)||u===!0,l={};let d=r,f,p;if(c&&(d=+e.startOf(d,"isoWeek",u)),d=+e.startOf(d,c?"day":s),e.diff(n,r,s)>1e5*o)throw new Error(r+" and "+n+" are too far apart with stepSize of "+o+" "+s);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+b)}getLabelForValue(e){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(e,n.tooltipFormat):r.format(e,n.displayFormats.datetime)}format(e,r){const i=this.options.time.displayFormats,a=this._unit,s=r||i[a];return this._adapter.format(e,s)}_tickFormatFunction(e,r,n,i){const a=this.options,s=a.ticks.callback;if(s)return Mt(s,[e,r,n],this);const o=a.time.displayFormats,u=this._unit,c=this._majorUnit,l=u&&o[u],d=c&&o[c],f=n[r],p=c&&d&&f&&f.major;return this._adapter.format(e,i||(p?d:l))}generateTickLabels(e){let r,n,i;for(r=0,n=e.length;r0?o:1}getDataTimestamps(){let e=this._cache.data||[],r,n;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(r=0,n=i.length;r=t[n].pos&&e<=t[i].pos&&({lo:n,hi:i}=Ts(t,"pos",e)),{pos:a,time:o}=t[n],{pos:s,time:u}=t[i]):(e>=t[n].time&&e<=t[i].time&&({lo:n,hi:i}=Ts(t,"time",e)),{time:a,pos:o}=t[n],{time:s,pos:u}=t[i]);const c=s-a;return c?o+(u-o)*(e-a)/c:o}class CT extends Sp{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(e);this._minPos=Ag(r,this.min),this._tableRange=Ag(r,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:r,max:n}=this,i=[],a=[];let s,o,u,c,l;for(s=0,o=e.length;s=r&&c<=n&&i.push(c);if(i.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,o=i.length;si-a)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?e=this.normalize(r.concat(n)):e=r.length?r:n,e=this._cache.all=e,e}getDecimalForValue(e){return(Ag(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return Ag(this._table,n*this._tableRange+this._minPos,!0)}}ae(CT,"id","timeseries"),ae(CT,"defaults",Sp.defaults);var tAe=Object.freeze({__proto__:null,CategoryScale:TT,LinearScale:ET,LogarithmicScale:xT,RadialLinearScale:vh,TimeScale:Sp,TimeSeriesScale:CT});const CBe=[cxe,BPe,kCe,tAe];function Nt(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function ye(t,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function xe(t){ye(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||typeof t=="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function G7(t,e){ye(2,arguments);var r=xe(t),n=Nt(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function dC(t,e){ye(2,arguments);var r=xe(t),n=Nt(e);if(isNaN(n))return new Date(NaN);if(!n)return r;var i=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function rm(t,e){ye(2,arguments);var r=xe(t).getTime(),n=Nt(e);return new Date(r+n)}var rAe=36e5;function nAe(t,e){ye(2,arguments);var r=Nt(e);return rm(t,r*rAe)}var iAe={};function tu(){return iAe}function Y3(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=tu(),d=Nt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=xe(t),p=f.getDay(),m=(p0?1:i}var Yy=6e4,Ky=36e5,hAe=1e3;function pAe(t){return ye(1,arguments),t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function W7(t){if(ye(1,arguments),!pAe(t)&&typeof t!="number")return!1;var e=xe(t);return!isNaN(Number(e))}function mAe(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=r.getFullYear()-n.getFullYear(),a=r.getMonth()-n.getMonth();return i*12+a}function gAe(t,e){ye(2,arguments);var r=xe(t),n=xe(e);return r.getFullYear()-n.getFullYear()}function K3(t,e){var r=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return r<0?-1:r>0?1:r}function Y7(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=K3(r,n),a=Math.abs(sAe(r,n));r.setDate(r.getDate()-i*a);var s=+(K3(r,n)===-i),o=i*(a-s);return o===0?0:o}function qy(t,e){return ye(2,arguments),xe(t).getTime()-xe(e).getTime()}var q3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},vAe="trunc";function nm(t){return t?q3[t]:q3[vAe]}function bAe(t,e,r){ye(2,arguments);var n=qy(t,e)/Ky;return nm(r==null?void 0:r.roundingMethod)(n)}function yAe(t,e,r){ye(2,arguments);var n=qy(t,e)/Yy;return nm(r==null?void 0:r.roundingMethod)(n)}function K7(t){ye(1,arguments);var e=xe(t);return e.setHours(23,59,59,999),e}function q7(t){ye(1,arguments);var e=xe(t),r=e.getMonth();return e.setFullYear(e.getFullYear(),r+1,0),e.setHours(23,59,59,999),e}function _Ae(t){ye(1,arguments);var e=xe(t);return K7(e).getTime()===q7(e).getTime()}function X7(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=zh(r,n),a=Math.abs(mAe(r,n)),s;if(a<1)s=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-i*a);var o=zh(r,n)===-i;_Ae(xe(t))&&a===1&&zh(t,n)===1&&(o=!1),s=i*(a-Number(o))}return s===0?0:s}function wAe(t,e,r){ye(2,arguments);var n=X7(t,e)/3;return nm(r==null?void 0:r.roundingMethod)(n)}function SAe(t,e,r){ye(2,arguments);var n=qy(t,e)/1e3;return nm(r==null?void 0:r.roundingMethod)(n)}function OAe(t,e,r){ye(2,arguments);var n=Y7(t,e)/7;return nm(r==null?void 0:r.roundingMethod)(n)}function TAe(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=zh(r,n),a=Math.abs(gAe(r,n));r.setFullYear(1584),n.setFullYear(1584);var s=zh(r,n)===-i,o=i*(a-Number(s));return o===0?0:o}function EAe(t){ye(1,arguments);var e=xe(t);return e.setSeconds(0,0),e}function xAe(t){ye(1,arguments);var e=xe(t),r=e.getMonth(),n=r-r%3;return e.setMonth(n,1),e.setHours(0,0,0,0),e}function PAe(t){ye(1,arguments);var e=xe(t);return e.setDate(1),e.setHours(0,0,0,0),e}function CAe(t){ye(1,arguments);var e=xe(t),r=e.getFullYear();return e.setFullYear(r+1,0,0),e.setHours(23,59,59,999),e}function AAe(t){ye(1,arguments);var e=xe(t),r=new Date(0);return r.setFullYear(e.getFullYear(),0,1),r.setHours(0,0,0,0),r}function MAe(t){ye(1,arguments);var e=xe(t);return e.setMinutes(59,59,999),e}function $Ae(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=tu(),d=Nt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=xe(t),p=f.getDay(),m=(p=i.getTime()?r+1:e.getTime()>=s.getTime()?r:r-1}function NAe(t){ye(1,arguments);var e=Q7(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=xd(r);return n}var BAe=6048e5;function Z7(t){ye(1,arguments);var e=xe(t),r=xd(e).getTime()-NAe(e).getTime();return Math.round(r/BAe)+1}function gc(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=tu(),d=Nt((r=(n=(i=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:l.weekStartsOn)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=xe(t),p=f.getUTCDay(),m=(p=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var b=gc(m,e),_=new Date(0);_.setUTCFullYear(d,0,p),_.setUTCHours(0,0,0,0);var S=gc(_,e);return l.getTime()>=b.getTime()?d+1:l.getTime()>=S.getTime()?d:d-1}function FAe(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=tu(),d=Nt((r=(n=(i=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:l.firstWeekContainsDate)!==null&&n!==void 0?n:(u=l.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:1),f=fC(t,e),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=gc(p,e);return m}var jAe=6048e5;function eG(t,e){ye(1,arguments);var r=xe(t),n=gc(r,e).getTime()-FAe(r,e).getTime();return Math.round(n/jAe)+1}function gt(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length0?r:1-r;return gt(e==="yy"?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return e==="M"?String(r+1):gt(r+1,2)},d:function(t,e){return gt(t.getUTCDate(),e.length)},a:function(t,e){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,e){return gt(t.getUTCHours()%12||12,e.length)},H:function(t,e){return gt(t.getUTCHours(),e.length)},m:function(t,e){return gt(t.getUTCMinutes(),e.length)},s:function(t,e){return gt(t.getUTCSeconds(),e.length)},S:function(t,e){var r=e.length,n=t.getUTCMilliseconds(),i=Math.floor(n*Math.pow(10,r-3));return gt(i,e.length)}};const eo=HAe;var ml={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},zAe={G:function(t,e,r){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(t,e,r){if(e==="yo"){var n=t.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return eo.y(t,e)},Y:function(t,e,r,n){var i=fC(t,n),a=i>0?i:1-i;if(e==="YY"){var s=a%100;return gt(s,2)}return e==="Yo"?r.ordinalNumber(a,{unit:"year"}):gt(a,e.length)},R:function(t,e){var r=Q7(t);return gt(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return gt(r,e.length)},Q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return gt(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(t,e,r){var n=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return gt(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(t,e,r){var n=t.getUTCMonth();switch(e){case"M":case"MM":return eo.M(t,e);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(t,e,r){var n=t.getUTCMonth();switch(e){case"L":return String(n+1);case"LL":return gt(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(t,e,r,n){var i=eG(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):gt(i,e.length)},I:function(t,e,r){var n=Z7(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):gt(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):eo.d(t,e)},D:function(t,e,r){var n=LAe(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):gt(n,e.length)},E:function(t,e,r){var n=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(t,e,r,n){var i=t.getUTCDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return gt(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,r,n){var i=t.getUTCDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return gt(a,e.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,r){var n=t.getUTCDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return gt(i,e.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(t,e,r){var n=t.getUTCHours(),i=n/12>=1?"pm":"am";switch(e){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,r){var n=t.getUTCHours(),i;switch(n===12?i=ml.noon:n===0?i=ml.midnight:i=n/12>=1?"pm":"am",e){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,r){var n=t.getUTCHours(),i;switch(n>=17?i=ml.evening:n>=12?i=ml.afternoon:n>=4?i=ml.morning:i=ml.night,e){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,r){if(e==="ho"){var n=t.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return eo.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):eo.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):gt(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):gt(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):eo.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):eo.s(t,e)},S:function(t,e){return eo.S(t,e)},X:function(t,e,r,n){var i=n._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(e){case"X":return J3(a);case"XXXX":case"XX":return Pu(a);case"XXXXX":case"XXX":default:return Pu(a,":")}},x:function(t,e,r,n){var i=n._originalDate||t,a=i.getTimezoneOffset();switch(e){case"x":return J3(a);case"xxxx":case"xx":return Pu(a);case"xxxxx":case"xxx":default:return Pu(a,":")}},O:function(t,e,r,n){var i=n._originalDate||t,a=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+X3(a,":");case"OOOO":default:return"GMT"+Pu(a,":")}},z:function(t,e,r,n){var i=n._originalDate||t,a=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+X3(a,":");case"zzzz":default:return"GMT"+Pu(a,":")}},t:function(t,e,r,n){var i=n._originalDate||t,a=Math.floor(i.getTime()/1e3);return gt(a,e.length)},T:function(t,e,r,n){var i=n._originalDate||t,a=i.getTime();return gt(a,e.length)}};function X3(t,e){var r=t>0?"-":"+",n=Math.abs(t),i=Math.floor(n/60),a=n%60;if(a===0)return r+String(i);var s=e||"";return r+String(i)+s+gt(a,2)}function J3(t,e){if(t%60===0){var r=t>0?"-":"+";return r+gt(Math.abs(t)/60,2)}return Pu(t,e)}function Pu(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),a=gt(Math.floor(i/60),2),s=gt(i%60,2);return n+a+r+s}const VAe=zAe;var Q3=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},tG=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},UAe=function(t,e){var r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Q3(t,e);var a;switch(n){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",Q3(n,e)).replace("{{time}}",tG(i,e))},GAe={p:tG,P:UAe};const MT=GAe;var WAe=["D","DD"],YAe=["YY","YYYY"];function rG(t){return WAe.indexOf(t)!==-1}function nG(t){return YAe.indexOf(t)!==-1}function fb(t,e,r){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var KAe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},qAe=function(t,e,r){var n,i=KAe[t];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const XAe=qAe;function U1(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.width?String(e.width):t.defaultWidth,n=t.formats[r]||t.formats[t.defaultWidth];return n}}var JAe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},QAe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ZAe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eMe={date:U1({formats:JAe,defaultWidth:"full"}),time:U1({formats:QAe,defaultWidth:"full"}),dateTime:U1({formats:ZAe,defaultWidth:"full"})};const tMe=eMe;var rMe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nMe=function(t,e,r,n){return rMe[t]};const iMe=nMe;function Uf(t){return function(e,r){var n=r!=null&&r.context?String(r.context):"standalone",i;if(n==="formatting"&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=r!=null&&r.width?String(r.width):a;i=t.formattingValues[s]||t.formattingValues[a]}else{var o=t.defaultWidth,u=r!=null&&r.width?String(r.width):t.defaultWidth;i=t.values[u]||t.values[o]}var c=t.argumentCallback?t.argumentCallback(e):e;return i[c]}}var aMe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sMe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},oMe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uMe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},cMe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lMe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dMe=function(t,e){var r=Number(t),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},fMe={ordinalNumber:dMe,era:Uf({values:aMe,defaultWidth:"wide"}),quarter:Uf({values:sMe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Uf({values:oMe,defaultWidth:"wide"}),day:Uf({values:uMe,defaultWidth:"wide"}),dayPeriod:Uf({values:cMe,defaultWidth:"wide",formattingValues:lMe,defaultFormattingWidth:"wide"})};const hMe=fMe;function Gf(t){return function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,i=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],a=e.match(i);if(!a)return null;var s=a[0],o=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(o)?mMe(o,function(d){return d.test(s)}):pMe(o,function(d){return d.test(s)}),c;c=t.valueCallback?t.valueCallback(u):u,c=r.valueCallback?r.valueCallback(c):c;var l=e.slice(s.length);return{value:c,rest:l}}}function pMe(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function mMe(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var i=n[0],a=e.match(t.parsePattern);if(!a)return null;var s=t.valueCallback?t.valueCallback(a[0]):a[0];s=r.valueCallback?r.valueCallback(s):s;var o=e.slice(i.length);return{value:s,rest:o}}}var vMe=/^(\d+)(th|st|nd|rd)?/i,bMe=/\d+/i,yMe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_Me={any:[/^b/i,/^(a|c)/i]},wMe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},SMe={any:[/1/i,/2/i,/3/i,/4/i]},OMe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},TMe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},EMe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xMe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},PMe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},CMe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},AMe={ordinalNumber:gMe({matchPattern:vMe,parsePattern:bMe,valueCallback:function(t){return parseInt(t,10)}}),era:Gf({matchPatterns:yMe,defaultMatchWidth:"wide",parsePatterns:_Me,defaultParseWidth:"any"}),quarter:Gf({matchPatterns:wMe,defaultMatchWidth:"wide",parsePatterns:SMe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Gf({matchPatterns:OMe,defaultMatchWidth:"wide",parsePatterns:TMe,defaultParseWidth:"any"}),day:Gf({matchPatterns:EMe,defaultMatchWidth:"wide",parsePatterns:xMe,defaultParseWidth:"any"}),dayPeriod:Gf({matchPatterns:PMe,defaultMatchWidth:"any",parsePatterns:CMe,defaultParseWidth:"any"})};const MMe=AMe;var $Me={code:"en-US",formatDistance:XAe,formatLong:tMe,formatRelative:iMe,localize:hMe,match:MMe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const iG=$Me;var kMe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DMe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IMe=/^'([^]*?)'?$/,RMe=/''/g,LMe=/[a-zA-Z]/;function NMe(t,e,r){var n,i,a,s,o,u,c,l,d,f,p,m,b,_,S,E,O,h;ye(2,arguments);var v=String(e),g=tu(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:g.locale)!==null&&n!==void 0?n:iG,C=Nt((a=(s=(o=(u=r==null?void 0:r.firstWeekContainsDate)!==null&&u!==void 0?u:r==null||(c=r.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&o!==void 0?o:g.firstWeekContainsDate)!==null&&s!==void 0?s:(d=g.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Nt((p=(m=(b=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(S=r.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&b!==void 0?b:g.weekStartsOn)!==null&&m!==void 0?m:(O=g.locale)===null||O===void 0||(h=O.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&p!==void 0?p:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var w=xe(t);if(!W7(w))throw new RangeError("Invalid time value");var A=db(w),P=J7(w,A),x={firstWeekContainsDate:C,weekStartsOn:k,locale:T,_originalDate:w},$=v.match(DMe).map(function(D){var M=D[0];if(M==="p"||M==="P"){var R=MT[M];return R(D,T.formatLong)}return D}).join("").match(kMe).map(function(D){if(D==="''")return"'";var M=D[0];if(M==="'")return BMe(D);var R=VAe[M];if(R)return!(r!=null&&r.useAdditionalWeekYearTokens)&&nG(D)&&fb(D,e,String(t)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&rG(D)&&fb(D,e,String(t)),R(P,D,T.localize,x);if(M.match(LMe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return D}).join("");return $}function BMe(t){var e=t.match(IMe);return e?e[1].replace(RMe,"'"):t}function FMe(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}function hb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var jMe=10;class aG{constructor(){hb(this,"priority",void 0),hb(this,"subPriority",0)}validate(e,r){return!0}}class HMe extends aG{constructor(e,r,n,i,a){super(),this.value=e,this.validateValue=r,this.setValue=n,this.priority=i,a&&(this.subPriority=a)}validate(e,r){return this.validateValue(e,this.value,r)}set(e,r,n){return this.setValue(e,r,this.value,n)}}class zMe extends aG{constructor(){super(...arguments),hb(this,"priority",jMe),hb(this,"subPriority",-1)}set(e,r){if(r.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}}function G1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class dt{constructor(){G1(this,"incompatibleTokens",void 0),G1(this,"priority",void 0),G1(this,"subPriority",void 0)}run(e,r,n,i){var a=this.parse(e,r,n,i);return a?{setter:new HMe(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,r,n){return!0}}function Z3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class VMe extends dt{constructor(){super(...arguments),Z3(this,"priority",140),Z3(this,"incompatibleTokens",["R","u","t","T"])}parse(e,r,n){switch(r){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,r,n){return r.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}var pr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},$a={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function mr(t,e){return t&&{value:e(t.value),rest:t.rest}}function Xt(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function ka(t,e){var r=e.match(t);if(!r)return null;if(r[0]==="Z")return{value:0,rest:e.slice(1)};var n=r[1]==="+"?1:-1,i=r[2]?parseInt(r[2],10):0,a=r[3]?parseInt(r[3],10):0,s=r[5]?parseInt(r[5],10):0;return{value:n*(i*Ky+a*Yy+s*hAe),rest:e.slice(r[0].length)}}function sG(t){return Xt(pr.anyDigitsSigned,t)}function ar(t,e){switch(t){case 1:return Xt(pr.singleDigit,e);case 2:return Xt(pr.twoDigits,e);case 3:return Xt(pr.threeDigits,e);case 4:return Xt(pr.fourDigits,e);default:return Xt(new RegExp("^\\d{1,"+t+"}"),e)}}function pb(t,e){switch(t){case 1:return Xt(pr.singleDigitSigned,e);case 2:return Xt(pr.twoDigitsSigned,e);case 3:return Xt(pr.threeDigitsSigned,e);case 4:return Xt(pr.fourDigitsSigned,e);default:return Xt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function hC(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function oG(t,e){var r=e>0,n=r?e:1-e,i;if(n<=50)i=t||100;else{var a=n+50,s=Math.floor(a/100)*100,o=t>=a%100;i=t+s-(o?100:0)}return r?i:1-i}function uG(t){return t%400===0||t%4===0&&t%100!==0}function eL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class UMe extends dt{constructor(){super(...arguments),eL(this,"priority",130),eL(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,r,n){var i=function(a){return{year:a,isTwoDigitYear:r==="yy"}};switch(r){case"y":return mr(ar(4,e),i);case"yo":return mr(n.ordinalNumber(e,{unit:"year"}),i);default:return mr(ar(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var a=oG(n.year,i);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var s=!("era"in r)||r.era===1?n.year:1-n.year;return e.setUTCFullYear(s,0,1),e.setUTCHours(0,0,0,0),e}}function tL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class GMe extends dt{constructor(){super(...arguments),tL(this,"priority",130),tL(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,r,n){var i=function(a){return{year:a,isTwoDigitYear:r==="YY"}};switch(r){case"Y":return mr(ar(4,e),i);case"Yo":return mr(n.ordinalNumber(e,{unit:"year"}),i);default:return mr(ar(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,i){var a=fC(e,i);if(n.isTwoDigitYear){var s=oG(n.year,a);return e.setUTCFullYear(s,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),gc(e,i)}var o=!("era"in r)||r.era===1?n.year:1-n.year;return e.setUTCFullYear(o,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),gc(e,i)}}function rL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class WMe extends dt{constructor(){super(...arguments),rL(this,"priority",130),rL(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,r){return pb(r==="R"?4:r.length,e)}set(e,r,n){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),xd(i)}}function nL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class YMe extends dt{constructor(){super(...arguments),nL(this,"priority",130),nL(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,r){return pb(r==="u"?4:r.length,e)}set(e,r,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}function iL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class KMe extends dt{constructor(){super(...arguments),iL(this,"priority",120),iL(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,r,n){switch(r){case"Q":case"QQ":return ar(r.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}function aL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class qMe extends dt{constructor(){super(...arguments),aL(this,"priority",120),aL(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,r,n){switch(r){case"q":case"qq":return ar(r.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=1&&r<=4}set(e,r,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}function sL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class XMe extends dt{constructor(){super(...arguments),sL(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),sL(this,"priority",110)}parse(e,r,n){var i=function(a){return a-1};switch(r){case"M":return mr(Xt(pr.month,e),i);case"MM":return mr(ar(2,e),i);case"Mo":return mr(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}function oL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class JMe extends dt{constructor(){super(...arguments),oL(this,"priority",110),oL(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,r,n){var i=function(a){return a-1};switch(r){case"L":return mr(Xt(pr.month,e),i);case"LL":return mr(ar(2,e),i);case"Lo":return mr(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=11}set(e,r,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}}function QMe(t,e,r){ye(2,arguments);var n=xe(t),i=Nt(e),a=eG(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}function uL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class ZMe extends dt{constructor(){super(...arguments),uL(this,"priority",100),uL(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,r,n){switch(r){case"w":return Xt(pr.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return ar(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,i){return gc(QMe(e,n,i),i)}}function e$e(t,e){ye(2,arguments);var r=xe(t),n=Nt(e),i=Z7(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}function cL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class t$e extends dt{constructor(){super(...arguments),cL(this,"priority",100),cL(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,r,n){switch(r){case"I":return Xt(pr.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return ar(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return xd(e$e(e,n))}}function W1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var r$e=[31,28,31,30,31,30,31,31,30,31,30,31],n$e=[31,29,31,30,31,30,31,31,30,31,30,31];class i$e extends dt{constructor(){super(...arguments),W1(this,"priority",90),W1(this,"subPriority",1),W1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,r,n){switch(r){case"d":return Xt(pr.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return ar(r.length,e)}}validate(e,r){var n=e.getUTCFullYear(),i=uG(n),a=e.getUTCMonth();return i?r>=1&&r<=n$e[a]:r>=1&&r<=r$e[a]}set(e,r,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}function Y1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class a$e extends dt{constructor(){super(...arguments),Y1(this,"priority",90),Y1(this,"subpriority",1),Y1(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,r,n){switch(r){case"D":case"DD":return Xt(pr.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return ar(r.length,e)}}validate(e,r){var n=e.getUTCFullYear(),i=uG(n);return i?r>=1&&r<=366:r>=1&&r<=365}set(e,r,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}}function pC(t,e,r){var n,i,a,s,o,u,c,l;ye(2,arguments);var d=tu(),f=Nt((n=(i=(a=(s=r==null?void 0:r.weekStartsOn)!==null&&s!==void 0?s:r==null||(o=r.locale)===null||o===void 0||(u=o.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:d.weekStartsOn)!==null&&i!==void 0?i:(c=d.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=xe(t),m=Nt(e),b=p.getUTCDay(),_=m%7,S=(_+7)%7,E=(S=0&&r<=6}set(e,r,n,i){return e=pC(e,n,i),e.setUTCHours(0,0,0,0),e}}function dL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class o$e extends dt{constructor(){super(...arguments),dL(this,"priority",90),dL(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,r,n,i){var a=function(s){var o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(r){case"e":case"ee":return mr(ar(r.length,e),a);case"eo":return mr(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=pC(e,n,i),e.setUTCHours(0,0,0,0),e}}function fL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class u$e extends dt{constructor(){super(...arguments),fL(this,"priority",90),fL(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,r,n,i){var a=function(s){var o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(r){case"c":case"cc":return mr(ar(r.length,e),a);case"co":return mr(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,r){return r>=0&&r<=6}set(e,r,n,i){return e=pC(e,n,i),e.setUTCHours(0,0,0,0),e}}function c$e(t,e){ye(2,arguments);var r=Nt(e);r%7===0&&(r=r-7);var n=1,i=xe(t),a=i.getUTCDay(),s=r%7,o=(s+7)%7,u=(o=1&&r<=7}set(e,r,n){return e=c$e(e,n),e.setUTCHours(0,0,0,0),e}}function pL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class d$e extends dt{constructor(){super(...arguments),pL(this,"priority",80),pL(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,r,n){switch(r){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setUTCHours(hC(n),0,0,0),e}}function mL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class f$e extends dt{constructor(){super(...arguments),mL(this,"priority",80),mL(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,r,n){switch(r){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setUTCHours(hC(n),0,0,0),e}}function gL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class h$e extends dt{constructor(){super(...arguments),gL(this,"priority",80),gL(this,"incompatibleTokens",["a","b","t","T"])}parse(e,r,n){switch(r){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,r,n){return e.setUTCHours(hC(n),0,0,0),e}}function vL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class p$e extends dt{constructor(){super(...arguments),vL(this,"priority",70),vL(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,r,n){switch(r){case"h":return Xt(pr.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return ar(r.length,e)}}validate(e,r){return r>=1&&r<=12}set(e,r,n){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):!i&&n===12?e.setUTCHours(0,0,0,0):e.setUTCHours(n,0,0,0),e}}function bL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class m$e extends dt{constructor(){super(...arguments),bL(this,"priority",70),bL(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,r,n){switch(r){case"H":return Xt(pr.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return ar(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setUTCHours(n,0,0,0),e}}function yL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class g$e extends dt{constructor(){super(...arguments),yL(this,"priority",70),yL(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,r,n){switch(r){case"K":return Xt(pr.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return ar(r.length,e)}}validate(e,r){return r>=0&&r<=11}set(e,r,n){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}function _L(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class v$e extends dt{constructor(){super(...arguments),_L(this,"priority",70),_L(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,r,n){switch(r){case"k":return Xt(pr.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return ar(r.length,e)}}validate(e,r){return r>=1&&r<=24}set(e,r,n){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e}}function wL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class b$e extends dt{constructor(){super(...arguments),wL(this,"priority",60),wL(this,"incompatibleTokens",["t","T"])}parse(e,r,n){switch(r){case"m":return Xt(pr.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return ar(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setUTCMinutes(n,0,0),e}}function SL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class y$e extends dt{constructor(){super(...arguments),SL(this,"priority",50),SL(this,"incompatibleTokens",["t","T"])}parse(e,r,n){switch(r){case"s":return Xt(pr.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return ar(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setUTCSeconds(n,0),e}}function OL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class _$e extends dt{constructor(){super(...arguments),OL(this,"priority",30),OL(this,"incompatibleTokens",["t","T"])}parse(e,r){var n=function(i){return Math.floor(i*Math.pow(10,-r.length+3))};return mr(ar(r.length,e),n)}set(e,r,n){return e.setUTCMilliseconds(n),e}}function TL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class w$e extends dt{constructor(){super(...arguments),TL(this,"priority",10),TL(this,"incompatibleTokens",["t","T","x"])}parse(e,r){switch(r){case"X":return ka($a.basicOptionalMinutes,e);case"XX":return ka($a.basic,e);case"XXXX":return ka($a.basicOptionalSeconds,e);case"XXXXX":return ka($a.extendedOptionalSeconds,e);case"XXX":default:return ka($a.extended,e)}}set(e,r,n){return r.timestampIsSet?e:new Date(e.getTime()-n)}}function EL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class S$e extends dt{constructor(){super(...arguments),EL(this,"priority",10),EL(this,"incompatibleTokens",["t","T","X"])}parse(e,r){switch(r){case"x":return ka($a.basicOptionalMinutes,e);case"xx":return ka($a.basic,e);case"xxxx":return ka($a.basicOptionalSeconds,e);case"xxxxx":return ka($a.extendedOptionalSeconds,e);case"xxx":default:return ka($a.extended,e)}}set(e,r,n){return r.timestampIsSet?e:new Date(e.getTime()-n)}}function xL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class O$e extends dt{constructor(){super(...arguments),xL(this,"priority",40),xL(this,"incompatibleTokens","*")}parse(e){return sG(e)}set(e,r,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}function PL(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class T$e extends dt{constructor(){super(...arguments),PL(this,"priority",20),PL(this,"incompatibleTokens","*")}parse(e){return sG(e)}set(e,r,n){return[new Date(n),{timestampIsSet:!0}]}}var E$e={G:new VMe,y:new UMe,Y:new GMe,R:new WMe,u:new YMe,Q:new KMe,q:new qMe,M:new XMe,L:new JMe,w:new ZMe,I:new t$e,d:new i$e,D:new a$e,E:new s$e,e:new o$e,c:new u$e,i:new l$e,a:new d$e,b:new f$e,B:new h$e,h:new p$e,H:new m$e,K:new g$e,k:new v$e,m:new b$e,s:new y$e,S:new _$e,X:new w$e,x:new S$e,t:new O$e,T:new T$e},x$e=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P$e=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,C$e=/^'([^]*?)'?$/,A$e=/''/g,M$e=/\S/,$$e=/[a-zA-Z]/;function k$e(t,e,r,n){var i,a,s,o,u,c,l,d,f,p,m,b,_,S,E,O,h,v;ye(3,arguments);var g=String(t),T=String(e),C=tu(),k=(i=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:C.locale)!==null&&i!==void 0?i:iG;if(!k.match)throw new RangeError("locale must contain match property");var w=Nt((s=(o=(u=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:C.firstWeekContainsDate)!==null&&o!==void 0?o:(f=C.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Nt((m=(b=(_=(S=n==null?void 0:n.weekStartsOn)!==null&&S!==void 0?S:n==null||(E=n.locale)===null||E===void 0||(O=E.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&_!==void 0?_:C.weekStartsOn)!==null&&b!==void 0?b:(h=C.locale)===null||h===void 0||(v=h.options)===null||v===void 0?void 0:v.weekStartsOn)!==null&&m!==void 0?m:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return g===""?xe(r):new Date(NaN);var P={firstWeekContainsDate:w,weekStartsOn:A,locale:k},x=[new zMe],$=T.match(P$e).map(function(U){var K=U[0];if(K in MT){var X=MT[K];return X(U,k.formatLong)}return U}).join("").match(x$e),D=[],M=function(U){!(n!=null&&n.useAdditionalWeekYearTokens)&&nG(U)&&fb(U,T,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&rG(U)&&fb(U,T,t);var K=U[0],X=E$e[K];if(X){var se=X.incompatibleTokens;if(Array.isArray(se)){var Ae=D.find(function(yt){return se.includes(yt.token)||yt.token===K});if(Ae)throw new RangeError("The format string mustn't contain `".concat(Ae.fullToken,"` and `").concat(U,"` at the same time"))}else if(X.incompatibleTokens==="*"&&D.length>0)throw new RangeError("The format string mustn't contain `".concat(U,"` and any other token at the same time"));D.push({token:K,fullToken:U});var qe=X.run(g,U,k.match,P);if(!qe)return R=U,{v:new Date(NaN)};x.push(qe.setter),g=qe.rest}else{if(K.match($$e))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");if(U==="''"?U="'":K==="'"&&(U=D$e(U)),g.indexOf(U)===0)g=g.slice(U.length);else return R=U,{v:new Date(NaN)}}R=U};for(var R of $){var N=M(R);if(typeof N=="object")return N.v}if(g.length>0&&M$e.test(g))return new Date(NaN);var j=x.map(function(U){return U.priority}).sort(function(U,K){return K-U}).filter(function(U,K,X){return X.indexOf(U)===K}).map(function(U){return x.filter(function(K){return K.priority===U}).sort(function(K,X){return X.subPriority-K.subPriority})}).map(function(U){return U[0]}),z=xe(r);if(isNaN(z.getTime()))return new Date(NaN);var V=J7(z,db(z)),J={};for(var re of j){if(!re.validate(V,P))return new Date(NaN);var Y=re.set(V,J,P);Array.isArray(Y)?(V=Y[0],FMe(J,Y[1])):V=Y}return V}function D$e(t){return t.match(C$e)[1].replace(A$e,"'")}function I$e(t){ye(1,arguments);var e=xe(t);return e.setMinutes(0,0,0),e}function R$e(t){ye(1,arguments);var e=xe(t);return e.setMilliseconds(0),e}function L$e(t,e){var r;ye(1,arguments);var n=Nt((r=e==null?void 0:e.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var i=j$e(t),a;if(i.date){var s=H$e(i.date,n);a=z$e(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var o=a.getTime(),u=0,c;if(i.time&&(u=V$e(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(c=U$e(i.timezone),isNaN(c))return new Date(NaN)}else{var l=new Date(o+u),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}return new Date(o+u+c)}var Mg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},N$e=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,B$e=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,F$e=/^([+-])(\d{2})(?::?(\d{2}))?$/;function j$e(t){var e={},r=t.split(Mg.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],Mg.timeZoneDelimiter.test(e.date)&&(e.date=t.split(Mg.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=Mg.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function H$e(t,e){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),n=t.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,a=n[2]?parseInt(n[2]):null;return{year:a===null?i:a*100,restDateString:t.slice((n[1]||n[2]).length)}}function z$e(t,e){if(e===null)return new Date(NaN);var r=t.match(N$e);if(!r)return new Date(NaN);var n=!!r[4],i=Wf(r[1]),a=Wf(r[2])-1,s=Wf(r[3]),o=Wf(r[4]),u=Wf(r[5])-1;if(n)return q$e(e,o,u)?G$e(e,o,u):new Date(NaN);var c=new Date(0);return!Y$e(e,a,s)||!K$e(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,s)),c)}function Wf(t){return t?parseInt(t):1}function V$e(t){var e=t.match(B$e);if(!e)return NaN;var r=K1(e[1]),n=K1(e[2]),i=K1(e[3]);return X$e(r,n,i)?r*Ky+n*Yy+i*1e3:NaN}function K1(t){return t&&parseFloat(t.replace(",","."))||0}function U$e(t){if(t==="Z")return 0;var e=t.match(F$e);if(!e)return 0;var r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return J$e(n,i)?r*(n*Ky+i*Yy):NaN}function G$e(t,e,r){var n=new Date(0);n.setUTCFullYear(t,0,4);var i=n.getUTCDay()||7,a=(e-1)*7+r+1-i;return n.setUTCDate(n.getUTCDate()+a),n}var W$e=[31,null,31,30,31,30,31,31,30,31,30,31];function cG(t){return t%400===0||t%4===0&&t%100!==0}function Y$e(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(W$e[e]||(cG(t)?29:28))}function K$e(t,e){return e>=1&&e<=(cG(t)?366:365)}function q$e(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function X$e(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function J$e(t,e){return e>=0&&e<=59}/*! * chartjs-adapter-date-fns v2.0.0 * https://www.chartjs.org * (c) 2021 chartjs-adapter-date-fns Contributors * Released under the MIT license */const Q$e={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};T7._date.override({_id:"date-fns",formats:function(){return Q$e},parse:function(t,e){if(t===null||typeof t>"u")return null;const r=typeof t;return r==="number"||t instanceof Date?t=xe(t):r==="string"&&(typeof e=="string"?t=k$e(t,e,new Date,this.options):t=L$e(t,this.options)),W7(t)?t.getTime():null},format:function(t,e){return NMe(t,e,this.options)},add:function(t,e,r){switch(r){case"millisecond":return rm(t,e);case"second":return lAe(t,e);case"minute":return uAe(t,e);case"hour":return nAe(t,e);case"day":return G7(t,e);case"week":return dAe(t,e);case"month":return dC(t,e);case"quarter":return cAe(t,e);case"year":return fAe(t,e);default:return t}},diff:function(t,e,r){switch(r){case"millisecond":return qy(t,e);case"second":return SAe(t,e);case"minute":return yAe(t,e);case"hour":return bAe(t,e);case"day":return Y7(t,e);case"week":return OAe(t,e);case"month":return X7(t,e);case"quarter":return wAe(t,e);case"year":return TAe(t,e);default:return 0}},startOf:function(t,e,r){switch(e){case"second":return R$e(t);case"minute":return EAe(t);case"hour":return I$e(t);case"day":return AT(t);case"week":return Y3(t);case"isoWeek":return Y3(t,{weekStartsOn:+r});case"month":return PAe(t);case"quarter":return xAe(t);case"year":return AAe(t);default:return t}},endOf:function(t,e){switch(e){case"second":return IAe(t);case"minute":return kAe(t);case"hour":return MAe(t);case"day":return K7(t);case"week":return $Ae(t);case"month":return q7(t);case"quarter":return DAe(t);case"year":return CAe(t);default:return t}}});var lG={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self<"u"?self:Te,function(){return(()=>{var r={646:s=>{s.exports=function(o){if(Array.isArray(o)){for(var u=0,c=new Array(o.length);u{s.exports=function(o,u,c){return u in o?Object.defineProperty(o,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[u]=c,o}},860:s=>{s.exports=function(o){if(Symbol.iterator in Object(o)||Object.prototype.toString.call(o)==="[object Arguments]")return Array.from(o)}},206:s=>{s.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(s,o,u)=>{var c=u(646),l=u(860),d=u(206);s.exports=function(f){return c(f)||l(f)||d()}},8:s=>{function o(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s.exports=o=function(c){return typeof c}:s.exports=o=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},o(u)}s.exports=o}},n={};function i(s){var o=n[s];if(o!==void 0)return o.exports;var u=n[s]={exports:{}};return r[s](u,u.exports,i),u.exports}i.n=s=>{var o=s&&s.__esModule?()=>s.default:()=>s;return i.d(o,{a:o}),o},i.d=(s,o)=>{for(var u in o)i.o(o,u)&&!i.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:o[u]})},i.o=(s,o)=>Object.prototype.hasOwnProperty.call(s,o),i.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var a={};return(()=>{i.r(a),i.d(a,{VueSelect:()=>T,default:()=>k,mixins:()=>C});var s=i(319),o=i.n(s),u=i(8),c=i.n(u),l=i(713),d=i.n(l);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(w){var A=this;this.autoscroll&&w&&this.$nextTick(function(){return A.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var w,A=((w=this.$refs.dropdownMenu)===null||w===void 0?void 0:w.children[this.typeAheadPointer])||!1;if(A){var P=this.getDropdownViewport(),x=A.getBoundingClientRect(),$=x.top,D=x.bottom,M=x.height;if($P.bottom)return this.$refs.dropdownMenu.scrollTop=A.offsetTop-(P.height-M)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},p={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var w=0;w=0;w--)if(this.selectable(this.filteredOptions[w])){this.typeAheadPointer=w;break}},typeAheadDown:function(){for(var w=this.typeAheadPointer+1;w0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=w??!this.mutableLoading}}};function b(w,A,P,x,$,D,M,R){var N,j=typeof w=="function"?w.options:w;if(A&&(j.render=A,j.staticRenderFns=P,j._compiled=!0),x&&(j.functional=!0),D&&(j._scopeId="data-v-"+D),M?(N=function(J){(J=J||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(J=__VUE_SSR_CONTEXT__),$&&$.call(this,J),J&&J._registeredComponents&&J._registeredComponents.add(M)},j._ssrRegister=N):$&&(N=R?function(){$.call(this,(j.functional?this.parent:this).$root.$options.shadowRoot)}:$),N)if(j.functional){j._injectStyles=N;var z=j.render;j.render=function(J,re){return N.call(re),z(J,re)}}else{var V=j.beforeCreate;j.beforeCreate=V?[].concat(V,N):[N]}return{exports:w,options:j}}const _={Deselect:b({},function(){var w=this.$createElement,A=this._self._c||w;return A("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[A("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:b({},function(){var w=this.$createElement,A=this._self._c||w;return A("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[A("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},S={inserted:function(w,A,P){var x=P.context;if(x.appendToBody){var $=x.$refs.toggle.getBoundingClientRect(),D=$.height,M=$.top,R=$.left,N=$.width,j=window.scrollX||window.pageXOffset,z=window.scrollY||window.pageYOffset;w.unbindPosition=x.calculatePosition(w,x,{width:N+"px",left:j+R+"px",top:z+M+D+"px"}),document.body.appendChild(w)}},unbind:function(w,A,P){P.context.appendToBody&&(w.unbindPosition&&typeof w.unbindPosition=="function"&&w.unbindPosition(),w.parentNode&&w.parentNode.removeChild(w))}},E=function(w){var A={};return Object.keys(w).sort().forEach(function(P){A[P]=w[P]}),JSON.stringify(A)};var O=0;const h=function(){return++O};function v(w,A){var P=Object.keys(w);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(w);A&&(x=x.filter(function($){return Object.getOwnPropertyDescriptor(w,$).enumerable})),P.push.apply(P,x)}return P}function g(w){for(var A=1;A-1}},filter:{type:Function,default:function(w,A){var P=this;return w.filter(function(x){var $=P.getOptionLabel(x);return typeof $=="number"&&($=$.toString()),P.filterBy(x,$,A)})}},createOption:{type:Function,default:function(w){return c()(this.optionList[0])==="object"?d()({},this.label,w):w}},resetOnOptionsChange:{default:!1,validator:function(w){return["function","boolean"].includes(c()(w))}},clearSearchOnBlur:{type:Function,default:function(w){var A=w.clearSearchOnSelect,P=w.multiple;return A&&!P}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(w,A){return w}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(w,A,P){var x=P.width,$=P.top,D=P.left;w.style.top=$,w.style.left=D,w.style.width=x}},dropdownShouldOpen:{type:Function,default:function(w){var A=w.noDrop,P=w.open,x=w.mutableLoading;return!A&&P&&!x}},uid:{type:[String,Number],default:function(){return h()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var w=this.value;return this.isTrackingValues&&(w=this.$data._value),w!=null&&w!==""?[].concat(w):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var w=this,A={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:g({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return w.isComposing=!0},compositionend:function(){return w.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(P){return w.search=P.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:A,listFooter:A,header:g({},A,{deselect:this.deselect}),footer:g({},A,{deselect:this.deselect})}},childComponents:function(){return g({},_,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var w=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return w;var A=this.search.length?this.filter(w,this.search,this):w;if(this.taggable&&this.search.length){var P=this.createOption(this.search);this.optionExists(P)||A.unshift(P)}return A},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(w,A){var P=this;!this.taggable&&(typeof P.resetOnOptionsChange=="function"?P.resetOnOptionsChange(w,A,P.selectedValue):P.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(w){this.isTrackingValues&&this.setInternalValueFromOptions(w)}},multiple:function(){this.clearSelection()},open:function(w){this.$emit(w?"open":"close")}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(w){var A=this;Array.isArray(w)?this.$data._value=w.map(function(P){return A.findOptionFromReducedValue(P)}):this.$data._value=this.findOptionFromReducedValue(w)},select:function(w){this.$emit("option:selecting",w),this.isOptionSelected(w)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(w):(this.taggable&&!this.optionExists(w)&&this.$emit("option:created",w),this.multiple&&(w=this.selectedValue.concat(w)),this.updateValue(w),this.$emit("option:selected",w)),this.onAfterSelect(w)},deselect:function(w){var A=this;this.$emit("option:deselecting",w),this.updateValue(this.selectedValue.filter(function(P){return!A.optionComparator(P,w)})),this.$emit("option:deselected",w)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(w){var A=this;this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return A.$refs.search.focus()})},updateValue:function(w){var A=this;this.value===void 0&&(this.$data._value=w),w!==null&&(w=Array.isArray(w)?w.map(function(P){return A.reduce(P)}):this.reduce(w)),this.$emit("input",w)},toggleDropdown:function(w){var A=w.target!==this.searchEl;A&&w.preventDefault();var P=[].concat(o()(this.$refs.deselectButtons||[]),o()([this.$refs.clearButton]));this.searchEl===void 0||P.filter(Boolean).some(function(x){return x.contains(w.target)||x===w.target})?w.preventDefault():this.open&&A?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(w){var A=this;return this.selectedValue.some(function(P){return A.optionComparator(P,w)})},isOptionDeselectable:function(w){return this.isOptionSelected(w)&&this.deselectFromDropdown},optionComparator:function(w,A){return this.getOptionKey(w)===this.getOptionKey(A)},findOptionFromReducedValue:function(w){var A=this,P=[].concat(o()(this.options),o()(this.pushedTags)).filter(function(x){return JSON.stringify(A.reduce(x))===JSON.stringify(w)});return P.length===1?P[0]:P.find(function(x){return A.optionComparator(x,A.$data._value)})||w},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var w=null;this.multiple&&(w=o()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(w)}},optionExists:function(w){var A=this;return this.optionList.some(function(P){return A.optionComparator(P,w)})},normalizeOptionForSlot:function(w){return c()(w)==="object"?w:d()({},this.label,w)},pushTag:function(w){this.pushedTags.push(w)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var w=this.clearSearchOnSelect,A=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:w,multiple:A})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(w){var A=this,P=function(D){return D.preventDefault(),!A.isComposing&&A.typeAheadSelect()},x={8:function(D){return A.maybeDeleteValue()},9:function(D){return A.onTab()},27:function(D){return A.onEscape()},38:function(D){return D.preventDefault(),A.typeAheadUp()},40:function(D){return D.preventDefault(),A.typeAheadDown()}};this.selectOnKeyCodes.forEach(function(D){return x[D]=P});var $=this.mapKeydown(x,this);if(typeof $[w.keyCode]=="function")return $[w.keyCode](w)}}},function(){var w=this,A=w.$createElement,P=w._self._c||A;return P("div",{staticClass:"v-select",class:w.stateClasses,attrs:{dir:w.dir}},[w._t("header",null,null,w.scope.header),w._v(" "),P("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+w.uid+"__combobox",role:"combobox","aria-expanded":w.dropdownOpen.toString(),"aria-owns":"vs"+w.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(x){return w.toggleDropdown(x)}}},[P("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[w._l(w.selectedValue,function(x){return w._t("selected-option-container",[P("span",{key:w.getOptionKey(x),staticClass:"vs__selected"},[w._t("selected-option",[w._v(` `+w._s(w.getOptionLabel(x))+` `)],null,w.normalizeOptionForSlot(x)),w._v(" "),w.multiple?P("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:w.disabled,type:"button",title:"Deselect "+w.getOptionLabel(x),"aria-label":"Deselect "+w.getOptionLabel(x)},on:{click:function($){return w.deselect(x)}}},[P(w.childComponents.Deselect,{tag:"component"})],1):w._e()],2)],{option:w.normalizeOptionForSlot(x),deselect:w.deselect,multiple:w.multiple,disabled:w.disabled})}),w._v(" "),w._t("search",[P("input",w._g(w._b({staticClass:"vs__search"},"input",w.scope.search.attributes,!1),w.scope.search.events))],null,w.scope.search)],2),w._v(" "),P("div",{ref:"actions",staticClass:"vs__actions"},[P("button",{directives:[{name:"show",rawName:"v-show",value:w.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:w.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:w.clearSelection}},[P(w.childComponents.Deselect,{tag:"component"})],1),w._v(" "),w._t("open-indicator",[w.noDrop?w._e():P(w.childComponents.OpenIndicator,w._b({tag:"component"},"component",w.scope.openIndicator.attributes,!1))],null,w.scope.openIndicator),w._v(" "),w._t("spinner",[P("div",{directives:[{name:"show",rawName:"v-show",value:w.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[w._v("Loading...")])],null,w.scope.spinner)],2)]),w._v(" "),P("transition",{attrs:{name:w.transition}},[w.dropdownOpen?P("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+w.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+w.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(x){return x.preventDefault(),w.onMousedown(x)},mouseup:w.onMouseUp}},[w._t("list-header",null,null,w.scope.listHeader),w._v(" "),w._l(w.filteredOptions,function(x,$){return P("li",{key:w.getOptionKey(x),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":w.isOptionDeselectable(x)&&$===w.typeAheadPointer,"vs__dropdown-option--selected":w.isOptionSelected(x),"vs__dropdown-option--highlight":$===w.typeAheadPointer,"vs__dropdown-option--disabled":!w.selectable(x)},attrs:{id:"vs"+w.uid+"__option-"+$,role:"option","aria-selected":$===w.typeAheadPointer||null},on:{mouseover:function(D){w.selectable(x)&&(w.typeAheadPointer=$)},click:function(D){D.preventDefault(),D.stopPropagation(),w.selectable(x)&&w.select(x)}}},[w._t("option",[w._v(` `+w._s(w.getOptionLabel(x))+` `)],null,w.normalizeOptionForSlot(x))],2)}),w._v(" "),w.filteredOptions.length===0?P("li",{staticClass:"vs__no-options"},[w._t("no-options",[w._v(` Sorry, no matching options. `)],null,w.scope.noOptions)],2):w._e(),w._v(" "),w._t("list-footer",null,null,w.scope.listFooter)],2):P("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+w.uid+"__listbox",role:"listbox"}})]),w._v(" "),w._t("footer",null,null,w.scope.footer)],2)},[],!1,null,null,null).exports,C={ajax:m,pointer:p,pointerScroll:f},k=T})(),a})()})})(lG);var Z$e=lG.exports;const ABe=hi(Z$e);var mb={exports:{}};mb.exports;(function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",a=1,s=2,o=1/0,u=9007199254740991,c="[object Arguments]",l="[object Array]",d="[object Boolean]",f="[object Date]",p="[object Error]",m="[object Function]",b="[object GeneratorFunction]",_="[object Map]",S="[object Number]",E="[object Object]",O="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",T="[object Symbol]",C="[object WeakMap]",k="[object ArrayBuffer]",w="[object DataView]",A="[object Float32Array]",P="[object Float64Array]",x="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,J=/^\./,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,U=/\\(\\)?/g,K=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,se={};se[A]=se[P]=se[x]=se[$]=se[D]=se[M]=se[R]=se[N]=se[j]=!0,se[c]=se[l]=se[k]=se[d]=se[w]=se[f]=se[p]=se[m]=se[_]=se[S]=se[E]=se[h]=se[v]=se[g]=se[C]=!1;var Ae=typeof Te=="object"&&Te&&Te.Object===Object&&Te,qe=typeof self=="object"&&self&&self.Object===Object&&self,yt=Ae||qe||Function("return this")(),sr=e&&!e.nodeType&&e,Vr=sr&&!0&&t&&!t.nodeType&&t,wn=Vr&&Vr.exports===sr,da=wn&&Ae.process,Qa=function(){try{return da&&da.binding("util")}catch{}}(),fa=Qa&&Qa.isTypedArray;function nu(L,H){var Z=L?L.length:0;return!!Z&&Yr(L,H,0)>-1}function De(L,H,Z){for(var ie=-1,Me=L?L.length:0;++ie-1}function M_(L,H){var Z=this.__data__,ie=Hc(Z,L);return ie<0?Z.push([L,H]):Z[ie][1]=H,this}Di.prototype.clear=Ys,Di.prototype.delete=P_,Di.prototype.get=C_,Di.prototype.has=A_,Di.prototype.set=M_;function Ii(L){var H=-1,Z=L?L.length:0;for(this.clear();++H=r){var or=H?null:gm(L);if(or)return Qd(or);ut=!1,Me=om,mt=new au}else mt=H?[]:ft;e:for(;++ieft))return!1;var or=me.get(L);if(or&&me.get(H))return or==H;var Wt=-1,ur=!0,cr=Me&a?new au:void 0;for(me.set(L,H),me.set(H,L);++Wt-1&&L%1==0&&L-1&&L%1==0&&L<=u}function su(L){var H=typeof L;return!!L&&(H=="object"||H=="function")}function Xs(L){return!!L&&typeof L=="object"}function Js(L){return typeof L=="symbol"||Xs(L)&&ha.call(L)==T}var MW=fa?f_(fa):Ks;function $W(L){return L==null?"":Y_(L)}function kW(L,H,Z){var ie=L==null?void 0:hm(L,H);return ie===void 0?Z:ie}function DW(L,H){return L!=null&&X_(L,H,H_)}function Q_(L){return lf(L)?F_(L):es(L)}function IW(L){return L}function RW(){}function LW(L){return Gc(L)?Ar(q(L)):W_(L)}t.exports=he})(mb,mb.exports);var eke=mb.exports;const MBe=hi(eke),tke={"Pacific/Niue":"(GMT-11:00) Niue","Pacific/Pago_Pago":"(GMT-11:00) Pago Pago","Pacific/Honolulu":"(GMT-10:00) Hawaii Time","Pacific/Rarotonga":"(GMT-10:00) Rarotonga","Pacific/Tahiti":"(GMT-10:00) Tahiti","Pacific/Marquesas":"(GMT-09:30) Marquesas","America/Anchorage":"(GMT-09:00) Alaska Time","Pacific/Gambier":"(GMT-09:00) Gambier","America/Los_Angeles":"(GMT-08:00) Pacific Time","America/Tijuana":"(GMT-08:00) Pacific Time - Tijuana","America/Vancouver":"(GMT-08:00) Pacific Time - Vancouver","America/Whitehorse":"(GMT-08:00) Pacific Time - Whitehorse","Pacific/Pitcairn":"(GMT-08:00) Pitcairn","America/Dawson_Creek":"(GMT-07:00) Mountain Time - Dawson Creek","America/Denver":"(GMT-07:00) Mountain Time","America/Edmonton":"(GMT-07:00) Mountain Time - Edmonton","America/Hermosillo":"(GMT-07:00) Mountain Time - Hermosillo","America/Mazatlan":"(GMT-07:00) Mountain Time - Chihuahua, Mazatlan","America/Phoenix":"(GMT-07:00) Mountain Time - Arizona","America/Yellowknife":"(GMT-07:00) Mountain Time - Yellowknife","America/Belize":"(GMT-06:00) Belize","America/Chicago":"(GMT-06:00) Central Time","America/Costa_Rica":"(GMT-06:00) Costa Rica","America/El_Salvador":"(GMT-06:00) El Salvador","America/Guatemala":"(GMT-06:00) Guatemala","America/Managua":"(GMT-06:00) Managua","America/Mexico_City":"(GMT-06:00) Central Time - Mexico City","America/Regina":"(GMT-06:00) Central Time - Regina","America/Tegucigalpa":"(GMT-06:00) Central Time - Tegucigalpa","America/Winnipeg":"(GMT-06:00) Central Time - Winnipeg","Pacific/Galapagos":"(GMT-06:00) Galapagos","America/Bogota":"(GMT-05:00) Bogota","America/Cancun":"(GMT-05:00) America Cancun","America/Cayman":"(GMT-05:00) Cayman","America/Guayaquil":"(GMT-05:00) Guayaquil","America/Havana":"(GMT-05:00) Havana","America/Iqaluit":"(GMT-05:00) Eastern Time - Iqaluit","America/Jamaica":"(GMT-05:00) Jamaica","America/Lima":"(GMT-05:00) Lima","America/Nassau":"(GMT-05:00) Nassau","America/New_York":"(GMT-05:00) Eastern Time","America/Panama":"(GMT-05:00) Panama","America/Port-au-Prince":"(GMT-05:00) Port-au-Prince","America/Rio_Branco":"(GMT-05:00) Rio Branco","America/Toronto":"(GMT-05:00) Eastern Time - Toronto","Pacific/Easter":"(GMT-05:00) Easter Island","America/Caracas":"(GMT-04:30) Caracas","America/Asuncion":"(GMT-03:00) Asuncion","America/Barbados":"(GMT-04:00) Barbados","America/Boa_Vista":"(GMT-04:00) Boa Vista","America/Campo_Grande":"(GMT-03:00) Campo Grande","America/Cuiaba":"(GMT-03:00) Cuiaba","America/Curacao":"(GMT-04:00) Curacao","America/Grand_Turk":"(GMT-04:00) Grand Turk","America/Guyana":"(GMT-04:00) Guyana","America/Halifax":"(GMT-04:00) Atlantic Time - Halifax","America/La_Paz":"(GMT-04:00) La Paz","America/Manaus":"(GMT-04:00) Manaus","America/Martinique":"(GMT-04:00) Martinique","America/Port_of_Spain":"(GMT-04:00) Port of Spain","America/Porto_Velho":"(GMT-04:00) Porto Velho","America/Puerto_Rico":"(GMT-04:00) Puerto Rico","America/Santo_Domingo":"(GMT-04:00) Santo Domingo","America/Thule":"(GMT-04:00) Thule","Atlantic/Bermuda":"(GMT-04:00) Bermuda","America/St_Johns":"(GMT-03:30) Newfoundland Time - St. Johns","America/Araguaina":"(GMT-03:00) Araguaina","America/Argentina/Buenos_Aires":"(GMT-03:00) Buenos Aires","America/Bahia":"(GMT-03:00) Salvador","America/Belem":"(GMT-03:00) Belem","America/Cayenne":"(GMT-03:00) Cayenne","America/Fortaleza":"(GMT-03:00) Fortaleza","America/Godthab":"(GMT-03:00) Godthab","America/Maceio":"(GMT-03:00) Maceio","America/Miquelon":"(GMT-03:00) Miquelon","America/Montevideo":"(GMT-03:00) Montevideo","America/Paramaribo":"(GMT-03:00) Paramaribo","America/Recife":"(GMT-03:00) Recife","America/Santiago":"(GMT-03:00) Santiago","America/Sao_Paulo":"(GMT-02:00) Sao Paulo","Antarctica/Palmer":"(GMT-03:00) Palmer","Antarctica/Rothera":"(GMT-03:00) Rothera","Atlantic/Stanley":"(GMT-03:00) Stanley","America/Noronha":"(GMT-02:00) Noronha","Atlantic/South_Georgia":"(GMT-02:00) South Georgia","America/Scoresbysund":"(GMT-01:00) Scoresbysund","Atlantic/Azores":"(GMT-01:00) Azores","Atlantic/Cape_Verde":"(GMT-01:00) Cape Verde","Africa/Abidjan":"(GMT+00:00) Abidjan","Africa/Accra":"(GMT+00:00) Accra","Africa/Bissau":"(GMT+00:00) Bissau","Africa/Casablanca":"(GMT+00:00) Casablanca","Africa/El_Aaiun":"(GMT+00:00) El Aaiun","Africa/Monrovia":"(GMT+00:00) Monrovia","America/Danmarkshavn":"(GMT+00:00) Danmarkshavn","Atlantic/Canary":"(GMT+00:00) Canary Islands","Atlantic/Faroe":"(GMT+00:00) Faeroe","Atlantic/Reykjavik":"(GMT+00:00) Reykjavik","Etc/GMT":"(GMT+00:00) GMT (no daylight saving)","Europe/Dublin":"(GMT+00:00) Dublin","Europe/Lisbon":"(GMT+00:00) Lisbon","Europe/London":"(GMT+00:00) London","Africa/Algiers":"(GMT+01:00) Algiers","Africa/Ceuta":"(GMT+01:00) Ceuta","Africa/Lagos":"(GMT+01:00) Lagos","Africa/Ndjamena":"(GMT+01:00) Ndjamena","Africa/Tunis":"(GMT+01:00) Tunis","Africa/Windhoek":"(GMT+02:00) Windhoek","Europe/Amsterdam":"(GMT+01:00) Amsterdam","Europe/Andorra":"(GMT+01:00) Andorra","Europe/Belgrade":"(GMT+01:00) Central European Time - Belgrade","Europe/Berlin":"(GMT+01:00) Berlin","Europe/Brussels":"(GMT+01:00) Brussels","Europe/Budapest":"(GMT+01:00) Budapest","Europe/Copenhagen":"(GMT+01:00) Copenhagen","Europe/Gibraltar":"(GMT+01:00) Gibraltar","Europe/Luxembourg":"(GMT+01:00) Luxembourg","Europe/Madrid":"(GMT+01:00) Madrid","Europe/Malta":"(GMT+01:00) Malta","Europe/Monaco":"(GMT+01:00) Monaco","Europe/Oslo":"(GMT+01:00) Oslo","Europe/Paris":"(GMT+01:00) Paris","Europe/Prague":"(GMT+01:00) Central European Time - Prague","Europe/Rome":"(GMT+01:00) Rome","Europe/Stockholm":"(GMT+01:00) Stockholm","Europe/Tirane":"(GMT+01:00) Tirane","Europe/Vienna":"(GMT+01:00) Vienna","Europe/Warsaw":"(GMT+01:00) Warsaw","Europe/Zurich":"(GMT+01:00) Zurich","Africa/Cairo":"(GMT+02:00) Cairo","Africa/Johannesburg":"(GMT+02:00) Johannesburg","Africa/Maputo":"(GMT+02:00) Maputo","Africa/Tripoli":"(GMT+02:00) Tripoli","Asia/Amman":"(GMT+02:00) Amman","Asia/Beirut":"(GMT+02:00) Beirut","Asia/Damascus":"(GMT+02:00) Damascus","Asia/Gaza":"(GMT+02:00) Gaza","Asia/Jerusalem":"(GMT+02:00) Jerusalem","Asia/Nicosia":"(GMT+02:00) Nicosia","Europe/Athens":"(GMT+02:00) Athens","Europe/Bucharest":"(GMT+02:00) Bucharest","Europe/Chisinau":"(GMT+02:00) Chisinau","Europe/Helsinki":"(GMT+02:00) Helsinki","Europe/Istanbul":"(GMT+02:00) Istanbul","Europe/Kaliningrad":"(GMT+02:00) Moscow-01 - Kaliningrad","Europe/Kiev":"(GMT+02:00) Kiev","Europe/Riga":"(GMT+02:00) Riga","Europe/Sofia":"(GMT+02:00) Sofia","Europe/Tallinn":"(GMT+02:00) Tallinn","Europe/Vilnius":"(GMT+02:00) Vilnius","Africa/Khartoum":"(GMT+03:00) Khartoum","Africa/Nairobi":"(GMT+03:00) Nairobi","Antarctica/Syowa":"(GMT+03:00) Syowa","Asia/Baghdad":"(GMT+03:00) Baghdad","Asia/Qatar":"(GMT+03:00) Qatar","Asia/Riyadh":"(GMT+03:00) Riyadh","Europe/Minsk":"(GMT+03:00) Minsk","Europe/Moscow":"(GMT+03:00) Moscow+00 - Moscow","Asia/Tehran":"(GMT+03:30) Tehran","Asia/Baku":"(GMT+04:00) Baku","Asia/Dubai":"(GMT+04:00) Dubai","Asia/Tbilisi":"(GMT+04:00) Tbilisi","Asia/Yerevan":"(GMT+04:00) Yerevan","Europe/Samara":"(GMT+04:00) Moscow+01 - Samara","Indian/Mahe":"(GMT+04:00) Mahe","Indian/Mauritius":"(GMT+04:00) Mauritius","Indian/Reunion":"(GMT+04:00) Reunion","Asia/Kabul":"(GMT+04:30) Kabul","Antarctica/Mawson":"(GMT+05:00) Mawson","Asia/Aqtau":"(GMT+05:00) Aqtau","Asia/Aqtobe":"(GMT+05:00) Aqtobe","Asia/Ashgabat":"(GMT+05:00) Ashgabat","Asia/Dushanbe":"(GMT+05:00) Dushanbe","Asia/Karachi":"(GMT+05:00) Karachi","Asia/Tashkent":"(GMT+05:00) Tashkent","Asia/Yekaterinburg":"(GMT+05:00) Moscow+02 - Yekaterinburg","Indian/Kerguelen":"(GMT+05:00) Kerguelen","Indian/Maldives":"(GMT+05:00) Maldives","Asia/Calcutta":"(GMT+05:30) India Standard Time","Asia/Colombo":"(GMT+05:30) Colombo","Asia/Katmandu":"(GMT+05:45) Katmandu","Antarctica/Vostok":"(GMT+06:00) Vostok","Asia/Almaty":"(GMT+06:00) Almaty","Asia/Bishkek":"(GMT+06:00) Bishkek","Asia/Dhaka":"(GMT+06:00) Dhaka","Asia/Omsk":"(GMT+06:00) Moscow+03 - Omsk, Novosibirsk","Asia/Thimphu":"(GMT+06:00) Thimphu","Indian/Chagos":"(GMT+06:00) Chagos","Asia/Rangoon":"(GMT+06:30) Rangoon","Indian/Cocos":"(GMT+06:30) Cocos","Antarctica/Davis":"(GMT+07:00) Davis","Asia/Bangkok":"(GMT+07:00) Bangkok","Asia/Hovd":"(GMT+07:00) Hovd","Asia/Jakarta":"(GMT+07:00) Jakarta","Asia/Krasnoyarsk":"(GMT+07:00) Moscow+04 - Krasnoyarsk","Asia/Saigon":"(GMT+07:00) Hanoi","Asia/Ho_Chi_Minh":"(GMT+07:00) Ho Chi Minh","Indian/Christmas":"(GMT+07:00) Christmas","Antarctica/Casey":"(GMT+08:00) Casey","Asia/Brunei":"(GMT+08:00) Brunei","Asia/Choibalsan":"(GMT+08:00) Choibalsan","Asia/Hong_Kong":"(GMT+08:00) Hong Kong","Asia/Irkutsk":"(GMT+08:00) Moscow+05 - Irkutsk","Asia/Kuala_Lumpur":"(GMT+08:00) Kuala Lumpur","Asia/Macau":"(GMT+08:00) Macau","Asia/Makassar":"(GMT+08:00) Makassar","Asia/Manila":"(GMT+08:00) Manila","Asia/Shanghai":"(GMT+08:00) China Time - Beijing","Asia/Singapore":"(GMT+08:00) Singapore","Asia/Taipei":"(GMT+08:00) Taipei","Asia/Ulaanbaatar":"(GMT+08:00) Ulaanbaatar","Australia/Perth":"(GMT+08:00) Western Time - Perth","Asia/Pyongyang":"(GMT+08:30) Pyongyang","Asia/Dili":"(GMT+09:00) Dili","Asia/Jayapura":"(GMT+09:00) Jayapura","Asia/Seoul":"(GMT+09:00) Seoul","Asia/Tokyo":"(GMT+09:00) Tokyo","Asia/Yakutsk":"(GMT+09:00) Moscow+06 - Yakutsk","Pacific/Palau":"(GMT+09:00) Palau","Australia/Adelaide":"(GMT+10:30) Central Time - Adelaide","Australia/Darwin":"(GMT+09:30) Central Time - Darwin","Antarctica/DumontDUrville":"(GMT+10:00) Dumont D'Urville","Asia/Magadan":"(GMT+10:00) Moscow+07 - Magadan","Asia/Vladivostok":"(GMT+10:00) Moscow+07 - Yuzhno-Sakhalinsk","Australia/Brisbane":"(GMT+10:00) Eastern Time - Brisbane","Australia/Hobart":"(GMT+11:00) Eastern Time - Hobart","Australia/Sydney":"(GMT+11:00) Eastern Time - Melbourne, Sydney","Pacific/Chuuk":"(GMT+10:00) Truk","Pacific/Guam":"(GMT+10:00) Guam","Pacific/Port_Moresby":"(GMT+10:00) Port Moresby","Pacific/Efate":"(GMT+11:00) Efate","Pacific/Guadalcanal":"(GMT+11:00) Guadalcanal","Pacific/Kosrae":"(GMT+11:00) Kosrae","Pacific/Norfolk":"(GMT+11:00) Norfolk","Pacific/Noumea":"(GMT+11:00) Noumea","Pacific/Pohnpei":"(GMT+11:00) Ponape","Asia/Kamchatka":"(GMT+12:00) Moscow+09 - Petropavlovsk-Kamchatskiy","Pacific/Auckland":"(GMT+13:00) Auckland","Pacific/Fiji":"(GMT+13:00) Fiji","Pacific/Funafuti":"(GMT+12:00) Funafuti","Pacific/Kwajalein":"(GMT+12:00) Kwajalein","Pacific/Majuro":"(GMT+12:00) Majuro","Pacific/Nauru":"(GMT+12:00) Nauru","Pacific/Tarawa":"(GMT+12:00) Tarawa","Pacific/Wake":"(GMT+12:00) Wake","Pacific/Wallis":"(GMT+12:00) Wallis","Pacific/Apia":"(GMT+14:00) Apia","Pacific/Enderbury":"(GMT+13:00) Enderbury","Pacific/Fakaofo":"(GMT+13:00) Fakaofo","Pacific/Tongatapu":"(GMT+13:00) Tongatapu","Pacific/Kiritimati":"(GMT+14:00) Kiritimati"};var rke=tke;const $Be=hi(rke),nke="modulepreload",ike=function(t,e){return new URL(t,e).href},CL={},Ti=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=ike(a,n),a in CL)return;CL[a]=!0;const s=a.endsWith(".css"),o=s?'[rel="stylesheet"]':"";if(!!n)for(let l=i.length-1;l>=0;l--){const d=i[l];if(d.href===a&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${o}`))return;const c=document.createElement("link");if(c.rel=s?"stylesheet":nke,s||(c.as="script",c.crossOrigin=""),c.href=a,document.head.appendChild(c),s)return new Promise((l,d)=>{c.addEventListener("load",l),c.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e()).catch(a=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a})};/*! * vue-i18n v8.27.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */var dG=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function Pd(t,e){typeof console<"u"&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function ake(t,e){typeof console<"u"&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var Wa=Array.isArray;function $i(t){return t!==null&&typeof t=="object"}function ske(t){return typeof t=="boolean"}function Hr(t){return typeof t=="string"}var oke=Object.prototype.toString,uke="[object Object]";function Ha(t){return oke.call(t)===uke}function Dn(t){return t==null}function $T(t){return typeof t=="function"}function Xy(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=null,n=null;return t.length===1?$i(t[0])||Wa(t[0])?n=t[0]:typeof t[0]=="string"&&(r=t[0]):t.length===2&&(typeof t[0]=="string"&&(r=t[0]),($i(t[1])||Wa(t[1]))&&(n=t[1])),{locale:r,params:n}}function Yd(t){return JSON.parse(JSON.stringify(t))}function cke(t,e){if(t.delete(e))return t}function lke(t){var e=[];return t.forEach(function(r){return e.push(r)}),e}function Jy(t,e){return!!~t.indexOf(e)}var dke=Object.prototype.hasOwnProperty;function fke(t,e){return dke.call(t,e)}function Yu(t){for(var e=arguments,r=Object(t),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}function pke(t){return t!=null&&Object.keys(t).forEach(function(e){typeof t[e]=="string"&&(t[e]=hke(t[e]))}),t}function mke(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(e){for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[e,i.locale,i._getMessages(),this].concat(r))},t.prototype.$tc=function(e,r){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];var a=this.$i18n;return a._tc.apply(a,[e,a.locale,a._getMessages(),this,r].concat(n))},t.prototype.$te=function(e,r){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),r)},t.prototype.$d=function(e){for(var r,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(r=this.$i18n).d.apply(r,[e].concat(n))},t.prototype.$n=function(e){for(var r,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(r=this.$i18n).n.apply(r,[e].concat(n))}}function gke(t){t===void 0&&(t=!1);function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return t?{mounted:e}:{beforeCreate:function(){var n=this.$options;if(n.i18n=n.i18n||(n.__i18nBridge||n.__i18n?{}:null),n.i18n){if(n.i18n instanceof de){if(n.__i18nBridge||n.__i18n)try{var i=n.i18n&&n.i18n.messages?n.i18n.messages:{},a=n.__i18nBridge||n.__i18n;a.forEach(function(d){i=Yu(i,JSON.parse(d))}),Object.keys(i).forEach(function(d){n.i18n.mergeLocaleMessage(d,i[d])})}catch{}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(Ha(n.i18n)){var s=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof de?this.$root.$i18n:null;if(s&&(n.i18n.root=this.$root,n.i18n.formatter=s.formatter,n.i18n.fallbackLocale=s.fallbackLocale,n.i18n.formatFallbackMessages=s.formatFallbackMessages,n.i18n.silentTranslationWarn=s.silentTranslationWarn,n.i18n.silentFallbackWarn=s.silentFallbackWarn,n.i18n.pluralizationRules=s.pluralizationRules,n.i18n.preserveDirectiveContent=s.preserveDirectiveContent),n.__i18nBridge||n.__i18n)try{var o=n.i18n&&n.i18n.messages?n.i18n.messages:{},u=n.__i18nBridge||n.__i18n;u.forEach(function(d){o=Yu(o,JSON.parse(d))}),n.i18n.messages=o}catch{}var c=n.i18n,l=c.sharedMessages;l&&Ha(l)&&(n.i18n.messages=Yu(n.i18n.messages,l)),this._i18n=new de(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(n.i18n.sync===void 0||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),s&&s.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof de?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof de&&(this._i18n=n.parent.$i18n)},beforeMount:function(){var n=this.$options;n.i18n=n.i18n||(n.__i18nBridge||n.__i18n?{}:null),n.i18n?n.i18n instanceof de?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):Ha(n.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof de?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof de&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var n=this;this.$nextTick(function(){n._subscribing&&(n._i18n.unsubscribeDataChanging(n),delete n._subscribing),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher)})}}}}var AL={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,r){var n=r.data,i=r.parent,a=r.props,s=r.slots,o=i.$i18n;if(o){var u=a.path,c=a.locale,l=a.places,d=s(),f=o.i(u,c,vke(d)||l?bke(d.default,l):d),p=a.tag&&a.tag!==!0||a.tag===!1?a.tag:"span";return p?e(p,n,f):f}}};function vke(t){var e;for(e in t)if(e!=="default")return!1;return!!e}function bke(t,e){var r=e?yke(e):{};if(!t)return r;t=t.filter(function(i){return i.tag||i.text.trim()!==""});var n=t.every(wke);return t.reduce(n?_ke:fG,r)}function yke(t){return Array.isArray(t)?t.reduce(fG,{}):Object.assign({},t)}function _ke(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function fG(t,e,r){return t[r]=e,t}function wke(t){return!!(t.data&&t.data.attrs&&t.data.attrs.place)}var ML={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,r){var n=r.props,i=r.parent,a=r.data,s=i.$i18n;if(!s)return null;var o=null,u=null;Hr(n.format)?o=n.format:$i(n.format)&&(n.format.key&&(o=n.format.key),u=Object.keys(n.format).reduce(function(p,m){var b;return Jy(dG,m)?Object.assign({},p,(b={},b[m]=n.format[m],b)):p},null));var c=n.locale||s.locale,l=s._ntp(n.value,c,o,u),d=l.map(function(p,m){var b,_=a.scopedSlots&&a.scopedSlots[p.type];return _?_((b={},b[p.type]=p.value,b.index=m,b.parts=l,b)):p.value}),f=n.tag&&n.tag!==!0||n.tag===!1?n.tag:"span";return f?e(f,{attrs:a.attrs,class:a.class,staticClass:a.staticClass},d):d}};function Ske(t,e,r){hG(t,r)&&pG(t,e,r)}function Oke(t,e,r,n){if(hG(t,r)){var i=r.context.$i18n;Eke(t,r)&&gb(e.value,e.oldValue)&&gb(t._localeMessage,i.getLocaleMessage(i.locale))||pG(t,e,r)}}function Tke(t,e,r,n){var i=r.context;if(!i){Pd("Vue instance does not exists in VNode context");return}var a=r.context.$i18n||{};!e.modifiers.preserve&&!a.preserveDirectiveContent&&(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}function hG(t,e){var r=e.context;return r?r.$i18n?!0:(Pd("VueI18n instance does not exists in Vue instance"),!1):(Pd("Vue instance does not exists in VNode context"),!1)}function Eke(t,e){var r=e.context;return t._locale===r.$i18n.locale}function pG(t,e,r){var n,i,a=e.value,s=xke(a),o=s.path,u=s.locale,c=s.args,l=s.choice;if(!o&&!u&&!c){Pd("value type not supported");return}if(!o){Pd("`path` is required in v-t directive");return}var d=r.context;l!=null?t._vt=t.textContent=(n=d.$i18n).tc.apply(n,[o,l].concat($L(u,c))):t._vt=t.textContent=(i=d.$i18n).t.apply(i,[o].concat($L(u,c))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function xke(t){var e,r,n,i;return Hr(t)?e=t:Ha(t)&&(e=t.path,r=t.locale,n=t.args,i=t.choice),{path:e,locale:r,args:n,choice:i}}function $L(t,e){var r=[];return t&&r.push(t),e&&(Array.isArray(e)||Ha(e))&&r.push(e),r}var cn;function mC(t,e){e===void 0&&(e={bridge:!1}),mC.installed=!0,cn=t,cn.version&&Number(cn.version.split(".")[0]),mke(cn),cn.mixin(gke(e.bridge)),cn.directive("t",{bind:Ske,update:Oke,unbind:Tke}),cn.component(AL.name,AL),cn.component(ML.name,ML);var r=cn.config.optionMergeStrategies;r.i18n=function(n,i){return i===void 0?n:i}}var mG=function(){this._caches=Object.create(null)};mG.prototype.interpolate=function(e,r){if(!r)return[e];var n=this._caches[e];return n||(n=Ake(e),this._caches[e]=n),Mke(n,r)};var Pke=/^(?:\d)+/,Cke=/^(?:\w)+/;function Ake(t){for(var e=[],r=0,n="";r0)i--,n=Cs,f[Br]();else{if(i=0,s===void 0||(s=Rke(s),s===!1))return!1;f[zl]()}};function p(){var m=t[r+1];if(n===yb&&m==="'"||n===_b&&m==='"')return r++,o="\\"+m,f[Br](),!0}for(;n!==null;)if(r++,a=t[r],!(a==="\\"&&p())){if(u=Ike(a),d=ru[n],c=d[u]||d.else||Op,c===Op||(n=c[0],l=f[c[1]],l&&(o=c[2],o=o===void 0?a:o,l()===!1)))return;if(n===Qy)return e}}var gC=function(){this._cache=Object.create(null)};gC.prototype.parsePath=function(e){var r=this._cache[e];return r||(r=Lke(e),r&&(this._cache[e]=r)),r||[]};gC.prototype.getPathValue=function(e,r){if(!$i(e))return null;var n=this.parsePath(r);if(n.length===0)return null;for(var i=n.length,a=e,s=0;s/,Bke=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Fke=/^@(?:\.([a-zA-Z]+))?:/,jke=/[()]/g,kL={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},DT=new mG,de=function(e){var r=this;e===void 0&&(e={}),!cn&&typeof window<"u"&&window.Vue&&mC(window.Vue);var n=e.locale||"en-US",i=e.fallbackLocale===!1?!1:e.fallbackLocale||"en-US",a=e.messages||{},s=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||DT,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=e.sync===void 0?!0:!!e.sync,this._fallbackRoot=e.fallbackRoot===void 0?!0:!!e.fallbackRoot,this._fallbackRootWithEmptyString=e.fallbackRootWithEmptyString===void 0?!0:!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=e.formatFallbackMessages===void 0?!1:!!e.formatFallbackMessages,this._silentTranslationWarn=e.silentTranslationWarn===void 0?!1:e.silentTranslationWarn,this._silentFallbackWarn=e.silentFallbackWarn===void 0?!1:!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new gC,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=e.preserveDirectiveContent===void 0?!1:!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(u,c){var l=Object.getPrototypeOf(r);if(l&&l.getChoiceIndex){var d=l.getChoiceIndex;return d.call(r,u,c)}var f=function(p,m){return p=Math.abs(p),m===2?p?p>1?1:0:1:p?Math.min(p,2):0};return r.locale in r.pluralizationRules?r.pluralizationRules[r.locale].apply(r,[u,c]):f(u,c)},this._exist=function(u,c){return!u||!c?!1:!!(!Dn(r._path.getPathValue(u,c))||u[c])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(a).forEach(function(u){r._checkLocaleMessage(u,r._warnHtmlInMessage,a[u])}),this._initVM({locale:n,fallbackLocale:i,messages:a,dateTimeFormats:s,numberFormats:o})},wt={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};de.prototype._checkLocaleMessage=function(e,r,n){var i=[],a=function(s,o,u,c){if(Ha(u))Object.keys(u).forEach(function(f){var p=u[f];Ha(p)?(c.push(f),c.push("."),a(s,o,p,c),c.pop(),c.pop()):(c.push(f),a(s,o,p,c),c.pop())});else if(Wa(u))u.forEach(function(f,p){Ha(f)?(c.push("["+p+"]"),c.push("."),a(s,o,f,c),c.pop(),c.pop()):(c.push("["+p+"]"),a(s,o,f,c),c.pop())});else if(Hr(u)){var l=Nke.test(u);if(l){var d="Detected HTML in message '"+u+"' of keypath '"+c.join("")+"' at '"+o+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";s==="warn"?Pd(d):s==="error"&&ake(d)}}};a(r,e,n,i)};de.prototype._initVM=function(e){var r=cn.config.silent;cn.config.silent=!0,this._vm=new cn({data:e,__VUE18N__INSTANCE__:!0}),cn.config.silent=r};de.prototype.destroyVM=function(){this._vm.$destroy()};de.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)};de.prototype.unsubscribeDataChanging=function(e){cke(this._dataListeners,e)};de.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var r=lke(e._dataListeners),n=r.length;n--;)cn.nextTick(function(){r[n]&&r[n].$forceUpdate()})},{deep:!0})};de.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var n=this,i=this._vm;return this.vm.$watch("locale",function(a){i.$set(i,"locale",a),n.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=a),i.$forceUpdate()},{immediate:!0})}else{if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",function(a){r.$set(r,"locale",a),r.$forceUpdate()},{immediate:!0})}};de.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)};wt.vm.get=function(){return this._vm};wt.messages.get=function(){return Yd(this._getMessages())};wt.dateTimeFormats.get=function(){return Yd(this._getDateTimeFormats())};wt.numberFormats.get=function(){return Yd(this._getNumberFormats())};wt.availableLocales.get=function(){return Object.keys(this.messages).sort()};wt.locale.get=function(){return this._vm.locale};wt.locale.set=function(t){this._vm.$set(this._vm,"locale",t)};wt.fallbackLocale.get=function(){return this._vm.fallbackLocale};wt.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)};wt.formatFallbackMessages.get=function(){return this._formatFallbackMessages};wt.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t};wt.missing.get=function(){return this._missing};wt.missing.set=function(t){this._missing=t};wt.formatter.get=function(){return this._formatter};wt.formatter.set=function(t){this._formatter=t};wt.silentTranslationWarn.get=function(){return this._silentTranslationWarn};wt.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t};wt.silentFallbackWarn.get=function(){return this._silentFallbackWarn};wt.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t};wt.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};wt.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t};wt.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};wt.warnHtmlInMessage.set=function(t){var e=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,r!==t&&(t==="warn"||t==="error")){var n=this._getMessages();Object.keys(n).forEach(function(i){e._checkLocaleMessage(i,e._warnHtmlInMessage,n[i])})}};wt.postTranslation.get=function(){return this._postTranslation};wt.postTranslation.set=function(t){this._postTranslation=t};wt.sync.get=function(){return this._sync};wt.sync.set=function(t){this._sync=t};de.prototype._getMessages=function(){return this._vm.messages};de.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats};de.prototype._getNumberFormats=function(){return this._vm.numberFormats};de.prototype._warnDefault=function(e,r,n,i,a,s){if(!Dn(n))return n;if(this._missing){var o=this._missing.apply(null,[e,r,i,a]);if(Hr(o))return o}if(this._formatFallbackMessages){var u=Xy.apply(void 0,a);return this._render(r,s,u.params,r)}else return r};de.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:Dn(e))&&!Dn(this._root)&&this._fallbackRoot};de.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn};de.prototype._isSilentFallback=function(e,r){return this._isSilentFallbackWarn(r)&&(this._isFallbackRoot()||e!==this.fallbackLocale)};de.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn};de.prototype._interpolate=function(e,r,n,i,a,s,o){if(!r)return null;var u=this._path.getPathValue(r,n);if(Wa(u)||Ha(u))return u;var c;if(Dn(u))if(Ha(r)){if(c=r[n],!(Hr(c)||$T(c)))return null}else return null;else if(Hr(u)||$T(u))c=u;else return null;return Hr(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,r,c,i,"raw",s,o)),this._render(c,a,s,n)};de.prototype._link=function(e,r,n,i,a,s,o){var u=n,c=u.match(Bke);for(var l in c)if(c.hasOwnProperty(l)){var d=c[l],f=d.match(Fke),p=f[0],m=f[1],b=d.replace(p,"").replace(jke,"");if(Jy(o,b))return u;o.push(b);var _=this._interpolate(e,r,b,i,a==="raw"?"string":a,a==="raw"?void 0:s,o);if(this._isFallbackRoot(_)){if(!this._root)throw Error("unexpected error");var S=this._root.$i18n;_=S._translate(S._getMessages(),S.locale,S.fallbackLocale,b,i,a,s)}_=this._warnDefault(e,b,_,i,Wa(s)?s:[s],a),this._modifiers.hasOwnProperty(m)?_=this._modifiers[m](_):kL.hasOwnProperty(m)&&(_=kL[m](_)),o.pop(),u=_?u.replace(d,_):u}return u};de.prototype._createMessageContext=function(e,r,n,i){var a=this,s=Wa(e)?e:[],o=$i(e)?e:{},u=function(f){return s[f]},c=function(f){return o[f]},l=this._getMessages(),d=this.locale;return{list:u,named:c,values:e,formatter:r,path:n,messages:l,locale:d,linked:function(f){return a._interpolate(d,l[d]||{},f,null,i,void 0,[f])}}};de.prototype._render=function(e,r,n,i){if($T(e))return e(this._createMessageContext(n,this._formatter||DT,i,r));var a=this._formatter.interpolate(e,n,i);return a||(a=DT.interpolate(e,n,i)),r==="string"&&!Hr(a)?a.join(""):a};de.prototype._appendItemToChain=function(e,r,n){var i=!1;return Jy(e,r)||(i=!0,r&&(i=r[r.length-1]!=="!",r=r.replace(/!/g,""),e.push(r),n&&n[r]&&(i=n[r]))),i};de.prototype._appendLocaleToChain=function(e,r,n){var i,a=r.split("-");do{var s=a.join("-");i=this._appendItemToChain(e,s,n),a.splice(-1,1)}while(a.length&&i===!0);return i};de.prototype._appendBlockToChain=function(e,r,n){for(var i=!0,a=0;a0;)s[o]=arguments[o+4];if(!e)return"";var u=Xy.apply(void 0,s);this._escapeParameterHtml&&(u.params=pke(u.params));var c=u.locale||r,l=this._translate(n,c,this.fallbackLocale,e,i,"string",u.params);if(this._isFallbackRoot(l)){if(!this._root)throw Error("unexpected error");return(a=this._root).$t.apply(a,[e].concat(s))}else return l=this._warnDefault(c,e,l,i,s,"string"),this._postTranslation&&l!==null&&l!==void 0&&(l=this._postTranslation(l,e)),l};de.prototype.t=function(e){for(var r,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(r=this)._t.apply(r,[e,this.locale,this._getMessages(),null].concat(n))};de.prototype._i=function(e,r,n,i,a){var s=this._translate(n,r,this.fallbackLocale,e,i,"raw",a);if(this._isFallbackRoot(s)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,r,a)}else return this._warnDefault(r,e,s,i,[a],"raw")};de.prototype.i=function(e,r,n){return e?(Hr(r)||(r=this.locale),this._i(e,r,this._getMessages(),null,n)):""};de.prototype._tc=function(e,r,n,i,a){for(var s,o=[],u=arguments.length-5;u-- >0;)o[u]=arguments[u+5];if(!e)return"";a===void 0&&(a=1);var c={count:a,n:a},l=Xy.apply(void 0,o);return l.params=Object.assign(c,l.params),o=l.locale===null?[l.params]:[l.locale,l.params],this.fetchChoice((s=this)._t.apply(s,[e,r,n,i].concat(o)),a)};de.prototype.fetchChoice=function(e,r){if(!e||!Hr(e))return null;var n=e.split("|");return r=this.getChoiceIndex(r,n.length),n[r]?n[r].trim():e};de.prototype.tc=function(e,r){for(var n,i=[],a=arguments.length-2;a-- >0;)i[a]=arguments[a+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,r].concat(i))};de.prototype._te=function(e,r,n){for(var i=[],a=arguments.length-3;a-- >0;)i[a]=arguments[a+3];var s=Xy.apply(void 0,i).locale||r;return this._exist(n[s],e)};de.prototype.te=function(e,r){return this._te(e,this.locale,this._getMessages(),r)};de.prototype.getLocaleMessage=function(e){return Yd(this._vm.messages[e]||{})};de.prototype.setLocaleMessage=function(e,r){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,r),this._vm.$set(this._vm.messages,e,r)};de.prototype.mergeLocaleMessage=function(e,r){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,r),this._vm.$set(this._vm.messages,e,Yu(typeof this._vm.messages[e]<"u"&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},r))};de.prototype.getDateTimeFormat=function(e){return Yd(this._vm.dateTimeFormats[e]||{})};de.prototype.setDateTimeFormat=function(e,r){this._vm.$set(this._vm.dateTimeFormats,e,r),this._clearDateTimeFormat(e,r)};de.prototype.mergeDateTimeFormat=function(e,r){this._vm.$set(this._vm.dateTimeFormats,e,Yu(this._vm.dateTimeFormats[e]||{},r)),this._clearDateTimeFormat(e,r)};de.prototype._clearDateTimeFormat=function(e,r){for(var n in r){var i=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}};de.prototype._localizeDateTime=function(e,r,n,i,a){for(var s=r,o=i[s],u=this._getLocaleChain(r,n),c=0;c0;)r[n]=arguments[n+1];var i=this.locale,a=null;return r.length===1?Hr(r[0])?a=r[0]:$i(r[0])&&(r[0].locale&&(i=r[0].locale),r[0].key&&(a=r[0].key)):r.length===2&&(Hr(r[0])&&(a=r[0]),Hr(r[1])&&(i=r[1])),this._d(e,i,a)};de.prototype.getNumberFormat=function(e){return Yd(this._vm.numberFormats[e]||{})};de.prototype.setNumberFormat=function(e,r){this._vm.$set(this._vm.numberFormats,e,r),this._clearNumberFormat(e,r)};de.prototype.mergeNumberFormat=function(e,r){this._vm.$set(this._vm.numberFormats,e,Yu(this._vm.numberFormats[e]||{},r)),this._clearNumberFormat(e,r)};de.prototype._clearNumberFormat=function(e,r){for(var n in r){var i=e+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}};de.prototype._getNumberFormatter=function(e,r,n,i,a,s){for(var o=r,u=i[o],c=this._getLocaleChain(r,n),l=0;l0;)r[n]=arguments[n+1];var i=this.locale,a=null,s=null;return r.length===1?Hr(r[0])?a=r[0]:$i(r[0])&&(r[0].locale&&(i=r[0].locale),r[0].key&&(a=r[0].key),s=Object.keys(r[0]).reduce(function(o,u){var c;return Jy(dG,u)?Object.assign({},o,(c={},c[u]=r[0][u],c)):o},null)):r.length===2&&(Hr(r[0])&&(a=r[0]),Hr(r[1])&&(i=r[1])),this._n(e,i,a,s)};de.prototype._ntp=function(e,r,n,i){if(!de.availabilities.numberFormat)return[];if(!n){var a=i?new Intl.NumberFormat(r,i):new Intl.NumberFormat(r);return a.formatToParts(e)}var s=this._getNumberFormatter(e,r,this.fallbackLocale,this._getNumberFormats(),n,i),o=s&&s.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,r,n,i)}else return o||[]};Object.defineProperties(de.prototype,wt);var q1;Object.defineProperty(de,"availabilities",{get:function(){if(!q1){var e=typeof Intl<"u";q1={dateTimeFormat:e&&typeof Intl.DateTimeFormat<"u",numberFormat:e&&typeof Intl.NumberFormat<"u"}}return q1}});de.install=mC;de.version="8.27.2";const kBe=de;var bG={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Te,function(){var r,n,i=1e3,a=6e4,s=36e5,o=864e5,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,l=2592e6,d=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,f={years:c,months:l,days:o,hours:s,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},p=function(v){return v instanceof h},m=function(v,g,T){return new h(v,T,g.$l)},b=function(v){return n.p(v)+"s"},_=function(v){return v<0},S=function(v){return _(v)?Math.ceil(v):Math.floor(v)},E=function(v){return Math.abs(v)},O=function(v,g){return v?_(v)?{negative:!0,format:""+E(v)+g}:{negative:!1,format:""+v+g}:{negative:!1,format:""}},h=function(){function v(T,C,k){var w=this;if(this.$d={},this.$l=k,T===void 0&&(this.$ms=0,this.parseFromMilliseconds()),C)return m(T*f[b(C)],this);if(typeof T=="number")return this.$ms=T,this.parseFromMilliseconds(),this;if(typeof T=="object")return Object.keys(T).forEach(function(x){w.$d[b(x)]=T[x]}),this.calMilliseconds(),this;if(typeof T=="string"){var A=T.match(d);if(A){var P=A.slice(2).map(function(x){return x!=null?Number(x):0});return this.$d.years=P[0],this.$d.months=P[1],this.$d.weeks=P[2],this.$d.days=P[3],this.$d.hours=P[4],this.$d.minutes=P[5],this.$d.seconds=P[6],this.calMilliseconds(),this}}return this}var g=v.prototype;return g.calMilliseconds=function(){var T=this;this.$ms=Object.keys(this.$d).reduce(function(C,k){return C+(T.$d[k]||0)*f[k]},0)},g.parseFromMilliseconds=function(){var T=this.$ms;this.$d.years=S(T/c),T%=c,this.$d.months=S(T/l),T%=l,this.$d.days=S(T/o),T%=o,this.$d.hours=S(T/s),T%=s,this.$d.minutes=S(T/a),T%=a,this.$d.seconds=S(T/i),T%=i,this.$d.milliseconds=T},g.toISOString=function(){var T=O(this.$d.years,"Y"),C=O(this.$d.months,"M"),k=+this.$d.days||0;this.$d.weeks&&(k+=7*this.$d.weeks);var w=O(k,"D"),A=O(this.$d.hours,"H"),P=O(this.$d.minutes,"M"),x=this.$d.seconds||0;this.$d.milliseconds&&(x+=this.$d.milliseconds/1e3);var $=O(x,"S"),D=T.negative||C.negative||w.negative||A.negative||P.negative||$.negative,M=A.format||P.format||$.format?"T":"",R=(D?"-":"")+"P"+T.format+C.format+w.format+M+A.format+P.format+$.format;return R==="P"||R==="-P"?"P0D":R},g.toJSON=function(){return this.toISOString()},g.format=function(T){var C=T||"YYYY-MM-DDTHH:mm:ss",k={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return C.replace(u,function(w,A){return A||String(k[w])})},g.as=function(T){return this.$ms/f[b(T)]},g.get=function(T){var C=this.$ms,k=b(T);return k==="milliseconds"?C%=1e3:C=k==="weeks"?S(C/f[k]):this.$d[k],C===0?0:C},g.add=function(T,C,k){var w;return w=C?T*f[b(C)]:p(T)?T.$ms:m(T,this).$ms,m(this.$ms+w*(k?-1:1),this)},g.subtract=function(T,C){return this.add(T,C,!0)},g.locale=function(T){var C=this.clone();return C.$l=T,C},g.clone=function(){return m(this.$ms,this)},g.humanize=function(T){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!T)},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},v}();return function(v,g,T){r=T,n=T().$utils(),T.duration=function(w,A){var P=T.locale();return m(w,{$l:P},A)},T.isDuration=p;var C=g.prototype.add,k=g.prototype.subtract;g.prototype.add=function(w,A){return p(w)&&(w=w.asMilliseconds()),C.bind(this)(w,A)},g.prototype.subtract=function(w,A){return p(w)&&(w=w.asMilliseconds()),k.bind(this)(w,A)}}})})(bG);var Hke=bG.exports;const DBe=hi(Hke);var IT=function(t,e){return IT=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},IT(t,e)};function la(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");IT(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ne=function(){return ne=Object.assign||function(e){for(var r,n=1,i=arguments.length;n0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]r.maxAttempts||r.includes(s)?!1:(r.queue.push(s),!0)});return this.queue=this.queue.sort(function(s,o){return r.getAttempts(s)-r.getAttempts(o)}),a},e.prototype.pushWithBackoff=function(r){var n=this;if(this.getAttempts(r)===0)return this.push(r)[0];var i=this.updateAttempts(r);if(i>this.maxAttempts||this.includes(r))return!1;var a=qke({attempt:i-1});return setTimeout(function(){n.queue.push(r),n.future=n.future.filter(function(s){return s.id!==r.id}),n.emit(SG)},a),this.future.push(r),!0},e.prototype.getAttempts=function(r){var n;return(n=this.seen[r.id])!==null&&n!==void 0?n:0},e.prototype.updateAttempts=function(r){return this.seen[r.id]=this.getAttempts(r)+1,this.getAttempts(r)},e.prototype.includes=function(r){return this.queue.includes(r)||this.future.includes(r)||!!this.queue.find(function(n){return n.id===r.id})||!!this.future.find(function(n){return n.id===r.id})},e.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(e.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),e}(vC),Bu=256,kv=[],$g;for(;Bu--;)kv[Bu]=(Bu+256).toString(16).substring(1);function _C(){var t=0,e,r="";if(!$g||Bu+16>256){for($g=Array(t=256);t--;)$g[t]=256*Math.random()|0;t=Bu=0}for(;t<16;t++)e=$g[Bu+t],t==6?r+=kv[e&15|64]:t==8?r+=kv[e&63|128]:r+=kv[e],t&1&&t>1&&t<11&&(r+="-");return Bu++,r}var Xke=function(){function t(){this._logs=[]}return t.prototype.log=function(e,r,n){var i=new Date;this._logs.push({level:e,message:r,time:i,extras:n})},Object.defineProperty(t.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),t.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce(function(r,n){var i,a,s,o=ne(ne({},n),{json:JSON.stringify(n.extras,null," "),extras:n.extras});delete o.time;var u=(s=(a=n.time)===null||a===void 0?void 0:a.toISOString())!==null&&s!==void 0?s:"";return r[u]&&(u="".concat(u,"-").concat(Math.random())),ne(ne({},r),(i={},i[u]=o,i))},{});console.table?console.table(e):console.log(e)}else this.logs.forEach(function(r){var n=r.level,i=r.message,a=r.extras;n==="info"||n==="debug"?console.log(i,a??""):console[n](i,a??"")});this._logs=[]},t}(),Jke=function(t){var e={gauge:"g",counter:"c"};return e[t]},OG=function(){function t(){this.metrics=[]}return t.prototype.increment=function(e,r,n){r===void 0&&(r=1),this.metrics.push({metric:e,value:r,tags:n??[],type:"counter",timestamp:Date.now()})},t.prototype.gauge=function(e,r,n){this.metrics.push({metric:e,value:r,tags:n??[],type:"gauge",timestamp:Date.now()})},t.prototype.flush=function(){var e=this.metrics.map(function(r){return ne(ne({},r),{tags:r.tags.join(",")})});console.table?console.table(e):console.log(e),this.metrics=[]},t.prototype.serialize=function(){return this.metrics.map(function(e){return{m:e.metric,v:e.value,t:e.tags,k:Jke(e.type),e:e.timestamp}})},t}(),Qke=function(t){la(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.gauge=function(){},e.prototype.increment=function(){},e.prototype.flush=function(){},e.prototype.serialize=function(){return[]},e}(OG),Go=function(){function t(e){var r,n,i;this.retry=(r=e.retry)!==null&&r!==void 0?r:!0,this.type=(n=e.type)!==null&&n!==void 0?n:"plugin Error",this.reason=(i=e.reason)!==null&&i!==void 0?i:""}return t}(),wb=function(){function t(e,r,n,i){r===void 0&&(r=_C()),n===void 0&&(n=new Qke),i===void 0&&(i=new Xke),this.attempts=0,this.event=e,this._id=r,this.logger=i,this.stats=n}return t.system=function(){},t.prototype.isSame=function(e){return e.id===this.id},t.prototype.cancel=function(e){throw e||new Go({reason:"Context Cancel"})},t.prototype.log=function(e,r,n){this.logger.log(e,r,n)},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),t.prototype.updateEvent=function(e,r){var n;if(e.split(".")[0]==="integrations"){var i=e.split(".")[1];if(((n=this.event.integrations)===null||n===void 0?void 0:n[i])===!1)return this.event}return RT(this.event,e,r),this.event},t.prototype.failedDelivery=function(){return this._failedDelivery},t.prototype.setFailedDelivery=function(e){this._failedDelivery=e},t.prototype.logs=function(){return this.logger.logs},t.prototype.flush=function(){this.logger.flush(),this.stats.flush()},t.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},t}();function Zke(t,e){var r={};return t.forEach(function(n){var i,a=void 0;if(typeof e=="string"){var s=n[e];a=typeof s!="string"?JSON.stringify(s):s}else e instanceof Function&&(a=e(n));a!==void 0&&(r[a]=Er(Er([],(i=r[a])!==null&&i!==void 0?i:[],!0),[n],!1))}),r}var eDe=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},tDe=function(){var t,e,r=0;return{done:function(){return t},run:function(n){var i=n();return eDe(i)&&(++r===1&&(t=new Promise(function(a){return e=a})),i.finally(function(){return--r===0&&e()})),i}}};function rDe(t){return ue(this,void 0,void 0,function(){var e;return ce(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t()];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,Promise.reject(e)];case 3:return[2]}})})}function Ql(t,e){t.log("debug","plugin",{plugin:e.name});var r=new Date().getTime(),n=e[t.event.type];if(n===void 0)return Promise.resolve(t);var i=rDe(function(){return n.apply(e,[t])}).then(function(a){var s=new Date().getTime()-r;return a.stats.gauge("plugin_time",s,["plugin:".concat(e.name)]),a}).catch(function(a){if(a instanceof Go&&a.type==="middleware_cancellation")throw a;return a instanceof Go?(t.log("warn",a.type,{plugin:e.name,error:a}),a):(t.log("error","plugin Error",{plugin:e.name,error:a}),t.stats.increment("plugin_error",1,["plugin:".concat(e.name)]),a)});return i}function nDe(t,e){return Ql(t,e).then(function(r){if(r instanceof wb)return r;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(r)})}var iDe=function(t){la(e,t);function e(r){var n=t.call(this)||this;return n.criticalTasks=tDe(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(SG,function(){n.scheduleFlush(0)}),n}return e.prototype.register=function(r,n,i){return ue(this,void 0,void 0,function(){var a=this;return ce(this,function(s){switch(s.label){case 0:return[4,Promise.resolve(n.load(r,i)).then(function(){a.plugins.push(n)}).catch(function(o){if(n.type==="destination"){a.failedInitializations.push(n.name),console.warn(n.name,o),r.log("warn","Failed to load destination",{plugin:n.name,error:o});return}throw o})];case 1:return s.sent(),[2]}})})},e.prototype.deregister=function(r,n,i){return ue(this,void 0,void 0,function(){var a;return ce(this,function(s){switch(s.label){case 0:return s.trys.push([0,3,,4]),n.unload?[4,Promise.resolve(n.unload(r,i))]:[3,2];case 1:s.sent(),s.label=2;case 2:return this.plugins=this.plugins.filter(function(o){return o.name!==n.name}),[3,4];case 3:return a=s.sent(),r.log("warn","Failed to unload destination",{plugin:n.name,error:a}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(r){return ue(this,void 0,void 0,function(){var n;return ce(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.push(r),n=this.subscribeToDelivery(r),this.scheduleFlush(0),[2,n]})})},e.prototype.subscribeToDelivery=function(r){return ue(this,void 0,void 0,function(){var n=this;return ce(this,function(i){return[2,new Promise(function(a){var s=function(o,u){o.isSame(r)&&(n.off("flush",s),a(o))};n.on("flush",s)})]})})},e.prototype.dispatchSingle=function(r){return ue(this,void 0,void 0,function(){var n=this;return ce(this,function(i){return r.log("debug","Dispatching"),r.stats.increment("message_dispatched"),this.queue.updateAttempts(r),r.attempts=1,[2,this.deliver(r).catch(function(a){var s=n.enqueuRetry(a,r);return s?n.subscribeToDelivery(r):(r.setFailedDelivery({reason:a}),r)})]})})},e.prototype.isEmpty=function(){return this.queue.length===0},e.prototype.scheduleFlush=function(r){var n=this;r===void 0&&(r=500),!this.flushing&&(this.flushing=!0,setTimeout(function(){n.flush().then(function(){setTimeout(function(){n.flushing=!1,n.queue.length&&n.scheduleFlush(0)},0)})},r))},e.prototype.deliver=function(r){return ue(this,void 0,void 0,function(){var n,i,a,s;return ce(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),n=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(r)];case 3:return r=o.sent(),i=Date.now()-n,this.emit("delivery_success",r),r.stats.gauge("delivered",i),r.log("debug","Delivered",r.event),[2,r];case 4:throw a=o.sent(),s=a,r.log("error","Failed to deliver",s),this.emit("delivery_failure",r,s),r.stats.increment("delivery_failed"),a;case 5:return[2]}})})},e.prototype.enqueuRetry=function(r,n){var i=!(r instanceof Go)||r.retry;return i?this.queue.pushWithBackoff(n):!1},e.prototype.flush=function(){return ue(this,void 0,void 0,function(){var r,n,i;return ce(this,function(a){switch(a.label){case 0:if(this.queue.length===0)return[2,[]];if(r=this.queue.pop(),!r)return[2,[]];r.attempts=this.queue.getAttempts(r),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.deliver(r)];case 2:return r=a.sent(),this.emit("flush",r,!0),[3,4];case 3:return n=a.sent(),i=this.enqueuRetry(n,r),i||(r.setFailedDelivery({reason:n}),this.emit("flush",r,!1)),[2,[]];case 4:return[2,[r]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(r){var n=this.plugins.filter(function(p){var m,b,_;if(p.type!=="destination"&&p.name!=="Segment.io")return!0;var S=void 0;return(m=p.alternativeNames)===null||m===void 0||m.forEach(function(E){r[E]!==void 0&&(S=r[E])}),(_=(b=r[p.name])!==null&&b!==void 0?b:S)!==null&&_!==void 0?_:(p.name==="Segment.io"?!0:r.All)!==!1}),i=Zke(n,"type"),a=i.before,s=a===void 0?[]:a,o=i.enrichment,u=o===void 0?[]:o,c=i.destination,l=c===void 0?[]:c,d=i.after,f=d===void 0?[]:d;return{before:s,enrichment:u,destinations:l,after:f}},e.prototype.flushOne=function(r){var n,i;return ue(this,void 0,void 0,function(){var a,s,o,u,c,l,m,d,f,p,m,b,_,S,E;return ce(this,function(O){switch(O.label){case 0:if(!this.isReady())throw new Error("Not ready");r.attempts>1&&this.emit("delivery_retry",r),a=this.availableExtensions((n=r.event.integrations)!==null&&n!==void 0?n:{}),s=a.before,o=a.enrichment,u=0,c=s,O.label=1;case 1:return u0){var o=!1,u=function(){o||(o=!0,r.flush().catch(X1),o=!1,setTimeout(u,r.flushTimer))};u()}}return t.prototype.increment=function(e,r){if(e.includes("analytics_js.")&&r.length!==0&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=dDe(e,r,xG());this.queue.push(n),e.includes("error")&&this.flush().catch(X1)}},t.prototype.flush=function(){return ue(this,void 0,void 0,function(){var e=this;return ce(this,function(r){switch(r.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch(function(n){X1(n),e.sampleRate=0})];case 1:return r.sent(),[2]}})})},t.prototype.send=function(){return ue(this,void 0,void 0,function(){var e,r,n;return ce(this,function(i){return e={series:this.queue},this.queue=[],r={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,e_(n,{headers:r,body:JSON.stringify(e),method:"POST"})]})})},t}(),kg,CG=function(t){la(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.initRemoteMetrics=function(r){kg=new fDe(r)},e.prototype.increment=function(r,n,i){t.prototype.increment.call(this,r,n,i),kg==null||kg.increment(r,i??[])},e}(OG),Ku=function(t){la(e,t);function e(r,n){return t.call(this,r,n,new CG)||this}return e.system=function(){return new this({type:"track",event:"system"})},e}(wb),AG={exports:{}};(function(t,e){(function(r){t.exports=r()})(function(r){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(S,E){var O=S[0],h=S[1],v=S[2],g=S[3];O+=(h&v|~h&g)+E[0]-680876936|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+E[1]-389564586|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+E[2]+606105819|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+E[3]-1044525330|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+E[4]-176418897|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+E[5]+1200080426|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+E[6]-1473231341|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+E[7]-45705983|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+E[8]+1770035416|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+E[9]-1958414417|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+E[10]-42063|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+E[11]-1990404162|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+E[12]+1804603682|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+E[13]-40341101|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+E[14]-1502002290|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+E[15]+1236535329|0,h=(h<<22|h>>>10)+v|0,O+=(h&g|v&~g)+E[1]-165796510|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+E[6]-1069501632|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+E[11]+643717713|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+E[0]-373897302|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+E[5]-701558691|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+E[10]+38016083|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+E[15]-660478335|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+E[4]-405537848|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+E[9]+568446438|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+E[14]-1019803690|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+E[3]-187363961|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+E[8]+1163531501|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+E[13]-1444681467|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+E[2]-51403784|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+E[7]+1735328473|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+E[12]-1926607734|0,h=(h<<20|h>>>12)+v|0,O+=(h^v^g)+E[5]-378558|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+E[8]-2022574463|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+E[11]+1839030562|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+E[14]-35309556|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+E[1]-1530992060|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+E[4]+1272893353|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+E[7]-155497632|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+E[10]-1094730640|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+E[13]+681279174|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+E[0]-358537222|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+E[3]-722521979|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+E[6]+76029189|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+E[9]-640364487|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+E[12]-421815835|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+E[15]+530742520|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+E[2]-995338651|0,h=(h<<23|h>>>9)+v|0,O+=(v^(h|~g))+E[0]-198630844|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+E[7]+1126891415|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+E[14]-1416354905|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+E[5]-57434055|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+E[12]+1700485571|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+E[3]-1894986606|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+E[10]-1051523|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+E[1]-2054922799|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+E[8]+1873313359|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+E[15]-30611744|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+E[6]-1560198380|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+E[13]+1309151649|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+E[4]-145523070|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+E[11]-1120210379|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+E[2]+718787259|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+E[9]-343485551|0,h=(h<<21|h>>>11)+v|0,S[0]=O+S[0]|0,S[1]=h+S[1]|0,S[2]=v+S[2]|0,S[3]=g+S[3]|0}function a(S){var E=[],O;for(O=0;O<64;O+=4)E[O>>2]=S.charCodeAt(O)+(S.charCodeAt(O+1)<<8)+(S.charCodeAt(O+2)<<16)+(S.charCodeAt(O+3)<<24);return E}function s(S){var E=[],O;for(O=0;O<64;O+=4)E[O>>2]=S[O]+(S[O+1]<<8)+(S[O+2]<<16)+(S[O+3]<<24);return E}function o(S){var E=S.length,O=[1732584193,-271733879,-1732584194,271733878],h,v,g,T,C,k;for(h=64;h<=E;h+=64)i(O,a(S.substring(h-64,h)));for(S=S.substring(h-64),v=S.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],h=0;h>2]|=S.charCodeAt(h)<<(h%4<<3);if(g[h>>2]|=128<<(h%4<<3),h>55)for(i(O,g),h=0;h<16;h+=1)g[h]=0;return T=E*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(T[2],16),k=parseInt(T[1],16)||0,g[14]=C,g[15]=k,i(O,g),O}function u(S){var E=S.length,O=[1732584193,-271733879,-1732584194,271733878],h,v,g,T,C,k;for(h=64;h<=E;h+=64)i(O,s(S.subarray(h-64,h)));for(S=h-64>2]|=S[h]<<(h%4<<3);if(g[h>>2]|=128<<(h%4<<3),h>55)for(i(O,g),h=0;h<16;h+=1)g[h]=0;return T=E*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),C=parseInt(T[2],16),k=parseInt(T[1],16)||0,g[14]=C,g[15]=k,i(O,g),O}function c(S){var E="",O;for(O=0;O<4;O+=1)E+=n[S>>O*8+4&15]+n[S>>O*8&15];return E}function l(S){var E;for(E=0;Eg?new ArrayBuffer(0):(T=g-v,C=new ArrayBuffer(T),k=new Uint8Array(C),w=new Uint8Array(this,v,T),k.set(w),C)}}();function d(S){return/[\u0080-\uFFFF]/.test(S)&&(S=unescape(encodeURIComponent(S))),S}function f(S,E){var O=S.length,h=new ArrayBuffer(O),v=new Uint8Array(h),g;for(g=0;g>2]|=E.charCodeAt(h)<<(h%4<<3);return this._finish(v,O),g=l(this._hash),S&&(g=b(g)),this.reset(),g},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(S){return this._buff=S.buff,this._length=S.length,this._hash=S.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(S,E){var O=E,h,v,g;if(S[O>>2]|=128<<(O%4<<3),O>55)for(i(this._hash,S),O=0;O<16;O+=1)S[O]=0;h=this._length*8,h=h.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(h[2],16),g=parseInt(h[1],16)||0,S[14]=v,S[15]=g,i(this._hash,S)},_.hash=function(S,E){return _.hashBinary(d(S),E)},_.hashBinary=function(S,E){var O=o(S),h=l(O);return E?b(h):h},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(S){var E=m(this._buff.buffer,S,!0),O=E.length,h;for(this._length+=S.byteLength,h=64;h<=O;h+=64)i(this._hash,s(E.subarray(h-64,h)));return this._buff=h-64>2]|=E[v]<<(v%4<<3);return this._finish(h,O),g=l(this._hash),S&&(g=b(g)),this.reset(),g},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var S=_.prototype.getState.call(this);return S.buff=p(S.buff),S},_.ArrayBuffer.prototype.setState=function(S){return S.buff=f(S.buff,!0),_.prototype.setState.call(this,S)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(S,E){var O=u(new Uint8Array(S)),h=l(O);return E?b(h):h},_})})(AG);var hDe=AG.exports;const pDe=hi(hDe);var mDe=function(){function t(e){this.user=e}return t.prototype.track=function(e,r,n,i){return this.normalize(ne(ne({},this.baseEvent()),{event:e,type:"track",properties:r,options:ne({},n),integrations:ne({},i)}))},t.prototype.page=function(e,r,n,i,a){var s,o={type:"page",properties:ne({},n),options:ne({},i),integrations:ne({},a)};return e!==null&&(o.category=e,o.properties=(s=o.properties)!==null&&s!==void 0?s:{},o.properties.category=e),r!==null&&(o.name=r),this.normalize(ne(ne({},this.baseEvent()),o))},t.prototype.screen=function(e,r,n,i,a){var s={type:"screen",properties:ne({},n),options:ne({},i),integrations:ne({},a)};return e!==null&&(s.category=e),r!==null&&(s.name=r),this.normalize(ne(ne({},this.baseEvent()),s))},t.prototype.identify=function(e,r,n,i){return this.normalize(ne(ne({},this.baseEvent()),{type:"identify",userId:e,traits:r,options:ne({},n),integrations:ne({},i)}))},t.prototype.group=function(e,r,n,i){return this.normalize(ne(ne({},this.baseEvent()),{type:"group",traits:r,options:ne({},n),integrations:ne({},i),groupId:e}))},t.prototype.alias=function(e,r,n,i){var a={userId:e,type:"alias",options:ne({},n),integrations:ne({},i)};return r!==null&&(a.previousId=r),e===void 0?this.normalize(ne(ne({},a),this.baseEvent())):this.normalize(ne(ne({},this.baseEvent()),a))},t.prototype.baseEvent=function(){var e={integrations:{},options:{}},r=this.user;return r.id()&&(e.userId=r.id()),r.anonymousId()&&(e.anonymousId=r.anonymousId()),e},t.prototype.context=function(e){var r,n,i,a=["integrations","anonymousId","timestamp","userId"],s=(r=e.options)!==null&&r!==void 0?r:{};delete s.integrations;var o=Object.keys(s),u=(i=(n=e.options)===null||n===void 0?void 0:n.context)!==null&&i!==void 0?i:{},c={};return o.forEach(function(l){l!=="context"&&(a.includes(l)?RT(c,l,s[l]):RT(u,l,s[l]))}),[u,c]},t.prototype.normalize=function(e){var r,n,i;!((r=e.options)===null||r===void 0)&&r.anonymousId&&this.user.anonymousId(e.options.anonymousId);var a=Object.keys((n=e.integrations)!==null&&n!==void 0?n:{}).reduce(function(m,b){var _,S;return ne(ne({},m),(_={},_[b]=!!(!((S=e.integrations)===null||S===void 0)&&S[b]),_))},{}),s=ne(ne({},a),(i=e.options)===null||i===void 0?void 0:i.integrations),o=this.context(e),u=o[0],c=o[1];e.options;var l=yG(e,["options"]),d=ne(ne(ne({timestamp:new Date},l),{context:u,integrations:s}),c),f="ajs-next-"+pDe.hash(JSON.stringify(d)+_C()),p=ne(ne({},d),{messageId:f});return p},t}(),za={getItem:function(){},setItem:function(){},removeItem:function(){}};try{za=wC()&&window.localStorage?window.localStorage:za}catch(t){console.warn("Unable to access localStorage",t)}function MG(t){var e=za.getItem(t);return(e?JSON.parse(e):[]).map(function(r){return new Ku(r.event,r.id)})}function gDe(t,e){var r=MG(t),n=Er(Er([],e,!0),r,!0),i=n.reduce(function(a,s){var o;return ne(ne({},a),(o={},o[s.id]=s,o))},{});za.setItem(t,JSON.stringify(Object.values(i)))}function $G(t){var e=za.getItem(t);return e?JSON.parse(e):{}}function vDe(t,e){var r=$G(t);za.setItem(t,JSON.stringify(ne(ne({},r),e)))}function RL(t){za.removeItem(t)}var bDe=function(){return new Date().getTime()};function NT(t,e,r){r===void 0&&(r=0);var n=50,i="persisted-queue:v1:".concat(t,":lock"),a=function(c){return new Date().getTime()>c},s=za.getItem(i),o=s?JSON.parse(s):null,u=o===null||a(o);if(u){za.setItem(i,JSON.stringify(bDe()+n)),e(),za.removeItem(i);return}!u&&r<3?setTimeout(function(){NT(t,e,r+1)},n):console.error("Unable to retrieve lock")}var t_=function(t){la(e,t);function e(r,n){var i=t.call(this,r,[])||this,a="persisted-queue:v1:".concat(n,":items"),s="persisted-queue:v1:".concat(n,":seen"),o=[],u={};return NT(n,function(){try{o=MG(a),u=$G(s),RL(a),RL(s),i.queue=Er(Er([],o,!0),i.queue,!0),i.seen=ne(ne({},u),i.seen)}catch(c){console.error(c)}}),window.addEventListener("pagehide",function(){if(i.todo>0){var c=Er(Er([],i.queue,!0),i.future,!0);try{NT(n,function(){gDe(a,c),vDe(s,i.seen)})}catch(l){console.error(l)}}}),i}return e}(Zy),yDe=function(t){la(e,t);function e(r){return t.call(this,typeof r=="string"?new t_(4,r):r)||this}return e.prototype.flush=function(){return ue(this,void 0,void 0,function(){return ce(this,function(r){return bc()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(iDe);function OC(t){for(var e=t.constructor.prototype,r=0,n=Object.getOwnPropertyNames(e);r"u")){s=Dg({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var u in s)s[u]&&(o+="; "+u,s[u]!==!0&&(o+="="+s[u].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+o}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],s={},o=0;o0||r.length<=1)return i;for(var a=r.length-2;a>=0;--a)i.push(r.slice(a).join("."));return i}function SDe(t){try{return new URL(t)}catch{return}}function kG(t){var e=SDe(t);if(e)for(var r=wDe(e),n=0;nPromise.resolve().then(()=>Ig),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.link).call.apply(a,Er([this],r,!1))]}})})},e.prototype.trackLink=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Ig),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.link).call.apply(a,Er([this],r,!1))]}})})},e.prototype.trackSubmit=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Ig),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.form).call.apply(a,Er([this],r,!1))]}})})},e.prototype.trackForm=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Ig),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.form).call.apply(a,Er([this],r,!1))]}})})},e.prototype.register=function(){for(var r=[],n=0;nPromise.resolve().then(()=>DIe),void 0,import.meta.url)];case 1:return a=u.sent().sourceMiddlewarePlugin,s={},this.queue.plugins.forEach(function(c){if(c.type==="destination")return s[c.name]=!0}),o=a(r,s),[4,this.register(o)];case 2:return u.sent(),[2]}})})})];case 1:return i.sent(),[2,this]}})})},e.prototype.addDestinationMiddleware=function(r){for(var n=[],i=1;iPromise.resolve().then(()=>_2e),void 0,import.meta.url)];case 1:return n=i.sent().queryString,[2,n(this,r)]}})})},e.prototype.use=function(r){return r(this),this},e.prototype.ready=function(r){return r===void 0&&(r=function(n){return n}),ue(this,void 0,void 0,function(){return ce(this,function(n){return[2,Promise.all(this.queue.plugins.map(function(i){return i.ready?i.ready():Promise.resolve()})).then(function(i){return r(i),i})]})})},e.prototype.noConflict=function(){return console.warn(no),CDe(Q1??this),this},e.prototype.normalize=function(r){return console.warn(no),this.eventFactory.normalize(r)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(no),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return Tp},enumerable:!1,configurable:!0}),e.prototype.initialize=function(r,n){return ue(this,void 0,void 0,function(){return ce(this,function(i){return console.warn(no),[2,Promise.resolve(this)]})})},e.prototype.pageview=function(r){return ue(this,void 0,void 0,function(){return ce(this,function(n){switch(n.label){case 0:return console.warn(no),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var r;return console.warn(no),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(no);var r=this.queue.plugins.filter(function(n){return n.type==="destination"}).reduce(function(n,i){var a="".concat(i.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),s=window[a];if(!s)return n;var o=s.Integration;return o?(n[i.name]=o,n):(n[i.name]=s,n)},{});return r},enumerable:!1,configurable:!0}),e.prototype.push=function(r){var n=this,i=r.shift();i&&!n[i]||n[i].apply(this,r)},e}(vC);function NG(){return typeof process>"u"||!process.env?{}:process.env}var $De=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,kDe=function(){var t,e=Array.prototype.slice.call(document.querySelectorAll("script"));return e.forEach(function(r){var n,i=(n=r.getAttribute("src"))!==null&&n!==void 0?n:"",a=$De.exec(i);a&&a[1]&&(t=a[1])}),t},Dv,DDe=function(){var t,e=Dv??((t=xC())===null||t===void 0?void 0:t._cdn);return e},IDe=function(t){var e=xC();e&&(e._cdn=t),Dv=t},PC=function(){var t=DDe();if(t)return t;var e=kDe();return e||"https://cdn.segment.com"},CC=function(){var t=PC();return"".concat(t,"/next-integrations")};function BG(t,e){var r,n=Object.entries((r=e.integrations)!==null&&r!==void 0?r:{}).reduce(function(i,a){var s,o,u=a[0],c=a[1];return typeof c=="object"?ne(ne({},i),(s={},s[u]=c,s)):ne(ne({},i),(o={},o[u]={},o))},{});return Object.entries(t.integrations).reduce(function(i,a){var s,o=a[0],u=a[1];return ne(ne({},i),(s={},s[o]=ne(ne({},u),n[o]),s))},{})}var RDe=function(){var t,e,r=new Promise(function(n,i){t=n,e=i});return{resolve:t,reject:e,promise:r}},LDe=function(t,e){return Object.assign.apply(Object,Er([{}],e.map(function(r){var n;if(t&&Object.prototype.hasOwnProperty.call(t,r))return n={},n[r]=t[r],n}),!1))};function FG(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return t}}var Yf;function NDe(){if(Yf)return Yf;var t=kG(window.location.href);return Yf={expires:31536e6,secure:!1,path:"/"},t&&(Yf.domain=t),Yf}function BDe(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1)),t=t.replace(/\?/g,"&");for(var r=t.split("&"),n=0,i=r;n4){var o=i.substr(4);o==="campaign"&&(o="name"),e[o]=FG(s)}return e},{})}function VDe(){var t=bs.get("_ga");if(t&&t.startsWith("amp"))return t}function UDe(t,e,r){var n,i=new qu(r?[]:[new DG(NDe())]),a=i.get("s:context.referrer"),s=(n=BDe(t))!==null&&n!==void 0?n:a;s&&(e&&(e.referrer=ne(ne({},e.referrer),s)),i.set("s:context.referrer",s))}var GDe=function(){function t(){var e=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(r,n){return e.instance=n,Promise.resolve()},this.enrich=function(r){var n,i,a,s=r.event,o=(n=s.context)!==null&&n!==void 0?n:s.context={},u=HDe(),c;s.type==="page"&&(c=s.properties&&LDe(s.properties,Object.keys(u)),s.properties=ne(ne(ne({},u),s.properties),s.name?{name:s.name}:{})),o.page=ne(ne(ne({},u),c),o.page);var l=o.page.search||"";o.userAgent=navigator.userAgent;var d=navigator.userLanguage||navigator.language;typeof o.locale>"u"&&typeof d<"u"&&(o.locale=d),(i=o.library)!==null&&i!==void 0||(o.library={name:"analytics.js",version:"".concat(xG()==="web"?"next":"npm:next","-").concat(Tp)}),l&&!o.campaign&&(o.campaign=zDe(l));var f=VDe();return f&&(o.amp={id:f}),UDe(l,o,(a=e.instance.options.disableClientPersistence)!==null&&a!==void 0?a:!1),r},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich}return t}(),WDe=new GDe;function HG(t){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(r){return r.src===t})}function Zl(t,e){var r=HG(t);if(r!==void 0){var n=r==null?void 0:r.getAttribute("status");if(n==="loaded")return Promise.resolve(r);if(n==="loading")return new Promise(function(i,a){r.addEventListener("load",function(){return i(r)}),r.addEventListener("error",function(s){return a(s)})})}return new Promise(function(i,a){var s,o=window.document.createElement("script");o.type="text/javascript",o.src=t,o.async=!0,o.setAttribute("status","loading");for(var u=0,c=Object.entries(e??{});u-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android")),t};Ut.userAgent=mi.proxy("context.userAgent");Ut.timezone=mi.proxy("context.timezone");Ut.timestamp=mi.field("timestamp");Ut.channel=mi.field("channel");Ut.ip=mi.proxy("context.ip");Ut.userId=mi.field("userId");oIe.default(Ut);function zT(t){return Cd.clone(t)}var a_={},VT={exports:{}};typeof Object.create=="function"?VT.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:VT.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var Dc=VT.exports,dIe=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(a_,"__esModule",{value:!0});a_.Alias=void 0;var fIe=dIe(Dc),GG=Xa;function Xi(t,e){GG.Facade.call(this,t,e)}a_.Alias=Xi;fIe.default(Xi,GG.Facade);Xi.prototype.action=function(){return"alias"};Xi.prototype.type=Xi.prototype.action;Xi.prototype.previousId=function(){return this.field("previousId")||this.field("from")};Xi.prototype.from=Xi.prototype.previousId;Xi.prototype.userId=function(){return this.field("userId")||this.field("to")};Xi.prototype.to=Xi.prototype.userId;var s_={},Kd={};Object.defineProperty(Kd,"__esModule",{value:!0});var hIe=/.+\@.+\..+/;function pIe(t){return hIe.test(t)}Kd.default=pIe;var RC=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(s_,"__esModule",{value:!0});s_.Group=void 0;var mIe=RC(Dc),gIe=RC(Kd),vIe=RC(DC),qd=Xa;function LC(t,e){qd.Facade.call(this,t,e)}s_.Group=LC;mIe.default(LC,qd.Facade);var Ji=LC.prototype;Ji.action=function(){return"group"};Ji.type=Ji.action;Ji.groupId=qd.Facade.field("groupId");Ji.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return vIe.default(t)};Ji.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if(gIe.default(e))return e};Ji.traits=function(t){var e=this.properties(),r=this.groupId();t=t||{},r&&(e.id=r);for(var n in t){var i=this[n]==null?this.proxy("traits."+n):this[n]();i!=null&&(e[t[n]]=i,delete e[n])}return e};Ji.name=qd.Facade.proxy("traits.name");Ji.industry=qd.Facade.proxy("traits.industry");Ji.employees=qd.Facade.proxy("traits.employees");Ji.properties=function(){return this.field("traits")||this.field("properties")||{}};var am={},o_=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(am,"__esModule",{value:!0});am.Identify=void 0;var Ja=Xa,ed=o_(r_),bIe=o_(Dc),yIe=o_(Kd),WG=o_(DC),Xu=function(t){return t.trim()};function NC(t,e){Ja.Facade.call(this,t,e)}am.Identify=NC;bIe.default(NC,Ja.Facade);var Gt=NC.prototype;Gt.action=function(){return"identify"};Gt.type=Gt.action;Gt.traits=function(t){var e=this.field("traits")||{},r=this.userId();t=t||{},r&&(e.id=r);for(var n in t){var i=this[n]==null?this.proxy("traits."+n):this[n]();i!=null&&(e[t[n]]=i,n!==t[n]&&delete e[n])}return e};Gt.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(yIe.default(e))return e};Gt.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return WG.default(t)};Gt.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return WG.default(t)};Gt.companyName=function(){return this.proxy("traits.company.name")};Gt.name=function(){var t=this.proxy("traits.name");if(typeof t=="string")return Xu(t);var e=this.firstName(),r=this.lastName();if(e&&r)return Xu(e+" "+r)};Gt.firstName=function(){var t=this.proxy("traits.firstName");if(typeof t=="string")return Xu(t);var e=this.proxy("traits.name");if(typeof e=="string")return Xu(e).split(" ")[0]};Gt.lastName=function(){var t=this.proxy("traits.lastName");if(typeof t=="string")return Xu(t);var e=this.proxy("traits.name");if(typeof e=="string"){var r=Xu(e).indexOf(" ");if(r!==-1)return Xu(e.substr(r+1))}};Gt.uid=function(){return this.userId()||this.username()||this.email()};Gt.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};Gt.age=function(){var t=this.birthday(),e=ed.default(this.traits(),"age");if(e!=null)return e;if(t instanceof Date){var r=new Date;return r.getFullYear()-t.getFullYear()}};Gt.avatar=function(){var t=this.traits();return ed.default(t,"avatar")||ed.default(t,"photoUrl")||ed.default(t,"avatarUrl")};Gt.position=function(){var t=this.traits();return ed.default(t,"position")||ed.default(t,"jobTitle")};Gt.username=Ja.Facade.proxy("traits.username");Gt.website=Ja.Facade.one("traits.website");Gt.websites=Ja.Facade.multi("traits.website");Gt.phone=Ja.Facade.one("traits.phone");Gt.phones=Ja.Facade.multi("traits.phone");Gt.address=Ja.Facade.proxy("traits.address");Gt.gender=Ja.Facade.proxy("traits.gender");Gt.birthday=Ja.Facade.proxy("traits.birthday");var Xd={},BC=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xd,"__esModule",{value:!0});Xd.Track=void 0;var _Ie=BC(Dc),zr=Xa,wIe=am,SIe=BC(Kd),YG=BC(r_);function FC(t,e){zr.Facade.call(this,t,e)}Xd.Track=FC;_Ie.default(FC,zr.Facade);var Fe=FC.prototype;Fe.action=function(){return"track"};Fe.type=Fe.action;Fe.event=zr.Facade.field("event");Fe.value=zr.Facade.proxy("properties.value");Fe.category=zr.Facade.proxy("properties.category");Fe.id=zr.Facade.proxy("properties.id");Fe.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};Fe.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};Fe.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};Fe.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};Fe.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};Fe.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};Fe.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};Fe.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};Fe.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};Fe.sku=zr.Facade.proxy("properties.sku");Fe.tax=zr.Facade.proxy("properties.tax");Fe.name=zr.Facade.proxy("properties.name");Fe.price=zr.Facade.proxy("properties.price");Fe.total=zr.Facade.proxy("properties.total");Fe.repeat=zr.Facade.proxy("properties.repeat");Fe.coupon=zr.Facade.proxy("properties.coupon");Fe.shipping=zr.Facade.proxy("properties.shipping");Fe.discount=zr.Facade.proxy("properties.discount");Fe.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};Fe.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};Fe.description=zr.Facade.proxy("properties.description");Fe.plan=zr.Facade.proxy("properties.plan");Fe.subtotal=function(){var t=YG.default(this.properties(),"subtotal"),e=this.total()||this.revenue();if(t)return t;if(!e)return 0;if(this.total()){var r=this.tax();r&&(e-=r),r=this.shipping(),r&&(e-=r),r=this.discount(),r&&(e+=r)}return e};Fe.products=function(){var t=this.properties(),e=YG.default(t,"products");return Array.isArray(e)?e.filter(function(r){return r!==null}):[]};Fe.quantity=function(){var t=this.obj.properties||{};return t.quantity||1};Fe.currency=function(){var t=this.obj.properties||{};return t.currency||"USD"};Fe.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};Fe.query=zr.Facade.proxy("options.query");Fe.properties=function(t){var e=this.field("properties")||{};t=t||{};for(var r in t){var n=this[r]==null?this.proxy("properties."+r):this[r]();n!=null&&(e[t[r]]=n,delete e[r])}return e};Fe.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};Fe.email=function(){var t=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(t)return t;var e=this.userId();if(SIe.default(e))return e};Fe.revenue=function(){var t=this.proxy("properties.revenue"),e=this.event(),r=/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i;return!t&&e&&e.match(r)&&(t=this.proxy("properties.total")),OIe(t)};Fe.cents=function(){var t=this.revenue();return typeof t!="number"?this.value()||0:t*100};Fe.identify=function(){var t=this.json();return t.traits=this.traits(),new wIe.Identify(t,this.opts)};function OIe(t){if(t){if(typeof t=="number")return t;if(typeof t=="string"&&(t=t.replace(/\$/g,""),t=parseFloat(t),!isNaN(t)))return t}}var sm={},KG=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sm,"__esModule",{value:!0});sm.Page=void 0;var TIe=KG(Dc),Ic=Xa,EIe=Xd,xIe=KG(Kd);function jC(t,e){Ic.Facade.call(this,t,e)}sm.Page=jC;TIe.default(jC,Ic.Facade);var jn=jC.prototype;jn.action=function(){return"page"};jn.type=jn.action;jn.category=Ic.Facade.field("category");jn.name=Ic.Facade.field("name");jn.title=Ic.Facade.proxy("properties.title");jn.path=Ic.Facade.proxy("properties.path");jn.url=Ic.Facade.proxy("properties.url");jn.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};jn.properties=function(t){var e=this.field("properties")||{},r=this.category(),n=this.name();t=t||{},r&&(e.category=r),n&&(e.name=n);for(var i in t){var a=this[i]==null?this.proxy("properties."+i):this[i]();a!=null&&(e[t[i]]=a,i!==t[i]&&delete e[i])}return e};jn.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();if(xIe.default(e))return e};jn.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e};jn.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"};jn.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new EIe.Track(e,this.opts)};var u_={},PIe=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(u_,"__esModule",{value:!0});u_.Screen=void 0;var CIe=PIe(Dc),qG=sm,AIe=Xd;function yc(t,e){qG.Page.call(this,t,e)}u_.Screen=yc;CIe.default(yc,qG.Page);yc.prototype.action=function(){return"screen"};yc.prototype.type=yc.prototype.action;yc.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"};yc.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new AIe.Track(e,this.opts)};var c_={},MIe=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(c_,"__esModule",{value:!0});c_.Delete=void 0;var $Ie=MIe(Dc),XG=Xa;function HC(t,e){XG.Facade.call(this,t,e)}c_.Delete=HC;$Ie.default(HC,XG.Facade);HC.prototype.type=function(){return"delete"};(function(t){var e=Te&&Te.__assign||function(){return e=Object.assign||function(l){for(var d,f=1,p=arguments.length;f=jIe-50}function zIe(t){var e=[],r=0;return t.forEach(function(n){var i=JG(e[r]);i>=64&&r++,e[r]?e[r].push(n):e[r]=[n]}),e}function VIe(t,e){var r,n,i=[],a=!1,s=(r=e==null?void 0:e.size)!==null&&r!==void 0?r:10,o=(n=e==null?void 0:e.timeout)!==null&&n!==void 0?n:5e3;function u(p){var m;if(p.length!==0){var b=(m=p[0])===null||m===void 0?void 0:m.writeKey,_=p.map(function(S){var E=S;E.sentAt;var O=yG(E,["sentAt"]);return O});return e_("https://".concat(t,"/b"),{keepalive:a,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:b,batch:_,sentAt:new Date().toISOString()})})}}function c(){return ue(this,void 0,void 0,function(){var p;return ce(this,function(m){return i.length?(p=i,i=[],[2,u(p)]):[2]})})}var l;function d(){l||(l=setTimeout(function(){l=void 0,c().catch(console.error)},o))}FIe(function(p){if(a=p,a&&i.length){var m=zIe(i).map(u);Promise.all(m).catch(console.error)}});function f(p,m){return ue(this,void 0,void 0,function(){var b;return ce(this,function(_){return i.push(m),b=i.length>=s||HIe(i),[2,b||a?c():d()]})})}return{dispatch:f}}function UIe(t){function e(r,n){return e_(r,{keepalive:t==null?void 0:t.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)})}return{dispatch:e}}function GIe(t,e,r,n){var i,a=t.user();delete e.options,e.writeKey=r==null?void 0:r.apiKey,e.userId=e.userId||a.id(),e.anonymousId=e.anonymousId||a.anonymousId(),e.sentAt=new Date;var s=t.queue.failedInitializations||[];s.length>0&&(e._metadata={failedInitializations:s});var o=[],u=[];for(var c in n){var l=n[c];c==="Segment.io"&&o.push(c),l.bundlingStatus==="bundled"&&o.push(c),l.bundlingStatus==="unbundled"&&u.push(c)}for(var d=0,f=(r==null?void 0:r.unbundledIntegrations)||[];d0&&!bc()},function(){return ue(n,void 0,void 0,function(){var a,s,o;return ce(this,function(u){switch(u.label){case 0:return a=e.pop(),a?[4,Ql(a,t)]:[2];case 1:return s=u.sent(),o=s instanceof Ku,o||r.push(a),[2]}})})})];case 1:return i.sent(),r.map(function(a){return e.pushWithBackoff(a)}),[2,e]}})})}function vl(t,e,r,n){var i=this;t||setTimeout(function(){return ue(i,void 0,void 0,function(){var a,s;return ce(this,function(o){switch(o.label){case 0:return a=!0,[4,WIe(r,e)];case 1:return s=o.sent(),a=!1,e.todo>0&&n(a,s,r,n),[2]}})})},Math.random()*5e3)}function YIe(t){return ue(this,void 0,void 0,function(){var e;return ce(this,function(r){return e=navigator.userAgentData,e?t?[2,e.getHighEntropyValues(t).catch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}function KIe(t,e){var r,n,i,a,s=t.user();return e.previousId=(i=(n=(r=e.previousId)!==null&&r!==void 0?r:e.from)!==null&&n!==void 0?n:s.id())!==null&&i!==void 0?i:s.anonymousId(),e.userId=(a=e.userId)!==null&&a!==void 0?a:e.to,delete e.from,delete e.to,e}function qIe(t,e,r){var n,i,a;return ue(this,void 0,void 0,function(){function s(E){return ue(this,void 0,void 0,function(){var O,h;return ce(this,function(v){return bc()?(u.push(E),vl(l,u,S,vl),[2,E]):(c.add(E),O=E.event.type.charAt(0),_&&E.event.context&&(E.event.context.userAgentData=_),h=Sb(E.event).json(),E.event.type==="track"&&delete h.traits,E.event.type==="alias"&&(h=KIe(t,h)),[2,b.dispatch("".concat(p,"/").concat(O),GIe(t,h,e,r)).then(function(){return E}).catch(function(){return u.pushWithBackoff(E),vl(l,u,S,vl),E}).finally(function(){c.delete(E)})])})})}var o,u,c,l,d,f,p,m,b,_,S;return ce(this,function(E){switch(E.label){case 0:window.addEventListener("pagehide",function(){u.push.apply(u,Array.from(c)),c.clear()}),o=(n=e==null?void 0:e.apiKey)!==null&&n!==void 0?n:"",u=t.options.disableClientPersistence?new Zy(t.queue.queue.maxAttempts,[]):new t_(t.queue.queue.maxAttempts,"".concat(o,":dest-Segment.io")),c=new Set,l=!1,d=(i=e==null?void 0:e.apiHost)!==null&&i!==void 0?i:PG,f=(a=e==null?void 0:e.protocol)!==null&&a!==void 0?a:"https",p="".concat(f,"://").concat(d),m=e==null?void 0:e.deliveryStrategy,b=(m==null?void 0:m.strategy)==="batching"?VIe(d,m.config):UIe(m==null?void 0:m.config),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,YIe(t.options.highEntropyValuesClientHints)];case 2:return _=E.sent(),[3,4];case 3:return E.sent(),_=void 0,[3,4];case 4:return S={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:s,identify:s,page:s,alias:s,group:s,screen:s},u.todo&&vl(l,u,S,vl),[2,S]}})})}function bl(t){var e,r=t.event;Uke(r),Gke(r),r.type==="track"&&Wke(r);var n=(e=r.properties)!==null&&e!==void 0?e:r.traits;if(r.type!=="alias"&&!ui(n))throw new vc(".properties","is not an object");return Vke(r),t}var XIe={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:bl,identify:bl,page:bl,alias:bl,group:bl,screen:bl},JIe=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},ZG=function(t,e,r){r.getCalls(t).forEach(function(n){VC(e,n).catch(console.error)})},QIe=function(t,e){return ue(void 0,void 0,void 0,function(){var r,n,i;return ce(this,function(a){switch(a.label){case 0:r=0,n=e.getCalls("addSourceMiddleware"),a.label=1;case 1:return r1}function l2e(t){var e,r,n;return NG().NODE_ENV!=="test"&&((n=(r=(e=t.middlewareSettings)===null||e===void 0?void 0:e.routingRules)===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0)>0}function d2e(t,e){e.push.apply(e,UT()),e2e(t,e),ZIe(t,e)}function f2e(t,e){return ue(this,void 0,void 0,function(){return ce(this,function(r){switch(r.label){case 0:return e.push.apply(e,UT()),[4,QIe(t,e)];case 1:return r.sent(),e.push.apply(e,UT()),t2e(t,e),e.clear(),[2]}})})}function h2e(t,e,r,n,i,a,s){var o,u,c;return a===void 0&&(a=[]),ue(this,void 0,void 0,function(){var l,d,f,p,m,b,_,S,E,O,h,v,g,T,C,k=this;return ce(this,function(w){switch(w.label){case 0:return l=a==null?void 0:a.filter(function(A){return typeof A=="object"}),d=a==null?void 0:a.filter(function(A){return typeof A=="function"&&typeof A.pluginName=="string"}),l2e(e)?[4,Ti(()=>Promise.resolve().then(()=>VNe),void 0,import.meta.url).then(function(A){return A.tsubMiddleware(e.middlewareSettings.routingRules)})]:[3,2];case 1:return p=w.sent(),[3,3];case 2:p=void 0,w.label=3;case 3:return f=p,c2e(e)||s.length>0?[4,Ti(()=>Promise.resolve().then(()=>eBe),void 0,import.meta.url).then(function(A){return A.ajsDestinations(t,e,r.integrations,n,f,s)})]:[3,5];case 4:return b=w.sent(),[3,6];case 5:b=[],w.label=6;case 6:return m=b,e.legacyVideoPluginsEnabled?[4,Ti(()=>Promise.resolve().then(()=>rBe),void 0,import.meta.url).then(function(A){return A.loadLegacyVideoPlugins(r)})]:[3,8];case 7:w.sent(),w.label=8;case 8:return!((o=n.plan)===null||o===void 0)&&o.track?[4,Ti(()=>Promise.resolve().then(()=>aBe),void 0,import.meta.url).then(function(A){var P;return A.schemaFilter((P=n.plan)===null||P===void 0?void 0:P.track,e)})]:[3,10];case 9:return S=w.sent(),[3,11];case 10:S=void 0,w.label=11;case 11:return _=S,E=BG(e,i),[4,BIe(e,r.integrations,E,i.obfuscate,f,d).catch(function(){return[]})];case 12:return O=w.sent(),h=Er(Er(Er([XIe,WDe],l,!0),m,!0),O,!0),_&&h.push(_),v=((u=n.integrations)===null||u===void 0?void 0:u.All)===!1&&!n.integrations["Segment.io"]||n.integrations&&n.integrations["Segment.io"]===!1,v?[3,14]:(T=(g=h).push,[4,qIe(r,E["Segment.io"],e.integrations)]);case 13:T.apply(g,[w.sent()]),w.label=14;case 14:return[4,r.register.apply(r,h)];case 15:return C=w.sent(),Object.entries((c=e.enabledMiddleware)!==null&&c!==void 0?c:{}).some(function(A){var P=A[1];return P})?[4,Ti(()=>Promise.resolve().then(()=>oBe),void 0,import.meta.url).then(function(A){var P=A.remoteMiddlewares;return ue(k,void 0,void 0,function(){var x,$;return ce(this,function(D){switch(D.label){case 0:return[4,P(C,e,i.obfuscate)];case 1:return x=D.sent(),$=x.map(function(M){return r.addSourceMiddleware(M)}),[2,Promise.all($)]}})})})]:[3,17];case 16:w.sent(),w.label=17;case 17:return[2,C]}})})}function p2e(t,e,r){var n,i,a,s,o,u,c;return e===void 0&&(e={}),ue(this,void 0,void 0,function(){var l,d,f,p,m,b,_,S,E,O,h;return ce(this,function(v){switch(v.label){case 0:return e.globalAnalyticsKey&&PDe(e.globalAnalyticsKey),t.cdnURL&&IDe(t.cdnURL),(n=t.cdnSettings)!==null&&n!==void 0?(d=n,[3,3]):[3,1];case 1:return[4,u2e(t.writeKey,t.cdnURL)];case 2:d=v.sent(),v.label=3;case 3:return l=d,e.updateCDNSettings&&(l=e.updateCDNSettings(l)),f=(a=(i=l.integrations["Segment.io"])===null||i===void 0?void 0:i.retryQueue)!==null&&a!==void 0?a:!0,p=ne({retryQueue:f},e),m=new MDe(t,p),o2e(m),b=(s=t.plugins)!==null&&s!==void 0?s:[],_=(o=t.classicIntegrations)!==null&&o!==void 0?o:[],CG.initRemoteMetrics(l.metrics),d2e(m,r),[4,h2e(t.writeKey,l,m,p,e,b,_)];case 4:return S=v.sent(),E=(u=window.location.search)!==null&&u!==void 0?u:"",O=(c=window.location.hash)!==null&&c!==void 0?c:"",h=E.length?E:O.replace(/(?=#).*(?=\?)/,""),h.includes("ajs_")?[4,m.queryString(h).catch(console.error)]:[3,6];case 5:v.sent(),v.label=6;case 6:return m.initialized=!0,m.emit("initialize",t,e),e.initialPageview&&m.page().catch(console.error),[4,f2e(m,r)];case 7:return v.sent(),[2,[m,S]]}})})}var IBe=function(t){la(e,t);function e(){var r=this,n=RDe(),i=n.promise,a=n.resolve;return r=t.call(this,function(s){return i.then(function(o){var u=o[0],c=o[1];return p2e(u,c,s)})})||this,r._resolveLoadStart=function(s,o){return a([s,o])},r}return e.prototype.load=function(r,n){return n===void 0&&(n={}),this._resolveLoadStart(r,n),this},e.load=function(r,n){return n===void 0&&(n={}),new e().load(r,n)},e.standalone=function(r,n){return e.load({writeKey:r},n).then(function(i){return i[0]})},e}(n2e);function m2e(t){var e=t;return!!(e.ctrlKey||e.shiftKey||e.metaKey||e.button&&e.button==1)}function g2e(t,e){return!!(t.target==="_blank"&&e)}function v2e(t,e,r,n){var i=this,a=[];return t?(t instanceof Element?a=[t]:"toArray"in t?a=t.toArray():a=t,a.forEach(function(s){s.addEventListener("click",function(o){var u,c,l=e instanceof Function?e(s):e,d=r instanceof Function?r(s):r,f=s.getAttribute("href")||s.getAttributeNS("http://www.w3.org/1999/xlink","href")||s.getAttribute("xlink:href")||((u=s.getElementsByTagName("a")[0])===null||u===void 0?void 0:u.getAttribute("href")),p=yC(i.track(l,d,n??{}),(c=i.settings.timeout)!==null&&c!==void 0?c:500);!g2e(s,f)&&!m2e(o)&&f&&(o.preventDefault?o.preventDefault():o.returnValue=!1,p.catch(console.error).then(function(){window.location.href=f}).catch(console.error))},!1)}),this):this}function b2e(t,e,r,n){var i=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var a=t;return a.forEach(function(s){if(!(s instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var o=function(c){var l;c.preventDefault?c.preventDefault():c.returnValue=!1;var d=e instanceof Function?e(s):e,f=r instanceof Function?r(s):r,p=yC(i.track(d,f,n??{}),(l=i.settings.timeout)!==null&&l!==void 0?l:500);p.catch(console.error).then(function(){s.submit()}).catch(console.error)},u=window.jQuery||window.Zepto;u?u(s).submit(o):s.addEventListener("submit",o,!1)}),this}const Ig=Object.freeze(Object.defineProperty({__proto__:null,form:b2e,link:v2e},Symbol.toStringTag,{value:"Module"}));function VL(t,e){return Object.keys(e).reduce(function(r,n){if(n.startsWith(t)){var i=n.substr(t.length);r[i]=e[n]}return r},{})}function y2e(t,e){var r=document.createElement("a");r.href=e;var n=r.search.slice(1),i=n.split("&").reduce(function(O,h){var v=h.split("="),g=v[0],T=v[1];return O[g]=FG(T),O},{}),a=[],s=i.ajs_uid,o=i.ajs_event,u=i.ajs_aid,c=ui(t.options.useQueryString)?t.options.useQueryString:{},l=c.aid,d=l===void 0?/.+/:l,f=c.uid,p=f===void 0?/.+/:f;if(u){var m=Array.isArray(i.ajs_aid)?i.ajs_aid[0]:i.ajs_aid;d.test(m)&&t.setAnonymousId(m)}if(s){var b=Array.isArray(i.ajs_uid)?i.ajs_uid[0]:i.ajs_uid;if(p.test(b)){var _=VL("ajs_trait_",i);a.push(t.identify(b,_))}}if(o){var S=Array.isArray(i.ajs_event)?i.ajs_event[0]:i.ajs_event,E=VL("ajs_prop_",i);a.push(t.track(S,E))}return Promise.all(a)}const _2e=Object.freeze(Object.defineProperty({__proto__:null,queryString:y2e},Symbol.toStringTag,{value:"Module"}));var Iv={},UC={};for(var eW=[],Fu=0;Fu<64;)eW[Fu]=0|4294967296*Math.sin(++Fu%Math.PI);function w2e(t){var e,r,n,i=[e=1732584193,r=4023233417,~e,~r],a=[],s=unescape(encodeURI(t))+"€",o=s.length;for(t=--o/4+2|15,a[--t]=8*o;~o;)a[o>>2]|=s.charCodeAt(o)<<8*o--;for(Fu=s=0;Fu>4]+eW[s]+~~a[Fu|15&[s,5*s+1,3*s+5,7*s][o]])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+s++%4])|n>>>-o),e,r])e=0|o[1],r=o[2];for(s=4;s;)i[--s]+=o[s]}for(t="";s<32;)t+=(i[s>>3]>>4*(1^s++)&15).toString(16);return t}const S2e=Object.freeze(Object.defineProperty({__proto__:null,default:w2e},Symbol.toStringTag,{value:"Module"})),O2e=Hle(S2e);var tW={exports:{}};(function(t,e){(function(r,n){t.exports=function(i,a,s,o,u){for(a=a.split?a.split("."):a,o=0;o>>20,e-ULe|0}var WLe=GLe;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var YLe=WLe,KLe=YLe;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var qLe=E2e,XLe=M2e,JLe=k2e,QLe=I2e,ZLe=L2e,eNe=B2e,tNe=nW,rNe=iW,nNe=yLe,iNe=NLe,aNe=KLe,sNe=hW,oNe=yW,uNe=2220446049250313e-31,cNe=2148532223,aS=[0,0],sS=[0,0];function lNe(t,e){var r,n;return t===0||tNe(t)||rNe(t)?t:(iNe(aS),t=aS[0],e+=aS[1],e+=aNe(t),eQLe?t<0?XLe:qLe:(e<=ZLe?(e+=52,n=uNe):n=1,sNe(sS),r=sS[0],r&=cNe,r|=e+JLe<<20,n*oNe(r,sS[1])))}var dNe=lNe;/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */var fNe=dNe,hNe=fNe,SW={};function pNe(t,e,r){e.split&&(e=e.split("."));for(var n=0,i=e.length,a=t,s,o;n1?(a.pop(),s=(0,Vl.default)(r,a.join("."))):s=t,typeof s=="object"){if(i.copy){var o=(0,Vl.default)(r,i.copy);o!==void 0&&(0,qf.dset)(t,n,o)}else if(i.move){var u=(0,Vl.default)(r,i.move);u!==void 0&&(0,qf.dset)(t,n,u),(0,_Ne.unset)(t,i.move)}else i.hasOwnProperty("set")&&(0,qf.dset)(t,n,i.set);if(i.to_string){var c=(0,Vl.default)(t,n);if(typeof c=="string"||typeof c=="object"&&c!==null)continue;c!==void 0?(0,qf.dset)(t,n,JSON.stringify(c)):(0,qf.dset)(t,n,"undefined")}}}}function ENe(t,e){return e.sample.percent<=0?!1:e.sample.percent>=1?!0:e.sample.path?PNe(t,e):xNe(e.sample.percent)}function xNe(t){return Math.random()<=t}function PNe(t,e){var r=(0,Vl.default)(t,e.sample.path),n=(0,bNe.default)(JSON.stringify(r)),i=-64,a=[];eN(n.slice(0,8),a);for(var s=0,o=0;o<64&&a[o]!==1;o++)s++;if(s!==0){var u=[];eN(n.slice(9,16),u),i-=s,a.splice(0,s),u.splice(64-s),a=a.concat(u)}return a[63]=a[63]===0?1:0,(0,yNe.default)(parseInt(a.join(""),2),i)=1;i/=2)n-i>=0?(n-=i,e.push(1)):e.push(0)}var XC={},CNe=Te&&Te.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(XC,"__esModule",{value:!0});var ANe=CNe(GC);function MNe(t,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return $Ne();case"fql":return kNe(e.ir,t);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}}XC.default=MNe;function $Ne(){return!0}function kNe(t,e){if(!t)return!1;try{t=JSON.parse(t)}catch(n){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(n))}var r=Do(t,e);return typeof r!="boolean"?!1:r}function Do(t,e){if(!Array.isArray(t))return sn(t,e)===!0;var r=t[0];switch(r){case"!":return!Do(t[1],e);case"or":for(var n=1;n":case">=":return INe(sn(t[1],e),sn(t[2],e),r,e);case"in":return DNe(sn(t[1],e),sn(t[2],e),e);case"contains":return LNe(sn(t[1],e),sn(t[2],e));case"match":return NNe(sn(t[1],e),sn(t[2],e));case"lowercase":var i=sn(t[1],e);return typeof i!="string"?null:i.toLowerCase();case"typeof":return typeof sn(t[1],e);case"length":return BNe(sn(t[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(r))}}function sn(t,e){return Array.isArray(t)?t:typeof t=="object"?t.value:(0,ANe.default)(e,t)}function DNe(t,e,r){return e.find(function(n){return sn(n,r)===t})!==void 0}function INe(t,e,r,n){if(Ob(t)&&(t=Do(t,n)),Ob(e)&&(e=Do(e,n)),typeof t!="number"||typeof e!="number")return!1;switch(r){case"<=":return t<=e;case">=":return t>=e;case"<":return t":return t>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(r))}}function RNe(t,e,r,n){switch(Ob(t)&&(t=Do(t,n)),Ob(e)&&(e=Do(e,n)),typeof t=="object"&&typeof e=="object"&&(t=JSON.stringify(t),e=JSON.stringify(e)),r){case"=":return t===e;case"!=":return t!==e;default:throw new Error("Invalid operator in compareItems: ".concat(r))}}function LNe(t,e){return typeof t!="string"||typeof e!="string"?!1:t.indexOf(e)!==-1}function NNe(t,e){return typeof t!="string"||typeof e!="string"?!1:FNe(e,t)}function BNe(t){return t===null?0:!Array.isArray(t)&&typeof t!="string"?NaN:t.length}function Ob(t){return Array.isArray(t)?(t[0]==="lowercase"||t[0]==="length"||t[0]==="typeof")&&t.length===2||(t[0]==="contains"||t[0]==="match")&&t.length===3:!1}function FNe(t,e){var r,n;e:for(;t.length>0;){var i=void 0,a=void 0;if(r=jNe(t),i=r.star,a=r.chunk,t=r.pattern,i&&a==="")return!0;var s=tN(a,e),o=s.t,u=s.ok,c=s.err;if(c)return!1;if(u&&(o.length===0||t.length>0)){e=o;continue}if(i)for(var l=0;l0)continue;e=o;continue e}if(c)return!1}return!1}return e.length===0}function jNe(t){for(var e={star:!1,chunk:"",pattern:""};t.length>0&&t[0]==="*";)t=t.slice(1),e.star=!0;var r=!1,n;e:for(n=0;n0;){if(e.length===0)return i;switch(t[0]){case"[":var a=e[0];e=e.slice(1),t=t.slice(1);var s=!0;t.length>0&&t[0]==="^"&&(s=!1,t=t.slice(1));for(var o=!1,u=0;;){if(t.length>0&&t[0]==="]"&&u>0){t=t.slice(1);break}var c="",l="",d=void 0;if(r=rN(t),c=r.char,t=r.newChunk,d=r.err,d||(l=c,t[0]==="-"&&(n=rN(t.slice(1)),l=n.char,t=n.newChunk,d=n.err,d)))return i;c<=a&&a<=l&&(o=!0),u++}if(o!==s)return i;break;case"?":e=e.slice(1),t=t.slice(1);break;case"\\":if(t=t.slice(1),t.length===0)return i.err=!0,i;default:if(t[0]!==e[0])return i;e=e.slice(1),t=t.slice(1)}}return i.t=e,i.ok=!0,i.err=!1,i}function rN(t){var e={char:"",newChunk:"",err:!1};return t.length===0||t[0]==="-"||t[0]==="]"||t[0]==="\\"&&(t=t.slice(1),t.length===0)?(e.err=!0,e):(e.char=t[0],e.newChunk=t.slice(1),e.newChunk.length===0&&(e.err=!0),e)}var JC={};Object.defineProperty(JC,"__esModule",{value:!0});var HNe=function(){function t(e){this.rules=[],this.rules=e||[]}return t.prototype.getRulesByDestinationName=function(e){for(var r=[],n=0,i=this.rules;n0&&EG()},function(){return ue(n,void 0,void 0,function(){var a,s,o;return ce(this,function(u){switch(u.label){case 0:return a=e.pop(),a?[4,Ql(a,t)]:[2];case 1:return s=u.sent(),o=s instanceof Ku,o||r.push(a),[2]}})})})];case 1:return i.sent(),r.map(function(a){return e.pushWithBackoff(a)}),[2,e]}})})}var PW=function(){function t(e,r,n,i,a,s){i===void 0&&(i={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=e,this.version=r,this.settings=ne({},i),this.disableAutoISOConversion=a.disableAutoISOConversion||!1,this.integrationSource=s,this.settings.type&&this.settings.type==="browser"&&delete this.settings.type,this.options=a,this.buffer=a.disableClientPersistence?new Zy(4,[]):new t_(4,"".concat(n,":dest-").concat(e)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var e;return(e=this.onReady)!==null&&e!==void 0?e:Promise.resolve()},t.prototype.load=function(e,r){var n;return ue(this,void 0,void 0,function(){var i,a,s=this;return ce(this,function(o){switch(o.label){case 0:return this._ready||this.onReady!==void 0?[2]:(n=this.integrationSource)!==null&&n!==void 0?(a=n,[3,3]):[3,1];case 1:return[4,YNe(e,this.name,this.version,this.options.obfuscate)];case 2:a=o.sent(),o.label=3;case 3:i=a,this.integration=WNe(i,this.settings,r),this.onReady=new Promise(function(u){var c=function(){s._ready=!0,u(!0)};s.integration.once("ready",c)}),this.onInitialize=new Promise(function(u){var c=function(){s._initialized=!0,u(!0)};s.integration.on("initialize",c)});try{e.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(u){throw e.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),u}return[2]}})})},t.prototype.unload=function(e,r){return KNe(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var e,r=[],n=0;n0&&this.scheduleFlush(),[2]}})})},Math.random()*5e3)},t}();function ZNe(t,e,r,n,i,a){var s,o;if(r===void 0&&(r={}),n===void 0&&(n={}),TG())return[];e.plan&&(n=n??{},n.plan=e.plan);var u=(o=(s=e.middlewareSettings)===null||s===void 0?void 0:s.routingRules)!==null&&o!==void 0?o:[],c=e.integrations,l=n.integrations,d=BG(e,n??{}),f=a==null?void 0:a.reduce(function(m,b){var _;return ne(ne({},m),(_={},_[UNe(b)]=b,_))},{}),p=new Set(Er(Er([],Object.keys(c).filter(function(m){return XNe(m,c[m])}),!0),Object.keys(f||{}).filter(function(m){return ui(c[m])||ui(l==null?void 0:l[m])}),!0));return Array.from(p).filter(function(m){return!JNe(m,r)}).map(function(m){var b=c[m],_=qNe(b),S=new PW(m,_,t,d[m],n,f==null?void 0:f[m]),E=u.filter(function(O){return O.destinationName===m});return E.length>0&&i&&S.addMiddleware(i),S})}const eBe=Object.freeze(Object.defineProperty({__proto__:null,LegacyDestination:PW,ajsDestinations:ZNe},Symbol.toStringTag,{value:"Module"}));function tBe(t){return ue(this,void 0,void 0,function(){var e;return ce(this,function(r){switch(r.label){case 0:return[4,Ti(()=>Promise.resolve().then(()=>cBe),void 0,import.meta.url)];case 1:return e=r.sent(),t._plugins=e,[2]}})})}const rBe=Object.freeze(Object.defineProperty({__proto__:null,loadLegacyVideoPlugins:tBe},Symbol.toStringTag,{value:"Module"}));function nBe(t,e){var r,n;if(!t||!Object.keys(t))return{};var i=t.integrations?Object.keys(t.integrations).filter(function(s){return t.integrations[s]===!1}):[],a=[];return((r=e.remotePlugins)!==null&&r!==void 0?r:[]).forEach(function(s){i.forEach(function(o){(s.name.includes(o)||o.includes(s.name))&&a.push(s.name)})}),((n=e.remotePlugins)!==null&&n!==void 0?n:[]).reduce(function(s,o){return o.settings.subscriptions&&a.includes(o.name)&&o.settings.subscriptions.forEach(function(u){return s["".concat(o.name," ").concat(u.partnerAction)]=!1}),s},{})}function iBe(t,e){function r(n){var i=t,a=n.event.event;if(i&&a){var s=i[a];if(TW(i,s)){var o=nBe(s,e);n.updateEvent("integrations",ne(ne(ne({},n.event.integrations),s==null?void 0:s.integrations),o))}else return n.updateEvent("integrations",ne(ne({},n.event.integrations),{All:!1,"Segment.io":!0})),n}return n}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:r,alias:r,track:r,identify:r,group:r}}const aBe=Object.freeze(Object.defineProperty({__proto__:null,schemaFilter:iBe},Symbol.toStringTag,{value:"Module"}));function sBe(t,e,r){var n;return ue(this,void 0,void 0,function(){var i,a,s,o,u,c=this;return ce(this,function(l){switch(l.label){case 0:return TG()?[2,[]]:(i=CC(),a=(n=e.enabledMiddleware)!==null&&n!==void 0?n:{},s=Object.entries(a).filter(function(d){d[0];var f=d[1];return f}).map(function(d){var f=d[0];return f}),o=s.map(function(d){return ue(c,void 0,void 0,function(){var f,p,m,b;return ce(this,function(_){switch(_.label){case 0:f=d.replace("@segment/",""),p=f,r&&(p=btoa(f).replace(/=/g,"")),m="".concat(i,"/middleware/").concat(p,"/latest/").concat(p,".js.gz"),_.label=1;case 1:return _.trys.push([1,3,,4]),[4,Zl(m)];case 2:return _.sent(),[2,window["".concat(f,"Middleware")]];case 3:return b=_.sent(),t.log("error",b),t.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}})})}),[4,Promise.all(o)]);case 1:return u=l.sent(),u=u.filter(Boolean),[2,u]}})})}const oBe=Object.freeze(Object.defineProperty({__proto__:null,remoteMiddlewares:sBe},Symbol.toStringTag,{value:"Module"}));var CW={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(window,function(){return function(r){var n={};function i(a){if(n[a])return n[a].exports;var s=n[a]={i:a,l:!1,exports:{}};return r[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=r,i.c=n,i.d=function(a,s,o){i.o(a,s)||Object.defineProperty(a,s,{enumerable:!0,get:o})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,s){if(1&s&&(a=i(a)),8&s||4&s&&typeof a=="object"&&a&&a.__esModule)return a;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:a}),2&s&&typeof a!="string")for(var u in a)i.d(o,u,(function(c){return a[c]}).bind(null,u));return o},i.n=function(a){var s=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(s,"a",s),s},i.o=function(a,s){return Object.prototype.hasOwnProperty.call(a,s)},i.p="",i(i.s=2)}([function(r,n,i){i.r(n);var a=typeof fetch=="function"?fetch.bind():function(s,o){return o=o||{},new Promise(function(u,c){var l=new XMLHttpRequest;for(var d in l.open(o.method||"get",s,!0),o.headers)l.setRequestHeader(d,o.headers[d]);function f(){var p,m=[],b=[],_={};return l.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(S,E,O){m.push(E=E.toLowerCase()),b.push([E,O]),p=_[E],_[E]=p?p+","+O:O}),{ok:(l.status/100|0)==2,status:l.status,statusText:l.statusText,url:l.responseURL,clone:f,text:function(){return Promise.resolve(l.responseText)},json:function(){return Promise.resolve(l.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([l.response]))},headers:{keys:function(){return m},entries:function(){return b},get:function(S){return _[S.toLowerCase()]},has:function(S){return S.toLowerCase()in _}}}}l.withCredentials=o.credentials=="include",l.onload=function(){u(f())},l.onerror=c,l.send(o.body)})};n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function o(u,c){for(var l=0;l=10&&(this.track("Video Content Playing",this.metadata.content),this.mostRecentHeartbeat=Math.floor(f))}},{key:"trackPause",value:function(){this.isPaused=!0,this.track("Video Playback Paused",this.metadata.playback)}},{key:"retrieveMetadata",value:function(d){var f=this;return new Promise(function(p,m){var b=d.id;(0,s.default)("https://api.vimeo.com/videos/"+b,{headers:{Authorization:"Bearer "+f.authToken}}).then(function(_){return _.ok?_.json():m(_)}).then(function(_){f.metadata.content.title=_.name,f.metadata.content.description=_.description,f.metadata.content.publisher=_.user.name,f.metadata.playback.position=0,f.metadata.playback.totalLength=_.duration}).catch(function(_){return console.error("Request to Vimeo API Failed with: ",_),m(_)})})}},{key:"updateMetadata",value:function(d){var f=this;return new Promise(function(p,m){f.player.getVolume().then(function(b){b&&(f.metadata.playback.sound=100*b),f.metadata.playback.position=d.seconds,p()}).catch(m)})}}]),l}(o(i(1)).default);n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var a=function(){function d(f,p){for(var m=0;m2e3}}]),f}(o.default);function l(d){var f=d.match(/PT(\d+H)?(\d+M)?(\d+S)?/);return f=f.slice(1).map(function(p){if(p!=null)return p.replace(/\D/,"")}),3600*(parseInt(f[0])||0)+60*(parseInt(f[1])||0)+(parseInt(f[2])||0)}n.default=c}])})})(CW);var AW=CW.exports;const uBe=hi(AW),cBe=FW({__proto__:null,default:uBe},[AW]);export{fH as A,D6 as B,xu as C,Nn as D,gBe as E,iO as F,Ok as G,mH as H,kBe as I,DBe as J,A5 as K,hH as L,vBe as M,dv as N,IBe as O,mBe as P,SBe as Q,bBe as S,Ne as V,Ti as _,yBe as a,_Be as b,Vd as c,OBe as d,dBe as e,pBe as f,Uee as g,L5 as h,yQ as i,Nie as j,jie as k,TBe as l,pH as m,J6 as n,fBe as o,hBe as p,i2 as q,CBe as r,wBe as s,EBe as t,xBe as u,ABe as v,MBe as w,$Be as x,FOe as y,Pve as z};