var gW=Object.defineProperty;var vW=(t,e,r)=>e in t?gW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ae=(t,e,r)=>(vW(t,typeof e!="symbol"?e+"":e,r),r);function bW(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 Qn=Object.freeze({}),We=Array.isArray;function $e(t){return t==null}function Z(t){return t!=null}function Wt(t){return t===!0}function yW(t){return t===!1}function gp(t){return typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="boolean"}function jt(t){return typeof t=="function"}function Jr(t){return t!==null&&typeof t=="object"}var GT=Object.prototype.toString;function oi(t){return GT.call(t)==="[object Object]"}function _W(t){return GT.call(t)==="[object RegExp]"}function jL(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function X1(t){return Z(t)&&typeof t.then=="function"&&typeof t.catch=="function"}function wW(t){return t==null?"":Array.isArray(t)||oi(t)&&t.toString===GT?JSON.stringify(t,null,2):String(t)}function Rh(t){var e=parseFloat(t);return isNaN(e)?t:e}function Ki(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(n,1)}}var OW=Object.prototype.hasOwnProperty;function dn(t,e){return OW.call(t,e)}function dc(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}var TW=/-(\w)/g,zu=dc(function(t){return t.replace(TW,function(e,r){return r?r.toUpperCase():""})}),EW=dc(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),xW=/\B([A-Z])/g,vp=dc(function(t){return t.replace(xW,"-$1").toLowerCase()});function PW(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 CW(t,e){return t.bind(e)}var HL=Function.prototype.bind?CW:PW;function J1(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function $t(t,e){for(var r in e)t[r]=e[r];return t}function zL(t){for(var e={},r=0;r0,YL=xi&&xi.indexOf("edge/")>0;xi&&xi.indexOf("android")>0;var IW=xi&&/iphone|ipad|ipod|ios/.test(xi),zC=xi&&xi.match(/firefox\/(\d+)/),Z1={}.watch,KL=!1;if(ci)try{var VC={};Object.defineProperty(VC,"passive",{get:function(){KL=!0}}),window.addEventListener("test-passive",null,VC)}catch{}var pm,bp=function(){return pm===void 0&&(!ci&&typeof global<"u"?pm=global.process&&global.process.env.VUE_ENV==="server":pm=!1),pm},Pv=ci&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Nl(t){return typeof t=="function"&&/native code/.test(t.toString())}var yp=typeof Symbol<"u"&&Nl(Symbol)&&typeof Reflect<"u"&&Nl(Reflect.ownKeys),Lh;typeof Set<"u"&&Nl(Set)?Lh=Set:Lh=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 lh=null;function Ao(t){t===void 0&&(t=null),t||lh&&lh._scope.off(),lh=t,t&&t._scope.on()}var ui=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}(),$u=function(t){t===void 0&&(t="");var e=new ui;return e.text=t,e.isComment=!0,e};function yl(t){return new ui(void 0,void 0,void 0,String(t))}function Q1(t){var e=new ui(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 RW=0,Pg=[],LW=function(){for(var t=0;t0&&(i=tN(i,"".concat(e||"","_").concat(n)),af(i[0])&&af(s)&&(r[a]=yl(s.text+i[0].text),i.shift()),r.push.apply(r,i)):gp(i)?af(s)?r[a]=yl(s.text+i):i!==""&&r.push(yl(i)):af(i)&&af(s)?r[a]=yl(s.text+i.text):(Wt(t._isVList)&&Z(i.tag)&&$e(i.key)&&Z(e)&&(i.key="__vlist".concat(e,"_").concat(n,"__")),r.push(i)));return r}function GW(t,e){var r=null,n,i,a,s;if(We(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!==Qn&&o===n.$key&&!a&&!n.$hasNormal)return n;i={};for(var u in e)e[u]&&u[0]!=="$"&&(i[u]=r9(t,r,u,e[u]))}for(var c in r)c in i||(i[c]=n9(r,c));return e&&Object.isExtensible(e)&&(e._normalized=i),bo(i,"$stable",s),bo(i,"$key",o),bo(i,"$hasNormal",a),i}function r9(t,e,r,n){var i=function(){var a=lh;Ao(t);var s=arguments.length?n.apply(null,arguments):n({});s=s&&typeof s=="object"&&!We(s)?[s]:XT(s);var o=s&&s[0];return Ao(a),s&&(!o||s.length===1&&o.isComment&&!Nh(o))?void 0:s};return n.proxy&&Object.defineProperty(e,r,{get:i,enumerable:!0,configurable:!0}),i}function n9(t,e){return function(){return t[e]}}function i9(t){var e=t.$options,r=e.setup;if(r){var n=t._setupContext=a9(t);Ao(t),Td();var i=ko(r,null,[t._props||QL({}),n],t,"setup");if(Ed(),Ao(),jt(i))e.render=i;else if(Jr(i))if(t._setupState=i,i.__sfc){var s=t._setupProxy={};for(var a in i)a!=="__sfc"&&eS(s,i,a)}else for(var a in i)WL(a)||eS(t,i,a)}}function a9(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};bo(e,"_v_attr_proxy",!0),Av(e,t.$attrs,Qn,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};Av(e,t.$listeners,Qn,t,"$listeners")}return t._listenersProxy},get slots(){return o9(t)},emit:HL(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach(function(r){return eS(t,e,r)})}}}function Av(t,e,r,n,i){var a=!1;for(var s in e)s in t?e[s]!==r[s]&&(a=!0):(a=!0,s9(t,s,n,i));for(var s in t)s in e||(a=!0,delete t[s]);return a}function s9(t,e,r,n){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return r[n][e]}})}function o9(t){return t._slotsProxy||aN(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function aN(t,e){for(var r in e)t[r]=e[r];for(var r in t)r in e||delete t[r]}function u9(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,n=r&&r.context;t.$slots=JT(e._renderChildren,n),t.$scopedSlots=r?dh(t.$parent,r.data.scopedSlots,t.$slots):Qn,t._c=function(a,s,o,u){return Mv(t,a,s,o,u,!1)},t.$createElement=function(a,s,o,u){return Mv(t,a,s,o,u,!0)};var i=r&&r.data;Uu(t,"$attrs",i&&i.attrs||Qn,null,!0),Uu(t,"$listeners",e._parentListeners||Qn,null,!0)}var rS=null;function c9(t){iN(t.prototype),t.prototype.$nextTick=function(e){return ZT(e,this)},t.prototype._render=function(){var e=this,r=e.$options,n=r.render,i=r._parentVnode;i&&e._isMounted&&(e.$scopedSlots=dh(e.$parent,i.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&aN(e._slotsProxy,e.$scopedSlots)),e.$vnode=i;var a;try{Ao(e),rS=e,a=n.call(e._renderProxy,e.$createElement)}catch(s){Gu(s,e,"render"),a=e._vnode}finally{rS=null,Ao()}return We(a)&&a.length===1&&(a=a[0]),a instanceof ui||(a=$u()),a.parent=i,a}}function z_(t,e){return(t.__esModule||yp&&t[Symbol.toStringTag]==="Module")&&(t=t.default),Jr(t)?e.extend(t):t}function l9(t,e,r,n,i){var a=$u();return a.asyncFactory=t,a.asyncMeta={data:e,context:r,children:n,tag:i},a}function d9(t,e){if(Wt(t.error)&&Z(t.errorComp))return t.errorComp;if(Z(t.resolved))return t.resolved;var r=rS;if(r&&Z(t.owners)&&t.owners.indexOf(r)===-1&&t.owners.push(r),Wt(t.loading)&&Z(t.loadingComp))return t.loadingComp;if(r&&!Z(t.owners)){var n=t.owners=[r],i=!0,a=null,s=null;r.$on("hook:destroyed",function(){return Ho(n,r)});var o=function(d){for(var f=0,p=n.length;f1?J1(i):i;for(var a=J1(arguments,1),s='event handler for "'.concat(r,'"'),o=0,u=i.length;odocument.createEvent("Event").timeStamp&&(oS=function(){return V_.now()})}var A9=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function M9(){hN=oS(),rE=!0;var t,e;for(ps.sort(A9),_l=0;_l_l&&ps[r].id>t.id;)r--;ps.splice(r+1,0,t)}sS||(sS=!0,ZT(M9))}}function R9(t){var e=t.$options.provide;if(e){var r=jt(e)?e.call(t):e;if(!Jr(r))return;for(var n=zW(t),i=yp?Reflect.ownKeys(r):Object.keys(r),a=0;a-1){if(a&&!dn(i,"default"))s=!1;else if(s===""||s===vp(t)){var u=sA(String,i.type);(u<0||o-1)return this;var n=J1(arguments,1);return n.unshift(this),jt(e.install)?e.install.apply(e,n):jt(e)&&e.apply(null,n),r.push(e),this}}function fY(t){t.mixin=function(e){return this.options=Wu(this.options,e),this}}function hY(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=Dv(r)||Dv(n.options),o=function(c){this._init(c)};return o.prototype=Object.create(n.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Wu(n.options,r),o.super=n,o.options.props&&pY(o),o.options.computed&&mY(o),o.extend=n.extend,o.mixin=n.mixin,o.use=n.use,hb.forEach(function(u){o[u]=n[u]}),s&&(o.options.components[s]=o),o.superOptions=n.options,o.extendOptions=r,o.sealedOptions=$t({},o.options),a[i]=o,o}}function pY(t){var e=t.options.props;for(var r in e)sE(t.prototype,"_props",r)}function mY(t){var e=t.options.computed;for(var r in e)mN(t.prototype,r,e[r])}function gY(t){hb.forEach(function(e){t[e]=function(r,n){return n?(e==="component"&&oi(n)&&(n.name=n.name||r,n=this.options._base.extend(n)),e==="directive"&&jt(n)&&(n={bind:n,update:n}),this.options[e+"s"][r]=n,n):this.options[e+"s"][r]}})}function cA(t){return t&&(Dv(t.Ctor.options)||t.tag)}function vm(t,e){return We(t)?t.indexOf(e)>-1:typeof t=="string"?t.split(",").indexOf(e)>-1:_W(t)?t.test(e):!1}function lA(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)&&lS(r,a,n,i)}}}function lS(t,e,r,n){var i=t[e];i&&(!n||i.tag!==n.tag)&&i.componentInstance.$destroy(),t[e]=null,Ho(r,e)}var dA=[String,RegExp,Array],vY={name:"keep-alive",abstract:!0,props:{include:dA,exclude:dA,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:cA(o),tag:a,componentInstance:s},r.push(i),this.max&&r.length>parseInt(this.max)&&lS(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)lS(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",function(e){lA(t,function(r){return vm(e,r)})}),this.$watch("exclude",function(e){lA(t,function(r){return!vm(e,r)})})},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=sN(t),r=e&&e.componentOptions;if(r){var n=cA(r),i=this,a=i.include,s=i.exclude;if(a&&(!n||!vm(a,n))||s&&n&&vm(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,Ho(c,l),c.push(l)):(this.vnodeToCache=e,this.keyToCache=l),e.data.keepAlive=!0}return e||t&&t[0]}},bY={KeepAlive:vY};function yY(t){var e={};e.get=function(){return Ei},Object.defineProperty(t,"config",e),t.util={warn:z9,extend:$t,mergeOptions:Wu,defineReactive:Uu},t.set=KT,t.delete=JL,t.nextTick=ZT,t.observable=function(r){return Ts(r),r},t.options=Object.create(null),hb.forEach(function(r){t.options[r+"s"]=Object.create(null)}),t.options._base=t,$t(t.options.components,bY),dY(t),fY(t),hY(t),gY(t)}yY(V);Object.defineProperty(V.prototype,"$isServer",{get:bp});Object.defineProperty(V.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(V,"FunctionalRenderContext",{value:nE});V.version=v9;var _Y=Ki("style,class"),wY=Ki("input,textarea,option,select,progress"),SY=function(t,e,r){return r==="value"&&wY(t)&&e!=="button"||r==="selected"&&t==="option"||r==="checked"&&t==="input"||r==="muted"&&t==="video"},gN=Ki("contenteditable,draggable,spellcheck"),OY=Ki("events,caret,typing,plaintext-only"),TY=function(t,e){return Rv(e)||e==="false"?"false":t==="contenteditable"&&OY(e)?e:"true"},EY=Ki("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"),dS="http://www.w3.org/1999/xlink",uE=function(t){return t.charAt(5)===":"&&t.slice(0,5)==="xlink"},vN=function(t){return uE(t)?t.slice(6,t.length):""},Rv=function(t){return t==null||t===!1};function xY(t){for(var e=t.data,r=t,n=t;Z(n.componentInstance);)n=n.componentInstance._vnode,n&&n.data&&(e=fA(n.data,e));for(;Z(r=r.parent);)r&&r.data&&(e=fA(e,r.data));return PY(e.staticClass,e.class)}function fA(t,e){return{staticClass:cE(t.staticClass,e.staticClass),class:Z(t.class)?[t.class,e.class]:e.class}}function PY(t,e){return Z(t)||Z(e)?cE(t,lE(e)):""}function cE(t,e){return t?e?t+" "+e:t:e||""}function lE(t){return Array.isArray(t)?CY(t):Jr(t)?AY(t):typeof t=="string"?t:""}function CY(t){for(var e="",r,n=0,i=t.length;n-1?bm[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:bm[t]=/HTMLUnknownElement/.test(e.toString())}var fS=Ki("text,number,password,search,email,tel,url");function IY(t){if(typeof t=="string"){var e=document.querySelector(t);return e||document.createElement("div")}else return t}function RY(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 LY(t,e){return document.createElementNS(MY[t],e)}function NY(t){return document.createTextNode(t)}function BY(t){return document.createComment(t)}function FY(t,e,r){t.insertBefore(e,r)}function jY(t,e){t.removeChild(e)}function HY(t,e){t.appendChild(e)}function zY(t){return t.parentNode}function VY(t){return t.nextSibling}function UY(t){return t.tagName}function GY(t,e){t.textContent=e}function WY(t,e){t.setAttribute(e,"")}var YY=Object.freeze({__proto__:null,createElement:RY,createElementNS:LY,createTextNode:NY,createComment:BY,insertBefore:FY,removeChild:jY,appendChild:HY,parentNode:zY,nextSibling:VY,tagName:UY,setTextContent:GY,setStyleScope:WY}),KY={create:function(t,e){wl(e)},update:function(t,e){t.data.ref!==e.data.ref&&(wl(t,!0),wl(e))},destroy:function(t){wl(t,!0)}};function wl(t,e){var r=t.data.ref;if(Z(r)){var n=t.context,i=t.componentInstance||t.elm,a=e?null:i,s=e?void 0:i;if(jt(r)){ko(r,n,[a],n,"template ref function");return}var o=t.data.refInFor,u=typeof r=="string"||typeof r=="number",c=ka(r),l=n.$refs;if(u||c){if(o){var d=u?l[r]:r.value;e?We(d)&&Ho(d,i):We(d)?d.includes(i)||d.push(i):u?(l[r]=[i],hA(n,r,l[r])):r.value=[i]}else if(u){if(e&&l[r]!==i)return;l[r]=s,hA(n,r,a)}else if(c){if(e&&r.value!==i)return;r.value=a}}}}function hA(t,e,r){var n=t._setupState;n&&dn(n,e)&&(ka(n[e])?n[e].value=r:n[e]=r)}var co=new ui("",{},[]),sf=["create","activate","update","remove","destroy"];function tu(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&Z(t.data)===Z(e.data)&&qY(t,e)||Wt(t.isAsyncPlaceholder)&&$e(e.asyncFactory.error))}function qY(t,e){if(t.tag!=="input")return!0;var r,n=Z(r=t.data)&&Z(r=r.attrs)&&r.type,i=Z(r=e.data)&&Z(r=r.attrs)&&r.type;return n===i||fS(n)&&fS(i)}function XY(t,e,r){var n,i,a={};for(n=e;n<=r;++n)i=t[n].key,Z(i)&&(a[i]=n);return a}function JY(t){var e,r,n={},i=t.modules,a=t.nodeOps;for(e=0;ej?(se=$e($[J+1])?null:$[J+1].elm,x(C,se,$,N,J,D)):N>J&&h(E,L,j)}function T(C,E,$,D){for(var M=$;M-1?vA(t,e,r):EY(e)?Rv(r)?t.removeAttribute(e):(r=e==="allowfullscreen"&&t.tagName==="EMBED"?"true":e,t.setAttribute(e,r)):gN(e)?t.setAttribute(e,TY(e,r)):uE(e)?Rv(r)?t.removeAttributeNS(dS,vN(e)):t.setAttributeNS(dS,e,r):vA(t,e,r)}function vA(t,e,r){if(Rv(r))t.removeAttribute(e);else{if(Sd&&!Od&&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 nK={create:mA,update:mA};function bA(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=xY(e),s=r._transitionClasses;Z(s)&&(a=cE(a,lE(s))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var iK={create:bA,update:bA},G_="__r",W_="__c";function aK(t){if(Z(t[G_])){var e=Sd?"change":"input";t[e]=[].concat(t[G_],t[e]||[]),delete t[G_]}Z(t[W_])&&(t.change=[].concat(t[W_],t.change||[]),delete t[W_])}var jh;function sK(t,e,r){var n=jh;return function i(){var a=e.apply(null,arguments);a!==null&&yN(t,i,r,n)}}var oK=nS&&!(zC&&Number(zC[1])<=53);function uK(t,e,r,n){if(oK){var i=hN,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)}}jh.addEventListener(t,e,KL?{capture:r,passive:n}:r)}function yN(t,e,r,n){(n||jh).removeEventListener(t,e._wrapper||e,r)}function Y_(t,e){if(!($e(t.data.on)&&$e(e.data.on))){var r=e.data.on||{},n=t.data.on||{};jh=e.elm||t.elm,aK(r),eN(r,n,uK,yN,sK,e.context),jh=void 0}}var cK={create:Y_,update:Y_,destroy:function(t){return Y_(t,co)}},ym;function yA(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||{};(Z(s.__ob__)||Wt(s._v_attr_proxy))&&(s=e.data.domProps=$t({},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);lK(i,o)&&(i.value=o)}else if(r==="innerHTML"&&dE(i.tagName)&&$e(i.innerHTML)){ym=ym||document.createElement("div"),ym.innerHTML="".concat(n,"");for(var u=ym.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 lK(t,e){return!t.composing&&(t.tagName==="OPTION"||dK(t,e)||fK(t,e))}function dK(t,e){var r=!0;try{r=document.activeElement!==t}catch{}return r&&t.value!==e}function fK(t,e){var r=t.value,n=t._vModifiers;if(Z(n)){if(n.number)return Rh(r)!==Rh(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}var hK={create:yA,update:yA},pK=dc(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 K_(t){var e=_N(t.style);return t.staticStyle?$t(t.staticStyle,e):e}function _N(t){return Array.isArray(t)?zL(t):typeof t=="string"?pK(t):t}function mK(t,e){var r={},n;if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i&&i.data&&(n=K_(i.data))&&$t(r,n);(n=K_(t.data))&&$t(r,n);for(var a=t;a=a.parent;)a.data&&(n=K_(a.data))&&$t(r,n);return r}var gK=/^--/,_A=/\s*!important$/,wA=function(t,e,r){if(gK.test(e))t.style.setProperty(e,r);else if(_A.test(r))t.style.setProperty(vp(e),r.replace(_A,""),"important");else{var n=vK(e);if(Array.isArray(r))for(var i=0,a=r.length;i-1?e.split(wN).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 ON(t,e){if(!(!e||!(e=e.trim())))if(t.classList)e.indexOf(" ")>-1?e.split(wN).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 TN(t){if(t){if(typeof t=="object"){var e={};return t.css!==!1&&$t(e,TA(t.name||"v")),$t(e,t),e}else if(typeof t=="string")return TA(t)}}var TA=dc(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")}}),EN=ci&&!Od,ll="transition",q_="animation",Mg="transition",Lv="transitionend",hS="animation",xN="animationend";EN&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Mg="WebkitTransition",Lv="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(hS="WebkitAnimation",xN="webkitAnimationEnd"));var EA=ci?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function PN(t){EA(function(){EA(t)})}function Du(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),SN(t,e))}function ms(t,e){t._transitionClasses&&Ho(t._transitionClasses,e),ON(t,e)}function CN(t,e,r){var n=AN(t,e),i=n.type,a=n.timeout,s=n.propCount;if(!i)return r();var o=i===ll?Lv:xN,u=0,c=function(){t.removeEventListener(o,l),r()},l=function(d){d.target===t&&++u>=s&&c()};setTimeout(function(){u0&&(c=ll,l=a,d=i.length):e===q_?u>0&&(c=q_,l=u,d=o.length):(l=Math.max(a,u),c=l>0?a>u?ll:q_:null,d=c?c===ll?i.length:o.length:0);var f=c===ll&&yK.test(r[Mg+"Property"]);return{type:c,timeout:l,propCount:d,hasTransform:f}}function xA(t,e){for(;t.length1}function CA(t,e){e.data.show!==!0&&pS(e)}var _K=ci?{create:CA,activate:CA,remove:function(t,e){t.data.show!==!0?MN(t,e):e()}}:{},wK=[nK,iK,cK,hK,bK,_K],SK=wK.concat(rK),OK=JY({nodeOps:YY,modules:SK});Od&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&hE(t,"input")});var kN={inserted:function(t,e,r,n){r.tag==="select"?(n.elm&&!n.elm._vOptions?uo(r,"postpatch",function(){kN.componentUpdated(t,e,r)}):AA(t,e,r.context),t._vOptions=[].map.call(t.options,Nv)):(r.tag==="textarea"||fS(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",TK),t.addEventListener("compositionend",kA),t.addEventListener("change",kA),Od&&(t.vmodel=!0)))},componentUpdated:function(t,e,r){if(r.tag==="select"){AA(t,e,r.context);var n=t._vOptions,i=t._vOptions=[].map.call(t.options,Nv);if(i.some(function(s,o){return!Vu(s,n[o])})){var a=t.multiple?e.value.some(function(s){return $A(s,i)}):e.value!==e.oldValue&&$A(e.value,i);a&&hE(t,"change")}}}};function AA(t,e,r){MA(t,e),(Sd||YL)&&setTimeout(function(){MA(t,e)},0)}function MA(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(Vu(Nv(s),n)){t.selectedIndex!==o&&(t.selectedIndex=o);return}i||(t.selectedIndex=-1)}}function $A(t,e){return e.every(function(r){return!Vu(r,t)})}function Nv(t){return"_value"in t?t._value:t.value}function TK(t){t.target.composing=!0}function kA(t){t.target.composing&&(t.target.composing=!1,hE(t.target,"input"))}function hE(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function mS(t){return t.componentInstance&&(!t.data||!t.data.transition)?mS(t.componentInstance._vnode):t}var EK={bind:function(t,e,r){var n=e.value;r=mS(r);var i=r.data&&r.data.transition,a=t.__vOriginalDisplay=t.style.display==="none"?"":t.style.display;n&&i?(r.data.show=!0,pS(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=mS(r);var a=r.data&&r.data.transition;a?(r.data.show=!0,n?pS(r,function(){t.style.display=t.__vOriginalDisplay}):MN(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)}},xK={model:kN,show:EK},DN={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 gS(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?gS(sN(e.children)):t}function IN(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[zu(n)]=i[n];return e}function DA(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function PK(t){for(;t=t.parent;)if(t.data.transition)return!0}function CK(t,e){return e.key===t.key&&e.tag===t.tag}var AK=function(t){return t.tag||Nh(t)},MK=function(t){return t.name==="show"},$K={name:"transition",props:DN,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(AK),!!r.length)){var n=this.mode,i=r[0];if(PK(this.$vnode))return i;var a=gS(i);if(!a)return i;if(this._leaving)return DA(t,i);var s="__transition-".concat(this._uid,"-");a.key=a.key==null?a.isComment?s+"comment":s+a.tag:gp(a.key)?String(a.key).indexOf(s)===0?a.key:s+a.key:a.key;var o=(a.data||(a.data={})).transition=IN(this),u=this._vnode,c=gS(u);if(a.data.directives&&a.data.directives.some(MK)&&(a.data.show=!0),c&&c.data&&!CK(a,c)&&!Nh(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var l=c.data.transition=$t({},o);if(n==="out-in")return this._leaving=!0,uo(l,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),DA(t,i);if(n==="in-out"){if(Nh(a))return u;var d,f=function(){d()};uo(o,"afterEnter",f),uo(o,"enterCancelled",f),uo(l,"delayLeave",function(p){d=p})}}return i}}},RN=$t({tag:String,moveClass:String},DN);delete RN.mode;var kK={props:RN,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=lN(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=IN(this),o=0;o0,zK=function(){var t=!1;if(ft)try{var e={get passive(){t=!0}};Yt.addEventListener("test",e,e),Yt.removeEventListener("test",e,e)}catch{t=!1}return t}(),Bv=ft&&("ontouchstart"in Pd.documentElement||jN.maxTouchPoints>0),uf=ft&&!!(Yt.PointerEvent||Yt.MSPointerEvent),IA=ft&&"IntersectionObserver"in Yt&&"IntersectionObserverEntry"in Yt&&"intersectionRatio"in Yt.IntersectionObserverEntry.prototype,VK="BvConfig",dl="$bvConfig",UK=["xs","sm","md","lg","xl"],GK=/\[(\d+)]/g,WK=/^(BV?)/,HN=/^\d+$/,YK=/^\..+/,KK=/^#/,qK=/^#[A-Za-z]+[\w\-:.]*$/,XK=/(<([^>]+)>)/gi,JK=/\B([A-Z])/g,ZK=/([a-z])([A-Z])/g,QK=/^[0-9]*\.?[0-9]+$/,eq=/\+/g,tq=/[-/\\^$*+?.()|[\]{}]/g,zN=/[\s\uFEFF\xA0]+/g,$g=/\s+/,rq=/\/\*$/,nq=/(\s|^)(\w)/g,iq=/^\s+/,aq=/_/g,sq=/-(\w)/g,oq=/^\d+-\d\d?-\d\d?(?:\s|T|$)/,uq=/-|\s|T/,cq=/^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/,RA=/^.*(#[^#]+)$/,lq=/%2C/g,dq=/[!'()*]/g,fq=/^(\?|#|&)/,hq=/^\d+(\.\d*)?[/:]\d+(\.\d*)?$/,pq=/[/:]/,mq=/^col-/,gq=/^BIcon/,vq=/-u-.+/;function vS(t){"@babel/helpers - typeof";return vS=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},vS(t)}function pb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mb(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&&Hh(t,e)}function gb(t){var e=VN();return function(){var n=zh(t),i;if(e){var a=zh(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return bq(this,i)}}function bq(t,e){if(e&&(vS(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yq(t)}function yq(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fv(t){var e=typeof Map=="function"?new Map:void 0;return Fv=function(n){if(n===null||!_q(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 kg(n,arguments,zh(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Hh(i,n)},Fv(t)}function kg(t,e,r){return VN()?kg=Reflect.construct:kg=function(i,a,s){var o=[null];o.push.apply(o,a);var u=Function.bind.apply(i,o),c=new u;return s&&Hh(c,s.prototype),c},kg.apply(null,arguments)}function VN(){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 _q(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Hh(t,e){return Hh=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Hh(t,e)}function zh(t){return zh=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zh(t)}var pE=xd?Yt.Element:function(t){mb(r,t);var e=gb(r);function r(){return pb(this,r),e.apply(this,arguments)}return r}(Fv(Object)),yo=xd?Yt.HTMLElement:function(t){mb(r,t);var e=gb(r);function r(){return pb(this,r),e.apply(this,arguments)}return r}(pE),UN=xd?Yt.SVGElement:function(t){mb(r,t);var e=gb(r);function r(){return pb(this,r),e.apply(this,arguments)}return r}(pE),GN=xd?Yt.File:function(t){mb(r,t);var e=gb(r);function r(){return pb(this,r),e.apply(this,arguments)}return r}(Fv(Object));function jv(t){"@babel/helpers - typeof";return jv=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},jv(t)}var vb=function(e){return jv(e)},wq=function(e){return Object.prototype.toString.call(e).slice(8,-1)},Jt=function(e){return e===void 0},St=function(e){return e===null},it=function(e){return Jt(e)||St(e)},be=function(e){return vb(e)==="function"},Si=function(e){return vb(e)==="boolean"},Ge=function(e){return vb(e)==="string"},ji=function(e){return vb(e)==="number"},fh=function(e){return QK.test(String(e))},rt=function(e){return Array.isArray(e)},qt=function(e){return e!==null&&jv(e)==="object"},Zr=function(e){return Object.prototype.toString.call(e)==="[object Object]"},Kl=function(e){return e instanceof Date},Yu=function(e){return e instanceof Event},Sq=function(e){return e instanceof GN},LA=function(e){return wq(e)==="RegExp"},Oq=function(e){return!it(e)&&be(e.then)&&be(e.catch)};function NA(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 Ku(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 rt(e)?e.reduce(function(n,i){return[].concat(xq(n),[t(i,i)])},[]):Zr(e)?Pe(e).reduce(function(n,i){return jA(jA({},n),{},WN({},i,t(e[i],e[i])))},{}):r},Te=function(e){return e},YN=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(r=rt(r)?r.join("."):r,!r||!qt(e))return n;if(r in e)return e[r];r=String(r).replace(GK,".$1");var i=r.split(".").filter(Te);return i.length===0?n:i.every(function(a){return qt(e)&&a in e&&!it(e=e[a])})?e:St(e)?null:n},Vr=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=YN(e,r);return it(i)?n:i},HA=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},$q=function(){return HA("BOOTSTRAP_VUE_NO_WARN")||HA("NODE_ENV")==="production"},Tr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$q()||console.warn("[BootstrapVue warn]: ".concat(r?"".concat(r," - "):"").concat(e))},Hv=function(e){return ft?!1:(Tr("".concat(e,": Can not be called during SSR.")),!0)},zA=function(e){return FN?!1:(Tr("".concat(e,": Requires Promise support.")),!0)},kq=function(e){return FK?!1:(Tr("".concat(e,": Requires MutationObserver support.")),!0)};function Dq(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function VA(t,e){for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:{};if(Zr(n)){var i=BA(n);i.forEach(function(a){var s=n[a];a==="breakpoints"?!rt(s)||s.length<2||s.some(function(o){return!Ge(o)||o.length===0})?Tr('"breakpoints" must be an array of at least 2 breakpoint names',VK):r.$_config[a]=Oi(s):Zr(s)&&(r.$_config[a]=BA(s).reduce(function(o,u){return Jt(s[u])||(o[u]=Oi(s[u])),o},r.$_config[a]||{}))})}}},{key:"resetConfig",value:function(){this.$_config={}}},{key:"getConfig",value:function(){return Oi(this.$_config)}},{key:"getConfigValue",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;return Oi(YN(this.$_config,r,n))}}]),t}(),Lq=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V;r.prototype[dl]=V.prototype[dl]=r.prototype[dl]||V.prototype[dl]||new Rq,r.prototype[dl].setConfig(e)};function UA(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 GA(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,Bq(o),Lq(u,o),Hq(o,r),Vq(o,n),Fq(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 GA(GA({},r),{},{install:KN(e)})},Fq=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])},jq=function(e,r,n){e&&r&&n&&e.component(r,n)},Hq=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in r)jq(e,n,r[n])},zq=function(e,r,n){e&&r&&n&&e.directive(r.replace(/^VB/,"B"),n)},Vq=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in r)zq(e,n,r[n])},qN="BAlert",XN="BAspect",JN="BAvatar",ZN="BAvatarGroup",QN="BBadge",eB="BBreadcrumb",tB="BBreadcrumbItem",rB="BBreadcrumbLink",nB="BButton",iB="BButtonClose",aB="BButtonGroup",sB="BButtonToolbar",oB="BCalendar",gE="BCard",uB="BCardBody",cB="BCardFooter",lB="BCardGroup",dB="BCardHeader",fB="BCardImg",hB="BCardImgLazy",pB="BCardSubTitle",mB="BCardText",gB="BCardTitle",vB="BCarousel",bB="BCarouselSlide",yB="BCol",Ur="BCollapse",_B="BContainer",Xu="BDropdown",wB="BDropdownDivider",SB="BDropdownForm",OB="BDropdownGroup",TB="BDropdownHeader",EB="BDropdownItem",xB="BDropdownItemButton",PB="BDropdownText",CB="BEmbed",AB="BForm",MB="BFormCheckbox",$B="BFormCheckboxGroup",kB="BFormDatalist",DB="BFormDatepicker",vE="BFormFile",IB="BFormGroup",RB="BFormInput",LB="BFormInvalidFeedback",NB="BFormRadio",BB="BFormRadioGroup",FB="BFormRating",jB="BFormRow",HB="BFormSelect",zB="BFormSelectOption",VB="BFormSelectOptionGroup",UB="BFormSpinbutton",GB="BFormTag",WB="BFormTags",YB="BFormText",KB="BFormTextarea",qB="BFormTimepicker",XB="BFormValidFeedback",JB="BIcon",Uq="BIconBase",ZB="BImg",QB="BImgLazy",eF="BInputGroup",tF="BInputGroupAddon",rF="BInputGroupAppend",nF="BInputGroupPrepend",iF="BInputGroupText",aF="BJumbotron",bE="BLink",sF="BListGroup",oF="BListGroupItem",uF="BMedia",cF="BMediaAside",lF="BMediaBody",Tn="BModal",Gq="BMsgBox",dF="BNav",fF="BNavbar",hF="BNavbarBrand",pF="BNavbarNav",mF="BNavbarToggle",gF="BNavForm",vF="BNavItem",bF="BNavItemDropdown",Wq="BNavText",yF="BOverlay",yb="BPagination",yS="BPaginationNav",_u="BPopover",_F="BProgress",wF="BProgressBar",SF="BRow",OF="BSidebar",TF="BSkeleton",EF="BSkeletonIcon",xF="BSkeletonImg",PF="BSkeletonTable",CF="BSkeletonWrapper",AF="BSpinner",MF="BTab",Ju="BTable",$F="BTableCell",kF="BTableLite",DF="BTableSimple",IF="BTabs",RF="BTbody",LF="BTfoot",NF="BTh",BF="BThead",FF="BTime",gs="BToast",Bl="BToaster",wu="BTooltip",jF="BTr",Yq="BVCollapse",Kq="BVFormBtnLabelControl",qq="BVFormRatingStar",Xq="BVPopover",Jq="BVPopoverTemplate",Zq="BVPopper",Qq="BVTabButton",eX="BVToastPop",tX="BVTooltip",rX="BVTooltipTemplate",nX="BVTransition",iX="BVTransporter",aX="BVTransporterTarget",sX="activate-tab",HF="blur",oX="cancel",Rn="change",uX="changed",Pi="click",_S="close",ql="context",zF="context-changed",yE="destroyed",wS="disable",Dg="disabled",cX="dismissed",lX="dismiss-count-down",SS="enable",Ig="enabled",OS="filtered",VF="first",dX="focus",zv="focusin",Vv="focusout",hh="head-clicked",Xt="hidden",$n="hide",fX="img-error",UF="input",GF="last",WF="mouseenter",YF="mouseleave",KF="next",hX="ok",WA="open",qF="page-click",pX="paused",XF="prev",mX="refresh",Vf="refreshed",gX="remove",Uv="row-clicked",vX="row-contextmenu",bX="row-dblclicked",yX="row-hovered",_X="row-middle-clicked",wX="row-selected",SX="row-unhovered",JF="selected",Nr="show",fn="shown",J_="sliding-end",OX="sliding-start",TX="sort-changed",EX="tag-state",ZF="toggle",xX="unpaused",PX="update",QF="hook:beforeDestroy",Vh="hook:destroyed",Vo="update:",e4="bv",t4="::",Cn={passive:!0},Ve={passive:!0,capture:!1},Xl=void 0,hn=Array,B=Boolean,CX=Date,mn=Function,Xr=Number,pr=Object,AX=RegExp,I=String,r4=[hn,mn],MX=[hn,pr],we=[hn,pr,I],Qr=[hn,I],$X=[B,Xr],Uh=[B,Xr,I],en=[B,I],Iu=[CX,I],kX=[mn,I],le=[Xr,I],DX=[Xr,pr,I],IX=[pr,mn],n4=[pr,I],RX="add-button-text",YA="append",LX="aside",KA="badge",qA="bottom-row",Es="button-content",XA="custom-foot",NX="decrement",br="default",BX="description",FX="dismiss",jX="drop-placeholder",HX="ellipsis-text",i4="empty",zX="emptyfiltered",JA="file-name",_E="first",VX="first-text",TS="footer",Do="header",UX="header-close",GX="icon-clear",WX="icon-empty",YX="icon-full",KX="icon-half",qX="img",XX="increment",JX="invalid-feedback",a4="label",ZX="last-text",ZA="lead",QX="loading",eJ="modal-backdrop",QA="modal-cancel",tJ="modal-footer",rJ="modal-header",nJ="modal-header-close",eM="modal-ok",Z_="modal-title",iJ="nav-next-decade",aJ="nav-next-month",sJ="nav-next-year",oJ="nav-prev-decade",uJ="nav-prev-month",cJ="nav-prev-year",lJ="nav-this-month",dJ="next-text",fJ="overlay",hJ="page",pJ="placeholder",tM="prepend",mJ="prev-text",cf="row-details",Uf="table-busy",rM="table-caption",nM="table-colgroup",gJ="tabs-end",vJ="tabs-start",bJ="text",yJ="thead-top",Sp="title",_J="toast-title",iM="top-row",wJ="valid-feedback",Zu=function(){return Array.from.apply(Array,arguments)},Ee=function(e,r){return e.indexOf(r)!==-1},Ke=function(){for(var e=arguments.length,r=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:NaN,n=parseInt(e,10);return isNaN(n)?r:n},Ne=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=parseFloat(e);return isNaN(n)?r:n},Q_=function(e,r){return Ne(e).toFixed(oe(r,0))},wE=function(e){return e.replace(JK,"-$1").toLowerCase()},s4=function(e){return e=wE(e).replace(sq,function(r,n){return n?n.toUpperCase():""}),e.charAt(0).toUpperCase()+e.slice(1)},Rg=function(e){return e.replace(aq," ").replace(ZK,function(r,n,i){return n+" "+i}).replace(nq,function(r,n,i){return n+i.toUpperCase()})},OJ=function(e){return e=Ge(e)?e.trim():String(e),e.charAt(0).toLowerCase()+e.slice(1)},o4=function(e){return e=Ge(e)?e.trim():String(e),e.charAt(0).toUpperCase()+e.slice(1)},SE=function(e){return e.replace(tq,"\\$&")},_e=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return it(e)?"":rt(e)||Zr(e)&&e.toString===Object.prototype.toString?JSON.stringify(e,null,r):String(e)},TJ=function(e){return _e(e).replace(iq,"")},_o=function(e){return _e(e).trim()},Gv=function(e){return _e(e).toLowerCase()},Lg=pE.prototype,EJ=["button","[href]:not(.disabled)","input","select","textarea","[tabindex]","[contenteditable]"].map(function(t){return"".concat(t,":not(:disabled):not([disabled])")}).join(", "),xJ=Lg.matches||Lg.msMatchesSelector||Lg.webkitMatchesSelector,PJ=Lg.closest||function(t){var e=this;do{if(Ss(e,t))return e;e=e.parentElement||e.parentNode}while(!St(e)&&e.nodeType===Node.ELEMENT_NODE);return null},at=(Yt.requestAnimationFrame||Yt.webkitRequestAnimationFrame||Yt.mozRequestAnimationFrame||Yt.msRequestAnimationFrame||Yt.oRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(Yt),CJ=Yt.MutationObserver||Yt.WebKitMutationObserver||Yt.MozMutationObserver||null,AJ=function(e){return e&&e.parentNode&&e.parentNode.removeChild(e)},yt=function(e){return!!(e&&e.nodeType===Node.ELEMENT_NODE)},Io=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=Pd.activeElement;return r&&!e.some(function(n){return n===r})?r:null},za=function(e,r){return _e(e).toLowerCase()===_e(r).toLowerCase()},OE=function(e){return yt(e)&&e===Io()},Vi=function(e){if(!yt(e)||!e.parentNode||!lr(Pd.body,e)||Sl(e,"display")==="none")return!1;var r=Qu(e);return!!(r&&r.height>0&&r.width>0)},Ou=function(e){return!yt(e)||e.disabled||Ia(e,"disabled")||Gh(e,"disabled")},TE=function(e){return yt(e)&&e.offsetHeight},si=function(e,r){return Zu((yt(r)?r:Pd).querySelectorAll(e))},ni=function(e,r){return(yt(r)?r:Pd).querySelector(e)||null},Ss=function(e,r){return yt(e)?xJ.call(e,r):!1},kn=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!yt(r))return null;var i=PJ.call(r,e);return n?i:i===r?null:i},lr=function(e,r){return e&&be(e.contains)?e.contains(r):!1},ES=function(e){return Pd.getElementById(/^#/.test(e)?e.slice(1):e)||null},cn=function(e,r){r&&yt(e)&&e.classList&&e.classList.add(r)},Yr=function(e,r){r&&yt(e)&&e.classList&&e.classList.remove(r)},Gh=function(e,r){return r&&yt(e)&&e.classList?e.classList.contains(r):!1},Mt=function(e,r,n){r&&yt(e)&&e.setAttribute(r,n)},Da=function(e,r){r&&yt(e)&&e.removeAttribute(r)},ii=function(e,r){return r&&yt(e)?e.getAttribute(r):null},Ia=function(e,r){return r&&yt(e)?e.hasAttribute(r):null},zr=function(e,r,n){r&&yt(e)&&(e.style[r]=n)},_b=function(e,r){r&&yt(e)&&(e.style[r]="")},Sl=function(e,r){return r&&yt(e)&&e.style[r]||null},Qu=function(e){return yt(e)?e.getBoundingClientRect():null},ei=function(e){var r=Yt.getComputedStyle;return r&&yt(e)?r(e):{}},MJ=function(){var e=Yt.getSelection;return e?Yt.getSelection():null},xS=function(e){var r={top:0,left:0};if(!yt(e)||e.getClientRects().length===0)return r;var n=Qu(e);if(n){var i=e.ownerDocument.defaultView;r.top=n.top+i.pageYOffset,r.left=n.left+i.pageXOffset}return r},$J=function(e){var r={top:0,left:0};if(!yt(e))return r;var n={top:0,left:0},i=ei(e);if(i.position==="fixed")r=Qu(e)||r;else{r=xS(e);for(var a=e.ownerDocument,s=e.offsetParent||a.documentElement;s&&(s===a.body||s===a.documentElement)&&ei(s).position==="static";)s=s.parentNode;if(s&&s!==e&&s.nodeType===Node.ELEMENT_NODE){n=xS(s);var o=ei(s);n.top+=Ne(o.borderTopWidth,0),n.left+=Ne(o.borderLeftWidth,0)}}return{top:r.top-n.top-Ne(i.marginTop,0),left:r.left-n.left-Ne(i.marginLeft,0)}},PS=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return si(EJ,e).filter(Vi).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 OE(e)},Bn=function(e){try{e.blur()}catch{}return!OE(e)},Op=function(e){var r=lo(null);return function(){for(var n=arguments.length,i=new Array(n),a=0;a1&&arguments[1]!==void 0?arguments[1]:void 0,n=kJ[dl];return n?n.getConfigValue(e,r):Oi(r)},ti=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?CS("".concat(e,".").concat(r),n):CS(e,{})},u4=function(){return CS("breakpoints",UK)},DJ=Op(function(){return u4()}),IJ=function(){return Oi(DJ())},Wh=Op(function(){var t=IJ();return t[0]="",t});function aM(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 Ru(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:Xl,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,Ru(Ru(Ru({},e?{type:e}:{}),a?{required:a}:Jt(r)?{}:{default:qt(r)?function(){return r}:r}),Jt(i)?{}:{validator:i})},Sb=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te;if(rt(e))return e.map(r);var n={};for(var i in e)qu(e,i)&&(n[r(i)]=qt(e[i])?zo(e[i]):e[i]);return n},Et=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te;return(rt(e)?e.slice():Pe(e)).reduce(function(i,a){return i[n(a)]=r[a],i},{})},d4=function(e,r,n){return Ru(Ru({},Oi(e)),{},{default:function(){var a=ti(n,r,e.default);return be(a)?a():a}})},ee=function(e,r){return Pe(e).reduce(function(n,i){return Ru(Ru({},n),{},c4({},i,d4(e[i],i,r)))},{})},RJ=d4({},"","").default.name,Fa=function(e){return be(e)&&e.name&&e.name!==RJ};function LJ(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.type,i=n===void 0?Xl: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?UF:c,d=LJ({},e,y(i,s,u)),f=V.extend({model:{prop:e,event:l},props:d});return{mixin:f,props:d,prop:e,event:l}},xs=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e=Ke(e).filter(Te),e.some(function(i){return r[i]||n[i]})},Br=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=Ke(e).filter(Te);for(var a,s=0;s0&&arguments[0]!==void 0?arguments[0]:br,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 xs(e,r,n)},normalizeSlot:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:br,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=Br(e,r,n,i);return a&&Ke(a)}}}),f4=function(e){return zK?qt(e)?e:{capture:!!e||!1}:!!(qt(e)?e.capture:e)},Ot=function(e,r,n,i){e&&e.addEventListener&&e.addEventListener(r,n,f4(i))},kt=function(e,r,n,i){e&&e.removeEventListener&&e.removeEventListener(r,n,f4(i))},Ui=function(e){for(var r=e?Ot:kt,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()},h4=function(e){return wE(e.replace(WK,""))},Ht=function(e,r){return[e4,h4(e),r].join(t4)},dr=function(e,r){return[e4,r,h4(e)].join(t4)};function NJ(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var BJ=ee({ariaLabel:y(I,"Close"),content:y(I,"×"),disabled:y(B,!1),textVariant:y(I)},iB),ec=V.extend({name:iB,functional:!0,props:BJ,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:NJ({},"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&&Yu(d)&&ke(d)}}};return xs(br,u,o)||(c.domProps={innerHTML:n.content}),e("button",ve(i,c),Br(br,{},u,o))}});function sM(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 Ol(t){for(var e=1;e0?e:0)},ew=function(e){return e===""||e===!0?!0:oe(e,0)<1?!1:!!e},UJ=ee(fe(uM(uM({},VJ),{},{dismissLabel:y(I,"Close"),dismissible:y(B,!1),fade:y(B,!1),variant:y(I,"info")})),qN),GJ=V.extend({name:qN,mixins:[zJ,Ce],props:UJ,data:function(){return{countDown:0,localShow:ew(this[ff])}},watch:(df={},Gf(df,ff,function(t){this.countDown=lM(t),this.localShow=ew(t)}),Gf(df,"countDown",function(e){var r=this;this.clearCountDownInterval();var n=this[ff];fh(n)&&(this.$emit(lX,e),n!==e&&this.$emit(cM,e),e>0?(this.localShow=!0,this.$_countDownTimeout=setTimeout(function(){r.countDown--},1e3)):this.$nextTick(function(){at(function(){r.localShow=!1})}))}),Gf(df,"localShow",function(e){var r=this[ff];!e&&(this.dismissible||fh(r))&&this.$emit(cX),!fh(r)&&r!==e&&this.$emit(cM,e)}),df),created:function(){this.$_filterTimer=null;var e=this[ff];this.countDown=lM(e),this.localShow=ew(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(ec,{attrs:{"aria-label":this.dismissLabel},on:{click:this.dismiss}},[this.normalizeSlot(FX)])),r=e("div",{staticClass:"alert",class:Gf({"alert-dismissible":n},"alert-".concat(i),i),attrs:{role:"alert","aria-live":"polite","aria-atomic":!0},key:this[ws]},[a,this.normalizeSlot()])}return e(fc,{props:{noFade:!this.fade}},[r])}}),WJ=pe({components:{BAlert:GJ}}),vs=Math.min,Ze=Math.max,m4=Math.abs,g4=Math.ceil,Yh=Math.floor,v4=Math.pow,AS=Math.round;function YJ(t,e){return JJ(t)||XJ(t,e)||qJ(t,e)||KJ()}function KJ(){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 qJ(t,e){if(t){if(typeof t=="string")return dM(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 dM(t,e)}}function dM(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"&&St(n)?"noopener":n||null},w4=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]:y4,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(_4(i))return null;if(Ge(n))return n||s;if(Zr(n)&&(n.path||n.query||n.hash)){var o=_e(n.path),u=tZ(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 iZ={viewBox:"0 0 16 16",width:"1em",height:"1em",focusable:"false",role:"img","aria-label":"icon"},aZ={width:null,height:null,focusable:null,role:null,"aria-label":null},EE={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)},sZ=V.extend({name:Uq,functional:!0,props:EE,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=Ze(Ne(a.fontScale,1),0)||1,b=Ze(Ne(a.scale,1),0)||1,_=Ne(a.rotate,0),S=Ne(a.shiftH,0),x=Ne(a.shiftV,0),O=c||l||b!==1,h=O||_,v=S||x,g=!it(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(Te),P=e("g",{attrs:{transform:T.join(" ")||null},domProps:g?{innerHTML:u||""}:{}},s);v&&(P=e("g",{attrs:{transform:"translate(".concat(16*S/16," ").concat(-16*x/16,")")}},[P])),d&&(P=e("g",[P]));var k=f?e("title",f):null,w=[k,P].filter(Te);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:iZ,style:d?{}:{fontSize:m===1?null:"".concat(m*100,"%")}},i,d?{attrs:aZ}:{},{attrs:{xmlns:d?null:"http://www.w3.org/2000/svg",fill:"currentColor"}}),w)}});function mM(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 gM(t){for(var e=1;e'),lZ=gr("CalendarFill",''),PNe=gr("Check",''),bM=gr("ChevronBarLeft",''),yM=gr("ChevronDoubleLeft",''),dZ=gr("ChevronDown",''),_M=gr("ChevronLeft",''),wM=gr("ChevronUp",''),MS=gr("CircleFill",''),fZ=gr("Clock",''),hZ=gr("ClockFill",''),pZ=gr("Dash",''),mZ=gr("PersonFill",''),gZ=gr("Plus",''),CNe=gr("Slash",''),ANe=gr("SlashCircle",''),vZ=gr("Star",''),bZ=gr("StarFill",''),yZ=gr("StarHalf",''),S4=gr("X",'');function SM(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 OM(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(XK,"")},Rt=function(e,r){return e?{innerHTML:e}:r?{textContent:r}:{}};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;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&&!lr(r,e.relatedTarget)&&(ke(e),this.focusFirst(e))},onKeydown:function(e){var r=e.keyCode,n=e.shiftKey;r===Dn||r===Gi?(ke(e),n?this.focusFirst(e):this.focusPrev(e)):(r===pn||r===Ps)&&(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()])}}),tQ=pe({components:{BButtonToolbar:zM,BBtnToolbar:zM}}),Js="gregory",mh="long",rQ="narrow",DS="short",VM="2-digit",Xv="numeric";function nQ(t,e){return oQ(t)||sQ(t,e)||aQ(t,e)||iQ()}function iQ(){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 aQ(t,e){if(t){if(typeof t=="string")return UM(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 UM(t,e)}}function UM(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 IS(t,e){return IS=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},IS(t,e)}var kr=function(){for(var e=arguments.length,r=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:Js;e=Ke(e).filter(Te);var n=new Intl.DateTimeFormat(e,{calendar:r});return n.resolvedOptions().locale},Wf=function(e,r){var n=new Intl.DateTimeFormat(e,r);return n.format},wm=function(e,r){return wt(e)===wt(r)},nw=function(e){return e=kr(e),e.setDate(1),e},iw=function(e){return e=kr(e),e.setMonth(e.getMonth()+1),e.setDate(0),e},xb=function(e,r){e=kr(e);var n=e.getMonth();return e.setFullYear(e.getFullYear()+r),e.getMonth()!==n&&e.setDate(0),e},aw=function(e){e=kr(e);var r=e.getMonth();return e.setMonth(r-1),e.getMonth()===r&&e.setDate(0),e},sw=function(e){e=kr(e);var r=e.getMonth();return e.setMonth(r+1),e.getMonth()===(r+2)%12&&e.setDate(0),e},ow=function(e){return xb(e,-1)},uw=function(e){return xb(e,1)},cw=function(e){return xb(e,-10)},lw=function(e){return xb(e,10)},Jv=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=ur(e),r=ur(r)||e,n=ur(n)||e,e?en?n:e:null},GM=["ar","az","ckb","fa","he","ks","lrc","mzn","ps","sd","te","ug","ur","yi"].map(function(t){return t.toLowerCase()}),Pb=function(e){var r=_e(e).toLowerCase().replace(vq,"").split("-"),n=r.slice(0,2).join("-"),i=r[0];return Ee(GM,n)||Ee(GM,i)},ct={id:y(I)},ht=V.extend({props:ct,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[ws])})}}),jc;function WM(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;er}},dateDisabled:function(){var e=this,r=this.dateOutOfRange;return function(n){n=ur(n);var i=wt(n);return!!(r(n)||e.computedDateDisabledFn(i,n))}},formatDateString:function(){return Wf(this.calendarLocale,wa(wa({year:Xv,month:VM,day:VM},this.dateFormatOptions),{},{hour:void 0,minute:void 0,second:void 0,calendar:Js}))},formatYearMonth:function(){return Wf(this.calendarLocale,{year:Xv,month:mh,calendar:Js})},formatWeekdayName:function(){return Wf(this.calendarLocale,{weekday:mh,calendar:Js})},formatWeekdayNameShort:function(){return Wf(this.calendarLocale,{weekday:this.weekdayHeaderFormat||DS,calendar:Js})},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&&iw(cw(this.activeDate))e},nextYearDisabled:function(){var e=this.computedMax;return this.disabled||e&&nw(uw(this.activeDate))>e},nextDecadeDisabled:function(){var e=this.computedMax;return this.disabled||e&&nw(lw(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}(),K4=function(e){var r=e[Jl];r&&r.stop&&r.stop(),delete e[Jl]},q4=function(e,r,n){var i=r.value,a=r.modifiers,s={margin:"0px",once:!1,callback:i};Pe(a).forEach(function(o){HN.test(o)?s.margin="".concat(o,"px"):o.toLowerCase()==="once"&&(s.once=!0)}),K4(e),e[Jl]=new wQ(e,s,n),e[Jl]._prevModifiers=zo(a)},SQ=function(e,r,n){var i=r.value,a=r.oldValue,s=r.modifiers;s=zo(s),e&&(i!==a||!e[Jl]||!Je(s,e[Jl]._prevModifiers))&&q4(e,{value:i,modifiers:s},n)},OQ=function(e){K4(e)},RE={bind:q4,componentUpdated:SQ,unbind:OQ},Om;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 Zv(t){for(var e=1;e0||u.removedNodes.length>0))&&(s=!0)}s&&r()});return i.observe(e,DQ({childList:!0,subtree:!0},n)),i},zc;function s$(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 hw(t){for(var e=1;e0),touchStartX:0,touchDeltaX:0}},computed:{numSlides:function(){return this.slides.length}},watch:(zc={},Kf(zc,pw,function(t,e){t!==e&&this.setSlide(oe(t,0))}),Kf(zc,"interval",function(e,r){e!==r&&(e?(this.pause(!0),this.start(!1)):this.pause(!1))}),Kf(zc,"isPaused",function(e,r){e!==r&&this.$emit(e?pX:xX)}),Kf(zc,"index",function(e,r){e===r||this.isSliding||this.doSlide(e,r)}),zc),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=jQ(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=qh(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(!(ft&&document.visibilityState&&document.hidden)){var i=this.noWrap,a=this.numSlides;if(e=Yh(e),a!==0){if(this.isSliding){this.$once(J_,function(){at(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[pw]&&this.$emit(o$,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,Ze(1e3,this.interval)))},restart:function(){this.$el.contains(Io())||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(OX,e),this.$emit(o$,this.index),this.noAnimation)cn(c,"active"),Yr(u,"active"),this.isSliding=!1,this.$nextTick(function(){return n.$emit(J_,e)});else{cn(c,s),TE(c),cn(u,o),cn(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 kt(c,b,p,Ve)})}n.clearAnimationTimeout(),Yr(c,o),Yr(c,s),cn(c,"active"),Yr(u,"active"),Yr(u,o),Yr(u,s),Mt(u,"aria-current","false"),Mt(c,"aria-current","true"),Mt(u,"aria-hidden","true"),Mt(c,"aria-hidden","false"),n.isSliding=!1,n.direction=null,n.$nextTick(function(){return n.$emit(J_,e)})}};if(this.transitionEndEvent){var f=this.transitionEndEvent.split(/\s+/);f.forEach(function(p){return Ot(c,p,d,Ve)})}this.$_animationTimeout=setTimeout(d,NQ)}i&&this.start(!1)}},updateSlides:function(){this.pause(!0),this.slides=si(".carousel-item",this.$refs.inner);var e=this.slides.length,r=Ze(0,vs(Yh(this.index),e-1));this.slides.forEach(function(n,i){var a=i+1;i===r?(cn(n,"active"),Mt(n,"aria-current","true")):(Yr(n,"active"),Mt(n,"aria-current","false")),Mt(n,"aria-posinset",String(a)),Mt(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?mw[e]:n>r?mw.next:mw.prev},handleClick:function(e,r){var n=e.keyCode;(e.type==="click"||n===Va||n===ks)&&(ke(e),r())},handleSwipe:function(){var e=m4(this.touchDeltaX);if(!(e<=FQ)){var r=e/this.touchDeltaX;this.touchDeltaX=0,r>0?this.prev():r<0&&this.next()}},touchStart:function(e){uf&&u$[e.pointerType.toUpperCase()]?this.touchStartX=e.clientX:uf||(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){uf&&u$[e.pointerType.toUpperCase()]&&(this.touchDeltaX=e.clientX-this.touchStartX),this.handleSwipe(),this.pause(!1),this.clearTouchTimeout(),this.$_touchTimeout=setTimeout(this.start,BQ+Ze(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 P=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:P,keydown:P}},[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 x=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(P){r.handleClick(P,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?Kh:l,mouseleave:s?Kh:d,focusin:l,focusout:d,keydown:function(v){if(!/input|textarea/i.test(v.target.tagName)){var g=v.keyCode;(g===Gi||g===Ps)&&(ke(v),r[g===Gi?"prev":"next"]())}}};return Bv&&!o&&(uf?(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":Bv&&uf&&!o},style:{background:i},attrs:{role:"region",id:this.safeId(),"aria-busy":c?"true":"false"},on:O},[b,_,x])}});function l$(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 vh(t){for(var e=1;e0?(Mt(e,BS,i.join(" ")),zr(e,HS,"none")):(Da(e,BS),_b(e,HS)),at(function(){gee(e,n)}),Je(i,e[Zl])||(e[Zl]=i,i.forEach(function(a){n.context.$root.$emit(hee,a)}))}},sj={bind:function(e,r,n){e[e0]=!1,e[Zl]=[],vee(e,n),bw(e,r,n)},componentUpdated:bw,updated:bw,unbind:function(e,r,n){nj(e),ij(e,n),xm(e,bh),xm(e,Qv),xm(e,e0),xm(e,Zl),Yr(e,LS),Yr(e,NS),Da(e,FS),Da(e,BS),Da(e,jS),_b(e,HS)}},LE=pe({directives:{VBToggle:sj}}),oj=pe({components:{BCollapse:cee},plugins:{VBTogglePlugin:LE}});/**! * @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 Pp=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",bee=function(){for(var t=["Edge","Trident","Firefox"],e=0;e=0)return 1;return 0}();function yee(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}function _ee(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},bee))}}var wee=Pp&&window.Promise,See=wee?yee:_ee;function uj(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function hc(t,e){if(t.nodeType!==1)return[];var r=t.ownerDocument.defaultView,n=r.getComputedStyle(t,null);return e?n[e]:n}function NE(t){return t.nodeName==="HTML"?t:t.parentNode||t.host}function Cp(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=hc(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?t:Cp(NE(t))}function cj(t){return t&&t.referenceNode?t.referenceNode:t}var p$=Pp&&!!(window.MSInputMethodContext&&document.documentMode),m$=Pp&&/MSIE 10/.test(navigator.userAgent);function Cd(t){return t===11?p$:t===10?m$:p$||m$}function Ql(t){if(!t)return document.documentElement;for(var e=Cd(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&&hc(r,"position")==="static"?Ql(r):r}function Oee(t){var e=t.nodeName;return e==="BODY"?!1:e==="HTML"||Ql(t.firstElementChild)===t}function zS(t){return t.parentNode!==null?zS(t.parentNode):t}function t0(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 Oee(s)?s:Ql(s);var o=zS(t);return o.host?t0(o.host,e):t0(t,zS(e).host)}function ed(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 Tee(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=ed(e,"top"),i=ed(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 g$(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 v$(t,e,r,n){return Math.max(e["offset"+t],e["scroll"+t],r["client"+t],r["offset"+t],r["scroll"+t],Cd(10)?parseInt(r["offset"+t])+parseInt(n["margin"+(t==="Height"?"Top":"Left")])+parseInt(n["margin"+(t==="Height"?"Bottom":"Right")]):0)}function lj(t){var e=t.body,r=t.documentElement,n=Cd(10)&&getComputedStyle(r);return{height:v$("Height",e,r,n),width:v$("Width",e,r,n)}}var Eee=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},xee=function(){function t(e,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=Cd(10),i=e.nodeName==="HTML",a=VS(t),s=VS(e),o=Cp(t),u=hc(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=No({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=Tee(d,e)),d}function Pee(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=t.ownerDocument.documentElement,n=BE(t,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),s=e?0:ed(r),o=e?0:ed(r,"left"),u={top:s-n.top+n.marginTop,left:o-n.left+n.marginLeft,width:i,height:a};return No(u)}function dj(t){var e=t.nodeName;if(e==="BODY"||e==="HTML")return!1;if(hc(t,"position")==="fixed")return!0;var r=NE(t);return r?dj(r):!1}function fj(t){if(!t||!t.parentElement||Cd())return document.documentElement;for(var e=t.parentElement;e&&hc(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function FE(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},s=i?fj(t):t0(t,cj(e));if(n==="viewport")a=Pee(s,i);else{var o=void 0;n==="scrollParent"?(o=Cp(NE(e)),o.nodeName==="BODY"&&(o=t.ownerDocument.documentElement)):n==="window"?o=t.ownerDocument.documentElement:o=n;var u=BE(o,s,i);if(o.nodeName==="HTML"&&!dj(s)){var c=lj(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 Cee(t){var e=t.width,r=t.height;return e*r}function hj(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=FE(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 Ti({key:f},o[f],{area:Cee(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 pj(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?fj(e):t0(e,cj(r));return BE(r,i,n)}function mj(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 r0(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 gj(t,e,r){r=r.split("-")[0];var n=mj(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[r0(o)],i}function Ap(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Aee(t,e,r){if(Array.prototype.findIndex)return t.findIndex(function(i){return i[e]===r});var n=Ap(t,function(i){return i[e]===r});return t.indexOf(n)}function vj(t,e,r){var n=r===void 0?t:t.slice(0,Aee(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&&uj(a)&&(e.offsets.popper=No(e.offsets.popper),e.offsets.reference=No(e.offsets.reference),e=a(e,i))}),e}function Mee(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=pj(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=hj(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=gj(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=vj(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function bj(t,e){return t.some(function(r){var n=r.name,i=r.enabled;return i&&n===e})}function jE(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=No(t.offsets.popper);var b=o[d]+o[c]/2-m/2,_=hc(t.instance.popper),S=parseFloat(_["margin"+l]),x=parseFloat(_["border"+l+"Width"]),O=b-t.offsets.popper[d]-S-x;return O=Math.max(Math.min(s[c]-m,O),0),t.arrowElement=n,t.offsets.arrow=(r={},td(r,d,Math.round(O)),td(r,f,""),r),t}function Vee(t){return t==="end"?"start":t==="start"?"end":t}var Sj=["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"],yw=Sj.slice(3);function b$(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=yw.indexOf(t),n=yw.slice(r+1).concat(yw.slice(0,r));return e?n.reverse():n}var _w={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Uee(t,e){if(bj(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var r=FE(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),n=t.placement.split("-")[0],i=r0(n),a=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case _w.FLIP:s=[n,i];break;case _w.CLOCKWISE:s=b$(n);break;case _w.COUNTERCLOCKWISE:s=b$(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=r0(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"&&_,x=["top","bottom"].indexOf(n)!==-1,O=!!e.flipVariations&&(x&&a==="start"&&p||x&&a==="end"&&m||!x&&a==="start"&&b||!x&&a==="end"&&_),h=!!e.flipVariationsByContent&&(x&&a==="start"&&m||x&&a==="end"&&p||!x&&a==="start"&&_||!x&&a==="end"&&b),v=O||h;(f||S||v)&&(t.flipped=!0,(f||S)&&(n=s[u+1]),v&&(a=Vee(a)),t.placement=n+(a?"-"+a:""),t.offsets.popper=Ti({},t.offsets.popper,gj(t.instance.popper,t.offsets.reference,t.placement)),t=vj(t.instance.modifiers,t,"flip"))}),t}function Gee(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 Wee(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=No(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 Yee(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(Ap(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 Wee(m,f,e,r)})}),c.forEach(function(l,d){l.forEach(function(f,p){HE(f)&&(i[d]+=f*(l[p-1]==="-"?-1:1))})}),i}function Kee(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 HE(+r)?u=[+r,0]:u=Yee(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 qee(t,e){var r=e.boundariesElement||Ql(t.instance.popper);t.instance.reference===r&&(r=Ql(r));var n=jE("transform"),i=t.instance.popper.style,a=i.top,s=i.left,o=i[n];i.top="",i.left="",i[n]="";var u=FE(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))),td({},m,b)}};return c.forEach(function(f){var p=["left","top"].indexOf(f)!==-1?"primary":"secondary";l=Ti({},l,d[p](f))}),t.offsets.popper=l,t}function Xee(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:td({},u,a[u]),end:td({},u,a[u]+a[c]-s[c])};t.offsets.popper=Ti({},s,l[n])}return t}function Jee(t){if(!wj(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,r=Ap(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]:{};Eee(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=See(this.update.bind(this)),this.options=Ti({},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(Ti({},t.Defaults.modifiers,i.modifiers)).forEach(function(s){n.options.modifiers[s]=Ti({},t.Defaults.modifiers[s]||{},i.modifiers?i.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return Ti({name:s},n.options.modifiers[s])}).sort(function(s,o){return s.order-o.order}),this.modifiers.forEach(function(s){s.enabled&&uj(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 xee(t,[{key:"update",value:function(){return Mee.call(this)}},{key:"destroy",value:function(){return $ee.call(this)}},{key:"enableEventListeners",value:function(){return Dee.call(this)}},{key:"disableEventListeners",value:function(){return Ree.call(this)}}]),t}();Db.Utils=(typeof window<"u"?window:global).PopperUtils;Db.placements=Sj;Db.Defaults=ete;const GS=Db;var tte="top-start",rte="top-end",nte="bottom-start",ite="bottom-end",ate="right-start",ste="left-start";function ote(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y$(t,e){for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:{};if(ote(this,t),!e)throw new TypeError("Failed to construct '".concat(this.constructor.name,"'. 1 argument required, ").concat(arguments.length," given."));wp(this,t.Defaults,this.constructor.Defaults,r,{type:e}),bb(this,{type:_i(),cancelable:_i(),nativeEvent:_i(),target:_i(),relatedTarget:_i(),vueTarget:_i(),componentId:_i()});var n=!1;this.preventDefault=function(){this.cancelable&&(n=!0)},mE(this,"defaultPrevented",{enumerable:!0,get:function(){return n}})}return ute(t,null,[{key:"Defaults",get:function(){return{type:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}]),t}(),cte=V.extend({data:function(){return{listenForClickOut:!1}},watch:{listenForClickOut:function(e,r){e!==r&&(kt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ve),e&&Ot(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ve))}},beforeCreate:function(){this.clickOutElement=null,this.clickOutEventName=null},mounted:function(){this.clickOutElement||(this.clickOutElement=document),this.clickOutEventName||(this.clickOutEventName="click"),this.listenForClickOut&&Ot(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ve)},beforeDestroy:function(){kt(this.clickOutElement,this.clickOutEventName,this._clickOutHandler,Ve)},methods:{isClickOut:function(e){return!lr(this.$el,e.target)},_clickOutHandler:function(e){this.clickOutHandler&&this.isClickOut(e)&&this.clickOutHandler(e)}}}),lte=V.extend({data:function(){return{listenForFocusIn:!1}},watch:{listenForFocusIn:function(e,r){e!==r&&(kt(this.focusInElement,"focusin",this._focusInHandler,Ve),e&&Ot(this.focusInElement,"focusin",this._focusInHandler,Ve))}},beforeCreate:function(){this.focusInElement=null},mounted:function(){this.focusInElement||(this.focusInElement=document),this.listenForFocusIn&&Ot(this.focusInElement,"focusin",this._focusInHandler,Ve)},beforeDestroy:function(){kt(this.focusInElement,"focusin",this._focusInHandler,Ve)},methods:{_focusInHandler:function(e){this.focusInHandler&&this.focusInHandler(e)}}});function _$(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 w$(t){for(var e=1;e"u")Tr("Popper.js not found. Falling back to CSS positioning",Xu);else{var r=this.dropup&&this.right||this.split?this.$el:this.$refs.toggle;r=r.$el||r,this.createPopper(r)}this.emitOnRoot(S$,this),this.whileOpenListen(!0),this.$nextTick(function(){e.focusMenu(),e.$emit(fn)})}},hideMenu:function(){this.whileOpenListen(!1),this.emitOnRoot(fte,this),this.$emit(Xt),this.destroyPopper()},createPopper:function(e){this.destroyPopper(),this.$_popper=new GS(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=nte;this.dropup?e=this.right?rte:tte:this.dropright?e=ate:this.dropleft?e=ste:this.right&&(e=ite);var r={placement:e,modifiers:{offset:{offset:this.offset||0},flip:{enabled:!this.noFlip}}},n=this.boundary;return n&&(r.modifiers.preventOverflow={boundariesElement:n}),Eq(r,this.popperOpts||{})},whileOpenListen:function(e){this.listenForClickOut=e,this.listenForFocusIn=e;var r=e?"$on":"$off";this.$root[r](S$,this.rootCloseListener)},rootCloseListener:function(e){e!==this&&(this.visible=!1)},show:function(){var e=this;this.disabled||at(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(Xt,this.focusToggler))},toggle:function(e){e=e||{};var r=e,n=r.type,i=r.keyCode;if(!(n!=="click"&&!(n==="keydown"&&[ks,Va,pn].indexOf(i)!==-1))){if(this.disabled){this.visible=!1;return}this.$emit(ZF,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===xE?this.onEsc(e):r===pn?this.focusNext(e,!1):r===Dn&&this.focusNext(e,!0)},onEsc:function(e){this.visible&&(this.visible=!1,ke(e),this.$once(Xt,this.focusToggler))},onSplitClick:function(e){if(this.disabled){this.visible=!1;return}this.$emit(Pi,e)},hideHandler:function(e){var r=this,n=e.target;this.visible&&!lr(this.$refs.menu,n)&&!lr(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&&kn(hte,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(Zr(e)){var n=Vr(e,this.valueField),i=Vr(e,this.textField);return{value:Jt(n)?r||i:n,text:IM(String(Jt(i)?r:i)),html:Vr(e,this.htmlField),disabled:!!Vr(e,this.disabledField)}}return{value:r||e,text:IM(String(e)),disabled:!1}},normalizeOptions:function(e){var r=this;return rt(e)?e.map(function(n){return r.normalizeOption(n)}):Zr(e)?(Tr(kte,this.$options.name),Pe(e).map(function(n){return r.normalizeOption(e[n]||{},n)})):[]}}});function H$(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 z$(t){for(var e=1;e-1:Je(r,e)},isRadio:function(){return!1}},watch:El({},u0,function(t,e){Je(t,e)||this.setIndeterminate(t)}),mounted:function(){this.setIndeterminate(this[u0])},methods:{computedLocalCheckedWatcher:function(e,r){if(!Je(e,r)){this.$emit(WE,e);var n=this.$refs.input;n&&this.$emit(ww,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(rt(u)){var c=U$(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(Rn,u),r.isGroup&&r.bvGroup.$emit(Rn,u),r.$emit(ww,a)})},setIndeterminate:function(e){rt(this.computedLocalChecked)&&(e=!1);var r=this.$refs.input;r&&(r.indeterminate=e,this.$emit(ww,e))}}}),Ute=ee(YE,NB),YS=V.extend({name:NB,mixins:[Aj],inject:{bvGroup:{from:"bvRadioGroup",default:!1}},props:Ute,watch:{computedLocalChecked:function(e,r){Je(e,r)||this.$emit(WE,e)}}}),Am;function q$(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 ba(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(H4,{staticClass:"b-form-date-calendar w-100",props:ds(ds({},Et(Ij,s)),{},{hidden:!this.isVisible,value:r,valueAsDate:!1,width:this.calendarWidth}),on:{selected:this.onSelected,input:this.onInput,context:this.onContext},scopedSlots:qi(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(Dj,{staticClass:"b-form-datepicker",props:ds(ds({},Et(Rj,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:qf({},Es,o[Es]||this.defaultButtonFn),ref:"control"},[p])}}),rre=pe({components:{BFormDatepicker:nk,BDatepicker:nk}}),km;function ik(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 is(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!0;return Promise.all(Zu(e).filter(function(n){return n.kind==="file"}).map(function(n){var i=Lj(n);if(i){if(i.isDirectory&&r)return lre(i.createReader(),"".concat(i.name,"/"));if(i.isFile)return new Promise(function(a){i.file(function(s){s.$path="",a(s)})})}return null}).filter(Te))},lre=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 SJ(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(Te))),s())})};a()})},dre=ee(fe(is(is(is(is(is(is(is({},ct),ire),Zi),$p),ea),Qi),{},{accept:y(I,""),browseText:y(I,"Browse"),capture:y(B,!1),directory:y(B,!1),dropPlaceholder:y(I,"Drop files here"),fileNameFormatter:y(mn),multiple:y(B,!1),noDrop:y(B,!1),noDropPlaceholder:y(I,"Not allowed"),noTraverse:y(B,!1),placeholder:y(I,"No file chosen")})),vE),ak=V.extend({name:vE,mixins:[Er,ht,nre,Ce,mc,Ua,Lb,Ce],inheritAttrs:!1,props:dre,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(Te),e.length===0?null:e.map(function(r){var n="name",i="^",a="$";YK.test(r)?i="":(n="type",rq.test(r)&&(a=".+$",r=r.slice(0,-1))),r=SE(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 is(is({},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 Fa(e)?e:this.defaultFileNameFormatter},clonedFiles:function(){return Oi(this.files)},flattenedFiles:function(){return lf(this.files)},fileNames:function(){return this.flattenedFiles.map(function(e){return e.name})},labelContent:function(){if(this.dragging&&!this.noDrop)return this.normalizeSlot(jX,{allowed:this.dropAllowed})||(this.dropAllowed?this.dropPlaceholder:this.$createElement("span",{staticClass:"text-danger"},this.noDropPlaceholder));if(this.files.length===0)return this.normalizeSlot(pJ)||this.placeholder;var e=this.flattenedFiles,r=this.clonedFiles,n=this.fileNames,i=this.computedFileNameFormatter;return this.hasNormalizedSlot(JA)?this.normalizeSlot(JA,{files:e,filesTraversed:r,names:n}):i(e,r,n)}},watch:(km={},Vg(km,are,function(t){(!t||rt(t)&&t.length===0)&&this.reset()}),Vg(km,"files",function(e,r){if(!Je(e,r)){var n=this.multiple,i=this.noTraverse,a=!n||i?lf(e):e;this.$emit(sre,n?a:a[0]||null)}}),km),created:function(){this.$_form=null},mounted:function(){var e=kn("form",this.$el);e&&(Ot(e,"reset",this.reset,Cn),this.$_form=e)},beforeDestroy:function(){var e=this.$_form;e&&kt(e,"reset",this.reset,Cn)},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 rt(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:lf(e):lf(e).slice(0,1)},setInputFiles:function(e){try{var r=new ClipboardEvent("").clipboardData||new DataTransfer;lf(Oi(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(Rn,e);var u=Zu(s.items||[]);if(FN&&u.length>0&&!St(Lj(u[0])))cre(u,this.directory).then(function(l){return r.handleFiles(l,o)});else{var c=Zu(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:[Vg({},"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])}}),fre=pe({components:{BFormFile:ak,BFile:ak}}),Tw=function(e){return"\\"+e},Nj=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+Tw("".concat(o.toString(16)," ")):s===0&&o===45&&r===1?i+Tw(a):o>=128||o===45||o===95||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?i+a:i+Tw(a)},"")};function sk(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 Dm(t){for(var e=1;e0||Pe(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 Wh().reduce(function(n,i){var a=e[wo(i,"".concat(r,"Align"))]||null;return a&&n.push(["text",i,a].filter(Te).join("-")),n},[])},getColProps:function(e,r){return Wh().reduce(function(n,i){var a=e[wo(i,"".concat(r,"Cols"))];return a=a===""?!0:a||!1,!Si(a)&&a!=="auto"&&(a=oe(a,0),a=a>0?a:!1),a&&(n[i||(Si(a)?"col":"cols")]=a),n},{})},updateAriaDescribedby:function(e,r){var n=this.labelFor;if(ft&&n){var i=ni("#".concat(Nj(n)),this.$refs.content);if(i){var a="aria-describedby",s=(e||"").split($g),o=(r||"").split($g),u=(ii(i,a)||"").split($g).filter(function(c){return!Ee(o,c)}).concat(s).filter(function(c,l,d){return d.indexOf(c)===l}).filter(Te).join(" ").trim();u?Mt(i,a,u):Da(i,a)}}},onLegendClick:function(e){if(!this.labelFor){var r=e.target,n=r?r.tagName:"";if(yre.indexOf(n)===-1){var i=si(bre,this.$refs.content).filter(Vi);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(a4)||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?Ug:"div",{props:i?b:{}},[d])):d=e(i?Ug:_,{on:l?{click:this.onLegendClick}:{},props:i?xl(xl({},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(),x=s(JX)||this.invalidFeedback,O=x?o("_BV_feedback_invalid_"):null;x&&(S=e(s0,{props:{ariaLive:n,id:O,state:r,tooltip:u},attrs:{tabindex:x?"-1":null}},[x]));var h=e(),v=s(wJ)||this.validFeedback,g=v?o("_BV_feedback_valid_"):null;v&&(h=e(Cj,{props:{ariaLive:n,id:g,state:r,tooltip:u},attrs:{tabindex:v?"-1":null}},[v]));var T=e(),P=s(BX)||this.description,k=P?o("_BV_description_"):null;P&&(T=e(a0,{attrs:{id:k,tabindex:"-1"}},[P]));var w=this.ariaDescribedby=[k,r===!1?O:null,r===!0?g:null].filter(Te).join(" ")||null,A=e(i?Ug:"div",{props:i?this.contentColProps:{},ref:"content"},[s(br,{ariaDescribedby:w,descriptionId:k,id:c,labelId:p})||e(),S,h,T]);return e(l?"fieldset":i?o0:"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(o0,[d,A])]:[d,A])}},wre=pe({components:{BFormGroup:uk,BFormFieldset:uk}}),Fj=V.extend({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 ck(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 lk(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=Ne(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(Tre,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(UF,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(Rn,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(HF,e)},focus:function(){this.disabled||Ie(this.$el)},blur:function(){this.disabled||Bn(this.$el)}}}),zj=V.extend({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 fk(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 Qs(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)])])}}),Ire=ee(fe(gf(gf(gf(gf(gf({},ct),$re),Re(Zi,["required","autofocus"])),Qi),{},{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(Qr),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,Gj,function(t){return oe(t)>=Uj}),variant:y(I)})),FB),bk=V.extend({name:FB,components:{BIconStar:vZ,BIconStarHalf:yZ,BIconStarFill:bZ,BIconX:S4},mixins:[ht,Mre,Is],props:Ire,data:function(){var e=Ne(this[gk],null),r=vk(this.stars);return{localValue:St(e)?null:ru(e,0,r),hasFocus:!1}},computed:{computedStars:function(){return vk(this.stars)},computedRating:function(){var e=Ne(this.localValue,0),r=oe(this.precision,3);return ru(Ne(e.toFixed(r)),0,this.computedStars)},computedLocale:function(){var e=Ke(this.locale).filter(Te),r=new Intl.NumberFormat(e);return r.resolvedOptions().locale},isInteractive:function(){return!this.disabled&&!this.readonly},isRTL:function(){return Pb(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=St(s)?r?"-":"":s.toLocaleString(n,i),r?"".concat(s,"/").concat(a):s}},watch:(mf={},Gg(mf,gk,function(t,e){if(t!==e){var r=Ne(t,null);this.localValue=St(r)?null:ru(r,0,this.computedStars)}}),Gg(mf,"localValue",function(e,r){e!==r&&e!==(this.value||0)&&this.$emit(kre,e||null)}),Gg(mf,"disabled",function(e){e&&(this.hasFocus=!1,this.blur())}),mf),methods:{focus:function(){this.disabled||Ie(this.$el)},blur:function(){this.disabled||Bn(this.$el)},onKeydown:function(e){var r=e.keyCode;if(this.isInteractive&&Ee([Gi,pn,Ps,Dn],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===Gi?this.localValue=ru(n-s,i,a)||null:r===Ps?this.localValue=ru(n+s,i,a):r===pn?this.localValue=ru(n-1,i,a)||null:r===Dn&&(this.localValue=ru(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(Wv,{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(Wv,{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,x=this.$scopedSlots,O=[];if(b&&!n&&!i){var h=e("span",{staticClass:"b-rating-icon"},[(x[GX]||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(Zr(e)){var n=Vr(e,this.valueField),i=Vr(e,this.textField),a=Vr(e,this.optionsField,null);return St(a)?{value:Jt(n)?r||i:n,text:String(Jt(i)?r:i),html:Vr(e,this.htmlField),disabled:!!Vr(e,this.disabledField)}:{label:String(Vr(e,this.labelField)||i),options:this.normalizeOptions(a)}}return{value:r||e,text:String(e),disabled:!1}}}}),Vre=ee({disabled:y(B,!1),value:y(Xl,void 0,!0)},zB),c0=V.extend({name:zB,functional:!0,props:Vre,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 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 Sk(t){for(var e=1;e0?e:qj},computedInterval:function(){var e=oe(this.repeatInterval,0);return e>0?e:Xj},computedThreshold:function(){return Ze(oe(this.repeatThreshold,Jj),1)},computedStepMultiplier:function(){return Ze(oe(this.repeatStepMultiplier,Zj),1)},computedPrecision:function(){var e=this.computedStep;return Yh(e)===e?0:(e.toString().split(".")[1]||"").length},computedMultiplier:function(){return v4(10,this.computedPrecision||0)},valueAsFixed:function(){var e=this.localValue;return St(e)?"":e.toFixed(this.computedPrecision)},computedLocale:function(){var e=Ke(this.locale).filter(Te),r=new Intl.NumberFormat(e);return r.resolvedOptions().locale},computedRTL:function(){return Pb(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 Fa(e)?e:this.defaultFormatter},computedAttrs:function(){return Oa(Oa({},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=!St(r);return Oa(Oa({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:(Gc={},Jf(Gc,xk,function(t){this.localValue=Ne(t,null)}),Jf(Gc,"localValue",function(e){this.$emit(Jre,e)}),Jf(Gc,"disabled",function(e){e&&this.clearRepeat()}),Jf(Gc,"readonly",function(e){e&&this.clearRepeat()}),Gc),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||Bn(this.$refs.spinner)},emitChange:function(){this.$emit(Rn,this.localValue)},stepValue:function(e){var r=this.localValue;if(!this.disabled&&!St(r)){var n=this.computedStep*e,i=this.computedMin,a=this.computedMax,s=this.computedMultiplier,o=this.wrap;r=AS((r-i)/n)*n+i+n,r=AS(r*s)/s,this.localValue=r>a?o?i:a:r0&&arguments[0]!==void 0?arguments[0]:1,r=this.localValue;St(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;St(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(Pk,r)){if(ke(e,{propagation:!1}),this.$_keyIsDown)return;this.resetTimers(),Ee([Dn,pn],r)?(this.$_keyIsDown=!0,r===Dn?this.handleStepRepeat(e,this.stepUp):r===pn&&this.handleStepRepeat(e,this.stepDown)):r===Kv?this.stepUp(this.computedStepMultiplier):r===Yv?this.stepDown(this.computedStepMultiplier):r===Lo?this.localValue=this.computedMin:r===Ro&&(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(Pk,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})},Dk=function(e){return Ge(e)?e:Yu(e)&&e.target.value||""},xw=function(){return{all:[],valid:[],invalid:[],duplicate:[]}},lne=ee(fe(Kn(Kn(Kn(Kn(Kn(Kn({},ct),sne),Zi),Qi),ea),{},{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(Qr,une),inputAttrs:y(pr,{}),inputClass:y(we),inputId:y(I),inputType:y(I,"text",function(t){return Ee(e6,t)}),invalidTagText:y(I,"Invalid tag(s)"),limit:y(Xr),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(Qr),tagClass:y(we),tagPills:y(B,!1),tagRemoveLabel:y(I,"Remove tag"),tagRemovedLabel:y(I,"Tag removed"),tagValidator:y(mn),tagVariant:y(I,"secondary")})),WB),Ik=V.extend({name:WB,mixins:[Ds,ht,ane,mc,Is,Ua,Ce],props:lne,data:function(){return{hasFocus:!1,newTag:"",tags:[],removedTags:[],tagsState:xw(),focusState:null}},computed:{computedInputId:function(){return this.inputId||this.safeId("__input__")},computedInputType:function(){return Ee(e6,this.inputType)?this.inputType:"text"},computedInputAttrs:function(){var e=this.disabled,r=this.form;return Kn(Kn({},this.inputAttrs),{},{id:this.computedInputId,value:this.newTag,disabled:e,form:r})},computedInputHandlers:function(){return Kn(Kn({},Re(this.bvListeners,[zv,Vv])),{},{blur:this.onInputBlur,change:this.onInputChange,focus:this.onInputFocus,input:this.onInputInput,keydown:this.onInputKeydown,reset:this.reset})},computedSeparator:function(){return Ke(this.separator).filter(Ge).filter(Te).join("")},computedSeparatorRegExp:function(){var e=this.computedSeparator;return e?new RegExp("[".concat(cne(e),"]+")):null},computedJoiner:function(){var e=this.computedSeparator.charAt(0);return e!==" "?"".concat(e," "):e},computeIgnoreInputFocusSelector:function(){return Ke(this.ignoreInputFocusSelector).filter(Te).join(",").trim()},disableAddButton:function(){var e=this,r=_o(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 ji(e)&&e>=0&&this.tags.length>=e}},watch:(vf={},Wg(vf,Ew,function(t){this.tags=kk(t)}),Wg(vf,"tags",function(e,r){Je(e,this[Ew])||this.$emit(one,e),Je(e,r)||(e=Ke(e).filter(Te),r=Ke(r).filter(Te),this.removedTags=r.filter(function(n){return!Ee(e,n)}))}),Wg(vf,"tagsState",function(e,r){Je(e,r)||this.$emit(EX,e.valid,e.invalid,e.duplicate)}),vf),created:function(){this.tags=kk(this[Ew])},mounted:function(){var e=kn("form",this.$el);e&&Ot(e,"reset",this.reset,Cn)},beforeDestroy:function(){var e=kn("form",this.$el);e&&kt(e,"reset",this.reset,Cn)},methods:{addTag:function(e){if(e=Ge(e)?e:this.newTag,!(this.disabled||_o(e)===""||this.isLimitReached)){var r=this.parseTags(e);if(r.valid.length>0||r.all.length===0)if(Ss(this.getInput(),"select"))this.newTag="";else{var n=[].concat(Mk(r.invalid),Mk(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=Ke(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=xw()})},onInputInput:function(e){if(!(this.disabled||Yu(e)&&e.target.composing)){var r=Dk(e),n=this.computedSeparatorRegExp;this.newTag!==r&&(this.newTag=r),r=TJ(r),n&&n.test(r.slice(-1))?this.addTag():this.tagsState=r===""?xw():this.parseTags(r)}},onInputChange:function(e){if(!this.disabled&&this.addOnChange){var r=Dk(e);this.newTag!==r&&(this.newTag=r),this.addTag()}},onInputKeydown:function(e){if(!(this.disabled||!Yu(e))){var r=e.keyCode,n=e.target.value||"";!this.noAddOnEnter&&r===ks?(ke(e,{propagation:!1}),this.addTag()):this.removeOnDelete&&(r===OZ||r===T4)&&n===""&&(ke(e,{propagation:!1}),this.tags=this.tags.slice(0,-1))}},onClick:function(e){var r=this,n=this.computeIgnoreInputFocusSelector;(!n||!kn(n,e.target,!0))&&this.$nextTick(function(){r.focus()})},onInputFocus:function(e){var r=this;this.focusState!=="out"&&(this.focusState="in",this.$nextTick(function(){at(function(){r.hasFocus&&(r.$emit(dX,e),r.focusState=null)})}))},onInputBlur:function(e){var r=this;this.focusState!=="in"&&(this.focusState="out",this.$nextTick(function(){at(function(){r.hasFocus||(r.$emit(HF,e),r.focusState=null)})}))},onFocusin:function(e){this.hasFocus=!0,this.$emit(zv,e)},onFocusout:function(e){this.hasFocus=!1,this.$emit(Vv,e)},handleAutofocus:function(){var e=this;this.$nextTick(function(){at(function(){e.autofocus&&e.focus()})})},focus:function(){this.disabled||Ie(this.getInput())},blur:function(){this.disabled||Bn(this.getInput())},splitTags:function(e){e=_e(e);var r=this.computedSeparatorRegExp;return(r?e.split(r):[e]).map(_o).filter(Te)},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 Fa(r)?r(e):!0},getInput:function(){return ni("#".concat(Nj(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,x=e.placeholder,O=e.removeTag,h=e.tagClass,v=e.tagPills,g=e.tagRemoveLabel,T=e.tagVariant,P=e.tags,k=this.$createElement,w=P.map(function(K){return K=_e(K),k(QS,{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,C=o&&p?this.safeId("__duplicate_feedback__"):null,E=_&&b?this.safeId("__limit_feedback__"):null,$=[u["aria-describedby"],A,C,E].filter(Te).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:Kn(Kn({},u),{},{"aria-describedby":$||null,type:d,placeholder:x||null}),domProps:{value:u.value},on:l,directives:[{name:"model",value:u.value}],ref:"input"}),M=k(In,{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(RX)||r]),L=this.safeId("__tag_list__"),N=k("li",{staticClass:"b-form-tags-field flex-grow-1",attrs:{role:"none","aria-live":"off","aria-controls":L},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:L},key:"tags_list"},[w,N]),z=k();if(f||o||_){var U=this.feedbackAriaLive,J=this.computedJoiner,re=k();A&&(re=k(s0,{props:{id:A,ariaLive:U,forceShow:!0},key:"tags_invalid_feedback"},[this.invalidTagText,": ",this.invalidTags.join(J)]));var Y=k();C&&(Y=k(a0,{props:{id:C,ariaLive:U},key:"tags_duplicate_feedback"},[this.duplicateTagText,": ",this.duplicateTags.join(J)]));var G=k();E&&(G=k(a0,{props:{id:E,ariaLive:U},key:"tags_limit_feedback"},[_])),z=k("div",{attrs:{"aria-live":"polite","aria-atomic":"true"},key:"tags_feedback"},[re,Y,G])}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=Kn({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},qi(this.$props,["addButtonText","addButtonVariant","disabled","duplicateTagText","form","inputClass","invalidTagText","limit","limitTagsText","noTagRemove","placeholder","required","separator","size","state","tagClass","tagPills","tagRemoveLabel","tagVariant"])),d=this.normalizeSlot(br,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])}}),dne=pe({components:{BFormTags:Ik,BTags:Ik,BFormTag:QS,BTag:QS}});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 eo(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"})}}),pne=pe({components:{BFormTextarea:Lk,BTextarea:Lk}}),iu;function Nk(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 Zf(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(St(r)||St(n)||a&&St(i))return"";var s=[r,n,a?i:0];return s.map(One).join(":")},t6=ee(fe(Zf(Zf(Zf(Zf({},ct),wne),qi(Qj,["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(Qr),minutesStep:y(le,1),readonly:y(B,!1),secondsStep:y(le,1),showSeconds:y(B,!1)})),FF),r6=V.extend({name:FF,mixins:[ht,_ne,Ce],props:t6,data:function(){var e=Im(this[Fk]||"");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 Tne({hours:e,minutes:r,seconds:n},this.showSeconds)},resolvedOptions:function(){var e=Ke(this.locale).filter(Te),r={hour:Wc,minute:Wc,second:Wc};it(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 Pb(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(Te).join(" ")||null},timeFormatter:function(){var e={hour12:this.is12Hour,hourCycle:this.computedHourCycle,hour:Wc,minute:Wc,timeZone:"UTC"};return this.showSeconds&&(e.second=Wc),Wf(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(kr(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(wM,{props:{scale:i?1.5:1.25},attrs:{"aria-hidden":"true"}})},decrement:function(n){var i=n.hasFocus;return e(wM,{props:{flipV:!0,scale:i?1.5:1.25},attrs:{"aria-hidden":"true"}})}}}},watch:(iu={},hl(iu,Fk,function(t,e){if(t!==e&&!Je(Im(t),Im(this.computedHMS))){var r=Im(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}}),hl(iu,"computedHMS",function(e,r){e!==r&&this.$emit(Sne,e)}),hl(iu,"context",function(e,r){Je(e,r)||this.$emit(ql,e)}),hl(iu,"modelAmpm",function(e,r){var n=this;if(e!==r){var i=St(this.modelHours)?0:this.modelHours;this.$nextTick(function(){e===0&&i>11?n.modelHours=i-12:e===1&&i<12&&(n.modelHours=i+12)})}}),hl(iu,"modelHours",function(e,r){e!==r&&(this.modelAmpm=e>11?1:0)}),iu),created:function(){var e=this;this.$nextTick(function(){e.$emit(ql,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=Io();lr(this.$el,e)&&Bn(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===Gi||n===Ps)){ke(e);var i=this.$refs.spinners||[],a=i.map(function(s){return!!s.hasFocus}).indexOf(!0);a=a+(n===Gi?-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(){at(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]:{},P=r.safeId("_spinbutton_".concat(v,"_"))||null;return d.push(P),e(ZS,{class:g,props:Zf({id:P,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",refInFor:!0})},p=function(){return e("div",{staticClass:"d-flex flex-column",class:{"text-muted":n||i},attrs:{"aria-hidden":"true"}},[e(MS,{props:{shiftV:4,scale:.5}}),e(MS,{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.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(Te).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(),x=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,x])}}),Rm;function jk(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 fs(t){for(var e=1;e0&&o.push(e("span"," "));var c=this.labelResetButton;o.push(e(In,{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(In,{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(r6,{staticClass:"b-form-time-control",props:fs(fs({},Et(n6,a)),{},{value:r,hidden:!this.isVisible}),on:{input:this.onInput,context:this.onContext},ref:"time"},o);return e(Dj,{staticClass:"b-form-timepicker",props:fs(fs({},Et(i6,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:Yg({},Es,this.$scopedSlots[Es]||this.defaultButtonFn),ref:"control"},[d])}}),Ane=pe({components:{BFormTimepicker:zk,BTimepicker:zk}}),Mne=pe({components:{BImg:kE,BImgLazy:Z4}}),$ne=ee({tag:y(I,"div")},iF),l0=V.extend({name:iF,functional:!0,props:$ne,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)}}),JE=ee({append:y(B,!1),id:y(I),isText:y(B,!1),tag:y(I,"div")},tF),ZE=V.extend({name:tF,functional:!0,props:JE,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(l0,a)]:a)}});function Vk(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 Uk(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:null;return e&&e.$options._scopeId||r};function fie(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var QE=V.extend({computed:{scopedStyleAttrs:function(){var e=rd(this.$parent);return e?fie({},e,""):{}}}}),hie=V.extend({abstract:!0,name:aX,props:{nodes:y(r4)},data:function(e){return{updatedNodes:e.nodes}},destroyed:function(){AJ(this.$el)},render:function(e){var r=this.updatedNodes,n=be(r)?r({}):r;return n=Ke(n).filter(Te),n&&n.length>0&&!n[0].text?n[0]:e()}}),pie={container:y([yo,I],"body"),disabled:y(B,!1),tag:y(I,"div")},mie=V.extend({name:iX,mixins:[Ce],props:pie,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(ft){var e=this.container;return Ge(e)?ni(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=new hie({el:r,parent:this,propsData:{nodes:Ke(this.normalizeSlot())}})}}},updateTarget:function(){if(ft&&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=Ke(this.normalizeSlot()).filter(Te);if(r.length>0&&!r[0].text)return r[0]}return e()}});function tO(t){"@babel/helpers - typeof";return tO=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},tO(t)}function Jk(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 Zk(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 nd(t){return nd=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},nd(t)}var Tie=function(t){_ie(r,t);var e=wie(r);function r(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return vie(this,r),i=e.call(this,n,a),bb(d6(i),{trigger:_i()}),i}return bie(r,null,[{key:"Defaults",get:function(){return Zk(Zk({},qg(nd(r),"Defaults",this)),{},{trigger:null})}}]),r}(pc),eD=1040,Eie=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",xie=".sticky-top",Pie=".navbar-toggler",Cie=V.extend({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){ft&&(this.getScrollbarWidth(),e>0&&r===0?(this.checkScrollbar(),this.setScrollbar(),cn(document.body,"modal-open")):e===0&&r>0&&(this.resetScrollbar(),Yr(document.body,"modal-open")),Mt(document.body,"data-modal-open-count",String(e)))},modals:function(e){var r=this;this.checkScrollbar(),at(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(ft&&St(this.baseZIndex)){var e=document.createElement("div");cn(e,"modal-backdrop"),cn(e,"d-none"),zr(e,"display","none"),document.body.appendChild(e),this.baseZIndex=oe(ei(e).zIndex,eD),document.body.removeChild(e)}return this.baseZIndex||eD},getScrollbarWidth:function(){if(ft&&St(this.scrollbarWidth)){var e=document.createElement("div");cn(e,"modal-scrollbar-measure"),document.body.appendChild(e),this.scrollbarWidth=Qu(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=Qu(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=qh(this.$refs.content,this.checkModalOverflow.bind(this),Nie))},updateModel:function(e){e!==this[Cw]&&this.$emit($ie,e)},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Tie(e,so(so({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(Xt,this.show);return}this.isOpening=!0,this.$_returnFocus=this.$_returnFocus||this.getActiveElement();var e=this.buildEvent(Nr,{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($n,{cancelable:e!==Iie,trigger:e||null});if(e===Zg?this.$emit(hX,r):e===Xg?this.$emit(oX,r):e===Jg&&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(Rie):this.show()},getActiveElement:function(){var e=Io(ft?[document.body]:[]);return e&&e.focus?e:null},doShow:function(){var e=this;if(Yc.modalsAreOpen&&this.noStacking){this.listenOnRootOnce(Ht(Tn,Xt),this.doShow);return}Yc.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,at(function(){at(function(){e.isShow=!0})})},onAfterEnter:function(){var e=this;this.checkModalOverflow(),this.isTransitioning=!1,at(function(){e.emitEvent(e.buildEvent(fn)),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,Yc.unregisterModal(e),e.returnFocusTo(),e.emitEvent(e.buildEvent(Xt))})},emitEvent:function(e){var r=e.type;this.emitOnRoot(Ht(Tn,r),e,e.componentId),this.$emit(r,e)},onDialogMousedown:function(){var e=this,r=this.$refs.modal,n=function i(a){kt(r,"mouseup",i,Ve),a.target===r&&(e.ignoreBackdropClick=!0)};Ot(r,"mouseup",n,Ve)},onClickOut:function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}!this.isVisible||this.noCloseOnBackdrop||!lr(document.body,e.target)||lr(this.$refs.content,e.target)||this.hide(kie)},onOk:function(){this.hide(Zg)},onCancel:function(){this.hide(Xg)},onClose:function(){this.hide(Jg)},onEsc:function(e){e.keyCode===xE&&this.isVisible&&!this.noCloseOnEsc&&this.hide(Die)},focusHandler:function(e){var r=this.$refs.content,n=e.target;if(!(this.noEnforceFocus||!this.isTop||!this.isVisible||!r||document===n||lr(r,n)||this.computeIgnoreEnforceFocusSelector&&kn(this.computeIgnoreEnforceFocusSelector,n,!0))){var i=PS(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;ft&&at(function(){var r=e.$refs.modal,n=e.$refs.content,i=e.getActiveElement();if(r&&n&&!(i&&lr(n,i))){var a=e.$refs["ok-button"],s=e.$refs["cancel-button"],o=e.$refs["close-button"],u=e.autoFocusButton,c=u===Zg&&a?a.$el||a:u===Xg&&s?s.$el||s:u===Jg&&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=Ge(e)?ni(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(rJ,this.slotScope);if(!n){var i=e();this.hideHeaderClose||(i=e(ec,{props:{content:this.headerCloseContent,disabled:this.isTransitioning,ariaLabel:this.headerCloseLabel,textVariant:this.headerCloseVariant||this.headerTextVariant},on:{click:this.onClose},ref:"close-button"},[this.normalizeSlot(nJ)])),n=[e(this.titleTag,{staticClass:"modal-title",class:this.titleClasses,attrs:{id:this.modalTitleId},domProps:this.hasNormalizedSlot(Z_)?{}:Rt(this.titleHtml,this.title)},this.normalizeSlot(Z_,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(br,this.slotScope)),s=e();if(!this.hideFooter){var o=this.normalizeSlot(tJ,this.slotScope);if(!o){var u=e();this.okOnly||(u=e(In,{props:{variant:this.cancelVariant,size:this.buttonSize,disabled:this.cancelDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(QA)?{}:Rt(this.cancelTitleHtml,this.cancelTitle),on:{click:this.onCancel},ref:"cancel-button"},this.normalizeSlot(QA)));var c=e(In,{props:{variant:this.okVariant,size:this.buttonSize,disabled:this.okDisabled||this.busy||this.isTransitioning},domProps:this.hasNormalizedSlot(eM)?{}:Rt(this.okTitleHtml,this.okTitle),on:{click:this.onOk},ref:"ok-button"},this.normalizeSlot(eM));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(eJ))),b=e(fc,{props:{noFade:this.noFade}},[b]),e("div",{style:this.modalOuterStyle,attrs:this.computedAttrs,key:"modal-outer-".concat(this[ws])},[m,b])}},render:function(e){return this.static?this.lazy&&this.isHidden?e():this.makeModal(e):this.isHidden?e():e(mie,[this.makeModal(e)])}}),Bie=dr(Tn,Nr),d0="__bv_modal_directive__",p6=function(e){var r=e.modifiers,n=r===void 0?{}:r,i=e.arg,a=e.value;return Ge(a)?a:Ge(i)?i:Pe(n).reverse()[0]},m6=function(e){return e&&Ss(e,".dropdown-menu > li, li.nav-item")&&ni("a, button",e)||e},g6=function(e){e&&e.tagName!=="BUTTON"&&(Ia(e,"role")||Mt(e,"role","button"),e.tagName!=="A"&&!Ia(e,"tabindex")&&Mt(e,"tabindex","0"))},Fie=function(e,r,n){var i=p6(r),a=m6(e);if(i&&a){var s=function(u){var c=u.currentTarget;if(!Ou(c)){var l=u.type,d=u.keyCode;(l==="click"||l==="keydown"&&(d===ks||d===Va))&&n.context.$root.$emit(Bie,i,c)}};e[d0]={handler:s,target:i,trigger:a},g6(a),Ot(a,"click",s,Cn),a.tagName!=="BUTTON"&&ii(a,"role")==="button"&&Ot(a,"keydown",s,Cn)}},v6=function(e){var r=e[d0]||{},n=r.trigger,i=r.handler;n&&i&&(kt(n,"click",i,Cn),kt(n,"keydown",i,Cn),kt(e,"click",i,Cn),kt(e,"keydown",i,Cn)),delete e[d0]},rD=function(e,r,n){var i=e[d0]||{},a=p6(r),s=m6(e);(a!==i.target||s!==i.trigger)&&(v6(e),Fie(e,r,n)),g6(s)},jie=function(){},b6={inserted:rD,updated:jie,componentUpdated:rD,unbind:v6};function Hie(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nD(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]:Xie;if(!(Hv(au)||zA(au))){var l=new r({parent:o,propsData:Za(Za(Za({},aD(ti(Tn))),{},{hideHeaderClose:!0,hideHeader:!(u.title||u.titleHtml)},Re(u,Pe(Mw))),{},{lazy:!1,busy:!1,visible:!1,noStacking:!1,noEnforceFocus:!1})});return Pe(Mw).forEach(function(d){Jt(u[d])||(l.$slots[Mw[d]]=Ke(u[d]))}),new Promise(function(d,f){var p=!1;l.$once(Vh,function(){p||f(new Error("BootstrapVue MsgBox destroyed before resolve"))}),l.$on($n,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||zA(au)||Hv(au)||!be(l)))return n(o,Za(Za({},aD(c)),{},{msgBoxContent:u}),l)},a=function(){function s(o){Hie(this,s),wp(this,{_vm:o,_root:o.$root}),bb(this,{_vm:_i(),_root:_i()})}return zie(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=Za(Za({},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=Za(Za({},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[Aw]=new a(this)}}),qu(e.prototype,au)||mE(e.prototype,au,{get:function(){return(!this||!this[Aw])&&Tr('"'.concat(au,'" must be accessed from a Vue instance "this" context.'),Tn),this[Aw]}})},Zie=pe({plugins:{plugin:Jie}}),Qie=pe({components:{BModal:h6},directives:{VBModal:b6},plugins:{BVModalPlugin:Zie}});function sD(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var eae=function(e){return e=e==="left"?"start":e==="right"?"end":e,"justify-content-".concat(e)},ex=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)},dF),y6=V.extend({name:dF,functional:!0,props:ex,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},sD(n,eae(l),!c&&l),sD(n,"small",i.small),n)}),s)}});function oD(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 uD(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(en,!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)},yF),$ae=V.extend({name:yF,mixins:[Ce],props:Mae,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(O6,{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:yf(yf({},Dw),{},{opacity:this.opacity,backgroundColor:this.bgColor||null,backdropFilter:this.blur?"blur(".concat(this.blur,")"):null})}),l=e("div",{staticClass:"position-absolute",style:this.noCenter?yf({},Dw):{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},[this.normalizeSlot(fJ,o)||this.defaultOverlayFn(o)]);u=e(this.overlayTag,{staticClass:"b-overlay",class:{"position-absolute":!s||s&&!i,"position-fixed":s&&i},style:yf(yf({},Dw),{},{zIndex:this.zIndex||10}),on:{click:function(f){return r.$emit(Pi,f)}},key:"overlay"},[c,l])}return u=e(fc,{props:{noFade:a,appear:!0},on:{"after-enter":function(){return r.$emit(fn)},"after-leave":function(){return r.$emit(Xt)}}},[u]),s?u:e(this.wrapTag,{staticClass:"b-overlay-wrap position-relative",attrs:{"aria-busy":n?"true":null}},s?[u]:[this.normalizeSlot(),u])}}),kae=pe({components:{BOverlay:$ae}}),_f;function bD(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 yD(t){for(var e=1;er?r:n<1?1:n},SD=function(e){if(e.keyCode===Va)return ke(e,{immediatePropagation:!0}),e.currentTarget.click(),!1},rx=ee(fe(yD(yD({},Iae),{},{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(kX,"Go to page"),labelPrevPage:y(I,"Go to previous page"),lastClass:y(we),lastNumber:y(B,!1),lastText:y(I,"»"),limit:y(le,tx,function(t){return oe(t,0)<1?(Tr('Prop "limit" must be a number greater than "0"',yb),!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"),T6=V.extend({mixins:[Dae,Ce],props:rx,data:function(){var e=oe(this[aO],0);return e=e>0?e:-1,{currentPage:e,localNumberOfPages:1,localLimit:tx}},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 wD(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:nNm?((!i||s)&&(u=!0,c=e-(a?0:1)),c=vs(c,e)):r-n+2Nm?((!i||a)&&(o=!0,c=e-(s?0:1)),l=r-c+1):(e>Nm&&(c=e-(i?0:2),o=!!(!i||a),u=!!(!i||s)),l=n-Yh(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<=Nm&&(a&&l===1?c=vs(c+1,r,e+1):s&&r===l+c-1&&(l=Ze(l-1,1),c=vs(r-l+1,r,e+1))),c=vs(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=Lae(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:(_f={},Qg(_f,aO,function(t,e){t!==e&&(this.currentPage=wD(t,this.localNumberOfPages))}),Qg(_f,"currentPage",function(e,r){e!==r&&this.$emit(Rae,e>0?e:null)}),Qg(_f,"limit",function(e,r){e!==r&&(this.localLimit=_D(e))}),_f),created:function(){var e=this;this.localLimit=_D(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===Gi||r===Dn?(ke(e,{propagation:!1}),n?this.focusFirst():this.focusPrev()):(r===Ps||r===pn)&&(ke(e,{propagation:!1}),n?this.focusLast():this.focusNext()))},getButtons:function(){return si("button.page-link, a.page-link",this.$el).filter(function(e){return Vi(e)})},focusCurrent:function(){var e=this;this.$nextTick(function(){var r=e.getButtons().find(function(n){return oe(ii(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!Ou(n)});Ie(r)})},focusLast:function(){var e=this;this.$nextTick(function(){var r=e.getButtons().reverse().find(function(n){return!Ou(n)});Ie(r)})},focusPrev:function(){var e=this;this.$nextTick(function(){var r=e.getButtons(),n=r.indexOf(Io());n>0&&!Ou(r[n-1])&&Ie(r[n-1])})},focusNext:function(){var e=this;this.$nextTick(function(){var r=e.getButtons(),n=r.indexOf(Io());no,M=P<1?1:P>o?o:P,L={disabled:D,page:M,index:M-1},N=r.normalizeSlot(w,L)||_e(A)||e(),j=e(D?"span":s?Ln:"button",{staticClass:"page-link",class:{"flex-grow-1":!s&&!D&&p},props:D||!s?{}:r.linkProps(P),attrs:{role:s?null:"menuitem",type:s||D?null:"button",tabindex:D||s?null:"-1","aria-label":k,"aria-controls":r.ariaControls||null,"aria-disabled":D?"true":null},on:D?{}:{"!click":function(U){r.onClick(U,P)},keydown:SD}},[N]);return e("li",{key:$,staticClass:"page-item",class:[{disabled:D,"flex-fill":p,"d-flex":p&&!s&&!D},C],attrs:{role:s?null:"presentation","aria-hidden":D?"true":null}},[j])},x=function(P){return e("li",{staticClass:"page-item",class:["disabled","bv-d-xs-down-none",p?"flex-fill":"",r.ellipsisClass],attrs:{role:"separator"},key:"ellipsis-".concat(P?"last":"first")},[e("span",{staticClass:"page-link"},[r.normalizeSlot(HX)||_e(r.ellipsisText)||e()])])},O=function(P,k){var w=P.number,A=b(w)&&!_,C=n?null:A||_&&k===0?"0":"-1",E={role:s?null:"menuitemradio",type:s||n?null:"button","aria-disabled":n?"true":null,"aria-controls":r.ariaControls||null,"aria-label":Fa(i)?i(w):"".concat(be(i)?i():i," ").concat(w),"aria-checked":s?null:A?"true":"false","aria-current":s&&A?"page":null,"aria-posinset":s?null:w,"aria-setsize":s?null:o,tabindex:s?null:C},$=_e(r.makePage(w)),D={page:w,index:w-1,content:$,active:A,disabled:n},M=e(n?"span":s?Ln:"button",{props:n||!s?{}:r.linkProps(w),staticClass:"page-link",class:{"flex-grow-1":!s&&!n&&p},attrs:E,on:n?{}:{"!click":function(N){r.onClick(N,w)},keydown:SD}},[r.normalizeSlot(hJ,D)||$]);return e("li",{staticClass:"page-item",class:[{disabled:n,active:A,"flex-fill":p,"d-flex":p&&!s&&!n},P.classes,r.pageClass],attrs:{role:s?null:"presentation"},key:"page-".concat(w)},[M])},h=e();!this.firstNumber&&!this.hideGotoEndButtons&&(h=S(1,this.labelFirstPage,VX,this.firstText,this.firstClass,1,"pagination-goto-first")),m.push(h),m.push(S(u-1,this.labelPrevPage,mJ,this.prevText,this.prevClass,1,"pagination-goto-prev")),m.push(this.firstNumber&&c[0]!==1?O({number:1},0):e()),m.push(d?x(!1):e()),this.pageList.forEach(function(T,P){var k=d&&r.firstNumber&&c[0]!==1?1:0;m.push(O(T,P+k))}),m.push(f?x(!0):e()),m.push(this.lastNumber&&c[c.length-1]!==o?O({number:o},-1):e()),m.push(S(u+1,this.labelNextPage,dJ,this.nextText,this.nextClass,o,"pagination-goto-next"));var v=e();!this.lastNumber&&!this.hideGotoEndButtons&&(v=S(o,this.labelLastPage,ZX,this.lastText,this.lastClass,o,"pagination-goto-last")),m.push(v);var g=e("ul",{staticClass:"pagination",class:["b-pagination",this.btnSize,this.alignment,this.styleClass],attrs:{role:s?null:"menubar","aria-disabled":n?"true":"false","aria-label":s?null:a||null},on:s?{}:{keydown:this.handleKeyNav},ref:"ul"},m);return s?e("nav",{attrs:{"aria-disabled":n?"true":null,"aria-hidden":n?"true":"false","aria-label":s&&a||null}},[g]):g}});function OD(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 TD(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[aO],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 pc(qF,{cancelable:!0,vueTarget:this,target:i});this.$emit(a.type,a,r),!a.defaultPrevented&&(this.currentPage=r,this.$emit(Rn,this.currentPage),this.$nextTick(function(){Vi(i)&&n.$el.contains(i)?Ie(i):n.focusCurrent()}))}},makePage:function(e){return e},linkProps:function(){return{}}}}),jae=pe({components:{BPagination:Fae}});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 Iw(t){for(var e=1;e0?this.localNumberOfPages=this.pages.length:this.localNumberOfPages=zae(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 pc(qF,{cancelable:!0,vueTarget:this,target:i});this.$emit(a.type,a,r),!a.defaultPrevented&&(at(function(){n.currentPage=r,n.$emit(Rn,r)}),this.$nextTick(function(){Bn(i)}))}},getPageInfo:function(e){if(!rt(this.pages)||this.pages.length===0||Jt(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(qt(n)){var i=n.link;return{link:qt(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 Fa(r)?r(e,n):n.text},makeLink:function(e){var r=this.linkGen,n=this.getPageInfo(e);return Fa(r)?r(e,n):n.link},linkProps:function(e){var r=Et(P6,this),n=this.makeLink(e);return this.useRouter||qt(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=w4({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:hM(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&&(ft||!ft&&e))for(var i=e&&r?{path:r.path,hash:r.hash,query:r.query}:{},a=ft?window.location||document.location:null,s=a?{path:a.pathname,hash:a.hash,query:hM(a.search)}:{},o=1;!n&&o<=this.localNumberOfPages;o++){var u=this.makeLink(o);e&&(qt(u)||this.useRouter)?n=Je(this.resolveRoute(u),i)?o:null:ft?n=Je(this.resolveLink(u),s)?o:null:n=-1}this.currentPage=n>0?n:0}}}),Gae=pe({components:{BPaginationNav:Uae}}),Wae={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"},Yae={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},Kae={arrowPadding:y(le,6),boundary:y([yo,I],"scrollParent"),boundaryPadding:y(le,5),fallbackPlacement:y(Qr,"flip"),offset:y(le,0),placement:y(I,"top"),target:y([yo,UN])},qae=V.extend({name:Zq,props:Kae,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(Nr,function(n){e.popperCreate(n)});var r=function(){e.$nextTick(function(){at(function(){e.$destroy()})})};this.$parent.$once(Vh,r),this.$once(Xt,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 Wae[String(e).toUpperCase()]||"auto"},getOffset:function(e){if(!this.offset){var r=this.$refs.arrow||ni(".arrow",this.$el),n=Ne(ei(r).width,0)+Ne(this.arrowPadding,0);switch(Yae[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 GS(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(fc,{props:{appear:!0,noFade:n},on:{beforeEnter:function(a){return r.$emit(Nr,a)},afterEnter:function(a){return r.$emit(fn,a)},beforeLeave:function(a){return r.$emit($n,a)},afterLeave:function(a){return r.$emit(Xt,a)}}},[this.localShow?this.renderTemplate(e):e()])}});function CD(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;e0&&arguments[0]!==void 0?arguments[0]:{},n=!1;Pe($D).forEach(function(i){!Jt(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=new r({parent:this,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(Nr,this.onTemplateShow),n.$once(fn,this.onTemplateShown),n.$once($n,this.onTemplateHide),n.$once(Xt,this.onTemplateHidden),n.$once(Vh,this.destroyTemplate),n.$on(zv,this.handleEvent),n.$on(Vv,this.handleEvent),n.$on(WF,this.handleEvent),n.$on(YF,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||!lr(document.body,e)||!Vi(e)||this.dropdownOpen()||(it(this.title)||this.title==="")&&(it(this.content)||this.content===""))&&!(this.$_tip||this.localShow)){this.localShow=!0;var r=this.buildEvent(Nr,{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($n,{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(Ig))},disable:function(){this.$_enabled=!1,this.emitEvent(this.buildEvent(Dg))},onTemplateShow:function(){this.setWhileOpenListeners(!0)},onTemplateShown:function(){var e=this.$_hoverState;this.$_hoverState="",e==="out"&&this.leave(null),this.emitEvent(this.buildEvent(fn))},onTemplateHide:function(){this.setWhileOpenListeners(!1)},onTemplateHidden:function(){this.destroyTemplate(),this.emitEvent(this.buildEvent(Xt))},getTarget:function(){var e=this.target;return Ge(e)?e=ES(e.replace(/^#/,"")):be(e)?e=e():e&&(e=e.$el||e),yt(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?kn(ese,n)||r:Ge(e)&&ES(e.replace(/^#/,""))||r},getBoundary:function(){return this.boundary?this.boundary.$el||this.boundary:"scrollParent"},isInModal:function(){var e=this.getTarget();return e&&kn(A6,e)},isDropdown:function(){var e=this.getTarget();return e&&Gh(e,tse)},dropdownOpen:function(){var e=this.getTarget();return this.isDropdown()&&e&&ni(rse,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=ii(e,"aria-describedby")||"";r=r.split(/\s+/).concat(this.computedId).join(" ").trim(),Mt(e,"aria-describedby",r)},removeAriaDescribedby:function(){var e=this,r=this.getTarget(),n=ii(r,"aria-describedby")||"";n=n.split(/\s+/).filter(function(i){return i!==e.computedId}).join(" ").trim(),n?Mt(r,"aria-describedby",n):Da(r,"aria-describedby")},fixTitle:function(){var e=this.getTarget();if(Ia(e,"title")){var r=ii(e,"title");Mt(e,"title",""),r&&Mt(e,Bm,r)}},restoreTitle:function(){var e=this.getTarget();if(Ia(e,Bm)){var r=ii(e,Bm);Da(e,Bm),r&&Mt(e,"title",r)}},buildEvent:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new pc(e,Rw({cancelable:!1,target:this.getTarget(),relatedTarget:this.getTemplateElement()||null,componentId:this.computedId,vueTarget:this},r))},emitEvent:function(e){var r=e.type;this.emitOnRoot(Ht(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"?Ot(r,"click",e.handleEvent,Ve):n==="focus"?(Ot(r,"focusin",e.handleEvent,Ve),Ot(r,"focusout",e.handleEvent,Ve)):n==="blur"?Ot(r,"focusout",e.handleEvent,Ve):n==="hover"&&(Ot(r,"mouseenter",e.handleEvent,Ve),Ot(r,"mouseleave",e.handleEvent,Ve))},this))},unListen:function(){var e=this,r=["click","focusin","focusout","mouseenter","mouseleave"],n=this.getTarget();this.setRootListener(!1),r.forEach(function(i){n&&kt(n,i,e.handleEvent,Ve)},this)},setRootListener:function(e){var r=this.$root;if(r){var n=e?"$on":"$off",i=this.templateType;r[n](dr(i,$n),this.doHide),r[n](dr(i,Nr),this.doShow),r[n](dr(i,wS),this.doDisable),r[n](dr(i,SS),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||!Vi(n))&&r.forceHide()},100))},setModalListener:function(e){this.isInModal()&&this.$root[e?"$on":"$off"](Zae,this.forceHide)},setOnTouchStartListener:function(e){var r=this;"ontouchstart"in document.documentElement&&Zu(document.body.children).forEach(function(n){Ui(e,n,"mouseover",r.$_noop)})},setDropdownListener:function(e){var r=this.getTarget();!r||!this.$root||!this.isDropdown||r.__vue__&&r.__vue__[e?"$on":"$off"](fn,this.forceHide)},handleEvent:function(e){var r=this.getTarget();if(!(!r||Ou(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&&lr(a,s)&&lr(r,o)||a&&lr(r,s)&&lr(a,o)||a&&lr(a,s)&&lr(a,o)||lr(r,s)&&lr(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())}}}),_n,su;function kD(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 nse(t){for(var e=1;e0&&e[bi].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[bi].__bv_prev_data__;if(e[bi].__bv_prev_data__=s,!Je(s,o)){var u={target:e};Pe(s).forEach(function(c){s[c]!==o[c]&&(u[c]=(c==="title"||c==="content")&&be(s[c])?s[c](e):s[c])}),e[bi].updateData(u)}}},Sse=function(e){e[bi]&&(e[bi].$destroy(),e[bi]=null),delete e[bi]},Ose={bind:function(e,r,n){FD(e,r,n)},componentUpdated:function(e,r,n){n.context.$nextTick(function(){FD(e,r,n)})},unbind:function(e){Sse(e)}},D6=pe({directives:{VBPopover:Ose}}),Tse=pe({components:{BPopover:use},plugins:{VBPopoverPlugin:D6}}),I6=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)},wF),R6=V.extend({name:wF,mixins:[Ce],inject:{bvProgress:{default:function(){return{}}}},props:I6,computed:{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 Ne(this.value,0)},computedMax:function(){var e=Ne(this.max)||Ne(this.bvProgress.max,0);return e>0?e:100},computedPrecision:function(){return Ze(oe(this.precision,oe(this.bvProgress.precision,0)),0)},computedProgress:function(){var e=this.computedPrecision,r=v4(10,e);return Q_(100*r*this.computedValue/this.computedMax/r,e)},computedVariant:function(){return this.variant||this.bvProgress.variant},computedStriped:function(){return Si(this.striped)?this.striped:this.bvProgress.striped||!1},computedAnimated:function(){return Si(this.animated)?this.animated:this.bvProgress.animated||!1},computedShowProgress:function(){return Si(this.showProgress)?this.showProgress:this.bvProgress.showProgress||!1},computedShowValue:function(){return Si(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=Rt(n,r):this.computedShowProgress?s=this.computedProgress:this.computedShowValue&&(s=Q_(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":Q_(i,a)},domProps:o},s)}});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;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()}),wf),created:function(){this.$_returnFocusEl=null},mounted:function(){var e=this;this.listenOnRoot(Mse,this.handleToggle),this.listenOnRoot(Ase,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($se,this.safeId(),e)},emitSync:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.localShow;this.emitOnRoot(kse,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===xE&&this.localShow&&this.hide()},onBackdropClick:function(){this.localShow&&!this.noCloseOnBackdrop&&this.hide()},onTopTrapFocus:function(){var e=PS(this.$refs.content);this.enforceFocus(e.reverse()[0])},onBottomTrapFocus:function(){var e=PS(this.$refs.content);this.enforceFocus(e[0])},onBeforeEnter:function(){this.$_returnFocusEl=Io(ft?[document.body]:[]),this.isOpen=!0},onAfterEnter:function(e){lr(e,Io())||this.enforceFocus(e),this.$emit(fn)},onAfterLeave:function(){this.enforceFocus(this.$_returnFocusEl),this.$_returnFocusEl=null,this.isOpen=!1,this.$emit(Xt)},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:Xh,class:[(r={shadow:o===!0},as(r,"shadow-".concat(o),o&&o!==!0),as(r,"".concat(Xh,"-right"),this.right),as(r,"bg-".concat(n),n),as(r,"text-".concat(a),a),r),this.sidebarClass],style:{width:i},attrs:this.computedAttrs,directives:[{name:"show",value:s}],ref:"content"},[zse(e,this)]);u=e("transition",{props:this.transitionProps,on:{beforeEnter:this.onBeforeEnter,afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[u]);var c=e(fc,{props:{noFade:this.noSlide}},[Vse(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])}}),Gse=pe({components:{BSidebar:Use},plugins:{VBTogglePlugin:LE}});function Lw(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wse=ee({animation:y(I,"wave"),height:y(I),size:y(I),type:y(I,"text"),variant:y(I),width:y(I)},TF),p0=V.extend({name:TF,functional:!0,props:Wse,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={},Lw(n,"b-skeleton-".concat(a.type),!0),Lw(n,"b-skeleton-animate-".concat(o),o),Lw(n,"bg-".concat(u),u),n)}))}});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 GD(t){for(var e=1;e0}}});function WD(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 Zse(t){for(var e=1;e0?e:null},JD=function(e){return it(e)||oO(e)>0},F6=ee({colspan:y(le,null,JD),rowspan:y(le,null,JD),stackedHeading:y(I),stickyColumn:y(B,!1),variant:y(I)},$F),id=V.extend({name:$F,mixins:[Er,Ds,Ce],inject:{bvTableTr:{default:function(){return{}}}},inheritAttrs:!1,props:F6,computed:{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 oO(this.colspan)},computedRowspan:function(){return oO(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"):za(this.tag,"th")&&(a="rowheader",s=i>0?"rowgroup":"row"),XD(XD({colspan:n,rowspan:i,role:a,scope:s},this.bvAttrs),{},{"data-label":this.isStackedCell&&!it(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 noe(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ax="busy",ioe=Vo+ax,j6=noe({},ax,y(B,!1)),aoe=V.extend({props:j6,data:function(){return{localBusy:!1}},computed:{computedBusy:function(){return this[ax]||this.localBusy}},watch:{localBusy:function(e,r){e!==r&&this.$emit(ioe,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(Uf)?n(Cs,{staticClass:"b-table-busy-slot",class:[be(e)?e(null,Uf):e],attrs:be(r)?r(null,Uf):r,key:"table-busy-slot"},[n(id,{props:{colspan:this.computedFields.length||null}},[this.normalizeSlot(Uf)])]):null}}}),sx={caption:y(I),captionHtml:y(I)},H6=V.extend({props:sx,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(rM);return(a||e||r)&&(i=n("caption",{attrs:{id:this.captionId},domProps:a?{}:Rt(r,e),key:"caption",ref:"caption"},this.normalizeSlot(rM))),i}}}),z6={},V6=V.extend({methods:{renderColgroup:function(){var e=this.computedFields,r=this.$createElement,n=r();return this.hasNormalizedSlot(nM)&&(n=r("colgroup",{key:"colgroup"},[this.normalizeSlot(nM,{columns:e.length,fields:e})])),n}}}),U6={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)},soe=V.extend({props:U6,methods:{renderEmpty:function(){var e=this.computedItems,r=this.$createElement,n=r();if(this.showEmpty&&(!e||e.length===0)&&!(this.computedBusy&&this.hasNormalizedSlot(Uf))){var i=this.computedFields,a=this.isFiltered,s=this.emptyText,o=this.emptyHtml,u=this.emptyFilteredText,c=this.emptyFilteredHtml,l=this.tbodyTrClass,d=this.tbodyTrAttr;n=this.normalizeSlot(a?zX:i4,{emptyFilteredHtml:c,emptyFilteredText:u,emptyHtml:o,emptyText:s,fields:i,items:e}),n||(n=r("div",{class:["text-center","my-2"],domProps:a?Rt(c,u):Rt(o,s)})),n=r(id,{props:{colspan:i.length||null}},[r("div",{attrs:{role:"alert","aria-live":"polite"}},[n])]),n=r(Cs,{staticClass:"b-table-empty-row",class:[be(l)?l(null,"row-empty"):l],attrs:be(d)?d(null,"row-empty"):d,key:a?"b-empty-filtered-row":"b-empty-row"},[n])}return n}}}),uO=function t(e){return it(e)?"":qt(e)&&!Kl(e)?Pe(e).sort().map(function(r){return t(e[r])}).filter(function(r){return!!r}).join(" "):_e(e)};function ZD(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 QD(t){for(var e=1;e3&&arguments[3]!==void 0?arguments[3]:{},a=Pe(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},zo(e)),s=Pe(a).filter(function(o){return!W6[o]&&!(rt(r)&&r.length>0&&Ee(r,o))&&!(rt(n)&&n.length>0&&!Ee(n,o))});return qi(a,s)},uoe=function(e,r,n,i){return qt(e)?uO(lO(e,r,n,i)):""};function coe(t){return hoe(t)||foe(t)||doe(t)||loe()}function loe(){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 doe(t,e){if(t){if(typeof t=="string")return dO(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 dO(t,e)}}function foe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hoe(t){if(Array.isArray(t))return dO(t)}function dO(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&Tr(poe,Ju),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 Fa(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?Je(n,[])||Je(n,{})?i=!1:n&&(i=!0):i=!1,i&&this.$emit(OS,r,r.length),this.isFiltered=i},isFiltered:function(e,r){if(e===!1&&r===!0){var n=this.localItems;this.$emit(OS,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&&!(Ge(e)||LA(e))?"":Oi(e)},filterFnFactory:function(e,r){if(!e||!be(e)||!r||Je(r,[])||Je(r,{}))return null;var n=function(a){return e(a,r)};return n},defaultFilterFnFactory:function(e){var r=this;if(!e||!(Ge(e)||LA(e)))return null;var n=e;if(Ge(n)){var i=SE(e).replace(zN,"\\s+");n=new RegExp(".*".concat(i,".*"),"i")}var a=function(o){return n.lastIndex=0,n.test(uoe(o,r.computedFilterIgnored,r.computedFilterIncluded,r.computedFieldsObj))};return a}}}),goe=function(e,r){var n=null;return Ge(r)?n={key:e,label:r}:be(r)?n={key:e,formatter:r}:qt(r)?(n=zo(r),n.key=n.key||e):r!==!1&&(n={key:e}),n},voe=function(e,r){var n=[];if(rt(e)&&e.filter(Te).forEach(function(s){if(Ge(s))n.push({key:s,label:Rg(s)});else if(qt(s)&&s.key&&Ge(s.key))n.push(zo(s));else if(qt(s)&&Pe(s).length===1){var o=Pe(s)[0],u=goe(o,s[o]);u&&n.push(u)}}),n.length===0&&rt(r)&&r.length>0){var i=r[0];Pe(i).forEach(function(s){W6[s]||n.push({key:s,label:Rg(s)})})}var a={};return n.filter(function(s){return a[s.key]?!1:(a[s.key]=!0,s.label=Ge(s.label)?s.label:Rg(s.key),!0)})};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 tI(t){for(var e=1;e0&&e.some(Te)},selectableIsMultiSelect:function(){return this.isSelectable&&Ee(["range","multi"],this.selectMode)},selectableTableClasses:function(){var e,r=this.isSelectable;return e={"b-table-selectable":r},Fm(e,"b-table-select-".concat(this.selectMode),r),Fm(e,"b-table-selecting",this.selectableHasSelection),Fm(e,"b-table-selectable-no-click",r&&!this.hasSelectableRowClick),e},selectableTableAttrs:function(){if(!this.isSelectable)return{};var e=this.bvAttrs.role||nI;return{role:e,"aria-multiselectable":e===nI?_e(this.selectableIsMultiSelect):null}}},watch:{computedItems:function(e,r){var n=!1;if(this.isSelectable&&this.selectedRows.length>0){n=rt(e)&&rt(r)&&e.length===r.length;for(var i=0;n&&i=0&&e0&&(this.selectedLastClicked=-1,this.selectedRows=this.selectableIsMultiSelect?ph(e,!0):[!0])},isRowSelected:function(e){return!!(ji(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 Fm({"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](Uv,this.selectionHandler),this[r](OS,this.clearSelected),this[r](zF,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=vs(a,r);u<=Ze(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}}}),Q6=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]})},iI=function(e){return it(e)?"":fh(e)?Ne(e,e):e},Poe=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=Vr(e,a,null),b=Vr(r,a,null);return be(o)&&(m=o(m,a,e),b=o(b,a,r)),m=iI(m),b=iI(b),Kl(m)&&Kl(b)||ji(m)&&ji(b)?mb?1:0:p&&m===""&&b!==""?1:p&&m!==""&&b===""?-1:uO(m).localeCompare(uO(b),c,d)},fa,Kc;function aI(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 sI(t){for(var e=1;e0&&!this.computedBusy,[this.tableClass,{"table-striped":this.striped,"table-hover":e,"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},r?"".concat(this.dark?"bg":"table","-").concat(r):"",this.stackedTableClasses,this.selectableTableClasses]},tableAttrs:function(){var e=this.computedItems,r=this.filteredItems,n=this.computedFields,i=this.selectableTableAttrs,a=this.isTableSimple?{}:{"aria-busy":_e(this.computedBusy),"aria-colcount":_e(n.length),"aria-describedby":this.bvAttrs["aria-describedby"]||this.$refs.caption?this.captionId:null},s=e&&r&&r.length>e.length?_e(r.length):null;return Nw(Nw(Nw({"aria-rowcount":s},this.bvAttrs),{},{id:this.safeId(),role:this.bvAttrs.role||"table"},a),i)}},render:function(e){var r=this.wrapperClasses,n=this.renderCaption,i=this.renderColgroup,a=this.renderThead,s=this.renderTbody,o=this.renderTfoot,u=[];this.isTableSimple?u.push(this.normalizeSlot()):(u.push(n?n():null),u.push(i?i():null),u.push(a?a():null),u.push(s?s():null),u.push(o?o():null));var c=e("table",{staticClass:"table b-table",class:this.tableClasses,attrs:this.tableAttrs,key:"b-table"},u.filter(Te));return r.length>0?e("div",{class:r,style:this.wrapperStyles,key:"wrap"},[c]):c}});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 Bw(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:document,r=MJ();return r&&r.toString().trim()!==""&&r.containsNode&&yt(e)?r.containsNode(e,!0):!1},Noe=ee(F6,NF),lx=V.extend({name:NF,extends:id,props:Noe,computed:{tag:function(){return"th"}}});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 Sf(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(x=String((o-1)*u+r+1));var O=_e(Vr(e,s))||null,h=O||_e(r),v=O?this.safeId("_row_".concat(O)):null,g=this.selectableRowClasses?this.selectableRowClasses(r):{},T=this.selectableRowAttrs?this.selectableRowAttrs(r):{},P=be(c)?c(e,"row"):c,k=be(l)?l(e,"row"):l;if(b.push(d(Cs,{class:[P,g,p?"b-table-has-details":""],props:{variant:e[cO]||null},attrs:Sf(Sf({id:v},k),{},{tabindex:m?"0":null,"data-pk":O||null,"aria-details":_,"aria-owns":_,"aria-rowindex":x},T),on:{mouseenter:this.rowHovered,mouseleave:this.rowUnhovered},key:"__b-table-row-".concat(h,"__"),ref:"item-rows",refInFor:!0},S)),p){var w={item:e,index:r,fields:i,toggleDetails:this.toggleDetailsFactory(f,e)};this.supportsSelectableRows&&(w.rowSelected=this.isRowSelected(r),w.selectRow=function(){return n.selectRow(r)},w.unselectRow=function(){return n.unselectRow(r)});var A=d(id,{props:{colspan:i.length},class:this.detailsTdClass},[this.normalizeSlot(cf,w)]);a&&b.push(d("tr",{staticClass:"d-none",attrs:{"aria-hidden":"true",role:"presentation"},key:"__b-table-details-stripe__".concat(h)}));var C=be(this.tbodyTrClass)?this.tbodyTrClass(e,cf):this.tbodyTrClass,E=be(this.tbodyTrAttr)?this.tbodyTrAttr(e,cf):this.tbodyTrAttr;b.push(d(Cs,{staticClass:"b-table-details",class:[C],props:{variant:e[cO]||null},attrs:Sf(Sf({},E),{},{id:_,tabindex:"-1"}),key:"__b-table-details__".concat(h)},[A]))}else f&&(b.push(d()),a&&b.push(d()));return b}}});function lI(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 Fw(t){for(var e=1;e0&&n&&n.length>0?Zu(r.children).filter(function(i){return Ee(n,i)}):[]},getTbodyTrIndex:function(e){if(!yt(e))return-1;var r=e.tagName==="TR"?e:kn("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"||!OE(r)||r.tabIndex!==0)){if(Ee([ks,Va],n))ke(e),this.onTBodyRowClicked(e);else if(Ee([Dn,pn,Lo,Ro],n)){var i=this.getTbodyTrIndex(r);if(i>-1){ke(e);var a=this.getTbodyTrs(),s=e.shiftKey;n===Lo||s&&n===Dn?Ie(a[0]):n===Ro||s&&n===pn?Ie(a[a.length-1]):n===Dn&&i>0?Ie(a[i-1]):n===pn&&it.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:!1,n=this.computedFields,i=this.isSortable,a=this.isSelectable,s=this.headVariant,o=this.footVariant,u=this.headRowVariant,c=this.footRowVariant,l=this.$createElement;if(this.isStackedAlways||n.length===0)return l();var d=i||this.hasListener(hh),f=a?this.selectAllRows:Kh,p=a?this.clearSelected:Kh,m=function(O,h){var v=O.label,g=O.labelHtml,T=O.variant,P=O.stickyColumn,k=O.key,w=null;!O.label.trim()&&!O.headerTitle&&(w=Rg(O.key));var A={};d&&(A.click=function(z){e.headClicked(z,O,r)},A.keydown=function(z){var U=z.keyCode;(U===ks||U===Va)&&e.headClicked(z,O,r)});var C=i?e.sortTheadThAttrs(k,O,r):{},E=i?e.sortTheadThClasses(k,O,r):null,$=i?e.sortTheadThLabel(k,O,r):null,D={class:[{"position-relative":$},e.fieldClasses(O),E],props:{variant:T,stickyColumn:P},style:O.thStyle||{},attrs:mI(mI({tabindex:d&&O.sortable?"0":null,abbr:O.headerAbbr||null,title:O.headerTitle||null,"aria-colindex":h+1,"aria-label":w},e.getThValues(null,k,O.thAttr,r?"foot":"head",{})),C),on:A,key:k},M=[Hw(k),Hw(k.toLowerCase()),Hw()];r&&(M=[zw(k),zw(k.toLowerCase()),zw()].concat(Joe(M)));var L={label:v,column:k,field:O,isFoot:r,selectAllRows:f,clearSelected:p},N=e.normalizeSlot(M,L)||l("div",{domProps:Rt(g,v)}),j=$?l("span",{staticClass:"sr-only"}," (".concat($,")")):null;return l(lx,D,[N,j].filter(Te))},b=n.map(m).filter(Te),_=[];if(r)_.push(l(Cs,{class:this.tfootTrClass,props:{variant:it(c)?u:c}},b));else{var S={columns:n.length,fields:n,selectAllRows:f,clearSelected:p};_.push(this.normalizeSlot(yJ,S)||l()),_.push(l(Cs,{class:this.theadTrClass,props:{variant:u}},b))}return l(r?fx:s5,{class:(r?this.tfootClass:this.theadClass)||null,props:r?{footVariant:o||s||null}:{headVariant:s||null},key:r?"bv-tfoot":"bv-thead"},_)}}}),nue={},iue=V.extend({methods:{renderTopRow:function(){var e=this.computedFields,r=this.stacked,n=this.tbodyTrClass,i=this.tbodyTrAttr,a=this.$createElement;return!this.hasNormalizedSlot(iM)||r===!0||r===""?a():a(Cs,{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(iM,{columns:e.length,fields:e})])}}});function gI(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 Ar(t){for(var e=1;e0},bue=ee({animation:y(I),columns:y(Xr,5,_I),hideHeader:y(B,!1),rows:y(Xr,3,_I),showFooter:y(B,!1),tableProps:y(pr,{})},PF),yue=V.extend({name:PF,functional:!0,props:bue,render:function(e,r){var n=r.data,i=r.props,a=i.animation,s=i.columns,o=e("th",[e(p0,{props:{animation:a}})]),u=e("tr",ph(s,o)),c=e("td",[e(p0,{props:{width:"75%",animation:a}})]),l=e("tr",ph(s,c)),d=e("tbody",ph(i.rows,l)),f=i.hideHeader?e():e("thead",[u]),p=i.showFooter?e("tfoot",[u]):e();return e(u5,ve(n,{props:gue({},i.tableProps)}),[f,d,p])}}),_ue=ee({loading:y(B,!1)},CF),wue=V.extend({name:CF,functional:!0,props:_ue,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"}),Br(QX,c,u,o)):Br(br,c,u,o)}}),Sue=pe({components:{BSkeleton:p0,BSkeletonIcon:Kse,BSkeletonImg:Jse,BSkeletonTable:yue,BSkeletonWrapper:wue}}),Oue=pe({components:{BSpinner:O6}}),qc;function wI(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 Pl(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(){at(function(){e.updateTabs()})})};this.$_observer=qh(this.$refs.content,n,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["id"]})}},getTabs:function(){var e=this.registeredTabs.filter(function(i){return i.$children.filter(function(a){return a._isTab}).length===0}),r=[];if(ft&&e.length>0){var n=e.map(function(i){return"#".concat(i.safeId())}).join(", ");r=si(n,this.$el).map(function(i){return i.id}).filter(Te)}return Q6(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(ou)):e[n]&&!e[n].disabled&&(r=n)}r<0&&(r=e.indexOf(e.find(ou))),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 pc(sX,{cancelable:!0,vueTarget:this,componentId:this.safeId()});this.$emit(s.type,a,r,s),s.defaultPrevented||(this.currentTab=a,i=!0)}}return!i&&this[Uw]!==r&&this.$emit(SI,r),i},deactivateTab:function(e){return e?this.activateTab(this.tabs.filter(function(r){return r!==e}).find(ou)):!1},focusButton:function(e){var r=this;this.$nextTick(function(){Ie(r.getButtonForTab(e))})},emitTabClick:function(e,r){Yu(r)&&e&&e.$emit&&!e.disabled&&e.$emit(Pi,r)},clickTab:function(e,r){this.activateTab(e),this.emitTabClick(e,r)},firstTab:function(e){var r=this.tabs.find(ou);this.activateTab(r)&&e&&(this.focusButton(r),this.emitTabClick(r,e))},previousTab:function(e){var r=Ze(this.currentTab,0),n=this.tabs.slice(0,r).reverse().find(ou);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},nextTab:function(e){var r=Ze(this.currentTab,-1),n=this.tabs.slice(r+1).find(ou);this.activateTab(n)&&e&&(this.focusButton(n),this.emitTabClick(n,e))},lastTab:function(e){var r=this.tabs.slice().reverse().find(ou);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,x=_.find(function(k){return k.localActive&&!k.disabled}),O=_.find(function(k){return!k.disabled}),h=_.map(function(k,w){var A,C=k.safeId,E=null;return d||(E=-1,(k===x||!x&&k===O)&&(E=null)),e(xue,{props:{controls:C?C():null,id:k.controlledBy||(C?C("_BV_tab_button_"):null),noKeyNav:d,posInSet:w+1,setSize:_.length,tab:k,tabIndex:E},on:(A={},ma(A,Pi,function($){r.clickTab(k,$)}),ma(A,VF,o),ma(A,XF,m),ma(A,KF,l),ma(A,GF,c),A),key:k[ws]||w,ref:"buttons",refInFor:!0})}),v=e(y6,{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(vJ)||e(),h,this.normalizeSlot(gJ)||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(i4)));var P=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?P:e(),v,a?e():P])}}),mi,Of;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 TI(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 jue(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 xI(t,e){return e.reduce(function(r,n){return t.hasOwnProperty(n)&&(r[n]=t[n]),r},{})}var c5={},Hue={},zue={},Vue=V.extend({data:function(){return{transports:c5,targets:Hue,sources:zue,trackInstances:jm}},methods:{open:function(e){if(jm){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:Bue(i),order:s},u=Object.keys(this.transports);u.indexOf(r)===-1&&V.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]=jue(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){jm&&(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){jm&&(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}}}),ri=new Vue(c5),Uue=1,l5=V.extend({name:"portal",props:{disabled:{type:Boolean},name:{type:String,default:function(){return String(Uue++)}},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(){ri.registerSource(e.name,e)})},mounted:function(){this.disabled||this.sendUpdate()},updated:function(){this.disabled?this.clear():this.sendUpdate()},beforeDestroy:function(){ri.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};ri.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:Iue(e),order:this.order};ri.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"})}}),d5=V.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:ri.transports,firstRender:!0}},created:function(){var e=this;this.$nextTick(function(){ri.registerTarget(e.name,e)})},watch:{ownTransports:function(){this.$emit("change",this.children().length>0)},name:function(e,r){ri.unregisterTarget(r),ri.registerTarget(e,this)}},mounted:function(){var e=this;this.transition&&this.$nextTick(function(){e.firstRender=!1})},beforeDestroy:function(){ri.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 Fue(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)}}),Gue=0,Wue=["disabled","name","order","slim","slotProps","tag","to"],Yue=["multiple","transition"];V.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(Gue++)}},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(ri.targets[r.name]){r.bail?console.warn("[portal-vue]: Target ".concat(r.name,` is already mounted. Aborting because 'bail: true' is set`)):this.portalTarget=ri.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=xI(this.$props,Yue);s.slim=this.targetSlim,s.tag=this.targetTag,s.slotProps=this.targetSlotProps,s.name=this.to,this.portalTarget=new d5({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=xI(this.$props,Wue);return e(l5,{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 Kue=V.extend({mixins:[Ce],data:function(){return{name:"b-toaster"}},methods:{onAfterEnter:function(e){var r=this;at(function(){Yr(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())}}),que=ee({ariaAtomic:y(I),ariaLive:y(I),name:y(I,void 0,!0),role:y(I)},Bl),f5=V.extend({name:Bl,mixins:[Xi],props:que,data:function(){return{doRender:!1,dead:!1,staticName:this.name}},beforeMount:function(){var e=this.name;this.staticName=e,ri.hasTarget(e)?(Tr('A "" with name "'.concat(e,'" already exists in the document.'),Bl),this.dead=!0):this.doRender=!0},beforeDestroy:function(){this.doRender&&this.emitOnRoot(Ht(Bl,yE),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(d5,{staticClass:"b-toaster-slot",props:{name:this.staticName,multiple:!0,tag:"div",slim:!1,transition:Kue}});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}}),Xc;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 Ta(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:{};return new pc(e,Ta(Ta({cancelable:!1,target:this.$el||null,relatedTarget:null},r),{},{vueTarget:this,componentId:this.safeId()}))},emitEvent:function(e){var r=e.type;this.emitOnRoot(Ht(gs,r),e),this.$emit(r,e)},ensureToaster:function(){if(!this.static){var e=this.computedToaster;if(!ri.hasTarget(e)){var r=document.createElement("div");document.body.appendChild(r);var n=new f5({parent:this.$root,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"];Ui(e,r,"mouseenter",this.onPause,Ve),Ui(e,r,"mouseleave",this.onUnPause,Ve)},onPause:function(){if(!(this.noAutoHide||this.noHoverPause||!this.$_dismissTimer||this.resumeDismiss)){var e=Date.now()-this.dismissStarted;e>0&&(this.clearDismissTimer(),this.resumeDismiss=Ze(this.computedDuration-e,CI))}},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(){at(function(){e.hide()})})},onBeforeEnter:function(){this.isTransitioning=!0},onAfterEnter:function(){this.isTransitioning=!1;var e=this.buildEvent(fn);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(Xt);this.emitEvent(e),this.doRender=!1},makeToast:function(e){var r=this,n=this.title,i=this.slotScope,a=Tp(this),s=[],o=this.normalizeSlot(_J,i);o?s.push(o):n&&s.push(e("strong",{staticClass:"mr-2"},n)),this.noCloseButton||s.push(e(ec,{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?Ln:"div",{staticClass:"toast-body",class:this.bodyClass,props:a?Et(h5,this):{},on:a?{click:this.onLinkClick}:{}},this.normalizeSlot(br,i));return e("div",{staticClass:"toast",class:this.toastClass,attrs:this.computedAttrs,key:"toast-".concat(this[ws]),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[ws]),o=e("div",{staticClass:"b-toast",class:this.toastClasses,attrs:Ta(Ta({},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(fc,{props:{noFade:this.noFade},on:this.transitionHandlers},[this.localShow?this.makeToast(e):e()])]);return e(l5,{props:{name:s,to:this.computedToaster,order:r,slim:!0,disabled:n}},[o])}});function Que(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AI(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||Hv(Ef)||n(Tf(Tf({},$I(u)),{},{toastContent:o}),this._vm)}},{key:"show",value:function(o){o&&this._root.$emit(dr(gs,Nr),o)}},{key:"hide",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this._root.$emit(dr(gs,$n),o)}}]),a}();e.mixin({beforeCreate:function(){this[Ww]=new i(this)}}),qu(e.prototype,Ef)||mE(e.prototype,Ef,{get:function(){return(!this||!this[Ww])&&Tr('"'.concat(Ef,'" must be accessed from a Vue instance "this" context.'),gs),this[Ww]}})},cce=pe({plugins:{plugin:uce}}),lce=pe({components:{BToast:m5,BToaster:f5},plugins:{BVToastPlugin:cce}});function kI(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 DI(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]&&(Jt(this.$offsets[s+1])||r0&&this.$root&&this.$root.$emit(jce,r,i)}},{key:"clear",value:function(){var r=this;si("".concat(this.$selector,", ").concat(Xw),this.$el).filter(function(n){return Gh(n,Kw)}).forEach(function(n){return r.setActiveState(n,!1)})}},{key:"setActiveState",value:function(r,n){r&&(n?cn(r,Kw):Yr(r,Kw))}}],[{key:"Name",get:function(){return Ice}},{key:"Default",get:function(){return zce}},{key:"DefaultType",get:function(){return Vce}}]),t}(),Tu="__BV_Scrollspy__",Wce=/^\d+$/,Yce=/^(auto|position|offset)$/,Kce=function(e){var r={};return e.arg&&(r.element="#".concat(e.arg)),Pe(e.modifiers).forEach(function(n){Wce.test(n)?r.offset=oe(n,0):Yce.test(n)&&(r.method=n)}),Ge(e.value)?r.element=e.value:ji(e.value)?r.offset=AS(e.value):qt(e.value)&&Pe(e.value).filter(function(n){return!!v5.DefaultType[n]}).forEach(function(n){r[n]=e.value[n]}),r},Hm=function(e,r,n){if(ft){var i=Kce(r);e[Tu]?e[Tu].updateConfig(i,n.context.$root):e[Tu]=new v5(e,i,n.context.$root)}},qce=function(e){e[Tu]&&(e[Tu].dispose(),e[Tu]=null,delete e[Tu])},Xce={bind:function(e,r,n){Hm(e,r,n)},inserted:function(e,r,n){Hm(e,r,n)},update:function(e,r,n){r.value!==r.oldValue&&Hm(e,r,n)},componentUpdated:function(e,r,n){r.value!==r.oldValue&&Hm(e,r,n)},unbind:function(e){qce(e)}},Jce=pe({directives:{VBScrollspy:Xce}}),Zce=pe({directives:{VBVisible:RE}}),Qce=pe({plugins:{VBHoverPlugin:Ace,VBModalPlugin:Mce,VBPopoverPlugin:D6,VBScrollspyPlugin:Jce,VBTogglePlugin:LE,VBTooltipPlugin:g5,VBVisiblePlugin:Zce}});/*! * BootstrapVue 2.22.0 * * @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 ele="BootstrapVue",tle=KN({plugins:{componentsPlugin:Cce,directivesPlugin:Qce}}),MNe={install:tle,NAME:ele},Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function li(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function rle(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 b5={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 P=0;P"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 P=T||"",k=P.indexOf("g")>-1,w=new RegExp(v+"|"+g,"g"+P.replace(/g/g,"")),A=new RegExp(v,P.replace(/g/g,"")),C=[],E,$,D,M,L;do for(E=0;D=w.exec(h);)if(A.test(D[0]))E++||($=w.lastIndex,M=$-D[0].length);else if(E&&!--E){L=D.index+D[0].length;var N={left:{start:M,end:$},match:{start:$,end:D.index},right:{start:D.index,end:L},wholeMatch:{start:M,end:L}};if(C.push(N),!k)return C}while(E&&(w.lastIndex=$));return C};n.helper.matchRecursiveRegExp=function(h,v,g,T){for(var P=d(h,v,g,T),k=[],w=0;w0){var E=[];w[0].wholeMatch.start!==0&&E.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=[],P={},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 L in h)h.hasOwnProperty(L)&&(v[L]=h[L]);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,C)}function C(M,L){if(L=L||null,n.helper.isString(M))if(M=n.helper.stdExtName(M),L=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!"),E(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,L);if(!N.valid)throw Error(N.error);for(var j=0;j[ \t]+¨NBSP;<"),!L)if(window&&window.document)L=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=L.createElement("div");N.innerHTML=M;var j={preList:Y(N)};re(N);for(var z=N.childNodes,U="",J=0;J'}else X.push(K[se].innerHTML),K[se].innerHTML="",K[se].setAttribute("prenum",se.toString());return X}return U},this.setOption=function(M,L){v[M]=L},this.getOption=function(M){return v[M]},this.getOptions=function(){return v},this.addExtension=function(M,L){L=L||null,C(M,L)},this.useExtension=function(M){C(M)},this.setFlavor=function(M){if(!u.hasOwnProperty(M))throw Error(M+" flavor was not found");var L=u[M];k=M;for(var N in L)L.hasOwnProperty(N)&&(v[N]=L[N])},this.getFlavor=function(){return k},this.removeExtension=function(M){n.helper.isArray(M)||(M=[M]);for(var L=0;L? ?(['"].*['"])?\)$/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 P;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(P,k,w,A,C){if(w==="\\")return k+A;if(!n.helper.isString(v.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var E=v.ghMentionsLink.replace(/\{u}/g,C),$="";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,P,k,w,A){T=T.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var C=T,E="",$="",D=g||"",M=A||"";return/^www\./i.test(T)&&(T=T.replace(/^www\./i,"http://www.")),h.excludeTrailingPunctuationFromURLs&&w&&(E=w),h.openLinksInNewWindow&&($=' rel="noopener noreferrer" target="¨E95Eblank"'),D+'"+C+""+E+M}},x=function(h,v){return function(g,T,P){var k="mailto:";return T=T||"",P=n.subParser("unescapeSpecialChars")(P,h,v),h.encodeEmails?(k=n.helper.encodeEmailAddress(k+P),P=n.helper.encodeEmailAddress(P)):k=k+P,T+''+P+""}};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(_,x(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,x(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(P){return P=P.replace(/^[ \t]*>[ \t]?/gm,""),P=P.replace(/¨0/g,""),P=P.replace(/^[ \t]+$/gm,""),P=n.subParser("githubCodeBlocks")(P,v,g),P=n.subParser("blockGamut")(P,v,g),P=P.replace(/(^|\n)/g,"$1 "),P=P.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")(`
`+P+`
`,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(P,k,w){var A=k,C=w,E=` `;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&&(E=""),A="
"+A+E+"
",n.subParser("hashBlock")(A,v,g)+C}),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,P,k,w){var A=w;return A=A.replace(/^([ \t]*)/g,""),A=A.replace(/[ \t]*$/g,""),A=n.subParser("encodeCode")(A,v,g),A=P+""+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",P=` `,k="",w=` `,A="",C="";typeof g.metadata.parsed.doctype<"u"&&(P=" `,T=g.metadata.parsed.doctype.toString().toLowerCase(),(T==="html"||T==="html5")&&(w=''));for(var E in g.metadata.parsed)if(g.metadata.parsed.hasOwnProperty(E))switch(E.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[E]+'"',C+=' `;break;default:C+=' `}return h=P+" `+k+w+C+` `+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,P){for(var k=P,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,P=/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;return h=h.replace(T,function(k){return k.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}),h=h.replace(P,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,P,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(P,k,w,A){var C=w+n.subParser("encodeCode")(k,v,g)+A;return"¨C"+(g.gHtmlSpans.push(C)-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,P){var k=P;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"],P=function(M,L,N,j){var z=M;return N.search(/\bmarkdown\b/)!==-1&&(z=N+g.converter.makeHtml(L)+j),` ¨K`+(g.gHtmlBlocks.push(z)-1)+`K `};v.backslashEscapesHTMLTags&&(h=h.replace(/\\<(\/?[^>]+?)>/g,function(M,L){return"<"+L+">"}));for(var k=0;k]*>)","im"),C="<"+T[k]+"\\b[^>]*>",E="";(w=n.helper.regexIndexOf(h,A))!==-1;){var $=n.helper.splitAtIndex(h,w),D=n.helper.replaceRecursiveRegExp($[1],P,C,E,"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(P){return"¨C"+(g.gHtmlSpans.push(P)-1)+"C"}return h=h.replace(/<[^>]+?\/>/gi,function(P){return T(P)}),h=h.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(P){return T(P)}),h=h.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(P){return T(P)}),h=h.replace(/<[^>]+?>/gi,function(P){return T(P)}),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),P=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(P,function(C,E){var $=n.subParser("spanGamut")(E,v,g),D=v.noHeaderId?"":' id="'+A(E)+'"',M=T,L=""+$+"";return n.subParser("hashBlock")(L,v,g)}),h=h.replace(k,function(C,E){var $=n.subParser("spanGamut")(E,v,g),D=v.noHeaderId?"":' id="'+A(E)+'"',M=T+1,L=""+$+"";return n.subParser("hashBlock")(L,v,g)});var w=v.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;h=h.replace(w,function(C,E,$){var D=$;v.customizedHeaderId&&(D=$.replace(/\s?\{([^{]+?)}\s*$/,""));var M=n.subParser("spanGamut")(D,v,g),L=v.noHeaderId?"":' id="'+A($)+'"',N=T-1+E.length,j=""+M+"";return n.subParser("hashBlock")(j,v,g)});function A(C){var E,$;if(v.customizedHeaderId){var D=C.match(/\{([^{]+?)}\s*$/);D&&D[1]&&(C=D[1])}return E=C,n.helper.isString(v.prefixHeaderId)?$=v.prefixHeaderId:v.prefixHeaderId===!0?$="section-":$="",v.rawPrefixHeaderId||(E=$+E),v.ghCompatibleHeaderId?E=E.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():v.rawHeaderId?E=E.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():E=E.replace(/[^\w]/g,"").toLowerCase(),v.rawPrefixHeaderId&&(E=$+E),g.hashLinkCounts[E]?E=E+"-"+g.hashLinkCounts[E]++:g.hashLinkCounts[E]=1,E}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,P=/!\[([^\]]*?)][ \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 C($,D,M,L,N,j,z,U){return L=L.replace(/\s/g,""),E($,D,M,L,N,j,z,U)}function E($,D,M,L,N,j,z,U){var J=g.gUrls,re=g.gTitles,Y=g.gDimensions;if(M=M.toLowerCase(),U||(U=""),$.search(/\(? ?(['"].*['"])?\)$/m)>-1)L="";else if(L===""||L===null)if((M===""||M===null)&&(M=D.toLowerCase().replace(/ ?\n/g," ")),L="#"+M,!n.helper.isUndefined(J[M]))L=J[M],n.helper.isUndefined(re[M])||(U=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),L=L.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var G=''+D+'","
")}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(P,k){return T(k,"","")}),h=h.replace(/\b_(\S[\s\S]*?)_\b/g,function(P,k){return T(k,"","")})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P}),h=h.replace(/__(\S[\s\S]*?)__/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P}),h=h.replace(/_([^\s_][\s\S]*?)_/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P})),v.literalMidWordAsterisks?(h=h.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(P,k,w){return T(w,k+"","")}),h=h.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(P,k,w){return T(w,k+"","")}),h=h.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(P,k,w){return T(w,k+"","")})):(h=h.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P}),h=h.replace(/\*\*(\S[\s\S]*?)\*\*/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P}),h=h.replace(/\*([^\s*][\s\S]*?)\*/g,function(P,k){return/\S$/.test(k)?T(k,"",""):P})),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 C=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,E=/\n[ \t]*\n(?!¨0)/.test(w);return v.disableForced4SpacesIndentedSublists&&(C=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),w=w.replace(C,function($,D,M,L,N,j,z){z=z&&z.trim()!=="";var U=n.subParser("outdent")(N,v,g),J="";return j&&v.tasklists&&(J=' class="task-list-item" style="list-style-type: none;"',U=U.replace(/^[ \t]*\[(x|X| )?]/m,function(){var re='-1?(U=n.subParser("githubCodeBlocks")(U,v,g),U=n.subParser("blockGamut")(U,v,g)):(U=n.subParser("lists")(U,v,g),U=U.replace(/\n$/,""),U=n.subParser("hashHTMLBlocks")(U,v,g),U=U.replace(/\n\n+/g,` `),E?U=n.subParser("paragraphs")(U,v,g):U=n.subParser("spanGamut")(U,v,g)),U=U.replace("¨A",""),U=""+U+` `,U}),w=w.replace(/¨0/g,""),g.gListLevel--,A&&(w=w.replace(/\s+$/,"")),w}function P(w,A){if(A==="ol"){var C=w.match(/^ *(\d+)\./);if(C&&C[1]!=="1")return' start="'+C[1]+'"'}return""}function k(w,A,C){var E=v.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,$=v.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,D=A==="ul"?E:$,M="";if(w.search(D)!==-1)(function N(j){var z=j.search(D),U=P(w,A);z!==-1?(M+=` <`+A+U+`> `+T(j.slice(0,z),!!C)+" `,A=A==="ul"?"ol":"ul",D=A==="ul"?E:$,N(j.slice(z))):M+=` <`+A+U+`> `+T(j,!!C)+" `})(w);else{var L=P(w,A);M=` <`+A+L+`> `+T(w,!!C)+" `}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,C){var E=C.search(/[*+-]/g)>-1?"ul":"ol";return k(A,E,!0)}):h=h.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(w,A,C,E){var $=E.search(/[*+-]/g)>-1?"ul":"ol";return k(C,$,!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(P){g.metadata.raw=P,P=P.replace(/&/g,"&").replace(/"/g,"""),P=P.replace(/\n {4}/g," "),P.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(P,k,w){return T(w),"¨M"}),h=h.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(P,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),P=[],k=T.length,w=0;w=0?P.push(A):A.search(/\S/)>=0&&(A=n.subParser("spanGamut")(A,v,g),A=A.replace(/^([ \t]*)/g,"

"),A+="

",P.push(A))}for(k=P.length,w=0;w]*>\s*]*>/.test(E)&&($=!0)}P[w]=E}return h=P.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 P=h.regex;P instanceof RegExp||(P=new RegExp(P,"g")),v=v.replace(P,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(P){return v.simplifiedAutoLink&&(P=n.subParser("simplifiedAutoLinks")(P,v,g)),""+P+""}return v.strikethrough&&(h=g.converter._dispatch("strikethrough.before",h,v,g),h=h.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(P,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,P=/^ {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,C,E,$,D,M){return A=A.toLowerCase(),C.match(/^data:.+?\/.+?;base64,/)?g.gUrls[A]=C.replace(/\s/g,""):g.gUrls[A]=n.subParser("encodeAmpsAndAngles")(C,v,g),D?D+M:(M&&(g.gTitles[A]=M.replace(/"|'/g,""")),v.parseImgDimensions&&E&&$&&(g.gDimensions[A]={width:E,height:$}),"")};return h=h.replace(P,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,P=/^ {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 C($,D){for(var M=` `,L=$.length,N=0;N `,N=0;N `;for(var j=0;j `}return M+=`
`,M}function E($){var D,M=$.split(` `);for(D=0;D"+P+""}),h=h.replace(/\b__(\S[\s\S]*?)__\b/g,function(T,P){return""+P+""})):(h=h.replace(/___(\S[\s\S]*?)___/g,function(T,P){return/\S$/.test(P)?""+P+"":T}),h=h.replace(/__(\S[\s\S]*?)__/g,function(T,P){return/\S$/.test(P)?""+P+"":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,P){var k=parseInt(P);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,P=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,P=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,P=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 P=h.childNodes,k=P.length,w=h.getAttribute("start")||1,A=0;A"u"||P[A].tagName.toLowerCase()!=="li")){var C="";g==="ol"?C=w.toString()+". ":C="- ",T+=C+n.subParser("makeMarkdown.listItem")(P[A],v),++w}return T+=` `,T.trim()}),n.subParser("makeMarkdown.listItem",function(h,v){for(var g="",T=h.childNodes,P=T.length,k=0;k `;if(h.nodeType!==1)return"";var P=h.tagName.toLowerCase();switch(P){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,P=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,P=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(Oe)})(b5);var nle=b5.exports;const rv=li(nle);/*! * 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 HI={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 rv.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}})}},$Ne={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&&rv.setFlavor(i);for(var o in s)rv.setOption(o,s[o]);e.component("VueShowdown",HI)},VueShowdown:HI,showdown:rv};/*! * vue-router v3.6.5 * (c) 2022 Evan You * @license MIT */function Ri(t,e){for(var r in e)t[r]=e[r];return t}var ile=/[!'()*]/g,ale=function(t){return"%"+t.charCodeAt(0).toString(16)},sle=/%2C/g,Jc=function(t){return encodeURIComponent(t).replace(ile,ale).replace(sle,",")};function vO(t){try{return decodeURIComponent(t)}catch{}return t}function ole(t,e,r){e===void 0&&(e={});var n=r||ule,i;try{i=n(t||"")}catch{i={}}for(var a in e){var s=e[a];i[a]=Array.isArray(s)?s.map(zI):zI(s)}return i}var zI=function(t){return t==null||typeof t=="object"?t:String(t)};function ule(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t&&t.split("&").forEach(function(r){var n=r.replace(/\+/g," ").split("="),i=vO(n.shift()),a=n.length>0?vO(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 cle(t){var e=t?Object.keys(t).map(function(r){var n=t[r];if(n===void 0)return"";if(n===null)return Jc(r);if(Array.isArray(n)){var i=[];return n.forEach(function(a){a!==void 0&&(a===null?i.push(Jc(r)):i.push(Jc(r)+"="+Jc(a)))}),i.join("&")}return Jc(r)+"="+Jc(n)}).filter(function(r){return r.length>0}).join("&"):null;return e?"?"+e:""}var _0=/\/?$/;function w0(t,e,r,n){var i=n&&n.options.stringifyQuery,a=e.query||{};try{a=bO(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:VI(e,i),matched:t?lle(t):[]};return r&&(s.redirectedFrom=VI(r,i)),Object.freeze(s)}function bO(t){if(Array.isArray(t))return t.map(bO);if(t&&typeof t=="object"){var e={};for(var r in t)e[r]=bO(t[r]);return e}else return t}var Uo=w0(null,{path:"/"});function lle(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function VI(t,e){var r=t.path,n=t.query;n===void 0&&(n={});var i=t.hash;i===void 0&&(i="");var a=e||cle;return(r||"/")+a(n)+i}function y5(t,e,r){return e===Uo?t===e:e?t.path&&e.path?t.path.replace(_0,"")===e.path.replace(_0,"")&&(r||t.hash===e.hash&&nv(t.query,e.query)):t.name&&e.name?t.name===e.name&&(r||t.hash===e.hash&&nv(t.query,e.query)&&nv(t.params,e.params)):!1:!1}function nv(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"?nv(s,u):String(s)===String(u)})}function dle(t,e){return t.path.replace(_0,"/").indexOf(e.path.replace(_0,"/"))===0&&(!e.hash||t.hash===e.hash)&&fle(t.query,e.query)}function fle(t,e){for(var r in e)if(!(r in t))return!1;return!0}function _5(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 So(t){return t.replace(/\/(?:\s*\/)+/g,"/")}var S0=Array.isArray||function(t){return Object.prototype.toString.call(t)=="[object Array]"},Ad=T5,gle=mx,vle=wle,ble=S5,yle=O5,_le=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function mx(t,e){for(var r=[],n=0,i=0,a="",s=e&&e.delimiter||"/",o;(o=_le.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 x=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:x,asterisk:!!S,pattern:g?Tle(g):S?".*":"[^"+iv(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=E5(this.$slots.default);if(g){g.isStatic=!1;var T=g.data=Ri({},g.data);T.on=T.on||{};for(var P in T.on){var k=T.on[P];P in O&&(T.on[P]=Array.isArray(k)?k:[k])}for(var w in O)w in T.on?T.on[w].push(O[w]):T.on[w]=x;var A=g.data.attrs=Ri({},g.data.attrs);A.href=u,A["aria-current"]=S}else h.on=O}return e(this.tag,h,this.$slots.default)}};function YI(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 E5(t){if(t){for(var e,r=0;r-1&&(_.params[h]=m.params[h]);return _.path=av(x.path,_.params),f(x,_,b)}else if(_.path){_.params={};for(var v=0;v-1}function sy(t,e){return E0(t)&&t._isRouter&&(e==null||t.type===e)}function QI(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 Wle(t){return function(e,r,n){var i=!1,a=0,s=null;k5(t,function(o,u,c,l){if(typeof o=="function"&&o.cid===void 0){i=!0,a++;var d=e2(function(b){Kle(b)&&(b=b.default),o.resolved=typeof b=="function"?b:O0.extend(b),c.components[l]=b,a--,a<=0&&n()}),f=e2(function(b){var _="Failed to resolve async component "+l+": "+b;s||(s=E0(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 k5(t,e){return D5(t.map(function(r){return Object.keys(r.components).map(function(n){return e(r.components[n],r.instances[n],r,n)})}))}function D5(t){return Array.prototype.concat.apply([],t)}var Yle=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Kle(t){return t.__esModule||Yle&&t[Symbol.toStringTag]==="Module"}function e2(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 ta=function(e,r){this.router=e,this.base=qle(r),this.current=Uo,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};ta.prototype.listen=function(e){this.cb=e};ta.prototype.onReady=function(e,r){this.ready?e():(this.readyCbs.push(e),r&&this.readyErrorCbs.push(r))};ta.prototype.onError=function(e){this.errorCbs.push(e)};ta.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&&(!sy(o,gc.redirected)||s!==Uo)&&(i.ready=!0,i.readyErrorCbs.forEach(function(u){u(o)}))})};ta.prototype.confirmTransition=function(e,r,n){var i=this,a=this.current;this.pending=e;var s=function(b){!sy(b)&&E0(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(y5(e,a)&&o===u&&e.matched[o]===a.matched[u])return this.ensureURL(),e.hash&&Oo(this.router,a,e,!1),s(zle(a,e));var c=Xle(this.current.matched,e.matched),l=c.updated,d=c.deactivated,f=c.activated,p=[].concat(Zle(d),this.router.beforeHooks,Qle(l),f.map(function(b){return b.beforeEnter}),Wle(f)),m=function(b,_){if(i.pending!==e)return s(ZI(a,e));try{b(e,a,function(S){S===!1?(i.ensureURL(!0),s(Vle(a,e))):E0(S)?(i.ensureURL(!0),s(S)):typeof S=="string"||typeof S=="object"&&(typeof S.path=="string"||typeof S.name=="string")?(s(Hle(a,e)),typeof S=="object"&&S.replace?i.replace(S):i.push(S)):_(S)})}catch(S){s(S)}};QI(p,m,function(){var b=ede(f),_=b.concat(i.router.resolveHooks);QI(_,m,function(){if(i.pending!==e)return s(ZI(a,e));i.pending=null,r(e),i.router.app&&i.router.app.$nextTick(function(){_5(e)})})})};ta.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)};ta.prototype.setupListeners=function(){};ta.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Uo,this.pending=null};function qle(t){if(!t)if(kp){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 Xle(t,e){var r,n=Math.max(t.length,e.length);for(r=0;r0)){var i=this.router,a=i.options.scrollBehavior,s=To&&a;s&&this.listeners.push(M5());var o=function(){var u=n.current,c=th(n.base);n.current===Uo&&c===n._startLocation||n.transitionTo(c,function(l){s&&Oo(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){T0(So(s.base+c.fullPath)),Oo(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){wO(So(s.base+c.fullPath)),Oo(s.router,c,u,!1),i&&i(c)},a)},e.prototype.ensureURL=function(n){if(th(this.base)!==this.current.fullPath){var i=So(this.base+this.current.fullPath);n?T0(i):wO(i)}},e.prototype.getCurrentLocation=function(){return th(this.base)},e}(ta);function th(t){var e=window.location.pathname,r=e.toLowerCase(),n=t.toLowerCase();return t&&(r===n||r.indexOf(So(n+"/"))===0)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var L5=function(t){function e(r,n,i){t.call(this,r,n),!(i&&rde(this.base))&&t2()}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=To&&a;s&&this.listeners.push(M5());var o=function(){var c=n.current;t2()&&n.transitionTo(sv(),function(l){s&&Oo(n.router,l,c,!0),To||ov(l.fullPath)})},u=To?"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){r2(c.fullPath),Oo(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){ov(c.fullPath),Oo(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;sv()!==i&&(n?r2(i):ov(i))},e.prototype.getCurrentLocation=function(){return sv()},e}(ta);function rde(t){var e=th(t);if(!/^\/#/.test(e))return window.location.replace(So(t+"/#"+e)),!0}function t2(){var t=sv();return t.charAt(0)==="/"?!0:(ov("/"+t),!1)}function sv(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function SO(t){var e=window.location.href,r=e.indexOf("#"),n=r>=0?e.slice(0,r):e;return n+"#"+t}function r2(t){To?T0(SO(t)):window.location.hash=t}function ov(t){To?wO(SO(t)):window.location.replace(SO(t))}var nde=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){sy(o,gc.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}(ta),Nt=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Dle(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback=r==="history"&&!To&&e.fallback!==!1,this.fallback&&(r="hash"),kp||(r="abstract"),this.mode=r,r){case"history":this.history=new R5(this,e.base);break;case"hash":this.history=new L5(this,e.base,this.fallback);break;case"abstract":this.history=new nde(this,e.base);break}},N5={currentRoute:{configurable:!0}};Nt.prototype.match=function(e,r,n){return this.matcher.match(e,r,n)};N5.currentRoute.get=function(){return this.history&&this.history.current};Nt.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 R5||n instanceof L5){var i=function(s){var o=n.current,u=r.options.scrollBehavior,c=To&&u;c&&"fullPath"in s&&Oo(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})})}};Nt.prototype.beforeEach=function(e){return _x(this.beforeHooks,e)};Nt.prototype.beforeResolve=function(e){return _x(this.resolveHooks,e)};Nt.prototype.afterEach=function(e){return _x(this.afterHooks,e)};Nt.prototype.onReady=function(e,r){this.history.onReady(e,r)};Nt.prototype.onError=function(e){this.history.onError(e)};Nt.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)};Nt.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)};Nt.prototype.go=function(e){this.history.go(e)};Nt.prototype.back=function(){this.go(-1)};Nt.prototype.forward=function(){this.go(1)};Nt.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]})})):[]};Nt.prototype.resolve=function(e,r,n){r=r||this.history.current;var i=bx(e,r,n,this),a=this.match(i,r),s=a.redirectedFrom||a.fullPath,o=this.history.base,u=ide(o,s,this.mode);return{location:i,route:a,href:u,normalizedTo:i,resolved:a}};Nt.prototype.getRoutes=function(){return this.matcher.getRoutes()};Nt.prototype.addRoute=function(e,r){this.matcher.addRoute(e,r),this.history.current!==Uo&&this.history.transitionTo(this.history.getCurrentLocation())};Nt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Uo&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Nt.prototype,N5);var kNe=Nt;function _x(t,e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function ide(t,e,r){var n=r==="hash"?"#"+e:e;return t?So(t+"/"+n):n}Nt.install=yO;Nt.version="3.6.5";Nt.isNavigationFailure=sy;Nt.NavigationFailureType=gc;Nt.START_LOCATION=Uo;kp&&window.Vue&&window.Vue.use(Nt);var B5={exports:{}};(function(t,e){(function(n,i){t.exports=i()})(Oe,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(C,E){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(E){var $=this.getMetaData(),D=this.utils.getObjectFromKey($.keys,E);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(E,$){var D="",M="",L=void 0,N=void 0,j=void 0;if(!this.utils.is(E))return this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED),M;if(j=this.getDataFromLocalStorage(E),!j)return M;L=j,(this._isCompression||$)&&(L=b.default.decompressFromUTF16(j)),D=L,this._isBase64||$?D=p.default.decode(L):(this.getEncryptionSecret(E),this._isAES?N=S.default.decrypt(L.toString(),this.utils.encryptionSecret):this._isDES?N=O.default.decrypt(L.toString(),this.utils.encryptionSecret):this._isRabbit?N=v.default.decrypt(L.toString(),this.utils.encryptionSecret):this._isRC4&&(N=T.default.decrypt(L.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(E){return this.ls.getItem(E,!0)}},{key:"getAllKeys",value:function(){var E=this.getMetaData();return this.utils.extractKeyNames(E)||[]}},{key:"set",value:function(E,$){var D="";if(!this.utils.is(E)){this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED);return}this.getEncryptionSecret(E),String(E)!==String(this.utils.metaKey)&&(this.utils.isKeyPresent(E)||(this.utils.addToKeysList(E),this.setMetaData())),D=this.processData($),this.setDataToLocalStorage(E,D)}},{key:"setDataToLocalStorage",value:function(E,$){this.ls.setItem(E,$)}},{key:"remove",value:function(E){if(!this.utils.is(E)){this.utils.warn(this.WarningEnum.KEY_NOT_PROVIDED);return}if(E===this.utils.metaKey&&this.getAllKeys().length){this.utils.warn(this.WarningEnum.META_KEY_REMOVE);return}this.utils.isKeyPresent(E)&&(this.utils.removeFromKeysList(E),this.setMetaData()),this.ls.removeItem(E)}},{key:"removeAll",value:function(){var E=void 0,$=void 0;for(E=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-P%4*8&255;h[g+P>>>2]|=k<<24-(g+P)%4*8}else for(var P=0;P>>2]=v[P>>>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,C=4294967295;return function(){A=36969*(A&65535)+(A>>16)&C,w=18e3*(w&65535)+(w>>16)&C;var E=(A<<16)+w&C;return E/=4294967296,E+=.5,E*(s.random()>.5?1:-1)}},g=0,T;g>>2]>>>24-T%4*8&255;g.push((P>>>4).toString(16)),g.push((P&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(P))}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,P=T*4,k=g/P;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 C=0;C>>31}var T=(_<<5|_>>>27)+h+d[v];v<20?T+=(S&x|~S&O)+1518500249:v<40?T+=(S^x^O)+1859775393:v<60?T+=(S&x|S&O|x&O)-1894007588:T+=(S^x^O)-899497514,h=O,O=x,x=S<<30|S>>>2,S=_,_=T}b[0]=b[0]+_|0,b[1]=b[1]+S|0,b[2]=b[2]+x|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(),x=_.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]=x%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(x){S.push(o(x))}),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,x={},O={},h="",v="",g="",T=2,P=3,k=2,w=[],A=0,C=0,E;for(E=0;E>1}else{for(S=1,_=0;_>1}T--,T==0&&(T=Math.pow(2,k),k++),delete O[g]}else for(S=x[g],_=0;_>1;T--,T==0&&(T=Math.pow(2,k),k++),x[v]=P++,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=x[g],_=0;_>1;T--,T==0&&(T=Math.pow(2,k),k++)}for(S=2,_=0;_>1;for(;;)if(A=A<<1,C==m-1){w.push(b(A));break}else C++;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,x=4,O=3,h="",v=[],g,T,P,k,w,A,C,E={val:b(0),position:m,index:1};for(g=0;g<3;g+=1)_[g]=g;for(P=0,w=Math.pow(2,2),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;switch(P){case 0:for(P=0,w=Math.pow(2,8),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;C=o(P);break;case 1:for(P=0,w=Math.pow(2,16),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;C=o(P);break;case 2:return""}for(_[3]=C,T=C,v.push(C);;){if(E.index>p)return"";for(P=0,w=Math.pow(2,O),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;switch(C=P){case 0:for(P=0,w=Math.pow(2,8),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;_[x++]=o(P),C=x-1,S--;break;case 1:for(P=0,w=Math.pow(2,16),A=1;A!=w;)k=E.val&E.position,E.position>>=1,E.position==0&&(E.position=m,E.val=b(E.index++)),P|=(k>0?1:0)*A,A<<=1;_[x++]=o(P),C=x-1,S--;break;case 2:return v.join("")}if(S==0&&(S=Math.pow(2,O),O++),_[C])h=_[C];else if(C===x)h=T+T.charAt(0);else return null;v.push(h),_[x++]=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=[],x=[],O=[];(function(){for(var g=[],T=0;T<256;T++)T<128?g[T]=T<<1:g[T]=T<<1^283;for(var P=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[P]=w,d[w]=P;var A=g[P],C=g[A],E=g[C],$=g[w]*257^w*16843008;f[P]=$<<24|$>>>8,p[P]=$<<16|$>>>16,m[P]=$<<8|$>>>24,b[P]=$;var $=E*16843009^C*65537^A*257^P*16843008;_[w]=$<<24|$>>>8,S[w]=$<<16|$>>>16,x[w]=$<<8|$>>>24,O[w]=$,P?(P=A^g[g[g[E^A]]],k^=g[g[k]]):P=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,P=g.sigBytes/4,k=this._nRounds=P+6,w=(k+1)*4,A=this._keySchedule=[],C=0;C6&&C%P==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=h[C/P|0]<<24),A[C]=A[C-P]^E}for(var $=this._invKeySchedule=[],D=0;D>>24]]^S[l[E>>>16&255]]^x[l[E>>>8&255]]^O[l[E&255]]}}},encryptBlock:function(g,T){this._doCryptBlock(g,T,this._keySchedule,f,p,m,b,l)},decryptBlock:function(g,T){var P=g[T+1];g[T+1]=g[T+3],g[T+3]=P,this._doCryptBlock(g,T,this._invKeySchedule,_,S,x,O,d);var P=g[T+1];g[T+1]=g[T+3],g[T+3]=P},_doCryptBlock:function(g,T,P,k,w,A,C,E){for(var $=this._nRounds,D=g[T]^P[0],M=g[T+1]^P[1],L=g[T+2]^P[2],N=g[T+3]^P[3],j=4,z=1;z<$;z++){var U=k[D>>>24]^w[M>>>16&255]^A[L>>>8&255]^C[N&255]^P[j++],J=k[M>>>24]^w[L>>>16&255]^A[N>>>8&255]^C[D&255]^P[j++],re=k[L>>>24]^w[N>>>16&255]^A[D>>>8&255]^C[M&255]^P[j++],Y=k[N>>>24]^w[D>>>16&255]^A[M>>>8&255]^C[L&255]^P[j++];D=U,M=J,L=re,N=Y}var U=(E[D>>>24]<<24|E[M>>>16&255]<<16|E[L>>>8&255]<<8|E[N&255])^P[j++],J=(E[M>>>24]<<24|E[L>>>16&255]<<16|E[N>>>8&255]<<8|E[D&255])^P[j++],re=(E[L>>>24]<<24|E[N>>>16&255]<<16|E[D>>>8&255]<<8|E[M&255])^P[j++],Y=(E[N>>>24]<<24|E[D>>>16&255]<<16|E[M>>>8&255]<<8|E[L&255])^P[j++];g[T]=U,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,x=f[_+1>>>2]>>>24-(_+1)%4*8&255,O=f[_+2>>>2]>>>24-(_+2)%4*8&255,h=S<<16|x<<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|x)<<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 x=0;x<64;x++)f[x]=s.abs(s.sin(x+1))*4294967296|0})();var p=d.MD5=l.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(x,O){for(var h=0;h<16;h++){var v=O+h,g=x[v];x[v]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var T=this._hash.words,P=x[O+0],k=x[O+1],w=x[O+2],A=x[O+3],C=x[O+4],E=x[O+5],$=x[O+6],D=x[O+7],M=x[O+8],L=x[O+9],N=x[O+10],j=x[O+11],z=x[O+12],U=x[O+13],J=x[O+14],re=x[O+15],Y=T[0],G=T[1],K=T[2],X=T[3];Y=m(Y,G,K,X,P,7,f[0]),X=m(X,Y,G,K,k,12,f[1]),K=m(K,X,Y,G,w,17,f[2]),G=m(G,K,X,Y,A,22,f[3]),Y=m(Y,G,K,X,C,7,f[4]),X=m(X,Y,G,K,E,12,f[5]),K=m(K,X,Y,G,$,17,f[6]),G=m(G,K,X,Y,D,22,f[7]),Y=m(Y,G,K,X,M,7,f[8]),X=m(X,Y,G,K,L,12,f[9]),K=m(K,X,Y,G,N,17,f[10]),G=m(G,K,X,Y,j,22,f[11]),Y=m(Y,G,K,X,z,7,f[12]),X=m(X,Y,G,K,U,12,f[13]),K=m(K,X,Y,G,J,17,f[14]),G=m(G,K,X,Y,re,22,f[15]),Y=b(Y,G,K,X,k,5,f[16]),X=b(X,Y,G,K,$,9,f[17]),K=b(K,X,Y,G,j,14,f[18]),G=b(G,K,X,Y,P,20,f[19]),Y=b(Y,G,K,X,E,5,f[20]),X=b(X,Y,G,K,N,9,f[21]),K=b(K,X,Y,G,re,14,f[22]),G=b(G,K,X,Y,C,20,f[23]),Y=b(Y,G,K,X,L,5,f[24]),X=b(X,Y,G,K,J,9,f[25]),K=b(K,X,Y,G,A,14,f[26]),G=b(G,K,X,Y,M,20,f[27]),Y=b(Y,G,K,X,U,5,f[28]),X=b(X,Y,G,K,w,9,f[29]),K=b(K,X,Y,G,D,14,f[30]),G=b(G,K,X,Y,z,20,f[31]),Y=_(Y,G,K,X,E,4,f[32]),X=_(X,Y,G,K,M,11,f[33]),K=_(K,X,Y,G,j,16,f[34]),G=_(G,K,X,Y,J,23,f[35]),Y=_(Y,G,K,X,k,4,f[36]),X=_(X,Y,G,K,C,11,f[37]),K=_(K,X,Y,G,D,16,f[38]),G=_(G,K,X,Y,N,23,f[39]),Y=_(Y,G,K,X,U,4,f[40]),X=_(X,Y,G,K,P,11,f[41]),K=_(K,X,Y,G,A,16,f[42]),G=_(G,K,X,Y,$,23,f[43]),Y=_(Y,G,K,X,L,4,f[44]),X=_(X,Y,G,K,z,11,f[45]),K=_(K,X,Y,G,re,16,f[46]),G=_(G,K,X,Y,w,23,f[47]),Y=S(Y,G,K,X,P,6,f[48]),X=S(X,Y,G,K,D,10,f[49]),K=S(K,X,Y,G,J,15,f[50]),G=S(G,K,X,Y,E,21,f[51]),Y=S(Y,G,K,X,z,6,f[52]),X=S(X,Y,G,K,A,10,f[53]),K=S(K,X,Y,G,N,15,f[54]),G=S(G,K,X,Y,k,21,f[55]),Y=S(Y,G,K,X,M,6,f[56]),X=S(X,Y,G,K,re,10,f[57]),K=S(K,X,Y,G,$,15,f[58]),G=S(G,K,X,Y,U,21,f[59]),Y=S(Y,G,K,X,C,6,f[60]),X=S(X,Y,G,K,j,10,f[61]),K=S(K,X,Y,G,w,15,f[62]),G=S(G,K,X,Y,L,21,f[63]),T[0]=T[0]+Y|0,T[1]=T[1]+G|0,T[2]=T[2]+K|0,T[3]=T[3]+X|0},_doFinalize:function(){var x=this._data,O=x.words,h=this._nDataBytes*8,v=x.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,x.sigBytes=(O.length+1)*4,this._process();for(var P=this._hash,k=P.words,w=0;w<4;w++){var A=k[w];k[w]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return P},clone:function(){var x=l.clone.call(this);return x._hash=this._hash.clone(),x}});function m(x,O,h,v,g,T,P){var k=x+(O&h|~O&v)+g+P;return(k<>>32-T)+O}function b(x,O,h,v,g,T,P){var k=x+(O&v|h&~v)+g+P;return(k<>>32-T)+O}function _(x,O,h,v,g,T,P){var k=x+(O^h^v)+g+P;return(k<>>32-T)+O}function S(x,O,h,v,g,T,P){var k=x+(h^(O|~v))+g+P;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(),x=S.words,O=b.keySize,h=b.iterations;x.length>>2]&255;E.sigBytes-=$}};u.BlockCipher=_.extend({cfg:_.cfg.extend({mode:O,padding:v}),reset:function(){_.reset.call(this);var E=this.cfg,$=E.iv,D=E.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(E,$){this._mode.processBlock(E,$)},_doFinalize:function(){var E=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){E.pad(this._data,this.blockSize);var $=this._process(!0)}else{var $=this._process(!0);E.unpad($)}return $},blockSize:128/32});var g=u.CipherParams=c.extend({init:function(E){this.mixIn(E)},toString:function(E){return(E||this.formatter).stringify(this)}}),T=o.format={},P=T.OpenSSL={stringify:function(E){var $=E.ciphertext,D=E.salt;if(D)var M=l.create([1398893684,1701076831]).concat(D).concat($);else var M=$;return M.toString(p)},parse:function(E){var $=p.parse(E),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:P}),encrypt:function(E,$,D,M){M=this.cfg.extend(M);var L=E.createEncryptor(D,M),N=L.finalize($),j=L.cfg;return g.create({ciphertext:N,key:D,iv:j.iv,algorithm:E,mode:j.mode,padding:j.padding,blockSize:E.blockSize,formatter:M.format})},decrypt:function(E,$,D,M){M=this.cfg.extend(M),$=this._parse($,M.format);var L=E.createDecryptor(D,M).finalize($.ciphertext);return L},_parse:function(E,$){return typeof E=="string"?$.parse(E,this):E}}),w=o.kdf={},A=w.OpenSSL={execute:function(E,$,D,M){M||(M=l.random(64/8));var L=b.create({keySize:$+D}).compute(E,M),N=l.create(L.words.slice($),D*4);return L.sigBytes=$*4,g.create({key:L,iv:N,salt:M})}},C=u.PasswordBasedCipher=k.extend({cfg:k.cfg.extend({kdf:A}),encrypt:function(E,$,D,M){M=this.cfg.extend(M);var L=M.kdf.execute(D,E.keySize,E.ivSize);M.iv=L.iv;var N=k.encrypt.call(this,E,$,L.key,M);return N.mixIn(L),N},decrypt:function(E,$,D,M){M=this.cfg.extend(M),$=this._parse($,M.format);var L=M.kdf.execute(D,E.keySize,E.ivSize,$.salt);M.iv=L.iv;var N=k.decrypt.call(this,E,$,L.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 P=d[T]-1;g[T]=v[P>>>5]>>>31-P%32&1}for(var k=this._subKeys=[],w=0;w<16;w++){for(var A=k[w]=[],C=p[w],T=0;T<24;T++)A[T/6|0]|=g[(f[T]-1+C)%28]<<31-T%6,A[4+(T/6|0)]|=g[28+(f[T+24]-1+C)%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 E=this._invSubKeys=[],T=0;T<16;T++)E[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),x.call(this,2,858993459),x.call(this,8,16711935),S.call(this,1,1431655765);for(var T=0;T<16;T++){for(var P=g[T],k=this._lBlock,w=this._rBlock,A=0,C=0;C<8;C++)A|=m[C][((w^P[C])&b[C])>>>0];this._lBlock=w,this._rBlock=k^A}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,S.call(this,1,1431655765),x.call(this,8,16711935),x.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 x=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]^=x[S+4&7];if(_){var h=_.words,v=h[0],g=h[1],T=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,P=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,k=T>>>16|P&4294901760,w=P<<16|T&65535;O[0]^=T,O[1]^=k,O[2]^=P,O[3]^=w,O[4]^=T,O[5]^=k,O[6]^=P,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 x=0;x<4;x++)l[x]=(l[x]<<8|l[x]>>>24)&16711935|(l[x]<<24|l[x]>>>8)&4278255360,b[_+x]^=l[x]},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 x=b[S]+_[S],O=x&65535,h=x>>>16,v=((O*O>>>17)+O*h>>>15)+h*h,g=((x&4294901760)*x|0)+((x&65535)*x|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,x=0;S<256;S++){var O=S%b,h=m[O>>>2]>>>24-O%4*8&255;x=(x+_[S]+h)%256;var v=_[S];_[S]=_[x],_[x]=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 x=p[m];p[m]=p[b],p[b]=x,_|=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})}])})})(B5);var ade=B5.exports;const DNe=li(ade);/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */function sde(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 ode=typeof window<"u"?window:typeof global<"u"?global:{},Zc=ode.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ude(t){Zc&&(t._devtoolHook=Zc,Zc.emit("vuex:init",t),Zc.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(e,r){Zc.emit("vuex:mutation",e,r)},{prepend:!0}),t.subscribeAction(function(e,r){Zc.emit("vuex:action",e,r)},{prepend:!0}))}function cde(t,e){return t.filter(e)[0]}function OO(t,e){if(e===void 0&&(e=[]),t===null||typeof t!="object")return t;var r=cde(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]=OO(t[i],e)}),n}function Md(t,e){Object.keys(t).forEach(function(r){return e(t[r],r)})}function F5(t){return t!==null&&typeof t=="object"}function lde(t){return t&&typeof t.then=="function"}function dde(t,e){return function(){return t(e)}}var ra=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)||{}},j5={namespaced:{configurable:!0}};j5.namespaced.get=function(){return!!this._rawModule.namespaced};ra.prototype.addChild=function(e,r){this._children[e]=r};ra.prototype.removeChild=function(e){delete this._children[e]};ra.prototype.getChild=function(e){return this._children[e]};ra.prototype.hasChild=function(e){return e in this._children};ra.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)};ra.prototype.forEachChild=function(e){Md(this._children,e)};ra.prototype.forEachGetter=function(e){this._rawModule.getters&&Md(this._rawModule.getters,e)};ra.prototype.forEachAction=function(e){this._rawModule.actions&&Md(this._rawModule.actions,e)};ra.prototype.forEachMutation=function(e){this._rawModule.mutations&&Md(this._rawModule.mutations,e)};Object.defineProperties(ra.prototype,j5);var vc=function(e){this.register([],e,!1)};vc.prototype.get=function(e){return e.reduce(function(r,n){return r.getChild(n)},this.root)};vc.prototype.getNamespace=function(e){var r=this.root;return e.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};vc.prototype.update=function(e){H5([],this.root,e)};vc.prototype.register=function(e,r,n){var i=this;n===void 0&&(n=!0);var a=new ra(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&&Md(r.modules,function(o,u){i.register(e.concat(u),o,n)})};vc.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)};vc.prototype.isRegistered=function(e){var r=this.get(e.slice(0,-1)),n=e[e.length-1];return r?r.hasChild(n):!1};function H5(t,e,r){if(e.update(r),r.modules)for(var n in r.modules){if(!e.getChild(n))return;H5(t.concat(n),e.getChild(n),r.modules[n])}}var xn,di=function(e){var r=this;e===void 0&&(e={}),!xn&&typeof window<"u"&&window.Vue&&U5(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 vc(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new xn,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;oy(this,c,[],this._modules.root),Sx(this,c),n.forEach(function(d){return d(r)});var l=e.devtools!==void 0?e.devtools:xn.config.devtools;l&&ude(this)},wx={state:{configurable:!0}};wx.state.get=function(){return this._vm._data.$$state};wx.state.set=function(t){};di.prototype.commit=function(e,r,n){var i=this,a=x0(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)}))};di.prototype.dispatch=function(e,r){var n=this,i=x0(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)})})}};di.prototype.subscribe=function(e,r){return z5(e,this._subscribers,r)};di.prototype.subscribeAction=function(e,r){var n=typeof e=="function"?{before:e}:e;return z5(n,this._actionSubscribers,r)};di.prototype.watch=function(e,r,n){var i=this;return this._watcherVM.$watch(function(){return e(i.state,i.getters)},r,n)};di.prototype.replaceState=function(e){var r=this;this._withCommit(function(){r._vm._data.$$state=e})};di.prototype.registerModule=function(e,r,n){n===void 0&&(n={}),typeof e=="string"&&(e=[e]),this._modules.register(e,r),oy(this,this.state,e,this._modules.get(e),n.preserveState),Sx(this,this.state)};di.prototype.unregisterModule=function(e){var r=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=Ox(r.state,e.slice(0,-1));xn.delete(n,e[e.length-1])}),V5(this)};di.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};di.prototype.hotUpdate=function(e){this._modules.update(e),V5(this,!0)};di.prototype._withCommit=function(e){var r=this._committing;this._committing=!0,e(),this._committing=r};Object.defineProperties(di.prototype,wx);function z5(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 V5(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;oy(t,r,[],t._modules.root,!0),Sx(t,r,e)}function Sx(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,a={};Md(i,function(o,u){a[u]=dde(o,t),Object.defineProperty(t.getters,u,{get:function(){return t._vm[u]},enumerable:!0})});var s=xn.config.silent;xn.config.silent=!0,t._vm=new xn({data:{$$state:e},computed:a}),xn.config.silent=s,t.strict&&vde(t),n&&(r&&t._withCommit(function(){n._data.$$state=null}),xn.nextTick(function(){return n.$destroy()}))}function oy(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=Ox(e,r.slice(0,-1)),u=r[r.length-1];t._withCommit(function(){xn.set(o,u,n.state)})}var c=n.context=fde(t,s,r);n.forEachMutation(function(l,d){var f=s+d;pde(t,f,l,c)}),n.forEachAction(function(l,d){var f=l.root?d:s+d,p=l.handler||l;mde(t,f,p,c)}),n.forEachGetter(function(l,d){var f=s+d;gde(t,f,l,c)}),n.forEachChild(function(l,d){oy(t,e,r.concat(d),l,i)})}function fde(t,e,r){var n=e==="",i={dispatch:n?t.dispatch:function(a,s,o){var u=x0(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=x0(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 hde(t,e)}},state:{get:function(){return Ox(t.state,r)}}}),i}function hde(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 pde(t,e,r,n){var i=t._mutations[e]||(t._mutations[e]=[]);i.push(function(s){r.call(t,n.state,s)})}function mde(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 lde(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(u){throw t._devtoolHook.emit("vuex:error",u),u}):o})}function gde(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(a){return r(n.state,n.getters,a.state,a.getters)})}function vde(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function Ox(t,e){return e.reduce(function(r,n){return r[n]},t)}function x0(t,e,r){return F5(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function U5(t){xn&&t===xn||(xn=t,sde(xn))}var G5=cy(function(t,e){var r={};return uy(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=ly(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}),W5=cy(function(t,e){var r={};return uy(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=ly(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}),Y5=cy(function(t,e){var r={};return uy(e).forEach(function(n){var i=n.key,a=n.val;a=t+a,r[i]=function(){if(!(t&&!ly(this.$store,"mapGetters",t)))return this.$store.getters[a]},r[i].vuex=!0}),r}),K5=cy(function(t,e){var r={};return uy(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=ly(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}),bde=function(t){return{mapState:G5.bind(null,t),mapGetters:Y5.bind(null,t),mapMutations:W5.bind(null,t),mapActions:K5.bind(null,t)}};function uy(t){return yde(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 yde(t){return Array.isArray(t)||F5(t)}function cy(t){return function(e,r){return typeof e!="string"?(r=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),t(e,r)}}function ly(t,e,r){var n=t._modulesNamespaceMap[r];return n}function _de(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=OO(l.state);typeof c>"u"||(o&&l.subscribe(function(f,p){var m=OO(p);if(r(f,d,m)){var b=a2(),_=i(f),S="mutation "+f.type+b;n2(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)),i2(c)}d=m}),u&&l.subscribeAction(function(f,p){if(a(f,p)){var m=a2(),b=s(f),_="action "+f.type+m;n2(c,_,e),c.log("%c action","color: #03A9F4; font-weight: bold",b),i2(c)}}))}}function n2(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch{t.log(e)}}function i2(t){try{t.groupEnd()}catch{t.log("—— log end ——")}}function a2(){var t=new Date;return" @ "+Vm(t.getHours(),2)+":"+Vm(t.getMinutes(),2)+":"+Vm(t.getSeconds(),2)+"."+Vm(t.getMilliseconds(),3)}function wde(t,e){return new Array(e+1).join(t)}function Vm(t,e){return wde("0",e-t.toString().length)+t}var Sde={Store:di,install:U5,version:"3.6.2",mapState:G5,mapMutations:W5,mapGetters:Y5,mapActions:K5,createNamespacedHelpers:bde,createLogger:_de};const INe=Sde;var Ode=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===Tde}(e)}(t)},Tde=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function rh(t,e){return e.clone!==!1&&e.isMergeableObject(t)?sd(Array.isArray(t)?[]:{},t,e):t}function Ede(t,e,r){return t.concat(e).map(function(n){return rh(n,r)})}function s2(t){return Object.keys(t).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(r){return e.propertyIsEnumerable(r)}):[]}(t))}function o2(t,e){try{return e in t}catch{return!1}}function sd(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Ede,r.isMergeableObject=r.isMergeableObject||Ode,r.cloneUnlessOtherwiseSpecified=rh;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)&&s2(i).forEach(function(u){o[u]=rh(i[u],s)}),s2(a).forEach(function(u){(function(c,l){return o2(c,l)&&!(Object.hasOwnProperty.call(c,l)&&Object.propertyIsEnumerable.call(c,l))})(i,u)||(o[u]=o2(i,u)&&s.isMergeableObject(a[u])?function(c,l){if(!l.customMerge)return sd;var d=l.customMerge(c);return typeof d=="function"?d:sd}(u,s)(i[u],a[u],s):rh(a[u],s))}),o}(t,e,r):rh(e,r)}sd.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,n){return sd(r,n,e)},{})};var xde=sd;function RNe(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,x,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()]=x),_}(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:xde(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)})}}const q5=Object.prototype.toString;function X5(t){switch(q5.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return As(t,Error)}}function $d(t,e){return q5.call(t)===`[object ${e}]`}function Tx(t){return $d(t,"ErrorEvent")}function u2(t){return $d(t,"DOMError")}function Pde(t){return $d(t,"DOMException")}function Ra(t){return $d(t,"String")}function Ex(t){return typeof t=="object"&&t!==null&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function xx(t){return t===null||Ex(t)||typeof t!="object"&&typeof t!="function"}function od(t){return $d(t,"Object")}function dy(t){return typeof Event<"u"&&As(t,Event)}function Cde(t){return typeof Element<"u"&&As(t,Element)}function Ade(t){return $d(t,"RegExp")}function Dp(t){return!!(t&&t.then&&typeof t.then=="function")}function Mde(t){return od(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function J5(t){return typeof t=="number"&&t!==t}function As(t,e){try{return t instanceof e}catch{return!1}}function Z5(t){return!!(typeof t=="object"&&t!==null&&(t.__isVue||t._isVue))}function Fl(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}function c2(t,e){if(!Array.isArray(t))return"";const r=[];for(let n=0;n$de(t,n,r))}function Q5(t,e,r=250,n,i,a,s){if(!a.exception||!a.exception.values||!s||!As(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=kde(TO(t,e,i,s.originalException,n,a.exception.values,o,0),r))}function TO(t,e,r,n,i,a,s,o){if(a.length>=r+1)return a;let u=[...a];if(As(n[i],Error)){l2(s,o);const c=t(e,n[i]),l=u.length;d2(c,i,l,o),u=TO(t,e,r,n[i],i,[c,...u],c,l)}return Array.isArray(n.errors)&&n.errors.forEach((c,l)=>{if(As(c,Error)){l2(s,o);const d=t(e,c),f=u.length;d2(d,`errors[${l}]`,f,o),u=TO(t,e,r,c,i,[d,...u],d,f)}}),u}function l2(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function d2(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 kde(t,e){return t.map(r=>(r.value&&(r.value=Fl(r.value,e)),r))}function Um(t){return t&&t.Math==Math?t:void 0}const Fe=typeof globalThis=="object"&&Um(globalThis)||typeof window=="object"&&Um(window)||typeof self=="object"&&Um(self)||typeof global=="object"&&Um(global)||function(){return this}()||{};function Px(){return Fe}function eH(t,e,r){const n=r||Fe,i=n.__SENTRY__=n.__SENTRY__||{};return i[t]||(i[t]=e())}const jl=Px(),Dde=80;function tc(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||Dde;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 Ide(t,e){const r=t,n=[];let i,a,s,o,u;if(!r||!r.tagName)return"";if(jl.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&&Ra(i))for(a=i.split(/\s+/),u=0;u"u"||__SENTRY_DEBUG__,Rde="Sentry Logger ",EO=["debug","info","warn","error","log","assert","trace"],P0={};function ja(t){if(!("console"in Fe))return t();const e=Fe.console,r={},n=Object.keys(P0);n.forEach(i=>{const a=P0[i];r[i]=e[i],e[i]=a});try{return t()}finally{n.forEach(i=>{e[i]=r[i]})}}function Lde(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return Dd?EO.forEach(r=>{e[r]=(...n)=>{t&&ja(()=>{Fe.console[r](`${Rde}[${r}]:`,...n)})}}):EO.forEach(r=>{e[r]=()=>{}}),e}const W=Lde(),Nde=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Bde(t){return t==="http"||t==="https"}function Id(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 iH(t){const e=Nde.exec(t);if(!e){ja(()=>{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 aH({host:a,pass:i,path:u,projectId:c,port:s,protocol:r,publicKey:n})}function aH(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function Fde(t){if(!Dd)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+$/)?Bde(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 sH(t){const e=typeof t=="string"?iH(t):aH(t);if(!(!e||!Fde(e)))return e}class Pa 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 Ir(t,e,r){if(!(e in t))return;const n=t[e],i=r(n);typeof i=="function"&&oH(i,n),t[e]=i}function Jh(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{Dd&&W.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function oH(t,e){try{const r=e.prototype||{};t.prototype=e.prototype=r,Jh(t,"__sentry_original__",e)}catch{}}function Cx(t){return t.__sentry_original__}function jde(t){return Object.keys(t).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`).join("&")}function uH(t){if(X5(t))return{message:t.message,name:t.name,stack:t.stack,...h2(t)};if(dy(t)){const e={type:t.type,target:f2(t.target),currentTarget:f2(t.currentTarget),...h2(t)};return typeof CustomEvent<"u"&&As(t,CustomEvent)&&(e.detail=t.detail),e}else return t}function f2(t){try{return Cde(t)?tc(t):Object.prototype.toString.call(t)}catch{return""}}function h2(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 Hde(t,e=40){const r=Object.keys(uH(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return Fl(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:Fl(i,e)}return""}function Kr(t){return xO(t,new Map)}function xO(t,e){if(zde(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]=xO(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(xO(i,e))}),n}return t}function zde(t){if(!od(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}const cH=50,p2=/\(error: (.*)\)/,m2=/captureMessage|captureException/;function lH(...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=p2.test(o)?o.replace(p2,"$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>=cH)break}}return Ude(i)}}function Vde(t){return Array.isArray(t)?lH(...t):t}function Ude(t){if(!t.length)return[];const e=Array.from(t);return/sentryWrapped/.test(e[e.length-1].function||"")&&e.pop(),e.reverse(),m2.test(e[e.length-1].function||"")&&(e.pop(),m2.test(e[e.length-1].function||"")&&e.pop()),e.slice(0,cH).map(r=>({...r,filename:r.filename||e[e.length-1].filename,function:r.function||"?"}))}const Zw="";function Ms(t){try{return!t||typeof t!="function"?Zw:t.name||Zw}catch{return Zw}}const uv={},g2={};function bc(t,e){uv[t]=uv[t]||[],uv[t].push(e)}function yc(t,e){g2[t]||(e(),g2[t]=!0)}function Hi(t,e){const r=t&&uv[t];if(r)for(const n of r)try{n(e)}catch(i){Dd&&W.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Ms(n)} Error:`,i)}}function Gde(t){const e="console";bc(e,t),yc(e,Wde)}function Wde(){"console"in Fe&&EO.forEach(function(t){t in Fe.console&&Ir(Fe.console,t,function(e){return P0[t]=e,function(...r){Hi("console",{args:r,level:t});const i=P0[t];i&&i.apply(Fe.console,r)}})})}function Ft(){const t=Fe,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 dH(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function oo(t){const{message:e,event_id:r}=t;if(e)return e;const n=dH(t);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"":r||""}function PO(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 Zh(t,e){const r=dH(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 v2(t){if(t&&t.__sentry_captured__)return!0;try{Jh(t,"__sentry_captured__",!0)}catch{}return!1}function Ax(t){return Array.isArray(t)?t:[t]}const ml=Fe,Yde=1e3;let b2,CO,AO;function fH(t){const e="dom";bc(e,t),yc(e,Kde)}function Kde(){if(!ml.document)return;const t=Hi.bind(null,"dom"),e=y2(t,!0);ml.document.addEventListener("click",e,!1),ml.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(r=>{const n=ml[r]&&ml[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Ir(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=y2(t);l.handler=d,i.call(this,a,d,o)}l.refCount++}catch{}return i.call(this,a,s,o)}}),Ir(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 qde(t){if(t.type!==CO)return!1;try{if(!t.target||t.target._sentryId!==AO)return!1}catch{}return!0}function Xde(t,e){return t!=="keypress"?!1:!e||!e.tagName?!0:!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable)}function y2(t,e=!1){return r=>{if(!r||r._sentryCaptured)return;const n=Jde(r);if(Xde(r.type,n))return;Jh(r,"_sentryCaptured",!0),n&&!n._sentryId&&Jh(n,"_sentryId",Ft());const i=r.type==="keypress"?"input":r.type;qde(r)||(t({event:r,name:i,global:e}),CO=r.type,AO=n?n._sentryId:void 0),clearTimeout(b2),b2=ml.setTimeout(()=>{AO=void 0,CO=void 0},Yde)}}function Jde(t){try{return t.target}catch{return null}}const MO=Px();function hH(){if(!("fetch"in MO))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function $O(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function Zde(){if(typeof EdgeRuntime=="string")return!0;if(!hH())return!1;if($O(MO.fetch))return!0;let t=!1;const e=MO.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=$O(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Dd&&W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return t}function Mx(t){const e="fetch";bc(e,t),yc(e,Qde)}function Qde(){Zde()&&Ir(Fe,"fetch",function(t){return function(...e){const{method:r,url:n}=efe(e),i={args:e,fetchData:{method:r,url:n},startTimestamp:Date.now()};return Hi("fetch",{...i}),t.apply(Fe,e).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Hi("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Hi("fetch",s),a})}})}function kO(t,e){return!!t&&typeof t=="object"&&!!t[e]}function _2(t){return typeof t=="string"?t:t?kO(t,"url")?t.url:t.toString?t.toString():"":""}function efe(t){if(t.length===0)return{method:"GET",url:""};if(t.length===2){const[r,n]=t;return{url:_2(r),method:kO(n,"method")?String(n.method).toUpperCase():"GET"}}const e=t[0];return{url:_2(e),method:kO(e,"method")?String(e.method).toUpperCase():"GET"}}let Gm=null;function pH(t){const e="error";bc(e,t),yc(e,tfe)}function tfe(){Gm=Fe.onerror,Fe.onerror=function(t,e,r,n,i){return Hi("error",{column:n,error:i,line:r,msg:t,url:e}),Gm&&!Gm.__SENTRY_LOADER__?Gm.apply(this,arguments):!1},Fe.onerror.__SENTRY_INSTRUMENTED__=!0}let Wm=null;function mH(t){const e="unhandledrejection";bc(e,t),yc(e,rfe)}function rfe(){Wm=Fe.onunhandledrejection,Fe.onunhandledrejection=function(t){return Hi("unhandledrejection",t),Wm&&!Wm.__SENTRY_LOADER__?Wm.apply(this,arguments):!0},Fe.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Ym=Px();function nfe(){const t=Ym.chrome,e=t&&t.app&&t.app.runtime,r="history"in Ym&&!!Ym.history.pushState&&!!Ym.history.replaceState;return!e&&r}const xf=Fe;let Km;function Ip(t){const e="history";bc(e,t),yc(e,ife)}function ife(){if(!nfe())return;const t=xf.onpopstate;xf.onpopstate=function(...r){const n=xf.location.href,i=Km;if(Km=n,Hi("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=Km,s=String(i);Km=s,Hi("history",{from:a,to:s})}return r.apply(this,n)}}Ir(xf.history,"pushState",e),Ir(xf.history,"replaceState",e)}const afe=Fe,fo="__sentry_xhr_v3__";function $x(t){const e="xhr";bc(e,t),yc(e,sfe)}function sfe(){if(!afe.XMLHttpRequest)return;const t=XMLHttpRequest.prototype;Ir(t,"open",function(e){return function(...r){const n=Date.now(),i=Ra(r[0])?r[0].toUpperCase():void 0,a=ofe(r[1]);if(!i||!a)return e.apply(this,r);this[fo]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[fo];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const u={args:[i,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};Hi("xhr",u)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Ir(this,"onreadystatechange",function(o){return function(...u){return s(),o.apply(this,u)}}):this.addEventListener("readystatechange",s),Ir(this,"setRequestHeader",function(o){return function(...u){const[c,l]=u,d=this[fo];return d&&Ra(c)&&Ra(l)&&(d.request_headers[c.toLowerCase()]=l),o.apply(this,u)}}),e.apply(this,r)}}),Ir(t,"send",function(e){return function(...r){const n=this[fo];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 Hi("xhr",i),e.apply(this,r)}})}function ofe(t){if(Ra(t))return t;try{return t.toString()}catch{}}function ufe(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function cfe(){return"npm"}function lfe(){return!ufe()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function DO(){return typeof window<"u"&&(!lfe()||dfe())}function dfe(){return Fe.process!==void 0&&Fe.process.type==="renderer"}function ffe(){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 IO(t,e,r=1/0,n=1/0,i=ffe()){const[a,s]=i;if(e==null||["number","boolean","string"].includes(typeof e)&&!J5(e))return e;const o=hfe(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 IO("",p,u-1,n,i)}catch{}const l=Array.isArray(e)?[]:{};let d=0;const f=uH(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]=IO(p,m,u-1,n,i),d++}return s(e),l}function hfe(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(Z5(e))return"[VueViewModel]";if(Mde(e))return"[SyntheticEvent]";if(typeof e=="number"&&e!==e)return"[NaN]";if(typeof e=="function")return`[Function: ${Ms(e)}]`;if(typeof e=="symbol")return`[${String(e)}]`;if(typeof e=="bigint")return`[BigInt: ${String(e)}]`;const r=pfe(e);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function pfe(t){const e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}function mfe(t){return~-encodeURI(t).split(/%..|./).length}function gfe(t){return mfe(JSON.stringify(t))}var ss;(function(t){t[t.PENDING=0]="PENDING";const r=1;t[t.RESOLVED=r]="RESOLVED";const n=2;t[t.REJECTED=n]="REJECTED"})(ss||(ss={}));function ud(t){return new Jn(e=>{e(t)})}function kx(t){return new Jn((e,r)=>{r(t)})}class Jn{constructor(e){Jn.prototype.__init.call(this),Jn.prototype.__init2.call(this),Jn.prototype.__init3.call(this),Jn.prototype.__init4.call(this),this._state=ss.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(r){this._reject(r)}}then(e,r){return new Jn((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 Jn((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(ss.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(ss.REJECTED,e)}}__init3(){this._setResult=(e,r)=>{if(this._state===ss.PENDING){if(Dp(r)){r.then(this._resolve,this._reject);return}this._state=e,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ss.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(r=>{r[0]||(this._state===ss.RESOLVED&&r[1](this._value),this._state===ss.REJECTED&&r[2](this._value),r[0]=!0)})}}}function vfe(t){const e=[];function r(){return t===void 0||e.lengthn(o)).then(null,()=>n(o).then(null,()=>{})),o}function a(s){return new Jn((o,u)=>{let c=e.length;if(!c)return o(!0);const l=setTimeout(()=>{s&&s>0&&o(!1)},s);e.forEach(d=>{ud(d).then(()=>{--c||(clearTimeout(l),o(!0))},u)})})}return{$:e,add:i,drain:a}}function cv(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 bfe=["fatal","error","warning","log","info","debug"];function yfe(t){return t==="warn"?"warning":bfe.includes(t)?t:"log"}const vH=1e3;function Rp(){return Date.now()/vH}function _fe(){const{performance:t}=Fe;if(!t||!t.now)return Rp;const e=Date.now()-t.now(),r=t.timeOrigin==null?e:t.timeOrigin;return()=>(r+t.now())/vH}const Go=_fe(),gn=(()=>{const{performance:t}=Fe;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=w2(i);for(const s of Object.keys(a))n[s]=a[s];return n},{});else{if(!t)return;e=w2(t)}const r=Object.entries(e).reduce((n,[i,a])=>{if(i.match(wfe)){const s=i.slice(bH.length);n[s]=a}return n},{});if(Object.keys(r).length>0)return r}function yH(t){if(!t)return;const e=Object.entries(t).reduce((r,[n,i])=>(i&&(r[`${bH}${n}`]=i),r),{});return Tfe(e)}function w2(t){return t.split(",").map(e=>e.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((e,[r,n])=>(e[r]=n,e),{})}function Tfe(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>Sfe?(Dd&&W.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s},"")}const Efe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function _H(t){if(!t)return;const e=t.match(Efe);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 Dx(t,e){const r=_H(t),n=Ofe(e),{traceId:i,parentSpanId:a,parentSampled:s}=r||{};return r?{traceparentData:r,dynamicSamplingContext:n||{},propagationContext:{traceId:i||Ft(),parentSpanId:a||Ft().substring(16),spanId:Ft().substring(16),sampled:s,dsc:n||{}}}:{traceparentData:r,dynamicSamplingContext:void 0,propagationContext:{traceId:i||Ft(),spanId:Ft().substring(16)}}}function Ix(t=Ft(),e=Ft().substring(16),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}function _c(t,e=[]){return[t,e]}function xfe(t,e){const[r,n]=t;return[r,[...n,e]]}function cd(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 Pfe(t,e){return cd(t,(r,n)=>e.includes(n))}function LO(t,e){return(e||new TextEncoder).encode(t)}function wH(t,e){const[r,n]=t;let i=JSON.stringify(r);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[LO(i,e),s]:i.push(typeof s=="string"?LO(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(Ea(u))}a(c)}}return typeof i=="string"?i:Cfe(i)}function Cfe(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 Afe(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 Mfe(t,e){const r=typeof t.data=="string"?LO(t.data,e):t.data;return[Kr({type:"attachment",length:r.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType}),r]}const $fe={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 S2(t){return $fe[t]}function Rx(t){if(!t||!t.sdk)return;const{name:e,version:r}=t.sdk;return{name:e,version:r}}function SH(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:Id(n)},...i&&{trace:Kr({...i})}}}function kfe(t,e,r){const n=[{type:"client_report"},{timestamp:r||Rp(),discarded_events:t}];return _c(e?{dsn:e}:{},[n])}const Dfe=60*1e3;function OH(t,e=Date.now()){const r=parseInt(`${t}`,10);if(!isNaN(r))return r*1e3;const n=Date.parse(`${t}`);return isNaN(n)?Dfe:n-e}function Ife(t,e){return t[e]||t.all||0}function TH(t,e,r=Date.now()){return Ife(t,e)>r}function EH(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+OH(s,n):e===429&&(i.all=n+60*1e3);return i}function Rfe(t,e){return t(e.stack||"",1)}function Lfe(t,e){const r={type:e.name||e.constructor.name,value:e.message},n=Rfe(t,e);return n.length&&(r.stacktrace={frames:n}),r}function Nfe(t,e){return t??e()}function lv(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__,Lp="production";function Lx(){return eH("globalEventProcessors",()=>[])}function xH(t){Lx().push(t)}function C0(t,e,r,n=0){return new Jn((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`),Dp(o)?o.then(u=>C0(t,u,r,n+1).then(i)).then(null,a):C0(t,o,r,n+1).then(i).then(null,a)}})}function PH(t){const e=Go(),r={sid:Ft(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Bfe(r)};return t&&rc(r,t),r}function rc(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||Go(),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:Ft()),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 CH(t,e){let r={};e?r={status:e}:t.status==="ok"&&(r={status:"exited"}),rc(t,r)}function Bfe(t){return Kr({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 Ffe=0,AH=1;function Nx(t){const{spanId:e,traceId:r}=t.spanContext(),{data:n,op:i,parent_span_id:a,status:s,tags:o,origin:u}=xt(t);return Kr({data:n,op:i,parent_span_id:a,span_id:e,status:s,tags:o,trace_id:r,origin:u})}function fy(t){const{traceId:e,spanId:r}=t.spanContext(),n=MH(t);return Ix(e,r,n)}function hy(t){return typeof t=="number"?O2(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?O2(t.getTime()):Go()}function O2(t){return t>9999999999?t/1e3:t}function xt(t){return jfe(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function jfe(t){return typeof t.getSpanJSON=="function"}function MH(t){const{traceFlags:e}=t.spanContext();return!!(e&AH)}function Bx(t,e,r,n,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=t,u={...e,event_id:e.event_id||r.event_id||Ft(),timestamp:e.timestamp||Rp()},c=r.integrations||t.integrations.map(_=>_.name);Hfe(u,t),Ufe(u,c),e.type===void 0&&zfe(u,t.stackParser);const l=Wfe(n,r.captureContext);r.mechanism&&Zh(u,r.mechanism);const d=i&&i.getEventProcessors?i.getEventProcessors():[],f=ghe().getScopeData();if(a){const _=a.getScopeData();P2(f,_)}if(l){const _=l.getScopeData();P2(f,_)}const p=[...r.attachments||[],...f.attachments];p.length&&(r.attachments=p),IH(u,f);const m=[...d,...Lx(),...f.eventProcessors];return C0(m,u,r).then(_=>(_&&Vfe(_),typeof s=="number"&&s>0?Gfe(_,s,o):_))}function Hfe(t,e){const{environment:r,release:n,dist:i,maxValueLength:a=250}=e;"environment"in t||(t.environment="environment"in e?r:Lp),t.release===void 0&&n!==void 0&&(t.release=n),t.dist===void 0&&i!==void 0&&(t.dist=i),t.message&&(t.message=Fl(t.message,a));const s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Fl(s.value,a));const o=t.request;o&&o.url&&(o.url=Fl(o.url,a))}const T2=new WeakMap;function zfe(t,e){const r=Fe._sentryDebugIds;if(!r)return;let n;const i=T2.get(e);i?n=i:(n=new Map,T2.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 Vfe(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 Ufe(t,e){e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=[...t.sdk.integrations||[],...e])}function Gfe(t,e,r){if(!t)return null;const n={...t,...t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map(i=>({...i,...i.data&&{data:Ea(i.data,e,r)}}))},...t.user&&{user:Ea(t.user,e,r)},...t.contexts&&{contexts:Ea(t.contexts,e,r)},...t.extra&&{extra:Ea(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=Ea(t.contexts.trace.data,e,r))),t.spans&&(n.spans=t.spans.map(i=>{const a=xt(i).data;return a&&(i.data=Ea(a,e,r)),i})),n}function Wfe(t,e){if(!e)return t;const r=t?t.clone():new Ni;return r.update(e),r}function Yfe(t){if(t)return Kfe(t)?{captureContext:t}:Xfe(t)?{captureContext:t}:t}function Kfe(t){return t instanceof Ni||typeof t=="function"}const qfe=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Xfe(t){return Object.keys(t).some(e=>qfe.includes(e))}function Rd(t,e){return vt().captureException(t,Yfe(e))}function Jfe(t,e){const r=typeof e=="string"?e:void 0,n=typeof e!="string"?{captureContext:e}:void 0;return vt().captureMessage(t,r,n)}function Fx(t,e){return vt().captureEvent(t,e)}function Zfe(t){vt().configureScope(t)}function $s(t,e){vt().addBreadcrumb(t,e)}function $H(t,e){vt().setContext(t,e)}function Qfe(t){vt().setExtras(t)}function ehe(t,e){vt().setExtra(t,e)}function the(t){vt().setTags(t)}function rhe(t,e){vt().setTag(t,e)}function nhe(t){vt().setUser(t)}function Np(...t){const e=vt();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 ihe(t){return Hx(()=>t(na()))}function ahe(t,e){return vt().startTransaction({...t},e)}async function she(t){const e=qe();return e?e.flush(t):(ge&&W.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function ohe(t){const e=qe();return e?e.close(t):(ge&&W.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function uhe(){return vt().lastEventId()}function qe(){return vt().getClient()}function che(){return!!qe()}function yr(){return vt().getScope()}function E2(t){const e=qe(),r=na(),n=yr(),{release:i,environment:a=Lp}=e&&e.getOptions()||{},{userAgent:s}=Fe.navigator||{},o=PH({release:i,environment:a,user:n.getUser()||r.getUser(),...s&&{userAgent:s},...t}),u=r.getSession();return u&&u.status==="ok"&&rc(u,{status:"exited"}),kH(),r.setSession(o),n.setSession(o),o}function kH(){const t=na(),e=yr(),r=e.getSession()||t.getSession();r&&CH(r),DH(),t.setSession(),e.setSession()}function DH(){const t=na(),e=yr(),r=qe(),n=e.getSession()||t.getSession();n&&r&&r.captureSession&&r.captureSession(n)}function x2(t=!1){if(t){kH();return}DH()}function A0(t){return t.transaction}function py(t,e,r){const n=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:a}=r&&r.getUser()||{},s=Kr({environment:n.environment||Lp,release:n.release,user_segment:a,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",s),s}function Qh(t){const e=qe();if(!e)return{};const r=py(xt(t).trace_id||"",e,yr()),n=A0(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=xt(n);return s&&s!=="url"&&(r.transaction=o.description),r.sampled=String(MH(n)),e.emit&&e.emit("createDsc",r),r}function IH(t,e){const{fingerprint:r,span:n,breadcrumbs:i,sdkProcessingMetadata:a}=e;lhe(t,e),n&&hhe(t,n),phe(t,r),dhe(t,i),fhe(t,a)}function P2(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;Pf(t,"extra",r),Pf(t,"tags",n),Pf(t,"user",i),Pf(t,"contexts",a),Pf(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 Pf(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 lhe(t,e){const{extra:r,tags:n,user:i,contexts:a,level:s,transactionName:o}=e,u=Kr(r);u&&Object.keys(u).length&&(t.extra={...u,...t.extra});const c=Kr(n);c&&Object.keys(c).length&&(t.tags={...c,...t.tags});const l=Kr(i);l&&Object.keys(l).length&&(t.user={...l,...t.user});const d=Kr(a);d&&Object.keys(d).length&&(t.contexts={...d,...t.contexts}),s&&(t.level=s),o&&(t.transaction=o)}function dhe(t,e){const r=[...t.breadcrumbs||[],...e];t.breadcrumbs=r.length?r:void 0}function fhe(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function hhe(t,e){t.contexts={trace:Nx(e),...t.contexts};const r=A0(e);if(r){t.sdkProcessingMetadata={dynamicSamplingContext:Qh(e),...t.sdkProcessingMetadata};const n=xt(r).description;n&&(t.tags={transaction:n,...t.tags})}}function phe(t,e){t.fingerprint=t.fingerprint?Ax(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const mhe=100;let Qw;class Ni{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=C2()}static clone(e){return e?e.clone():new Ni}clone(){const e=new Ni;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&&rc(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 Ni?r:this}return e instanceof Ni?(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)):od(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=C2(),this}addBreadcrumb(e,r){const n=typeof r=="number"?r:mhe;if(n<=0)return this;const i={timestamp:Rp(),...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=[]){IH(e,this.getScopeData());const i=[...n,...Lx(),...this._eventProcessors];return C0(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:Ft();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:Ft();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:Ft();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 ghe(){return Qw||(Qw=new Ni),Qw}function C2(){return{traceId:Ft(),spanId:Ft().substring(16)}}const ld="7.99.0",RH=parseFloat(ld),vhe=100;class jx{constructor(e,r,n,i=RH){this._version=i;let a;r?a=r:(a=new Ni,a.setClient(e));let s;n?s=n:(s=new Ni,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:Ft(),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:Ft(),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:Ft();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=vhe}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const u={timestamp:Rp(),...e},c=a?ja(()=>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=NO(this);try{e(this)}finally{NO(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&&CH(n),this._sendSessionUpdate(),r.setSession()}startSession(e){const{scope:r,client:n}=this.getStackTop(),{release:i,environment:a=Lp}=n&&n.getOptions()||{},{userAgent:s}=Fe.navigator||{},o=PH({release:i,environment:a,user:r.getUser(),...s&&{userAgent:s},...e}),u=r.getSession&&r.getSession();return u&&u.status==="ok"&&rc(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=Ld().__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 Ld(){return Fe.__SENTRY__=Fe.__SENTRY__||{extensions:{},hub:void 0},Fe}function NO(t){const e=Ld(),r=M0(e);return LH(e,t),r}function vt(){const t=Ld();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return bhe(t)}function na(){return vt().getIsolationScope()}function bhe(t=Ld()){return(!yhe(t)||M0(t).isOlderThan(RH))&&LH(t,new jx),M0(t)}function Hx(t,e={}){const r=Ld();return r.__SENTRY__&&r.__SENTRY__.acs?r.__SENTRY__.acs.runWithAsyncContext(t,e):t()}function yhe(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function M0(t){return eH("hub",()=>new jx,t)}function LH(t,e){if(!t)return!1;const r=t.__SENTRY__=t.__SENTRY__||{};return r.hub=e,!0}function Wo(t){return(t||vt()).getScope().getTransaction()}const _he=_H;let A2=!1;function whe(){A2||(A2=!0,pH(BO),mH(BO))}function BO(){const t=Wo();if(t){const e="internal_error";ge&&W.log(`[Tracing] Transaction: ${e} -> Global error occured`),t.setStatus(e)}}BO.tag="sentry_tracingErrorCallback";const An="sentry.source",Cl="sentry.sample_rate",qm="sentry.op",Al="sentry.origin";var M2;(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})(M2||(M2={}));function zx(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 She=zx;function Vx(t,e){t.setTag("http.status_code",String(e)),t.setData("http.response.status_code",e);const r=zx(e);r!=="unknown_error"&&t.setStatus(r)}class NH{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Ux{constructor(e={}){this._traceId=e.traceId||Ft(),this._spanId=e.spanId||Ft().substring(16),this._startTime=e.startTimestamp||Go(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[Al]:e.origin||"manual",[qm]: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[qm]}set op(e){this.setAttribute(qm,e)}get origin(){return this._attributes[Al]}set origin(e){this.setAttribute(Al,e)}spanContext(){const{_spanId:e,_traceId:r,_sampled:n}=this;return{spanId:e,traceId:r,traceFlags:n?AH:Ffe}}startChild(e){const r=new Ux({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});r.spanRecorder=this.spanRecorder,r.spanRecorder&&r.spanRecorder.add(r);const n=A0(this);if(r.transaction=n,ge&&n){const i=e&&e.op||"< unknown op >",a=xt(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 Vx(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=A0(this);if(ge&&r&&r.spanContext().spanId!==this._spanId){const n=this._logMessage;n&&W.log(n.replace("Starting","Finishing"))}this._endTime=hy(e)}toTraceparent(){return fy(this)}toContext(){return Kr({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 Nx(this)}getSpanJSON(){return Kr({data:this._getData(),description:this._name,op:this._attributes[qm],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[Al]})}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 BH extends Ux{constructor(e,r){super(e),this._measurements={},this._contexts={},this._hub=r||vt(),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[An]&&{source:this._attributes[An]},...this._attributes[Cl]&&{sampleRate:this._attributes[Cl]}}}set metadata(e){this._metadata=e}setName(e,r="custom"){this._name=e,this.setAttribute(An,r)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new NH(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=hy(e),n=this._finishTransaction(r);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return Kr({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return Qh(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&&xt(u).timestamp):[];if(this._trimEnd&&n.length>0){const u=n.map(c=>xt(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:Nx(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:Qh(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 wh={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Ohe="finishReason",Qc=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class The extends NH{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)),xt(e).timestamp===void 0&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Ehe extends BH{constructor(e,r,n=wh.idleTimeout,i=wh.finalTimeout,a=wh.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=Qc[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=Qc[3],this.end())},this._finalTimeout)}end(e){const r=hy(e);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Ohe,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;xt(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}=xt(n),s=i&&i{this._finished||this._pushActivity(i)},n=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new The(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=Qc[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=Qc[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=Go();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Qc[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=Qc[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){ge&&W.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function Nd(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=qe(),r=t||e&&e.getOptions();return!!r&&(r.enableTracing||"tracesSampleRate"in r||"tracesSampler"in r)}function FH(t,e,r){if(!Nd(e))return t.sampled=!1,t;if(t.sampled!==void 0)return t.setAttribute(Cl,Number(t.sampled)),t;let n;return typeof e.tracesSampler=="function"?(n=e.tracesSampler(r),t.setAttribute(Cl,Number(n))):r.parentSampled!==void 0?n=r.parentSampled:typeof e.tracesSampleRate<"u"?(n=e.tracesSampleRate,t.setAttribute(Cl,Number(n))):(n=1,t.setAttribute(Cl,n)),xhe(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 Phe(){const e=this.getScope().getSpan();return e?{"sentry-trace":fy(e)}:{}}function Che(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 BH(t,this);return s=FH(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 $0(t,e,r,n,i,a,s,o=!1){const u=t.getClient(),c=u&&u.getOptions()||{};let l=new Ehe(e,t,r,n,s,i,o);return l=FH(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 Gx(){const t=Ld();t.__SENTRY__&&(t.__SENTRY__.extensions=t.__SENTRY__.extensions||{},t.__SENTRY__.extensions.startTransaction||(t.__SENTRY__.extensions.startTransaction=Che),t.__SENTRY__.extensions.traceHeaders||(t.__SENTRY__.extensions.traceHeaders=Phe),whe())}function Wx(t,e,r=()=>{}){let n;try{n=t()}catch(i){throw e(i),r(),i}return Ahe(n,e,r)}function Ahe(t,e,r){return Dp(t)?t.then(n=>(r(),n),n=>{throw e(n),r(),n}):(r(),t)}function Mhe(t,e,r=()=>{},n=()=>{}){const i=vt(),a=yr(),s=a.getSpan(),o=my(t),u=Kx(i,s,o);return a.setSpan(u),Wx(()=>e(u),c=>{u&&u.setStatus("internal_error"),r(c,u)},()=>{u&&u.end(),a.setSpan(s),n()})}function $he(t,e){const r=my(t);return Hx(()=>Np(t.scope,n=>{const i=vt(),a=n.getSpan(),o=t.onlyIfParent&&!a?void 0:Kx(i,a,r);return n.setSpan(o),Wx(()=>e(o),()=>{if(o){const{status:u}=xt(o);(!u||u==="ok")&&o.setStatus("internal_error")}},()=>o&&o.end())}))}function khe(t,e){const r=my(t);return Hx(()=>Np(t.scope,n=>{const i=vt(),a=n.getSpan(),o=t.onlyIfParent&&!a?void 0:Kx(i,a,r);n.setSpan(o);function u(){o&&o.end()}return Wx(()=>e(o,u),()=>{if(o&&o.isRecording()){const{status:c}=xt(o);(!c||c==="ok")&&o.setStatus("internal_error")}})}))}function Yx(t){if(!Nd())return;const e=my(t),r=vt(),n=t.scope?t.scope.getSpan():jH();if(!(t.onlyIfParent&&!n)){if(n)return n.startChild(e);{const a=na(),s=yr(),{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 jH(){return yr().getSpan()}function Dhe({sentryTrace:t,baggage:e},r){const n=yr(),{traceparentData:i,dynamicSamplingContext:a,propagationContext:s}=Dx(t,e);n.setPropagationContext(s),ge&&i&&W.log(`[Tracing] Continuing trace ${i.traceId}.`);const o={...i,metadata:Kr({dynamicSamplingContext:a})};return r?r(o):o}function Kx(t,e,r){if(Nd()){if(e)return e.startChild(r);{const n=na(),i=yr(),{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 my(t){if(t.startTime){const e={...t};return e.startTimestamp=hy(t.startTime),delete e.startTime,e}return t}function HH(t,e,r){const n=Wo();n&&n.setMeasurement(t,e,r)}function Ihe(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 Rhe(t,e,r,n){const i=Rx(r),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&e&&{dsn:Id(e)}},s="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return _c(a,[s])}function zH(t,e,r,n){const i=Rx(r),a=t.type&&t.type!=="replay_event"?t.type:"event";Ihe(t,r&&r.sdk);const s=SH(t,i,n,e);return delete t.sdkProcessingMetadata,_c(s,[[{type:a},t]])}const Lhe="7";function VH(t){const e=t.protocol?`${t.protocol}:`:"",r=t.port?`:${t.port}`:"";return`${e}//${t.host}${r}${t.path?`/${t.path}`:""}/api/`}function Nhe(t){return`${VH(t)}${t.projectId}/envelope/`}function Bhe(t,e){return jde({sentry_key:t.publicKey,sentry_version:Lhe,...e&&{sentry_client:`${e.name}/${e.version}`}})}function UH(t,e={}){const r=typeof e=="string"?e:e.tunnel,n=typeof e=="string"||!e._metadata?void 0:e._metadata.sdk;return r||`${Nhe(t)}?${Bhe(t,n)}`}function Fhe(t,e){const r=sH(t);if(!r)return"";const n=`${VH(r)}embed/error-page/`;let i=`dsn=${Id(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 $2=[];function jhe(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 Hhe(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=Ax(r(e)):n=e;const i=jhe(n),a=Uhe(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function zhe(t,e){const r={};return e.forEach(n=>{n&&GH(t,n,r)}),r}function k2(t,e){for(const r of e)r&&r.afterAllSetup&&r.afterAllSetup(t)}function GH(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,$2.indexOf(e.name)===-1&&(e.setupOnce(xH,vt),$2.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 Vhe(t){const e=qe();if(!e||!e.addIntegration){ge&&W.warn(`Cannot add integration "${t.name}" because no SDK Client is available.`);return}e.addIntegration(t)}function Uhe(t,e){for(let r=0;ra[0].localeCompare(s[0]));return`${t}${e}${r}${i}`}function Khe(t){let e=0;for(let r=0;r>>0}function qhe(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 Xhe(t){const e={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const n=r.replace(XH,"_");e[n]=String(t[r]).replace(Ghe,"_")}return e}function Jhe(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=Id(e));const a=Zhe(t);return _c(i,[a])}function Zhe(t){const e=qhe(t);return[{type:"statsd",length:e.length},e]}const D2="Not capturing exception because it's already been captured.";class Qhe{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=sH(e.dsn):ge&&W.warn("No DSN provided, client will not send events."),this._dsn){const r=UH(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:r})}}captureException(e,r,n){if(v2(e)){ge&&W.log(D2);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=Ex(e)?e:String(e),o=xx(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&&v2(r.originalException)){ge&&W.log(D2);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),rc(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))):ud(!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];GH(this,e,this._integrations),r||k2(this,[e])}sendEvent(e,r={}){this.emit("beforeSendEvent",e,r);let n=zH(e,this._dsn,this._options._metadata,this._options.tunnel);for(const a of r.attachments||[])n=xfe(n,Mfe(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=Rhe(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=Jhe(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=zhe(this,e),k2(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)&&(rc(e,{...n&&{status:"crashed"},errors:e.errors||Number(i||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new Jn(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=na()){const a=this.getOptions(),s=Object.keys(this._integrations);return!r.integrations&&s.length>0&&(r.integrations=s),this.emit("preprocessEvent",e,r),Bx(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||py(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=ZH(e),o=JH(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),kx(new Pa(`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 Pa("An event processor returned `null`, will not send event.","log");if(r.data&&r.data.__sentry__===!0)return d;const p=tpe(i,d,r);return epe(p,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",l,e),new Pa(`${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 Pa?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new Pa(`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 epe(t,e){const r=`${e} must return \`null\` or a valid event.`;if(Dp(t))return t.then(n=>{if(!od(n)&&n!==null)throw new Pa(r);return n},n=>{throw new Pa(`${e} rejected with ${n}`)});if(!od(t)&&t!==null)throw new Pa(r);return t}function tpe(t,e,r){const{beforeSend:n,beforeSendTransaction:i}=t;return JH(e)&&n?n(e,r):ZH(e)&&i?i(e,r):e}function JH(t){return t.type===void 0}function ZH(t){return t.type==="transaction"}function QH(t){const e=qe();!e||!e.addEventProcessor||e.addEventProcessor(t)}class rpe{constructor(e){this._value=e}get weight(){return 1}add(e){this._value+=e}toString(){return`${this._value}`}}class npe{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 ipe{constructor(e){this._value=[e]}get weight(){return this._value.length}add(e){this._value.push(e)}toString(){return this._value.join(":")}}class ape{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"?Khe(e):e).join(":")}}const spe={[WH]:rpe,[YH]:npe,[qH]:ipe,[KH]:ape};function ope(t,e){e.debug===!0&&(ge?W.enable():ja(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),yr().update(e.initialScope);const n=new t(e);ez(n),upe(n)}function ez(t){const r=vt().getStackTop();r.client=t,r.scope.setClient(t)}function upe(t){t.init?t.init():t.setupIntegrations&&t.setupIntegrations()}const cpe=30;function qx(t,e,r=vfe(t.bufferSize||cpe)){let n={};const i=s=>r.drain(s);function a(s){const o=[];if(cd(s,(d,f)=>{const p=S2(f);if(TH(n,p)){const m=I2(d,f);t.recordDroppedEvent("ratelimit_backoff",p,m)}else o.push(d)}),o.length===0)return ud();const u=_c(s[0],o),c=d=>{cd(u,(f,p)=>{const m=I2(f,p);t.recordDroppedEvent(d,S2(p),m)})},l=()=>e({body:wH(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=EH(n,d),d),d=>{throw c("network_error"),d});return r.add(l).then(d=>d,d=>{if(d instanceof Pa)return ge&&W.error("Skipped sending event because buffer is full."),c("queue_overflow"),ud();throw d})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function I2(t,e){if(!(e!=="event"&&e!=="transaction"))return Array.isArray(t)?t[1]:void 0}const lpe=100,R2=5e3,dpe=36e5;function e1(t,e){ge&&W.info(`[Offline]: ${t}`,e)}function fpe(t){return e=>{const r=t(e),n=e.createStore?e.createStore(e):void 0;let i=R2,a;function s(l,d,f){return Pfe(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&&(e1("Attempting to send previously queued event"),c(d).catch(f=>{e1("Failed to retry sending",f)}))},l),typeof a!="number"&&a.unref&&a.unref())}function u(){a||(o(i),i=Math.min(i*2,dpe))}async function c(l){try{const d=await r.send(l);let f=lpe;if(d){if(d.headers&&d.headers["retry-after"])f=OH(d.headers["retry-after"]);else if((d.statusCode||0)>=400)return d}return o(f),i=R2,d}catch(d){if(n&&await s(l,d,i))return await n.insert(l),u(),e1("Error sending. Event queued",d),{};throw d}}return e.flushAtStartup&&u(),{send:c,flush:l=>r.flush(l)}}}function tz(t,e){let r;return cd(t,(n,i)=>(e.includes(i)&&(r=Array.isArray(n)?n[1]:void 0),!!r)),r}function hpe(t,e){return r=>{const n=t(r);return{send:async i=>{const a=tz(i,["event","transaction","profile","replay_event"]);return a&&(a.release=e),n.send(i)},flush:i=>n.flush(i)}}}function ppe(t,e){return r=>{const n=t(r),i={};function a(u,c){const l=c?`${u}:${c}`:u;if(!i[l]){const d=iH(u);if(!d)return;const f=UH(d);i[l]=c?hpe(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 tz(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 mpe(t,e){const r=e&&bpe(e)?e.getClient():e,n=r&&r.getDsn(),i=r&&r.getOptions().tunnel;return vpe(t,n)||gpe(t,i)}function gpe(t,e){return e?L2(t)===L2(e):!1}function vpe(t,e){return e?t.includes(e.host):!1}function L2(t){return t[t.length-1]==="/"?t.slice(0,-1):t}function bpe(t){return t.getClient!==void 0}function ype(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 _pe(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:ld})),version:ld}),t._metadata=i}const rz=new Map,N2=new Set;function wpe(t){if(Fe._sentryModuleMetadata)for(const e of Object.keys(Fe._sentryModuleMetadata)){const r=Fe._sentryModuleMetadata[e];if(N2.has(e))continue;N2.add(e);const n=t(e);for(const i of n.reverse())if(i.filename){rz.set(i.filename,r);break}}}function Spe(t,e){return wpe(t),rz.get(e)}function Ope(t,e){try{e.exception.values.forEach(r=>{if(r.stacktrace)for(const n of r.stacktrace.frames||[]){if(!n.filename)continue;const i=Spe(t,n.filename);i&&(n.module_metadata=i)}})}catch{}}function Tpe(t){try{t.exception.values.forEach(e=>{if(e.stacktrace)for(const r of e.stacktrace.frames||[])delete r.module_metadata})}catch{}}const nz="ModuleMetadata",Epe=()=>({name:nz,setupOnce(){},setup(t){typeof t.on=="function"&&t.on("beforeEnvelope",e=>{cd(e,(r,n)=>{if(n==="event"){const i=Array.isArray(r)?r[1]:void 0;i&&(Tpe(i),r[1]=i)}})})},processEvent(t,e,r){const n=r.getOptions().stackParser;return Ope(n,t),t}}),iz=Epe,xpe=Fn(nz,iz),Ppe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Cpe=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],az="InboundFilters",Ape=(t={})=>({name:az,setupOnce(){},processEvent(e,r,n){const i=n.getOptions(),a=Mpe(t,i);return $pe(e,a)?null:e}}),Xx=Ape,sz=Fn(az,Xx);function Mpe(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:Ppe],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:Cpe],ignoreInternal:t.ignoreInternal!==void 0?t.ignoreInternal:!0}}function $pe(t,e){return e.ignoreInternal&&Npe(t)?(ge&&W.warn(`Event dropped due to being internal Sentry Error. Event: ${oo(t)}`),!0):kpe(t,e.ignoreErrors)?(ge&&W.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${oo(t)}`),!0):Dpe(t,e.ignoreTransactions)?(ge&&W.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. Event: ${oo(t)}`),!0):Ipe(t,e.denyUrls)?(ge&&W.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${oo(t)}. Url: ${k0(t)}`),!0):Rpe(t,e.allowUrls)?!1:(ge&&W.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${oo(t)}. Url: ${k0(t)}`),!0)}function kpe(t,e){return t.type||!e||!e.length?!1:Lpe(t).some(r=>kd(r,e))}function Dpe(t,e){if(t.type!=="transaction"||!e||!e.length)return!1;const r=t.transaction;return r?kd(r,e):!1}function Ipe(t,e){if(!e||!e.length)return!1;const r=k0(t);return r?kd(r,e):!1}function Rpe(t,e){if(!e||!e.length)return!0;const r=k0(t);return r?kd(r,e):!0}function Lpe(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 ${oo(t)}`),e}function Npe(t){try{return t.exception.values[0].type==="SentryError"}catch{}return!1}function Bpe(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 k0(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch{}return e?Bpe(e):null}catch{return ge&&W.error(`Cannot extract url for event ${oo(t)}`),null}}let B2;const oz="FunctionToString",F2=new WeakMap,Fpe=()=>({name:oz,setupOnce(){B2=Function.prototype.toString;try{Function.prototype.toString=function(...t){const e=Cx(this),r=F2.has(qe())&&e!==void 0?e:this;return B2.apply(r,t)}}catch{}},setup(t){F2.set(t,!0)}}),Jx=Fpe,uz=Fn(oz,Jx),jpe="cause",Hpe=5,cz="LinkedErrors",zpe=(t={})=>{const e=t.limit||Hpe,r=t.key||jpe;return{name:cz,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();Q5(Lfe,s.stackParser,s.maxValueLength,r,e,n,i)}}},Vpe=zpe,Upe=Fn(cz,Vpe),Gpe=Object.freeze(Object.defineProperty({__proto__:null,FunctionToString:uz,InboundFilters:sz,LinkedErrors:Upe},Symbol.toStringTag,{value:"Module"}));class Wpe{constructor(e){this._client=e,this._buckets=new Map,this._interval=setInterval(()=>this.flush(),Whe)}add(e,r,n,i="none",a={},s=Go()){const o=Math.floor(s),u=r.replace(XH,"_"),c=Xhe(a),l=Yhe(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 lz="MetricsAggregator",Ype=()=>({name:lz,setupOnce(){},setup(t){t.metricsAggregator=new Wpe(t)}}),dz=Ype,Kpe=Fn(lz,dz);function gy(t,e,r,n={}){const i=qe(),a=yr();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=xt(d).description||""),ge&&W.log(`Adding value of ${r} to ${t} metric ${e}`),i.metricsAggregator.add(t,e,r,s,{...f,...o},u)}}function qpe(t,e=1,r){gy(WH,t,e,r)}function Xpe(t,e,r){gy(qH,t,e,r)}function Jpe(t,e,r){gy(KH,t,e,r)}function Zpe(t,e,r){gy(YH,t,e,r)}const Qpe={increment:qpe,distribution:Xpe,set:Jpe,gauge:Zpe,MetricsAggregator:Kpe,metricsAggregatorIntegration:dz},eme=Gpe,ut=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ue=Fe;function fz(){Ue&&Ue.document?Ue.document.addEventListener("visibilitychange",()=>{const t=Wo();if(Ue.document.hidden&&t){const e="cancelled",{op:r,status:n}=xt(t);ut&&W.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${r}`),n||t.setStatus(e),t.setTag("visibilitychange","document.hidden"),t.end()}}):ut&&W.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Zx=(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)))}},tme=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,rme=()=>{const t=Ue.performance.timing,e=Ue.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},hz=()=>Ue.__WEB_VITALS_POLYFILL__?Ue.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||rme()):Ue.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],pz=()=>{const t=hz();return t&&t.activationStart||0},Qx=(t,e)=>{const r=hz();let n="navigate";return r&&(Ue.document.prerendering||pz()>0?n="prerender":n=r.type.replace(/_/g,"-")),{name:t,value:typeof e>"u"?-1:e,rating:"good",delta:0,entries:[],id:tme(),navigationType:n}},vy=(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{}},by=(t,e)=>{const r=n=>{(n.type==="pagehide"||Ue.document.visibilityState==="hidden")&&(t(n),e&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},nme=t=>{const e=Qx("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=vy("layout-shift",a);if(s){r=Zx(t,e);const o=()=>{a(s.takeRecords()),r(!0)};return by(o),o}};let dv=-1;const ime=()=>Ue.document.visibilityState==="hidden"&&!Ue.document.prerendering?0:1/0,ame=()=>{by(({timeStamp:t})=>{dv=t},!0)},eP=()=>(dv<0&&(dv=ime(),ame()),{get firstHiddenTime(){return dv}}),sme=t=>{const e=eP(),r=Qx("FID");let n;const i=o=>{o.startTime{o.forEach(i)},s=vy("first-input",a);n=Zx(t,r),s&&by(()=>{a(s.takeRecords()),s.disconnect()},!0)},j2={},ome=t=>{const e=eP(),r=Qx("LCP");let n;const i=s=>{const o=s[s.length-1];if(o){const u=Math.max(o.startTime-pz(),0);u{j2[r.id]||(i(a.takeRecords()),a.disconnect(),j2[r.id]=!0,n(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),by(s,!0),s}},Sh={},D0={};let mz,gz,vz;function ume(t,e=!1){return tP("cls",t,lme,mz,e)}function bz(t,e=!1){return tP("lcp",t,fme,vz,e)}function cme(t){return tP("fid",t,dme,gz)}function yy(t,e){return yz(t,e),D0[t]||(hme(t),D0[t]=!0),_z(t,e)}function _y(t,e){const r=Sh[t];if(!(!r||!r.length))for(const n of r)try{n(e)}catch(i){ut&&W.error(`Error while triggering instrumentation handler. Type: ${t} Name: ${Ms(n)} Error:`,i)}}function lme(){return nme(t=>{_y("cls",{metric:t}),mz=t})}function dme(){return sme(t=>{_y("fid",{metric:t}),gz=t})}function fme(){return ome(t=>{_y("lcp",{metric:t}),vz=t})}function tP(t,e,r,n,i=!1){yz(t,e);let a;return D0[t]||(a=r(),D0[t]=!0),n&&e({metric:n}),_z(t,e,i?a:void 0)}function hme(t){const e={};t==="event"&&(e.durationThreshold=0),vy(t,r=>{_y(t,{entries:r})},e)}function yz(t,e){Sh[t]=Sh[t]||[],Sh[t].push(e)}function _z(t,e,r){return()=>{r&&r();const n=Sh[t];if(!n)return;const i=n.indexOf(e);i!==-1&&n.splice(i,1)}}function t1(t){return typeof t=="number"&&isFinite(t)}function dd(t,{startTimestamp:e,...r}){return e&&t.startTimestamp>e&&(t.startTimestamp=e),t.startChild({startTimestamp:e,...r})}const pme=2147483647;function _r(t){return t/1e3}function wz(){return Ue&&Ue.addEventListener&&Ue.performance}let H2=0,cr={},ya,Oh;function Sz(){const t=wz();if(t&&gn){t.mark&&Ue.performance.mark("sentry-tracing-init");const e=vme(),r=mme(),n=gme();return()=>{e(),r(),n()}}return()=>{}}function Oz(){yy("longtask",({entries:t})=>{for(const e of t){const r=Wo();if(!r)return;const n=_r(gn+e.startTime),i=_r(e.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i})}})}function Tz(){yy("event",({entries:t})=>{for(const e of t){const r=Wo();if(!r)return;if(e.name==="click"){const n=_r(gn+e.startTime),i=_r(e.duration),a={description:tc(e.target),op:`ui.interaction.${e.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+i},s=nH(e.target);s&&(a.attributes={"ui.component_name":s}),r.startChild(a)}}})}function mme(){return ume(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ut&&W.log("[Measurements] Adding CLS"),cr.cls={value:t.value,unit:""},Oh=e)},!0)}function gme(){return bz(({metric:t})=>{const e=t.entries[t.entries.length-1];e&&(ut&&W.log("[Measurements] Adding LCP"),cr.lcp={value:t.value,unit:"millisecond"},ya=e)},!0)}function vme(){return cme(({metric:t})=>{const e=t.entries[t.entries.length-1];if(!e)return;const r=_r(gn),n=_r(e.startTime);ut&&W.log("[Measurements] Adding FID"),cr.fid={value:t.value,unit:"millisecond"},cr["mark.fid"]={value:r+n,unit:"second"}})}function Ez(t){const e=wz();if(!e||!Ue.performance.getEntries||!gn)return;ut&&W.log("[Tracing] Adding & adjusting spans using Performance API");const r=_r(gn),n=e.getEntries();let i,a;const{op:s,start_timestamp:o}=xt(t);if(n.slice(H2).forEach(u=>{const c=_r(u.startTime),l=_r(u.duration);if(!(t.op==="navigation"&&o&&r+c{if(!cr[c]||!o||r>=o)return;const l=cr[c].value,d=r+_r(l),f=Math.abs((d-o)*1e3),p=f-l;ut&&W.log(`[Measurements] Normalized ${c} from ${l} to ${f} (${p})`),cr[c].value=f});const u=cr["mark.fid"];u&&cr.fid&&(dd(t,{description:"first input delay",endTimestamp:u.value+_r(cr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:u.value}),delete cr["mark.fid"]),"fcp"in cr||delete cr.cls,Object.keys(cr).forEach(c=>{HH(c,cr[c].value,cr[c].unit)}),Ome(t)}ya=void 0,Oh=void 0,cr={}}function bme(t,e,r,n,i){const a=i+r,s=a+n;return dd(t,{description:e.name,endTimestamp:s,op:e.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function yme(t,e,r){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(n=>{Xm(t,e,n,r)}),Xm(t,e,"secureConnection",r,"TLS/SSL","connectEnd"),Xm(t,e,"fetch",r,"cache","domainLookupStart"),Xm(t,e,"domainLookup",r,"DNS"),_me(t,e,r)}function Xm(t,e,r,n,i,a){const s=a?e[a]:e[`${r}End`],o=e[`${r}Start`];!o||!s||dd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:i||r,startTimestamp:n+_r(o),endTimestamp:n+_r(s)})}function _me(t,e,r){e.responseEnd&&(dd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:r+_r(e.requestStart),endTimestamp:r+_r(e.responseEnd)}),dd(t,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:r+_r(e.responseStart),endTimestamp:r+_r(e.responseEnd)}))}function wme(t,e,r,n,i,a){if(e.initiatorType==="xmlhttprequest"||e.initiatorType==="fetch")return;const s=cv(r),o={};r1(o,e,"transferSize","http.response_transfer_size"),r1(o,e,"encodedBodySize","http.response_content_length"),r1(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(Ue.location.origin);const u=a+n,c=u+i;dd(t,{description:r.replace(Ue.location.origin,""),endTimestamp:c,op:e.initiatorType?`resource.${e.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:u,data:o})}function Sme(t){const e=Ue.navigator;if(!e)return;const r=e.connection;r&&(r.effectiveType&&t.setTag("effectiveConnectionType",r.effectiveType),r.type&&t.setTag("connectionType",r.type),t1(r.rtt)&&(cr["connection.rtt"]={value:r.rtt,unit:"millisecond"})),t1(e.deviceMemory)&&t.setTag("deviceMemory",`${e.deviceMemory} GB`),t1(e.hardwareConcurrency)&&t.setTag("hardwareConcurrency",String(e.hardwareConcurrency))}function Ome(t){ya&&(ut&&W.log("[Measurements] Adding LCP Data"),ya.element&&t.setTag("lcp.element",tc(ya.element)),ya.id&&t.setTag("lcp.id",ya.id),ya.url&&t.setTag("lcp.url",ya.url.trim().slice(0,200)),t.setTag("lcp.size",ya.size)),Oh&&Oh.sources&&(ut&&W.log("[Measurements] Adding CLS Data"),Oh.sources.forEach((e,r)=>t.setTag(`cls.source.${r+1}`,tc(e.node))))}function r1(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=yr(),o=qe(),{method:u,url:c}=t.fetchData,l=a?Yx({name:`${u} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":u,[Al]: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=xme(d,o,s,f,l)}return l}function xme(t,e,r,n,i){const a=i||r.getSpan(),s=na(),{traceId:o,spanId:u,sampled:c,dsc:l}={...s.getPropagationContext(),...r.getPropagationContext()},d=a?fy(a):Ix(o,u,c),f=yH(l||(a?Qh(a):py(o,e,r))),p=n.headers||(typeof Request<"u"&&As(t,Request)?t.headers:void 0);if(p)if(typeof Headers<"u"&&As(p,Headers)){const m=new Headers(p);return m.append("sentry-trace",d),f&&m.append(RO,f),m}else if(Array.isArray(p)){const m=[...p,["sentry-trace",d]];return f&&m.push([RO,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 FO=["localhost",/^\/(?!\/)/],ep={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:FO,tracePropagationTargets:FO};function rP(t){const{traceFetch:e,traceXHR:r,tracePropagationTargets:n,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:ep.traceFetch,traceXHR:ep.traceXHR,...t},o=typeof a=="function"?a:l=>!0,u=l=>Mme(l,n||i),c={};e&&Mx(l=>{const d=Eme(l,o,u,c);s&&d&&z2(d)}),r&&$x(l=>{const d=$me(l,o,u,c);s&&d&&z2(d)})}function Pme(t){return t.entryType==="resource"&&"initiatorType"in t&&typeof t.nextHopProtocol=="string"&&(t.initiatorType==="fetch"||t.initiatorType==="xmlhttprequest")}function z2(t){const{url:e}=xt(t).data||{};if(!e||typeof e!="string")return;const r=yy("resource",({entries:n})=>{n.forEach(i=>{Pme(i)&&i.name.endsWith(e)&&(Ame(i).forEach(s=>t.setAttribute(...s)),setTimeout(r))})})}function Cme(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 ha(t=0){return((gn||performance.timeOrigin)+t)/1e3}function Ame(t){const{name:e,version:r}=Cme(t.nextHopProtocol),n=[];return n.push(["network.protocol.version",r],["network.protocol.name",e]),gn?[...n,["http.request.redirect_start",ha(t.redirectStart)],["http.request.fetch_start",ha(t.fetchStart)],["http.request.domain_lookup_start",ha(t.domainLookupStart)],["http.request.domain_lookup_end",ha(t.domainLookupEnd)],["http.request.connect_start",ha(t.connectStart)],["http.request.secure_connection_start",ha(t.secureConnectionStart)],["http.request.connection_end",ha(t.connectEnd)],["http.request.request_start",ha(t.requestStart)],["http.request.response_start",ha(t.responseStart)],["http.request.response_end",ha(t.responseEnd)]]:n}function Mme(t,e){return kd(t,e||FO)}function $me(t,e,r,n){const i=t.xhr,a=i&&i[fo];if(!Nd()||!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&&(Vx(f,a.status_code),f.end(),delete n[d]);return}const o=yr(),u=na(),c=s?Yx({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Al]:"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=qe();if(i.setRequestHeader&&r(a.url)&&l){const{traceId:d,spanId:f,sampled:p,dsc:m}={...u.getPropagationContext(),...o.getPropagationContext()},b=c?fy(c):Ix(d,f,p),_=yH(m||(c?Qh(c):py(d,l,o)));kme(i,b,_)}return c}function kme(t,e,r){try{t.setRequestHeader("sentry-trace",e),r&&t.setRequestHeader(RO,r)}catch{}}function Dme(t,e=!0,r=!0){if(!Ue||!Ue.location){ut&&W.warn("Could not initialize routing instrumentation due to invalid location");return}let n=Ue.location.href,i;e&&(i=t({name:Ue.location.pathname,startTimestamp:gn?gn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),r&&Ip(({to:a,from:s})=>{if(s===void 0&&n&&n.indexOf(a)!==-1){n=void 0;return}s!==a&&(n=void 0,i&&(ut&&W.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=t({name:Ue.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const Ime="BrowserTracing",Rme={...wh,markBackgroundTransactions:!0,routingInstrumentation:Dme,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ep};class Lme{constructor(e){this.name=Ime,this._hasSetTracePropagationTargets=!1,Gx(),ut&&(this._hasSetTracePropagationTargets=!!(e&&(e.tracePropagationTargets||e.tracingOrigins))),this.options={...Rme,...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=Sz(),this.options.enableLongTask&&Oz(),this.options._experiments.enableInteractions&&Tz()}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;ut&&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 x=this._createRouteTransaction(S);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,S,r),x},u,o),c&&fz(),m.enableInteractions&&this._registerInteractionListener(),rP({traceFetch:l,traceXHR:d,tracePropagationTargets:_,shouldCreateSpanForRequest:f,enableHTTPTimings:p})}_createRouteTransaction(e){if(!this._getCurrentHub){ut&&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?V2("sentry-trace"):"",m=o?V2("baggage"):void 0,{traceparentData:b,dynamicSamplingContext:_}=Dx(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=Nme(l),l.sampled===!1&&ut&&W.log(`[Tracing] Will not send ${l.op} transaction because of beforeNavigate.`),ut&&W.log(`[Tracing] Starting ${l.op} transaction on scope`);const{location:d}=Ue,f=$0(r,l,i,a,!0,{location:d},s,o);return o&&(Ue.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ue.document.readyState)&&f.sendAutoFinishSignal()}),["interactive","complete"].includes(Ue.document.readyState)&&f.sendAutoFinishSignal()),f.registerBeforeFinishCallback(p=>{this._collectWebVitals(),Ez(p)}),f}_registerInteractionListener(){let e;const r=()=>{const{idleTimeout:n,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=Wo();if(o&&o.op&&["navigation","pageload"].includes(o.op)){ut&&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){ut&&W.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){ut&&W.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const u=this._getCurrentHub(),{location:c}=Ue,l={name:this._latestRouteName,op:s,trimEnd:!0,data:{[An]:this._latestRouteSource||"url"}};e=$0(u,l,n,i,!0,{location:c},a)};["click"].forEach(n=>{addEventListener(n,r,{once:!1,capture:!0})})}}function V2(t){const e=rH(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Nme(t){const e=t.attributes&&t.attributes[An],r=t.data&&t.data[An],n=t.metadata&&t.metadata.source;return e||r||n}const Bme="BrowserTracing",Fme={...wh,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...ep},jme=(t={})=>{const e=ut?!!(t.tracePropagationTargets||t.tracingOrigins):!1;Gx(),!t.tracePropagationTargets&&t.tracingOrigins&&(t.tracePropagationTargets=t.tracingOrigins);const r={...Fme,...t},n=Sz();r.enableLongTask&&Oz(),r._experiments.enableInteractions&&Tz();let i,a;function s(o){const u=vt(),{beforeStartSpan:c,idleTimeout:l,finalTimeout:d,heartbeatInterval:f}=r,p=o.op==="pageload";let m;if(p){const x=p?U2("sentry-trace"):"",O=p?U2("baggage"):void 0,{traceparentData:h,dynamicSamplingContext:v}=Dx(x,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=zme(b),b.sampled===!1&&ut&&W.log(`[Tracing] Will not send ${b.op} transaction because of beforeNavigate.`),ut&&W.log(`[Tracing] Starting ${b.op} transaction on scope`);const{location:_}=Ue,S=$0(u,b,l,d,!0,{location:_},f,p);return p&&(Ue.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(Ue.document.readyState)&&S.sendAutoFinishSignal()}),["interactive","complete"].includes(Ue.document.readyState)&&S.sendAutoFinishSignal()),S.registerBeforeFinishCallback(x=>{n(),Ez(x)}),S}return{name:Bme,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;ut&&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,x=Ue.location.href;if(o.on&&(o.on("startNavigationSpan",O=>{S&&(ut&&W.log(`[Tracing] Finishing current transaction with op: ${xt(S).op}`),S.end()),S=s(O)}),o.on("startPageLoadSpan",O=>{S&&(ut&&W.log(`[Tracing] Finishing current transaction with op: ${xt(S).op}`),S.end()),S=s(O)})),r.instrumentPageLoad&&o.emit){const O={name:Ue.location.pathname,startTimestamp:gn?gn/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}};xz(o,O)}r.instrumentNavigation&&o.emit&&Ip(({to:O,from:h})=>{if(h===void 0&&x&&x.indexOf(O)!==-1){x=void 0;return}if(h!==O){x=void 0;const v={name:Ue.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}};Pz(o,v)}}),c&&fz(),m.enableInteractions&&Hme(r,i,a),rP({traceFetch:l,traceXHR:d,tracePropagationTargets:_,shouldCreateSpanForRequest:f,enableHTTPTimings:p})},options:r}};function xz(t,e){t.emit&&t.emit("startPageLoadSpan",e)}function Pz(t,e){t.emit&&t.emit("startNavigationSpan",e)}function U2(t){const e=rH(`meta[name=${t}]`);return e?e.getAttribute("content"):void 0}function Hme(t,e,r){let n;const i=()=>{const{idleTimeout:a,finalTimeout:s,heartbeatInterval:o}=t,u="ui.action.click",c=Wo();if(c&&c.op&&["navigation","pageload"].includes(c.op)){ut&&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){ut&&W.warn(`[Tracing] Did not create ${u} transaction because _latestRouteName is missing.`);return}const{location:l}=Ue,d={name:e,op:u,trimEnd:!0,data:{[An]:r||"url"}};n=$0(vt(),d,a,s,!0,{location:l},o)};["click"].forEach(a=>{addEventListener(a,i,{once:!1,capture:!0})})}function zme(t){const e=t.attributes&&t.attributes[An],r=t.data&&t.data[An],n=t.metadata&&t.metadata.source;return e||r||n}const Se=Fe;let jO=0;function Cz(){return jO>0}function Vme(){jO++,setTimeout(()=>{jO--})}function nc(t,e={},r){if(typeof t!="function")return t;try{const i=t.__sentry_wrapped__;if(i)return i;if(Cx(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=>nc(s,e));return t.apply(this,a)}catch(a){throw Vme(),Np(s=>{s.addEventProcessor(o=>(e.mechanism&&(PO(o,void 0,void 0),Zh(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),Rd(a)}),a}};try{for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}catch{}oH(n,t),Jh(t,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get(){return t.name}})}catch{}return n}const tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nP(t,e){const r=iP(t,e),n={type:e&&e.name,value:Yme(e)};return r.length&&(n.stacktrace={frames:r}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function Ume(t,e,r,n){const i=qe(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:dy(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:Kme(e,{isUnhandledRejection:n})}]},extra:{__serialized__:gH(e,a)}};if(r){const o=iP(t,r);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function n1(t,e){return{exception:{values:[nP(t,e)]}}}function iP(t,e){const r=e.stacktrace||e.stack||"",n=Wme(e);try{return t(r,n)}catch{}return[]}const Gme=/Minified React error #\d+;/i;function Wme(t){if(t){if(typeof t.framesToPop=="number")return t.framesToPop;if(Gme.test(t.message))return 1}return 0}function Yme(t){const e=t&&t.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}function Az(t,e,r,n){const i=r&&r.syntheticException||void 0,a=aP(t,e,i,n);return Zh(a),a.level="error",r&&r.event_id&&(a.event_id=r.event_id),ud(a)}function Mz(t,e,r="info",n,i){const a=n&&n.syntheticException||void 0,s=HO(t,e,a,i);return s.level=r,n&&n.event_id&&(s.event_id=n.event_id),ud(s)}function aP(t,e,r,n,i){let a;if(Tx(e)&&e.error)return n1(t,e.error);if(u2(e)||Pde(e)){const s=e;if("stack"in e)a=n1(t,e);else{const o=s.name||(u2(s)?"DOMError":"DOMException"),u=s.message?`${o}: ${s.message}`:o;a=HO(t,u,r,n),PO(a,u)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return X5(e)?n1(t,e):od(e)||dy(e)?(a=Ume(t,e,r,i),Zh(a,{synthetic:!0}),a):(a=HO(t,e,r,n),PO(a,`${e}`,void 0),Zh(a,{synthetic:!0}),a)}function HO(t,e,r,n){const i={};if(n&&r){const a=iP(t,r);a.length&&(i.exception={values:[{value:e,stacktrace:{frames:a}}]})}if(Ex(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 Kme(t,{isUnhandledRejection:e}){const r=Hde(t),n=e?"promise rejection":"exception";return Tx(t)?`Event \`ErrorEvent\` captured as ${n} with message \`${t.message}\``:dy(t)?`Event \`${qme(t)}\` (type=${t.type}) captured as ${n}`:`Object captured as ${n} with keys: ${r}`}function qme(t){try{const e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch{}}function $z(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:Id(n)}},a=Xme(t);return _c(i,[a])}function Xme(t){return[{type:"user_report"},t]}class kz extends Qhe{constructor(e){const r=Se.SENTRY_SDK_SOURCE||cfe();_pe(e,"browser",["browser"],r),super(e),e.sendClientReports&&Se.document&&Se.document.addEventListener("visibilitychange",()=>{Se.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(e,r){return Az(this._options.stackParser,e,r,this._options.attachStacktrace)}eventFromMessage(e,r="info",n){return Mz(this._options.stackParser,e,r,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled()){tt&&W.warn("SDK not enabled, will not capture user feedback.");return}const r=$z(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){tt&&W.log("No outcomes to send");return}if(!this._dsn){tt&&W.log("No dsn provided, will not send outcomes");return}tt&&W.log("Sending outcomes:",e);const r=kfe(e,this._options.tunnel&&Id(this._dsn));this._sendEnvelope(r)}}let nh;function Jme(){if(nh)return nh;if($O(Se.fetch))return nh=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){tt&&W.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return nh=e.bind(Se)}function Zme(){nh=void 0}function Dz(t,e=Jme()){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 Zme(),r-=s,n--,kx(u)}}return qx(t,i)}const Qme=4;function Iz(t){function e(r){return new Jn((n,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Qme&&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 qx(t,e)}const Bd="?",ege=10,tge=20,rge=30,nge=40,ige=50;function Bp(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 age=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,sge=/\((\S*)(?::(\d+))(?::(\d+))\)/,oge=t=>{const e=age.exec(t);if(e){if(e[2]&&e[2].indexOf("eval")===0){const a=sge.exec(e[2]);a&&(e[2]=a[1],e[3]=a[2],e[4]=a[3])}const[n,i]=jz(e[1]||Bd,e[2]);return Bp(i,n,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}},Rz=[rge,oge],uge=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lge=t=>{const e=uge.exec(t);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const a=cge.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]||Bd;return[i,n]=jz(i,n),Bp(n,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},Lz=[ige,lge],dge=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,fge=t=>{const e=dge.exec(t);return e?Bp(e[2],e[1]||Bd,+e[3],e[4]?+e[4]:void 0):void 0},Nz=[nge,fge],hge=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,pge=t=>{const e=hge.exec(t);return e?Bp(e[2],e[3]||Bd,+e[1]):void 0},mge=[ege,pge],gge=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,vge=t=>{const e=gge.exec(t);return e?Bp(e[5],e[3]||e[4]||Bd,+e[1],+e[2]):void 0},bge=[tge,vge],Bz=[Rz,Lz,Nz],Fz=lH(...Bz),jz=(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]:Bd,r?`safari-extension:${e}`:`safari-web-extension:${e}`]:[t,e]},Jm=1024,Hz="Breadcrumbs",yge=(t={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t};return{name:Hz,setupOnce(){},setup(r){e.console&&Gde(Sge(r)),e.dom&&fH(wge(r,e.dom)),e.xhr&&$x(Oge(r)),e.fetch&&Mx(Tge(r)),e.history&&Ip(Ege(r)),e.sentry&&r.on&&r.on("beforeSendEvent",_ge(r))}}},sP=yge,zz=Fn(Hz,sP);function _ge(t){return function(r){qe()===t&&$s({category:`sentry.${r.type==="transaction"?"transaction":"event"}`,event_id:r.event_id,level:r.level,message:oo(r)},{event:r})}}function wge(t,e){return function(n){if(qe()!==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>Jm&&(tt&&W.warn(`\`dom.maxStringLength\` cannot exceed ${Jm}, but a value of ${o} was configured. Sentry will use ${Jm} instead.`),o=Jm),typeof s=="string"&&(s=[s]);try{const c=n.event,l=xge(c)?c.target:c;i=tc(l,{keyAttrs:s,maxStringLength:o}),a=nH(l)}catch{i=""}if(i.length===0)return;const u={category:`ui.${n.name}`,message:i};a&&(u.data={"ui.component_name":a}),$s(u,{event:n.event,name:n.name,global:n.global})}}function Sge(t){return function(r){if(qe()!==t)return;const n={category:"console",data:{arguments:r.args,logger:"console"},level:yfe(r.level),message:c2(r.args," ")};if(r.level==="assert")if(r.args[0]===!1)n.message=`Assertion failed: ${c2(r.args.slice(1)," ")||"console.assert"}`,n.data.arguments=r.args.slice(1);else return;$s(n,{input:r.args,level:r.level})}}function Oge(t){return function(r){if(qe()!==t)return;const{startTimestamp:n,endTimestamp:i}=r,a=r.xhr[fo];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};$s({category:"xhr",data:l,type:"http"},d)}}function Tge(t){return function(r){if(qe()!==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};$s({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};$s({category:"fetch",data:s,type:"http"},o)}}}function Ege(t){return function(r){if(qe()!==t)return;let n=r.from,i=r.to;const a=cv(Se.location.href);let s=n?cv(n):void 0;const o=cv(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),$s({category:"navigation",data:{from:n,to:i}})}}function xge(t){return!!t&&!!t.target}const Vz="Dedupe",Pge=()=>{let t;return{name:Vz,setupOnce(){},processEvent(e){if(e.type)return e;try{if(Cge(e,t))return tt&&W.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return t=e}}},oP=Pge,Uz=Fn(Vz,oP);function Cge(t,e){return e?!!(Age(t,e)||Mge(t,e)):!1}function Age(t,e){const r=t.message,n=e.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!Wz(t,e)||!Gz(t,e))}function Mge(t,e){const r=G2(e),n=G2(t);return!(!r||!n||r.type!==n.type||r.value!==n.value||!Wz(t,e)||!Gz(t,e))}function Gz(t,e){let r=W2(t),n=W2(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:Yz,setupOnce(){Error.stackTraceLimit=50},setup(r){e.onerror&&(kge(r),Y2("onerror")),e.onunhandledrejection&&(Dge(r),Y2("onunhandledrejection"))}}},uP=$ge,Kz=Fn(Yz,uP);function kge(t){pH(e=>{const{stackParser:r,attachStacktrace:n}=Xz();if(qe()!==t||Cz())return;const{msg:i,url:a,line:s,column:o,error:u}=e,c=u===void 0&&Ra(i)?Lge(i,a,s,o):qz(aP(r,u||i,void 0,n,!1),a,s,o);c.level="error",Fx(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})})}function Dge(t){mH(e=>{const{stackParser:r,attachStacktrace:n}=Xz();if(qe()!==t||Cz())return;const i=Ige(e),a=xx(i)?Rge(i):aP(r,i,void 0,n,!0);a.level="error",Fx(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Ige(t){if(xx(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 Rge(t){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(t)}`}]}}}function Lge(t,e,r,n){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Tx(t)?t.message:t,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),qz({exception:{values:[{type:s,value:a}]}},e,r,n)}function qz(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=Ra(e)&&e.length>0?e:tH();return u.length===0&&u.push({colno:c,filename:d,function:"?",in_app:!0,lineno:l}),t}function Y2(t){tt&&W.log(`Global Handler attached: ${t}`)}function Xz(){const t=qe();return t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Jz="HttpContext",Nge=()=>({name:Jz,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}}),cP=Nge,Zz=Fn(Jz,cP),Bge="cause",Fge=5,Qz="LinkedErrors",jge=(t={})=>{const e=t.limit||Fge,r=t.key||Bge;return{name:Qz,setupOnce(){},preprocessEvent(n,i,a){const s=a.getOptions();Q5(nP,s.stackParser,s.maxValueLength,r,e,n,i)}}},lP=jge,eV=Fn(Qz,lP),Hge=["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"],tV="TryCatch",zge=(t={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t};return{name:tV,setupOnce(){e.setTimeout&&Ir(Se,"setTimeout",K2),e.setInterval&&Ir(Se,"setInterval",K2),e.requestAnimationFrame&&Ir(Se,"requestAnimationFrame",Vge),e.XMLHttpRequest&&"XMLHttpRequest"in Se&&Ir(XMLHttpRequest.prototype,"send",Uge);const r=e.eventTarget;r&&(Array.isArray(r)?r:Hge).forEach(Gge)}}},dP=zge,rV=Fn(tV,dP);function K2(t){return function(...e){const r=e[0];return e[0]=nc(r,{mechanism:{data:{function:Ms(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function Vge(t){return function(e){return t.apply(this,[nc(e,{mechanism:{data:{function:"requestAnimationFrame",handler:Ms(t)},handled:!1,type:"instrument"}})])}}function Uge(t){return function(...e){const r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in r&&typeof r[i]=="function"&&Ir(r,i,function(a){const s={mechanism:{data:{function:i,handler:Ms(a)},handled:!1,type:"instrument"}},o=Cx(a);return o&&(s.mechanism.data.handler=Ms(o)),nc(a,s)})}),t.apply(this,e)}}function Gge(t){const e=Se,r=e[t]&&e[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Ir(r,"addEventListener",function(n){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=nc(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Ms(a),target:t},handled:!1,type:"instrument"}}))}catch{}return n.apply(this,[i,nc(a,{mechanism:{data:{function:"addEventListener",handler:Ms(a),target:t},handled:!1,type:"instrument"}}),s])}}),Ir(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 nV=[Xx(),Jx(),dP(),sP(),uP(),lP(),oP(),cP()];function fP(t){return[...nV]}function Wge(t={}){t.defaultIntegrations===void 0&&(t.defaultIntegrations=fP()),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:Vde(t.stackParser||Fz),integrations:Hhe(t),transport:t.transport||(hH()?Dz:Iz)};ope(kz,e),t.autoSessionTracking&&Jge()}const Yge=(t={},e=vt())=>{if(!Se.document){tt&&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){tt&&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=Fhe(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):tt&&W.error("Not injecting report dialog. No injection point found in HTML")};function Kge(){}function qge(t){t()}function Xge(t){return nc(t)()}function Jge(){if(typeof Se.document>"u"){tt&&W.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}E2({ignoreDuration:!0}),x2(),Ip(({from:t,to:e})=>{t!==void 0&&t!==e&&(E2({ignoreDuration:!0}),x2())})}function Zge(t){const e=qe();e&&e.captureUserFeedback(t)}const Qge=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:zz,Dedupe:Uz,GlobalHandlers:Kz,HttpContext:Zz,LinkedErrors:eV,TryCatch:rV},Symbol.toStringTag,{value:"Module"})),Ct=Fe,hP="sentryReplaySession",eve="replay_event",pP="Unable to send Replay",tve=3e5,rve=9e5,nve=5e3,ive=5500,ave=6e4,sve=5e3,ove=3,q2=15e4,Zm=5e3,uve=3e3,cve=300,mP=2e7,lve=4999,dve=15e3,X2=36e5;function fve(t,e){return t??e()}function I0(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}var wr;(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"})(wr||(wr={}));function hve(t){return t.nodeType===t.ELEMENT_NODE}function Th(t){const e=I0([t,"optionalAccess",r=>r.host]);return I0([e,"optionalAccess",r=>r.shadowRoot])===t}function Eh(t){return Object.prototype.toString.call(t)==="[object ShadowRoot]"}function pve(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 mve(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 R0(t){try{const e=t.rules||t.cssRules;return e?pve(Array.from(e,iV).join("")):null}catch{return null}}function iV(t){let e;if(vve(t))try{e=R0(t.styleSheet)||mve(t)}catch{}else if(bve(t)&&t.selectorText.includes(":"))return gve(t.cssText);return e||t.cssText}function gve(t){const e=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return t.replace(e,"$1\\$2")}function vve(t){return"styleSheet"in t}function bve(t){return"selectorText"in t}class aV{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(e){if(!e)return-1;const r=I0([this,"access",n=>n.getMeta,"call",n=>n(e),"optionalAccess",n=>n.id]);return fve(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 yve(){return new aV}function wy({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 tp({isMasked:t,element:e,value:r,maskInputFn:n}){let i=r||"";return t?(n&&(i=n(i,e)),"*".repeat(i.length)):i}function fd(t){return t.toLowerCase()}function zO(t){return t.toUpperCase()}const J2="__rrweb_original__";function _ve(t){const e=t.getContext("2d");if(!e)return!0;const r=50;for(let n=0;nu!==0))return!1}return!0}function gP(t){const e=t.type;return t.hasAttribute("data-rr-is-password")?"password":e?fd(e):null}function L0(t,e,r){return e==="INPUT"&&(r==="radio"||r==="checkbox")?t.getAttribute("value")||"":t.value}let wve=1;const Sve=new RegExp("[^a-z0-9-_:]"),rp=-2;function vP(){return wve++}function Ove(t){if(t instanceof HTMLFormElement)return"form";const e=fd(t.tagName);return Sve.test(e)?"div":e}function Tve(t){let e="";return t.indexOf("//")>-1?e=t.split("/").slice(0,3).join("/"):e=t.split("/")[0],e=e.split("?")[0],e}let el,Z2;const Eve=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,xve=/^(?:[a-z+]+:)?\/\//i,Pve=/^www\..*/i,Cve=/^(data:)([^,]*),(.*)/i;function N0(t,e){return(t||"").replace(Eve,(r,n,i,a,s,o)=>{const u=i||s||o,c=n||a||"";if(!u)return r;if(xve.test(u)||Pve.test(u))return`url(${c}${u}${c})`;if(Cve.test(u))return`url(${c}${u}${c})`;if(u[0]==="/")return`url(${c}${Tve(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 Ave=/^[^ \t\n\r\u000c]+/,Mve=/^[, \t\n\r\u000c]+/;function $ve(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(Mve),!(r>=e.length);){let a=n(Ave);if(a.slice(-1)===",")a=Ml(t,a.substring(0,a.length-1)),i.push(a);else{let s="";a=Ml(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 Ml(t,e){if(!e||e.trim()==="")return e;const r=t.createElement("a");return r.href=e,r.href}function kve(t){return!!(t.tagName==="svg"||t.ownerSVGElement)}function bP(){const t=document.createElement("a");return t.href="",t.href}function sV(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")?Ml(t,n):r==="srcset"?$ve(t,n):r==="style"?N0(n,bP()):e==="object"&&r==="data"?Ml(t,n):typeof a=="function"?a(r,n,i):n)}function oV(t,e,r){return(t==="video"||t==="audio")&&e==="autoplay"}function Dve(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 Ive(t,e){for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}return!1}function Eu(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:Eu(t.parentNode,e,r,n+1)}function $l(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(Ive(n,t))return!0}return!!(e&&n.matches(e))}catch{return!1}}}function hd(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=Eu(s,$l(n,i)),u<0)return!0;o=Eu(s,$l(e,r),u>=0?u:1/0)}else{if(o=Eu(s,$l(e,r)),o<0)return!1;u=Eu(s,$l(n,i),o>=0?o:1/0)}return o>=0?u>=0?o<=u:!0:u>=0?!1:!!a}catch{}return!!a}function Rve(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 Lve(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 Nve(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:x,recordCanvas:O,keepIframeSrcFn:h,newlyAddedElement:v=!1}=e,g=Bve(r,n);switch(t.nodeType){case t.DOCUMENT_NODE:return t.compatMode!=="CSS1Compat"?{type:wr.Document,childNodes:[],compatMode:t.compatMode}:{type:wr.Document,childNodes:[]};case t.DOCUMENT_TYPE_NODE:return{type:wr.DocumentType,name:t.name,publicId:t.publicId,systemId:t.systemId,rootId:g};case t.ELEMENT_NODE:return jve(t,{doc:r,blockClass:i,blockSelector:a,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:u,maskInputOptions:m,maskInputFn:_,dataURLOptions:S,inlineImages:x,recordCanvas:O,keepIframeSrcFn:h,newlyAddedElement:v,rootId:g,maskAllText:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:d,unmaskTextSelector:f});case t.TEXT_NODE:return Fve(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:wr.CDATA,textContent:"",rootId:g};case t.COMMENT_NODE:return{type:wr.Comment,textContent:t.textContent||"",rootId:g};default:return!1}}function Bve(t,e){if(!e.hasNode(t))return;const r=e.getId(t);return r===1?void 0:r}function Fve(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||I0([t,"access",S=>S.parentNode,"access",S=>S.sheet,"optionalAccess",S=>S.cssRules])&&(f=R0(t.parentNode.sheet))}catch(S){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${S}`,t)}f=N0(f,bP())}m&&(f="SCRIPT_PLACEHOLDER");const _=hd(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=wy({type:null,tagName:d,maskInputOptions:u});f=tp({isMasked:hd(t,n,a,i,s,S),element:t,value:f,maskInputFn:c})}return{type:wr.Text,textContent:f||"",isStyle:p,rootId:l}}function jve(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:x,maskTextSelector:O,unmaskTextSelector:h}=e,v=Dve(t,n,i,a),g=Ove(t);let T={};const P=t.attributes.length;for(let w=0;wC.href===t.href);let A=null;w&&(A=R0(w)),A&&(delete T.rel,delete T.href,T._cssText=N0(A,w.href))}if(g==="style"&&t.sheet&&!(t.innerText||t.textContent||"").trim().length){const w=R0(t.sheet);w&&(T._cssText=N0(w,bP()))}if(g==="input"||g==="textarea"||g==="select"||g==="option"){const w=t,A=gP(w),C=L0(w,zO(g),A),E=w.checked;if(A!=="submit"&&A!=="button"&&C){const $=hd(w,S,O,x,h,wy({type:A,tagName:zO(g),maskInputOptions:o}));T.value=tp({isMasked:$,element:w,value:C,maskInputFn:c})}E&&(T.checked=E)}if(g==="option"&&(t.selected&&!o.select?T.selected=!0:delete T.selected),g==="canvas"&&f){if(t.__context==="2d")_ve(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 C=A.toDataURL(l.type,l.quality);w!==C&&(T.rr_dataURL=w)}}if(g==="img"&&d){el||(el=r.createElement("canvas"),Z2=el.getContext("2d"));const w=t,A=w.crossOrigin;w.crossOrigin="anonymous";const C=()=>{w.removeEventListener("load",C);try{el.width=w.naturalWidth,el.height=w.naturalHeight,Z2.drawImage(w,0,0),T.rr_dataURL=el.toDataURL(l.type,l.quality)}catch(E){console.warn(`Cannot inline img src=${w.currentSrc}! Error: ${E}`)}A?T.crossOrigin=A:w.removeAttribute("crossorigin")};w.complete&&w.naturalWidth!==0?C():w.addEventListener("load",C)}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:wr.Element,tagName:g,attributes:T,childNodes:[],isSVG:kve(t)||void 0,needBlock:v,rootId:b,isCustom:k}}function Pt(t){return t==null?"":t.toLowerCase()}function Hve(t,e){if(e.comment&&t.type===wr.Comment)return!0;if(t.type===wr.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"&&(Pt(t.attributes.name).match(/^msapplication-tile(image|color)$/)||Pt(t.attributes.name)==="application-name"||Pt(t.attributes.rel)==="icon"||Pt(t.attributes.rel)==="apple-touch-icon"||Pt(t.attributes.rel)==="shortcut icon")))return!0;if(t.tagName==="meta"){if(e.headMetaDescKeywords&&Pt(t.attributes.name).match(/^description|keywords$/))return!0;if(e.headMetaSocial&&(Pt(t.attributes.property).match(/^(og|twitter|fb):/)||Pt(t.attributes.name).match(/^(og|twitter):/)||Pt(t.attributes.name)==="pinterest"))return!0;if(e.headMetaRobots&&(Pt(t.attributes.name)==="robots"||Pt(t.attributes.name)==="googlebot"||Pt(t.attributes.name)==="bingbot"))return!0;if(e.headMetaHttpEquiv&&t.attributes["http-equiv"]!==void 0)return!0;if(e.headMetaAuthorship&&(Pt(t.attributes.name)==="author"||Pt(t.attributes.name)==="generator"||Pt(t.attributes.name)==="framework"||Pt(t.attributes.name)==="publisher"||Pt(t.attributes.name)==="progid"||Pt(t.attributes.property).match(/^article:/)||Pt(t.attributes.property).match(/^product:/)))return!0;if(e.headMetaVerification&&(Pt(t.attributes.name)==="google-site-verification"||Pt(t.attributes.name)==="yandex-verification"||Pt(t.attributes.name)==="csrf-token"||Pt(t.attributes.name)==="p:domain_verify"||Pt(t.attributes.name)==="verify-v1"||Pt(t.attributes.name)==="verification"||Pt(t.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function kl(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:x,dataURLOptions:O={},inlineImages:h=!1,recordCanvas:v=!1,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:P=5e3,onStylesheetLoad:k,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:A=()=>!1,newlyAddedElement:C=!1}=e;let{preserveWhiteSpace:E=!0}=e;const $=Nve(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:C});if(!$)return console.warn(t,"not serialized"),null;let D;n.hasNode(t)?D=n.getId(t):Hve($,x)||!E&&$.type===wr.Text&&!$.isStyle&&!$.textContent.replace(/^\s+|\s+$/gm,"").length?D=rp:D=vP();const M=Object.assign($,{id:D});if(n.add(t,M),D===rp)return null;g&&g(t);let L=!f;if(M.type===wr.Element){L=L&&!M.needBlock,delete M.needBlock;const N=t.shadowRoot;N&&Eh(N)&&(M.isShadowHost=!0)}if((M.type===wr.Document||M.type===wr.Element)&&L){x.headWhitespace&&M.type===wr.Element&&M.tagName==="head"&&(E=!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:x,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:E,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A};for(const j of Array.from(t.childNodes)){const z=kl(j,N);z&&M.childNodes.push(z)}if(hve(t)&&t.shadowRoot)for(const j of Array.from(t.shadowRoot.childNodes)){const z=kl(j,N);z&&(Eh(t.shadowRoot)&&(z.isShadow=!0),M.childNodes.push(z))}}return t.parentNode&&Th(t.parentNode)&&Eh(t.parentNode)&&(M.isShadow=!0),M.type===wr.Element&&M.tagName==="iframe"&&Rve(t,()=>{const N=t.contentDocument;if(N&&T){const j=kl(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:x,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:E,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A});j&&T(t,j)}},P),M.type===wr.Element&&M.tagName==="link"&&M.attributes.rel==="stylesheet"&&Lve(t,()=>{if(k){const N=kl(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:x,dataURLOptions:O,inlineImages:h,recordCanvas:v,preserveWhiteSpace:E,onSerialize:g,onIframeLoad:T,iframeLoadTimeout:P,onStylesheetLoad:k,stylesheetLoadTimeout:w,keepIframeSrcFn:A});N&&k(t,N)}},w),M}function zve(t,e){const{mirror:r=new aV,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:x=!1,dataURLOptions:O,preserveWhiteSpace:h,onSerialize:v,onIframeLoad:g,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:w=()=>!1}=e||{};return kl(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:x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:x==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:x===!1?{}:x,dataURLOptions:O,inlineImages:f,recordCanvas:p,preserveWhiteSpace:h,onSerialize:v,onIframeLoad:g,iframeLoadTimeout:T,onStylesheetLoad:P,stylesheetLoadTimeout:k,keepIframeSrcFn:w,newlyAddedElement:!1})}function to(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}function ln(t,e,r=document){const n={capture:!0,passive:!0};return r.addEventListener(t,e,n),()=>r.removeEventListener(t,e,n)}const gl=`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 Q2={map:{},getId(){return console.error(gl),-1},getNode(){return console.error(gl),null},removeNodeFromMap(){console.error(gl)},has(){return console.error(gl),!1},reset(){console.error(gl)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Q2=new Proxy(Q2,{get(t,e,r){return e==="map"&&console.error(gl),Reflect.get(t,e,r)}}));function np(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 uV(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)}}),()=>uV(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()=>{}}}let B0=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(B0=()=>new Date().getTime());function cV(t){const e=t.document;return{left:e.scrollingElement?e.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:to([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollLeft])||to([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollLeft])||to([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollLeft])||0,top:e.scrollingElement?e.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:to([e,"optionalAccess",r=>r.documentElement,"access",r=>r.scrollTop])||to([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.parentElement,"optionalAccess",r=>r.scrollTop])||to([e,"optionalAccess",r=>r.body,"optionalAccess",r=>r.scrollTop])||0}}function lV(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function dV(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Li(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=$l(e,r);if(!i){const c=n&&a.matches(n);return s(a)&&!c}const o=Eu(a,s);let u=-1;return o<0?!1:(n&&(u=Eu(a,$l(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 hV(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function pV(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function UO(t){return!!to([t,"optionalAccess",e=>e.shadowRoot])}class Gve{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return Nfe(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 mV(t){let e=null;return to([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 Wve(t){let e=t,r;for(;r=mV(e);)e=r;return e}function Yve(t){const e=t.ownerDocument;if(!e)return!1;const r=Wve(t);return e.contains(r)}function gV(t){const e=t.ownerDocument;return e?e.contains(t)||Yve(t):!1}let a1;function Kve(){if(a1)return a1;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 a1=e.bind(window)}function qve(...t){return Kve()(...t)}var He=(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))(He||{}),ze=(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))(ze||{}),an=(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))(an||{}),ts=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(ts||{});function Xve(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}function eR(t){return"__ln"in t}class Jve{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&&eR(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&&eR(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 tR=(t,e)=>`${t}@${e}`;class Zve{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 Jve,i=u=>{let c=u,l=rp;for(;l===rp;)c=c&&c.nextSibling,l=c&&this.mirror.getId(c);return l},a=u=>{if(!u.parentNode||!gV(u))return;const c=Th(u.parentNode)?this.mirror.getId(mV(u)):this.mirror.getId(u.parentNode),l=i(u);if(c===-1||l===-1)return n.addNode(u);const d=kl(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=>{hV(f,this.mirror)&&this.iframeManager.addIframe(f),pV(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),UO(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)rR(this.removes,u,this.mirror)&&!this.movedSet.has(u.parentNode)||a(u);for(const u of this.addedSet)!nR(this.droppedSet,u)&&!rR(this.removes,u,this.mirror)||nR(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(i1(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;!Li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:hd(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=gP(n),u=n.tagName;a=L0(n,u,o);const c=wy({maskInputOptions:this.maskInputOptions,tagName:u,type:o}),l=hd(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);a=tp({isMasked:l,element:n,value:a,maskInputFn:this.maskInputFn})}if(Li(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"),!oV(n.tagName,i)&&(s.attributes[i]=sV(this.doc,fd(n.tagName),fd(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(Li(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=Th(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);Li(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i1(n,this.mirror)||!Vve(n,this.mirror)||(this.addedSet.has(n)?(GO(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&i===-1||fV(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[tR(i,a)]?GO(this.movedSet,n):this.removes.push({parentId:a,id:i,isShadow:Th(e.target)&&Eh(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(i1(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[tR(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Li(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes.forEach(n=>this.genAdds(n)),UO(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 GO(t,e){t.delete(e),e.childNodes.forEach(r=>GO(t,r))}function rR(t,e,r){return t.length===0?!1:vV(t,e,r)}function vV(t,e,r){const{parentNode:n}=e;if(!n)return!1;const i=r.getId(n);return t.some(a=>a.id===i)?!0:vV(t,n,r)}function nR(t,e){return t.size===0?!1:bV(t,e)}function bV(t,e){const{parentNode:r}=e;return r?t.has(r)?!0:bV(t,r):!1}let xh;function Qve(t){xh=t}function e0e(){xh=void 0}const et=t=>xh?(...r)=>{try{return t(...r)}catch(n){if(xh&&xh(n)===!0)return()=>{};throw n}}:t;function xa(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}const Dl=[];function Fp(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 yV(t,e){const r=new Zve;Dl.push(r),r.init(t);let n=window.MutationObserver||window.__rrMutationObserver;const i=xa([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);i&&window[i]&&(n=window[i]);const a=new n(et(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 t0e({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=np(et(d=>{const f=Date.now()-o;t(s.map(p=>(p.timeOffset-=f,p)),d),s=[],o=null}),a),c=et(np(et(d=>{const f=Fp(d),{clientX:p,clientY:m}=VO(d)?d.changedTouches[0]:d;o||(o=B0()),s.push({x:p,y:m,id:n.getId(f),timeOffset:B0()-o}),u(typeof DragEvent<"u"&&d instanceof DragEvent?ze.Drag:d instanceof MouseEvent?ze.MouseMove:ze.TouchMove)}),i,{trailing:!1})),l=[ln("mousemove",c,r),ln("touchmove",c,r),ln("drag",c,r)];return et(()=>{l.forEach(d=>d())})}function r0e({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=Fp(f);if(Li(p,n,i,a,!0))return;let m=null,b=d;if("pointerType"in f){switch(f.pointerType){case"mouse":m=ts.Mouse;break;case"touch":m=ts.Touch;break;case"pen":m=ts.Pen;break}m===ts.Touch?an[d]===an.MouseDown?b="TouchStart":an[d]===an.MouseUp&&(b="TouchEnd"):ts.Pen}else VO(f)&&(m=ts.Touch);m!==null?(c=m,(b.startsWith("Touch")&&m===ts.Touch||b.startsWith("Mouse")&&m===ts.Mouse)&&(m=null)):an[d]===an.Click&&(m=c,c=null);const _=VO(f)?f.changedTouches[0]:f;if(!_)return;const S=r.getId(p),{clientX:x,clientY:O}=_;et(t)({type:an[b],id:S,x,y:O,...m!==null&&{pointerType:m}})};return Object.keys(an).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&o[d]!==!1).forEach(d=>{let f=fd(d);const p=l(d);if(window.PointerEvent)switch(an[d]){case an.MouseDown:case an.MouseUp:f=f.replace("mouse","pointer");break;case an.TouchStart:case an.TouchEnd:return}u.push(ln(f,p,e))}),et(()=>{u.forEach(d=>d())})}function _V({scrollCb:t,doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,sampling:s}){const o=et(np(et(u=>{const c=Fp(u);if(!c||Li(c,n,i,a,!0))return;const l=r.getId(c);if(c===e&&e.defaultView){const d=cV(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 ln("scroll",o,e)}function n0e({viewportResizeCb:t},{win:e}){let r=-1,n=-1;const i=et(np(et(()=>{const a=lV(),s=dV();(r!==a||n!==s)&&(t({width:Number(s),height:Number(a)}),r=a,n=s)}),200));return ln("resize",i,e)}const i0e=["INPUT","TEXTAREA","SELECT"],iR=new WeakMap;function a0e({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 P=Fp(T);const k=T.isTrusted,w=P&&zO(P.tagName);if(w==="OPTION"&&(P=P.parentElement),!P||!w||i0e.indexOf(w)<0||Li(P,n,i,a,!0))return;const A=P;if(A.classList.contains(s)||o&&A.matches(o))return;const C=gP(P);let E=L0(A,w,C),$=!1;const D=wy({maskInputOptions:u,tagName:w,type:C}),M=hd(P,f,m,p,b,D);(C==="radio"||C==="checkbox")&&($=P.checked),E=tp({isMasked:M,element:P,value:E,maskInputFn:c}),S(P,d?{text:E,isChecked:$,userTriggered:k}:{text:E,isChecked:$});const L=P.name;C==="radio"&&L&&$&&e.querySelectorAll(`input[type="radio"][name="${L}"]`).forEach(N=>{if(N!==P){const j=tp({isMasked:M,element:N,value:L0(N,w,C),maskInputFn:c});S(N,d?{text:j,isChecked:!$,userTriggered:!1}:{text:j,isChecked:!$})}})}function S(T,P){const k=iR.get(T);if(!k||k.text!==P.text||k.isChecked!==P.isChecked){iR.set(T,P);const w=r.getId(T);et(t)({...P,id:w})}}const O=(l.input==="last"?["change"]:["input","change"]).map(T=>ln(T,et(_),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=>uV(T[0],T[1],{set(){et(_)({target:this,isTrusted:!1})}},!1,h))),et(()=>{O.forEach(T=>T())})}function F0(t){const e=[];function r(n,i){if(Qm("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Qm("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Qm("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Qm("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 ro(t,e,r){let n,i;return t?(t.ownerNode?n=e.getId(t.ownerNode):i=r.getId(t),{styleId:i,id:n}):{}}function s0e({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:et((l,d,f)=>{const[p,m]=f,{id:b,styleId:_}=ro(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:et((l,d,f)=>{const[p]=f,{id:m,styleId:b}=ro(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:et((l,d,f)=>{const[p]=f,{id:m,styleId:b}=ro(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:et((l,d,f)=>{const[p]=f,{id:m,styleId:b}=ro(d,e,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&t({id:m,styleId:b,replaceSync:p}),l.apply(d,f)})}));const u={};eg("CSSGroupingRule")?u.CSSGroupingRule=n.CSSGroupingRule:(eg("CSSMediaRule")&&(u.CSSMediaRule=n.CSSMediaRule),eg("CSSConditionRule")&&(u.CSSConditionRule=n.CSSConditionRule),eg("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:et((f,p,m)=>{const[b,_]=m,{id:S,styleId:x}=ro(p.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||x&&x!==-1)&&t({id:S,styleId:x,adds:[{rule:b,index:[...F0(p),_||0]}]}),f.apply(p,m)})}),d.prototype.deleteRule=new Proxy(c[l].deleteRule,{apply:et((f,p,m)=>{const[b]=m,{id:_,styleId:S}=ro(p.parentStyleSheet,e,r.styleMirror);return(_&&_!==-1||S&&S!==-1)&&t({id:_,styleId:S,removes:[{index:[...F0(p),b]}]}),f.apply(p,m)})})}),et(()=>{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 wV({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"?xa([r,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):xa([r,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),a=xa([i,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(xa([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 xa([a,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){const o=xa([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}}),et(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function o0e({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:r,stylesheetManager:n},{win:i}){const a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:et((o,u,c)=>{const[l,d,f]=c;if(r.has(l))return a.apply(u,[l,d,f]);const{id:p,styleId:m}=ro(xa([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:F0(u.parentRule)}),o.apply(u,c)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:et((o,u,c)=>{const[l]=c;if(r.has(l))return s.apply(u,[l]);const{id:d,styleId:f}=ro(xa([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:F0(u.parentRule)}),o.apply(u,c)})}),et(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=s})}function u0e({mediaInteractionCb:t,blockClass:e,blockSelector:r,unblockSelector:n,mirror:i,sampling:a,doc:s}){const o=et(c=>np(et(l=>{const d=Fp(l);if(!d||Li(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=[ln("play",o(0),s),ln("pause",o(1),s),ln("seeked",o(2),s),ln("volumechange",o(3),s),ln("ratechange",o(4),s)];return et(()=>{u.forEach(c=>c())})}function c0e({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=yP(e.fonts,"add",function(o){return function(u){return setTimeout(et(()=>{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),et(()=>{n.forEach(o=>o())})}function l0e(t){const{doc:e,mirror:r,blockClass:n,blockSelector:i,unblockSelector:a,selectionCb:s}=t;let o=!0;const u=et(()=>{const c=e.getSelection();if(!c||o&&xa([c,"optionalAccess",f=>f.isCollapsed]))return;o=c.isCollapsed||!1;const l=[],d=c.rangeCount||0;for(let f=0;f{}:yP(r.customElements,"define",function(i){return function(a,s,o){try{e({define:{name:a}})}catch{}return i.apply(this,[a,s,o])}})}function f0e(t,e={}){const r=t.doc.defaultView;if(!r)return()=>{};const n=yV(t,t.doc),i=t0e(t),a=r0e(t),s=_V(t),o=n0e(t,{win:r}),u=a0e(t),c=u0e(t),l=s0e(t,{win:r}),d=wV(t,t.doc),f=o0e(t,{win:r}),p=t.collectFonts?c0e(t):()=>{},m=l0e(t),b=d0e(t),_=[];for(const S of t.plugins)_.push(S.observer(S.callback,r,S.options));return et(()=>{Dl.forEach(S=>S.reset()),n.disconnect(),i(),a(),s(),o(),u(),c(),l(),d(),f(),p(),m(),b(),_.forEach(S=>S())})}function Qm(t){return typeof window[t]<"u"}function eg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class WO{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 aR(t){let e,r=t[0],n=1;for(;nr.call(e,...s)),e=void 0)}return r}class h0e{constructor(){this.crossOriginIframeMirror=new WO(vP),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class p0e{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new WO(vP),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new WO(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}),aR([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 He.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:He.IncrementalSnapshot,data:{source:ze.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case He.Meta:case He.Load:case He.DomContentLoaded:return!1;case He.Plugin:return r;case He.Custom:return this.replaceIds(r.data.payload,e,["id","parentId","previousId","nextId"]),r;case He.IncrementalSnapshot:switch(r.data.source){case ze.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 ze.Drag:case ze.TouchMove:case ze.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,e,["id"])}),r;case ze.ViewportResize:return!1;case ze.MediaInteraction:case ze.MouseInteraction:case ze.Scroll:case ze.CanvasMutation:case ze.Input:return this.replaceIds(r.data,e,["id"]),r;case ze.StyleSheetRule:case ze.StyleDeclaration:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleId"]),r;case ze.Font:return r;case ze.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,e,["start","end"])}),r;case ze.AdoptedStyleSheet:return this.replaceIds(r.data,e,["id"]),this.replaceStyleIds(r.data,e,["styleIds"]),aR([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!==wr.Document&&!e.rootId&&(e.rootId=r),"childNodes"in e&&e.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}}class m0e{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class g0e{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(!Eh(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const n=yV({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(_V({...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(wV({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(yP(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 sR{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class v0e{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Gve,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:iV(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 b0e{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){qve(()=>{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 vr(t){const e=t;return e.timestamp=B0(),e}let j0;const Di=yve();function Eo(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:x,maskInputFn:O,maskTextFn:h,packFn:v,sampling:g={},dataURLOptions:T={},mousemoveWait:P,recordCanvas:k=!1,recordCrossOriginIframes:w=!1,recordAfter:A=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:C=!1,collectFonts:E=!1,inlineImages:$=!1,plugins:D,keepIframeSrcFn:M=()=>!1,ignoreCSSAttributes:L=new Set([]),errorHandler:N,onMutation:j,getCanvasManager:z}=t;Qve(N);const U=w?window.parent===window:!0;let J=!1;if(!U)try{window.parent.document&&(J=!1)}catch{J=!0}if(U&&!e)throw new Error("emit function is required");P!==void 0&&g.mousemove===void 0&&(g.mousemove=P),Di.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||{};Uve();let G,K=0;const X=De=>{for(const xr of D||[])xr.eventProcessor&&(De=xr.eventProcessor(De));return v&&!J&&(De=v(De)),De},se=(De,xr)=>{if(lv([Dl,"access",je=>je[0],"optionalAccess",je=>je.isFrozen,"call",je=>je()])&&De.type!==He.FullSnapshot&&!(De.type===He.IncrementalSnapshot&&De.data.source===ze.Mutation)&&Dl.forEach(je=>je.unfreeze()),U)lv([e,"optionalCall",je=>je(X(De),xr)]);else if(J){const je={type:"rrweb",event:X(De),origin:window.location.origin,isCheckout:xr};window.parent.postMessage(je,"*")}if(De.type===He.FullSnapshot)G=De,K=0;else if(De.type===He.IncrementalSnapshot){if(De.data.source===ze.Mutation&&De.data.isAttachIframe)return;K++;const je=n&&K>=n,Gr=r&&De.timestamp-G.timestamp>r;(je||Gr)&&Xo(!0)}},Ae=De=>{se(vr({type:He.IncrementalSnapshot,data:{source:ze.Mutation,...De}}))},Ye=De=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.Scroll,...De}})),bt=De=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.CanvasMutation,...De}})),ir=De=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.AdoptedStyleSheet,...De}})),Hr=new v0e({mutationCb:Ae,adoptedStyleSheetCb:ir}),bn=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new h0e:new p0e({mirror:Di,mutationCb:Ae,stylesheetManager:Hr,recordCrossOriginIframes:w,wrappedEmit:se});for(const De of D||[])De.getMirror&&De.getMirror({nodeMirror:Di,crossOriginIframeMirror:bn.crossOriginIframeMirror,crossOriginIframeStyleMirror:bn.crossOriginIframeStyleMirror});const oa=new b0e,Ya=_0e(z,{mirror:Di,win:window,mutationCb:De=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.CanvasMutation,...De}})),recordCanvas:k,blockClass:i,blockSelector:a,unblockSelector:s,sampling:g.canvas,dataURLOptions:T}),ua=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new m0e:new g0e({mutationCb:Ae,scrollCb:Ye,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:x,maskTextFn:h,maskInputFn:O,recordCanvas:k,inlineImages:$,sampling:g,slimDOMOptions:Y,iframeManager:bn,stylesheetManager:Hr,canvasManager:Ya,keepIframeSrcFn:M,processedNodeManager:oa},mirror:Di}),Xo=(De=!1)=>{se(vr({type:He.Meta,data:{href:window.location.href,width:dV(),height:lV()}}),De),Hr.reset(),ua.init(),Dl.forEach(je=>je.lock());const xr=zve(document,{mirror:Di,blockClass:i,blockSelector:a,unblockSelector:s,maskAllText:c,maskTextClass:l,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:re,maskAttributeFn:x,maskInputFn:O,maskTextFn:h,slimDOM:Y,dataURLOptions:T,recordCanvas:k,inlineImages:$,onSerialize:je=>{hV(je,Di)&&bn.addIframe(je),pV(je,Di)&&Hr.trackLinkElement(je),UO(je)&&ua.addShadowRoot(je.shadowRoot,document)},onIframeLoad:(je,Gr)=>{bn.attachIframe(je,Gr),ua.observeAttachShadow(je)},onStylesheetLoad:(je,Gr)=>{Hr.attachLinkElement(je,Gr)},keepIframeSrcFn:M});if(!xr)return console.warn("Failed to snapshot the document");se(vr({type:He.FullSnapshot,data:{node:xr,initialOffset:cV(window)}})),Dl.forEach(je=>je.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Hr.adoptStyleSheets(document.adoptedStyleSheets,Di.getId(document))};j0=Xo;try{const De=[],xr=Gr=>et(f0e)({onMutation:j,mutationCb:Ae,mousemoveCb:(Qe,Pr)=>se(vr({type:He.IncrementalSnapshot,data:{source:Pr,positions:Qe}})),mouseInteractionCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.MouseInteraction,...Qe}})),scrollCb:Ye,viewportResizeCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.ViewportResize,...Qe}})),inputCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.Input,...Qe}})),mediaInteractionCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.MediaInteraction,...Qe}})),styleSheetRuleCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.StyleSheetRule,...Qe}})),styleDeclarationCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.StyleDeclaration,...Qe}})),canvasMutationCb:bt,fontCb:Qe=>se(vr({type:He.IncrementalSnapshot,data:{source:ze.Font,...Qe}})),selectionCb:Qe=>{se(vr({type:He.IncrementalSnapshot,data:{source:ze.Selection,...Qe}}))},customElementCb:Qe=>{se(vr({type:He.IncrementalSnapshot,data:{source:ze.CustomElement,...Qe}}))},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:C,collectFonts:E,doc:Gr,maskAttributeFn:x,maskInputFn:O,maskTextFn:h,keepIframeSrcFn:M,blockSelector:a,unblockSelector:s,slimDOMOptions:Y,dataURLOptions:T,mirror:Di,iframeManager:bn,stylesheetManager:Hr,shadowDomManager:ua,processedNodeManager:oa,canvasManager:Ya,ignoreCSSAttributes:L,plugins:lv([D,"optionalAccess",Qe=>Qe.filter,"call",Qe=>Qe(Pr=>Pr.observer),"optionalAccess",Qe=>Qe.map,"call",Qe=>Qe(Pr=>({observer:Pr.observer,options:Pr.options,callback:Ns=>se(vr({type:He.Plugin,data:{plugin:Pr.name,payload:Ns}}))}))])||[]},{});bn.addLoadListener(Gr=>{try{De.push(xr(Gr.contentDocument))}catch(Qe){console.warn(Qe)}});const je=()=>{Xo(),De.push(xr(document))};return document.readyState==="interactive"||document.readyState==="complete"?je():(De.push(ln("DOMContentLoaded",()=>{se(vr({type:He.DomContentLoaded,data:{}})),A==="DOMContentLoaded"&&je()})),De.push(ln("load",()=>{se(vr({type:He.Load,data:{}})),A==="load"&&je()},window))),()=>{De.forEach(Gr=>Gr()),oa.destroy(),j0=void 0,e0e()}}catch(De){console.warn(De)}}function y0e(t){if(!j0)throw new Error("please take full snapshot after start recording");j0(t)}Eo.mirror=Di;Eo.takeFullSnapshot=y0e;function _0e(t,e){try{return t?t(e):new sR}catch{return console.warn("Unable to initialize CanvasManager"),new sR}}const w0e=3,S0e=5;function _P(t){return t>9999999999?t:t*1e3}function s1(t){return t>9999999999?t/1e3:t}function jp(t,e){e.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(e.category)?t.triggerUserActivity():t.checkAndHandleExpiredSession(),t.addUpdate(()=>(t.throttledAddEvent({type:He.Custom,timestamp:(e.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ea(e,10,1e3)}}),e.category==="console")))}const O0e="button,a";function SV(t){return t.closest(O0e)||t}function OV(t){const e=TV(t);return!e||!(e instanceof Element)?e:SV(e)}function TV(t){return T0e(t)?t.target:t}function T0e(t){return typeof t=="object"&&!!t&&"target"in t}let no;function E0e(t){return no||(no=[],x0e()),no.push(t),()=>{const e=no?no.indexOf(t):-1;e>-1&&no.splice(e,1)}}function x0e(){Ir(Ct,"open",function(t){return function(...e){if(no)try{no.forEach(r=>r())}catch{}return t.apply(Ct,e)}})}function P0e(t,e,r){t.handleClick(e,r)}class C0e{constructor(e,r,n=jp){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=E0e(()=>{this._lastMutation=oR()});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(M0e(r,this._ignoreSelector)||!$0e(e))return;const n={timestamp:s1(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=s1(e)}registerScroll(e=Date.now()){this._lastScroll=s1(e)}registerClick(e){const r=SV(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=oR();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:Ct.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 A0e=["A","BUTTON","INPUT"];function M0e(t,e){return!!(!A0e.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 $0e(t){return!!(t.data&&typeof t.data.nodeId=="number"&&t.timestamp)}function oR(){return Date.now()/1e3}function k0e(t,e){try{if(!D0e(e))return;const{source:r}=e.data;if(r===ze.Mutation&&t.registerMutation(e.timestamp),r===ze.Scroll&&t.registerScroll(e.timestamp),I0e(e)){const{type:n,id:i}=e.data,a=Eo.mirror.getNode(i);a instanceof HTMLElement&&n===an.Click&&t.registerClick(a)}}catch{}}function D0e(t){return t.type===w0e}function I0e(t){return t.data.source===ze.MouseInteraction}function $a(t){return{timestamp:Date.now()/1e3,type:"default",...t}}var H0;(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"})(H0||(H0={}));const R0e=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function L0e(t){const e={};for(const r in t)if(R0e.has(r)){let n=r;(r==="data-testid"||r==="data-test-id")&&(n="testId"),e[n]=t[r]}return e}const N0e=t=>e=>{if(!t.isEnabled())return;const r=B0e(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&&P0e(t.clickDetector,r,OV(e.event)),jp(t,r)};function EV(t,e){const r=Eo.mirror.getId(t),n=r&&Eo.mirror.getNode(r),i=n&&Eo.mirror.getMeta(n),a=i&&j0e(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===H0.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:L0e(a.attributes)}}:{}}}function B0e(t){const{target:e,message:r}=F0e(t);return $a({category:`ui.${t.name}`,...EV(e,r)})}function F0e(t){const e=t.name==="click";let r,n=null;try{n=e?OV(t.event):TV(t.event),r=tc(n,{maxStringLength:200})||""}catch{r=""}return{target:n,message:r}}function j0e(t){return t.type===H0.Element}function H0e(t,e){if(!t.isEnabled())return;t.updateUserActivity();const r=z0e(e);r&&jp(t,r)}function z0e(t){const{metaKey:e,shiftKey:r,ctrlKey:n,altKey:i,key:a,target:s}=t;if(!s||V0e(s)||!a)return null;const o=e||n||i,u=a.length===1;if(!o&&u)return null;const c=tc(s,{maxStringLength:200})||"",l=EV(s,c);return $a({category:"ui.keyDown",message:c,data:{...l.data,metaKey:e,shiftKey:r,ctrlKey:n,altKey:i,key:a}})}function V0e(t){return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable}const uR={resource:K0e,paint:W0e,navigation:Y0e};function U0e(t){return t.map(G0e).filter(Boolean)}function G0e(t){return uR[t.entryType]?uR[t.entryType](t):null}function pd(t){return((gn||Ct.performance.timeOrigin)+t)/1e3}function W0e(t){const{duration:e,entryType:r,name:n,startTime:i}=t,a=pd(i);return{type:r,name:n,start:a,end:a+e,data:void 0}}function Y0e(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:pd(p),end:pd(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 K0e(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:pd(a),end:pd(i),name:n,data:{size:c,statusCode:u,decodedBodySize:s,encodedBodySize:o}}}function q0e(t){const e=t.entries,r=e[e.length-1],n=r?r.element:void 0,i=t.value,a=pd(i);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:a,end:a,data:{value:i,size:i,nodeId:n?Eo.mirror.getId(n):void 0}}}function X0e(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(yy(i,r))}),n.push(bz(({metric:i})=>{t.replayPerformanceEntries.push(q0e(i))})),()=>{n.forEach(i=>i())}}const Tt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,J0e='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 Z0e(){const t=new Blob([J0e]);return URL.createObjectURL(t)}function un(t,e){Tt&&(W.info(t),e&&xV(t))}function Hl(t,e){Tt&&(W.info(t),e&&setTimeout(()=>{xV(t)},0))}function xV(t){$s({category:"console",data:{logger:"replay"},level:"info",message:t},{level:"info"})}class wP extends Error{constructor(){super(`Event buffer exceeded maximum size of ${mP}.`)}}class PV{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>mP)throw new wP;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?_P(e):null}}class Q0e{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(){un("[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){Tt&&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 ebe{constructor(e){this._worker=new Q0e(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=_P(e.timestamp);(!this._earliestTimestamp||rmP?Promise.reject(new wP):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{Tt&&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 tbe{constructor(e){this._fallback=new PV,this._compression=new ebe(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{un("[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){Tt&&W.warn("[Replay] Failed to add events when switching buffers.",i)}}}function rbe({useCompression:t,workerUrl:e}){if(t&&window.Worker){const r=nbe(e);if(r)return r}return un("[Replay] Using simple buffer"),new PV}function nbe(t){try{const e=t||ibe();if(!e)return;un(`[Replay] Using compression worker${t?` from ${t}`:""}`);const r=new Worker(e);return new tbe(r)}catch{un("[Replay] Failed to create compression worker")}}function ibe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Z0e():""}function SP(){try{return"sessionStorage"in Ct&&!!Ct.sessionStorage}catch{return!1}}function abe(t){sbe(),t.session=void 0}function sbe(){if(SP())try{Ct.sessionStorage.removeItem(hP)}catch{}}function CV(t){return t===void 0?!1:Math.random()t.getContext().initialTimestamp+t.getOptions().maxReplayDuration?(un(`[Replay] Skipping event with timestamp ${r} because it is after maxReplayDuration`,t.getOptions()._experiments.traceInternals),!1):!0}function dbe(t,e){try{if(typeof e=="function"&&cbe(t))return e(t)}catch(r){return Tt&&W.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",r),null}return t}function EP(t){return!t.type}function KO(t){return t.type==="transaction"}function fbe(t){return t.type==="replay_event"}function lR(t){return t.type==="feedback"}function IV(t){const e=mbe();return(r,n)=>{if(!t.isEnabled()||!EP(r)&&!KO(r))return;const i=n&&n.statusCode;if(!(e&&(!i||i<200||i>=300))){if(KO(r)){hbe(t,r);return}pbe(t,r)}}}function hbe(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 pbe(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 mbe(){const t=qe();if(!t)return!1;const e=t.getTransport();return e&&e.send.__sentry__baseTransport__||!1}function gbe(t){return e=>{!t.isEnabled()||!EP(e)||vbe(t,e)}}function vbe(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=$a({category:"replay.hydrate-error"});jp(t,n)}}function bbe(t,e){return t.type||!t.exception||!t.exception.values||!t.exception.values.length?!1:!!(e.originalException&&e.originalException.__rrweb__)}function ybe(t,e){t.triggerUserActivity(),t.addUpdate(()=>e.timestamp?(t.throttledAddEvent({type:He.Custom,timestamp:e.timestamp*1e3,data:{timestamp:e.timestamp,tag:"breadcrumb",payload:{category:"sentry.feedback",data:{feedbackId:e.event_id}}}}),!1):!0)}function _be(t,e){return t.recordingMode!=="buffer"||e.message===pP||!e.exception||e.type?!1:CV(t.getOptions().errorSampleRate)}function wbe(t,e=!1){const r=e?IV(t):void 0;return Object.assign((n,i)=>t.isEnabled()?fbe(n)?(delete n.breadcrumbs,n):!EP(n)&&!KO(n)&&!lR(n)||!t.checkAndHandleExpiredSession()?n:lR(n)?(t.flush(),n.contexts.feedback.replay_id=t.getSessionId(),ybe(t,n),n):bbe(n,i)&&!t.getOptions()._experiments.captureExceptions?(Tt&&W.log("[Replay] Ignoring error from rrweb internals",n),null):((_be(t,n)||t.recordingMode==="session")&&(n.tags={...n.tags,replayId:t.getSessionId()}),r&&r(n,{statusCode:200}),n):n,{id:"Replay"})}function Sy(t,e){return e.map(({type:r,start:n,end:i,name:a,data:s})=>{const o=t.throttledAddEvent({type:He.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 Sbe(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 Obe(t){return e=>{if(!t.isEnabled())return;const r=Sbe(e);r!==null&&(t.getContext().urls.push(r.name),t.triggerUserActivity(),t.addUpdate(()=>(Sy(t,[r]),!1)))}}function Tbe(t,e){return Tt&&t.getOptions()._experiments.traceInternals?!1:mpe(e,qe())}function Oy(t,e){t.isEnabled()&&e!==null&&(Tbe(t,e.name)||t.addUpdate(()=>(Sy(t,[e]),!0)))}function Ebe(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 xbe(t){return e=>{if(!t.isEnabled())return;const r=Ebe(e);Oy(t,r)}}function Pbe(t){const{startTimestamp:e,endTimestamp:r,xhr:n}=t,i=n[fo];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 Cbe(t){return e=>{if(!t.isEnabled())return;const r=Pbe(e);Oy(t,r)}}function Ty(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=BV(t);return e.encode(r).length}if(t instanceof Blob)return t.size;if(t instanceof ArrayBuffer)return t.byteLength}catch{}}function RV(t){if(!t)return;const e=parseInt(t,10);return isNaN(e)?void 0:e}function LV(t){try{if(typeof t=="string")return[t];if(t instanceof URLSearchParams)return[t.toString()];if(t instanceof FormData)return[BV(t)];if(!t)return[void 0]}catch{return Tt&&W.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Tt&&W.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function z0(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 NV(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:Kr({method:a,statusCode:s,request:o,response:u})}}function ip(t){return{headers:{},size:t,_meta:{warnings:["URL_SKIPPED"]}}}function xo(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}=Abe(r);return n.body=i,a&&a.length>0&&(n._meta={warnings:a}),n}function qO(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 BV(t){return new URLSearchParams(t).toString()}function Abe(t){if(!t||typeof t!="string")return{body:t};const e=t.length>q2,r=Mbe(t);if(e){const n=t.slice(0,q2);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 Mbe(t){const e=t[0],r=t[t.length-1];return e==="["&&r==="]"||e==="{"&&r==="}"}function V0(t,e){const r=$be(t);return kd(r,e)}function $be(t,e=Ct.document.baseURI){if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith(Ct.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 kbe(t,e,r){try{const n=await Ibe(t,e,r),i=NV("resource.fetch",n);Oy(r.replay,i)}catch(n){Tt&&W.error("[Replay] Failed to capture fetch breadcrumb",n)}}function Dbe(t,e,r){const{input:n,response:i}=e,a=n?FV(n):void 0,s=Ty(a,r.textEncoder),o=i?RV(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 Ibe(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=V0(s,r.networkDetailAllowUrls)&&!V0(s,r.networkDetailDenyUrls),f=d?Rbe(r,e.input,c):ip(c),p=await Lbe(d,r,e.response,l);return{startTimestamp:i,endTimestamp:a,url:s,method:o,statusCode:u,request:f,response:p}}function Rbe({networkCaptureBodies:t,networkRequestHeaders:e},r,n){const i=r?Fbe(r,e):{};if(!t)return xo(i,n,void 0);const a=FV(r),[s,o]=LV(a),u=xo(i,n,s);return o?z0(u,o):u}async function Lbe(t,{networkCaptureBodies:e,textEncoder:r,networkResponseHeaders:n},i,a){if(!t&&a!==void 0)return ip(a);const s=i?jV(i.headers,n):{};if(!i||!e&&a!==void 0)return xo(s,a,void 0);const[o,u]=await Bbe(i),c=Nbe(o,{networkCaptureBodies:e,textEncoder:r,responseBodySize:a,captureDetails:t,headers:s});return u?z0(c,u):c}function Nbe(t,{networkCaptureBodies:e,textEncoder:r,responseBodySize:n,captureDetails:i,headers:a}){try{const s=t&&t.length&&n===void 0?Ty(t,r):n;return i?e?xo(a,s,t):xo(a,s,void 0):ip(s)}catch(s){return Tt&&W.warn("[Replay] Failed to serialize response body",s),xo(a,n,void 0)}}async function Bbe(t){const e=jbe(t);if(!e)return[void 0,"BODY_PARSE_ERROR"];try{return[await Hbe(e)]}catch(r){return Tt&&W.warn("[Replay] Failed to get text body from response",r),[void 0,"BODY_PARSE_ERROR"]}}function FV(t=[]){if(!(t.length!==2||typeof t[1]!="object"))return t[1].body}function jV(t,e){const r={};return e.forEach(n=>{t.get(n)&&(r[n]=t.get(n))}),r}function Fbe(t,e){return t.length===1&&typeof t[0]!="string"?dR(t[0],e):t.length===2?dR(t[1],e):{}}function dR(t,e){if(!t)return{};const r=t.headers;return r?r instanceof Headers?jV(r,e):Array.isArray(r)?{}:qO(r,e):{}}function jbe(t){try{return t.clone()}catch(e){Tt&&W.warn("[Replay] Failed to clone response body",e)}}function Hbe(t){return new Promise((e,r)=>{const n=setTimeout(()=>r(new Error("Timeout while trying to read response body")),500);zbe(t).then(i=>e(i),i=>r(i)).finally(()=>clearTimeout(n))})}async function zbe(t){return await t.text()}async function Vbe(t,e,r){try{const n=Gbe(t,e,r),i=NV("resource.xhr",n);Oy(r.replay,i)}catch(n){Tt&&W.error("[Replay] Failed to capture xhr breadcrumb",n)}}function Ube(t,e,r){const{xhr:n,input:i}=e;if(!n)return;const a=Ty(i,r.textEncoder),s=n.getResponseHeader("content-length")?RV(n.getResponseHeader("content-length")):qbe(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 Gbe(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||!V0(u,r.networkDetailAllowUrls)||V0(u,r.networkDetailDenyUrls)){const g=ip(d),T=ip(f);return{startTimestamp:i,endTimestamp:a,url:u,method:c,statusCode:l,request:g,response:T}}const p=o[fo],m=p?qO(p.request_headers,r.networkRequestHeaders):{},b=qO(Wbe(o),r.networkResponseHeaders),[_,S]=r.networkCaptureBodies?LV(s):[void 0],[x,O]=r.networkCaptureBodies?Ybe(o):[void 0],h=xo(m,d,_),v=xo(b,f,x);return{startTimestamp:i,endTimestamp:a,url:u,method:c,statusCode:l,request:S?z0(h,S):h,response:O?z0(v,O):v}}function Wbe(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 Ybe(t){const e=[];try{return[t.responseText]}catch(r){e.push(r)}try{return Kbe(t.response,t.responseType)}catch(r){e.push(r)}return Tt&&W.warn("[Replay] Failed to get xhr response body",...e),[void 0]}function Kbe(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 Tt&&W.warn("[Replay] Failed to serialize body",t),[void 0,"BODY_PARSE_ERROR"]}return Tt&&W.info("[Replay] Skipping network body because of body type",t),[void 0,"UNPARSEABLE_BODY_TYPE"]}function qbe(t,e,r){try{const n=e==="json"&&t&&typeof t=="object"?JSON.stringify(t):t;return Ty(n,r)}catch{return}}function Xbe(t){const e=qe();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)=>Jbe(u,c,l)):(Mx(xbe(t)),$x(Cbe(t)))}catch{}}function Jbe(t,e,r){if(e.data)try{Zbe(e)&&eye(r)&&(Ube(e,r,t),Vbe(e,r,t)),Qbe(e)&&tye(r)&&(Dbe(e,r,t),kbe(e,r,t))}catch{Tt&&W.warn("Error when enriching network breadcrumb")}}function Zbe(t){return t.category==="xhr"}function Qbe(t){return t.category==="fetch"}function eye(t){return t&&t.xhr}function tye(t){return t&&t.response}let fR=null;function rye(t){return!!t.category}const nye=t=>e=>{if(!t.isEnabled())return;const r=iye(e);r&&jp(t,r)};function iye(t){const e=t.getLastBreadcrumb&&t.getLastBreadcrumb();return fR===e||!e||(fR=e,!rye(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui."))?null:e.category==="console"?aye(e):$a(e)}function aye(t){const e=t.data&&t.data.arguments;if(!Array.isArray(e)||e.length===0)return $a(t);let r=!1;const n=e.map(i=>{if(!i)return i;if(typeof i=="string")return i.length>Zm?(r=!0,`${i.slice(0,Zm)}…`):i;if(typeof i=="object")try{const a=Ea(i,7);return JSON.stringify(a).length>Zm?(r=!0,`${JSON.stringify(a,null,2).slice(0,Zm)}…`):a}catch{}return i});return $a({...t,data:{...t.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function sye(t){const e=yr(),r=qe();e.addScopeListener(nye(t)),fH(N0e(t)),Ip(Obe(t)),Xbe(t);const n=wbe(t,!hR(r));r&&r.addEventProcessor?r.addEventProcessor(n):QH(n),hR(r)&&(r.on("beforeSendEvent",gbe(t)),r.on("afterSendEvent",IV(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 hR(t){return!!(t&&t.on)}async function oye(t){try{return Promise.all(Sy(t,[uye(Ct.performance.memory)]))}catch{return[]}}function uye(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 cye(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 lye(t){let e=!1;return(r,n)=>{if(!t.checkAndHandleExpiredSession()){Tt&&W.warn("[Replay] Received replay event after session expired.");return}const i=n||!e;e=!0,t.clickDetector&&k0e(t.clickDetector,r),t.addUpdate(()=>{if(t.recordingMode==="buffer"&&i&&t.setInitialState(),!TP(t,r,i))return!0;if(!i)return!1;if(fye(t,i),t.session&&t.session.previousSessionId)return!0;if(t.recordingMode==="buffer"&&t.session&&t.eventBuffer){const a=t.eventBuffer.getEarliestTimestamp();a&&(un(`[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&&OP(t.session))}return t.recordingMode==="session"&&t.flush(),!0})}}function dye(t){const e=t.getOptions();return{type:He.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 fye(t,e){!e||!t.session||t.session.segmentId!==0||TP(t,dye(t),!1)}function hye(t,e,r,n){return _c(SH(t,Rx(t),n,r),[[{type:"replay_event"},t],[{type:"replay_recording",length:typeof e=="string"?new TextEncoder().encode(e).length:e.length},e]])}function pye({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 mye({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 Bx(t.getOptions(),n,a,e,t,na());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 gye({recordingData:t,replayId:e,segmentId:r,eventContext:n,timestamp:i,session:a}){const s=pye({recordingData:t,headers:{segment_id:r}}),{urls:o,errorIds:u,traceIds:c,initialTimestamp:l}=n,d=qe(),f=yr(),p=d&&d.getTransport(),m=d&&d.getDsn();if(!d||!p||!m||!a.sampled)return;const b={type:eve,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 mye({scope:f,client:d,replayId:e,event:b});if(!_){d.recordDroppedEvent("event_processor","replay",b),un("An event processor returned `null`, will not send event.");return}delete _.sdkProcessingMetadata;const S=hye(_,s,m,d.getOptions().tunnel);let x;try{x=await p.send(S)}catch(h){const v=new Error(pP);try{v.cause=h}catch{}throw v}if(!x)return x;if(typeof x.statusCode=="number"&&(x.statusCode<200||x.statusCode>=300))throw new HV(x.statusCode);const O=EH({},x);if(TH(O,"replay"))throw new zV(O);return x}class HV extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class zV extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}async function VV(t,e={count:0,interval:sve}){const{recordingData:r,options:n}=t;if(r.length)try{return await gye(t),!0}catch(i){if(i instanceof HV||i instanceof zV)throw i;if($H("Replays",{_retryCount:e.count}),Tt&&n._experiments&&n._experiments.captureExceptions&&Rd(i),e.count>=ove){const a=new Error(`${pP} - max retries exceeded`);try{a.cause=i}catch{}throw a}return e.interval*=++e.count,new Promise((a,s)=>{setTimeout(async()=>{try{await VV(t,e),a(!0)}catch(o){s(o)}},e.interval)})}}const UV="__THROTTLED",vye="__SKIPPED";function bye(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?vye:UV}s=!1;const c=n.get(u)||0;return n.set(u,c+1),t(...o)}}class io{constructor({options:e,recordingOptions:r}){io.prototype.__init.call(this),io.prototype.__init2.call(this),io.prototype.__init3.call(this),io.prototype.__init4.call(this),io.prototype.__init5.call(this),io.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:tve,sessionIdleExpire:rve},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=cye(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=bye((s,o)=>lbe(this,s,o),300,5);const{slowClickTimeout:n,slowClickIgnoreSelectors:i}=this.getOptions(),a=n?{threshold:Math.min(uve,n),timeout:n,scrollTimeout:cve,ignoreSelector:i?i.join(","):""}:void 0;a&&(this.clickDetector=new C0e(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",Hl(`[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");Hl("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const e=o1({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");Hl("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const e=o1({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=Eo({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:ave},emit:lye(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{un(`[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,abe(this)}catch(n){this._handleException(n)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),un("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),un("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const r=Date.now();un("[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&&YO(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const e=`${Ct.location.pathname}${Ct.location.hash}${Ct.location.search}`,r=`${Ct.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===UV){const i=$a({category:"replay.throttled"});this.addUpdate(()=>!TP(this,{type:S0e,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return n}getCurrentRoute(){const e=this.lastTransaction||yr().getTransaction(),n=(e&&xt(e).data||{})[An];if(!(!e||!n||!["route","custom"].includes(n)))return xt(e).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=rbe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(e){Tt&&W.error("[Replay]",e),Tt&&this._options._experiments&&this._options._experiments.captureExceptions&&Rd(e)}_initializeSessionForSampling(e){const r=this._options.errorSampleRate>0,n=o1({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 $V(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{Ct.document.addEventListener("visibilitychange",this._handleVisibilityChange),Ct.addEventListener("blur",this._handleWindowBlur),Ct.addEventListener("focus",this._handleWindowFocus),Ct.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(sye(this),this._hasInitializedCoreListeners=!0)}catch(e){this._handleException(e)}this._performanceCleanupCallback=X0e(this)}_removeListeners(){try{Ct.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Ct.removeEventListener("blur",this._handleWindowBlur),Ct.removeEventListener("focus",this._handleWindowFocus),Ct.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this._handleException(e)}}__init(){this._handleVisibilityChange=()=>{Ct.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const e=$a({category:"ui.blur"});this._doChangeToBackgroundTasks(e)}}__init3(){this._handleWindowFocus=()=>{const e=$a({category:"ui.focus"});this._doChangeToForegroundTasks(e)}}__init4(){this._handleKeyboardEvent=e=>{H0e(this,e)}}_doChangeToBackgroundTasks(e){!this.session||MV(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()){un("[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:He.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){const e=U0e(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Sy(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 VV({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=qe();n&&n.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:e=!1}={})=>{if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Tt&&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){un(`[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&&un("[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){Tt&&W.error(u)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&OP(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=$a({category:"replay.mutations",data:{count:r,limit:a}});this._createCustomBreadcrumb(s)}return a?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}}function Cf(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}`),ja(()=>{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 yye({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=Cf(t,[".sentry-mask","[data-sentry-mask]"],o,u),f=Cf(e,[".sentry-unmask","[data-sentry-unmask]"]),p={maskTextSelector:d,unmaskTextSelector:f,blockSelector:Cf(r,[".sentry-block","[data-sentry-block]",...l],a,s),unblockSelector:Cf(n,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Cf(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 _ye({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 pR='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',wye=["content-length","content-type","accept"];let mR=!1;const Sye=t=>new Hp(t);class Hp{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:e=nve,flushMaxDelay:r=ive,minReplayDuration:n=lve,maxReplayDuration:i=X2,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:x=[],networkDetailDenyUrls:O=[],networkCaptureBodies:h=!0,networkRequestHeaders:v=[],networkResponseHeaders:g=[],mask:T=[],maskAttributes:P=["title","placeholder"],unmask:k=[],block:w=[],unblock:A=[],ignore:C=[],maskFn:E,beforeAddRecordingEvent:$,beforeErrorSampling:D,blockClass:M,blockSelector:L,maskInputOptions:N,maskTextClass:j,maskTextSelector:z,ignoreClass:U}={}){this.name=Hp.id;const J=yye({mask:T,unmask:k,block:w,unblock:A,ignore:C,blockClass:M,blockSelector:L,maskTextClass:j,maskTextSelector:z,ignoreClass:U});if(this._recordingOptions={maskAllInputs:f,maskAllText:d,maskInputOptions:{...N||{},password:!0},maskTextFn:E,maskInputFn:E,maskAttributeFn:(re,Y,G)=>_ye({maskAttributes:P,maskAllText:d,privacyOptions:J,key:re,value:Y,el:G}),...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,dve),maxReplayDuration:Math.min(i,X2),stickySession:a,sessionSampleRate:c,errorSampleRate:l,useCompression:s,workerUrl:o,blockAllMedia:p,maskAllInputs:f,maskAllText:d,mutationBreadcrumbLimit:m,mutationLimit:b,slowClickTimeout:_,slowClickIgnoreSelectors:S,networkDetailAllowUrls:x,networkDetailDenyUrls:O,networkCaptureBodies:h,networkRequestHeaders:gR(v),networkResponseHeaders:gR(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},${pR}`:pR),this._isInitialized&&DO())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return mR}set _isInitialized(e){mR=e}setupOnce(){DO()&&(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=Oye(this._initialOptions);this._replay=new io({options:e,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const r=qe().getIntegrationByName("ReplayCanvas");if(!r)return;this._replay._canvas=r.getOptions()}catch{}}}Hp.__initStatic();function Oye(t){const e=qe(),r=e&&e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...Kr(t)};return r?(t.sessionSampleRate==null&&t.errorSampleRate==null&&r.replaysSessionSampleRate==null&&r.replaysOnErrorSampleRate==null&&ja(()=>{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):(ja(()=>{console.warn("SDK client is not available.")}),n)}function gR(t){return[...wye,...t.map(e=>e.toLowerCase())]}var vR;(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"})(vR||(vR={}));function Tye(t,e){for(let r=t.classList.length;r--;){const n=t.classList[r];if(e.test(n))return!0}return!1}function XO(t,e,r=1/0,n=0){return!t||t.nodeType!==t.ELEMENT_NODE||n>r?-1:e(t)?n:XO(t.parentNode,e,r,n+1)}function bR(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(Tye(n,t))return!0}return!!(e&&n.matches(e))}catch{return!1}}}const vl=`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 yR={map:{},getId(){return console.error(vl),-1},getNode(){return console.error(vl),null},removeNodeFromMap(){console.error(vl)},has(){return console.error(vl),!1},reset(){console.error(vl)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(yR=new Proxy(yR,{get(t,e,r){return e==="map"&&console.error(vl),Reflect.get(t,e,r)}}));function xP(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)}}),()=>xP(t,e,a||{},!0)}function PP(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 Ey(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=bR(e,r);if(!i){const c=n&&a.matches(n);return s(a)&&!c}const o=XO(a,s);let u=-1;return o<0?!1:(n&&(u=XO(a,bR(null,n))),o>-1&&u<0?!0:o(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(md||{});const _R=t=>t;var Il="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xye=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var tg=0;tg>2],i+=Il[(e[r]&3)<<4|e[r+1]>>4],i+=Il[(e[r+1]&15)<<2|e[r+2]>>6],i+=Il[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 wR=new Map;function Cye(t,e){let r=wR.get(t);return r||(r=new Map,wR.set(t,r)),r.has(e)||r.set(e,[]),r.get(e)}const GV=(t,e,r)=>{if(!t||!(YV(t,e)||typeof t=="object"))return;const n=t.constructor.name,i=Cye(r,n);let a=i.indexOf(t);return a===-1&&(a=i.length,i.push(t)),a};function fv(t,e,r){if(t instanceof Array)return t.map(n=>fv(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=Pye(t);return{rr_type:n,base64:i}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[fv(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:[fv(t.data,e,r),t.width,t.height]};if(YV(t,e)||typeof t=="object"){const n=t.constructor.name,i=GV(t,e,r);return{rr_type:n,index:i}}}}return t}const WV=(t,e,r)=>t.map(n=>fv(n,e,r)),YV=(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 Aye(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=PP(e.CanvasRenderingContext2D.prototype,o,function(c){return function(...l){return Ey(this.canvas,r,n,i,!0)||setTimeout(()=>{const d=WV(l,e,this);t(this.canvas,{type:md["2D"],property:o,args:d})},0),c.apply(this,l)}});a.push(u)}catch{const c=xP(e.CanvasRenderingContext2D.prototype,o,{set(l){t(this.canvas,{type:md["2D"],property:o,args:[l],setter:!0})}});a.push(c)}return()=>{a.forEach(o=>o())}}function Mye(t){return t==="experimental-webgl"?"webgl":t}function SR(t,e,r,n,i){const a=[];try{const s=PP(t.HTMLCanvasElement.prototype,"getContext",function(o){return function(u,...c){if(!Ey(this,e,r,n,!0)){const l=Mye(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 OR(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=PP(t,l,function(f){return function(...p){const m=f.apply(this,p);if(GV(m,o,this),"tagName"in this.canvas&&!Ey(this.canvas,n,i,a,!0)){const b=WV(p,o,this),_={type:e,property:l,args:b};r(this.canvas,_)}return m}});u.push(d)}catch{const f=xP(t,l,{set(p){r(this.canvas,{type:e,property:l,args:[p],setter:!0})}});u.push(f)}return u}function $ye(t,e,r,n,i,a){const s=[];return s.push(...OR(e.WebGLRenderingContext.prototype,md.WebGL,t,r,n,i,a,e)),typeof e.WebGL2RenderingContext<"u"&&s.push(...OR(e.WebGL2RenderingContext.prototype,md.WebGL2,t,r,n,i,a,e)),()=>{s.forEach(o=>o())}}var kye='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 Dye(){const t=new Blob([kye]);return URL.createObjectURL(t)}class Iye{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&&_R(()=>{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=SR(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=SR(e,r,n,i,!1),s=Aye(this.processMutation.bind(this),e,r,n,i),o=$ye(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(Dye());l.onmessage=_=>{const S=_.data,{id:x}=S;if(c.set(x,!1),!("base64"in S))return;const{base64:O,type:h,width:v,height:g}=S;this.mutationCb({id:x,type:md["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(x=>{Ey(x,i,a,s,!0)||S.push(x)}),S},b=_=>{if(f&&_-f{const x=this.mirror.getId(S);if(!c.get(x)){if(c.set(x,!0),!e&&["webgl","webgl2"].includes(S.__context)){const O=S.getContext(S.__context);lv([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:x,bitmap:O,width:S.width,height:S.height,dataURLOptions:o},[O])}).catch(O=>{_R(()=>{throw O})()})}}),p=uu(b)};return p=uu(b),p}startPendingCanvasMutationFlusher(){uu(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=r=>{this.rafStamps.latestId=r,uu(e)};uu(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,r)=>{const n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),uu(()=>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 TR={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}}},KV="ReplayCanvas",Rye=(t={})=>{const e={quality:t.quality||"medium",enableManualSnapshot:t.enableManualSnapshot};let r;const n=new Promise(i=>r=i);return{name:KV,setupOnce(){},getOptions(){const{quality:i,enableManualSnapshot:a}=e;return{enableManualSnapshot:a,recordCanvas:!0,getCanvasManager:s=>{const o=new Iye({...s,enableManualSnapshot:a});return r(o),o},...TR[i||"medium"]||TR.medium}},async snapshot(i){(await n).snapshot(i)}}},qV=Rye,Lye=Fn(KV,qV),wc=Fe,c1="#ffffff",ER="inherit",l1="rgba(108, 95, 199, 1)",xR={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:l1,submitBorder:l1,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:ER,inputForeground:ER,inputBorder:"var(--border)",inputOutlineFocus:l1,formBorderRadius:"20px",formContentBorderRadius:"6px"},PR={light:xR,dark:{...xR,background:"#29232f",backgroundHover:"#352f3b",foreground:"#ebe6ef",border:"1.5px solid rgba(235, 230, 239, 0.15)",success:"#2da98c",error:"#f55459"}},Nye="Report a Bug",Bye="Cancel",Fye="Send Bug Report",jye="Report a Bug",Hye="your.email@example.org",zye="Email",Vye="What's the bug? What did you expect?",Uye="Description",Gye="Your Name",Wye="Name",Yye="Thank you for your report!",XV="widget",JV="api";async function Kye({client:t,scope:e,event:r}){const n={};t.emit&&t.emit("preprocessEvent",r,n);const i=await Bx(t.getOptions(),r,n,e,t,na());return i===null?(t.recordDroppedEvent("event_processor","feedback",r),null):(i.platform=i.platform||"javascript",i)}async function qye({feedback:{message:t,email:e,name:r,source:n,url:i}},{includeReplay:a=!0}={}){const s=qe(),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 Np(async l=>{l.clearBreadcrumbs(),[JV,XV].includes(String(n))&&l.setLevel("info");const d=await Kye({scope:l,client:s,event:c});if(!d)return;s.emit&&s.emit("beforeSendFeedback",d,{includeReplay:!!a});const f=zH(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 ZV({name:t,email:e,message:r,source:n=JV,url:i=tH()},a={}){if(!r)throw new Error("Unable to submit feedback with empty message");return qye({feedback:{name:t,email:e,message:r,url:i,source:n}},a)}const bl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function CR(t,e){return{...t,...e,themeDark:{...t.themeDark,...e.themeDark},themeLight:{...t.themeLight,...e.themeLight}}}function Xye(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 Jye(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 AR(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 Zye(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); ${AR(e==="dark"?r.dark:r.light)} } ${e==="system"?` @media (prefers-color-scheme: dark) { :host { ${AR(r.dark)} } }`:""} }`,n}function Qye({id:t,colorScheme:e,themeDark:r,themeLight:n}){try{const i=wc.document,a=i.createElement("div");a.id=t;const s=a.attachShadow({mode:"open"});return s.appendChild(Zye(i,e,{dark:r,light:n})),s.appendChild(Jye(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 e_e(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 ZV({...e,source:XV},r)}catch(i){bl&&W.error(i),n()}}function Zn(t,e){return Object.entries(e).forEach(([r,n])=>{t.setAttributeNS(null,r,n)}),t}const tl=20,t_e="http://www.w3.org/2000/svg";function r_e(){const t=o=>wc.document.createElementNS(t_e,o),e=Zn(t("svg"),{class:"feedback-icon",width:`${tl}`,height:`${tl}`,viewBox:`0 0 ${tl} ${tl}`,fill:"none"}),r=Zn(t("g"),{clipPath:"url(#clip0_57_80)"}),n=Zn(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=Zn(t("clipPath"),{id:"clip0_57_80"}),s=Zn(t("rect"),{width:`${tl}`,height:`${tl}`,fill:"white"});return a.appendChild(s),i.appendChild(a),e.appendChild(i).appendChild(a).appendChild(s),{get el(){return e}}}function Bt(t,e,...r){const i=wc.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)QV(i,a);return i}function QV(t,e){const r=wc.document;if(!(typeof e>"u"||e===null))if(Array.isArray(e))for(const n of e)QV(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 n_e({buttonLabel:t,onClick:e}){function r(i){e&&e(i)}const n=Bt("button",{type:"button",className:"widget__actor","aria-label":t,"aria-hidden":"false"},r_e().el,t?Bt("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 i_e({label:t}){return{el:Bt("button",{type:"submit",className:"btn btn--primary","aria-label":t},t)}}function d1(t,e){const r=t.get(e);return typeof r=="string"?r.trim():""}function a_e({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:_}=i_e({label:o});function S(w){if(w.preventDefault(),w.target instanceof HTMLFormElement)try{if(b){const A=new FormData(w.target),C={name:d1(A,"name"),email:d1(A,"email"),message:d1(A,"message")};b(C)}}catch{}}const x=Bt("div",{className:"form__error-container form__error-container--hidden","aria-hidden":"true"});function O(w){x.textContent=w,x.classList.remove("form__error-container--hidden"),x.setAttribute("aria-hidden","false")}function h(){x.textContent="",x.classList.add("form__error-container--hidden"),x.setAttribute("aria-hidden","true")}const v=Bt("input",{id:"name",type:u?"text":"hidden","aria-hidden":u?"false":"true",name:"name",required:l,className:"form__input",placeholder:e,value:f}),g=Bt("input",{id:"email",type:c?"text":"hidden","aria-hidden":c?"false":"true",name:"email",required:d,className:"form__input",placeholder:n,value:p}),T=Bt("textarea",{id:"message",autoFocus:"true",rows:"5",name:"message",required:!0,className:"form__input form__input--textarea",placeholder:a}),P=Bt("button",{type:"button",className:"btn btn--default","aria-label":s,onClick:w=>{m&&m(w)}},s),k=Bt("form",{className:"form",onSubmit:S},[x,u&&Bt("label",{htmlFor:"name",className:"form__label"},[Bt("span",{className:"form__label__text"},t,l&&Bt("span",{className:"form__label__text--required"}," (required)")),v]),!u&&v,c&&Bt("label",{htmlFor:"email",className:"form__label"},[Bt("span",{className:"form__label__text"},r,d&&Bt("span",{className:"form__label__text--required"}," (required)")),g]),!c&&g,Bt("label",{htmlFor:"message",className:"form__label"},[Bt("span",{className:"form__label__text"},i,Bt("span",{className:"form__label__text--required"}," (required)")),T]),Bt("div",{className:"btn-group"},[_,P])]);return{get el(){return k},showError:O,hideError:h}}const s_e="http://www.w3.org/2000/svg";function o_e({colorScheme:t}){const e=s=>wc.document.createElementNS(s_e,s),r=Zn(e("svg"),{class:"sentry-logo",width:"32",height:"30",viewBox:"0 0 72 66",fill:"none"}),n=Zn(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 u_e({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:x,showError:O,hideError:h}=a_e({showEmail:n,showName:r,isEmailRequired:a,isNameRequired:i,defaultName:o,defaultEmail:u,onSubmit:d,onCancel:l,...f});return p=Bt("dialog",{className:"dialog",open:!0,onClick:m},Bt("div",{className:"dialog__content",onClick:v=>{v.stopPropagation()}},Bt("h2",{className:"dialog__header"},t,e&&Bt("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},o_e({colorScheme:s}).el)),x)),{get el(){return p},showError:O,hideError:h,open:_,close:b,checkIsOpen:S}}const rg=16,MR=17,c_e="http://www.w3.org/2000/svg";function l_e(){const t=u=>wc.document.createElementNS(c_e,u),e=Zn(t("svg"),{class:"success-icon",width:`${rg}`,height:`${MR}`,viewBox:`0 0 ${rg} ${MR}`,fill:"none"}),r=Zn(t("g"),{clipPath:"url(#clip0_57_156)"}),n=Zn(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=Zn(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=Zn(t("clipPath"),{id:"clip0_57_156"}),o=Zn(t("rect"),{width:`${rg}`,height:`${rg}`,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 d_e({message:t,onRemove:e}){function r(){n&&(n.remove(),e&&e())}const n=Bt("div",{className:"success-message",onClick:r},l_e().el,t);return{el:n,remove:r}}function $R({shadow:t,options:{shouldCreateActor:e=!0,...r},attachTo:n}){let i,a,s=!1;function o(){if(t)try{const _=d_e({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 e_e(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=yr(),x=S&&S.getUser();if(a=u_e({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:_&&x&&x[_.name]||"",defaultEmail:_&&x&&x[_.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=n_e({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 ng=wc.document,f_e=t=>new zp(t);class zp{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=Nye,cancelButtonLabel:p=Bye,submitButtonLabel:m=Fye,formTitle:b=jye,emailPlaceholder:_=Hye,emailLabel:S=zye,messagePlaceholder:x=Vye,messageLabel:O=Uye,namePlaceholder:h=Gye,nameLabel:v=Wye,successMessageText:g=Yye,onFormClose:T,onFormOpen:P,onSubmitError:k,onSubmitSuccess:w}={}){this.name=zp.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:{...PR.dark,...c},themeLight:{...PR.light,...l},buttonLabel:f,cancelButtonLabel:p,submitButtonLabel:m,formTitle:b,emailLabel:S,emailPlaceholder:_,messageLabel:O,messagePlaceholder:x,nameLabel:v,namePlaceholder:h,successMessageText:g,onFormClose:T,onFormOpen:P,onSubmitError:k,onSubmitSuccess:w}}setupOnce(){if(DO())try{this._cleanupWidgetIfExists();const{autoInject:e}=this.options;if(!e)return;this._createWidget(this.options)}catch(e){bl&&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=CR(this.options,r||{});return this._ensureShadowHost(n,({shadow:i})=>{const a=typeof e=="string"?ng.querySelector(e):typeof e.addEventListener=="function"?e:null;if(!a)return bl&&W.error("[Feedback] Unable to attach to target element"),null;const s=$R({shadow:i,options:n,attachTo:a});return this._widgets.add(s),this._widget||(this._widget=s),s})}catch(n){return bl&&W.error(n),null}}createWidget(e){try{return this._createWidget(CR(this.options,e||{}))}catch(r){return bl&&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){bl&&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=ng.querySelector(`#${this.options.id}`);e&&e.remove()}_createWidget(e){return this._ensureShadowHost(e,({shadow:r})=>{const n=$R({shadow:r,options:e});return!this._hasInsertedActorStyles&&n.actor&&(r.appendChild(Xye(ng)),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}=Qye({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&&ng.body.appendChild(this._host),i}}zp.__initStatic();function ap(t){return new Promise((e,r)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>r(t.error)})}function h_e(t,e){const r=indexedDB.open(t);r.onupgradeneeded=()=>r.result.createObjectStore(e);const n=ap(r);return i=>n.then(a=>i(a.transaction(e,"readwrite").objectStore(e)))}function eU(t){return ap(t.getAllKeys())}function p_e(t,e,r){return t(n=>eU(n).then(i=>{if(!(i.length>=r))return n.put(e,Math.max(...i,0)+1),ap(n.transaction)}))}function m_e(t){return t(e=>eU(e).then(r=>{if(r.length!==0)return ap(e.get(r[0])).then(n=>(e.delete(r[0]),ap(e.transaction).then(()=>n)))}))}function g_e(t){let e;function r(){return e==null&&(e=h_e(t.dbName||"sentry-offline",t.storeName||"queue")),e}return{insert:async n=>{try{const i=await wH(n,t.textEncoder);await p_e(r(),i,t.maxQueueSize||30)}catch{}},pop:async()=>{try{const n=await m_e(r());if(n)return Afe(n,t.textEncoder||new TextEncoder,t.textDecoder||new TextDecoder)}catch{}}}}function v_e(t){return e=>t({...e,createStore:g_e})}function b_e(t){return v_e(fpe(t))}const kR=1e6,hv=String(0),y_e="main";let tU="",rU="",nU="",JO=Se.navigator&&Se.navigator.userAgent||"",iU="";const __e=Se.navigator&&Se.navigator.language||Se.navigator&&Se.navigator.languages&&Se.navigator.languages[0]||"";function w_e(t){return typeof t=="object"&&t!==null&&"getHighEntropyValues"in t}const DR=Se.navigator&&Se.navigator.userAgentData;w_e(DR)&&DR.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(t=>{if(tU=t.platform||"",nU=t.architecture||"",iU=t.model||"",rU=t.platformVersion||"",t.fullVersionList&&t.fullVersionList.length>0){const e=t.fullVersionList[t.fullVersionList.length-1];JO=`${e.brand} ${e.version}`}}).catch(t=>{});function S_e(t){return!("thread_metadata"in t)}function O_e(t){return S_e(t)?x_e(t):t}function T_e(t){const e=t&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id;return typeof e=="string"&&e.length!==32&&tt&&W.log(`[Profiling] Invalid traceId: ${e} on profiled event`),typeof e!="string"?"":e}function E_e(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=T_e(n),a=O_e(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||Lp,runtime:{name:"javascript",version:Se.navigator.userAgent},os:{name:tU,version:rU,build_number:JO},device:{locale:__e,model:iU,manufacturer:JO,architecture:nU,is_emulator:!1},debug_meta:{images:A_e(r.resources)},profile:a,transactions:[{name:n.transaction||"",id:n.event_id||Ft(),trace_id:i,active_thread_id:hv,relative_start_ns:"0",relative_end_ns:((o-s)*1e6).toFixed(0)}]}}function aU(t){return t.op==="pageload"}function x_e(t){let e,r=0;const n={samples:[],stacks:[],frames:[],thread_metadata:{[hv]:{name:y_e}}};if(!t.samples.length)return n;const i=t.samples[0].timestamp,a=typeof performance.timeOrigin=="number"?performance.timeOrigin:gn||0,s=a-(gn||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 M_e(t){return typeof t!="number"&&typeof t!="boolean"||typeof t=="number"&&isNaN(t)?(tt&&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?(tt&&W.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${t}.`),!1):!0}function $_e(t){return t.samples.length<2?(tt&&W.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):t.frames.length?!0:(tt&&W.log("[Profiling] Discarding profile because it contains no frames"),!1)}let sU=!1;const oU=3e4;function k_e(t){return typeof t=="function"}function D_e(){const t=Se.Profiler;if(!k_e(t)){tt&&W.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const e=10,r=Math.floor(oU/e);try{return new t({sampleInterval:e,maxBufferSize:r})}catch{tt&&(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.")),sU=!0}}function ZO(t){if(sU)return tt&&W.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!t.isRecording())return tt&&W.log("[Profiling] Discarding profile because transaction was not sampled."),!1;const e=qe(),r=e&&e.getOptions();if(!r)return tt&&W.log("[Profiling] Profiling disabled, no options found."),!1;const n=r.profilesSampleRate;return M_e(n)?n?(n===!0?!0:Math.random()30){const r=xu.keys().next().value;xu.delete(r)}}function B_e(t){return t?ZO(t)?QO(t):t:(tt&&W.log("[Profiling] Transaction is undefined, skipping profiling"),t)}function QO(t){let e;aU(t)&&(e=Go()*1e3);const r=D_e();if(!r)return t;tt&&W.log(`[Profiling] started profiling transaction: ${xt(t).description}`);const n=Ft();async function i(){return!t||!r?null:r.stop().then(u=>(a&&(Se.clearTimeout(a),a=void 0),tt&&W.log(`[Profiling] stopped profiling of transaction: ${xt(t).description}`),u?(N_e(n,u),null):(tt&&W.log(`[Profiling] profiler returned null profile for: ${xt(t).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(u=>(tt&&W.log("[Profiling] error while stopping profiler:",u),null))}let a=Se.setTimeout(()=>{tt&&W.log("[Profiling] max profile duration elapsed, stopping profiling for:",xt(t).description),i()},oU);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 uU="BrowserProfiling",F_e=()=>({name:uU,setupOnce(){},setup(t){const r=yr().getTransaction();if(r&&aU(r)&&ZO(r)&&QO(r),typeof t.on!="function"){W.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}t.on("startTransaction",n=>{ZO(n)&&QO(n)}),t.on("beforeEnvelope",n=>{if(!R_e())return;const i=C_e(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"){tt&&W.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!u){tt&&W.log("[Profiling] cannot find profile for a transaction without a profile context");continue}o&&o.profile&&delete o.profile;const l=L_e(u);if(!l){tt&&W.log(`[Profiling] Could not retrieve profile for transaction: ${u}`);continue}const d=I_e(u,c,l,s);d&&a.push(d)}P_e(n,a)})}}),j_e=Fn(uU,F_e);let cU={};Se.Sentry&&Se.Sentry.Integrations&&(cU=Se.Sentry.Integrations);const H_e={...cU,...eme,...Qge},lU=["activate","mount","update"],z_e=/(?:^|[-_])(\w)/g,V_e=t=>t.replace(z_e,e=>e.toUpperCase()).replace(/[-_]/g,""),U_e="",f1="",G_e=(t,e)=>t.repeat?t.repeat(e):t,Ph=(t,e)=>{if(!t)return f1;if(t.$root===t)return U_e;if(!t.$options)return f1;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?`<${V_e(n)}>`:f1)+(i&&e!==!1?` at ${i}`:"")},W_e=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?"---> ":G_e(" ",5+a*2))+(Array.isArray(i)?`${Ph(i[0])}... (${i[1]} recursive calls)`:Ph(i))}`).join(` `)}`}return` (found in ${Ph(t)})`},dU=(t,e)=>{const{errorHandler:r,warnHandler:n,silent:i}=t.config;t.config.errorHandler=(a,s,o)=>{const u=Ph(s,!1),c=s?W_e(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(()=>{Rd(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&&ja(()=>{console.error(`[Vue warn]: ${f}${c}`)})}}},Y_e=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,RR="ui.vue",K_e={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function eT(){return yr().getTransaction()}function q_e(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 fU=t=>{const e=(t.hooks||[]).concat(lU).filter((n,i,a)=>a.indexOf(n)===i),r={};for(const n of e){const i=K_e[n];if(!i){Y_e&&W.warn(`Unknown hook: ${n}`);continue}for(const a of i)r[a]=function(){const s=this.$root===this;if(s){const c=eT();c&&(this.$_sentryRootSpan=this.$_sentryRootSpan||c.startChild({description:"Application Render",op:`${RR}.render`,origin:"auto.ui.vue"}))}const o=Ph(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||eT();if(c){const l=this.$_sentrySpans[n];l&&l.end(),this.$_sentrySpans[n]=c.startChild({description:`Vue <${o}>`,op:`${RR}.${n}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[n];if(!c)return;c.end(),q_e(this,Go(),t.timeout)}}}return r},X_e=Fe,J_e={Vue:X_e.Vue,attachProps:!0,logErrors:!0,hooks:lU,timeout:2e3,trackComponents:!1},hU="Vue",Z_e=(t={})=>({name:hU,setupOnce(){},setup(e){ewe(e,t)}}),CP=Z_e,Q_e=Fn(hU,CP);function ewe(t,e){const r={...J_e,...t.getOptions(),...e};if(!r.Vue&&!r.app){ja(()=>{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?Ax(r.app).forEach(i=>LR(i,r)):r.Vue&&LR(r.Vue,r)}const LR=(t,e)=>{const r=t;(r._instance&&r._instance.isMounted)===!0&&ja(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),dU(t,e),Nd(e)&&t.mixin(fU({...e,...e.tracingOptions}))};function twe(t={}){const e={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:ld}],version:ld}},defaultIntegrations:[...fP(),CP()],...t};Wge(e)}function rwe(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:{[An]:"url"}}),t.onError(s=>Rd(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=eT();p&&((xt(p).data||{})[An]!=="custom"&&(p.updateName(d),p.setAttribute(An,f)),p.setData("params",l.params),p.setData("query",l.query))}i&&!c&&(l[An]=f,r({name:d,op:"navigation",origin:"auto.navigation.vue",tags:a,data:l})),u&&u()})}}const LNe=Object.freeze(Object.defineProperty({__proto__:null,Breadcrumbs:zz,BrowserClient:kz,BrowserProfilingIntegration:j_e,BrowserTracing:Lme,Dedupe:Uz,Feedback:zp,FunctionToString:uz,GlobalHandlers:Kz,HttpContext:Zz,Hub:jx,InboundFilters:sz,Integrations:H_e,LinkedErrors:eV,ModuleMetadata:xpe,Replay:Hp,ReplayCanvas:Lye,SDK_VERSION:ld,Scope:Ni,TryCatch:rV,VueIntegration:Q_e,WINDOW:Se,addBreadcrumb:$s,addEventProcessor:QH,addGlobalEventProcessor:xH,addIntegration:Vhe,addTracingExtensions:Gx,attachErrorHandler:dU,breadcrumbsIntegration:sP,browserApiErrorsIntegration:dP,browserTracingIntegration:jme,captureEvent:Fx,captureException:Rd,captureMessage:Jfe,captureUserFeedback:Zge,chromeStackLineParser:Rz,close:ohe,configureScope:Zfe,continueTrace:Dhe,createTracingMixins:fU,createTransport:qx,createUserFeedbackEnvelope:$z,dedupeIntegration:oP,defaultIntegrations:nV,defaultRequestInstrumentationOptions:ep,defaultStackLineParsers:Bz,defaultStackParser:Fz,eventFromException:Az,eventFromMessage:Mz,exceptionFromError:nP,extractTraceparentData:_he,feedbackIntegration:f_e,flush:she,forceLoad:Kge,functionToStringIntegration:Jx,geckoStackLineParser:Lz,getActiveSpan:jH,getActiveTransaction:Wo,getClient:qe,getCurrentHub:vt,getCurrentScope:yr,getDefaultIntegrations:fP,getHubFromCarrier:M0,getSpanStatusFromHttpCode:zx,globalHandlersIntegration:uP,httpContextIntegration:cP,inboundFiltersIntegration:Xx,init:twe,instrumentOutgoingRequests:rP,isInitialized:che,lastEventId:uhe,linkedErrorsIntegration:lP,makeBrowserOfflineTransport:b_e,makeFetchTransport:Dz,makeMain:NO,makeMultiplexedTransport:ppe,makeXHRTransport:Iz,metrics:Qpe,moduleMetadataIntegration:iz,onLoad:qge,onProfilingStartRouteTransaction:B_e,opera10StackLineParser:mge,opera11StackLineParser:bge,parameterize:ype,replayCanvasIntegration:qV,replayIntegration:Sye,sendFeedback:ZV,setContext:$H,setCurrentClient:ez,setExtra:ehe,setExtras:Qfe,setMeasurement:HH,setTag:rhe,setTags:the,setUser:nhe,showReportDialog:Yge,spanStatusfromHttpCode:She,startBrowserTracingNavigationSpan:Pz,startBrowserTracingPageLoadSpan:xz,startInactiveSpan:Yx,startSpan:$he,startSpanManual:khe,startTransaction:ahe,trace:Mhe,vueIntegration:CP,vueRouterInstrumentation:rwe,winjsStackLineParser:Nz,withIsolationScope:ihe,withScope:Np,wrap:Xge},Symbol.toStringTag,{value:"Module"}));var pU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Oe,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,x={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(E,$,D){var M=String(E);return!M||M.length>=$?E:""+Array($+1-M.length).join(D)+E},h={s:O,z:function(E){var $=-E.utcOffset(),D=Math.abs($),M=Math.floor(D/60),L=D%60;return($<=0?"+":"-")+O(M,2,"0")+":"+O(L,2,"0")},m:function E($,D){if($.date()1)return E(j[0])}else{var z=$.name;g[z]=$,L=z}return!M&&L&&(v=L),L||!M&&v},k=function(E,$){if(T(E))return E.clone();var D=typeof $=="object"?$:{};return D.date=E,D.args=arguments,new A(D)},w=h;w.l=P,w.i=T,w.w=function(E,$){return k(E,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var A=function(){function E(D){this.$L=P(D.locale,null,!0),this.parse(D)}var $=E.prototype;return $.parse=function(D){this.$d=function(M){var L=M.date,N=M.utc;if(L===null)return new Date(NaN);if(w.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var j=L.match(_);if(j){var z=j[2]-1||0,U=(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,U)):new Date(j[1],z,j[3]||1,j[4]||0,j[5]||0,j[6]||0,U)}}return new Date(L)}(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 L=k(D);return this.startOf(M)<=L&&L<=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})})(cwe);var lwe={exports:{}};(function(t,e){(function(r,n){t.exports=n(Rs)})(Oe,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})})(lwe);var dwe={exports:{}};(function(t,e){(function(r,n){t.exports=n(Rs)})(Oe,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})})(dwe);var fwe={exports:{}};(function(t,e){(function(r,n){t.exports=n(Rs)})(Oe,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,x;return _==="m"?b?"минута":"минуту":m+" "+(S=+m,x={mm:b?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[_].split("_"),S%10==1&&S%100!=11?x[0]:S%10>=2&&S%10<=4&&(S%100<10||S%100>=20)?x[1]:x[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})})(fwe);var U0={exports:{}};U0.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]",x="[object String]",O="[object Symbol]",h="[object WeakMap]",v="[object ArrayBuffer]",g="[object DataView]",T="[object Float32Array]",P="[object Float64Array]",k="[object Int8Array]",w="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",E="[object Uint8ClampedArray]",$="[object Uint16Array]",D="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,L=/\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[P]=z[k]=z[w]=z[A]=z[f]=z[p]=z[m]=z[_]=z[S]=z[x]=z[O]=z[C]=z[E]=z[$]=z[D]=!0,z[c]=z[l]=z[h]=!1;var U=typeof Oe=="object"&&Oe&&Oe.Object===Object&&Oe,J=typeof self=="object"&&self&&self.Object===Object&&self,re=U||J||Function("return this")(),Y=e&&!e.nodeType&&e,G=Y&&!0&&t&&!t.nodeType&&t,K=G&&G.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 Ka(F,q){var te=this.__data__,he=$c(te,F);return he<0?te.push([F,q]):te[he][1]=q,this}Ai.prototype.clear=d_,Ai.prototype.delete=Mc,Ai.prototype.get=Xd,Ai.prototype.has=rm,Ai.prototype.set=Ka;function Hs(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 Nc(F){var q=typeof F;return!!F&&(q=="object"||q=="function")}function j_(F){return!!F&&typeof F=="object"}function tf(F){return Xa(F)?__(F):T_(F)}function cm(){return[]}function lm(){return!1}t.exports=B_})(U0,U0.exports);U0.exports;var gU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Oe,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,x){x===void 0&&(x={});var O=x.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",P=+f;return(s.utc(T).valueOf()-(P-=P%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),x=s(_).$set("millisecond",this.$ms).utcOffset(15*-Math.round(b.getTimezoneOffset()/15)-S,!0);if(p){var O=x.utcOffset();x=x.add(m-O,"minute")}return x.$x.$timezone=f,x},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 x=function(g,T,P){var k=g-60*T*1e3,w=c(k,P);if(T===w)return[k,T];var A=c(k-=60*(w-T)*1e3,P);return w===A?[k,w]:[g-60*Math.min(w,A)*1e3,Math.max(w,A)]}(s.utc(f,b).valueOf(),S,_),O=x[0],h=x[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 hwe=gU.exports;const FNe=li(hwe);var vU={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Oe,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],P=T[0],k=60*+T[1]+ +T[2];return k===0?0:P==="+"?k:-k}(b),b===null))return this;var x=Math.abs(b)<=16?60*b:b,O=this;if(_)return O.$offset=x,O.$u=b===0,O;if(b!==0){var h=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(O=this.local().add(x+h,r)).$offset=x,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 x=this.local(),O=o(b).local();return m.call(x,O,_,S)}}})})(vU);var pwe=vU.exports;const jNe=li(pwe);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License */function Vp(t){return t+.5|0}const ho=(t,e,r)=>Math.max(Math.min(t,r),e);function ih(t){return ho(Vp(t*2.55),0,255)}function Po(t){return ho(Vp(t*255),0,255)}function cs(t){return ho(Vp(t/2.55)/100,0,1)}function NR(t){return ho(Vp(t*100),0,100)}const gi={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},tT=[..."0123456789ABCDEF"],mwe=t=>tT[t&15],gwe=t=>tT[(t&240)>>4]+tT[t&15],ig=t=>(t&240)>>4===(t&15),vwe=t=>ig(t.r)&&ig(t.g)&&ig(t.b)&&ig(t.a);function bwe(t){var e=t.length,r;return t[0]==="#"&&(e===4||e===5?r={r:255&gi[t[1]]*17,g:255&gi[t[2]]*17,b:255&gi[t[3]]*17,a:e===5?gi[t[4]]*17:255}:(e===7||e===9)&&(r={r:gi[t[1]]<<4|gi[t[2]],g:gi[t[3]]<<4|gi[t[4]],b:gi[t[5]]<<4|gi[t[6]],a:e===9?gi[t[7]]<<4|gi[t[8]]:255})),r}const ywe=(t,e)=>t<255?e(t):"";function _we(t){var e=vwe(t)?mwe:gwe;return t?"#"+e(t.r)+e(t.g)+e(t.b)+ywe(t.a,e):void 0}const wwe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function bU(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 Swe(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 Owe(t,e,r){const n=bU(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 Twe(t,e,r,n,i){return t===i?(e-r)/n+(e.5?l/(2-a-s):l/(a+s),u=Twe(r,n,i,l,a),u=u*60+.5),[u|0,c||0,o]}function MP(t,e,r,n){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,r,n)).map(Po)}function $P(t,e,r){return MP(bU,t,e,r)}function Ewe(t,e,r){return MP(Owe,t,e,r)}function xwe(t,e,r){return MP(Swe,t,e,r)}function yU(t){return(t%360+360)%360}function Pwe(t){const e=wwe.exec(t);let r=255,n;if(!e)return;e[5]!==n&&(r=e[6]?ih(+e[5]):Po(+e[5]));const i=yU(+e[2]),a=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?n=Ewe(i,a,s):e[1]==="hsv"?n=xwe(i,a,s):n=$P(i,a,s),{r:n[0],g:n[1],b:n[2],a:r}}function Cwe(t,e){var r=AP(t);r[0]=yU(r[0]+e),r=$P(r),t.r=r[0],t.g=r[1],t.b=r[2]}function Awe(t){if(!t)return;const e=AP(t),r=e[0],n=NR(e[1]),i=NR(e[2]);return t.a<255?`hsla(${r}, ${n}%, ${i}%, ${cs(t.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const BR={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"},FR={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 Mwe(){const t={},e=Object.keys(FR),r=Object.keys(BR);let n,i,a,s,o;for(n=0;n>16&255,a>>8&255,a&255]}return t}let ag;function $we(t){ag||(ag=Mwe(),ag.transparent=[0,0,0,0]);const e=ag[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const kwe=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dwe(t){const e=kwe.exec(t);let r=255,n,i,a;if(e){if(e[7]!==n){const s=+e[7];r=e[8]?ih(s):ho(s*255,0,255)}return n=+e[1],i=+e[3],a=+e[5],n=255&(e[2]?ih(n):ho(n,0,255)),i=255&(e[4]?ih(i):ho(i,0,255)),a=255&(e[6]?ih(a):ho(a,0,255)),{r:n,g:i,b:a,a:r}}}function Iwe(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${cs(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const h1=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,rl=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Rwe(t,e,r){const n=rl(cs(t.r)),i=rl(cs(t.g)),a=rl(cs(t.b));return{r:Po(h1(n+r*(rl(cs(e.r))-n))),g:Po(h1(i+r*(rl(cs(e.g))-i))),b:Po(h1(a+r*(rl(cs(e.b))-a))),a:t.a+r*(e.a-t.a)}}function sg(t,e,r){if(t){let n=AP(t);n[e]=Math.max(0,Math.min(n[e]+n[e]*r,e===0?360:1)),n=$P(n),t.r=n[0],t.g=n[1],t.b=n[2]}}function _U(t,e){return t&&Object.assign(e||{},t)}function jR(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=Po(t[3]))):(e=_U(t,{r:0,g:0,b:0,a:1}),e.a=Po(e.a)),e}function Lwe(t){return t.charAt(0)==="r"?Dwe(t):Pwe(t)}class sp{constructor(e){if(e instanceof sp)return e;const r=typeof e;let n;r==="object"?n=jR(e):r==="string"&&(n=bwe(e)||$we(e)||Lwe(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=_U(this._rgb);return e&&(e.a=cs(e.a)),e}set rgb(e){this._rgb=jR(e)}rgbString(){return this._valid?Iwe(this._rgb):void 0}hexString(){return this._valid?_we(this._rgb):void 0}hslString(){return this._valid?Awe(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=Rwe(this._rgb,e._rgb,r)),this}clone(){return new sp(this.rgb)}alpha(e){return this._rgb.a=Po(e),this}clearer(e){const r=this._rgb;return r.a*=1-e,this}greyscale(){const e=this._rgb,r=Vp(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 sg(this._rgb,2,e),this}darken(e){return sg(this._rgb,2,-e),this}saturate(e){return sg(this._rgb,1,e),this}desaturate(e){return sg(this._rgb,1,-e),this}rotate(e){return Cwe(this._rgb,e),this}}/*! * Chart.js v4.3.3 * https://www.chartjs.org * (c) 2023 Chart.js Contributors * Released under the MIT License */function es(){}const Nwe=(()=>{let t=0;return()=>t++})();function nt(t){return t===null||typeof t>"u"}function Dt(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 Xe(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function er(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Gn(t,e){return er(t)?t:e}function Le(t,e){return typeof t>"u"?e:t}const Bwe=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,wU=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function At(t,e,r){if(t&&typeof t.call=="function")return t.apply(r,e)}function gt(t,e,r,n){let i,a,s;if(Dt(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 Hwe(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 zwe(t){const e=Hwe(t);return r=>{for(const n of e){if(n==="")break;r=r&&r[n]}return r}}function Bo(t,e){return(HR[e]||(HR[e]=zwe(e)))(t)}function kP(t){return t.charAt(0).toUpperCase()+t.slice(1)}const up=t=>typeof t<"u",Fo=t=>typeof t=="function",zR=(t,e)=>{if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0};function Vwe(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const zt=Math.PI,It=2*zt,Uwe=It+zt,Y0=Number.POSITIVE_INFINITY,Gwe=zt/180,tr=zt/2,cu=zt/4,VR=zt*2/3,po=Math.log10,La=Math.sign;function Ah(t,e,r){return Math.abs(t-e)i-a).pop(),e}function gd(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ywe(t,e){const r=Math.round(t);return r-e<=t&&r+e>=t}function OU(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 IP(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 ys=(t,e,r,n)=>IP(t,r,n?i=>{const a=t[i][e];return at[i][e]IP(t,r,n=>t[n][e]>=r);function Jwe(t,e,r){let n=0,i=t.length;for(;nn&&t[i-1]>r;)i--;return n>0||i{const n="_onData"+kP(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 WR(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)&&(EU.forEach(a=>{delete t[a]}),delete t._chartjs)}function xU(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const PU=function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame}();function CU(t,e){let r=[],n=!1;return function(...i){r=i,n||(n=!0,PU.call(window,()=>{n=!1,t.apply(e,r)}))}}function Qwe(t,e){let r;return function(...n){return e?(clearTimeout(r),r=setTimeout(t,e,n)):t.apply(this,n),e}}const RP=t=>t==="start"?"left":t==="end"?"right":"center",Wr=(t,e,r)=>t==="start"?e:t==="end"?r:(e+r)/2,e1e=(t,e,r,n)=>t===(n?"left":"right")?r:t==="center"?(e+r)/2:e;function AU(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=Rr(Math.min(ys(o,u,c).lo,r?n:ys(e,u,s.getPixelForValue(c)).lo),0,n-1)),f?a=Rr(Math.max(ys(o,s.axis,l,!0).hi+1,r?0:ys(e,u,s.getPixelForValue(l),!0).hi+1),i,n)-i:a=n-i}return{start:i,count:a}}function MU(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 og=t=>t===0||t===1,YR=(t,e,r)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*It/r)),KR=(t,e,r)=>Math.pow(2,-10*t)*Math.sin((t-e)*It/r)+1,Mh={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*tr)+1,easeOutSine:t=>Math.sin(t*tr),easeInOutSine:t=>-.5*(Math.cos(zt*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=>og(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=>og(t)?t:YR(t,.075,.3),easeOutElastic:t=>og(t)?t:KR(t,.075,.3),easeInOutElastic(t){return og(t)?t:t<.5?.5*YR(t*2,.1125,.45):.5+.5*KR(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-Mh.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?Mh.easeInBounce(t*2)*.5:Mh.easeOutBounce(t*2-1)*.5+.5};function LP(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function qR(t){return LP(t)?t:new sp(t)}function p1(t){return LP(t)?t:new sp(t).saturate(.5).darken(.1).hexString()}const t1e=["x","y","borderWidth","radius","tension"],r1e=["color","borderColor","backgroundColor"];function n1e(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:r1e},numbers:{type:"number",properties:t1e}}),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 i1e(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const XR=new Map;function a1e(t,e){e=e||{};const r=t+JSON.stringify(e);let n=XR.get(r);return n||(n=new Intl.NumberFormat(t,e),XR.set(r,n)),n}function Up(t,e,r){return a1e(e,r).format(t)}const $U={values(t){return Dt(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=s1e(t,r)}const s=po(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),Up(t,n,u)},logarithmic(t,e,r){if(t===0)return"0";const n=r[e].significand||t/Math.pow(10,Math.floor(po(t)));return[1,2,3,5,10,15].includes(n)||e>.8*r.length?$U.numeric.call(this,t,e,r):""}};function s1e(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 xy={formatters:$U};function o1e(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:xy.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 ic=Object.create(null),nT=Object.create(null);function $h(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)=>p1(i.backgroundColor),this.hoverBorderColor=(n,i)=>p1(i.borderColor),this.hoverColor=(n,i)=>p1(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 m1(this,e,r)}get(e){return $h(this,e)}describe(e,r){return m1(nT,e,r)}override(e,r){return m1(ic,e,r)}route(e,r,n,i){const a=$h(this,e),s=$h(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 Xe(u)?Object.assign({},c,u):Le(u,c)},set(u){this[o]=u}}})}apply(e){e.forEach(r=>r(this))}}var rr=new u1e({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[n1e,i1e,o1e]);function c1e(t){return!t||nt(t.size)||nt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function K0(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 l1e(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 _s(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,h1e(t,a),u=0;u+t||0;function NP(t,e){const r={},n=Xe(e),i=n?Object.keys(e):e,a=Xe(t)?n?s=>Le(t[s],t[e[s]]):s=>t[s]:()=>t;for(const s of i)r[s]=y1e(a(s));return r}function DU(t){return NP(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Lu(t){return NP(t,["topLeft","topRight","bottomLeft","bottomRight"])}function tn(t){const e=DU(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Sr(t,e){t=t||{},e=e||rr.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(v1e)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:Le(t.family,e.family),lineHeight:b1e(Le(t.lineHeight,e.lineHeight),r),size:r,style:n,weight:Le(t.weight,e.weight),string:""};return i.string=c1e(i),i}function ah(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 Yo(t,e){return Object.assign(Object.create(t),e)}function BP(t,e=[""],r,n,i=()=>t[0]){const a=r||t;typeof n>"u"&&(n=NU("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:n,_getTarget:i,override:o=>BP([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 RU(o,u,()=>C1e(u,e,t,o))},getOwnPropertyDescriptor(o,u){return Reflect.getOwnPropertyDescriptor(o._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(o,u){return QR(o).includes(u)},ownKeys(o){return QR(o)},set(o,u,c){const l=o._storage||(o._storage=i());return o[u]=l[u]=c,delete o._keys,!0}})}function vd(t,e,r,n){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:r,_stack:new Set,_descriptors:IU(t,n),setContext:a=>vd(t,a,r,n),override:a=>vd(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 RU(a,s,()=>S1e(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 IU(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:Fo(r)?r:()=>r,isIndexable:Fo(n)?n:()=>n}}const w1e=(t,e)=>t?t+kP(e):e,FP=(t,e)=>Xe(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function RU(t,e,r){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const n=r();return t[e]=n,n}function S1e(t,e,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:s}=t;let o=n[e];return Fo(o)&&s.isScriptable(e)&&(o=O1e(e,o,t,r)),Dt(o)&&o.length&&(o=T1e(e,o,t,s.isIndexable)),FP(e,o)&&(o=vd(o,i,a&&a[e],s)),o}function O1e(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),FP(t,u)&&(u=jP(i._scopes,i,t,u)),u}function T1e(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(Xe(e[0])){const u=e,c=i._scopes.filter(l=>l!==u);e=[];for(const l of u){const d=jP(c,i,t,l);e.push(vd(d,a,s&&s[t],o))}}return e}function LU(t,e,r){return Fo(t)?t(e,r):t}const E1e=(t,e)=>t===!0?e:typeof t=="string"?Bo(e,t):void 0;function x1e(t,e,r,n,i){for(const a of e){const s=E1e(r,a);if(s){t.add(s);const o=LU(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 jP(t,e,r,n){const i=e._rootScopes,a=LU(e._fallback,r,n),s=[...t,...i],o=new Set;o.add(n);let u=ZR(o,s,r,a||r,n);return u===null||typeof a<"u"&&a!==r&&(u=ZR(o,s,a,u,n),u===null)?!1:BP(Array.from(o),[""],i,a,()=>P1e(e,r,n))}function ZR(t,e,r,n,i){for(;r;)r=x1e(t,e,r,n,i);return r}function P1e(t,e,r){const n=t._getTarget();e in n||(n[e]={});const i=n[e];return Dt(i)&&Xe(r)?r:i||{}}function C1e(t,e,r,n){let i;for(const a of e)if(i=NU(w1e(a,t),r),typeof i<"u")return FP(t,i)?jP(r,n,t,i):i}function NU(t,e){for(const r of e){if(!r)continue;const n=r[t];if(typeof n<"u")return n}}function QR(t){let e=t._keys;return e||(e=t._keys=A1e(t._scopes)),e}function A1e(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 BU(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 $1e(t,e,r,n){const i=t.skip?e:t,a=e,s=r.skip?e:r,o=rT(a,i),u=rT(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 k1e(t,e,r){const n=t.length;let i,a,s,o,u,c=bd(t,0);for(let l=0;l!c.skip)),e.cubicInterpolationMode==="monotone")I1e(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 N1e(t,e){return Ay(t).getPropertyValue(e)}const B1e=["top","right","bottom","left"];function Nu(t,e,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=B1e[i];n[a]=parseFloat(t[e+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const F1e=(t,e,r)=>(t>0||e>0)&&(!r||!r.shadowRoot);function j1e(t,e){const r=t.touches,n=r&&r.length?r[0]:t,{offsetX:i,offsetY:a}=n;let s=!1,o,u;if(F1e(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 gu(t,e){if("native"in t)return t;const{canvas:r,currentDevicePixelRatio:n}=e,i=Ay(r),a=i.boxSizing==="border-box",s=Nu(i,"padding"),o=Nu(i,"border","width"),{x:u,y:c,box:l}=j1e(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 H1e(t,e,r){let n,i;if(e===void 0||r===void 0){const a=HP(t);if(!a)e=t.clientWidth,r=t.clientHeight;else{const s=a.getBoundingClientRect(),o=Ay(a),u=Nu(o,"border","width"),c=Nu(o,"padding");e=s.width-c.width-u.width,r=s.height-c.height-u.height,n=q0(o.maxWidth,a,"clientWidth"),i=q0(o.maxHeight,a,"clientHeight")}}return{width:e,height:r,maxWidth:n||Y0,maxHeight:i||Y0}}const cg=t=>Math.round(t*10)/10;function z1e(t,e,r,n){const i=Ay(t),a=Nu(i,"margin"),s=q0(i.maxWidth,t,"clientWidth")||Y0,o=q0(i.maxHeight,t,"clientHeight")||Y0,u=H1e(t,e,r);let{width:c,height:l}=u;if(i.boxSizing==="content-box"){const f=Nu(i,"border","width"),p=Nu(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=cg(Math.min(c,s,u.maxWidth)),l=cg(Math.min(l,o,u.maxHeight)),c&&!l&&(l=cg(c/2)),(e!==void 0||r!==void 0)&&n&&u.height&&l>u.height&&(l=u.height,c=cg(Math.floor(l*n))),{width:c,height:l}}function e8(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 V1e=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 t8(t,e){const r=N1e(t,e),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function vu(t,e,r,n){return{x:t.x+r*(e.x-t.x),y:t.y+r*(e.y-t.y)}}function U1e(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 G1e(t,e,r,n){const i={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},s=vu(t,i,r),o=vu(i,a,r),u=vu(a,e,r),c=vu(s,o,r),l=vu(o,u,r);return vu(c,l,r)}const W1e=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}}},Y1e=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function zl(t,e,r){return t?W1e(e,r):Y1e()}function HU(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 zU(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function VU(t){return t==="angle"?{between:cp,compare:Kwe,normalize:qn}:{between:bs,compare:(e,r)=>e-r,normalize:e=>e}}function r8({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 K1e(t,e,r){const{property:n,start:i,end:a}=r,{between:s,normalize:o}=VU(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 P=l,k=l;P<=d;++P)x=e[P%s],!x.skip&&(S=c(x[n]),S!==O&&(b=u(S,i,a),_===null&&g()&&(_=o(S,i)===0?P:k),_!==null&&T()&&(m.push(r8({start:_,end:P,loop:f,count:s,style:p})),_=null),k=P,O=S));return _!==null&&m.push(r8({start:_,end:d,loop:f,count:s,style:p})),m}function GU(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 X1e(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 J1e(t,e){const r=t.points,n=t.options.spanGaps,i=r.length;if(!i)return[];const a=!!t._loop,{start:s,end:o}=q1e(r,i,a,n);if(n===!0)return n8(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=PU.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 rs=new eSe;const a8="transparent",tSe={boolean(t,e,r){return r>.5?e:t},color(t,e,r){const n=qR(t||a8),i=n.valid&&qR(e||a8);return i&&i.valid?i.mix(n,r).hexString():e},number(t,e,r){return t+(e-t)*r}};class rSe{constructor(e,r,n,i){const a=r[n];i=ah([e.to,i,a,e.from]);const s=ah([e.from,a,i]);this._active=!0,this._fn=e.fn||tSe[e.type||typeof s],this._easing=Mh[e.easing]||Mh.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=ah([e.to,r,i,e.from]),this._from=ah([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(!Xe(a))return;const s={};for(const o of r)s[o]=a[o];(Dt(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!n.has(o))&&n.set(o,s)})})}_animateOptions(e,r){const n=r.options,i=iSe(e,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&nSe(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 rSe(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 rs.add(this._chart,n),!0}}function nSe(t,e){const r=[],n=Object.keys(e);for(let i=0;i0||!r&&a<0)return i.index}return null}function l8(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=uSe(a,s,n),d=e.length;let f;for(let p=0;pr[n].axis===e).shift()}function dSe(t,e){return Yo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function fSe(t,e,r){return Yo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:r,index:e,mode:"default",type:"data"})}function Af(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 v1=t=>t==="reset"||t==="none",d8=(t,e)=>e?t:Object.assign({},t),hSe=(t,e,r)=>t&&!e.hidden&&e._stacked&&{keys:YU(r,!0),values:null};class zi{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=u8(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&&Af(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,g1(e,"x")),s=r.yAxisID=Le(n.yAxisID,g1(e,"y")),o=r.rAxisID=Le(n.rAxisID,g1(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&&WR(this._data,this),e._stacked&&Af(e)}_dataCheck(){const e=this.getDataset(),r=e.data||(e.data=[]),n=this._data;if(Xe(r))this._data=oSe(r);else if(n!==r){if(n){WR(n,this);const i=this._cachedMeta;Af(i),i._parsed=[]}r&&Object.isExtensible(r)&&Zwe(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=u8(r.vScale,r),r.stack!==n.stack&&(i=!0,Af(r),r.stack=n.stack),this._resyncElements(e),(i||a!==r._stacked)&&l8(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{Dt(i[e])?f=this.parseArrayData(n,i,e,r):Xe(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(d8(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 WU(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||v1(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){v1(i)?Object.assign(e,n):this._resolveAnimations(r,i).update(e,n)}updateSharedOptions(e,r,n){e&&!v1(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 mSe(t){const e=t.iScale,r=pSe(e,t.type);let n=e._length,i,a,s,o;const u=()=>{s===32767||s===-32768||(up(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 KU(t,e,r,n){return Dt(t)?bSe(t,e,r,n):e[r.axis]=r.parse(t,n),e}function f8(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 _Se(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(nt(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;fcp(O,o,u,!0)?1:Math.max(h,h*r,v,v*r),m=(O,h,v)=>cp(O,o,u,!0)?-1:Math.min(h,h*r,v,v*r),b=p(0,c,d),_=p(tr,l,f),S=m(zt,c,d),x=m(zt+tr,l,f);n=(b-S)/2,i=(_-x)/2,a=-(b+S)/2,s=-(_+x)/2}return{ratioX:n,ratioY:i,offsetX:a,offsetY:s}}class Pu extends zi{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(Xe(n[e])){const{key:u="value"}=this._parsing;a=c=>+Bo(n[c],u)}let s,o;for(s=e,o=e+r;s0&&!isNaN(e)?It*(Math.abs(e)/r):0}getLabelAndValue(e){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=Up(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(Pu,"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 gv extends zi{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}=AU(r,i,s);this._drawStart=o,this._drawCount=u,MU(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,_=gd(m)?m:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||a||i==="none",x=r+n,O=e.length;let h=r>0&&this.getParsed(r-1);for(let v=0;v=x){T.skip=!0;continue}const P=this.getParsed(v),k=nt(P[p]),w=T[f]=s.getPixelForValue(P[f],v),A=T[p]=a||k?o.getBasePixel():o.getPixelForValue(u?this.applyStack(o,P,u):P[p],v);T.skip=isNaN(w)||isNaN(A)||k,T.stop=v>0&&Math.abs(P[f]-h[f])>_,b&&(T.parsed=P,T.raw=c.data[v]),d&&(T.options=l||this.resolveDataElementOptions(v,g.active?"active":i)),S||this.updateElement(g,v,T,i),h=P}}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(gv,"id","line"),ae(gv,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ae(gv,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class kh extends zi{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=Up(r._parsed[e].r,n.options.locale);return{label:i[e]||"",value:a}}parseObjectData(e,r,n,i){return BU.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*zt;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)?Bi(this.resolveDataElementOptions(e,r).angle||n):0}}ae(kh,"id","polarArea"),ae(kh,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ae(kh,"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 aT extends Pu{}ae(aT,"id","pie"),ae(aT,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class vv extends zi{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 BU.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)),x||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(bv,"id","scatter"),ae(bv,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ae(bv,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var ESe=Object.freeze({__proto__:null,BarController:pv,BubbleController:mv,DoughnutController:Pu,LineController:gv,PieController:aT,PolarAreaController:kh,RadarController:vv,ScatterController:bv});function du(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class zP{constructor(e){ae(this,"options");this.options=e||{}}static override(e){Object.assign(zP.prototype,e)}init(){}formats(){return du()}parse(){return du()}format(){return du()}add(){return du()}diff(){return du()}startOf(){return du()}endOf(){return du()}}var qU={_date:zP};function xSe(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?Xwe:ys;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 Gp(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 MSe={evaluateInteractionItems:Gp,modes:{index(t,e,r,n){const i=gu(e,t),a=r.axis||"x",s=r.includeInvisible||!1,o=r.intersect?y1(t,i,a,n,s):_1(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=gu(e,t),a=r.axis||"xy",s=r.includeInvisible||!1;let o=r.intersect?y1(t,i,a,n,s):_1(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 g8(t,e){return t.filter(r=>XU.indexOf(r.pos)===-1&&r.box.axis===e)}function $f(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 $Se(t){const e=[];let r,n,i,a,s,o;for(r=0,n=(t||[]).length;rc.box.fullSize),!0),n=$f(Mf(e,"left"),!0),i=$f(Mf(e,"right")),a=$f(Mf(e,"top"),!0),s=$f(Mf(e,"bottom")),o=g8(e,"x"),u=g8(e,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:i.concat(u).concat(s).concat(o),chartArea:Mf(e,"chartArea"),vertical:n.concat(i).concat(u),horizontal:a.concat(s).concat(o)}}function v8(t,e,r,n){return Math.max(t[r],e[r])+Math.max(t[n],e[n])}function JU(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 RSe(t,e,r,n){const{pos:i,box:a}=r,s=t.maxPadding;if(!Xe(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&&JU(s,a.getPadding());const o=Math.max(0,e.outerWidth-v8(s,t,"left","right")),u=Math.max(0,e.outerHeight-v8(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 LSe(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 NSe(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 sh(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);JU(f,tn(n));const p=Object.assign({maxPadding:f,w:a,h:s,x:i.left,y:i.top},i),m=DSe(u.concat(c),d);sh(o.fullSize,p,d,m),sh(u,p,d,m),sh(c,p,d,m)&&sh(u,p,d,m),LSe(p),b8(o.leftAndTop,p,d,m),p.x+=p.w,p.y+=p.h,b8(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},gt(o.chartArea,b=>{const _=b.box;Object.assign(_,t.chartArea),_.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class ZU{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 BSe extends ZU{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const yv="$chartjs",FSe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},y8=t=>t===null||t==="";function jSe(t,e){const r=t.style,n=t.getAttribute("height"),i=t.getAttribute("width");if(t[yv]={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",y8(i)){const a=t8(t,"width");a!==void 0&&(t.width=a)}if(y8(n))if(t.style.height==="")t.height=t.width/(e||2);else{const a=t8(t,"height");a!==void 0&&(t.height=a)}return t}const QU=V1e?{passive:!0}:!1;function HSe(t,e,r){t.addEventListener(e,r,QU)}function zSe(t,e,r){t.canvas.removeEventListener(e,r,QU)}function VSe(t,e){const r=FSe[t.type]||t.type,{x:n,y:i}=gu(t,e);return{type:r,chart:e,native:t,x:n!==void 0?n:null,y:i!==void 0?i:null}}function X0(t,e){for(const r of t)if(r===e||r.contains(e))return!0}function USe(t,e,r){const n=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||X0(o.addedNodes,n),s=s&&!X0(o.removedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function GSe(t,e,r){const n=t.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||X0(o.removedNodes,n),s=s&&!X0(o.addedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const dp=new Map;let _8=0;function e7(){const t=window.devicePixelRatio;t!==_8&&(_8=t,dp.forEach((e,r)=>{r.currentDevicePixelRatio!==t&&e()}))}function WSe(t,e){dp.size||window.addEventListener("resize",e7),dp.set(t,e)}function YSe(t){dp.delete(t),dp.size||window.removeEventListener("resize",e7)}function KSe(t,e,r){const n=t.canvas,i=n&&HP(n);if(!i)return;const a=CU((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),WSe(t,a),s}function w1(t,e,r){r&&r.disconnect(),e==="resize"&&YSe(t)}function qSe(t,e,r){const n=t.canvas,i=CU(a=>{t.ctx!==null&&r(VSe(a,t))},t);return HSe(n,e,i),i}class XSe extends ZU{acquireContext(e,r){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(jSe(e,r),n):null}releaseContext(e){const r=e.canvas;if(!r[yv])return!1;const n=r[yv].initial;["height","width"].forEach(a=>{const s=n[a];nt(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[yv],!0}addEventListener(e,r,n){this.removeEventListener(e,r);const i=e.$proxies||(e.$proxies={}),s={attach:USe,detach:GSe,resize:KSe}[r]||qSe;i[r]=s(e,r,n)}removeEventListener(e,r){const n=e.$proxies||(e.$proxies={}),i=n[r];if(!i)return;({attach:w1,detach:w1,resize:w1}[r]||zSe)(e,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,r,n,i){return z1e(e,r,n,i)}isAttached(e){const r=HP(e);return!!(r&&r.isConnected)}}function JSe(t){return!jU()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?BSe:XSe}var xg;let Ls=(xg=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 gd(this.x)&&gd(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(xg,"defaults",{}),ae(xg,"defaultRoutes"),xg);function ZSe(t,e){const r=t.options.ticks,n=QSe(t),i=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?tOe(e):[],s=a.length,o=a[0],u=a[s-1],c=[];if(s>i)return rOe(e,c,a,s/i),c;const l=eOe(a,e,i);if(s>0){let d,f;const p=s>1?Math.round((u-o)/(s-1)):null;for(dg(e,c,l,nt(p)?0:o-p,o),d=0,f=s-1;di)return u}return Math.max(i,1)}function tOe(t){const e=[];let r,n;for(r=0,n=t.length;rt==="left"?"right":t==="right"?"left":t,w8=(t,e,r)=>e==="top"||e==="left"?t[e]+r:t[e]-r,S8=(t,e)=>Math.min(e||t,t);function O8(t,e){const r=[],n=t.length/e,i=t.length;let a=0;for(;as+o)))return u}function sOe(t,e){gt(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:Gn(r,Gn(n,r)),max:Gn(n,Gn(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(){At(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=_1e(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=Rr(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-kf(e.grid)-r.padding-T8(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=DP(Math.min(Math.asin(Rr((l.highest.height+6)/o,-1,1)),Math.asin(Rr(u/c,-1,1))-Math.asin(Rr(f/c,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){At(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){At(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=T8(i,r.options.font);if(o?(e.width=this.maxWidth,e.height=kf(a)+u):(e.height=this.maxHeight,e.width=kf(a)+u),n.display&&this.ticks.length){const{first:c,last:l,widest:d,highest:f}=this._getLabelSizes(),p=n.padding*2,m=Bi(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(){At(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:P(0),last:P(r-1),widest:P(g),highest:P(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 qwe(this._alignToPixels?lu(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=kf(a),p=[],m=o.setContext(this.getContext()),b=m.display?m.width:0,_=b/2,S=function(M){return lu(n,M,b)};let x,O,h,v,g,T,P,k,w,A,C,E;if(s==="top")x=S(this.bottom),T=this.bottom-f,k=x-_,A=S(e.top)+_,E=e.bottom;else if(s==="bottom")x=S(this.top),A=e.top,E=S(e.bottom)-_,T=x+_,k=this.top+f;else if(s==="left")x=S(this.right),g=this.right-f,P=x-_,w=S(e.left)+_,C=e.right;else if(s==="right")x=S(this.left),w=e.left,C=S(e.right)-_,g=x+_,P=this.left+f;else if(r==="x"){if(s==="center")x=S((e.top+e.bottom)/2+.5);else if(Xe(s)){const M=Object.keys(s)[0],L=s[M];x=S(this.chart.scales[M].getPixelForValue(L))}A=e.top,E=e.bottom,T=x+_,k=T+f}else if(r==="y"){if(s==="center")x=S((e.left+e.right)/2);else if(Xe(s)){const M=Object.keys(s)[0],L=s[M];x=S(this.chart.scales[M].getPixelForValue(L))}g=x-_,P=g-f,w=e.left,C=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(".");rr.route(a,i,u,o)})}function hOe(t){return"id"in t&&"defaults"in t}class pOe{constructor(){this.controllers=new fg(zi,"datasets",!0),this.elements=new fg(Ls,"elements"),this.plugins=new fg(Object,"plugins"),this.scales=new fg(Sc,"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):gt(i,s=>{const o=n||this._getRegistryForType(s);this._exec(e,o,s)})})}_exec(e,r,n){const i=kP(e);At(n["before"+i],[],n),r[e](n),At(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 gOe(t){const e={},r=[],n=Object.keys(_a.plugins.items);for(let a=0;a1&&E8(t[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function x8(t,e,r){if(r[e+"AxisID"]===t)return{axis:e}}function OOe(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 x8(t,"x",r[0])||x8(t,"y",r[0])}return{}}function TOe(t,e){const r=ic[t.type]||{scales:{}},n=e.scales||{},i=sT(t.type,e),a=Object.create(null);return Object.keys(n).forEach(s=>{const o=n[s];if(!Xe(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=oT(s,o,OOe(s,t),rr.scales[o.type]),c=wOe(u,i),l=r.scales||{};a[s]=Ch(Object.create(null),[{axis:u},o,l[u],l[c]])}),t.data.datasets.forEach(s=>{const o=s.type||t.type,u=s.indexAxis||sT(o,e),l=(ic[o]||{}).scales||{};Object.keys(l).forEach(d=>{const f=_Oe(d,u),p=s[f+"AxisID"]||f;a[p]=a[p]||Object.create(null),Ch(a[p],[{axis:f},n[p],l[d]])})}),Object.keys(a).forEach(s=>{const o=a[s];Ch(o,[rr.scales[o.type],rr.scale])}),a}function t7(t){const e=t.options||(t.options={});e.plugins=Le(e.plugins,{}),e.scales=TOe(t,e)}function r7(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function EOe(t){return t=t||{},t.data=r7(t.data),t7(t),t}const P8=new Map,n7=new Set;function hg(t,e){let r=P8.get(t);return r||(r=e(),P8.set(t,r),n7.add(r)),r}const Df=(t,e,r)=>{const n=Bo(e,r);n!==void 0&&t.add(n)};class xOe{constructor(e){this._config=EOe(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=r7(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(),t7(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return hg(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,r){return hg(`${e}.transition.${r}`,()=>[[`datasets.${e}.transitions.${r}`,`transitions.${r}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,r){return hg(`${e}-${r}`,()=>[[`datasets.${e}.elements.${r}`,`datasets.${e}`,`elements.${r}`,""]])}pluginScopeKeys(e){const r=e.id,n=this.type;return hg(`${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=>Df(u,e,d))),l.forEach(d=>Df(u,i,d)),l.forEach(d=>Df(u,ic[a]||{},d)),l.forEach(d=>Df(u,rr,d)),l.forEach(d=>Df(u,nT,d))});const c=Array.from(u);return c.length===0&&c.push(Object.create(null)),n7.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:e,type:r}=this;return[e,ic[r]||{},rr.datasets[r]||{},{type:r},rr,nT]}resolveNamedOptions(e,r,n,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=C8(this._resolverCache,e,i);let u=s;if(COe(s,r)){a.$shared=!1,n=Fo(n)?n():n;const c=this.createResolver(e,n,o);u=vd(s,n,c)}for(const c of r)a[c]=u[c];return a}createResolver(e,r,n=[""],i){const{resolver:a}=C8(this._resolverCache,e,n);return Xe(r)?vd(a,r,void 0,i):a}}function C8(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:BP(e,r),subPrefixes:r.filter(o=>!o.toLowerCase().includes("hover"))},n.set(i,a)),a}const POe=t=>Xe(t)&&Object.getOwnPropertyNames(t).reduce((e,r)=>e||Fo(t[r]),!1);function COe(t,e){const{isScriptable:r,isIndexable:n}=IU(t);for(const i of e){const a=r(i),s=n(i),o=(s||a)&&t[i];if(a&&(Fo(o)||POe(o))||s&&Dt(o))return!0}return!1}var AOe="4.3.3";const MOe=["top","bottom","left","right","chartArea"];function A8(t,e){return t==="top"||t==="bottom"||MOe.indexOf(t)===-1&&e==="x"}function M8(t,e){return function(r,n){return r[t]===n[t]?r[e]-n[e]:r[t]-n[t]}}function $8(t){const e=t.chart,r=e.options.animation;e.notifyPlugins("afterRender"),At(r&&r.onComplete,[t],e)}function $Oe(t){const e=t.chart,r=e.options.animation;At(r&&r.onProgress,[t],e)}function i7(t){return jU()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _v={},k8=t=>{const e=i7(t);return Object.values(_v).filter(r=>r.canvas===e).pop()};function kOe(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 DOe(t,e,r,n){return!r||t.type==="mouseout"?null:n?e:t}function IOe(t){const{xScale:e,yScale:r}=t;if(e&&r)return{left:e.left,right:e.right,top:r.top,bottom:r.bottom}}class bu{static register(...e){_a.add(...e),D8()}static unregister(...e){_a.remove(...e),D8()}constructor(e,r){const n=this.config=new xOe(r),i=i7(e),a=k8(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||JSe(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=Nwe(),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 mOe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Qwe(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],_v[this.id]=this,!o||!u){console.error("Failed to create chart: can't acquire context from the given item");return}rs.listen(this,"complete",$8),rs.listen(this,"progress",$Oe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:r},width:n,height:i,_aspectRatio:a}=this;return nt(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 _a}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():e8(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return JR(this.canvas,this.ctx),this}stop(){return rs.stop(this),this}resize(e,r){rs.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,e8(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),At(n.onResize,[this,s],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};gt(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=oT(s,o),c=u==="r",l=u==="x";return{options:o,dposition:c?"chartArea":l?"bottom":"left",dtype:c?"radialLinear":l?"category":"linear"}}))),gt(a,s=>{const o=s.options,u=o.id,c=oT(u,o),l=Le(o.type,s.dtype);(o.position===void 0||A8(o.position,c)!==A8(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=_a.getScale(l);d=new f({id:u,type:l,ctx:this.ctx,chart:this}),n[d.id]=d}d.init(o,e)}),gt(i,(s,o)=>{s||delete n[o]}),gt(n,s=>{qr.configure(this,s,s.options),qr.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(M8("z","_idx"));const{_active:o,_lastEvent:u}=this;u?this._eventHandler(u,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){gt(this.scales,e=>{qr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!zR(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;kOe(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;qr.update(this,this.width,this.height,e);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],gt(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=IOe(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Py(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&&Cy(r),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return _s(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,r,n,i){const a=MSe.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=Yo(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);up(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(),rs.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)};gt(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(){gt(this._listeners,(e,r)=>{this.platform.removeEventListener(this,r,e)}),this._listeners={},gt(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}});!G0(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=Vwe(e),c=DOe(e,this._lastEvent,n,u);n&&(this._lastEvent=null,At(a.onHover,[e,o,this],this),u&&At(a.onClick,[e,o,this],this));const l=!G0(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(bu,"defaults",rr),ae(bu,"instances",_v),ae(bu,"overrides",ic),ae(bu,"registry",_a),ae(bu,"version",AOe),ae(bu,"getChart",k8);function D8(){return gt(bu.instances,t=>t._plugins.invalidate())}function ROe(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+tr,n-tr),t.closePath(),t.clip()}function LOe(t){return NP(t,["outerStart","outerEnd","innerStart","innerEnd"])}function NOe(t,e,r,n){const i=LOe(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 Rr(u,0,Math.min(a,c))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:Rr(i.innerStart,0,s),innerEnd:Rr(i.innerEnd,0,s)}}function nl(t,e,r,n){return{x:r+t*Math.cos(e),y:n+t*Math.sin(e)}}function J0(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,L=(D+M)/2,N=L!==0?m*L/(L+n):m;p=(m-N)/2}const b=Math.max(.001,m*d-r/zt)/d,_=(m-b)/2,S=u+_+p,x=i-_-p,{outerStart:O,outerEnd:h,innerStart:v,innerEnd:g}=NOe(e,f,d,x-S),T=d-O,P=d-h,k=S+O/T,w=x-h/P,A=f+v,C=f+g,E=S+v/A,$=x-g/C;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=nl(P,w,s,o);t.arc(j.x,j.y,h,w,x+tr)}const M=nl(C,x,s,o);if(t.lineTo(M.x,M.y),g>0){const j=nl(C,$,s,o);t.arc(j.x,j.y,g,x+tr,$+Math.PI)}const L=(x-g/f+(S+v/f))/2;if(t.arc(s,o,f,x-g/f,L,!0),t.arc(s,o,f,L,S+v/f,!0),v>0){const j=nl(A,E,s,o);t.arc(j.x,j.y,v,E+Math.PI,S-tr)}const N=nl(T,S,s,o);if(t.lineTo(N.x,N.y),O>0){const j=nl(T,k,s,o);t.arc(j.x,j.y,O,S-tr,k)}}else{t.moveTo(s,o);const D=Math.cos(k)*d+s,M=Math.sin(k)*d+o;t.lineTo(D,M);const L=Math.cos(w)*d+s,N=Math.sin(w)*d+o;t.lineTo(L,N)}t.closePath()}function BOe(t,e,r,n,i){const{fullCircles:a,startAngle:s,circumference:o}=e;let u=e.endAngle;if(a){J0(t,e,r,n,u,i);for(let c=0;c=It||cp(s,u,c),_=bs(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>It?Math.floor(i/It):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(zt,i||0)),l=a*c;r.fillStyle=n.backgroundColor,r.strokeStyle=n.borderColor,BOe(r,this,l,s,o),FOe(r,this,l,s,o),r.restore()}}ae(oh,"id","arc"),ae(oh,"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(oh,"defaultRoutes",{backgroundColor:"backgroundColor"}),ae(oh,"descriptors",{_scriptable:!0,_indexable:r=>r!=="borderDash"});function a7(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 jOe(t,e,r){t.lineTo(r.x,r.y)}function HOe(t){return t.stepped?d1e:t.tension||t.cubicInterpolationMode==="monotone"?f1e:jOe}function s7(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[x(0)],t.moveTo(p.x,p.y)),f=0;f<=o;++f){if(p=i[x(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 uT(t){const e=t.options,r=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!r?VOe:zOe}function UOe(t){return t.stepped?U1e:t.tension||t.cubicInterpolationMode==="monotone"?G1e:vu}function GOe(t,e,r,n){let i=e._path;i||(i=e._path=new Path2D,e.path(i,r,n)&&i.closePath()),a7(t,e.options),t.stroke(i)}function WOe(t,e,r,n){const{segments:i,options:a}=e,s=uT(e);for(const o of i)a7(t,a,o.style),t.beginPath(),s(t,e,o,{start:r,end:r+n-1})&&t.closePath(),t.stroke()}const YOe=typeof Path2D=="function";function KOe(t,e,r,n){YOe&&!e.options.segment?GOe(t,e,r,n):WOe(t,e,r,n)}class mo extends Ls{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;L1e(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=J1e(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=GU(this,{property:r,start:i,end:i});if(!s.length)return;const o=[],u=UOe(n);let c,l;for(c=0,l=s.length;ce!=="borderDash"&&e!=="fill"});function I8(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 u7(t){return cT[t%cT.length]}function c7(t){return R8[t%R8.length]}function tTe(t,e){return t.borderColor=u7(e),t.backgroundColor=c7(e),++e}function rTe(t,e){return t.backgroundColor=t.data.map(()=>u7(e++)),e}function nTe(t,e){return t.backgroundColor=t.data.map(()=>c7(e++)),e}function iTe(t){let e=0;return(r,n)=>{const i=t.getDatasetMeta(n).controller;i instanceof Pu?e=rTe(r,e):i instanceof kh?e=nTe(r,e):i&&(e=tTe(r,e))}}function L8(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function aTe(t){return t&&(t.borderColor||t.backgroundColor)}var sTe={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&&(L8(n)||aTe(i)||a&&L8(a)))return;const s=iTe(t);n.forEach(s)}};function oTe(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[x],b=x);s[u++]=f,l=b}return s[u++]=t[c],s}function uTe(t,e,r,n){let i=0,a=0,s,o,u,c,l,d,f,p,m,b;const _=[],S=e+r-1,x=t[e].x,h=t[S].x-x;for(s=e;sb&&(b=c,f=s),i=(a*i+o.x)/++a;else{const g=s-1;if(!nt(d)&&!nt(f)){const T=Math.min(d,f),P=Math.max(d,f);T!==p&&T!==g&&_.push({...t[T],x:i}),P!==p&&P!==g&&_.push({...t[P],x:i})}s>0&&g!==p&&_.push(t[g]),_.push(o),l=v,a=0,m=b=c,d=f=p=s}}return _}function l7(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 N8(t){t.data.datasets.forEach(e=>{l7(e)})}function cTe(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=Rr(ys(e,a.axis,s).lo,0,r-1)),c?i=Rr(ys(e,a.axis,o).hi+1,n,r)-n:i=r-n,{start:n,count:i}}var lTe={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,r)=>{if(!r.enabled){N8(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(ah([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}=cTe(u,c);const p=r.threshold||4*n;if(f<=p){l7(i);return}nt(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=oTe(c,d,f,n,r);break;case"min-max":m=uTe(c,d,f,n);break;default:throw new Error(`Unsupported decimation algorithm '${r.algorithm}'`)}i._decimated=m})},destroy(t){N8(t)}};function dTe(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=VP(u,c,i);const l=lT(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=GU(e,l);for(const f of d){const p=lT(r,a[f.start],a[f.end],f.loop),m=UU(o,i,p);for(const b of m)s.push({source:b,target:f,start:{[r]:B8(l,p,"start",Math.max)},end:{[r]:B8(l,p,"end",Math.min)}})}}return s}function lT(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 fTe(t,e){const{x:r=null,y:n=null}=t||{},i=e.points,a=[];return e.segments.forEach(({start:s,end:o})=>{o=VP(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 VP(t,e,r){for(;e>t;e--){const n=r[e];if(!isNaN(n.x)&&!isNaN(n.y))break}return e}function B8(t,e,r,n){return t&&e?n(t[r],e[r]):t?t[r]:e?e[r]:0}function d7(t,e){let r=[],n=!1;return Dt(t)?(n=!0,r=t):r=fTe(t,e),r.length?new mo({points:r,options:{tension:0},_loop:n,_fullLoop:n}):null}function F8(t){return t&&t.fill!==!1}function hTe(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(!er(i))return i;if(s=t[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function pTe(t,e,r){const n=bTe(t);if(Xe(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return er(i)&&Math.floor(i)===i?mTe(n[0],e,i,r):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function mTe(t,e,r,n){return(t==="-"||t==="+")&&(r=e+r),r===e||r<0||r>=n?!1:r}function gTe(t,e){let r=null;return t==="start"?r=e.bottom:t==="end"?r=e.top:Xe(t)?r=e.getPixelForValue(t.value):e.getBasePixel&&(r=e.getBasePixel()),r}function vTe(t,e,r){let n;return t==="start"?n=r:t==="end"?n=e.options.reverse?e.min:e.max:Xe(t)?n=t.value:n=e.getBaseValue(),n}function bTe(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 yTe(t){const{scale:e,index:r,line:n}=t,i=[],a=n.segments,s=n.points,o=_Te(e,r);o.push(d7({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&&T1(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;F8(a)&&T1(t.ctx,a,t.chartArea)}},beforeDatasetDraw(t,e,r){const n=e.meta.$filler;!F8(n)||r.drawTime!=="beforeDatasetDraw"||T1(t.ctx,n,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const V8=(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)}},$Te=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class U8 extends Ls{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=At(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=Sr(n.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:u}=V8(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:x,itemHeight:O}=kTe(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:x,height:O},f=Math.max(f,x),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=zl(a,this.left,this.width);if(this.isHorizontal()){let o=0,u=Wr(n,this.left+i,this.right-this.lineWidths[o]);for(const c of r)o!==c.row&&(o=c.row,u=Wr(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=Wr(n,this.top+e+i,this.bottom-this.columnSizes[o].height);for(const c of r)c.col!==o&&(o=c.col,u=Wr(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;Py(e,this),this._draw(),Cy(e)}}_draw(){const{options:e,columnSizes:r,lineWidths:n,ctx:i}=this,{align:a,labels:s}=e,o=rr.color,u=zl(e.rtl,this.left,this.width),c=Sr(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:_}=V8(s,d),S=function(g,T,P){if(isNaN(m)||m<=0||isNaN(b)||b<0)return;i.save();const k=Le(P.lineWidth,1);if(i.fillStyle=Le(P.fillStyle,o),i.lineCap=Le(P.lineCap,"butt"),i.lineDashOffset=Le(P.lineDashOffset,0),i.lineJoin=Le(P.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=Le(P.strokeStyle,o),i.setLineDash(Le(P.lineDash,[])),s.usePointStyle){const w={radius:b*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:k},A=u.xPlus(g,m/2),C=T+f;kU(i,w,A,C,s.pointStyleWidth&&m)}else{const w=T+Math.max((d-b)/2,0),A=u.leftForLtr(g,m),C=Lu(P.borderRadius);i.beginPath(),Object.values(C).some(E=>E!==0)?lp(i,{x:A,y:w,w:m,h:b,radius:C}):i.rect(A,w,m,b),i.fill(),k!==0&&i.stroke()}i.restore()},x=function(g,T,P){ac(i,P.text,g,T+_/2,c,{strikethrough:P.hidden,textAlign:u.textAlign(P.textAlign)})},O=this.isHorizontal(),h=this._computeTitleHeight();O?p={x:Wr(a,this.left+l,this.right-n[0]),y:this.top+l+h,line:0}:p={x:this.left+l,y:Wr(a,this.top+h+l,this.bottom-r[0].height),line:0},HU(this.ctx,e.textDirection);const v=_+l;this.legendItems.forEach((g,T)=>{i.strokeStyle=g.fontColor,i.fillStyle=g.fontColor;const P=i.measureText(g.text).width,k=u.textAlign(g.textAlign||(g.textAlign=s.textAlign)),w=m+f+P;let A=p.x,C=p.y;u.setWidth(this.width),O?T>0&&A+w+l>this.right&&(C=p.y+=v,p.line++,A=p.x=Wr(a,this.left+l,this.right-n[p.line])):T>0&&C+v>this.bottom&&(A=p.x=A+r[p.line].width+l,p.line++,C=p.y=Wr(a,this.top+h+l,this.bottom-r[p.line].height));const E=u.x(A);if(S(E,C,g),A=e1e(k,A+m+f,O?A+w:this.right,e.rtl),x(u.x(A),C,g),O)p.x+=w+l;else if(typeof g.text!="string"){const $=c.lineHeight;p.y+=h7(g,$)+l}else p.y+=v}),zU(this.ctx,e.textDirection)}drawTitle(){const e=this.options,r=e.title,n=Sr(r.font),i=tn(r.padding);if(!r.display)return;const a=zl(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=Wr(e.align,d,this.right-f);else{const m=this.columnSizes.reduce((b,_)=>Math.max(b,_.height),0);l=c+Wr(e.align,this.top,this.bottom-m-e.labels.padding-this._computeTitleHeight())}const p=Wr(o,d,d+f);s.textAlign=a.textAlign(RP(o)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,ac(s,r.text,p,l,n)}_computeTitleHeight(){const e=this.options.title,r=Sr(e.font),n=tn(e.padding);return e.display?r.lineHeight+n.height:0}_getLegendItemAt(e,r){let n,i,a;if(bs(e,this.left,this.right)&&bs(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 ITe(t,e,r){let n=t;return typeof e.text!="string"&&(n=h7(e,r)),n}function h7(t,e){const r=t.text?t.text.length:0;return e*r}function RTe(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var LTe={id:"legend",_element:U8,start(t,e,r){const n=t.legend=new U8({ctx:t.ctx,options:r,chart:t});qr.configure(t,n,r),qr.addBox(t,n)},stop(t){qr.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,r){const n=t.legend;qr.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=tn(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 UP extends Ls{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=Dt(n.text)?n.text.length:1;this._padding=tn(n.padding);const a=i*Sr(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=Wr(o,n,a),d=r+e,c=a-n):(s.position==="left"?(l=n+e,d=Wr(o,i,r),u=zt*-.5):(l=a-e,d=Wr(o,r,i),u=zt*.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=Sr(r.font),a=n.lineHeight/2+this._padding.top,{titleX:s,titleY:o,maxWidth:u,rotation:c}=this._drawArgs(a);ac(e,r.text,0,0,n,{color:r.color,maxWidth:u,rotation:c,textAlign:RP(r.align),textBaseline:"middle",translation:[s,o]})}}function NTe(t,e){const r=new UP({ctx:t.ctx,options:e,chart:t});qr.configure(t,r,e),qr.addBox(t,r),t.titleBlock=r}var BTe={id:"title",_element:UP,start(t,e,r){NTe(t,r)},stop(t){const e=t.titleBlock;qr.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,r){const n=t.titleBlock;qr.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 FTe={id:"subtitle",start(t,e,r){const n=new UP({ctx:t.ctx,options:r,chart:t});qr.configure(t,n,r),qr.addBox(t,n),pg.set(t,n)},stop(t){qr.removeBox(t,pg.get(t)),pg.delete(t)},beforeUpdate(t,e,r){const n=pg.get(t);qr.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 uh={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 jTe(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 G8(t,e){const r=t.chart.ctx,{body:n,footer:i,title:a}=t,{boxWidth:s,boxHeight:o}=e,u=Sr(e.bodyFont),c=Sr(e.titleFont),l=Sr(e.footerFont),d=a.length,f=i.length,p=n.length,m=tn(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 x=0;const O=function(h){_=Math.max(_,r.measureText(h).width+x)};return r.save(),r.font=c.string,gt(t.title,O),r.font=u.string,gt(t.beforeBody.concat(t.afterBody),O),x=e.displayColors?s+2+e.boxPadding:0,gt(n,h=>{gt(h.before,O),gt(h.lines,O),gt(h.after,O)}),x=0,r.font=l.string,gt(t.footer,O),r.restore(),_+=m.width,{width:_,height:b}}function HTe(t,e){const{y:r,height:n}=e;return rt.height-n/2?"bottom":"center"}function zTe(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 VTe(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"),zTe(c,t,e,r)&&(c="center"),c}function W8(t,e,r){const n=r.yAlign||e.yAlign||HTe(t,r);return{xAlign:r.xAlign||e.xAlign||VTe(t,e,r,n),yAlign:n}}function UTe(t,e){let{x:r,width:n}=t;return e==="right"?r-=n:e==="center"&&(r-=n/2),r}function GTe(t,e,r){let{y:n,height:i}=t;return e==="top"?n+=r:e==="bottom"?n-=i+r:n-=i/2,n}function Y8(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}=Lu(s);let m=UTe(e,o);const b=GTe(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:Rr(m,0,n.width-e.width),y:Rr(b,0,n.height-e.height)}}function mg(t,e,r){const n=tn(r.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-n.right:t.x+n.left}function K8(t){return ga([],ns(t))}function WTe(t,e,r){return Yo(t,{tooltip:e,tooltipItems:r,type:"tooltip"})}function q8(t,e){const r=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return r?t.override(r):t}const p7={beforeTitle:es,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"?p7[e].call(r,n):i}class dT extends Ls{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 WU(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=WTe(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,r){const{callbacks:n}=r,i=wn(n,"beforeTitle",this,e),a=wn(n,"title",this,e),s=wn(n,"afterTitle",this,e);let o=[];return o=ga(o,ns(i)),o=ga(o,ns(a)),o=ga(o,ns(s)),o}getBeforeBody(e,r){return K8(wn(r.callbacks,"beforeBody",this,e))}getBody(e,r){const{callbacks:n}=r,i=[];return gt(e,a=>{const s={before:[],lines:[],after:[]},o=q8(n,a);ga(s.before,ns(wn(o,"beforeLabel",this,a))),ga(s.lines,wn(o,"label",this,a)),ga(s.after,ns(wn(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,r){return K8(wn(r.callbacks,"afterBody",this,e))}getFooter(e,r){const{callbacks:n}=r,i=wn(n,"beforeFooter",this,e),a=wn(n,"footer",this,e),s=wn(n,"afterFooter",this,e);let o=[];return o=ga(o,ns(i)),o=ga(o,ns(a)),o=ga(o,ns(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))),gt(o,l=>{const d=q8(e.callbacks,l);i.push(wn(d,"labelColor",this,l)),a.push(wn(d,"labelPointStyle",this,l)),s.push(wn(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=uh[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=G8(this,n),c=Object.assign({},o,u),l=W8(this.chart,n,c),d=Y8(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}=Lu(o),{x:f,y:p}=e,{width:m,height:b}=r;let _,S,x,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),x=_):(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,x=S+s):(O=p+b,h=O+s,_=S+s,x=S-s),v=O),{x1:_,x2:S,x3:x,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=zl(n.rtl,this.x,this.width);for(e.x=mg(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=Sr(n.titleFont),o=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,u=0;ux!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,lp(e,{x:b,y:m,w:c,h:u,radius:S}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),lp(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=Sr(n.bodyFont);let f=d.lineHeight,p=0;const m=zl(n.rtl,this.x,this.width),b=function(P){r.fillText(P,m.x(e.x+p),e.y+f/2),e.y+=f+a},_=m.textAlign(s);let S,x,O,h,v,g,T;for(r.textAlign=s,r.textBaseline="middle",r.font=d.string,e.x=mg(this,_,n),r.fillStyle=n.bodyColor,gt(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=uh[e.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=G8(this,e),u=Object.assign({},s,this._size),c=W8(r,e,u),l=Y8(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=tn(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),HU(e,r.textDirection),a.y+=s.top,this.drawTitle(a,e,r),this.drawBody(a,e,r),this.drawFooter(a,e,r),zU(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=!G0(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||!G0(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=uh[a.position].call(this,e,r);return s!==!1&&(n!==s.x||i!==s.y)}}ae(dT,"positioners",uh);var YTe={id:"tooltip",_element:dT,positioners:uh,afterInit(t,e,r){r&&(t.tooltip=new dT({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:p7},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"]},KTe=Object.freeze({__proto__:null,Colors:sTe,Decimation:lTe,Filler:MTe,Legend:LTe,SubTitle:FTe,Title:BTe,Tooltip:YTe});const qTe=(t,e,r,n)=>(typeof e=="string"?(r=t.push(e)-1,n.unshift({index:r,label:e})):isNaN(e)&&(r=null),r);function XTe(t,e,r,n){const i=t.indexOf(e);if(i===-1)return qTe(t,e,r,n);const a=t.lastIndexOf(e);return i!==a?r:i}const JTe=(t,e)=>t===null?null:Rr(Math.round(t),0,e);function X8(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(fT,"id","category"),ae(fT,"defaults",{ticks:{callback:X8}});function ZTe(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=!nt(s),x=!nt(o),O=!nt(c),h=(_-b)/(d+1);let v=UR((_-b)/m/p)*p,g,T,P,k;if(v<1e-14&&!S&&!x)return[{value:b},{value:_}];k=Math.ceil(_/v)-Math.floor(b/v),k>m&&(v=UR(k*v/m/p)*p),nt(u)||(g=Math.pow(10,u),v=Math.ceil(v*g)/g),i==="ticks"?(T=Math.floor(b/v)*v,P=Math.ceil(_/v)*v):(T=b,P=_),S&&x&&a&&Ywe((o-s)/a,v/1e3)?(k=Math.round(Math.min((o-s)/v,l)),v=(o-s)/k,T=s,P=o):O?(T=S?s:T,P=x?o:P,k=c-1,v=(P-T)/k):(k=(P-T)/v,Ah(k,Math.round(k),v/1e3)?k=Math.round(k):k=Math.ceil(k));const w=Math.max(GR(v),GR(T));g=Math.pow(10,nt(u)?w:u),T=Math.round(T*g)/g,P=Math.round(P*g)/g;let A=0;for(S&&(f&&T!==s?(r.push({value:s}),To)break;r.push({value:C})}return x&&f&&P!==o?r.length&&Ah(r[r.length-1].value,o,J8(o,h,t))?r[r.length-1].value=o:r.push({value:o}):(!x||P===o)&&r.push({value:P}),r}function J8(t,e,{horizontal:r,minRotation:n}){const i=Bi(n),a=(r?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}class Z0 extends Sc{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 nt(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=La(i),c=La(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=ZTe(i,a);return e.bounds==="ticks"&&OU(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 Up(e,this.chart.options.locale,this.options.ticks.format)}}class hT extends Z0{determineDataLimits(){const{min:e,max:r}=this.getMinMax(!0);this.min=er(e)?e:0,this.max=er(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),r=e?this.width:this.height,n=Bi(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(hT,"id","linear"),ae(hT,"defaults",{ticks:{callback:xy.formatters.numeric}});const fp=t=>Math.floor(po(t)),fu=(t,e)=>Math.pow(10,fp(t)+e);function Z8(t){return t/Math.pow(10,fp(t))===1}function Q8(t,e,r){const n=Math.pow(10,r),i=Math.floor(t/n);return Math.ceil(e/n)-i}function QTe(t,e){const r=e-t;let n=fp(r);for(;Q8(t,e,n)>10;)n++;for(;Q8(t,e,n)<10;)n--;return Math.min(n,fp(t))}function eEe(t,{min:e,max:r}){e=Gn(t.min,e);const n=[],i=fp(e);let a=QTe(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=Gn(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=Gn(t.max,f);return n.push({value:p,major:Z8(p),significand:d}),n}class pT extends Sc{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,r){const n=Z0.prototype.parse.apply(this,[e,r]);if(n===0){this._zero=!0;return}return er(n)&&n>0?n:null}determineDataLimits(){const{min:e,max:r}=this.getMinMax(!0);this.min=er(e)?Math.max(0,e):null,this.max=er(r)?Math.max(0,r):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!er(this._userMin)&&(this.min=e===fu(this.min,0)?fu(this.min,-1):fu(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(fu(n,-1)),s(fu(i,1)))),n<=0&&a(fu(i,-1)),i<=0&&s(fu(n,1)),this.min=n,this.max=i}buildTicks(){const e=this.options,r={min:this._userMin,max:this._userMax},n=eEe(r,this);return e.bounds==="ticks"&&OU(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":Up(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=po(e),this._valueRange=po(this.max)-po(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(po(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const r=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+r*this._valueRange)}}ae(pT,"id","logarithmic"),ae(pT,"defaults",{ticks:{callback:xy.formatters.logarithmic,major:{enabled:!0}}});function mT(t){const e=t.ticks;if(e.display&&t.display){const r=tn(e.backdropPadding);return Le(e.font&&e.font.size,rr.font.size)+r.height}return 0}function tEe(t,e,r){return r=Dt(r)?r:[r],{w:l1e(t,e.string,r),h:r.length*e.lineHeight}}function e3(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 rEe(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?zt/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 iEe(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(DP(qn(u.angle+tr))),l=cEe(u.y,o.h,c),d=oEe(c),f=uEe(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 aEe(t,e){if(!e)return!0;const{left:r,top:n,right:i,bottom:a}=t;return!(_s({x:r,y:n},e)||_s({x:r,y:a},e)||_s({x:i,y:n},e)||_s({x:i,y:a},e))}function sEe(t,e,r){const n=[],i=t._pointLabels.length,a=t.options,{centerPointLabels:s,display:o}=a.pointLabels,u={extra:mT(a)/2,additionalAngle:s?zt/i:0};let c;for(let l=0;l270||r<90)&&(t-=e),t}function lEe(t,e,r){const{left:n,top:i,right:a,bottom:s}=r,{backdropColor:o}=e;if(!nt(o)){const u=Lu(e.borderRadius),c=tn(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(),lp(t,{x:l,y:d,w:f,h:p,radius:u}),t.fill()):t.fillRect(l,d,f,p)}}function dEe(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));lEe(r,s,a);const o=Sr(s.font),{x:u,y:c,textAlign:l}=a;ac(r,t._pointLabels[i],u,c+o.lineHeight/2,o,{color:s.color,textAlign:l,textBaseline:"middle"})}}function m7(t,e,r,n){const{ctx:i}=t;if(r)i.arc(t.xCenter,t.yCenter,e,0,It);else{let a=t.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let s=1;s{const i=At(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?rEe(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=It/(this._pointLabels.length||1),n=this.options.startAngle||0;return qn(e*r+Bi(n))}getDistanceFromCenterForValue(e){if(nt(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(nt(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);fEe(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=Sr(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=tn(c.backdropPadding);e.fillRect(-s/2-d.left,-a-l.size/2-d.top,s+d.width,l.size+d.height)}ac(e,o.label,0,-a,l,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}ae(ch,"id","radialLinear"),ae(ch,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:xy.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),ae(ch,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ae(ch,"descriptors",{angleLines:{_fallback:"grid"}});const My={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}},Pn=Object.keys(My);function t3(t,e){return t-e}function r3(t,e){if(nt(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)),er(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(i&&(s=i==="week"&&(gd(a)||a===!0)?r.startOf(s,"isoWeek",a):r.startOf(s,i)),+s)}function n3(t,e,r,n){const i=Pn.length;for(let a=Pn.indexOf(t);a=Pn.indexOf(r);a--){const s=Pn[a];if(My[s].common&&t._adapter.diff(i,n,s)>=e-1)return s}return Pn[r?Pn.indexOf(r):0]}function mEe(t){for(let e=Pn.indexOf(t)+1,r=Pn.length;e=e?r[n]:r[i];t[a]=!0}}function gEe(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 a3(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=Rr(r,0,s),n=Rr(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||n3(a.minUnit,r,n,this._getLabelCapacity(r)),o=Le(i.ticks.stepSize,1),u=s==="week"?a.isoWeekday:!1,c=gd(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 At(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}=ys(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}=ys(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 gT extends hp{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=gg(r,this.min),this._tableRange=gg(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(gg(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const r=this._offsets,n=this.getDecimalForPixel(e)/r.factor-r.end;return gg(this._table,n*this._tableRange+this._minPos,!0)}}ae(gT,"id","timeseries"),ae(gT,"defaults",hp.defaults);var vEe=Object.freeze({__proto__:null,CategoryScale:fT,LinearScale:hT,LogarithmicScale:pT,RadialLinearScale:ch,TimeScale:hp,TimeSeriesScale:gT});const zNe=[ESe,eTe,KTe,vEe];function Lt(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=Lt(e);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function GP(t,e){ye(2,arguments);var r=xe(t),n=Lt(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 Wp(t,e){ye(2,arguments);var r=xe(t).getTime(),n=Lt(e);return new Date(r+n)}var bEe=36e5;function yEe(t,e){ye(2,arguments);var r=Lt(e);return Wp(t,r*bEe)}var _Ee={};function Ko(){return _Ee}function s3(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=Ko(),d=Lt((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 $y=6e4,ky=36e5,AEe=1e3;function MEe(t){return ye(1,arguments),t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function v7(t){if(ye(1,arguments),!MEe(t)&&typeof t!="number")return!1;var e=xe(t);return!isNaN(Number(e))}function $Ee(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 kEe(t,e){ye(2,arguments);var r=xe(t),n=xe(e);return r.getFullYear()-n.getFullYear()}function o3(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 b7(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=o3(r,n),a=Math.abs(SEe(r,n));r.setDate(r.getDate()-i*a);var s=+(o3(r,n)===-i),o=i*(a-s);return o===0?0:o}function Dy(t,e){return ye(2,arguments),xe(t).getTime()-xe(e).getTime()}var u3={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},DEe="trunc";function Yp(t){return t?u3[t]:u3[DEe]}function IEe(t,e,r){ye(2,arguments);var n=Dy(t,e)/ky;return Yp(r==null?void 0:r.roundingMethod)(n)}function REe(t,e,r){ye(2,arguments);var n=Dy(t,e)/$y;return Yp(r==null?void 0:r.roundingMethod)(n)}function y7(t){ye(1,arguments);var e=xe(t);return e.setHours(23,59,59,999),e}function _7(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 LEe(t){ye(1,arguments);var e=xe(t);return y7(e).getTime()===_7(e).getTime()}function w7(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=Dh(r,n),a=Math.abs($Ee(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=Dh(r,n)===-i;LEe(xe(t))&&a===1&&Dh(t,n)===1&&(o=!1),s=i*(a-Number(o))}return s===0?0:s}function NEe(t,e,r){ye(2,arguments);var n=w7(t,e)/3;return Yp(r==null?void 0:r.roundingMethod)(n)}function BEe(t,e,r){ye(2,arguments);var n=Dy(t,e)/1e3;return Yp(r==null?void 0:r.roundingMethod)(n)}function FEe(t,e,r){ye(2,arguments);var n=b7(t,e)/7;return Yp(r==null?void 0:r.roundingMethod)(n)}function jEe(t,e){ye(2,arguments);var r=xe(t),n=xe(e),i=Dh(r,n),a=Math.abs(kEe(r,n));r.setFullYear(1584),n.setFullYear(1584);var s=Dh(r,n)===-i,o=i*(a-Number(s));return o===0?0:o}function HEe(t){ye(1,arguments);var e=xe(t);return e.setSeconds(0,0),e}function zEe(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 VEe(t){ye(1,arguments);var e=xe(t);return e.setDate(1),e.setHours(0,0,0,0),e}function UEe(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 GEe(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 WEe(t){ye(1,arguments);var e=xe(t);return e.setMinutes(59,59,999),e}function YEe(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=Ko(),d=Lt((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 QEe(t){ye(1,arguments);var e=O7(t),r=new Date(0);r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0);var n=yd(r);return n}var exe=6048e5;function T7(t){ye(1,arguments);var e=xe(t),r=yd(e).getTime()-QEe(e).getTime();return Math.round(r/exe)+1}function sc(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=Ko(),d=Lt((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=sc(m,e),_=new Date(0);_.setUTCFullYear(d,0,p),_.setUTCHours(0,0,0,0);var S=sc(_,e);return l.getTime()>=b.getTime()?d+1:l.getTime()>=S.getTime()?d:d-1}function txe(t,e){var r,n,i,a,s,o,u,c;ye(1,arguments);var l=Ko(),d=Lt((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=WP(t,e),p=new Date(0);p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0);var m=sc(p,e);return m}var rxe=6048e5;function E7(t,e){ye(1,arguments);var r=xe(t),n=sc(r,e).getTime()-txe(r,e).getTime();return Math.round(n/rxe)+1}function mt(t,e){for(var r=t<0?"-":"",n=Math.abs(t).toString();n.length0?r:1-r;return mt(e==="yy"?n%100:n,e.length)},M:function(t,e){var r=t.getUTCMonth();return e==="M"?String(r+1):mt(r+1,2)},d:function(t,e){return mt(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 mt(t.getUTCHours()%12||12,e.length)},H:function(t,e){return mt(t.getUTCHours(),e.length)},m:function(t,e){return mt(t.getUTCMinutes(),e.length)},s:function(t,e){return mt(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 mt(i,e.length)}};const qs=nxe;var il={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ixe={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 qs.y(t,e)},Y:function(t,e,r,n){var i=WP(t,n),a=i>0?i:1-i;if(e==="YY"){var s=a%100;return mt(s,2)}return e==="Yo"?r.ordinalNumber(a,{unit:"year"}):mt(a,e.length)},R:function(t,e){var r=O7(t);return mt(r,e.length)},u:function(t,e){var r=t.getUTCFullYear();return mt(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 mt(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 mt(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 qs.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 mt(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=E7(t,n);return e==="wo"?r.ordinalNumber(i,{unit:"week"}):mt(i,e.length)},I:function(t,e,r){var n=T7(t);return e==="Io"?r.ordinalNumber(n,{unit:"week"}):mt(n,e.length)},d:function(t,e,r){return e==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):qs.d(t,e)},D:function(t,e,r){var n=ZEe(t);return e==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):mt(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 mt(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 mt(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 mt(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=il.noon:n===0?i=il.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=il.evening:n>=12?i=il.afternoon:n>=4?i=il.morning:i=il.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 qs.h(t,e)},H:function(t,e,r){return e==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):qs.H(t,e)},K:function(t,e,r){var n=t.getUTCHours()%12;return e==="Ko"?r.ordinalNumber(n,{unit:"hour"}):mt(n,e.length)},k:function(t,e,r){var n=t.getUTCHours();return n===0&&(n=24),e==="ko"?r.ordinalNumber(n,{unit:"hour"}):mt(n,e.length)},m:function(t,e,r){return e==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):qs.m(t,e)},s:function(t,e,r){return e==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):qs.s(t,e)},S:function(t,e){return qs.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 l3(a);case"XXXX":case"XX":return yu(a);case"XXXXX":case"XXX":default:return yu(a,":")}},x:function(t,e,r,n){var i=n._originalDate||t,a=i.getTimezoneOffset();switch(e){case"x":return l3(a);case"xxxx":case"xx":return yu(a);case"xxxxx":case"xxx":default:return yu(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"+c3(a,":");case"OOOO":default:return"GMT"+yu(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"+c3(a,":");case"zzzz":default:return"GMT"+yu(a,":")}},t:function(t,e,r,n){var i=n._originalDate||t,a=Math.floor(i.getTime()/1e3);return mt(a,e.length)},T:function(t,e,r,n){var i=n._originalDate||t,a=i.getTime();return mt(a,e.length)}};function c3(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+mt(a,2)}function l3(t,e){if(t%60===0){var r=t>0?"-":"+";return r+mt(Math.abs(t)/60,2)}return yu(t,e)}function yu(t,e){var r=e||"",n=t>0?"-":"+",i=Math.abs(t),a=mt(Math.floor(i/60),2),s=mt(i%60,2);return n+a+r+s}const axe=ixe;var d3=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"})}},x7=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"})}},sxe=function(t,e){var r=t.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return d3(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}}",d3(n,e)).replace("{{time}}",x7(i,e))},oxe={p:x7,P:sxe};const bT=oxe;var uxe=["D","DD"],cxe=["YY","YYYY"];function P7(t){return uxe.indexOf(t)!==-1}function C7(t){return cxe.indexOf(t)!==-1}function eb(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 lxe={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"}},dxe=function(t,e,r){var n,i=lxe[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 fxe=dxe;function E1(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 hxe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},pxe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},mxe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},gxe={date:E1({formats:hxe,defaultWidth:"full"}),time:E1({formats:pxe,defaultWidth:"full"}),dateTime:E1({formats:mxe,defaultWidth:"full"})};const vxe=gxe;var bxe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},yxe=function(t,e,r,n){return bxe[t]};const _xe=yxe;function If(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 wxe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Sxe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Oxe={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"]},Txe={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"]},Exe={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"}},xxe={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"}},Pxe=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"},Cxe={ordinalNumber:Pxe,era:If({values:wxe,defaultWidth:"wide"}),quarter:If({values:Sxe,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:If({values:Oxe,defaultWidth:"wide"}),day:If({values:Txe,defaultWidth:"wide"}),dayPeriod:If({values:Exe,defaultWidth:"wide",formattingValues:xxe,defaultFormattingWidth:"wide"})};const Axe=Cxe;function Rf(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)?$xe(o,function(d){return d.test(s)}):Mxe(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 Mxe(t,e){for(var r in t)if(t.hasOwnProperty(r)&&e(t[r]))return r}function $xe(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 Dxe=/^(\d+)(th|st|nd|rd)?/i,Ixe=/\d+/i,Rxe={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},Lxe={any:[/^b/i,/^(a|c)/i]},Nxe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Bxe={any:[/1/i,/2/i,/3/i,/4/i]},Fxe={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},jxe={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]},Hxe={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},zxe={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]},Vxe={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},Uxe={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}},Gxe={ordinalNumber:kxe({matchPattern:Dxe,parsePattern:Ixe,valueCallback:function(t){return parseInt(t,10)}}),era:Rf({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:Rf({matchPatterns:Nxe,defaultMatchWidth:"wide",parsePatterns:Bxe,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Rf({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),day:Rf({matchPatterns:Hxe,defaultMatchWidth:"wide",parsePatterns:zxe,defaultParseWidth:"any"}),dayPeriod:Rf({matchPatterns:Vxe,defaultMatchWidth:"any",parsePatterns:Uxe,defaultParseWidth:"any"})};const Wxe=Gxe;var Yxe={code:"en-US",formatDistance:fxe,formatLong:vxe,formatRelative:_xe,localize:Axe,match:Wxe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const A7=Yxe;var Kxe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qxe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xxe=/^'([^]*?)'?$/,Jxe=/''/g,Zxe=/[a-zA-Z]/;function Qxe(t,e,r){var n,i,a,s,o,u,c,l,d,f,p,m,b,_,S,x,O,h;ye(2,arguments);var v=String(e),g=Ko(),T=(n=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:g.locale)!==null&&n!==void 0?n:A7,P=Lt((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(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Lt((p=(m=(b=(_=r==null?void 0:r.weekStartsOn)!==null&&_!==void 0?_:r==null||(S=r.locale)===null||S===void 0||(x=S.options)===null||x===void 0?void 0:x.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(!v7(w))throw new RangeError("Invalid time value");var A=Q0(w),C=S7(w,A),E={firstWeekContainsDate:P,weekStartsOn:k,locale:T,_originalDate:w},$=v.match(qxe).map(function(D){var M=D[0];if(M==="p"||M==="P"){var L=bT[M];return L(D,T.formatLong)}return D}).join("").match(Kxe).map(function(D){if(D==="''")return"'";var M=D[0];if(M==="'")return ePe(D);var L=axe[M];if(L)return!(r!=null&&r.useAdditionalWeekYearTokens)&&C7(D)&&eb(D,e,String(t)),!(r!=null&&r.useAdditionalDayOfYearTokens)&&P7(D)&&eb(D,e,String(t)),L(C,D,T.localize,E);if(M.match(Zxe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return D}).join("");return $}function ePe(t){var e=t.match(Xxe);return e?e[1].replace(Jxe,"'"):t}function tPe(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 tb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var rPe=10;class M7{constructor(){tb(this,"priority",void 0),tb(this,"subPriority",0)}validate(e,r){return!0}}class nPe extends M7{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 iPe extends M7{constructor(){super(...arguments),tb(this,"priority",rPe),tb(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 x1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class lt{constructor(){x1(this,"incompatibleTokens",void 0),x1(this,"priority",void 0),x1(this,"subPriority",void 0)}run(e,r,n,i){var a=this.parse(e,r,n,i);return a?{setter:new nPe(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,r,n){return!0}}function f3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class aPe extends lt{constructor(){super(...arguments),f3(this,"priority",140),f3(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 fr={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}/},Ca={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 hr(t,e){return t&&{value:e(t.value),rest:t.rest}}function Kt(t,e){var r=e.match(t);return r?{value:parseInt(r[0],10),rest:e.slice(r[0].length)}:null}function Aa(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*$y+s*AEe),rest:e.slice(r[0].length)}}function $7(t){return Kt(fr.anyDigitsSigned,t)}function nr(t,e){switch(t){case 1:return Kt(fr.singleDigit,e);case 2:return Kt(fr.twoDigits,e);case 3:return Kt(fr.threeDigits,e);case 4:return Kt(fr.fourDigits,e);default:return Kt(new RegExp("^\\d{1,"+t+"}"),e)}}function rb(t,e){switch(t){case 1:return Kt(fr.singleDigitSigned,e);case 2:return Kt(fr.twoDigitsSigned,e);case 3:return Kt(fr.threeDigitsSigned,e);case 4:return Kt(fr.fourDigitsSigned,e);default:return Kt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function YP(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 k7(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 D7(t){return t%400===0||t%4===0&&t%100!==0}function h3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class sPe extends lt{constructor(){super(...arguments),h3(this,"priority",130),h3(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 hr(nr(4,e),i);case"yo":return hr(n.ordinalNumber(e,{unit:"year"}),i);default:return hr(nr(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=k7(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 p3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class oPe extends lt{constructor(){super(...arguments),p3(this,"priority",130),p3(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 hr(nr(4,e),i);case"Yo":return hr(n.ordinalNumber(e,{unit:"year"}),i);default:return hr(nr(r.length,e),i)}}validate(e,r){return r.isTwoDigitYear||r.year>0}set(e,r,n,i){var a=WP(e,i);if(n.isTwoDigitYear){var s=k7(n.year,a);return e.setUTCFullYear(s,0,i.firstWeekContainsDate),e.setUTCHours(0,0,0,0),sc(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),sc(e,i)}}function m3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class uPe extends lt{constructor(){super(...arguments),m3(this,"priority",130),m3(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,r){return rb(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),yd(i)}}function g3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class cPe extends lt{constructor(){super(...arguments),g3(this,"priority",130),g3(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,r){return rb(r==="u"?4:r.length,e)}set(e,r,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}function v3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class lPe extends lt{constructor(){super(...arguments),v3(this,"priority",120),v3(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 nr(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 b3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class dPe extends lt{constructor(){super(...arguments),b3(this,"priority",120),b3(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 nr(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 y3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class fPe extends lt{constructor(){super(...arguments),y3(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),y3(this,"priority",110)}parse(e,r,n){var i=function(a){return a-1};switch(r){case"M":return hr(Kt(fr.month,e),i);case"MM":return hr(nr(2,e),i);case"Mo":return hr(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 _3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class hPe extends lt{constructor(){super(...arguments),_3(this,"priority",110),_3(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 hr(Kt(fr.month,e),i);case"LL":return hr(nr(2,e),i);case"Lo":return hr(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 pPe(t,e,r){ye(2,arguments);var n=xe(t),i=Lt(e),a=E7(n,r)-i;return n.setUTCDate(n.getUTCDate()-a*7),n}function w3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class mPe extends lt{constructor(){super(...arguments),w3(this,"priority",100),w3(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,r,n){switch(r){case"w":return Kt(fr.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return nr(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n,i){return sc(pPe(e,n,i),i)}}function gPe(t,e){ye(2,arguments);var r=xe(t),n=Lt(e),i=T7(r)-n;return r.setUTCDate(r.getUTCDate()-i*7),r}function S3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class vPe extends lt{constructor(){super(...arguments),S3(this,"priority",100),S3(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 Kt(fr.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return nr(r.length,e)}}validate(e,r){return r>=1&&r<=53}set(e,r,n){return yd(gPe(e,n))}}function P1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bPe=[31,28,31,30,31,30,31,31,30,31,30,31],yPe=[31,29,31,30,31,30,31,31,30,31,30,31];class _Pe extends lt{constructor(){super(...arguments),P1(this,"priority",90),P1(this,"subPriority",1),P1(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,r,n){switch(r){case"d":return Kt(fr.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return nr(r.length,e)}}validate(e,r){var n=e.getUTCFullYear(),i=D7(n),a=e.getUTCMonth();return i?r>=1&&r<=yPe[a]:r>=1&&r<=bPe[a]}set(e,r,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}}function C1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class wPe extends lt{constructor(){super(...arguments),C1(this,"priority",90),C1(this,"subpriority",1),C1(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 Kt(fr.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return nr(r.length,e)}}validate(e,r){var n=e.getUTCFullYear(),i=D7(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 KP(t,e,r){var n,i,a,s,o,u,c,l;ye(2,arguments);var d=Ko(),f=Lt((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=Lt(e),b=p.getUTCDay(),_=m%7,S=(_+7)%7,x=(S=0&&r<=6}set(e,r,n,i){return e=KP(e,n,i),e.setUTCHours(0,0,0,0),e}}function T3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class OPe extends lt{constructor(){super(...arguments),T3(this,"priority",90),T3(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 hr(nr(r.length,e),a);case"eo":return hr(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=KP(e,n,i),e.setUTCHours(0,0,0,0),e}}function E3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class TPe extends lt{constructor(){super(...arguments),E3(this,"priority",90),E3(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 hr(nr(r.length,e),a);case"co":return hr(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=KP(e,n,i),e.setUTCHours(0,0,0,0),e}}function EPe(t,e){ye(2,arguments);var r=Lt(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=EPe(e,n),e.setUTCHours(0,0,0,0),e}}function P3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class PPe extends lt{constructor(){super(...arguments),P3(this,"priority",80),P3(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(YP(n),0,0,0),e}}function C3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class CPe extends lt{constructor(){super(...arguments),C3(this,"priority",80),C3(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(YP(n),0,0,0),e}}function A3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class APe extends lt{constructor(){super(...arguments),A3(this,"priority",80),A3(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(YP(n),0,0,0),e}}function M3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class MPe extends lt{constructor(){super(...arguments),M3(this,"priority",70),M3(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,r,n){switch(r){case"h":return Kt(fr.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return nr(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 $3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class $Pe extends lt{constructor(){super(...arguments),$3(this,"priority",70),$3(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,r,n){switch(r){case"H":return Kt(fr.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return nr(r.length,e)}}validate(e,r){return r>=0&&r<=23}set(e,r,n){return e.setUTCHours(n,0,0,0),e}}function k3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class kPe extends lt{constructor(){super(...arguments),k3(this,"priority",70),k3(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,r,n){switch(r){case"K":return Kt(fr.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return nr(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 D3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class DPe extends lt{constructor(){super(...arguments),D3(this,"priority",70),D3(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,r,n){switch(r){case"k":return Kt(fr.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return nr(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 I3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class IPe extends lt{constructor(){super(...arguments),I3(this,"priority",60),I3(this,"incompatibleTokens",["t","T"])}parse(e,r,n){switch(r){case"m":return Kt(fr.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return nr(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setUTCMinutes(n,0,0),e}}function R3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class RPe extends lt{constructor(){super(...arguments),R3(this,"priority",50),R3(this,"incompatibleTokens",["t","T"])}parse(e,r,n){switch(r){case"s":return Kt(fr.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return nr(r.length,e)}}validate(e,r){return r>=0&&r<=59}set(e,r,n){return e.setUTCSeconds(n,0),e}}function L3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class LPe extends lt{constructor(){super(...arguments),L3(this,"priority",30),L3(this,"incompatibleTokens",["t","T"])}parse(e,r){var n=function(i){return Math.floor(i*Math.pow(10,-r.length+3))};return hr(nr(r.length,e),n)}set(e,r,n){return e.setUTCMilliseconds(n),e}}function N3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class NPe extends lt{constructor(){super(...arguments),N3(this,"priority",10),N3(this,"incompatibleTokens",["t","T","x"])}parse(e,r){switch(r){case"X":return Aa(Ca.basicOptionalMinutes,e);case"XX":return Aa(Ca.basic,e);case"XXXX":return Aa(Ca.basicOptionalSeconds,e);case"XXXXX":return Aa(Ca.extendedOptionalSeconds,e);case"XXX":default:return Aa(Ca.extended,e)}}set(e,r,n){return r.timestampIsSet?e:new Date(e.getTime()-n)}}function B3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class BPe extends lt{constructor(){super(...arguments),B3(this,"priority",10),B3(this,"incompatibleTokens",["t","T","X"])}parse(e,r){switch(r){case"x":return Aa(Ca.basicOptionalMinutes,e);case"xx":return Aa(Ca.basic,e);case"xxxx":return Aa(Ca.basicOptionalSeconds,e);case"xxxxx":return Aa(Ca.extendedOptionalSeconds,e);case"xxx":default:return Aa(Ca.extended,e)}}set(e,r,n){return r.timestampIsSet?e:new Date(e.getTime()-n)}}function F3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class FPe extends lt{constructor(){super(...arguments),F3(this,"priority",40),F3(this,"incompatibleTokens","*")}parse(e){return $7(e)}set(e,r,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}function j3(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}class jPe extends lt{constructor(){super(...arguments),j3(this,"priority",20),j3(this,"incompatibleTokens","*")}parse(e){return $7(e)}set(e,r,n){return[new Date(n),{timestampIsSet:!0}]}}var HPe={G:new aPe,y:new sPe,Y:new oPe,R:new uPe,u:new cPe,Q:new lPe,q:new dPe,M:new fPe,L:new hPe,w:new mPe,I:new vPe,d:new _Pe,D:new wPe,E:new SPe,e:new OPe,c:new TPe,i:new xPe,a:new PPe,b:new CPe,B:new APe,h:new MPe,H:new $Pe,K:new kPe,k:new DPe,m:new IPe,s:new RPe,S:new LPe,X:new NPe,x:new BPe,t:new FPe,T:new jPe},zPe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VPe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,UPe=/^'([^]*?)'?$/,GPe=/''/g,WPe=/\S/,YPe=/[a-zA-Z]/;function KPe(t,e,r,n){var i,a,s,o,u,c,l,d,f,p,m,b,_,S,x,O,h,v;ye(3,arguments);var g=String(t),T=String(e),P=Ko(),k=(i=(a=n==null?void 0:n.locale)!==null&&a!==void 0?a:P.locale)!==null&&i!==void 0?i:A7;if(!k.match)throw new RangeError("locale must contain match property");var w=Lt((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:P.firstWeekContainsDate)!==null&&o!==void 0?o:(f=P.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=Lt((m=(b=(_=(S=n==null?void 0:n.weekStartsOn)!==null&&S!==void 0?S:n==null||(x=n.locale)===null||x===void 0||(O=x.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&_!==void 0?_:P.weekStartsOn)!==null&&b!==void 0?b:(h=P.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 C={firstWeekContainsDate:w,weekStartsOn:A,locale:k},E=[new iPe],$=T.match(VPe).map(function(G){var K=G[0];if(K in bT){var X=bT[K];return X(G,k.formatLong)}return G}).join("").match(zPe),D=[],M=function(G){!(n!=null&&n.useAdditionalWeekYearTokens)&&C7(G)&&eb(G,T,t),!(n!=null&&n.useAdditionalDayOfYearTokens)&&P7(G)&&eb(G,T,t);var K=G[0],X=HPe[K];if(X){var se=X.incompatibleTokens;if(Array.isArray(se)){var Ae=D.find(function(bt){return se.includes(bt.token)||bt.token===K});if(Ae)throw new RangeError("The format string mustn't contain `".concat(Ae.fullToken,"` and `").concat(G,"` at the same time"))}else if(X.incompatibleTokens==="*"&&D.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));D.push({token:K,fullToken:G});var Ye=X.run(g,G,k.match,C);if(!Ye)return L=G,{v:new Date(NaN)};E.push(Ye.setter),g=Ye.rest}else{if(K.match(YPe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+K+"`");if(G==="''"?G="'":K==="'"&&(G=qPe(G)),g.indexOf(G)===0)g=g.slice(G.length);else return L=G,{v:new Date(NaN)}}L=G};for(var L of $){var N=M(L);if(typeof N=="object")return N.v}if(g.length>0&&WPe.test(g))return new Date(NaN);var j=E.map(function(G){return G.priority}).sort(function(G,K){return K-G}).filter(function(G,K,X){return X.indexOf(G)===K}).map(function(G){return E.filter(function(K){return K.priority===G}).sort(function(K,X){return X.subPriority-K.subPriority})}).map(function(G){return G[0]}),z=xe(r);if(isNaN(z.getTime()))return new Date(NaN);var U=S7(z,Q0(z)),J={};for(var re of j){if(!re.validate(U,C))return new Date(NaN);var Y=re.set(U,J,C);Array.isArray(Y)?(U=Y[0],tPe(J,Y[1])):U=Y}return U}function qPe(t){return t.match(UPe)[1].replace(GPe,"'")}function XPe(t){ye(1,arguments);var e=xe(t);return e.setMinutes(0,0,0),e}function JPe(t){ye(1,arguments);var e=xe(t);return e.setMilliseconds(0),e}function ZPe(t,e){var r;ye(1,arguments);var n=Lt((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=rCe(t),a;if(i.date){var s=nCe(i.date,n);a=iCe(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var o=a.getTime(),u=0,c;if(i.time&&(u=aCe(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(c=sCe(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 vg={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},QPe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eCe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,tCe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rCe(t){var e={},r=t.split(vg.dateTimeDelimiter),n;if(r.length>2)return e;if(/:/.test(r[0])?n=r[0]:(e.date=r[0],n=r[1],vg.timeZoneDelimiter.test(e.date)&&(e.date=t.split(vg.timeZoneDelimiter)[0],n=t.substr(e.date.length,t.length))),n){var i=vg.timezone.exec(n);i?(e.time=n.replace(i[1],""),e.timezone=i[1]):e.time=n}return e}function nCe(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 iCe(t,e){if(e===null)return new Date(NaN);var r=t.match(QPe);if(!r)return new Date(NaN);var n=!!r[4],i=Lf(r[1]),a=Lf(r[2])-1,s=Lf(r[3]),o=Lf(r[4]),u=Lf(r[5])-1;if(n)return dCe(e,o,u)?oCe(e,o,u):new Date(NaN);var c=new Date(0);return!cCe(e,a,s)||!lCe(e,i)?new Date(NaN):(c.setUTCFullYear(e,a,Math.max(i,s)),c)}function Lf(t){return t?parseInt(t):1}function aCe(t){var e=t.match(eCe);if(!e)return NaN;var r=A1(e[1]),n=A1(e[2]),i=A1(e[3]);return fCe(r,n,i)?r*ky+n*$y+i*1e3:NaN}function A1(t){return t&&parseFloat(t.replace(",","."))||0}function sCe(t){if(t==="Z")return 0;var e=t.match(tCe);if(!e)return 0;var r=e[1]==="+"?-1:1,n=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return hCe(n,i)?r*(n*ky+i*$y):NaN}function oCe(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 uCe=[31,null,31,30,31,30,31,31,30,31,30,31];function I7(t){return t%400===0||t%4===0&&t%100!==0}function cCe(t,e,r){return e>=0&&e<=11&&r>=1&&r<=(uCe[e]||(I7(t)?29:28))}function lCe(t,e){return e>=1&&e<=(I7(t)?366:365)}function dCe(t,e,r){return e>=1&&e<=53&&r>=0&&r<=6}function fCe(t,e,r){return t===24?e===0&&r===0:r>=0&&r<60&&e>=0&&e<60&&t>=0&&t<25}function hCe(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 pCe={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"};qU._date.override({_id:"date-fns",formats:function(){return pCe},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=KPe(t,e,new Date,this.options):t=ZPe(t,this.options)),v7(t)?t.getTime():null},format:function(t,e){return Qxe(t,e,this.options)},add:function(t,e,r){switch(r){case"millisecond":return Wp(t,e);case"second":return xEe(t,e);case"minute":return TEe(t,e);case"hour":return yEe(t,e);case"day":return g7(t,e);case"week":return PEe(t,e);case"month":return GP(t,e);case"quarter":return EEe(t,e);case"year":return CEe(t,e);default:return t}},diff:function(t,e,r){switch(r){case"millisecond":return Dy(t,e);case"second":return BEe(t,e);case"minute":return REe(t,e);case"hour":return IEe(t,e);case"day":return b7(t,e);case"week":return FEe(t,e);case"month":return w7(t,e);case"quarter":return NEe(t,e);case"year":return jEe(t,e);default:return 0}},startOf:function(t,e,r){switch(e){case"second":return JPe(t);case"minute":return HEe(t);case"hour":return XPe(t);case"day":return vT(t);case"week":return s3(t);case"isoWeek":return s3(t,{weekStartsOn:+r});case"month":return VEe(t);case"quarter":return zEe(t);case"year":return GEe(t);default:return t}},endOf:function(t,e){switch(e){case"second":return XEe(t);case"minute":return KEe(t);case"hour":return WEe(t);case"day":return y7(t);case"week":return YEe(t);case"month":return _7(t);case"quarter":return qEe(t);case"year":return UEe(t);default:return t}}});var R7={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(typeof self<"u"?self:Oe,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:()=>P});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 C=this.getDropdownViewport(),E=A.getBoundingClientRect(),$=E.top,D=E.bottom,M=E.height;if($C.bottom)return this.$refs.dropdownMenu.scrollTop=A.offsetTop-(C.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,C,E,$,D,M,L){var N,j=typeof w=="function"?w.options:w;if(A&&(j.render=A,j.staticRenderFns=C,j._compiled=!0),E&&(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=L?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 U=j.beforeCreate;j.beforeCreate=U?[].concat(U,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,C){var E=C.context;if(E.appendToBody){var $=E.$refs.toggle.getBoundingClientRect(),D=$.height,M=$.top,L=$.left,N=$.width,j=window.scrollX||window.pageXOffset,z=window.scrollY||window.pageYOffset;w.unbindPosition=E.calculatePosition(w,E,{width:N+"px",left:j+L+"px",top:z+M+D+"px"}),document.body.appendChild(w)}},unbind:function(w,A,C){C.context.appendToBody&&(w.unbindPosition&&typeof w.unbindPosition=="function"&&w.unbindPosition(),w.parentNode&&w.parentNode.removeChild(w))}},x=function(w){var A={};return Object.keys(w).sort().forEach(function(C){A[C]=w[C]}),JSON.stringify(A)};var O=0;const h=function(){return++O};function v(w,A){var C=Object.keys(w);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(w);A&&(E=E.filter(function($){return Object.getOwnPropertyDescriptor(w,$).enumerable})),C.push.apply(C,E)}return C}function g(w){for(var A=1;A-1}},filter:{type:Function,default:function(w,A){var C=this;return w.filter(function(E){var $=C.getOptionLabel(E);return typeof $=="number"&&($=$.toString()),C.filterBy(E,$,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,C=w.multiple;return A&&!C}},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,C){var E=C.width,$=C.top,D=C.left;w.style.top=$,w.style.left=D,w.style.width=E}},dropdownShouldOpen:{type:Function,default:function(w){var A=w.noDrop,C=w.open,E=w.mutableLoading;return!A&&C&&!E}},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(C){return w.search=C.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 C=this.createOption(this.search);this.optionExists(C)||A.unshift(C)}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 C=this;!this.taggable&&(typeof C.resetOnOptionsChange=="function"?C.resetOnOptionsChange(w,A,C.selectedValue):C.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(C){return A.findOptionFromReducedValue(C)}):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(C){return!A.optionComparator(C,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(C){return A.reduce(C)}):this.reduce(w)),this.$emit("input",w)},toggleDropdown:function(w){var A=w.target!==this.searchEl;A&&w.preventDefault();var C=[].concat(o()(this.$refs.deselectButtons||[]),o()([this.$refs.clearButton]));this.searchEl===void 0||C.filter(Boolean).some(function(E){return E.contains(w.target)||E===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(C){return A.optionComparator(C,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,C=[].concat(o()(this.options),o()(this.pushedTags)).filter(function(E){return JSON.stringify(A.reduce(E))===JSON.stringify(w)});return C.length===1?C[0]:C.find(function(E){return A.optionComparator(E,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(C){return A.optionComparator(C,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,C=function(D){return D.preventDefault(),!A.isComposing&&A.typeAheadSelect()},E={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 E[D]=C});var $=this.mapKeydown(E,this);if(typeof $[w.keyCode]=="function")return $[w.keyCode](w)}}},function(){var w=this,A=w.$createElement,C=w._self._c||A;return C("div",{staticClass:"v-select",class:w.stateClasses,attrs:{dir:w.dir}},[w._t("header",null,null,w.scope.header),w._v(" "),C("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(E){return w.toggleDropdown(E)}}},[C("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[w._l(w.selectedValue,function(E){return w._t("selected-option-container",[C("span",{key:w.getOptionKey(E),staticClass:"vs__selected"},[w._t("selected-option",[w._v(` `+w._s(w.getOptionLabel(E))+` `)],null,w.normalizeOptionForSlot(E)),w._v(" "),w.multiple?C("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:w.disabled,type:"button",title:"Deselect "+w.getOptionLabel(E),"aria-label":"Deselect "+w.getOptionLabel(E)},on:{click:function($){return w.deselect(E)}}},[C(w.childComponents.Deselect,{tag:"component"})],1):w._e()],2)],{option:w.normalizeOptionForSlot(E),deselect:w.deselect,multiple:w.multiple,disabled:w.disabled})}),w._v(" "),w._t("search",[C("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(" "),C("div",{ref:"actions",staticClass:"vs__actions"},[C("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}},[C(w.childComponents.Deselect,{tag:"component"})],1),w._v(" "),w._t("open-indicator",[w.noDrop?w._e():C(w.childComponents.OpenIndicator,w._b({tag:"component"},"component",w.scope.openIndicator.attributes,!1))],null,w.scope.openIndicator),w._v(" "),w._t("spinner",[C("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(" "),C("transition",{attrs:{name:w.transition}},[w.dropdownOpen?C("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(E){return E.preventDefault(),w.onMousedown(E)},mouseup:w.onMouseUp}},[w._t("list-header",null,null,w.scope.listHeader),w._v(" "),w._l(w.filteredOptions,function(E,$){return C("li",{key:w.getOptionKey(E),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":w.isOptionDeselectable(E)&&$===w.typeAheadPointer,"vs__dropdown-option--selected":w.isOptionSelected(E),"vs__dropdown-option--highlight":$===w.typeAheadPointer,"vs__dropdown-option--disabled":!w.selectable(E)},attrs:{id:"vs"+w.uid+"__option-"+$,role:"option","aria-selected":$===w.typeAheadPointer||null},on:{mouseover:function(D){w.selectable(E)&&(w.typeAheadPointer=$)},click:function(D){D.preventDefault(),D.stopPropagation(),w.selectable(E)&&w.select(E)}}},[w._t("option",[w._v(` `+w._s(w.getOptionLabel(E))+` `)],null,w.normalizeOptionForSlot(E))],2)}),w._v(" "),w.filteredOptions.length===0?C("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):C("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,P={ajax:m,pointer:p,pointerScroll:f},k=T})(),a})()})})(R7);var mCe=R7.exports;const VNe=li(mCe);var nb={exports:{}};nb.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]",x="[object Object]",O="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",T="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",w="[object DataView]",A="[object Float32Array]",C="[object Float64Array]",E="[object Int8Array]",$="[object Int16Array]",D="[object Int32Array]",M="[object Uint8Array]",L="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,J=/^\./,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,G=/\\(\\)?/g,K=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,se={};se[A]=se[C]=se[E]=se[$]=se[D]=se[M]=se[L]=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[x]=se[h]=se[v]=se[g]=se[P]=!1;var Ae=typeof Oe=="object"&&Oe&&Oe.Object===Object&&Oe,Ye=typeof self=="object"&&self&&self.Object===Object&&self,bt=Ae||Ye||Function("return this")(),ir=e&&!e.nodeType&&e,Hr=ir&&!0&&t&&!t.nodeType&&t,bn=Hr&&Hr.exports===ir,oa=bn&&Ae.process,Ya=function(){try{return oa&&oa.binding("util")}catch{}}(),ua=Ya&&Ya.isTypedArray;function Xo(R,H){var Q=R?R.length:0;return!!Q&&Gr(R,H,0)>-1}function De(R,H,Q){for(var ie=-1,Me=R?R.length:0;++ie-1}function y_(R,H){var Q=this.__data__,ie=kc(Q,R);return ie<0?Q.push([R,H]):Q[ie][1]=H,this}Mi.prototype.clear=zs,Mi.prototype.delete=g_,Mi.prototype.get=v_,Mi.prototype.has=b_,Mi.prototype.set=y_;function $i(R){var H=-1,Q=R?R.length:0;for(this.clear();++H=r){var ar=H?null:om(R);if(ar)return Gd(ar);ot=!1,Me=Zp,pt=new Zo}else pt=H?[]:dt;e:for(;++iedt))return!1;var ar=me.get(R);if(ar&&me.get(H))return ar==H;var Gt=-1,sr=!0,or=Me&a?new Zo:void 0;for(me.set(R,H),me.set(H,R);++Gt-1&&R%1==0&&R-1&&R%1==0&&R<=u}function Qo(R){var H=typeof R;return!!R&&(H=="object"||H=="function")}function Gs(R){return!!R&&typeof R=="object"}function Ws(R){return typeof R=="symbol"||Gs(R)&&ca.call(R)==T}var cW=ua?t_(ua):Vs;function lW(R){return R==null?"":L_(R)}function dW(R,H,Q){var ie=R==null?void 0:im(R,H);return ie===void 0?Q:ie}function fW(R,H){return R!=null&&F_(R,H,M_)}function H_(R){return rf(R)?C_(R):qa(R)}function hW(R){return R}function pW(){}function mW(R){return Lc(R)?Pr(q(R)):R_(R)}t.exports=he})(nb,nb.exports);var gCe=nb.exports;const UNe=li(gCe),vCe={"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 bCe=vCe;const GNe=li(bCe),yCe="modulepreload",_Ce=function(t,e){return new URL(t,e).href},H3={},wi=function(e,r,n){if(!r||r.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(r.map(a=>{if(a=_Ce(a,n),a in H3)return;H3[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":yCe,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})};var L7={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Oe,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)},x=function(v){return Math.abs(v)},O=function(v,g){return v?_(v)?{negative:!0,format:""+x(v)+g}:{negative:!1,format:""+v+g}:{negative:!1,format:""}},h=function(){function v(T,P,k){var w=this;if(this.$d={},this.$l=k,T===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return m(T*f[b(P)],this);if(typeof T=="number")return this.$ms=T,this.parseFromMilliseconds(),this;if(typeof T=="object")return Object.keys(T).forEach(function(E){w.$d[b(E)]=T[E]}),this.calMilliseconds(),this;if(typeof T=="string"){var A=T.match(d);if(A){var C=A.slice(2).map(function(E){return E!=null?Number(E):0});return this.$d.years=C[0],this.$d.months=C[1],this.$d.weeks=C[2],this.$d.days=C[3],this.$d.hours=C[4],this.$d.minutes=C[5],this.$d.seconds=C[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(P,k){return P+(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"),P=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"),C=O(this.$d.minutes,"M"),E=this.$d.seconds||0;this.$d.milliseconds&&(E+=this.$d.milliseconds/1e3);var $=O(E,"S"),D=T.negative||P.negative||w.negative||A.negative||C.negative||$.negative,M=A.format||C.format||$.format?"T":"",L=(D?"-":"")+"P"+T.format+P.format+w.format+M+A.format+C.format+$.format;return L==="P"||L==="-P"?"P0D":L},g.toJSON=function(){return this.toISOString()},g.format=function(T){var P=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 P.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 P=this.$ms,k=b(T);return k==="milliseconds"?P%=1e3:P=k==="weeks"?S(P/f[k]):this.$d[k],P===0?0:P},g.add=function(T,P,k){var w;return w=P?T*f[b(P)]:p(T)?T.$ms:m(T,this).$ms,m(this.$ms+w*(k?-1:1),this)},g.subtract=function(T,P){return this.add(T,P,!0)},g.locale=function(T){var P=this.clone();return P.$l=T,P},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 C=T.locale();return m(w,{$l:C},A)},T.isDuration=p;var P=g.prototype.add,k=g.prototype.subtract;g.prototype.add=function(w,A){return p(w)&&(w=w.asMilliseconds()),P.bind(this)(w,A)},g.prototype.subtract=function(w,A){return p(w)&&(w=w.asMilliseconds()),k.bind(this)(w,A)}}})})(L7);var wCe=L7.exports;const WNe=li(wCe);var yT={exports:{}};const SCe="2.0.0",N7=256,OCe=Number.MAX_SAFE_INTEGER||9007199254740991,TCe=16,ECe=N7-6,xCe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var Iy={MAX_LENGTH:N7,MAX_SAFE_COMPONENT_LENGTH:TCe,MAX_SAFE_BUILD_LENGTH:ECe,MAX_SAFE_INTEGER:OCe,RELEASE_TYPES:xCe,SEMVER_SPEC_VERSION:SCe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const PCe=typeof process=="object"&&process.env&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var Ry=PCe;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n}=Iy,i=Ry;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),x=c++;i(m,x,b),u[m]=x,o[x]=b,a[x]=new RegExp(b,_?"g":void 0),s[x]=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*$")})(yT,yT.exports);var Kp=yT.exports;const CCe=Object.freeze({loose:!0}),ACe=Object.freeze({}),MCe=t=>t?typeof t!="object"?CCe:t:ACe;var qP=MCe;const z3=/^[0-9]+$/,B7=(t,e)=>{const r=z3.test(t),n=z3.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:tB7(e,t);var F7={compareIdentifiers:B7,rcompareIdentifiers:$Ce};const bg=Ry,{MAX_LENGTH:V3,MAX_SAFE_INTEGER:yg}=Iy,{safeRe:U3,t:G3}=Kp,kCe=qP,{compareIdentifiers:al}=F7;let DCe=class va{constructor(e,r){if(r=kCe(r),e instanceof va){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>V3)throw new TypeError(`version is longer than ${V3} characters`);bg("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=e.trim().match(r.loose?U3[G3.LOOSE]:U3[G3.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>yg||this.major<0)throw new TypeError("Invalid major version");if(this.minor>yg||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>yg||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]),al(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 vn=DCe;const W3=vn,ICe=(t,e,r=!1)=>{if(t instanceof W3)return t;try{return new W3(t,e)}catch(n){if(!r)return null;throw n}};var Fd=ICe;const RCe=Fd,LCe=(t,e)=>{const r=RCe(t,e);return r?r.version:null};var NCe=LCe;const BCe=Fd,FCe=(t,e)=>{const r=BCe(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null};var jCe=FCe;const Y3=vn,HCe=(t,e,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Y3(t instanceof Y3?t.version:t,r).inc(e,n,i).version}catch{return null}};var zCe=HCe;const K3=Fd,VCe=(t,e)=>{const r=K3(t,null,!0),n=K3(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 UCe=VCe;const GCe=vn,WCe=(t,e)=>new GCe(t,e).major;var YCe=WCe;const KCe=vn,qCe=(t,e)=>new KCe(t,e).minor;var XCe=qCe;const JCe=vn,ZCe=(t,e)=>new JCe(t,e).patch;var QCe=ZCe;const eAe=Fd,tAe=(t,e)=>{const r=eAe(t,e);return r&&r.prerelease.length?r.prerelease:null};var rAe=tAe;const q3=vn,nAe=(t,e,r)=>new q3(t,r).compare(new q3(e,r));var ia=nAe;const iAe=ia,aAe=(t,e,r)=>iAe(e,t,r);var sAe=aAe;const oAe=ia,uAe=(t,e)=>oAe(t,e,!0);var cAe=uAe;const X3=vn,lAe=(t,e,r)=>{const n=new X3(t,r),i=new X3(e,r);return n.compare(i)||n.compareBuild(i)};var XP=lAe;const dAe=XP,fAe=(t,e)=>t.sort((r,n)=>dAe(r,n,e));var hAe=fAe;const pAe=XP,mAe=(t,e)=>t.sort((r,n)=>pAe(n,r,e));var gAe=mAe;const vAe=ia,bAe=(t,e,r)=>vAe(t,e,r)>0;var Ly=bAe;const yAe=ia,_Ae=(t,e,r)=>yAe(t,e,r)<0;var JP=_Ae;const wAe=ia,SAe=(t,e,r)=>wAe(t,e,r)===0;var j7=SAe;const OAe=ia,TAe=(t,e,r)=>OAe(t,e,r)!==0;var H7=TAe;const EAe=ia,xAe=(t,e,r)=>EAe(t,e,r)>=0;var ZP=xAe;const PAe=ia,CAe=(t,e,r)=>PAe(t,e,r)<=0;var QP=CAe;const AAe=j7,MAe=H7,$Ae=Ly,kAe=ZP,DAe=JP,IAe=QP,RAe=(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 AAe(t,r,n);case"!=":return MAe(t,r,n);case">":return $Ae(t,r,n);case">=":return kAe(t,r,n);case"<":return DAe(t,r,n);case"<=":return IAe(t,r,n);default:throw new TypeError(`Invalid operator: ${e}`)}};var z7=RAe;const LAe=vn,NAe=Fd,{safeRe:_g,t:wg}=Kp,BAe=(t,e)=>{if(t instanceof LAe)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(_g[wg.COERCE]);else{let n;for(;(n=_g[wg.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),_g[wg.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;_g[wg.COERCERTL].lastIndex=-1}return r===null?null:NAe(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)};var FAe=BAe,M1,J3;function jAe(){return J3||(J3=1,M1=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),M1}var HAe=st;st.Node=oc;st.create=st;function st(t){var e=this;if(e instanceof st||(e=new st),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};st.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};st.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};st.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};st.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 st;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};st.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 WAe{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[Su]=e.max||1/0;const r=e.length||$1;if(this[sl]=typeof r!="function"?$1:r,this[Ih]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Cu]=e.maxAge||0,this[os]=e.dispose,this[Z3]=e.noDisposeOnSet||!1,this[V7]=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[Su]=e||1/0,Nf(this)}get max(){return this[Su]}set allowStale(e){this[Ih]=!!e}get allowStale(){return this[Ih]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Cu]=e,Nf(this)}get maxAge(){return this[Cu]}set lengthCalculator(e){typeof e!="function"&&(e=$1),e!==this[sl]&&(this[sl]=e,this[ls]=0,this[Mr].forEach(r=>{r.length=this[sl](r.value,r.key),this[ls]+=r.length})),Nf(this)}get lengthCalculator(){return this[sl]}get length(){return this[ls]}get itemCount(){return this[Mr].length}rforEach(e,r){r=r||this;for(let n=this[Mr].tail;n!==null;){const i=n.prev;Q3(this,e,n,r),n=i}}forEach(e,r){r=r||this;for(let n=this[Mr].head;n!==null;){const i=n.next;Q3(this,e,n,r),n=i}}keys(){return this[Mr].toArray().map(e=>e.key)}values(){return this[Mr].toArray().map(e=>e.value)}reset(){this[os]&&this[Mr]&&this[Mr].length&&this[Mr].forEach(e=>this[os](e.key,e.value)),this[Ii]=new Map,this[Mr]=new GAe,this[ls]=0}dump(){return this[Mr].map(e=>ib(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[Mr]}set(e,r,n){if(n=n||this[Cu],n&&typeof n!="number")throw new TypeError("maxAge must be a number");const i=n?Date.now():0,a=this[sl](r,e);if(this[Ii].has(e)){if(a>this[Su])return Vl(this,this[Ii].get(e)),!1;const u=this[Ii].get(e).value;return this[os]&&(this[Z3]||this[os](e,u.value)),u.now=i,u.maxAge=n,u.value=r,this[ls]+=a-u.length,u.length=a,this.get(e),Nf(this),!0}const s=new YAe(e,r,a,i,n);return s.length>this[Su]?(this[os]&&this[os](e,r),!1):(this[ls]+=s.length,this[Mr].unshift(s),this[Ii].set(e,this[Mr].head),Nf(this),!0)}has(e){if(!this[Ii].has(e))return!1;const r=this[Ii].get(e).value;return!ib(this,r)}get(e){return k1(this,e,!0)}peek(e){return k1(this,e,!1)}pop(){const e=this[Mr].tail;return e?(Vl(this,e),e.value):null}del(e){Vl(this,this[Ii].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[Ii].forEach((e,r)=>k1(this,r,!1))}}const k1=(t,e,r)=>{const n=t[Ii].get(e);if(n){const i=n.value;if(ib(t,i)){if(Vl(t,n),!t[Ih])return}else r&&(t[V7]&&(n.value.now=Date.now()),t[Mr].unshiftNode(n));return i.value}},ib=(t,e)=>{if(!e||!e.maxAge&&!t[Cu])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[Cu]&&r>t[Cu]},Nf=t=>{if(t[ls]>t[Su])for(let e=t[Mr].tail;t[ls]>t[Su]&&e!==null;){const r=e.prev;Vl(t,e),e=r}},Vl=(t,e)=>{if(e){const r=e.value;t[os]&&t[os](r.key,r.value),t[ls]-=r.length,t[Ii].delete(r.key),t[Mr].removeNode(e)}};class YAe{constructor(e,r,n,i,a){this.key=e,this.value=r,this.length=n,this.now=i,this.maxAge=a||0}}const Q3=(t,e,r,n)=>{let i=r.value;ib(t,i)&&(Vl(t,r),t[Ih]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};var KAe=WAe,D1,eL;function aa(){if(eL)return D1;eL=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(L=>!m(L[0])),this.set.length===0)this.set=[M];else if(this.set.length>1){for(const L of this.set)if(L.length===1&&b(L[0])){this.set=[L];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))+":"+$,L=r.get(M);if(L)return L;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 U=new Map,J=z.map(Y=>new i(Y,this.options));for(const Y of J){if(m(Y))return[Y];U.set(Y.value,Y)}U.size>1&&U.has("")&&U.delete("");const re=[...U.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(L=>_(L,D)&&M.every(N=>L.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;DE.value==="<0.0.0-0",b=E=>E.value==="",_=(E,$)=>{let D=!0;const M=E.slice();let L=M.pop();for(;D&&M.length;)D=M.every(N=>L.intersects(N,$)),L=M.pop();return D},S=(E,$)=>(a("comp",E,$),E=v(E,$),a("caret",E),E=O(E,$),a("tildes",E),E=T(E,$),a("xrange",E),E=k(E,$),a("stars",E),E),x=E=>!E||E.toLowerCase()==="x"||E==="*",O=(E,$)=>E.trim().split(/\s+/).map(D=>h(D,$)).join(" "),h=(E,$)=>{const D=$.loose?o[u.TILDELOOSE]:o[u.TILDE];return E.replace(D,(M,L,N,j,z)=>{a("tilde",E,M,L,N,j,z);let U;return x(L)?U="":x(N)?U=`>=${L}.0.0 <${+L+1}.0.0-0`:x(j)?U=`>=${L}.${N}.0 <${L}.${+N+1}.0-0`:z?(a("replaceTilde pr",z),U=`>=${L}.${N}.${j}-${z} <${L}.${+N+1}.0-0`):U=`>=${L}.${N}.${j} <${L}.${+N+1}.0-0`,a("tilde return",U),U})},v=(E,$)=>E.trim().split(/\s+/).map(D=>g(D,$)).join(" "),g=(E,$)=>{a("caret",E,$);const D=$.loose?o[u.CARETLOOSE]:o[u.CARET],M=$.includePrerelease?"-0":"";return E.replace(D,(L,N,j,z,U)=>{a("caret",E,L,N,j,z,U);let J;return x(N)?J="":x(j)?J=`>=${N}.0.0${M} <${+N+1}.0.0-0`:x(z)?N==="0"?J=`>=${N}.${j}.0${M} <${N}.${+j+1}.0-0`:J=`>=${N}.${j}.0${M} <${+N+1}.0.0-0`:U?(a("replaceCaret pr",U),N==="0"?j==="0"?J=`>=${N}.${j}.${z}-${U} <${N}.${j}.${+z+1}-0`:J=`>=${N}.${j}.${z}-${U} <${N}.${+j+1}.0-0`:J=`>=${N}.${j}.${z}-${U} <${+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=(E,$)=>(a("replaceXRanges",E,$),E.split(/\s+/).map(D=>P(D,$)).join(" ")),P=(E,$)=>{E=E.trim();const D=$.loose?o[u.XRANGELOOSE]:o[u.XRANGE];return E.replace(D,(M,L,N,j,z,U)=>{a("xRange",E,M,L,N,j,z,U);const J=x(N),re=J||x(j),Y=re||x(z),G=Y;return L==="="&&G&&(L=""),U=$.includePrerelease?"-0":"",J?L===">"||L==="<"?M="<0.0.0-0":M="*":L&&G?(re&&(j=0),z=0,L===">"?(L=">=",re?(N=+N+1,j=0,z=0):(j=+j+1,z=0)):L==="<="&&(L="<",re?N=+N+1:j=+j+1),L==="<"&&(U="-0"),M=`${L+N}.${j}.${z}${U}`):re?M=`>=${N}.0.0${U} <${+N+1}.0.0-0`:Y&&(M=`>=${N}.${j}.0${U} <${N}.${+j+1}.0-0`),a("xRange return",M),M})},k=(E,$)=>(a("replaceStars",E,$),E.trim().replace(o[u.STAR],"")),w=(E,$)=>(a("replaceGTE0",E,$),E.trim().replace(o[$.includePrerelease?u.GTE0PRE:u.GTE0],"")),A=E=>($,D,M,L,N,j,z,U,J,re,Y,G,K)=>(x(M)?D="":x(L)?D=`>=${M}.0.0${E?"-0":""}`:x(N)?D=`>=${M}.${L}.0${E?"-0":""}`:j?D=`>=${D}`:D=`>=${D}${E?"-0":""}`,x(J)?U="":x(re)?U=`<${+J+1}.0.0-0`:x(Y)?U=`<${J}.${+re+1}.0-0`:G?U=`<=${J}.${re}.${Y}-${G}`:E?U=`<${J}.${re}.${+Y+1}-0`:U=`<=${U}`,`${D} ${U}`.trim()),C=(E,$,D)=>{for(let M=0;M0){const L=E[M].semver;if(L.major===$.major&&L.minor===$.minor&&L.patch===$.patch)return!0}return!1}return!0};return D1}var I1,tL;function Ny(){if(tL)return I1;tL=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(">")))}}I1=e;const r=qP,{safeRe:n,t:i}=Kp,a=z7,s=Ry,o=vn,u=aa();return I1}const qAe=aa(),XAe=(t,e,r)=>{try{e=new qAe(e,r)}catch{return!1}return e.test(t)};var By=XAe;const JAe=aa(),ZAe=(t,e)=>new JAe(t,e).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));var QAe=ZAe;const eMe=vn,tMe=aa(),rMe=(t,e,r)=>{let n=null,i=null,a=null;try{a=new tMe(e,r)}catch{return null}return t.forEach(s=>{a.test(s)&&(!n||i.compare(s)===-1)&&(n=s,i=new eMe(n,r))}),n};var nMe=rMe;const iMe=vn,aMe=aa(),sMe=(t,e,r)=>{let n=null,i=null,a=null;try{a=new aMe(e,r)}catch{return null}return t.forEach(s=>{a.test(s)&&(!n||i.compare(s)===1)&&(n=s,i=new iMe(n,r))}),n};var oMe=sMe;const R1=vn,uMe=aa(),rL=Ly,cMe=(t,e)=>{t=new uMe(t,e);let r=new R1("0.0.0");if(t.test(r)||(r=new R1("0.0.0-0"),t.test(r)))return r;r=null;for(let n=0;n{const o=new R1(s.semver.version);switch(s.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!a||rL(o,a))&&(a=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),a&&(!r||rL(r,a))&&(r=a)}return r&&t.test(r)?r:null};var lMe=cMe;const dMe=aa(),fMe=(t,e)=>{try{return new dMe(t,e).range||"*"}catch{return null}};var hMe=fMe;const pMe=vn,U7=Ny(),{ANY:mMe}=U7,gMe=aa(),vMe=By,nL=Ly,iL=JP,bMe=QP,yMe=ZP,_Me=(t,e,r,n)=>{t=new pMe(t,n),e=new gMe(e,n);let i,a,s,o,u;switch(r){case">":i=nL,a=bMe,s=iL,o=">",u=">=";break;case"<":i=iL,a=yMe,s=nL,o="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vMe(t,e,n))return!1;for(let c=0;c{p.semver===mMe&&(p=new U7(">=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 eC=_Me;const wMe=eC,SMe=(t,e,r)=>wMe(t,e,">",r);var OMe=SMe;const TMe=eC,EMe=(t,e,r)=>TMe(t,e,"<",r);var xMe=EMe;const aL=aa(),PMe=(t,e,r)=>(t=new aL(t,r),e=new aL(e,r),t.intersects(e,r));var CMe=PMe;const AMe=By,MMe=ia;var $Me=(t,e,r)=>{const n=[];let i=null,a=null;const s=t.sort((l,d)=>MMe(l,d,r));for(const l of s)AMe(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 sL(t,r),e=new sL(e,r);let n=!1;e:for(const i of t.set){for(const a of e.set){const s=IMe(i,a,r);if(n=n||s!==null,s)continue e}if(n)return!1}return!0},DMe=[new tC(">=0.0.0-0")],oL=[new tC(">=0.0.0")],IMe=(t,e,r)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===L1){if(e.length===1&&e[0].semver===L1)return!0;r.includePrerelease?t=DMe:t=oL}if(e.length===1&&e[0].semver===L1){if(r.includePrerelease)return!0;e=oL}const n=new Set;let i,a;for(const p of t)p.operator===">"||p.operator===">="?i=uL(i,p,r):p.operator==="<"||p.operator==="<="?a=cL(a,p,r):n.add(p.semver);if(n.size>1)return null;let s;if(i&&a){if(s=rC(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&&!Bf(p,String(i),r)||a&&!Bf(p,String(a),r))return null;for(const m of e)if(!Bf(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=uL(i,p,r),o===p&&o!==i)return!1}else if(i.operator===">="&&!Bf(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=cL(a,p,r),u===p&&u!==a)return!1}else if(a.operator==="<="&&!Bf(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)},uL=(t,e,r)=>{if(!t)return e;const n=rC(t.semver,e.semver,r);return n>0?t:n<0||e.operator===">"&&t.operator===">="?e:t},cL=(t,e,r)=>{if(!t)return e;const n=rC(t.semver,e.semver,r);return n<0?t:n>0||e.operator==="<"&&t.operator==="<="?e:t};var RMe=kMe;const N1=Kp,lL=Iy,LMe=vn,dL=F7,NMe=Fd,BMe=NCe,FMe=jCe,jMe=zCe,HMe=UCe,zMe=YCe,VMe=XCe,UMe=QCe,GMe=rAe,WMe=ia,YMe=sAe,KMe=cAe,qMe=XP,XMe=hAe,JMe=gAe,ZMe=Ly,QMe=JP,e$e=j7,t$e=H7,r$e=ZP,n$e=QP,i$e=z7,a$e=FAe,s$e=Ny(),o$e=aa(),u$e=By,c$e=QAe,l$e=nMe,d$e=oMe,f$e=lMe,h$e=hMe,p$e=eC,m$e=OMe,g$e=xMe,v$e=CMe,b$e=$Me,y$e=RMe;var _$e={parse:NMe,valid:BMe,clean:FMe,inc:jMe,diff:HMe,major:zMe,minor:VMe,patch:UMe,prerelease:GMe,compare:WMe,rcompare:YMe,compareLoose:KMe,compareBuild:qMe,sort:XMe,rsort:JMe,gt:ZMe,lt:QMe,eq:e$e,neq:t$e,gte:r$e,lte:n$e,cmp:i$e,coerce:a$e,Comparator:s$e,Range:o$e,satisfies:u$e,toComparators:c$e,maxSatisfying:l$e,minSatisfying:d$e,minVersion:f$e,validRange:h$e,outside:p$e,gtr:m$e,ltr:g$e,intersects:v$e,simplifyRange:b$e,subset:y$e,SemVer:LMe,re:N1.re,src:N1.src,tokens:N1.t,SEMVER_SPEC_VERSION:lL.SEMVER_SPEC_VERSION,RELEASE_TYPES:lL.RELEASE_TYPES,compareIdentifiers:dL.compareIdentifiers,rcompareIdentifiers:dL.rcompareIdentifiers};const YNe=li(_$e);/*! * vue-i18n v8.27.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. */var G7=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function _d(t,e){typeof console<"u"&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function w$e(t,e){typeof console<"u"&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var Ha=Array.isArray;function Ci(t){return t!==null&&typeof t=="object"}function S$e(t){return typeof t=="boolean"}function Fr(t){return typeof t=="string"}var O$e=Object.prototype.toString,T$e="[object Object]";function Na(t){return O$e.call(t)===T$e}function Mn(t){return t==null}function _T(t){return typeof t=="function"}function Fy(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=null,n=null;return t.length===1?Ci(t[0])||Ha(t[0])?n=t[0]:typeof t[0]=="string"&&(r=t[0]):t.length===2&&(typeof t[0]=="string"&&(r=t[0]),(Ci(t[1])||Ha(t[1]))&&(n=t[1])),{locale:r,params:n}}function jd(t){return JSON.parse(JSON.stringify(t))}function E$e(t,e){if(t.delete(e))return t}function x$e(t){var e=[];return t.forEach(function(r){return e.push(r)}),e}function jy(t,e){return!!~t.indexOf(e)}var P$e=Object.prototype.hasOwnProperty;function C$e(t,e){return P$e.call(t,e)}function Bu(t){for(var e=arguments,r=Object(t),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}function M$e(t){return t!=null&&Object.keys(t).forEach(function(e){typeof t[e]=="string"&&(t[e]=A$e(t[e]))}),t}function $$e(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 k$e(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=Bu(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(Na(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=Bu(o,JSON.parse(d))}),n.i18n.messages=o}catch{}var c=n.i18n,l=c.sharedMessages;l&&Na(l)&&(n.i18n.messages=Bu(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):Na(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 fL={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,D$e(d)||l?I$e(d.default,l):d),p=a.tag&&a.tag!==!0||a.tag===!1?a.tag:"span";return p?e(p,n,f):f}}};function D$e(t){var e;for(e in t)if(e!=="default")return!1;return!!e}function I$e(t,e){var r=e?R$e(e):{};if(!t)return r;t=t.filter(function(i){return i.tag||i.text.trim()!==""});var n=t.every(N$e);return t.reduce(n?L$e:W7,r)}function R$e(t){return Array.isArray(t)?t.reduce(W7,{}):Object.assign({},t)}function L$e(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function W7(t,e,r){return t[r]=e,t}function N$e(t){return!!(t.data&&t.data.attrs&&t.data.attrs.place)}var hL={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;Fr(n.format)?o=n.format:Ci(n.format)&&(n.format.key&&(o=n.format.key),u=Object.keys(n.format).reduce(function(p,m){var b;return jy(G7,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 B$e(t,e,r){Y7(t,r)&&K7(t,e,r)}function F$e(t,e,r,n){if(Y7(t,r)){var i=r.context.$i18n;H$e(t,r)&&ab(e.value,e.oldValue)&&ab(t._localeMessage,i.getLocaleMessage(i.locale))||K7(t,e,r)}}function j$e(t,e,r,n){var i=r.context;if(!i){_d("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 Y7(t,e){var r=e.context;return r?r.$i18n?!0:(_d("VueI18n instance does not exists in Vue instance"),!1):(_d("Vue instance does not exists in VNode context"),!1)}function H$e(t,e){var r=e.context;return t._locale===r.$i18n.locale}function K7(t,e,r){var n,i,a=e.value,s=z$e(a),o=s.path,u=s.locale,c=s.args,l=s.choice;if(!o&&!u&&!c){_d("value type not supported");return}if(!o){_d("`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(pL(u,c))):t._vt=t.textContent=(i=d.$i18n).t.apply(i,[o].concat(pL(u,c))),t._locale=d.$i18n.locale,t._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function z$e(t){var e,r,n,i;return Fr(t)?e=t:Na(t)&&(e=t.path,r=t.locale,n=t.args,i=t.choice),{path:e,locale:r,args:n,choice:i}}function pL(t,e){var r=[];return t&&r.push(t),e&&(Array.isArray(e)||Na(e))&&r.push(e),r}var on;function nC(t,e){e===void 0&&(e={bridge:!1}),nC.installed=!0,on=t,on.version&&Number(on.version.split(".")[0]),$$e(on),on.mixin(k$e(e.bridge)),on.directive("t",{bind:B$e,update:F$e,unbind:j$e}),on.component(fL.name,fL),on.component(hL.name,hL);var r=on.config.optionMergeStrategies;r.i18n=function(n,i){return i===void 0?n:i}}var q7=function(){this._caches=Object.create(null)};q7.prototype.interpolate=function(e,r){if(!r)return[e];var n=this._caches[e];return n||(n=G$e(e),this._caches[e]=n),W$e(n,r)};var V$e=/^(?:\d)+/,U$e=/^(?:\w)+/;function G$e(t){for(var e=[],r=0,n="";r0)i--,n=Os,f[Lr]();else{if(i=0,s===void 0||(s=J$e(s),s===!1))return!1;f[Rl]()}};function p(){var m=t[r+1];if(n===ub&&m==="'"||n===cb&&m==='"')return r++,o="\\"+m,f[Lr](),!0}for(;n!==null;)if(r++,a=t[r],!(a==="\\"&&p())){if(u=X$e(a),d=qo[n],c=d[u]||d.else||pp,c===pp||(n=c[0],l=f[c[1]],l&&(o=c[2],o=o===void 0?a:o,l()===!1)))return;if(n===Hy)return e}}var iC=function(){this._cache=Object.create(null)};iC.prototype.parsePath=function(e){var r=this._cache[e];return r||(r=Z$e(e),r&&(this._cache[e]=r)),r||[]};iC.prototype.getPathValue=function(e,r){if(!Ci(e))return null;var n=this.parsePath(r);if(n.length===0)return null;for(var i=n.length,a=e,s=0;s/,eke=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,tke=/^@(?:\.([a-zA-Z]+))?:/,rke=/[()]/g,mL={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},ST=new q7,de=function(e){var r=this;e===void 0&&(e={}),!on&&typeof window<"u"&&window.Vue&&nC(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||ST,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 iC,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:!!(!Mn(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})},_t={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(Na(u))Object.keys(u).forEach(function(f){var p=u[f];Na(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(Ha(u))u.forEach(function(f,p){Na(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(Fr(u)){var l=Q$e.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"?_d(d):s==="error"&&w$e(d)}}};a(r,e,n,i)};de.prototype._initVM=function(e){var r=on.config.silent;on.config.silent=!0,this._vm=new on({data:e,__VUE18N__INSTANCE__:!0}),on.config.silent=r};de.prototype.destroyVM=function(){this._vm.$destroy()};de.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)};de.prototype.unsubscribeDataChanging=function(e){E$e(this._dataListeners,e)};de.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var r=x$e(e._dataListeners),n=r.length;n--;)on.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)};_t.vm.get=function(){return this._vm};_t.messages.get=function(){return jd(this._getMessages())};_t.dateTimeFormats.get=function(){return jd(this._getDateTimeFormats())};_t.numberFormats.get=function(){return jd(this._getNumberFormats())};_t.availableLocales.get=function(){return Object.keys(this.messages).sort()};_t.locale.get=function(){return this._vm.locale};_t.locale.set=function(t){this._vm.$set(this._vm,"locale",t)};_t.fallbackLocale.get=function(){return this._vm.fallbackLocale};_t.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)};_t.formatFallbackMessages.get=function(){return this._formatFallbackMessages};_t.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t};_t.missing.get=function(){return this._missing};_t.missing.set=function(t){this._missing=t};_t.formatter.get=function(){return this._formatter};_t.formatter.set=function(t){this._formatter=t};_t.silentTranslationWarn.get=function(){return this._silentTranslationWarn};_t.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t};_t.silentFallbackWarn.get=function(){return this._silentFallbackWarn};_t.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t};_t.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};_t.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t};_t.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};_t.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])})}};_t.postTranslation.get=function(){return this._postTranslation};_t.postTranslation.set=function(t){this._postTranslation=t};_t.sync.get=function(){return this._sync};_t.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(!Mn(n))return n;if(this._missing){var o=this._missing.apply(null,[e,r,i,a]);if(Fr(o))return o}if(this._formatFallbackMessages){var u=Fy.apply(void 0,a);return this._render(r,s,u.params,r)}else return r};de.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:Mn(e))&&!Mn(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(Ha(u)||Na(u))return u;var c;if(Mn(u))if(Na(r)){if(c=r[n],!(Fr(c)||_T(c)))return null}else return null;else if(Fr(u)||_T(u))c=u;else return null;return Fr(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(eke);for(var l in c)if(c.hasOwnProperty(l)){var d=c[l],f=d.match(tke),p=f[0],m=f[1],b=d.replace(p,"").replace(rke,"");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,Ha(s)?s:[s],a),this._modifiers.hasOwnProperty(m)?_=this._modifiers[m](_):mL.hasOwnProperty(m)&&(_=mL[m](_)),o.pop(),u=_?u.replace(d,_):u}return u};de.prototype._createMessageContext=function(e,r,n,i){var a=this,s=Ha(e)?e:[],o=Ci(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||ST,i,r));var a=this._formatter.interpolate(e,n,i);return a||(a=ST.interpolate(e,n,i)),r==="string"&&!Fr(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=Fy.apply(void 0,s);this._escapeParameterHtml&&(u.params=M$e(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?(Fr(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=Fy.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||!Fr(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=Fy.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 jd(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,Bu(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 jd(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,Bu(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?Fr(r[0])?a=r[0]:Ci(r[0])&&(r[0].locale&&(i=r[0].locale),r[0].key&&(a=r[0].key)):r.length===2&&(Fr(r[0])&&(a=r[0]),Fr(r[1])&&(i=r[1])),this._d(e,i,a)};de.prototype.getNumberFormat=function(e){return jd(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,Bu(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?Fr(r[0])?a=r[0]:Ci(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(G7,u)?Object.assign({},o,(c={},c[u]=r[0][u],c)):o},null)):r.length===2&&(Fr(r[0])&&(a=r[0]),Fr(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,_t);var B1;Object.defineProperty(de,"availabilities",{get:function(){if(!B1){var e=typeof Intl<"u";B1={dateTimeFormat:e&&typeof Intl.DateTimeFormat<"u",numberFormat:e&&typeof Intl.NumberFormat<"u"}}return B1}});de.install=nC;de.version="8.27.2";const KNe=de;var OT=function(t,e){return OT=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])},OT(t,e)};function sa(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");OT(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=lke({attempt:i-1});return setTimeout(function(){n.queue.push(r),n.future=n.future.filter(function(s){return s.id!==r.id}),n.emit(tG)},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}(aC),Au=256,Ov=[],Sg;for(;Au--;)Ov[Au]=(Au+256).toString(16).substring(1);function uC(){var t=0,e,r="";if(!Sg||Au+16>256){for(Sg=Array(t=256);t--;)Sg[t]=256*Math.random()|0;t=Au=0}for(;t<16;t++)e=Sg[Au+t],t==6?r+=Ov[e&15|64]:t==8?r+=Ov[e&63|128]:r+=Ov[e],t&1&&t>1&&t<11&&(r+="-");return Au++,r}var dke=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}(),fke=function(t){var e={gauge:"g",counter:"c"};return e[t]},rG=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:fke(e.type),e:e.timestamp}})},t}(),hke=function(t){sa(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}(rG),jo=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}(),lb=function(){function t(e,r,n,i){r===void 0&&(r=uC()),n===void 0&&(n=new hke),i===void 0&&(i=new dke),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 jo({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 TT(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 pke(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]=Or(Or([],(i=r[a])!==null&&i!==void 0?i:[],!0),[n],!1))}),r}var mke=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},gke=function(){var t,e,r=0;return{done:function(){return t},run:function(n){var i=n();return mke(i)&&(++r===1&&(t=new Promise(function(a){return e=a})),i.finally(function(){return--r===0&&e()})),i}}};function vke(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 Gl(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=vke(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 jo&&a.type==="middleware_cancellation")throw a;return a instanceof jo?(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 bke(t,e){return Gl(t,e).then(function(r){if(r instanceof lb)return r;t.log("debug","Context canceled"),t.stats.increment("context_canceled"),t.cancel(r)})}var yke=function(t){sa(e,t);function e(r){var n=t.call(this)||this;return n.criticalTasks=gke(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=r,n.queue.on(tG,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 jo)||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(x){r[x]!==void 0&&(S=r[x])}),(_=(b=r[p.name])!==null&&b!==void 0?b:S)!==null&&_!==void 0?_:(p.name==="Segment.io"?!0:r.All)!==!1}),i=pke(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,x;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(F1),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=xke(e,r,aG());this.queue.push(n),e.includes("error")&&this.flush().catch(F1)}},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){F1(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,Vy(n,{headers:r,body:JSON.stringify(e),method:"POST"})]})})},t}(),Og,oG=function(t){sa(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.initRemoteMetrics=function(r){Og=new Pke(r)},e.prototype.increment=function(r,n,i){t.prototype.increment.call(this,r,n,i),Og==null||Og.increment(r,i??[])},e}(rG),Fu=function(t){sa(e,t);function e(r,n){return t.call(this,r,n,new oG)||this}return e.system=function(){return new this({type:"track",event:"system"})},e}(lb),uG={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,x){var O=S[0],h=S[1],v=S[2],g=S[3];O+=(h&v|~h&g)+x[0]-680876936|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+x[1]-389564586|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+x[2]+606105819|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+x[3]-1044525330|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+x[4]-176418897|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+x[5]+1200080426|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+x[6]-1473231341|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+x[7]-45705983|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+x[8]+1770035416|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+x[9]-1958414417|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+x[10]-42063|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+x[11]-1990404162|0,h=(h<<22|h>>>10)+v|0,O+=(h&v|~h&g)+x[12]+1804603682|0,O=(O<<7|O>>>25)+h|0,g+=(O&h|~O&v)+x[13]-40341101|0,g=(g<<12|g>>>20)+O|0,v+=(g&O|~g&h)+x[14]-1502002290|0,v=(v<<17|v>>>15)+g|0,h+=(v&g|~v&O)+x[15]+1236535329|0,h=(h<<22|h>>>10)+v|0,O+=(h&g|v&~g)+x[1]-165796510|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+x[6]-1069501632|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+x[11]+643717713|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+x[0]-373897302|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+x[5]-701558691|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+x[10]+38016083|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+x[15]-660478335|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+x[4]-405537848|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+x[9]+568446438|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+x[14]-1019803690|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+x[3]-187363961|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+x[8]+1163531501|0,h=(h<<20|h>>>12)+v|0,O+=(h&g|v&~g)+x[13]-1444681467|0,O=(O<<5|O>>>27)+h|0,g+=(O&v|h&~v)+x[2]-51403784|0,g=(g<<9|g>>>23)+O|0,v+=(g&h|O&~h)+x[7]+1735328473|0,v=(v<<14|v>>>18)+g|0,h+=(v&O|g&~O)+x[12]-1926607734|0,h=(h<<20|h>>>12)+v|0,O+=(h^v^g)+x[5]-378558|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+x[8]-2022574463|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+x[11]+1839030562|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+x[14]-35309556|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+x[1]-1530992060|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+x[4]+1272893353|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+x[7]-155497632|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+x[10]-1094730640|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+x[13]+681279174|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+x[0]-358537222|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+x[3]-722521979|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+x[6]+76029189|0,h=(h<<23|h>>>9)+v|0,O+=(h^v^g)+x[9]-640364487|0,O=(O<<4|O>>>28)+h|0,g+=(O^h^v)+x[12]-421815835|0,g=(g<<11|g>>>21)+O|0,v+=(g^O^h)+x[15]+530742520|0,v=(v<<16|v>>>16)+g|0,h+=(v^g^O)+x[2]-995338651|0,h=(h<<23|h>>>9)+v|0,O+=(v^(h|~g))+x[0]-198630844|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+x[7]+1126891415|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+x[14]-1416354905|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+x[5]-57434055|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+x[12]+1700485571|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+x[3]-1894986606|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+x[10]-1051523|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+x[1]-2054922799|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+x[8]+1873313359|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+x[15]-30611744|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+x[6]-1560198380|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+x[13]+1309151649|0,h=(h<<21|h>>>11)+v|0,O+=(v^(h|~g))+x[4]-145523070|0,O=(O<<6|O>>>26)+h|0,g+=(h^(O|~v))+x[11]-1120210379|0,g=(g<<10|g>>>22)+O|0,v+=(O^(g|~h))+x[2]+718787259|0,v=(v<<15|v>>>17)+g|0,h+=(g^(v|~O))+x[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 x=[],O;for(O=0;O<64;O+=4)x[O>>2]=S.charCodeAt(O)+(S.charCodeAt(O+1)<<8)+(S.charCodeAt(O+2)<<16)+(S.charCodeAt(O+3)<<24);return x}function s(S){var x=[],O;for(O=0;O<64;O+=4)x[O>>2]=S[O]+(S[O+1]<<8)+(S[O+2]<<16)+(S[O+3]<<24);return x}function o(S){var x=S.length,O=[1732584193,-271733879,-1732584194,271733878],h,v,g,T,P,k;for(h=64;h<=x;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=x*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),P=parseInt(T[2],16),k=parseInt(T[1],16)||0,g[14]=P,g[15]=k,i(O,g),O}function u(S){var x=S.length,O=[1732584193,-271733879,-1732584194,271733878],h,v,g,T,P,k;for(h=64;h<=x;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=x*8,T=T.toString(16).match(/(.*?)(.{0,8})$/),P=parseInt(T[2],16),k=parseInt(T[1],16)||0,g[14]=P,g[15]=k,i(O,g),O}function c(S){var x="",O;for(O=0;O<4;O+=1)x+=n[S>>O*8+4&15]+n[S>>O*8&15];return x}function l(S){var x;for(x=0;xg?new ArrayBuffer(0):(T=g-v,P=new ArrayBuffer(T),k=new Uint8Array(P),w=new Uint8Array(this,v,T),k.set(w),P)}}();function d(S){return/[\u0080-\uFFFF]/.test(S)&&(S=unescape(encodeURIComponent(S))),S}function f(S,x){var O=S.length,h=new ArrayBuffer(O),v=new Uint8Array(h),g;for(g=0;g>2]|=x.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,x){var O=x,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,x){return _.hashBinary(d(S),x)},_.hashBinary=function(S,x){var O=o(S),h=l(O);return x?b(h):h},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(S){var x=m(this._buff.buffer,S,!0),O=x.length,h;for(this._length+=S.byteLength,h=64;h<=O;h+=64)i(this._hash,s(x.subarray(h-64,h)));return this._buff=h-64>2]|=x[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,x){var O=u(new Uint8Array(S)),h=l(O);return x?b(h):h},_})})(uG);var Cke=uG.exports;const Ake=li(Cke);var Mke=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)?TT(c,l,s[l]):TT(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=Z7(e,["options"]),d=ne(ne(ne({timestamp:new Date},l),{context:u,integrations:s}),c),f="ajs-next-"+Ake.hash(JSON.stringify(d)+uC()),p=ne(ne({},d),{messageId:f});return p},t}(),Ba={getItem:function(){},setItem:function(){},removeItem:function(){}};try{Ba=cC()&&window.localStorage?window.localStorage:Ba}catch(t){console.warn("Unable to access localStorage",t)}function cG(t){var e=Ba.getItem(t);return(e?JSON.parse(e):[]).map(function(r){return new Fu(r.event,r.id)})}function $ke(t,e){var r=cG(t),n=Or(Or([],e,!0),r,!0),i=n.reduce(function(a,s){var o;return ne(ne({},a),(o={},o[s.id]=s,o))},{});Ba.setItem(t,JSON.stringify(Object.values(i)))}function lG(t){var e=Ba.getItem(t);return e?JSON.parse(e):{}}function kke(t,e){var r=lG(t);Ba.setItem(t,JSON.stringify(ne(ne({},r),e)))}function bL(t){Ba.removeItem(t)}var Dke=function(){return new Date().getTime()};function xT(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=Ba.getItem(i),o=s?JSON.parse(s):null,u=o===null||a(o);if(u){Ba.setItem(i,JSON.stringify(Dke()+n)),e(),Ba.removeItem(i);return}!u&&r<3?setTimeout(function(){xT(t,e,r+1)},n):console.error("Unable to retrieve lock")}var Uy=function(t){sa(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 xT(n,function(){try{o=cG(a),u=lG(s),bL(a),bL(s),i.queue=Or(Or([],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=Or(Or([],i.queue,!0),i.future,!0);try{xT(n,function(){$ke(a,c),kke(s,i.seen)})}catch(l){console.error(l)}}}),i}return e}(zy),Ike=function(t){sa(e,t);function e(r){return t.call(this,typeof r=="string"?new Uy(4,r):r)||this}return e.prototype.flush=function(){return ue(this,void 0,void 0,function(){return ce(this,function(r){return cc()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(yke);function dC(t){for(var e=t.constructor.prototype,r=0,n=Object.getOwnPropertyNames(e);r"u")){s=Tg({},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 Nke(t){try{return new URL(t)}catch{return}}function dG(t){var e=Nke(t);if(e)for(var r=Lke(e),n=0;nPromise.resolve().then(()=>Eg),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.link).call.apply(a,Or([this],r,!1))]}})})},e.prototype.trackLink=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Eg),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.link).call.apply(a,Or([this],r,!1))]}})})},e.prototype.trackSubmit=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Eg),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.form).call.apply(a,Or([this],r,!1))]}})})},e.prototype.trackForm=function(){for(var r=[],n=0;nPromise.resolve().then(()=>Eg),void 0,import.meta.url)];case 1:return i=s.sent(),[2,(a=i.form).call.apply(a,Or([this],r,!1))]}})})},e.prototype.register=function(){for(var r=[],n=0;nPromise.resolve().then(()=>KDe),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(()=>RIe),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(Zs),Vke(H1??this),this},e.prototype.normalize=function(r){return console.warn(Zs),this.eventFactory.normalize(r)},Object.defineProperty(e.prototype,"failedInitializations",{get:function(){return console.warn(Zs),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"VERSION",{get:function(){return mp},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(Zs),[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(Zs),[4,this.page({path:r})];case 1:return n.sent(),[2,this]}})})},Object.defineProperty(e.prototype,"plugins",{get:function(){var r;return console.warn(Zs),(r=this._plugins)!==null&&r!==void 0?r:{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Integrations",{get:function(){console.warn(Zs);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}(aC);function gG(){return typeof process>"u"||!process.env?{}:process.env}var Wke=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,Yke=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=Wke.exec(i);a&&a[1]&&(t=a[1])}),t},Tv,Kke=function(){var t,e=Tv??((t=pC())===null||t===void 0?void 0:t._cdn);return e},qke=function(t){var e=pC();e&&(e._cdn=t),Tv=t},mC=function(){var t=Kke();if(t)return t;var e=Yke();return e||"https://cdn.segment.com"},gC=function(){var t=mC();return"".concat(t,"/next-integrations")};function vG(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 Xke=function(){var t,e,r=new Promise(function(n,i){t=n,e=i});return{resolve:t,reject:e,promise:r}},Jke=function(t,e){return Object.assign.apply(Object,Or([{}],e.map(function(r){var n;if(t&&Object.prototype.hasOwnProperty.call(t,r))return n={},n[r]=t[r],n}),!1))};function bG(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return t}}var Ff;function Zke(){if(Ff)return Ff;var t=dG(window.location.href);return Ff={expires:31536e6,secure:!1,path:"/"},t&&(Ff.domain=t),Ff}function Qke(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]=bG(s)}return e},{})}function iDe(){var t=hs.get("_ga");if(t&&t.startsWith("amp"))return t}function aDe(t,e,r){var n,i=new ju(r?[]:[new fG(Zke())]),a=i.get("s:context.referrer"),s=(n=Qke(t))!==null&&n!==void 0?n:a;s&&(e&&(e.referrer=ne(ne({},e.referrer),s)),i.set("s:context.referrer",s))}var sDe=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=rDe(),c;s.type==="page"&&(c=s.properties&&Jke(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(aG()==="web"?"next":"npm:next","-").concat(mp)}),l&&!o.campaign&&(o.campaign=nDe(l));var f=iDe();return f&&(o.amp={id:f}),aDe(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}(),oDe=new sDe;function _G(t){var e=Array.prototype.slice.call(window.document.querySelectorAll("script"));return e.find(function(r){return r.src===t})}function Wl(t,e){var r=_G(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};Vt.userAgent=fi.proxy("context.userAgent");Vt.timezone=fi.proxy("context.timezone");Vt.timestamp=fi.field("timestamp");Vt.channel=fi.field("channel");Vt.ip=fi.proxy("context.ip");Vt.userId=fi.field("userId");SDe.default(Vt);function $T(t){return wd.clone(t)}var Ky={},kT={exports:{}};typeof Object.create=="function"?kT.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:kT.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 Tc=kT.exports,xDe=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ky,"__esModule",{value:!0});Ky.Alias=void 0;var PDe=xDe(Tc),TG=Ga;function Wi(t,e){TG.Facade.call(this,t,e)}Ky.Alias=Wi;PDe.default(Wi,TG.Facade);Wi.prototype.action=function(){return"alias"};Wi.prototype.type=Wi.prototype.action;Wi.prototype.previousId=function(){return this.field("previousId")||this.field("from")};Wi.prototype.from=Wi.prototype.previousId;Wi.prototype.userId=function(){return this.field("userId")||this.field("to")};Wi.prototype.to=Wi.prototype.userId;var qy={},Hd={};Object.defineProperty(Hd,"__esModule",{value:!0});var CDe=/.+\@.+\..+/;function ADe(t){return CDe.test(t)}Hd.default=ADe;var OC=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qy,"__esModule",{value:!0});qy.Group=void 0;var MDe=OC(Tc),$De=OC(Hd),kDe=OC(wC),zd=Ga;function TC(t,e){zd.Facade.call(this,t,e)}qy.Group=TC;MDe.default(TC,zd.Facade);var Yi=TC.prototype;Yi.action=function(){return"group"};Yi.type=Yi.action;Yi.groupId=zd.Facade.field("groupId");Yi.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return kDe.default(t)};Yi.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();if($De.default(e))return e};Yi.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};Yi.name=zd.Facade.proxy("traits.name");Yi.industry=zd.Facade.proxy("traits.industry");Yi.employees=zd.Facade.proxy("traits.employees");Yi.properties=function(){return this.field("traits")||this.field("properties")||{}};var Xp={},Xy=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xp,"__esModule",{value:!0});Xp.Identify=void 0;var Wa=Ga,Yl=Xy(Gy),DDe=Xy(Tc),IDe=Xy(Hd),EG=Xy(wC),Hu=function(t){return t.trim()};function EC(t,e){Wa.Facade.call(this,t,e)}Xp.Identify=EC;DDe.default(EC,Wa.Facade);var Ut=EC.prototype;Ut.action=function(){return"identify"};Ut.type=Ut.action;Ut.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};Ut.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();if(IDe.default(e))return e};Ut.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return EG.default(t)};Ut.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return EG.default(t)};Ut.companyName=function(){return this.proxy("traits.company.name")};Ut.name=function(){var t=this.proxy("traits.name");if(typeof t=="string")return Hu(t);var e=this.firstName(),r=this.lastName();if(e&&r)return Hu(e+" "+r)};Ut.firstName=function(){var t=this.proxy("traits.firstName");if(typeof t=="string")return Hu(t);var e=this.proxy("traits.name");if(typeof e=="string")return Hu(e).split(" ")[0]};Ut.lastName=function(){var t=this.proxy("traits.lastName");if(typeof t=="string")return Hu(t);var e=this.proxy("traits.name");if(typeof e=="string"){var r=Hu(e).indexOf(" ");if(r!==-1)return Hu(e.substr(r+1))}};Ut.uid=function(){return this.userId()||this.username()||this.email()};Ut.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")};Ut.age=function(){var t=this.birthday(),e=Yl.default(this.traits(),"age");if(e!=null)return e;if(t instanceof Date){var r=new Date;return r.getFullYear()-t.getFullYear()}};Ut.avatar=function(){var t=this.traits();return Yl.default(t,"avatar")||Yl.default(t,"photoUrl")||Yl.default(t,"avatarUrl")};Ut.position=function(){var t=this.traits();return Yl.default(t,"position")||Yl.default(t,"jobTitle")};Ut.username=Wa.Facade.proxy("traits.username");Ut.website=Wa.Facade.one("traits.website");Ut.websites=Wa.Facade.multi("traits.website");Ut.phone=Wa.Facade.one("traits.phone");Ut.phones=Wa.Facade.multi("traits.phone");Ut.address=Wa.Facade.proxy("traits.address");Ut.gender=Wa.Facade.proxy("traits.gender");Ut.birthday=Wa.Facade.proxy("traits.birthday");var Vd={},xC=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vd,"__esModule",{value:!0});Vd.Track=void 0;var RDe=xC(Tc),jr=Ga,LDe=Xp,NDe=xC(Hd),xG=xC(Gy);function PC(t,e){jr.Facade.call(this,t,e)}Vd.Track=PC;RDe.default(PC,jr.Facade);var Be=PC.prototype;Be.action=function(){return"track"};Be.type=Be.action;Be.event=jr.Facade.field("event");Be.value=jr.Facade.proxy("properties.value");Be.category=jr.Facade.proxy("properties.category");Be.id=jr.Facade.proxy("properties.id");Be.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")};Be.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")};Be.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")};Be.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")};Be.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")};Be.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")};Be.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")};Be.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")};Be.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")};Be.sku=jr.Facade.proxy("properties.sku");Be.tax=jr.Facade.proxy("properties.tax");Be.name=jr.Facade.proxy("properties.name");Be.price=jr.Facade.proxy("properties.price");Be.total=jr.Facade.proxy("properties.total");Be.repeat=jr.Facade.proxy("properties.repeat");Be.coupon=jr.Facade.proxy("properties.coupon");Be.shipping=jr.Facade.proxy("properties.shipping");Be.discount=jr.Facade.proxy("properties.discount");Be.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")};Be.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")};Be.description=jr.Facade.proxy("properties.description");Be.plan=jr.Facade.proxy("properties.plan");Be.subtotal=function(){var t=xG.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};Be.products=function(){var t=this.properties(),e=xG.default(t,"products");return Array.isArray(e)?e.filter(function(r){return r!==null}):[]};Be.quantity=function(){var t=this.obj.properties||{};return t.quantity||1};Be.currency=function(){var t=this.obj.properties||{};return t.currency||"USD"};Be.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};Be.query=jr.Facade.proxy("options.query");Be.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};Be.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()};Be.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(NDe.default(e))return e};Be.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")),BDe(t)};Be.cents=function(){var t=this.revenue();return typeof t!="number"?this.value()||0:t*100};Be.identify=function(){var t=this.json();return t.traits=this.traits(),new LDe.Identify(t,this.opts)};function BDe(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 Jp={},PG=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jp,"__esModule",{value:!0});Jp.Page=void 0;var FDe=PG(Tc),Ec=Ga,jDe=Vd,HDe=PG(Hd);function CC(t,e){Ec.Facade.call(this,t,e)}Jp.Page=CC;FDe.default(CC,Ec.Facade);var Nn=CC.prototype;Nn.action=function(){return"page"};Nn.type=Nn.action;Nn.category=Ec.Facade.field("category");Nn.name=Ec.Facade.field("name");Nn.title=Ec.Facade.proxy("properties.title");Nn.path=Ec.Facade.proxy("properties.path");Nn.url=Ec.Facade.proxy("properties.url");Nn.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")};Nn.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};Nn.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();if(HDe.default(e))return e};Nn.fullName=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e};Nn.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"};Nn.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new jDe.Track(e,this.opts)};var Jy={},zDe=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jy,"__esModule",{value:!0});Jy.Screen=void 0;var VDe=zDe(Tc),CG=Jp,UDe=Vd;function lc(t,e){CG.Page.call(this,t,e)}Jy.Screen=lc;VDe.default(lc,CG.Page);lc.prototype.action=function(){return"screen"};lc.prototype.type=lc.prototype.action;lc.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"};lc.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new UDe.Track(e,this.opts)};var Zy={},GDe=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.Delete=void 0;var WDe=GDe(Tc),AG=Ga;function AC(t,e){AG.Facade.call(this,t,e)}Zy.Delete=AC;WDe.default(AC,AG.Facade);AC.prototype.type=function(){return"delete"};(function(t){var e=Oe&&Oe.__assign||function(){return e=Object.assign||function(l){for(var d,f=1,p=arguments.length;f=tIe-50}function nIe(t){var e=[],r=0;return t.forEach(function(n){var i=MG(e[r]);i>=64&&r++,e[r]?e[r].push(n):e[r]=[n]}),e}function iIe(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 x=S;x.sentAt;var O=Z7(x,["sentAt"]);return O});return Vy("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))}eIe(function(p){if(a=p,a&&i.length){var m=nIe(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||rIe(i),[2,b||a?c():d()]})})}return{dispatch:f}}function aIe(t){function e(r,n){return Vy(r,{keepalive:t==null?void 0:t.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(n)})}return{dispatch:e}}function sIe(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&&!cc()},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,Gl(a,t)]:[2];case 1:return s=u.sent(),o=s instanceof Fu,o||r.push(a),[2]}})})})];case 1:return i.sent(),r.map(function(a){return e.pushWithBackoff(a)}),[2,e]}})})}function ul(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,oIe(r,e)];case 1:return s=o.sent(),a=!1,e.todo>0&&n(a,s,r,n),[2]}})})},Math.random()*5e3)}function uIe(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 cIe(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 lIe(t,e,r){var n,i,a;return ue(this,void 0,void 0,function(){function s(x){return ue(this,void 0,void 0,function(){var O,h;return ce(this,function(v){return cc()?(u.push(x),ul(l,u,S,ul),[2,x]):(c.add(x),O=x.event.type.charAt(0),_&&x.event.context&&(x.event.context.userAgentData=_),h=db(x.event).json(),x.event.type==="track"&&delete h.traits,x.event.type==="alias"&&(h=cIe(t,h)),[2,b.dispatch("".concat(p,"/").concat(O),sIe(t,h,e,r)).then(function(){return x}).catch(function(){return u.pushWithBackoff(x),ul(l,u,S,ul),x}).finally(function(){c.delete(x)})])})})}var o,u,c,l,d,f,p,m,b,_,S;return ce(this,function(x){switch(x.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 Uy(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:sG,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"?iIe(d,m.config):aIe(m==null?void 0:m.config),x.label=1;case 1:return x.trys.push([1,3,,4]),[4,uIe(t.options.highEntropyValuesClientHints)];case 2:return _=x.sent(),[3,4];case 3:return x.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&&ul(l,u,S,ul),[2,S]}})})}function cl(t){var e,r=t.event;ake(r),ske(r),r.type==="track"&&oke(r);var n=(e=r.properties)!==null&&e!==void 0?e:r.traits;if(r.type!=="alias"&&!ai(n))throw new uc(".properties","is not an object");return ike(r),t}var dIe={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:cl,identify:cl,page:cl,alias:cl,group:cl,screen:cl},fIe=function(t){return typeof t=="object"&&t!==null&&"then"in t&&typeof t.then=="function"},kG=function(t,e,r){r.getCalls(t).forEach(function(n){$C(e,n).catch(console.error)})},hIe=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 EIe(t){var e,r,n;return gG().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 xIe(t,e){e.push.apply(e,DT()),mIe(t,e),pIe(t,e)}function PIe(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,DT()),[4,hIe(t,e)];case 1:return r.sent(),e.push.apply(e,DT()),gIe(t,e),e.clear(),[2]}})})}function CIe(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,x,O,h,v,g,T,P,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"}),EIe(e)?[4,wi(()=>Promise.resolve().then(()=>iNe),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,TIe(e)||s.length>0?[4,wi(()=>Promise.resolve().then(()=>mNe),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,wi(()=>Promise.resolve().then(()=>vNe),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,wi(()=>Promise.resolve().then(()=>_Ne),void 0,import.meta.url).then(function(A){var C;return A.schemaFilter((C=n.plan)===null||C===void 0?void 0:C.track,e)})]:[3,10];case 9:return S=w.sent(),[3,11];case 10:S=void 0,w.label=11;case 11:return _=S,x=vG(e,i),[4,QDe(e,r.integrations,x,i.obfuscate,f,d).catch(function(){return[]})];case 12:return O=w.sent(),h=Or(Or(Or([dIe,oDe],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,lIe(r,x["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 P=w.sent(),Object.entries((c=e.enabledMiddleware)!==null&&c!==void 0?c:{}).some(function(A){var C=A[1];return C})?[4,wi(()=>Promise.resolve().then(()=>SNe),void 0,import.meta.url).then(function(A){var C=A.remoteMiddlewares;return ue(k,void 0,void 0,function(){var E,$;return ce(this,function(D){switch(D.label){case 0:return[4,C(P,e,i.obfuscate)];case 1:return E=D.sent(),$=E.map(function(M){return r.addSourceMiddleware(M)}),[2,Promise.all($)]}})})})]:[3,17];case 16:w.sent(),w.label=17;case 17:return[2,P]}})})}function AIe(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,x,O,h;return ce(this,function(v){switch(v.label){case 0:return e.globalAnalyticsKey&&zke(e.globalAnalyticsKey),t.cdnURL&&qke(t.cdnURL),(n=t.cdnSettings)!==null&&n!==void 0?(d=n,[3,3]):[3,1];case 1:return[4,OIe(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 Gke(t,p),SIe(m),b=(s=t.plugins)!==null&&s!==void 0?s:[],_=(o=t.classicIntegrations)!==null&&o!==void 0?o:[],oG.initRemoteMetrics(l.metrics),xIe(m,r),[4,CIe(t.writeKey,l,m,p,e,b,_)];case 4:return S=v.sent(),x=(u=window.location.search)!==null&&u!==void 0?u:"",O=(c=window.location.hash)!==null&&c!==void 0?c:"",h=x.length?x: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,PIe(m,r)];case 7:return v.sent(),[2,[m,S]]}})})}var qNe=function(t){sa(e,t);function e(){var r=this,n=Xke(),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 AIe(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}(bIe);function MIe(t){var e=t;return!!(e.ctrlKey||e.shiftKey||e.metaKey||e.button&&e.button==1)}function $Ie(t,e){return!!(t.target==="_blank"&&e)}function kIe(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=oC(i.track(l,d,n??{}),(c=i.settings.timeout)!==null&&c!==void 0?c:500);!$Ie(s,f)&&!MIe(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 DIe(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=oC(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 Eg=Object.freeze(Object.defineProperty({__proto__:null,form:DIe,link:kIe},Symbol.toStringTag,{value:"Module"}));function xL(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 IIe(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]=bG(T),O},{}),a=[],s=i.ajs_uid,o=i.ajs_event,u=i.ajs_aid,c=ai(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 _=xL("ajs_trait_",i);a.push(t.identify(b,_))}}if(o){var S=Array.isArray(i.ajs_event)?i.ajs_event[0]:i.ajs_event,x=xL("ajs_prop_",i);a.push(t.track(S,x))}return Promise.all(a)}const RIe=Object.freeze(Object.defineProperty({__proto__:null,queryString:IIe},Symbol.toStringTag,{value:"Module"}));var Ev={},kC={};for(var DG=[],Mu=0;Mu<64;)DG[Mu]=0|4294967296*Math.sin(++Mu%Math.PI);function LIe(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(Mu=s=0;Mu>4]+DG[s]+~~a[Mu|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 NIe=Object.freeze(Object.defineProperty({__proto__:null,default:LIe},Symbol.toStringTag,{value:"Module"})),BIe=rle(NIe);var IG={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-aLe|0}var oLe=sLe;/** * @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 uLe=oLe,cLe=uLe;/** * @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 lLe=jIe,dLe=GIe,fLe=YIe,hLe=qIe,pLe=JIe,mLe=QIe,gLe=LG,vLe=NG,bLe=I3e,yLe=Z3e,_Le=cLe,wLe=WG,SLe=ZG,OLe=2220446049250313e-31,TLe=2148532223,K1=[0,0],q1=[0,0];function ELe(t,e){var r,n;return t===0||gLe(t)||vLe(t)?t:(yLe(K1),t=K1[0],e+=K1[1],e+=_Le(t),ehLe?t<0?dLe:lLe:(e<=pLe?(e+=52,n=OLe):n=1,wLe(q1),r=q1[0],r&=TLe,r|=e+fLe<<20,n*SLe(r,q1[1])))}var xLe=ELe;/** * @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 PLe=xLe,CLe=PLe,tW={};function ALe(t,e,r){e.split&&(e=e.split("."));for(var n=0,i=e.length,a=t,s,o;n1?(a.pop(),s=(0,Ll.default)(r,a.join("."))):s=t,typeof s=="object"){if(i.copy){var o=(0,Ll.default)(r,i.copy);o!==void 0&&(0,Hf.dset)(t,n,o)}else if(i.move){var u=(0,Ll.default)(r,i.move);u!==void 0&&(0,Hf.dset)(t,n,u),(0,RLe.unset)(t,i.move)}else i.hasOwnProperty("set")&&(0,Hf.dset)(t,n,i.set);if(i.to_string){var c=(0,Ll.default)(t,n);if(typeof c=="string"||typeof c=="object"&&c!==null)continue;c!==void 0?(0,Hf.dset)(t,n,JSON.stringify(c)):(0,Hf.dset)(t,n,"undefined")}}}}function jLe(t,e){return e.sample.percent<=0?!1:e.sample.percent>=1?!0:e.sample.path?zLe(t,e):HLe(e.sample.percent)}function HLe(t){return Math.random()<=t}function zLe(t,e){var r=(0,Ll.default)(t,e.sample.path),n=(0,DLe.default)(JSON.stringify(r)),i=-64,a=[];NL(n.slice(0,8),a);for(var s=0,o=0;o<64&&a[o]!==1;o++)s++;if(s!==0){var u=[];NL(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,ILe.default)(parseInt(a.join(""),2),i)=1;i/=2)n-i>=0?(n-=i,e.push(1)):e.push(0)}var BC={},VLe=Oe&&Oe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BC,"__esModule",{value:!0});var ULe=VLe(DC);function GLe(t,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return WLe();case"fql":return YLe(e.ir,t);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}}BC.default=GLe;function WLe(){return!0}function YLe(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=Co(t,e);return typeof r!="boolean"?!1:r}function Co(t,e){if(!Array.isArray(t))return nn(t,e)===!0;var r=t[0];switch(r){case"!":return!Co(t[1],e);case"or":for(var n=1;n":case">=":return qLe(nn(t[1],e),nn(t[2],e),r,e);case"in":return KLe(nn(t[1],e),nn(t[2],e),e);case"contains":return JLe(nn(t[1],e),nn(t[2],e));case"match":return ZLe(nn(t[1],e),nn(t[2],e));case"lowercase":var i=nn(t[1],e);return typeof i!="string"?null:i.toLowerCase();case"typeof":return typeof nn(t[1],e);case"length":return QLe(nn(t[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(r))}}function nn(t,e){return Array.isArray(t)?t:typeof t=="object"?t.value:(0,ULe.default)(e,t)}function KLe(t,e,r){return e.find(function(n){return nn(n,r)===t})!==void 0}function qLe(t,e,r,n){if(fb(t)&&(t=Co(t,n)),fb(e)&&(e=Co(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 XLe(t,e,r,n){switch(fb(t)&&(t=Co(t,n)),fb(e)&&(e=Co(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 JLe(t,e){return typeof t!="string"||typeof e!="string"?!1:t.indexOf(e)!==-1}function ZLe(t,e){return typeof t!="string"||typeof e!="string"?!1:eNe(e,t)}function QLe(t){return t===null?0:!Array.isArray(t)&&typeof t!="string"?NaN:t.length}function fb(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 eNe(t,e){var r,n;e:for(;t.length>0;){var i=void 0,a=void 0;if(r=tNe(t),i=r.star,a=r.chunk,t=r.pattern,i&&a==="")return!0;var s=BL(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 tNe(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=FL(t),c=r.char,t=r.newChunk,d=r.err,d||(l=c,t[0]==="-"&&(n=FL(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 FL(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 FC={};Object.defineProperty(FC,"__esModule",{value:!0});var rNe=function(){function t(e){this.rules=[],this.rules=e||[]}return t.prototype.getRulesByDestinationName=function(e){for(var r=[],n=0,i=this.rules;n0&&iG()},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,Gl(a,t)]:[2];case 1:return s=u.sent(),o=s instanceof Fu,o||r.push(a),[2]}})})})];case 1:return i.sent(),r.map(function(a){return e.pushWithBackoff(a)}),[2,e]}})})}var sW=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 Uy(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,uNe(e,this.name,this.version,this.options.obfuscate)];case 2:a=o.sent(),o.label=3;case 3:i=a,this.integration=oNe(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 cNe(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 pNe(t,e,r,n,i,a){var s,o;if(r===void 0&&(r={}),n===void 0&&(n={}),nG())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=vG(e,n??{}),f=a==null?void 0:a.reduce(function(m,b){var _;return ne(ne({},m),(_={},_[aNe(b)]=b,_))},{}),p=new Set(Or(Or([],Object.keys(c).filter(function(m){return dNe(m,c[m])}),!0),Object.keys(f||{}).filter(function(m){return ai(c[m])||ai(l==null?void 0:l[m])}),!0));return Array.from(p).filter(function(m){return!fNe(m,r)}).map(function(m){var b=c[m],_=lNe(b),S=new sW(m,_,t,d[m],n,f==null?void 0:f[m]),x=u.filter(function(O){return O.destinationName===m});return x.length>0&&i&&S.addMiddleware(i),S})}const mNe=Object.freeze(Object.defineProperty({__proto__:null,LegacyDestination:sW,ajsDestinations:pNe},Symbol.toStringTag,{value:"Module"}));function gNe(t){return ue(this,void 0,void 0,function(){var e;return ce(this,function(r){switch(r.label){case 0:return[4,wi(()=>Promise.resolve().then(()=>TNe),void 0,import.meta.url)];case 1:return e=r.sent(),t._plugins=e,[2]}})})}const vNe=Object.freeze(Object.defineProperty({__proto__:null,loadLegacyVideoPlugins:gNe},Symbol.toStringTag,{value:"Module"}));function bNe(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 yNe(t,e){function r(n){var i=t,a=n.event.event;if(i&&a){var s=i[a];if(nW(i,s)){var o=bNe(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 _Ne=Object.freeze(Object.defineProperty({__proto__:null,schemaFilter:yNe},Symbol.toStringTag,{value:"Module"}));function wNe(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 nG()?[2,[]]:(i=gC(),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,Wl(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 SNe=Object.freeze(Object.defineProperty({__proto__:null,remoteMiddlewares:wNe},Symbol.toStringTag,{value:"Module"}));var oW={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,x,O){m.push(x=x.toLowerCase()),b.push([x,O]),p=_[x],_[x]=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}])})})(oW);var uW=oW.exports;const ONe=li(uW),TNe=bW({__proto__:null,default:ONe},[uW]);export{In as A,h6 as B,bu as C,YS as D,uk as E,WNe as F,u5 as G,kNe as H,YNe as I,KNe as J,rv as K,qNe as L,MNe as M,$Ne as N,LNe as O,DNe as S,V,wi as _,INe as a,RNe as b,Rd as c,NNe as d,xNe as e,ANe as f,cee as g,m5 as h,GJ as i,Qne as j,rie as k,BNe as l,Y5 as m,$6 as n,PNe as o,CNe as p,HI as q,zNe as r,UNe as s,FNe as t,jNe as u,VNe as v,GNe as w,twe as x,Vhe as y,G5 as z};