PageSourceSearch

https://www.ajtuotteet.fi/assets/549.bundle.5dd451b48e5b7fe4779f.js

js ajtuotteet.fi collected 2026-09-26 18:03:08 UTC 252,267 bytes, 3 lines download raw bytes

1/*! For license information please see 549.bundle.5dd451b48e5b7fe4779f.js.LICENSE.txt */
2(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[549],{23379(e,t,n){"use strict";n.d(t,{WB:()=>y,Wl:()=>v,vN:()=>l,sT:()=>u,ob:()=>s,kr:()=>g,bz:()=>m,Bw:()=>h,ju:()=>f,Vy:()=>d});var r=n(63696),i=n(30561),o=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})};const a=["updateCartItemQuantity","addToCart","removeFromCart","addDiscountCode","addGiftCard","removeDiscountCode","removeGiftCardCode","setAdditionalData","setShippingPluginAdditionalData","setBillingAddress","setPaymentMethodId","setPaymentGatewayData","setIdentificationNumber","lookupAddress","setShippingMethodId","setShippingAddress","useDifferentShippingAddress","completePurchase","reload","reloadCart","reloadCheckout","lockPage","unlockPage","showModal","hideModal","setValidationErrors","registerCompletePurchaseHandler","registerPurchaseParameterProvider","registerPurchaseProcessor","onStateChange"];const s=r.createContext({}),c=r.createContext({});class u extends r.Component{constructor(e){super(e);const t=function(e,t){let r=null,i=!1;const s={};a.forEach(a=>{s[a]=(...s)=>o(this,void 0,void 0,function*(){r||(r=yield n.e(6013).then(n.bind(n,26013)),i||(i=!0,t(c)));const o=r[a];return o(...s.slice(0,o.length-1),e)})});const c=s;return c}(e.parameters,e=>{e.onStateChange(e=>(e.isInSyncWithServer&&!this.state.isInSyncWithServer&&(this.state.checkoutData?(0,i.oek)({name:"checkout-modified-data",data:this.state.checkoutData,runImmediately:!1}):(0,i.u1e)("checkout-modified")),new Promise(t=>{this.setState(e,t)})))});this.actions=e.augumentActions?e.augumentActions(t):t,(0,i.GAL)("checkout-modified-data",(t,n)=>{e.parameters.setCheckoutData(n),e.parameters.setCart(n)}),(0,i.GAL)("checkout-modified",()=>{t.reload(!0)}),this.actions.secretSetCheckoutDataDontUseOrYouWillBeFired=e=>{const t=this.state;if(t.checkoutData){if(t.checkoutData!==e)return new Promise(t=>this.setState({checkoutData:e},t))}else t.checkoutData=e;return Promise.resolve()},this.state={isUpdating:!1,isInSyncWithServer:!0,validationErrors:[],isLocked:!1,checkoutData:null,activeModal:null}}render(){return r.createElement(s.Provider,{value:{actions:this.actions,state:this.state}},r.createElement(c.Provider,{value:this.actions},this.props.children))}}const l=e=>r.createElement(s.Consumer,null,e.children);function d(){return r.useContext(s).state}function f(){return r.useContext(c)}var p=function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})};function h(e){return function(t){const[n,i]=(0,r.useState)(!1),{actions:o}=(0,r.useContext)(s);return(0,r.useEffect)(()=>{const e=window.location.search.match(/[\?|\&]errors=([^\&]+)/),t=e?e[1]:null;if(t){try{const e=JSON.parse(decodeURIComponent(t.replace(/\+/g,"%20")));o.setValidationErrors(e)}catch(e){}if(history.replaceState){let e=window.location.search.replace(/[\?|\&]errors=([^\&]+)/,"");"&"===e[0]&&(e="?"+e.substr(1));const t=window.location.href.replace(window.location.search,e);history.replaceState(history.state,document.title,t)}}return()=>{o.setValidationErrors([])}},[]),(0,r.useEffect)(()=>{(()=>{p(this,void 0,void 0,function*(){yield o.secretSetCheckoutDataDontUseOrYouWillBeFired(t.checkoutData),i(!0)})})()},[t.checkoutData,o]),n?r.createElement(e,Object.assign({},t)):null}}function g(e){return r.createElement(l,null,({state:{checkoutData:t}})=>{if(!t.canProceedWithPurchase)return null;const n=t.paymentMethods.find(e=>e.id===t.paymentMethodId);if(t.leftToPay>0||n&&n.hasAddressInput){const o=(t.leftToPay>0?t.paymentMethods:n?[n]:[]).map(e=>{const t=(0,i.VMO)(e.componentName);return r.createElement(t,Object.assign({key:e.id},e))});return e.renderPaymentMethods(o)}return e.renderNothingToPay()})}function m(e){return r.createElement(l,null,({state:{checkoutData:t}})=>{if(!t.canProceedWithPurchase)return null;const n=t.paymentMethods.find(e=>e.id===t.paymentMethodId);if(n&&n.hasShippingMethodSelection)return null;const o=t.shippingMethods.map(e=>{const t=(0,i.VMO)(e.componentName);return r.createElement(t,Object.assign({key:e.id},e))});return e.children(o)})}function y(e){return r.createElement(l,null,({state:{checkoutData:t}})=>{if(!t.canProceedWithPurchase)return null;const n=t.paymentMethods.find(e=>e.id===t.paymentMethodId);if(null==n?void 0:n.hasAddressInput)return null;const r=t.shippingMethods.find(e=>e.id===t.shippingMethodId);return(null==r?void 0:r.hasAddressInput)?null:e.children})}function v(e){return r.createElement(l,null,({state:{checkoutData:t}})=>{if(!t.canProceedWithPurchase)return null;const n=t.paymentMethods.find(e=>e.id===t.paymentMethodId);return n&&n.hasBuyButton?null:e.children})}},69683(e,t,n){"use strict";n.d(t,{default:()=>c});var r=n(63696),i=n(95082),o=n(58727),a=n(73160),s=n(59526);function c(e){return(0,s.uZ)({experimentationKey:e.experimentationKey,flagKey:e.flagKey,variationKey:e.variationKey}),r.createElement(o.C,{clickEventName:e.clickEventName},r.createElement(i.fi,Object.assign({},e.items,{component:t=>r.createElement("div",Object.assign({},t,{onClick:t=>{(0,a.c)(e.clickEventName,t),(0,s.QW)({experimentationKey:e.experimentationKey,flagKey:e.flagKey,variationKey:e.variationKey},t)}}))})))}},58727(e,t,n){"use strict";n.d(t,{C:()=>o});var r=n(63696);const i=r.createContext({clickEventName:null}),o=({clickEventName:e,children:t})=>{const n=r.useMemo(()=>({clickEventName:e}),[e]);return r.createElement(i.Provider,{value:n},t)}},59526(e,t,n){"use strict";n.d(t,{QW:()=>l,s9:()=>c,uZ:()=>u});var r=n(30561),i=n(63696);let o,a={trackExperienceImpressionMultipleTimes:!1},s=[];function c(e,t){o=e,a=Object.assign(a,t)}function u(e,t=a.trackExperienceImpressionMultipleTimes){(0,i.useEffect)(()=>{e&&function(e,t=!0){(0,r.BdH)()&&o&&function(e,t){return!!t||!s.includes(e)}(e.exp_key,t)&&(o(e),s.push(e.exp_key))}({event:"experience_impression",exp_key:e.experimentationKey,flag_
2key:e.flagKey,exp_variant_string:e.variationKey},t)},[null==e?void 0:e.experimentationKey,null==e?void 0:e.flagKey,null==e?void 0:e.variationKey])}function l(e,t){e&&o&&(!t||(0,r.SHR)(t))&&o({event:"experience_cms_click_impression",exp_key:e.experimentationKey,flag_key:e.flagKey,exp_variant_string:e.variationKey},!1)}},47222(e,t,n){"use strict";n.d(t,{s9:()=>r.s9});n(69683);var r=n(59526);n(58727),n(73160)},73160(e,t,n){"use strict";n.d(t,{c:()=>a});n(63696);var r=n(30561);n(58727);const i="/FeatureExperimentationABTestBlock".toLocaleLowerCase(),o="ClickOnBlock".toLocaleLowerCase();function a(e,t){e&&(t&&!(0,r.SHR)(t)||(0,r.B2D)((0,r.hdP)(i,o),{eventName:e}))}},21489(e,t,n){"use strict";n.d(t,{UE:()=>$,ll:()=>V,rD:()=>Q,UU:()=>W,jD:()=>X,ER:()=>K,cY:()=>B,BN:()=>H,Ej:()=>G});const r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,s=Math.floor,c=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},l={start:"end",end:"start"};function d(e,t,n){return o(e,i(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return g(y(e))}function w(e){return e.replace(/start|end/g,e=>l[e])}function b(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function _(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function x(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function I(e,t,n){let{reference:r,floating:i}=e;const o=y(t),a=v(t),s=m(a),c=p(t),u="y"===o,l=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let g;switch(c){case"top":g={x:l,y:r.y-i.height};break;case"bottom":g={x:l,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-i.width,y:d};break;default:g={x:r.x,y:r.y}}switch(h(t)){case"start":g[a]-=f*(n&&u?-1:1);break;case"end":g[a]+=f*(n&&u?-1:1)}return g}async function E(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),g=_(h),m=s[p?"floating"===d?"reference":"floating":d],y=x(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(w))&&await(null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},I=x(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:w,strategy:c}):v);return{top:(y.top-I.top+g.top)/b.y,bottom:(I.bottom-y.bottom+g.bottom)/b.y,left:(y.left-I.left+g.left)/b.x,right:(I.right-y.right+g.right)/b.x}}function S(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return r.some(t=>e[t]>=0)}var k=n(27382);function T(e){const t=(0,k.L9)(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=(0,k.sb)(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function D(e){return(0,k.vq)(e)?e:e.contextElement}function R(e){const t=D(e);if(!(0,k.sb)(t))return c(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=T(t);let s=(o?a(n.width):n.width)/r,u=(o?a(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}const A=c(0);function P(e){const t=(0,k.zk)(e);return(0,k.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:A}function M(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=D(e);let a=c(1);t&&(r?(0,k.vq)(r)&&(a=R(r)):a=R(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,k.zk)(e))&&t}
2(o,n,r)?P(o):c(0);let u=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){const e=(0,k.zk)(o),t=r&&(0,k.vq)(r)?(0,k.zk)(r):r;let n=e,i=(0,k._m)(n);for(;i&&r&&t!==n;){const e=R(i),t=i.getBoundingClientRect(),r=(0,k.L9)(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,l*=e.y,d*=e.x,f*=e.y,u+=o,l+=a,n=(0,k.zk)(i),i=(0,k._m)(n)}}return x({width:d,height:f,x:u,y:l})}function N(e,t){const n=(0,k.CP)(e).scrollLeft;return t?t.left+n:M((0,k.ep)(e)).left+n}function O(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=(0,k.zk)(e),r=(0,k.ep)(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){o=i.width,a=i.height;const e=(0,k.Tc)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:o,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=(0,k.ep)(e),n=(0,k.CP)(e),r=e.ownerDocument.body,i=o(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=o(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+N(e);const c=-n.scrollTop;return"rtl"===(0,k.L9)(r).direction&&(s+=o(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:c}}((0,k.ep)(e));else if((0,k.vq)(t))r=function(e,t){const n=M(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=(0,k.sb)(e)?R(e):c(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=P(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return x(r)}function L(e,t){const n=(0,k.$4)(e);return!(n===t||!(0,k.vq)(n)||(0,k.eu)(n))&&("fixed"===(0,k.L9)(n).position||L(n,t))}function U(e,t,n){const r=(0,k.sb)(t),i=(0,k.ep)(t),o="fixed"===n,a=M(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const u=c(0);if(r||!r&&!o)if(("body"!==(0,k.mq)(t)||(0,k.ZU)(i))&&(s=(0,k.CP)(t)),r){const e=M(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=N(i));let l=0,d=0;if(i&&!r&&!o){const e=i.getBoundingClientRect();d=e.top+s.scrollTop,l=e.left+s.scrollLeft-N(i,e)}return{x:a.left+s.scrollLeft-u.x-l,y:a.top+s.scrollTop-u.y-d,width:a.width,height:a.height}}function j(e){return"static"===(0,k.L9)(e).position}function q(e,t){if(!(0,k.sb)(e)||"fixed"===(0,k.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,k.ep)(e)===n&&(n=n.ownerDocument.body),n}function F(e,t){const n=(0,k.zk)(e);if((0,k.Tf)(e))return n;if(!(0,k.sb)(e)){let t=(0,k.$4)(e);for(;t&&!(0,k.eu)(t);){if((0,k.vq)(t)&&!j(t))return t;t=(0,k.$4)(t)}return n}let r=q(e,t);for(;r&&(0,k.Lv)(r)&&j(r);)r=q(r,t);return r&&(0,k.eu)(r)&&j(r)&&!(0,k.sQ)(r)?n:r||(0,k.gJ)(e)||n}const z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=(0,k.ep)(r),s=!!t&&(0,k.Tf)(t.floating);if(r===a||s&&o)return n;let u={scrollLeft:0,scrollTop:0},l=c(1);const d=c(0),f=(0,k.sb)(r);if((f||!f&&!o)&&(("body"!==(0,k.mq)(r)||(0,k.ZU)(a))&&(u=(0,k.CP)(r)),(0,k.sb)(r))){const e=M(r);l=R(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x,y:n.y*l.y-u.scrollTop*l.y+d.y}},getDocumentElement:k.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const s=[..."clippingAncestors"===n?(0,k.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=(0,k.v9)(e,[],!1).filter(e=>(0,k.vq)(e)&&"body"!==(0,k.mq)(e)),i=null;const o="fixed"===(0,k.L9)(e).position;let a=o?(0,k.$4)(e):e;for(;(0,k.vq)(a)&&!(0,k.eu)(a);){const t=(0,k.L9)(a),n=(0,k.sQ)(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,k.ZU)(a)&&!n&&L(e,a))?r=r.filter(e=>e!==a):i=t,a=(0,k.$4)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],c=s[0],u=s.reduce((e,n)=>{const r=O(t,n,a);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},O(t,c,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:F,getElementRects:async function(e){const t=this.getOffsetParent||F,n=this.getDimensions,r=await n(e.floating);return{reference:U(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=T(e);return{width:t,height:n}},getScale:R,isElement:k.vq,isRTL:function(e){return"rtl"===(0,k.L9)(e).direction}};function V(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,f=D(e),p=a||c?[...f?(0,k.v9)(f):[],...(0,k.v9)(t)]:[];
vendor: 4,301 bytes, line 2
2p.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});const h=f&&l?function(e,t){let n,r=null;const a=(0,k.ep)(e);function c(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function u(l,d){void 0===l&&(l=!1),void 0===d&&(d=1),c();const{left:f,top:p,width:h,height:g}=e.getBoundingClientRect();if(l||t(),!h||!g)return;const m={rootMargin:-s(p)+"px "+-s(a.clientWidth-(f+h))+"px "+-s(a.clientHeight-(p+g))+"px "+-s(f)+"px",threshold:o(0,i(1,d))||1};let y=!0;function v(e){const t=e[0].intersectionRatio;if(t!==d){if(!y)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(v,{...m,root:a.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),c}(f,n):null;let g,m=-1,y=null;u&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!d&&y.observe(f),y.observe(t));let v=d?M(e):null;return d&&function t(){const r=M(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,g=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{a&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(g)}}const B=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=p(n),s=h(n),c="y"===y(n),u=["left","top"].includes(a)?-1:1,l=o&&c?-1:1,d=f(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof v&&(m="end"===s?-1*v:v),c?{x:m*l,y:g*u}:{x:g*u,y:m*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:a}}}}},H=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(e,t),u={x:n,y:r},l=await E(t,c),h=y(p(i)),m=g(h);let v=u[m],w=u[h];if(o){const e="y"===m?"bottom":"right";v=d(v+l["y"===m?"top":"left"],v,v-l[e])}if(a){const e="y"===h?"bottom":"right";w=d(w+l["y"===h?"top":"left"],w,w-l[e])}const b=s.fn({...t,[m]:v,[h]:w});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[m]:o,[h]:a}}}}}},W=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:I=!0,...S}=f(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const C=p(i),k=y(s),T=p(s)===s,D=await(null==c.isRTL?void 0:c.isRTL(u.floating)),R=g||(T||!I?[b(s)]:function(e){const t=b(e);return[w(e),t,w(t)]}(s)),A="none"!==x;!g&&A&&R.push(...function(e,t,n,r){const i=h(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(w)))),o}(s,I,x,D));const P=[s,...R],M=await E(t,S),N=[];let O=(null==(r=o.flip)?void 0:r.overflows)||[];if(l&&N.push(M[C]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=h(e),i=v(e),o=m(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=b(a)),[a,b(a)]}(i,a,D);N.push(M[e[0]],M[e[1]])}if(O=[...O,{placement:i,overflows:N}],!N.every(e=>e<=0)){var L,U;const e=((null==(L=o.flip)?void 0:L.index)||0)+1,t=P[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(U=O.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:U.placement;if(!n)switch(_){case"bestFit":{var j;const e=null==(j=O.filter(e=>{if(A){const t=y(e.placement);return t===k||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
vendor: 7,009 bytes, line 2
2e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:j[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},G=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:c,elements:u}=t,{apply:l=()=>{},...d}=f(e,t),g=await E(t,d),m=p(a),v=h(a),w="y"===y(a),{width:b,height:_}=s.floating;let x,I;"top"===m||"bottom"===m?(x=m,I=v===(await(null==c.isRTL?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(I=m,x="end"===v?"top":"bottom");const S=_-g.top-g.bottom,C=b-g.left-g.right,k=i(_-g[x],S),T=i(b-g[I],C),D=!t.middlewareData.shift;let R=k,A=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(A=C),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(R=S),D&&!v){const e=o(g.left,0),t=o(g.right,0),n=o(g.top,0),r=o(g.bottom,0);w?A=b-2*(0!==e||0!==t?e+t:o(g.left,g.right)):R=_-2*(0!==n||0!==r?n+r:o(g.top,g.bottom))}await l({...t,availableWidth:A,availableHeight:R});const P=await c.getDimensions(u.floating);return b!==P.width||_!==P.height?{reset:{rects:!0}}:{}}}},X=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=f(e,t);switch(r){case"referenceHidden":{const e=S(await E(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{const e=S(await E(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},$=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:p=0}=f(e,t)||{};if(null==l)return{};const g=_(p),y={x:n,y:r},w=v(o),b=m(w),x=await s.getDimensions(l),I="y"===w,E=I?"top":"left",S=I?"bottom":"right",C=I?"clientHeight":"clientWidth",k=a.reference[b]+a.reference[w]-y[w]-a.floating[b],T=y[w]-a.reference[w],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let R=D?D[C]:0;R&&await(null==s.isElement?void 0:s.isElement(D))||(R=c.floating[C]||a.floating[b]);const A=k/2-T/2,P=R/2-x[b]/2-1,M=i(g[E],P),N=i(g[S],P),O=M,L=R-x[b]-N,U=R/2-x[b]/2+A,j=d(O,U,L),q=!u.arrow&&null!=h(o)&&U!==j&&a.reference[b]/2-(U<O?M:N)-x[b]/2<0,F=q?U<O?U-O:U-L:0;return{[w]:y[w]+F,data:{[w]:j,centerOffset:U-j-F,...q&&{alignmentOffset:F}},reset:q}}}),K=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=f(e,t),l={x:n,y:r},d=y(i),h=g(d);let m=l[h],v=l[d];const w=f(s,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+b.mainAxis,n=o.reference[h]+o.reference[e]-b.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var _,x;const e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(_=a.offset)?void 0:_[d])||0)+(t?0:b.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[h]:m,[d]:v}}}},Q=(e,t,n)=>{const r=new Map,i={platform:z,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:d}=I(u,r,c),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:o,fn:g}=s[n],{x:m,y,data:v,reset:w}=await g({x:l,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});l=null!=m?m:l,d=null!=y?y:d,p={...p,[o]:{...p[o],...v}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),({x:l,y:d}=I(u,f,c))),n=-1)}return{x:l,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})}},34674(e,t,n){"use strict";n.d(t,{BN:()=>h,ER:()=>g,Ej:()=>y,UE:()=>w,UU:()=>m,cY:()=>p,jD:()=>v,we:()=>d});var r=n(21489),i=n(63696),o=n(78325),a="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!s(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!s(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function c(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){const n=c(e);return Math.round(t*n)/n}function l(e){const t=i.useRef(e);return a(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:g=!0,whileElementsMounted:m,open:y}=e,[v,w]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=i.useState(d);s(b,d)||_(d);const[x,I]=i.useState(null),[E,S]=i.useState(null),C=i.useCallback(e=>{e!==R.current&&(R.current=e,I(e))},[]),k=i.useCallback(e=>{e!==A.current&&(A.current=e,S(e))},[]),T=p||x,D=h||E,R=i.useRef(null),A=i.useRef(null),P=i.useRef(v),M=null!=m,N=l(m),O=l(f),L=l(y),U=i.useCallback(()=>{if(!R.current||!A.current)return;const e={placement:t,strategy:n,middleware:b};O.current&&(e.platform=O.current),(0,r.rD)(R.current,A.current,e).then(e=>{const t={...e,isPositioned:!1!==L.current};j.current&&!s(P.current,t)&&(P.current=t,o.flushSync(()=>{w(t)}))})},[b,t,n,O,L]);a(()=>{!1===y&&P.current.isPositioned&&(P.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[y]);const j=i.useRef(!1);a(()=>(j.current=!0,()=>{j.current=!1}),[]),a(()=>{if(T&&(R.current=T),D&&(A.current=D),T&&D){if(N.current)return N.current(T,D,U);U()}},[T,D,U,N,M]);const q=i.useMemo(()=>({reference:R,floating:A,setReference:C,setFloating:k}),[C,k]),F=i.useMemo(()=>({reference:T,floating:D}),[T,D]),z=i.useMemo(()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=u(F.floating,v.x),r=u(F.floating,v.y);return g?{...e,transform:"translate("+t+"px, "+r+"px)",...c(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,g,F.floating,v.x,v.y]);return i.useMemo(()=>({...v,update:U,refs:q,elements:F,floatingStyles:z}),[v,U,q,F,z])}const f=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:i}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?(0,r.UE)({element:n.current,padding:i}).fn(t):{}:n?(0,r.UE)({element:n,padding:i}).fn(t):{};var o}}),p=(e,t)=>({...(0,r.cY)(e),options:[e,t]}),h=(e,t)=>({...(0,r.BN)(e),options:[e,t]}),g=(e,t)=>({...(0,r.ER)(e),options:[e,t]}),m=(e,t)=>({...(0,r.UU)(e),options:[e,t]}),y=(e,t)=>({...(0,r.Ej)(e),options:[e,t]}),v=(e,t)=>
vendor: 19,366 bytes, line 2
2({...(0,r.jD)(e),options:[e,t]}),w=(e,t)=>({...f(e),options:[e,t]})},74198(e,t,n){"use strict";n.d(t,{ie:()=>te,XF:()=>Se,iB:()=>$e,kp:()=>Re,s9:()=>Ne,we:()=>Oe,iQ:()=>Le,Mk:()=>de,bv:()=>Fe,It:()=>Ve,DL:()=>Ge});var r=n(63696),i=n.t(r,2),o=n(27382);function a(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function s(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function c(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function u(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function l(e){return!u().includes("jsdom/")&&(!f()&&0===e.width&&0===e.height||f()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function d(){return/apple/i.test(navigator.vendor)}function f(){const e=/android/i;return e.test(c())||e.test(u())}function p(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function h(e){return(null==e?void 0:e.ownerDocument)||document}function g(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function m(e){return"composedPath"in e?e.composedPath()[0]:e.target}function y(e){return(0,o.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}var v=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],w=v.join(","),b="undefined"==typeof Element,_=b?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,x=!b&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},I=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},E=function(e,t,n){if(I(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(w));return t&&_.call(e,w)&&r.unshift(e),r=r.filter(n)},S=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!I(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),c=e(s.length?s:a.children,!0,r);r.flatten?i.push.apply(i,c):i.push({scopeParent:a,candidates:c})}else{_.call(a,w)&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var u=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),l=!I(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&l){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?i.push.apply(i,d):i.push({scopeParent:a,candidates:d})}else o.unshift.apply(o,a.children)}}return i},C=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},k=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!C(e)?0:e.tabIndex},T=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},D=function(e){return"INPUT"===e.tagName},R=function(e){return function(e){return D(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||x(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},A=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},P=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=_.call(e,"details>summary:first-of-type")?e.parentElement:e;if(_.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return A(e)}else{if("function"==typeof r){for(var o=e;e;){var a=e.parentElement,s=x(e);if(a&&!a.shadowRoot&&!0===r(a))return A(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=o}if(function(e){var t,n,r,i,o=e&&x(e),a=null===(t=o)||void 0===t?void 0:t.host,s=!1;if(o&&o!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!s&&a;){var c,u,l;s=!(null===(u=a=null===(c=o=x(a))||void 0===c?void 0:c.host)||void 0===u||null===(l=u.ownerDocument)||void 0===l||!l.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},M=function(e,t){return!(t.disabled||I(t)||function(e){return D(e)&&"hidden"===e.type}(t)||P(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!_.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},N=function(e,t){return!(R(t)||k(t)<0||!M(e,t))},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},L=function e(t){var n=[],r=[];return t.forEach(function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=k(e);return n<0&&t&&!C(e)?0:n}(a,o),c=o?e(t.candidates):a;0===s?o?n.push.apply(n,c):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:c})}),r.sort(T).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},U=function(e,t){var n;return n=(t=t||{}).getShadowRoot?S([e],t.includeContainer,{filter:N.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):E(e,t.includeContainer,N.bind(null,t)),L(n)},j=n(78325),q=n(34674);const F={...i},z=F.useInsertionEffect||(e=>e());function V(e){const t=r.useRef(()=>{0});return z(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const B="ArrowUp",H="ArrowDown",W="ArrowLeft",G="ArrowRight";var X="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;const $=[W,G],K=[B,H];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}let Y=!1,J=0;const Z=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+J++;const ee=F.useId||function(){const[e,t]=r.useState(()=>Y?Z():void 0);return X(()=>{null==e&&t(Z())},[]),r.useEffect(()=>{Y=!0},[]),e};const te=r.forwardRef(function(e,t){const{context:{placement:n,elements:{floating:i},middlewareData:{arrow:a,shift:s}},width:c=14,height:u=7,tipRadius:l=0,strokeWidth:d=0,staticOffset:f,stroke:p,d:h,style:{transform:g,...m}={},...y}=e;const v=ee(),[w,b]=r.useState(!1);if(X(()=>{if(!i)return;"rtl"===(0,o.L9)(i).direction&&b(!0)},[i]),!i)return null;const[_,x]=n.split("-"),I="top"===_||"bottom"===_;let E=f;(I&&null!=s&&s.x||!I&&null!=s&&s.y)&&(E=null);const S=2*d,C=S/2,k=c/2*(l/-8+1),T=u/2*l/4,D=!!h,R=E&&"end"===x?"bottom":"top";let A=E&&"end"===x?"right":"left";E&&w&&(A="end"===x?"left":"right");const P=null!=(null==a?void 0:a.x)?E||a.x:"",M=null!=(null==a?void 0:a.y)?E||a.y:"",N=h||"M0,0 H"+c+" L"+(c-k)+","+(u-T)+" Q"+c/2+","+u+" "+k+","+(u-T)+" Z",O={top:D?"rotate(180deg)":"",left:D?"rotate(90deg)":"rotate(-90deg)",bottom:D?"":"rotate(180deg)",right:D?"rotate(-90deg)":"rotate(90deg)"}[_];return r.createElement("svg",Q({},y,{"aria-hidden":!0,ref:t,width:D?c:c+S,height:c,viewBox:"0 0 "+c+" "+(u>c?u:c),style:{position:"absolute",pointerEvents:"none",[A]:P,[R]:M,[_]:I||D?"100%":"calc(100% - "+S/2+"px)",transform:[O,g].filter(e=>!!e).join(" "),...m}}),S>0&&r.createElement("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:S+(h?0:1),d:N}),r.createElement("path",{stroke:S&&!h?y.fill:"none",d:N}),r.createElement("clipPath",{id:v},r.createElement("rect",{x:-C,y:C*(D?-1:1),width:c+S,height:c})))});function ne(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}const re=r.createContext(null),ie=r.createContext(null),oe=()=>{var e;return(null==(e=r.useContext(re))?void 0:e.id)||null},ae=()=>r.useContext(ie);function se(e){return"data-floating-ui-"+e}function ce(e){const t=(0,r.useRef)(e);return X(()=>{t.current=e}),t}const ue=se("safe-polygon");function le(e,t,n){return n&&!p(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function de(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,events:c,elements:u}=e,{enabled:l=!0,delay:d=0,handleClose:f=null,mouseOnly:g=!1,restMs:m=0,move:y=!0}=t,v=ae(),w=oe(),b=ce(f),_=ce(d),x=ce(n),I=r.useRef(),E=r.useRef(-1),S=r.useRef(),C=r.useRef(-1),k=r.useRef(!0),T=r.useRef(!1),D=r.useRef(()=>{}),R=r.useCallback(()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[a]);r.useEffect(()=>{if(l)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(E.current),clearTimeout(C.current),k.current=!0)}},[l,c]),r.useEffect(()=>{if(!l)return;if(!b.current)return;if(!n)return;function e(e){R()&&i(!1,e,"hover")}const t=h(u.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[u.floating,n,i,l,b,R]);const A=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const r=le(_.current,"close",I.current);r&&!S.current?(clearTimeout(E.current),E.current=window.setTimeout(()=>i(!1,e,n),r)):t&&(clearTimeout(E.current),i(!1,e,n))},[_,i]),P=V(()=>{D.current(),S.current=void 0}),M=V(()=>{if(T.current){const e=h(u.floating).body;e.style.pointerEvents="",e.removeAttribute(ue),T.current=!1}});r.useEffect(()=>{if(l&&(0,o.vq)(u.domReference)){var e;const t=u.domReference;return n&&t.addEventListener("mouseleave",d),null==(e=u.floating)||e.addEventListener("mouseleave",d),y&&t.addEventListener("mousemove",r,{once:!0}),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",c),()=>{var e;n&&t.removeEventListener("mouseleave",d),null==(e=u.floating)||e.removeEventListener("mouseleave",d),y&&t.removeEventListener("mousemove",r),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",c)}}function t(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function r(e){if(clearTimeout(E.current),k.current=!1,g&&!p(I.current)||m>0&&!le(_.current,"open"))return;const t=le(_.current,"open",I.current);t?E.current=window.setTimeout(()=>{x.current||i(!0,e,"hover")},t):i(!0,e,"hover")}function c(e){if(t())return;D.current();const r=h(u.floating);if(clearTimeout(C.current),b.current&&a.current.floatingContext){n||clearTimeout(E.current),S.current=b.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){M(),P(),A(e,!0,"safe-polygon")}});const t=S.current;return r.addEventListener("mousemove",t),void(D.current=()=>{r.removeEventListener("mousemove",t)})}("touch"!==I.current||!s(u.floating,e.relatedTarget))&&A(e)}function d(e){t()||a.current.floatingContext&&(null==b.current||b.current({...a.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){M(),P(),A(e)}})(e))}},[u,l,e,g,m,y,A,P,M,i,n,x,v,_,b,a]),X(()=>{var e;if(l&&n&&null!=(e=b.current)&&e.__options.blockPointerEvents&&R()){T.current=!0;const e=u.floating;if((0,o.vq)(u.domReference)&&e){var t;const n=h(u.floating).body;n.setAttribute(ue,"");const r=u.domReference,i=null==v||null==(t=v.nodesRef.current.find(e=>e.id===w))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[l,n,w,u,v,b,R]),X(()=>{n||(I.current=void 0,P(),M())},[n,P,M]),r.useEffect(()=>()=>{P(),clearTimeout(E.current),clearTimeout(C.current),M()},[l,u.domReference,P,M]);const N=r.useMemo(()=>{function e(e){I.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function r(){k.current||x.current||i(!0,t,"hover")}g&&!p(I.current)||n||0===m||(clearTimeout(C.current),"touch"===I.current?r():C.current=window.setTimeout(r,m))}}},[g,i,n,x,m]),O=r.useMemo(()=>({onMouseEnter(){clearTimeout(E.current)},onMouseLeave(e){A(e.nativeEvent,!1)}}),[A]);return r.useMemo(()=>l?{reference:N,floating:O}:{},[l,N,O])}function fe(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),r=n;for(;r.length;)r=e.filter(e=>{var t;return null==(t=r)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(r);return n}const pe=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function he(e,t){const n=U(e,pe());"prev"===t&&n.reverse();const r=n.indexOf(a(h(e)));return n.slice(r+1)[0]}function ge(){return he(document.body,"next")}function me(){return he(document.body,"prev")}function ye(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!s(n,r)}function ve(e){U(e,pe()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function we(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const be={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function _e(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const xe=r.forwardRef(function(e,t){const[n,i]=r.useState();X(()=>(d()&&i("button"),document.addEventListener("keydown",_e),()=>{document.removeEventListener("keydown",_e)}),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[se("focus-guard")]:"",style:be};return r.createElement("span",Q({},e,o))}),Ie=r.createContext(null),Ee=se("portal");function Se(e){const{children:t,id:n,root:i=null,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,i=ee(),a=Ce(),[s,c]=r.useState(null),u=r.useRef(null);return X(()=>()=>{null==s||s.remove(),queueMicrotask(()=>{u.current=null})},[s]),X(()=>{if(!i)return;if(u.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Ee,""),e.appendChild(n),u.current=n,c(n)},[t,i]),X(()=>{if(!i)return;if(u.current)return;let e=n||(null==a?void 0:a.portalNode);e&&!(0,o.vq)(e)&&(e=e.current),e=e||document.body;let r=null;t&&(r=document.createElement("div"),r.id=t,e.appendChild(r));const s=document.createElement("div");s.id=i,s.setAttribute(Ee,""),e=r||e,e.appendChild(s),u.current=s,c(s)},[t,n,i,a]),s}({id:n,root:i}),[c,u]=r.useState(null),l=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),h=null==c?void 0:c.modal,g=null==c?void 0:c.open,m=!!c&&!c.modal&&c.open&&a&&!(!i&&!s);return r.useEffect(()=>{if(s&&a&&!h)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){if(s&&ye(e)){("focusin"===e.type?we:ve)(s)}}},[s,a,h]),r.useEffect(()=>{s&&(g||we(s))},[g,s]),r.createElement(Ie.Provider,{value:r.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:l,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:s,setFocusManagerState:u}),[a,s])},m&&s&&r.createElement(xe,{"data-type":"outside",ref:l,onFocus:e=>{if(ye(e,s)){var t;null==(t=f.current)||t.focus()}else{const e=me()||(null==c?void 0:c.refs.domReference.current);null==e||e.focus()}}}),m&&s&&r.createElement("span",{"aria-owns":s.id,style:be}),s&&j.createPortal(t,s),m&&s&&r.createElement(xe,{"data-type":"outside",ref:d,onFocus:e=>{if(ye(e,s)){var t;null==(t=p.current)||t.focus()}else{const t=ge()||(null==c?void 0:c.refs.domReference.current);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Ce=()=>r.useContext(Ie),ke="data-floating-ui-focusable";function Te(e){return(0,o.sb)(e.target)&&"BUTTON"===e.target.tagName}function De(e){return y(e)}function Re(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:o,elements:{domReference:a}}=e,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:l=!1,keyboardHandlers:d=!0}=t,f=r.useRef(),h=r.useRef(!1),g=r.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==c&&(p(t,!0)&&l||(!n||!u||o.current.openEvent&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===c&&f.current?f.current=void 0:p(t,!0)&&l||(!n||!u||o.current.openEvent&&"click"!==o.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||Te(e)||(" "!==e.key||De(a)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&i(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Te(e)||De(a)||" "===e.key&&h.current&&(h.current=!1,i(!n||!u,e.nativeEvent,"click"))}}),[o,a,c,l,d,i,n,u]);return r.useMemo(()=>s?{reference:g}:{},[s,g])}const Ae={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Pe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Me=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Ne(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:a,dataRef:c}=e,{enabled:u=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:y="pointerdown",ancestorScroll:v=!1,bubbles:w,capture:b}=t,_=ae(),x=V("function"==typeof d?d:()=>!1),I="function"==typeof d?x:d,E=r.useRef(!1),S=r.useRef(!1),{escapeKey:C,outsidePress:k}=Me(w),{escapeKey:T,outsidePress:D}=Me(b),R=V(e=>{var t;if(!n||!u||!l||"Escape"!==e.key)return;const r=null==(t=c.current.floatingContext)?void 0:t.nodeId,o=_?fe(_.nodesRef.current,r):[];if(!C&&(e.stopPropagation(),o.length>0)){let e=!0;
2if(o.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),A=V(e=>{var t;const n=()=>{var t;R(e),null==(t=m(e))||t.removeEventListener("keydown",n)};null==(t=m(e))||t.addEventListener("keydown",n)}),P=V(e=>{var t;const n=E.current;E.current=!1;const r=S.current;if(S.current=!1,"click"===f&&r)return;if(n)return;if("function"==typeof I&&!I(e))return;const u=m(e),l="["+se("inert")+"]",d=h(a.floating).querySelectorAll(l);let p=(0,o.vq)(u)?u:null;for(;p&&!(0,o.eu)(p);){const e=(0,o.$4)(p);if((0,o.eu)(e)||!(0,o.vq)(e))break;p=e}if(d.length&&(0,o.vq)(u)&&!u.matches("html,body")&&!s(u,a.floating)&&Array.from(d).every(e=>!s(p,e)))return;if((0,o.sb)(u)&&O){const t=u.clientWidth>0&&u.scrollWidth>u.clientWidth,n=u.clientHeight>0&&u.scrollHeight>u.clientHeight;let r=n&&e.offsetX>u.clientWidth;if(n){"rtl"===(0,o.L9)(u).direction&&(r=e.offsetX<=u.offsetWidth-u.clientWidth)}if(r||t&&e.offsetY>u.clientHeight)return}const y=null==(t=c.current.floatingContext)?void 0:t.nodeId,v=_&&fe(_.nodesRef.current,y).some(t=>{var n;return g(e,null==(n=t.context)?void 0:n.elements.floating)});if(g(e,a.floating)||g(e,a.domReference)||v)return;const w=_?fe(_.nodesRef.current,y):[];if(w.length>0){let e=!0;if(w.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}i(!1,e,"outside-press")}),M=V(e=>{var t;const n=()=>{var t;P(e),null==(t=m(e))||t.removeEventListener(f,n)};null==(t=m(e))||t.addEventListener(f,n)});r.useEffect(()=>{if(!n||!u)return;function e(e){i(!1,e,"ancestor-scroll")}c.current.__escapeKeyBubbles=C,c.current.__outsidePressBubbles=k;const t=h(a.floating);l&&t.addEventListener("keydown",T?A:R,T),I&&t.addEventListener(f,D?M:P,D);let r=[];return v&&((0,o.vq)(a.domReference)&&(r=(0,o.v9)(a.domReference)),(0,o.vq)(a.floating)&&(r=r.concat((0,o.v9)(a.floating))),!(0,o.vq)(a.reference)&&a.reference&&a.reference.contextElement&&(r=r.concat((0,o.v9)(a.reference.contextElement)))),r=r.filter(e=>{var n;return e!==(null==(n=t.defaultView)?void 0:n.visualViewport)}),r.forEach(t=>{t.addEventListener("scroll",e,{passive:!0})}),()=>{l&&t.removeEventListener("keydown",T?A:R,T),I&&t.removeEventListener(f,D?M:P,D),r.forEach(t=>{t.removeEventListener("scroll",e)})}},[c,a,l,I,f,n,i,v,u,C,k,R,T,A,P,D,M]),r.useEffect(()=>{E.current=!1},[I,f]);const N=r.useMemo(()=>({onKeyDown:R,[Ae[y]]:e=>{p&&i(!1,e.nativeEvent,"reference-press")}}),[R,i,p,y]),O=r.useMemo(()=>({onKeyDown:R,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[Pe[f]]:()=>{E.current=!0}}),[R,f]);return r.useMemo(()=>u?{reference:N,floating:O}:{},[u,N,O])}function Oe(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:i}=e,o=ee(),a=r.useRef({}),[s]=r.useState(()=>ne()),c=null!=oe(),[u,l]=r.useState(i.reference),d=V((e,t,r)=>{a.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),f=r.useMemo(()=>({setPositionReference:l}),[]),p=r.useMemo(()=>({reference:u||i.reference||null,floating:i.floating||null,domReference:i.reference}),[u,i.reference,i.floating]);return r.useMemo(()=>({dataRef:a,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f}),[t,d,p,s,o,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,a=i.elements,[s,c]=r.useState(null),[u,l]=r.useState(null),d=(null==a?void 0:a.reference)||s,f=r.useRef(null),p=ae();X(()=>{d&&(f.current=d)},[d]);const h=(0,q.we)({...e,elements:{...a,...u&&{reference:u}}}),g=r.useCallback(e=>{const t=(0,o.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),h.refs.setReference(t)},[h.refs]),m=r.useCallback(e=>{((0,o.vq)(e)||null===e)&&(f.current=e,c(e)),((0,o.vq)(h.refs.reference.current)||null===h.refs.reference.current||null!==e&&!(0,o.vq)(e))&&h.refs.setReference(e)},[h.refs]),y=r.useMemo(()=>({...h.refs,setReference:m,setPositionReference:g,domReference:f}),[h.refs,m,g]),v=r.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),w=r.useMemo(()=>({...h,...i,refs:y,elements:v,nodeId:t}),[h,y,v,t,i]);return X(()=>{i.dataRef.current.floatingContext=w;const e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=w)}),r.useMemo(()=>({...h,context:w,refs:y,elements:v}),[h,y,v,w])}function Le(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,events:u,dataRef:f,elements:p}=e,{enabled:g=!0,visibleOnly:v=!0}=t,w=r.useRef(!1),b=r.useRef(),_=r.useRef(!0);r.useEffect(()=>{if(!g)return;const e=(0,o.zk)(p.domReference);function t(){!n&&(0,o.sb)(p.domReference)&&p.domReference===a(h(p.domReference))&&(w.current=!0)}function r(){_.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}},[p.domReference,n,g]),r.useEffect(()=>{if(g)return u.on("openchange",e),()=>{u.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(w.current=!0)}},[u,g]),r.useEffect(()=>()=>{clearTimeout(b.current)},[]);const x=r.useMemo(()=>({onPointerDown(e){l(e.nativeEvent)||(_.current=!1)},onMouseLeave(){w.current=!1},onFocus(e){if(w.current)return;
vendor: 7,712 bytes, line 2
2const t=m(e.nativeEvent);if(v&&(0,o.vq)(t))try{if(d()&&c().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!_.current&&!y(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){w.current=!1;const t=e.relatedTarget,n=e.nativeEvent,r=(0,o.vq)(t)&&t.hasAttribute(se("focus-guard"))&&"outside"===t.getAttribute("data-type");b.current=window.setTimeout(()=>{var e;const o=a(p.domReference?p.domReference.ownerDocument:document);(t||o!==p.domReference)&&(s(null==(e=f.current.floatingContext)?void 0:e.refs.floating.current,o)||s(p.domReference,o)||r||i(!1,n,"focus"))})}}),[f,p.domReference,i,v]);return r.useMemo(()=>g?{reference:x}:{},[g,x])}const Ue="active",je="selected";function qe(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Ue]:t,[je]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[ke]:""},...o,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,o]=t;var a;i&&[Ue,je].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=o)}),e):e,{})}}function Fe(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),i=e.map(e=>null==e?void 0:e.item),o=r.useCallback(t=>qe(t,e,"reference"),t),a=r.useCallback(t=>qe(t,e,"floating"),n),s=r.useCallback(t=>qe(t,e,"item"),i);return r.useMemo(()=>({getReferenceProps:o,getFloatingProps:a,getItemProps:s}),[o,a,s])}const ze=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ve(e,t){var n;void 0===t&&(t={});const{open:i,floatingId:o}=e,{enabled:a=!0,role:s="dialog"}=t,c=null!=(n=ze.get(s))?n:s,u=ee(),l=null!=oe(),d=r.useMemo(()=>"tooltip"===c||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:i?o:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===c?"dialog":c,"aria-controls":i?o:void 0,..."listbox"===c&&{role:"combobox"},..."menu"===c&&{id:u},..."menu"===c&&l&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[c,o,l,i,u,s]),f=r.useMemo(()=>{const e={id:o,...c&&{role:c}};return"tooltip"===c||"label"===s?e:{...e,..."menu"===c&&{"aria-labelledby":u}}},[c,o,u,s]),p=r.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(s){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}},[o,s]);return r.useMemo(()=>a?{reference:d,floating:f,item:p}:{},[a,d,f,p])}const Be=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function He(e,t){return"function"==typeof e?e(t):e}function We(e,t){void 0===t&&(t={});const{open:n,elements:{floating:i}}=e,{duration:o=250}=t,a=("number"==typeof o?o:o.close)||0,[s,c]=r.useState("unmounted"),u=function(e,t){const[n,i]=r.useState(e);return e&&!n&&i(!0),r.useEffect(()=>{if(!e&&n){const e=setTimeout(()=>i(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,a);return u||"close"!==s||c("unmounted"),X(()=>{if(i){if(n){c("initial");const e=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(e)}}c("close")}},[n,i]),{isMounted:u,status:s}}function Ge(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:i,close:o,common:a,duration:s=250}=t,c=e.placement,u=c.split("-")[0],l=r.useMemo(()=>({side:u,placement:c}),[u,c]),d="number"==typeof s,f=(d?s:s.open)||0,p=(d?s:s.close)||0,[h,g]=r.useState(()=>({...He(a,l),...He(n,l)})),{isMounted:m,status:y}=We(e,{duration:s}),v=ce(n),w=ce(i),b=ce(o),_=ce(a);return X(()=>{const e=He(v.current,l),t=He(b.current,l),n=He(_.current,l),r=He(w.current,l)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===y&&g(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===y&&g({transitionProperty:Object.keys(r).map(Be).join(","),transitionDuration:f+"ms",...n,...r}),"close"===y){const r=t||e;g({transitionProperty:Object.keys(r).map(Be).join(","),transitionDuration:p+"ms",...n,...r})}},[p,b,v,w,_,f,y,l]),{isMounted:m,styles:h}}function Xe(e,t){const[n,r]=e;let i=!1;const o=t.length;for(let e=0,a=o-1;e<o;a=e++){const[o,s]=t[e]||[0,0],[c,u]=t[a]||[0,0];s>=r!=u>=r&&n<=(c-o)*(r-s)/(u-s)+o&&(i=!i)}return i}function $e(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let i,a=!1,c=null,u=null,l=performance.now();const d=e=>{let{x:n,y:d,placement:f,elements:p,onClose:h,nodeId:g,tree:y}=e;return function(e){function v(){clearTimeout(i),h()}if(clearTimeout(i),!p.domReference||!p.floating||null==f||null==n||null==d)return;const{clientX:w,clientY:b}=e,_=[w,b],x=m(e),I="mouseleave"===e.type,E=s(p.floating,x),S=s(p.domReference,x),C=p.domReference.getBoundingClientRect(),k=p.floating.getBoundingClientRect(),T=f.split("-")[0],D=n>k.right-k.width/2,R=d>k.bottom-k.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(_,C),P=k.width>C.width,M=k.height>C.height,N=(P?C:k).left,O=(P?C:k).right,L=(M?C:k).top,U=(M?C:k).bottom;if(E&&(a=!0,!I))return;if(S&&(a=!1),S&&!I)return void(a=!0);if(I&&(0,o.vq)(e.relatedTarget)&&s(p.floating,e.relatedTarget))return;if(y&&fe(y.nodesRef.current,g).some(e=>{let{context:t}=e;return null==t?void 0:t.open}))return;if("top"===T&&d>=C.bottom-1||"bottom"===T&&d<=C.top+1||"left"===T&&n>=C.right-1||"right"===T&&n<=C.left+1)return v();let j=[];switch(T){case"top":j=[[N,C.top+1],[N,k.bottom-1],[O,k.bottom-1],[O,C.top+1]];break;case"bottom":j=[[N,k.top+1],[N,C.bottom-1],[O,C.bottom-1],[O,k.top+1]];break;case"left":j=[[k.right-1,U],[k.right-1,L],[C.left+1,L],[C.left+1,U]];break;case"right":j=[[C.right-1,U],[C.right-1,L],[k.left+1,L],[k.left+1,U]]}if(!Xe([w,b],j)){if(a&&!A)return v();if(!I&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===c||null===u||0===r)return c=e,u=t,l=n,null;const i=e-c,o=t-u,a=Math.sqrt(i*i+o*o);return c=e,u=t,l=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}Xe([w,b],function(e){let[n,r]=e;switch(T){case"top":return[[P?n+t/2:D?n+4*t:n-4*t,r+t+1],[P?n-t/2:D?n+4*t:n-4*t,r+t+1],...[[k.left,D||P?k.bottom-t:k.top],[k.right,D?P?k.bottom-t:k.top:k.bottom-t]]];case"bottom":return[[P?n+t/2:D?n+4*t:n-4*t,r-t],[P?n-t/2:D?n+4*t:n-4*t,r-t],...[[k.left,D||P?k.top+t:k.bottom],[k.right,D?P?k.top+t:k.bottom:k.top+t]]];case"left":{const e=[n+t+1,M?r+t/2:R?r+4*t:r-4*t],i=[n+t+1,M?r-t/2:R?r+4*t:r-4*t];return[...[[R||M?k.right-t:k.left,k.top],[R?M?k.right-t:k.left:k.right-t,k.bottom]],e,i]}case"right":return[[n-t,M?r+t/2:R?r+4*t:r-4*t],[n-t,M?r-t/2:R?r+4*t:r-4*t],...[[R||M?k.left+t:k.right,k.top],[R?M?k.left+t:k.right:k.left+t,k.bottom]]]}}([n,d]))?!a&&r&&(i=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:n},d}},27382(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!r()&&(e instanceof Node||e instanceof o(e).Node)}function c(e){return!!r()&&(e instanceof Element||e instanceof o(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function l(e){return!(!r()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=v(e);
2return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function f(e){return["table","td","th"].includes(i(e))}function p(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function h(e){const t=m(),n=c(e)?v(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function g(e){let t=b(e);for(;u(t)&&!y(t);){if(h(t))return t;if(p(t))return null;t=b(t)}return null}function m(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function y(e){return["html","body","#document"].includes(i(e))}function v(e){return o(e).getComputedStyle(e)}function w(e){return c(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||l(e)&&e.host||a(e);return l(t)?t.host:t}function _(e){const t=b(e);return y(t)?e.ownerDocument?e.ownerDocument.body:e.body:u(t)&&d(t)?t:_(t)}function x(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=_(e),a=i===(null==(r=e.ownerDocument)?void 0:r.body),s=o(i);if(a){const e=I(s);return t.concat(s,s.visualViewport||[],d(i)?i:[],e&&n?x(e):[])}return t.concat(i,x(i,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>b,CP:()=>w,L9:()=>v,Lv:()=>f,Ng:()=>l,Tc:()=>m,Tf:()=>p,ZU:()=>d,_m:()=>I,ep:()=>a,eu:()=>y,gJ:()=>g,mq:()=>i,sQ:()=>h,sb:()=>u,v9:()=>x,vq:()=>c,zk:()=>o})},56757(e,t,n){"use strict";n.d(t,{H:()=>an});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};var i,o=function(){function e(){}return e.isNullOrUndefined=function(e){return null==e},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e}(),a=/[xy]/g,s=function(){function e(){this.identifier="ChannelControllerPlugin",this.priority=500}return e.prototype.processTelemetry=function(e){this.channelQueue.forEach(function(t){t.length>0&&t[0].processTelemetry(e)})},Object.defineProperty(e.prototype,"ChannelControls",{get:function(){return this.channelQueue},enumerable:!0,configurable:!0}),e.prototype.initialize=function(e,t,n){var r,i=this;(e.isCookieUseDisabled&&o.disableCookies(),this.channelQueue=new Array,e.channels)&&e.channels.forEach(function(o){if(o&&o.length>0){o=o.sort(function(e,t){return e.priority-t.priority});for(var a=1;a<o.length;a++)o[a-1].setNextPlugin(o[a]);if(o.forEach(function(i){i.priority<500&&(r=i.identifier),i.initialize(e,t,n)}),r)throw Error("Channel has invalid priority"+r);i.channelQueue.push(o)}});for(var a=new Array,s=0;s<n.length;s++){var c=n[s];c.priority>500&&a.push(c)}if(a.length>0){a=a.sort(function(e,t){return e.priority-t.priority});for(s=1;s<a.length;s++)a[s-1].setNextPlugin(a[s]);a.forEach(function(r){return r.initialize(e,t,n)}),this.channelQueue.push(a)}},e}(),c=function(){function e(){this._isInitialized=!1,this._extensions=new Array,this._channelController=new s}return e.prototype.initialize=function(e,t,n,r){var i=this;if(this._isInitialized)throw Error("Core should not be initialized more than once");if(!e||o.isNullOrUndefined(e.instrumentationKey))throw Error("Please provide instrumentation key");this.config=e,this._notificationManager=r,this._notificationManager||(this._notificationManager=Object.create({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){}})),this.config.extensions=o.isNullOrUndefined(this.config.extensions)?[]:this.config.extensions,this.config.extensionConfig=o.isNullOrUndefined(this.config.extensionConfig)?{}:this.config.extensionConfig,this._notificationManager&&(this.config.extensionConfig.NotificationManager=this._notificationManager),this.logger=n,this.logger||(this.logger=Object.create({throwInternal:function(e,t,n,r,i){void 0===i&&(i=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}})),(s=this._extensions).push.apply(s,t.concat(this.config.extensions)),this._extensions.forEach(function(e){var t=!0;if((o.isNullOrUndefined(e)||o.isNullOrUndefined(e.initialize))&&(t=!1),!t)throw Error("Extensions must provide callback to initialize")}),this._extensions.push(this._channelController),this._extensions=this._extensions.sort(function(e,t){var n=e,r=t,i=typeof n.processTelemetry,o=typeof r.processTelemetry;return"function"===i&&"function"===o?n.priority-r.priority:"function"===i&&"function"!==o?1:"function"!==i&&"function"===o?-1:void 0});var a={};this._extensions.forEach(function(e){var t=e;t&&t.priority&&(o.isNullOrUndefined(a[t.priority])?a[t.priority]=t.identifier:i.logger&&i.logger.warnToConsole("Two extensions have same priority"+a[t.priority]+", "+t.identifier))});for(var s,c=-1,u=0;u<this._extensions.length-1;u++){var l=this._extensions[u];if(!l||"function"==typeof l.processTelemetry){if(l.priority===this._channelController.priority){c=u+1;break}this._extensions[u].setNextPlugin(this._extensions[u+1])}}if(this._channelController.initialize(this.config,this,this._extensions),this._extensions.forEach(function(e){e&&e.priority<i._channelController.priority&&e.initialize(i.config,i,i._extensions)}),c<this._extensions.length&&this._extensions.splice(c),0===this.getTransmissionControls().length)throw new Error("No channels available");this._isInitialized=!0},e.prototype.getTransmissionControls=function(){return this._channelController.ChannelControls},e.prototype.track=function(e){e.iKey||(e.iKey=this.config.instrumentationKey),e.time||(e.time=(new Date).toISOString()),o.isNullOrUndefined(e.ver)&&(e.ver="4.0"),0===this._extensions.length&&this._channelController.processTelemetry(e);for(var t=0;t<this._extensions.length;){if(this._extensions[t].processTelemetry){this._extensions[t].processTelemetry(e);break}t++}},e}(),u=2,l=function(){function e(){this.listeners=[]}return e.prototype.addNotificationListener=function(e){this.listeners.push(e)},e.prototype.removeNotificationListener=function(e){for(var t=this.listeners.indexOf(e);t>-1;)this.listeners.splice(t,1),t=this.listeners.indexOf(e)},e.prototype.eventsSent=function(e){for(var t=this,n=function(n){r.listeners[n].eventsSent&&setTimeout(function(){return t.listeners[n].eventsSent(e)},0)},r=this,i=0;i<this.listeners.length;++i)n(i)},e.prototype.eventsDiscarded=function(e,t){for(var n=this,r=function(r){i.listeners[r].eventsDiscarded&&setTimeout(function(){return n.listeners[r].eventsDiscarded(e,t)},0)},i=this,o=0;o<this.listeners.length;++o)r(o)},e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(i||(i={}));var d=0,f=1,p=2,h=3,g=4,m=5,y=6,v=7,w=8,b=9,_=10,x=11,I=12,E=13,S=14,C=15,k=16,T=17,D=18,R=19,A=20,P=22,M=23,N=24,O=25,L=26,U=27,j=28,q=29,F=30,z=31,V=32,B=33,H=35,W=36,G=37,X=38,$=39,K=40,Q=41,Y=42,J=43,Z=45,ee=46,te=47,ne=48,re=49,ie=50,oe=52,ae=54,se=55,ce=56,ue=57,le=58,de=60,fe=61,pe=62,he=63,ge=64,me=66,ye=67,ve=68,we=69,be=70,_e=71,xe=72,Ie=function(){function e(t,n,r,i){void 0===r&&(r=!1),this.messageId=t,this.message=(r?e.AiUserActionablePrefix:e.AiNonUserActionablePrefix)+t;var o=(n?" message:"+e.sanitizeDiagnosticText(n):"")+(i?" props:"+e.sanitizeDiagnosticText(JSON.stringify(i)):"");this.message+=o}return e.sanitizeDiagnosticText=function(e){return'"'+e.replace(/\"/g,"")+'"'},e.dataType="MessageData",e.AiNonUserActionablePrefix="AI (Internal): ",e.AiUserActionablePrefix="AI: ",e}(),Ee=function(){function e(e){this.queue=[],this.AIInternalMessagePrefix="AITR_",this._messageCount=0,this._messageLogged={},this.enableDebugExceptions=function(){return!1},this.consoleLoggingLevel=function(){return 0},this.telemetryLoggingLevel=function(){return 1},this.maxInternalMessageLimit=function(){return 25},o.isNullOrUndefined(e)||(o.isNullOrUndefined(e.loggingLevelConsole)||(this.consoleLoggingLevel=function(){return e.loggingLevelConsole}),o.isNullOrUndefined(e.loggingLevelTelemetry)||(this.telemetryLoggingLevel=function(){return e.loggingLevelTelemetry}),o.isNullOrUndefined(e.maxMessageLimit)||(this.maxInternalMessageLimit=function(){return e.maxMessageLimit}),o.isNullOrUndefined(e.enableDebugExceptions)||(this.enableDebugExceptions=function(){return e.enableDebugExceptions}))}return e.prototype.throwInternal=function(e,t,n,r,o){void 0===o&&(o=!1);var a=new Ie(t,n,o,r);if(this.enableDebugExceptions())throw a;if(void 0!==a&&a&&void 0!==a.message){if(o){var s=+a.messageId;(!this._messageLogged[s]||this.consoleLoggingLevel()>=i.WARNING)&&(this.warnToConsole(a.message),this._messageLogged[s]=!0)}else this.consoleLoggingLevel()>=i.WARNING&&this.warnToConsole(a.message);this.logInternalMessage(e,a)}},e.prototype.warnToConsole=function(e){"undefined"!=typeof console&&console&&("function"==typeof console.warn||console.log)},e.prototype.resetInternalMessageCount=function(){this._messageCount=0,this._messageLogged={}},e.prototype.logInternalMessage=function(e,t){if(!this._areInternalMessagesThrottled()){var n=!0,r=this.AIInternalMessagePrefix+t.messageId;if(this._messageLogged[r]?n=!1:this._messageLogged[r]=!0,n&&(e<=this.telemetryLoggingLevel()&&(this.queue.push(t),this._messageCount++),this._messageCount===this.maxInternalMessageLimit())){var i="Internal events throttle limit per PageView reached for this app.",o=new Ie(M,i,!1);this.queue.push(o),this.warnToConsole(i)}}},e.prototype._areInternalMessagesThrottled=function(){return this._messageCount>=this.maxInternalMessageLimit()},e}(),Se=function(e){function t(){return e.call(this)||this}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.initialize=function(t,n){this._notificationManager=new l,this.logger=new Ee(t),this.config=t,e.prototype.initialize.call(this,t,n,this.logger,this._notificationManager)},t.prototype.getTransmissionControls=function(){return e.prototype.getTransmissionControls.call(this)},t.prototype.track=function(t){if(null===t)throw this._notifyInvali
2dEvent(t),Error("Invalid telemetry item");this._validateTelemetryItem(t),e.prototype.track.call(this,t)},t.prototype.addNotificationListener=function(e){this._notificationManager&&this._notificationManager.addNotificationListener(e)},t.prototype.removeNotificationListener=function(e){this._notificationManager&&this._notificationManager.removeNotificationListener(e)},t.prototype.pollInternalLogs=function(e){var t=this,n=this.config.diagnosticLogInterval;return n>0||(n=1e4),setInterval(function(){var n=t.logger?t.logger.queue:[];n.forEach(function(n){var r={name:e||"InternalMessageId: "+n.messageId,iKey:t.config.instrumentationKey,time:(new Date).toISOString(),baseType:Ie.dataType,baseData:{message:n.message}};t.track(r)}),n.length=0},n)},t.prototype._validateTelemetryItem=function(e){if(o.isNullOrUndefined(e.name))throw this._notifyInvalidEvent(e),Error("telemetry name required")},t.prototype._notifyInvalidEvent=function(e){this._notificationManager&&this._notificationManager.eventsDiscarded([e],u)},t}(c);var Ce,ke,Te,De=function(){return De=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},De.apply(this,arguments)};!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(Ce||(Ce={})),function(e){e[e.Default=0]="Default",e[e.Required=1]="Required",e[e.Array=2]="Array",e[e.Hidden=4]="Hidden"}(ke||(ke={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(Te||(Te={}));var Re=function(){function e(){}return e.requestContextHeader="Request-Context",e.requestContextTargetKey="appId",e.requestContextAppIdFormat="appId=cid-v1:",e.requestIdHeader="Request-Id",e.traceParentHeader="traceparent",e.sdkContextHeader="Sdk-Context",e.sdkContextHeaderAppIdRequest="appId",e.requestContextHeaderLowerCase="request-context",e}(),Ae=function(){function e(){}return e.sanitizeKeyAndAddUniqueness=function(t,n,r){var i=n.length,o=e.sanitizeKey(t,n);if(o.length!==i){for(var a=0,s=o;void 0!==r[s];)a++,s=o.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(a);o=s}return o},e.sanitizeKey=function(t,n){var r;return n&&(n=e.trim(n.toString())).length>e.MAX_NAME_LENGTH&&(r=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(i.WARNING,ue,"name is too long.  It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),r||n},e.sanitizeString=function(t,n,r){var o;return void 0===r&&(r=e.MAX_STRING_LENGTH),n&&(r=r||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>r&&(o=n.toString().substring(0,r),t.throwInternal(i.WARNING,fe,"string value is too long. It has been truncated to "+r+" characters.",{value:n},!0))),o||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,me)},e.sanitizeMessage=function(t,n){var r;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(r=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(i.WARNING,ce,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),r||n},e.sanitizeException=function(t,n){var r;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(r=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(i.WARNING,oe,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),r||n},e.sanitizeProperties=function(t,n){if(n){var r={};for(var o in n){var a=n[o];if("object"==typeof a&&"undefined"!=typeof JSON)try{a=JSON.stringify(a)}catch(e){t.throwInternal(i.WARNING,re,"custom property is not valid",{exception:e},!0)}a=e.sanitizeString(t,a,e.MAX_PROPERTY_LENGTH),r[o=e.sanitizeKeyAndAddUniqueness(t,o,r)]=a}n=r}return n},e.sanitizeMeasurements=function(t,n){if(n){var r={};for(var i in n){var o=n[i];r[i=e.sanitizeKeyAndAddUniqueness(t,i,r)]=o}n=r}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,we).toString():n},e.sanitizeInput=function(t,n,r,o){var a;return n&&(n=e.trim(n)).length>r&&(a=n.substring(0,r),t.throwInternal(i.WARNING,o,"input is too long, it has been truncated to "+r+" characters.",{data:n},!0)),a||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),Pe=function(){function e(){}return e.createDomEvent=function(e){var t=null;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(Ce.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,r=null;try{if("undefined"==typeof window)return null;n=new Date,(r=e===Ce.LocalStorage?window.localStorage:window.sessionStorage).setItem(n.toString(),n.toString()),t=r.getItem(n.toString())!==n.toString(),r.removeItem(n.toString()),t&&(r=null)}catch(e){r=null}return r},e.isInternalApplicationInsightsEndpoint=function(t){return-1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(Ce.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.getItem(n)}catch(n){e._canUseLocalStorage=!1,t.throwInternal(i.WARNING,f,"Browser failed read of local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return null},e.setStorage=function(t,n,r){var o=e._getLocalStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(n){e._canUseLocalStorage=!1,t.throwInternal(i.WARNING,h,"Browser failed write to local storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.removeStorage=function(t,n){var r=e._getLocalStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(n){e._canUseLocalStorage=!1,t.throwInternal(i.WARNING,m,"Browser failed removal of local storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(Ce.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(Ce.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];if(e.canUseSessionStorage())for(var n in window.sessionStorage)t.push(n);return t},e.getSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.getItem(n)}catch(n){e._canUseSessionStorage=!1,t.throwInternal(i.WARNING,p,"Browser failed read of session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return null}
2,e.setSessionStorage=function(t,n,r){var o=e._getSessionStorageObject();if(null!==o)try{return o.setItem(n,r),!0}catch(n){e._canUseSessionStorage=!1,t.throwInternal(i.WARNING,g,"Browser failed write to session storage. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.removeSessionStorage=function(t,n){var r=e._getSessionStorageObject();if(null!==r)try{return r.removeItem(n),!0}catch(n){e._canUseSessionStorage=!1,t.throwInternal(i.WARNING,y,"Browser failed removal of session storage item. "+e.getExceptionName(n),{exception:e.dump(n)})}return!1},e.disableCookies=function(){o.disableCookies()},e.canUseCookies=function(t){if(void 0===o._canUseCookies){o._canUseCookies=!1;try{o._canUseCookies=void 0!==e.document.cookie}catch(n){t.throwInternal(i.WARNING,ve,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return o._canUseCookies},e.setCookie=function(t,n,r,i){r+=";SameSite=None";var o="",a="";i&&(o=";domain="+i),e.document.location&&"https:"===e.document.location.protocol&&(a=";secure"),e.canUseCookies(t)&&(e.document.cookie=n+"="+r+o+";path=/"+a)},e.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),null==e?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var r="";if(n&&n.length)for(var i=n+"=",o=e.document.cookie.split(";"),a=0;a<o.length;a++){var s=o[a];if((s=e.trim(s))&&0===s.indexOf(i)){r=s.substring(i.length,o[a].length);break}}return r}},e.deleteCookie=function(t,n){e.canUseCookies(t)&&(e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},e.trim=function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"")},e.newId=function(){for(var e="",t=1073741824*Math.random();t>0;){e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t%64),t=Math.floor(t/64)}return e},e.random32=function(){return 4294967296*Math.random()|0},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.toISOStringForIE8=function(t){if(e.isDate(t)){if(Date.prototype.toISOString)return t.toISOString();var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():navigator.userAgent.toLowerCase();return-1!==t.indexOf("msie")?parseInt(t.split("msie")[1]):null},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r,(o>0?o+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t},e.isCrossOriginError=function(e,t,n,r,i){return("Script error."===e||"Script error"===e)&&!i},e.dump=function(e){var t=Object.prototype.toString.call(e),n=JSON.stringify(e);return"[object Error]"===t&&(n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'"),t+n},e.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},e.addEventHandler=function(e,t){if("undefined"==typeof window||!window||"string"!=typeof e||"function"!=typeof t)return!1;var n="on"+e;if(window.addEventListener)window.addEventListener(e,t,!1);else{if(!window.attachEvent)return!1;window.attachEvent(n,t)}return!0},e.IsBeaconApiSupported=function(){return"sendBeacon"in navigator&&navigator.sendBeacon},e.getExtension=function(e,t){for(var n=null,r=0;!n&&r<e.length;)e[r]&&e[r].identifier===t&&(n=e[r]),r++;return n},e.document="undefined"!=typeof document?document:{},e._canUseLocalStorage=void 0,e._canUseSessionStorage=void 0,e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],e.NotSpecified="not_specified",e}(),Me=function(){function e(){}return e.parseUrl=function(t){return e.htmlAnchorElement||(e.htmlAnchorElement=e.document.createElement?e.document.createElement("a"):{host:e.parseHost(t)}),e.htmlAnchorElement.href=t,e.htmlAnchorElement},e.getAbsoluteUrl=function(t){var n,r=e.parseUrl(t);return r&&(n=r.href),n},e.getPathName=function(t){var n,r=e.parseUrl(t);return r&&(n=r.pathname),n},e.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},e.parseHost=function(e){var t=e.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);return null!=t&&t.length>2&&"string"==typeof t[2]&&t[2].length>0?t[2]:null},e.document="undefined"!=typeof document?document:{},e}(),Ne=function(){function e(){}return e.canIncludeCorrelationHeader=function(e,t,n){if(e&&e.disableCorrelationHeaders)return!1;if(!t)return!1;var r=Me.parseUrl(t).host.toLowerCase();if(!(e&&e.enableCorsCorrelation||r===n))return!1;var i,o=e&&e.correlationHeaderDomains;
2if(o&&(o.forEach(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));i=i||t.test(r)}),!i))return!1;var a=e&&e.correlationHeaderExcludedDomains;if(!a||0===a.length)return!0;for(var s=0;s<a.length;s++){if(new RegExp(a[s].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(r))return!1}return!0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,Re.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),r=0;r<n.length;++r){var i=n[r].split("=");if(2===i.length&&i[0]===t)return i[1]}},e.correlationIdPrefix="cid-v1:",e}(),Oe=function(){function e(){}return e.ParseDependencyPath=function(e,t,n,r){var i,o=r,a=r;if(t&&t.length>0){var s=Me.parseUrl(t);if(i=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=Ae.sanitizeString(e,n?n+" "+c:c)}else o=Ae.sanitizeString(e,t)}else i=r,o=r;return{target:i,name:o,data:a}},e}(),Le=function(){function e(){}return e.Now="undefined"==typeof window?function(){return(new Date).getTime()}:window.performance&&window.performance.now&&window.performance.timing?function(){return window.performance.now()+window.performance.timing.navigationStart}:function(){return(new Date).getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||o.isNullOrUndefined(e)||o.isNullOrUndefined(t)||(n=t-e),n},e}(),Ue=function(){function e(){}return e.create=function(e,t,n,r,i,a){if(n=Ae.sanitizeString(r,n)||Pe.NotSpecified,o.isNullOrUndefined(e)||o.isNullOrUndefined(t)||o.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var s={name:n,time:(new Date).toISOString(),iKey:"",ext:a||{},tags:[],data:{},baseType:t,baseData:e};if(!o.isNullOrUndefined(i))for(var c in i)i.hasOwnProperty(c)&&(s.data[c]=i[c]);return s},e}(),je=function(e,t){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},je(e,t)};function qe(e,t){function n(){this.constructor=e}je(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fe=function(){return Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fe.apply(this,arguments)};var ze,Ve=function(){},Be=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return qe(t,e),t}(Ve),He=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.aiDataContract={ver:ke.Required,name:ke.Required,properties:ke.Default,measurements:ke.Default},o.name=Ae.sanitizeString(t,n)||Pe.NotSpecified,o.properties=Ae.sanitizeProperties(t,r),o.measurements=Ae.sanitizeMeasurements(t,i),o}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(Be),We=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.aiDataContract={ver:ke.Required,message:ke.Required,severityLevel:ke.Default,properties:ke.Default},n=n||Pe.NotSpecified,a.message=Ae.sanitizeMessage(t,n),a.properties=Ae.sanitizeProperties(t,i),a.measurements=Ae.sanitizeMeasurements(t,o),r&&(a.severityLevel=r),a}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return qe(t,e),t}(Ve)),Ge=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return qe(t,e),t}(Ve);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(ze||(ze={}));var Xe,$e=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:ke.Required,kind:ke.Default,value:ke.Required,count:ke.Default,min:ke.Default,max:ke.Default,stdDev:ke.Default},t}return qe(t,e),t}(function(){this.kind=ze.Measurement}),Ke=function(e){function t(t,n,r,i,o,a,s,c){var u=e.call(this)||this;u.aiDataContract={ver:ke.Required,metrics:ke.Required,properties:ke.Default};var l=new $e;return l.count=i>0?i:void 0,l.max=isNaN(a)||null===a?void 0:a,l.min=isNaN(o)||null===o?void 0:o,l.name=Ae.sanitizeString(t,n)||Pe.NotSpecified,l.value=r,u.metrics=[l],u.properties=Ae.sanitizeProperties(t,s),u.measurements=Ae.sanitizeMeasurements(t,c),u}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(Ge),Qe=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return qe(t,e),t}(Be),Ye=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:ke.Required,name:ke.Default,url:ke.Default,duration:ke.Default,properties:ke.Default,measurements:ke.Default,id:ke.Default},c.id=Ae.sanitizeId(t,s),c.url=Ae.sanitizeUrl(t,r),c.name=Ae.sanitizeString(t,n)||Pe.NotSpecified,isNaN(i)||(c.duration=Pe.msToTimeSpan(i)),c.properties=Ae.sanitizeProperties(t,o),c.measurements=Ae.sanitizeMeasurements(t,a),c}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(Qe),Je=function(e){function t(t,n,r,i,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:ke.Required,name:ke.Default,url:ke.Default,duration:ke.Default,perfTotal:ke.Default,networkConnect:ke.Default,sentRequest:ke.Default,receivedResponse:ke.Default,domProcessing:ke.Default,properties:ke.Default,measurements:ke.Default},c.url=Ae.sanitizeUrl(t,r),c.name=Ae.sanitizeString(t,n)||Pe.NotSpecified,c.properties=Ae.sanitizeProperties(t,o),c.measurements=Ae.sanitizeMeasurements(t,a),s&&(c.domProcessing=s.domProcessing,c.duration=s.duration,c.networkConnect=s.networkConnect,c.perfTotal=s.perfTotal,c.receivedResponse=s.receivedResponse,c.sentRequest=s.sentRequest),c}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return qe(t,e),t}(Qe)),Ze=function(){},et=function(){this.hasFullStack=!0,this.parsedStack=[]},tt=function(e){function t(t,n,r,i,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:ke.Required,exceptions:ke.Required,severityLevel:ke.Default,properties:ke.Default,measurements:ke.Default},n instanceof Error?(c.exceptions=[new nt(t,n)],c.properties=Ae.sanitizeProperties(t,r),c.measurements=Ae.sanitizeMeasurements(t,i),a&&(c.severityLevel=a),s&&(c.id=s)):(c.exceptions=n.exceptions,c.properties=n.properties,c.measurements=n.measurements,n.severityLevel&&(c.severityLevel=n.severityLevel),n.id&&(c.id=n.id),n.problemGroup&&(c.problemGroup=n.problemGroup),c.ver=2,o.isNullOrUndefined(n.isManual)||(c.isManual=n.isManual)),c}return qe(t,e),t.CreateFromInterface=function(e,n){var r=n.exceptions&&n.exceptions.map(function(t){return nt.CreateFromInterface(e,t)});return new t(e,Fe({},n,{exceptions:r}))},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,r=e.measurements,i=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&t.map(function(e){return e.toInterface()})||void 0,severityLevel:i,properties:n,measurements:r,problemGroup:o,id:a,isManual:s}},t.CreateSimpleException=function(e,t,n,r,i,o){return{exceptions:[{hasFullStack:!0,message:e,stack:i,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return qe(t,e),t}(Ve)),nt=function(e){function t(n,r){var i=e.call(this)||this;if(i.aiDataContract={id:ke.Default,outerId:ke.Default,typeName:ke.Required,message:ke.Required,hasFullStack:ke.Default,stack:ke.Default,parsedStack:ke.Array},r instanceof Error){i.typeName=Ae.sanitizeString(n,r.name)||Pe.NotSpecified,i.message=Ae.sanitizeMessage(n,r.message)||Pe.NotSpecified;var o=r.stack;
2i.parsedStack=t.parseStack(o),i.stack=Ae.sanitizeException(n,o),i.hasFullStack=Pe.isArray(i.parsedStack)&&i.parsedStack.length>0}else i.typeName=r.typeName,i.message=r.message,i.stack=r.stack,i.parsedStack=r.parsedStack,i.hasFullStack=r.hasFullStack;return i}return qe(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&this.parsedStack.map(function(e){return e.toInterface()});return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var r=n.parsedStack instanceof Array&&n.parsedStack.map(function(e){return rt.CreateFromInterface(e)})||n.parsedStack;return new t(e,Fe({},n,{parsedStack:r}))},t.parseStack=function(e){var t;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++){var a=n[o];if(rt.regex.test(a)){var s=new rt(n[o],r++);i+=s.sizeInBytes,t.push(s)}}if(i>32768)for(var c=0,u=t.length-1,l=0,d=c,f=u;c<u;){if((l+=t[c].sizeInBytes+t[u].sizeInBytes)>32768){var p=f-d+1;t.splice(d,p);break}d=c,f=u,c++,u--}}return t},t}(et),rt=function(e){function t(n,r){var i=e.call(this)||this;if(i.sizeInBytes=0,i.aiDataContract={level:ke.Required,method:ke.Required,assembly:ke.Default,fileName:ke.Default,line:ke.Default},"string"==typeof n){var o=n;i.level=r,i.method="<no_method>",i.assembly=Pe.trim(o),i.fileName="",i.line=0;var a=o.match(t.regex);a&&a.length>=5&&(i.method=Pe.trim(a[2])||i.method,i.fileName=Pe.trim(a[4]),i.line=parseInt(a[5])||0)}else i.level=n.level,i.method=n.method,i.assembly=n.assembly,i.fileName=n.fileName,i.line=n.line,i.sizeInBytes=0;return i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=t.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length,i}return qe(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(Ze);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(Xe||(Xe={}));var it=function(){function e(){}return e.getConfig=function(e,t,n,r){var i;return void 0===r&&(r=!1),i=n&&e.extensionConfig&&e.extensionConfig[n]&&!o.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],o.isNullOrUndefined(i)?r:i},e}(),ot="AppInsightsPropertiesPlugin",at="AppInsightsChannelPlugin",st=function(e){function t(t,n,r,i,o,a,s,c,u,l,d,f){void 0===u&&(u="Ajax");var p=e.call(this)||this;p.aiDataContract={id:ke.Required,ver:ke.Required,name:ke.Default,resultCode:ke.Default,duration:ke.Default,success:ke.Default,data:ke.Default,target:ke.Default,type:ke.Default,properties:ke.Default,measurements:ke.Default,kind:ke.Default,value:ke.Default,count:ke.Default,min:ke.Default,max:ke.Default,stdDev:ke.Default,dependencyKind:ke.Default,dependencySource:ke.Default,commandName:ke.Default,dependencyTypeName:ke.Default},p.id=n,p.duration=Pe.msToTimeSpan(o),p.success=a,p.resultCode=s+"",p.type=Ae.sanitizeString(t,u);var h=Oe.ParseDependencyPath(t,r,c,i);return p.data=Ae.sanitizeUrl(t,i)||h.data,p.target=Ae.sanitizeString(t,h.target),l&&(p.target=p.target+" | "+l),p.name=Ae.sanitizeString(t,h.name),p.properties=Ae.sanitizeProperties(t,d),p.measurements=Ae.sanitizeMeasurements(t,f),p}return qe(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return qe(t,e),t}(Ve)),ct=function(){function e(e,t,n,r){this.pageViewPerformanceSent=!1,this.overridePageViewDuration=!1,this.overridePageViewDuration=t,this.appInsights=e,this._pageViewPerformanceManager=r,n&&(this._channel=function(){return n.getTransmissionControls()},this._logger=n.logger)}return e.prototype.trackPageView=function(e,t){var n=this,r=e.name;(o.isNullOrUndefined(r)||"string"!=typeof r)&&(r=e.name="object"==typeof window&&window.document&&window.document.title||"");var a=e.uri;
2if((o.isNullOrUndefined(a)||"string"!=typeof a)&&(a=e.uri="object"==typeof window&&window.location&&window.location.href||""),!this._pageViewPerformanceManager.isPerformanceTimingSupported())return this.appInsights.sendPageViewInternal(e,t),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),void this._logger.throwInternal(i.WARNING,O,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");var s,c,u=!1,l=this._pageViewPerformanceManager.getPerformanceTiming().navigationStart;s=Le.GetDuration(l,+new Date),this._pageViewPerformanceManager.shouldCollectDuration(s)||(s=void 0),o.isNullOrUndefined(t)||o.isNullOrUndefined(t.duration)||(c=t.duration),!this.overridePageViewDuration&&isNaN(c)||(isNaN(c)&&(t||(t={}),t.duration=s),this.appInsights.sendPageViewInternal(e,t),this._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}),u=!0);t||(t={});var d=setInterval(function(){try{if(n._pageViewPerformanceManager.isPerformanceTimingDataReady()){clearInterval(d);var o={name:r,uri:a};n._pageViewPerformanceManager.populatePageViewPerformanceEvent(o),o.isValid||u?(u||(t.duration=o.durationMs,n.appInsights.sendPageViewInternal(e,t)),n.pageViewPerformanceSent||(n.appInsights.sendPageViewPerformanceInternal(o,t),n.pageViewPerformanceSent=!0),n._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})):(t.duration=s,n.appInsights.sendPageViewInternal(e,t),n._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})}))}else Le.GetDuration(l,+new Date)>6e4&&(clearInterval(d),u||(t.duration=6e4,n.appInsights.sendPageViewInternal(e,t),n._channel().forEach(function(e){e.forEach(function(e){return e.flush(!0)})})))}catch(e){n._logger.throwInternal(i.CRITICAL,X,"trackPageView failed on page load calculation: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},100)},e}(),ut=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(e){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+Pe.dump(e))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(e){return this._logger.warnToConsole("Call to restart failed: "+Pe.dump(e)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(Pe.canUseSessionStorage()){if(null!=Pe.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new lt(e,t),r=JSON.stringify(n);Pe.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,r)}}catch(e){this._logger.warnToConsole("Call to start failed: "+Pe.dump(e))}},e.prototype.stopPageVisitTimer=function(){try{if(Pe.canUseSessionStorage()){var e=Date.now(),t=Pe.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t){var n=JSON.parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,Pe.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(e){return this._logger.warnToConsole("Stop page visit timer failed: "+Pe.dump(e)),null}},e}(),lt=function(e,t){this.pageVisitStartTime=Date.now(),this.pageName=e,this.pageUrl=t},dt=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var r=t.duration,o=Le.GetDuration(t.startTime,t.connectEnd),a=Le.GetDuration(t.requestStart,t.responseStart),s=Le.GetDuration(t.responseStart,t.responseEnd),c=Le.GetDuration(t.responseEnd,t.loadEventEnd);else r=Le.GetDuration(n.navigationStart,n.loadEventEnd),o=Le.GetDuration(n.navigationStart,n.connectEnd),a=Le.GetDuration(n.requestStart,n.responseStart),s=Le.GetDuration(n.responseStart,n.responseEnd),c=Le.GetDuration(n.responseEnd,n.loadEventEnd);0===r?this._logger.throwInternal(i.WARNING,_,"error calculating page view performance.",{total:r,network:o,request:a,response:s,dom:c}):this.shouldCollectDuration(r,o,a,s,c)?r<Math.floor(o)+Math.floor(a)+Math.floor(s)+Math.floor(c)?this._logger.throwInternal(i.WARNING,w,"client performance math error.",{total:r,network:o,request:a,response:s,dom:c}):(e.durationMs=r,e.perfTotal=e.duration=Pe.msToTimeSpan(r),e.networkConnect=Pe.msToTimeSpan(o),e.sentRequest=Pe.msToTimeSpan(a),e.receivedResponse=Pe.msToTimeSpan(s),e.domProcessing=Pe.msToTimeSpan(c),e.isValid=!0):this._logger.throwInternal(i.WARNING,Z,"Invalid page load duration value. Browser perf data won't be sent.",{total:r,network:o,request:a,response:s,dom:c})}},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?window.performance.timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?window.performance.getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){return"undefined"!=typeof window&&window.performance&&window.performance.timing},e.prototype.isPerformanceTimingDataReady=function(){var e="object"==typeof window&&window.performance.timing;return"object"==typeof window&&e.domainLookupStart>0&&e.navigationStart>0&&e.responseStart>0&&e.requestStart>0&&e.loadEventEnd>0&&e.responseEnd>0&&e.connectEnd>0&&e.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=navigator.userAgent,i=!1;if(r)for(var o=0;o<n.length;o++)i=i||-1!==r.toLowerCase().indexOf(n[o]);if(i)return!1;for(o=0;o<e.length;o++)if(e[o]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}(),ft="duration",pt=function(){function e(){this.identifier="ApplicationInsightsAnalytics",this.priority=180,this.autoRoutePVDelay=500,this._isInitialized=!1,this._trackAjaxAttempts=0,this._prevUri="object"==typeof window&&window.location&&window.location.href||"",this.initialize=this._initialize.bind(this)}return e.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=Pe.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=Pe.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=Pe.stringToBoolOrDefault(e.overridePageViewDuration),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=Pe.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=Pe.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=Pe.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=Pe.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},e.prototype.processTelemetry=function(e){for(var t=!1,n=this._telemetryInitializer
2s.length,r=0;r<n;++r){var a=this._telemetryInitializers[r];if(a)try{if(!1===a.apply(null,[e])){t=!0;break}}catch(e){this._logger.throwInternal(i.CRITICAL,ge,"One of telemetry initializers failed, telemetry item will not be sent: "+Pe.getExceptionName(e),{exception:Pe.dump(e)},!0)}}t||o.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)},e.prototype.setNextPlugin=function(e){this._nextPlugin=e},e.prototype.trackEvent=function(e,t){try{var n=Ue.create(e,He.dataType,He.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(i.WARNING,$,"trackTrace failed, trace will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(e){this._logger.throwInternal(i.CRITICAL,q,"startTrackEvent failed, event will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(e){this._logger.throwInternal(i.CRITICAL,F,"stopTrackEvent failed, event will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.trackTrace=function(e,t){try{var n=Ue.create(e,We.dataType,We.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(i.WARNING,$,"trackTrace failed, trace will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.trackMetric=function(e,t){try{var n=Ue.create(e,Ke.dataType,Ke.envelopeType,this._logger,t);this.core.track(n)}catch(e){this._logger.throwInternal(i.CRITICAL,W,"trackMetric failed, metric will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,De({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(e){this._logger.throwInternal(i.CRITICAL,G,"trackPageView failed, page view will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.sendPageViewInternal=function(e,t,n){"undefined"!=typeof document&&(e.refUri=void 0===e.refUri?document.referrer:e.refUri);var r=Ue.create(e,Ye.dataType,Ye.envelopeType,this._logger,t,n);this.core.track(r),this._trackAjaxAttempts=0},e.prototype.sendPageViewPerformanceInternal=function(e,t,n){var r=Ue.create(e,Je.dataType,Je.envelopeType,this._logger,t,n);this.core.track(r)},e.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(e){this._logger.throwInternal(i.CRITICAL,G,"trackPageViewPerformance failed, page view will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.startTrackPage=function(e){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),this._pageTracking.start(e)}catch(e){this._logger.throwInternal(i.CRITICAL,z,"startTrackPage failed, page view may not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.stopTrackPage=function(e,t,n,r){try{"string"!=typeof e&&(e="object"==typeof window&&window.document&&window.document.title||""),"string"!=typeof t&&(t="object"==typeof window&&window.location&&window.location.href||""),this._pageTracking.stop(e,t,n,r),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(e){this._logger.throwInternal(i.CRITICAL,V,"stopTrackPage failed, page view will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.sendExceptionInternal=function(e,t,n){var r=new tt(this._logger,e.exception||new Error(Pe.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),i=Ue.create(r,tt.dataType,tt.envelopeType,this._logger,t,n);this.core.track(i)},e.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(e){this._logger.throwInternal(i.CRITICAL,H,"trackException failed, exception will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype._onerror=function(e){try{var t={url:e&&e.url||document.URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(Pe.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!Pe.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:Xe.Error},t)}}catch(t){var r=e.error?e.error.name+", "+e.error.message:"null";this._logger.throwInternal(i.CRITICAL,x,"_onError threw exception while logging error, error will not be collected: "+Pe.getExceptionName(t),{exception:Pe.dump(t),errorString:r})}},e.prototype.addTelemetryInitializer=function(e){this._telemetryInitializer
2s.push(e)},e.prototype._initialize=function(t,n,r){var i=this;if(!this._isInitialized){if(o.isNullOrUndefined(n))throw Error("Error initializing");this.core=n,this._logger=n.logger,this._globalconfig={instrumentationKey:t.instrumentationKey,endpointUrl:t.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=t.extensionConfig&&t.extensionConfig[this.identifier]?t.extensionConfig[this.identifier]:{};var a=e.getDefaultConfig();if(void 0!==a){for(var s in a)this.config[s]=it.getConfig(t,s,this.identifier,a[s]);if(this._globalconfig)for(var s in a)void 0===this._globalconfig[s]&&(this._globalconfig[s]=a[s])}this.config.isCookieUseDisabled&&Pe.disableCookies(),this.config.isStorageUseDisabled&&Pe.disableStorage();var c={instrumentationKey:function(){return t.instrumentationKey},accountId:function(){return i.config.accountId||t.accountId},sessionRenewalMs:function(){return i.config.sessionRenewalMs||t.sessionRenewalMs},sessionExpirationMs:function(){return i.config.sessionExpirationMs||t.sessionExpirationMs},sampleRate:function(){return i.config.samplingPercentage||t.samplingPercentage},cookieDomain:function(){return i.config.cookieDomain||t.cookieDomain},sdkExtension:function(){return i.config.sdkExtension||t.sdkExtension},isBrowserLinkTrackingEnabled:function(){return i.config.isBrowserLinkTrackingEnabled||t.isBrowserLinkTrackingEnabled},appId:function(){return i.config.appId||t.appId}};this._pageViewPerformanceManager=new dt(this.core),this._pageViewManager=new ct(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new ut(this._logger,function(e,t,n){return i.trackPageVisitTime(e,t,n)}),this._telemetryInitializers=[],this._addDefaultTelemetryInitializers(c),this._eventTracking=new ht(this._logger,"trackEvent"),this._eventTracking.action=function(e,t,n,r){r||(r={}),r[ft]=n.toString(),i.trackEvent({name:e,properties:r})},this._pageTracking=new ht(this._logger,"trackPageView"),this._pageTracking.action=function(e,t,n,r,a){o.isNullOrUndefined(r)&&(r={}),r[ft]=n.toString();var s={name:e,uri:t,properties:r,measurements:a};i.sendPageViewInternal(s)};var u,l=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&"object"==typeof window){var d=window.onerror;window.onerror=function(e,t,n,r,i){var o=d&&d(e,t,n,r,i);return!0!==o&&l._onerror({message:e,url:t,lineNumber:n,columnNumber:r,error:i}),o},this.config.autoExceptionInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&"object"==typeof history&&"function"==typeof history.pushState&&"function"==typeof history.replaceState&&"object"==typeof window&&"undefined"!=typeof Event){var f=this;r.forEach(function(e){e.identifier===ot&&(i._properties=e)}),history.pushState=(u=history.pushState,function(){var e=u.apply(this,arguments);return window.dispatchEvent(Pe.createDomEvent(f.config.namePrefix+"pushState")),window.dispatchEvent(Pe.createDomEvent(f.config.namePrefix+"locationchange")),e}),history.replaceState=function(e){return function(){var t=e.apply(this,arguments);return window.dispatchEvent(Pe.createDomEvent(f.config.namePrefix+"replaceState")),window.dispatchEvent(Pe.createDomEvent(f.config.namePrefix+"locationchange")),t}}(history.replaceState),window.addEventListener(f.config.namePrefix+"popstate",function(){window.dispatchEvent(Pe.createDomEvent(f.config.namePrefix+"locationchange"))}),window.addEventListener(f.config.namePrefix+"locationchange",function(){f._properties&&f._properties.context&&f._properties.context.telemetryTrace&&(f._properties.context.telemetryTrace.traceID=Pe.generateW3CId(),f._properties.context.telemetryTrace.name=window.location&&window.location.pathname||"_unknown_"),i._currUri?(i._prevUri=i._currUri,i._currUri=window.location&&window.location.href||""):i._currUri=window.location&&window.location.href||"",setTimeout(function(e){f.trackPageView({refUri:e,properties:{duration:0}})}.bind(i,i._prevUri),f.autoRoutePVDelay)})}this._isInitialized=!0}},e.prototype.trackPageVisitTime=function(e,t,n){var r={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},r)}
2,e.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer(function(e){if(e.baseType===st.dataType){var n=e.baseData;if(n)for(var r=0;r<t.length;r++)if(n.target&&n.target.indexOf(t[r])>=0)return!1}return!0})}},e.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},e.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=Ue.create(t,tt.dataType,tt.envelopeType,this._logger,{url:e});this.core.track(n)},e.Version="2.3.0",e}(),ht=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){void 0!==this._events[e]&&this._logger.throwInternal(i.WARNING,pe,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,r){var o=this._events[e];if(isNaN(o))this._logger.throwInternal(i.WARNING,he,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var a=+new Date,s=Le.GetDuration(o,a);this.action(e,t,s,n,r)}delete this._events[e],this._events[e]=void 0},e}(),gt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",mt="sampleRate",yt="ProcessLegacy",vt="http.method",wt=function(){function e(){}return e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR).reduce(function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var i=r[0].toLowerCase(),o=r[1];t[i]=o}return t},{});if(Object.keys(n).length>0){if(n.endpointsuffix){var r=n.location?n.location+".":"";n.ingestionendpoint=n.ingestionendpoint||"https://"+r+"dc."+n.endpointsuffix}n.ingestionendpoint=n.ingestionendpoint||"https://dc.services.visualstudio.com"}return n},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}(),bt=function(e,t){return bt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},bt(e,t)};function _t(e,t){function n(){this.constructor=e}bt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var xt=function(){return xt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xt.apply(this,arguments)};var It=function(){function e(e){this._config=e,this._buffer=[]}return e.prototype.enqueue=function(e){this._buffer.push(e)},e.prototype.count=function(){return this._buffer.length},e.prototype.clear=function(){this._buffer.length=0},e.prototype.getItems=function(){return this._buffer.slice(0)},e.prototype.batchPayloads=function(e){return e&&e.length>0?this._config.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.prototype.markAsSent=function(e){this.clear()},e.prototype.clearSent=function(e){},e}(),Et=function(){function e(t,n){this._bufferFullMessageSent=!1,this._logger=t,this._config=n;var r=this.getBuffer(e.BUFFER_KEY),i=this.getBuffer(e.SENT_BUFFER_KEY);this._buffer=r.concat(i),this._buffer.length>e.MAX_BUFFER_SIZE&&(this._buffer.length=e.MAX_BUFFER_SIZE),this.setBuffer(e.SENT_BUFFER_KEY,[]),this.setBuffer(e.BUFFER_KEY,this._buffer)}return e.prototype.enqueue=function(t){this._buffer.length>=e.MAX_BUFFER_SIZE?this._bufferFullMessageSent||(this._logger.throwInternal(i.WARNING,ye,"Maximum buffer size reached: "+this._buffer.length,!0),this._bufferFullMessageSent=!0):(this._buffer.push(t),this.setBuffer(e.BUFFER_KEY,this._buffer))},e.prototype.count=function(){return this._buffer.length},e.prototype.clear=function(){this._buffer.length=0,this.setBuffer(e.BUFFER_KEY,[]),this.setBuffer(e.SENT_BUFFER_KEY,[]),this._bufferFullMessageSent=!1},e.prototype.getItems=function(){return this._buffer.slice(0)},e.prototype.batchPayloads=function(e){return e&&e.length>0?this._config.emitLineDelimitedJson()?e.join("\n"):"["+e.join(",")+"]":null},e.prototype.markAsSent=function(t){this._buffer=this.removePayloadsFromBuffer(t,this._buffer),this.setBuffer(e.BUFFER_KEY,this._buffer);var n=this.getBuffer(e.SENT_BUFFER_KEY);n instanceof Array&&t instanceof Array&&((n=n.concat(t)).length>e.MAX_BUFFER_SIZE&&(this._logger.throwInternal(i.CRITICAL,ye,"Sent buffer reached its maximum size: "+n.length,!0),n.length=e.MAX_BUFFER_SIZE),this.setBuffer(e.SENT_BUFFER_KEY,n))},e.prototype.clearSent=function(t){var n=this.getBuffer(e.SENT_BUFFER_KEY);n=this.removePayloadsFromBuffer(t,n),this.setBuffer(e.SENT_BUFFER_KEY,n)},e.prototype.removePayloadsFromBuffer=function(e,t){var n=[];for(var r in t){var i=!1;for(var o in e)if(e[o]===t[r]){i=!0;break}i||n.push(t[r])}return n},e.prototype.getBuffer=function(e){var t=e;try{t=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+t:t;var n=Pe.getSessionStorage(this._logger,t);if(n){var r=JSON.parse(n);if(r)return r}}catch(e){this._logger.throwInternal(i.CRITICAL,Y," storage key: "+t+", "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}return[]},e.prototype.setBuffer=function(e,t){var n=e;try{n=this._config.namePrefix&&this._config.namePrefix()?this._config.namePrefix()+"_"+n:n;var r=JSON.stringify(t);Pe.setSessionStorage(this._logger,n,r)}catch(e){Pe.setSessionStorage(this._logger,n,JSON.stringify([])),this._logger.throwInternal(i.WARNING,Q," storage key: "+n+", "+Pe.getExceptionName(e)+". Buffer cleared",{exception:Pe.dump(e)})}},e.BUFFER_KEY="AI_buffer",e.SENT_BUFFER_KEY="AI_sentBuffer",e.MAX_BUFFER_SIZE=2e3,e}(),St=function(e){function t(t,n,r){var i=e.call(this)||this;return i.name=Ae.sanitizeString(t,r)||Pe.NotSpecified,i.data=n,i.time=Pe.toISOStringForIE8(new Date),i.aiDataContract={t
2ime:ke.Required,iKey:ke.Required,name:ke.Required,sampleRate:function(){return 100===i.sampleRate?ke.Hidden:ke.Required},tags:ke.Required,data:ke.Required},i}return qe(t,e),t}(function(){this.ver=1,this.sampleRate=100,this.tags={}}),Ct=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion"},kt=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk",e}(),Tt=new Ct,Dt=function(e){function t(t,n){var r=e.call(this)||this;return r.aiDataContract={baseType:ke.Required,baseData:ke.Required},r.baseType=t,r.baseData=n,r}return qe(t,e),t}(function(e){function t(){return e.call(this)||this}return qe(t,e),t}(function(){})),Rt=function(){function e(){}return e.extractPropsAndMeasurements=function(e,t,n){if(!o.isNullOrUndefined(e))for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];"number"==typeof i?n[r]=i:t[r]="string"==typeof i?i:JSON.stringify(i)}},e.createEnvelope=function(t,n,r,i){var o=new St(t,i,n);r[mt]&&(o.sampleRate=r[mt]),o.iKey=r.iKey;var a=r.iKey.replace(/-/g,"");return o.name=o.name.replace("{0}",a),e.extractPartAExtensions(r,o),r.tags||(r.tags=[]),o},e.extractPartAExtensions=function(t,n){if(n.tags||(n.tags={}),t.ext||(t.ext={}),t.tags||(t.tags=[]),t.ext.user){t.ext.user.authId&&(n.tags[Tt.userAuthUserId]=t.ext.user.authId);var r=t.ext.user.id||t.ext.user.localId;r&&(n.tags[Tt.userId]=r)}if(t.ext.app&&t.ext.app.sesId&&(n.tags[Tt.sessionId]=t.ext.app.sesId),t.ext.device&&((t.ext.device.id||t.ext.device.localId)&&(n.tags[Tt.deviceId]=t.ext.device.id||t.ext.device.localId),t.ext.device.deviceClass&&(n.tags[Tt.deviceType]=t.ext.device.deviceClass),t.ext.device.ip&&(n.tags[Tt.deviceIp]=t.ext.device.ip)),t.ext.web){var i=t.ext.web;i.browserLang&&(n.tags[Tt.deviceLanguage]=i.browserLang),i.browserVer&&(n.tags[Tt.deviceBrowserVersion]=i.browserVer),i.browser&&(n.tags[Tt.deviceBrowser]=i.browser),n.data=n.data||{},n.data.baseData=n.data.baseData||{},n.data.baseData.properties=n.data.baseData.properties||{},i.domain&&(n.data.baseData.properties.domain=i.domain),i.isManual&&(n.data.baseData.properties.isManual=i.isManual.toString()),i.screenRes&&(n.data.baseData.properties.screenRes=i.screenRes),i.userConsent&&(n.data.baseData.properties.userConsent=i.userConsent.toString())}t.ext.device&&t.ext.device.model&&(n.tags[Tt.deviceModel]=t.ext.device.model),t.ext.os&&t.ext.os.name&&(n.tags[Tt.deviceOS]=t.ext.os.name),t.ext.device&&t.ext.device.deviceType&&(n.tags[Tt.deviceType]=t.ext.device.deviceType),t.ext.trace&&(t.ext.trace.parentID&&(n.tags[Tt.operationParentId]=t.ext.trace.parentID),t.ext.trace.name&&(n.tags[Tt.operationName]=t.ext.trace.name),t.ext.trace.traceID&&(n.tags[Tt.operationId]=t.ext.trace.traceID));for(var o={},a=function(e){var n=t.tags[e];
2Object.keys(n).forEach(function(e){o[e]=n[e]}),t.tags.splice(e,1)},s=t.tags.length-1;s>=0;s--)a(s);for(var c in t.tags)o[c]=t.tags[c];n.tags=xt({},n.tags,o),n.tags[Tt.internalSdkVersion]||(n.tags[Tt.internalSdkVersion]="javascript:"+e.Version)},e.Version="2.3.0",e}(),At=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n=t.baseData.measurements||{},r=t.baseData.properties||{};Rt.extractPropsAndMeasurements(t.data,r,n);var a=t.baseData;if(o.isNullOrUndefined(a))return e.warnToConsole("Invalid input for dependency data"),null;var s=a.id,c=a.target,u=a.name,l=a.duration,d=a.success,f=a.responseCode,p=a.type,h=a.correlationContext,g=a.properties&&a.properties[vt]?a.properties[vt]:"GET",m=new st(e,s,c,u,l,d,f,g,p,h,r,n),y=new Dt(st.dataType,m);return Rt.createEnvelope(e,st.envelopeType,t,y)},t.DependencyEnvelopeCreator=new t,t}(Rt),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n={},r={};t.baseType!==He.dataType&&(n.baseTypeSource=t.baseType),t.baseType===He.dataType?(n=t.baseData.properties||{},r=t.baseData.measurements||{}):t.baseData&&Rt.extractPropsAndMeasurements(t.baseData,n,r),Rt.extractPropsAndMeasurements(t.data,n,r);var a=t.baseData.name,s=new He(e,a,n,r),c=new Dt(He.dataType,s);return Rt.createEnvelope(e,He.envelopeType,t,c)},t.EventEnvelopeCreator=new t,t}(Rt),Mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n=t.baseData,r=tt.CreateFromInterface(e,n),a=new Dt(tt.dataType,r);return Rt.createEnvelope(e,tt.envelopeType,t,a)},t.ExceptionEnvelopeCreator=new t,t}(Rt),Nt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n=t.baseData.properties||{},r=t.baseData.measurements||{};Rt.extractPropsAndMeasurements(t.data,n,r);var a=t.baseData.name,s=t.baseData.average,c=t.baseData.sampleCount,u=t.baseData.min,l=t.baseData.max,d=new Ke(e,a,s,c,u,l,n,r),f=new Dt(Ke.dataType,d);return Rt.createEnvelope(e,Ke.envelopeType,t,f)},t.MetricEnvelopeCreator=new t,t}(Rt),Ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){var n;this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null."),o.isNullOrUndefined(t.baseData)||o.isNullOrUndefined(t.baseData.properties)||o.isNullOrUndefined(t.baseData.properties.duration)?o.isNullOrUndefined(t.data)||o.isNullOrUndefined(t.data.duration)||(n=t.data.duration,delete t.data.duration):(n=t.baseData.properties.duration,delete t.baseData.properties.duration);var r,a=t.baseData;t.ext&&t.ext.trace&&t.ext.trace.traceID&&(r=t.ext.trace.traceID);var s=a.id||r,c=a.name,u=a.uri,l=a.properties||{},d=a.measurements||{};if(o.isNullOrUndefined(a.refUri)||(l.refUri=a.refUri),o.isNullOrUndefined(a.pageType)||(l.pageType=a.pageType),o.isNullOrUndefined(a.isLoggedIn)||(l.isLoggedIn=a.isLoggedIn.toString()),!o.isNullOrUndefined(a.properties)){var f=a.properties;for(var p in f)f.hasOwnProperty(p)&&(l[p]=f[p])}Rt.extractPropsAndMeasurements(t.data,l,d);var h=new Ye(e,c,u,n,l,d,s),g=new Dt(Ye.dataType,h);return Rt.createEnvelope(e,Ye.envelopeType,t,g)},t.PageViewEnvelopeCreator=new t,t}(Rt),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n=t.baseData,r=n.name,a=n.uri||n.url,s=n.properties||{},c=n.measurements||{};Rt.extractPropsAndMeasurements(t.data,s,c);var u=new Je(e,r,a,void 0,s,c,n),l=new Dt(Je.dataType,u);return Rt.createEnvelope(e,Je.envelopeType,t,l)},t.PageViewPerformanceEnvelopeCreator=new t,t}(Rt),Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _t(t,e),t.prototype.Create=function(e,t){this._logger=e,o.isNullOrUndefined(t.baseData)&&this._logger.throwInternal(i.CRITICAL,ee,"telemetryItem.baseData cannot be null.");var n=t.baseData.message,r=t.baseData.severityLevel,a=t.baseData.properties||{},s=t.baseData.measurements||{};Rt.extractPropsAndMeasurements(t.data,a,s);var c=new We(e,n,r,a,s),u=new Dt(We.dataType,c);return Rt.createEnvelope(e,We.envelopeType,t,u)},t.TraceEnvelopeCreator=new t,t}(Rt),jt=function(){function e(e){this._logger=e}return e.prototype.serialize=function(e){var t=this._serializeObject(e,"root");return JSON.stringify(t)},e.prototype._serializeObject=function(e,t){var n="__aiCircularRefCheck",r={};if(!e)return this._logger.throwInternal(i.CRITICAL,ne,"cannot serialize object because it is null or undefined",{name:t},!0),r;if(e[n])return this._logger.throwInternal(i.WARNING,ie,"Circular reference detected while serializing object",{name:t},!0),r;if(!e.aiDataContract){if("measurements"===t)r=this._serializeStringMap(e,"number",t);else if("properties"===t)r=this._serializeStringMap(e,"string",t);else if("tags"===t)r=this._serializeStringMap(e,"string",t);else if(Pe.isArray(e))r=this._serializeArray(e,t);else{this._logger.throwInternal(i.WARNING,re,"Attempting to serialize an object which does not implement ISerializable",{name:t},!0);try{JSON.stringify(e),r=e}catch(e){this._logger.throwInternal(i.CRITICAL,ne,e&&"function"==typeof e.toString?e.toString():"Error serializing object",null,!0)}}return r}for(var o in e[n]=!0,e.aiDataContract){var a=e.aiDataContract[o],s="function"==typeof a?a()&ke.Required:a&ke.Required,c="function"==typeof a?a()&ke.Hidden:a&ke.Hidden,u=a&ke.Array,l=void 0!==e[o],d="object"==typeof e[o]&&null!==e[o];if(!s||l||u){if(!c){var f=void 0;void 0!==(f=d?u?this._serializeArray(e[o],o):this._serializeObject(e[o],o):e[o])&&(r[o]=f)}}else this._logger.throwInternal(i.CRITICAL,N,"Missing required field specification. The field is required but not present on source",{field:o,name:t})}return delete e[n],r},e.prototype._serializeArray=function(e,t){var n;if(e)if(Pe.isArray(e)){n=[];for(var r=0;r<e.length;r++){var o=e[r],a=this._serializeObject(o,t+"["+r+"]");n.push(a)}}else this._logger.throwInternal(i.CRITICAL,ae,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:t},!0);return n},e.prototype._serializeStringMap=function(e,t,n){var r;if(e)for(var o in r={},e){var a=e[o];if("string"===t)void 0===a?r[o]="undefined":null===a?r[o]="null":a.toString?r[o]=a.toString():r[o]="invalid field: toString() is not defined.";else if("number"===t)if(void 0===a)r[o]="undefined";else if(null===a)r[o]="null";else{var s=parseFloat(a);isNaN(s)?r[o]="NaN":r[o]=s}else r[o]="invalid field: "+n+" is of unknown type.",this._logger.throwInternal(i.CRITICAL,r[o],null,!0)}return r},e}(),qt=function(){function e(){this._onlineStatus=!0;try{"undefined"==typeof window?this.isListening=!1:window&&window.addEventListener?(window.addEventListener("online",this._setOnline.bind(this),!1),window.addEventListener("offline",this._setOffline.bind(this),!1),this.isListening=!0):document&&document.body?(document.body.ononline=this._setOnline.bind(this),document.body.onoffline=this._setOffline.bind(this),this.isListening=!0):document?(document.ononline=this._setOnline.bind(this),document.onoffline=this._setOffline.bind(this),this.isListening=!0):this.isListening=!1}catch(e){this.isListening=!1}}return e.prototype.isOnline=function(){return this.isListening?this._onlineStatus:!(navigator&&!o.isNullOrUndefined(navigator.onLine))||navigator.onLine},e.prototype.isOffline=function(){return!this.isOnline()},e.prototype._setOnline=function(){this._onlineStatus=!0},e.prototype._setOffline=function(){this._onlineStatus=!1},e.Offline=new e,e}().Offline,Ft=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return 100*(this.getHashCode(t)/e.INT_MAX_VALUE)},e.prototype.getHashCode=function(t){if(""===t)return 0;for(;t.length<e.MIN_INPUT_LENGTH;)t=t.concat(t);for(var n=5381,r=0;r<t.length;++r)n=(n<<5)+n+t.charCodeAt(r),n&=n;return Math.abs(n)},e.INT_MAX_VALUE=2147483647,e.MIN_INPUT_LENGTH=8,e}(),zt=function(){function e(){this.hashCodeGeneragor=new Ft,this.keys=new Ct}return e.prototype.getSamplingScore=function(e){return e.tags&&e.tags[this.keys.userId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.userId]):e.ext&&e.ext.user&&e.ext.user.id?this.hashCodeGeneragor.getHashCodeScore(e.ext.user.id):e.tags&&e.tags[this.keys.operationId]?this.hashCodeGeneragor.getHashCodeScore(e.tags[this.keys.operationId]):e.ext&&e.ext.telemetryTrace&&e.ext.telemetryTrace.traceID?this.hashCodeGeneragor.getHashCodeScore(e.ext.telemetryTrace.traceID):100*Math.random()},e}(),Vt=function(){function e(e,t){this.INT_MAX_VALUE=2147483647,this._logger=o.isNullOrUndefined(t)?new Ee:t,(e>100||e<0)&&(this._logger.throwInternal(i.WARNING,le,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:e},!0),this.sampleRate=100),this.sampleRate=e,this.samplingScoreGenerator=new zt}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||(e.baseType===Ke.dataType||this.samplingScoreGenerator.getSamplingScore(e)<t)},e}(),Bt=function(){function e(){this.priority=1001,this.identifier=at,this._XMLHttpRequestSupported=!1}return e.constructEnvelope=function(e,t,n){var r;switch((r=t===e.iKey||o.isNullOrUndefined(t)?e:xt({},e,{iKey:t})).baseType){case He.dataType:return Pt.EventEnvelopeCreator.Create(n,r);case We.dataType:return Ut.TraceEnvelopeCreator.Create(n,r);case Ye.dataType:return Ot.PageViewEnvelopeCreator.Create(n,r);case Je.dataType:return Lt.PageViewPerformanceEnvelopeCreator.Create(n,r);case tt.dataType:return Mt.ExceptionEnvelopeCreator.Create(n,r);case Ke.dataType:return Nt.MetricEnvelopeCreator.Create(n,r);case st.dataType:return At.DependencyEnvelopeCreator.Create(n,r);default:return Pt.EventEnvelopeCreator.Create(n,r)}},e._getDefaultAppInsightsChannelConfig=function(){return{endpointUrl:function(){return"https://dc.services.visualstudio.com/v2/track"},emitLineDelimitedJson:function(){return!1},maxBatchInterval:function(){return 15e3},maxBatchSizeInBytes:function(){return 102400},disableTelemetry:function(){return!1},enableSessionStorageBuffer:function(){return!0},isRetryDisabled:function(){return!1},isBeaconApiDisabled:function(){return!0},onunloadDisableBeacon:function(){return!1},instrumentationKey:function(){},namePrefix:function(){},samplingPercentage:function(){return 100}}},e._getEmptyAppInsightsChannelConfig=function(){return{endpointUrl:void 0,emitLineDelimitedJson:void 0,maxBatchInterval:void 0,maxBatchSizeInBytes:void 0,disableTelemetry:void 0,enableSessionStorageBuffer:void 0,isRetryDisabled:void 0,isBeaconApiDisabled:void 0,onunloadDisableBeacon:void 0,instrumentationKey:void 0,namePrefix:void 0,samplingPercentage:void 0}},e.prototype.pause=function(){throw new Error("Method not implemented.")},e.prototype.resume=function(){throw new Error("Method not implemented.")},e.prototype.flush=function(){try{this.triggerSend()}catch(e){this._logger.throwInternal(i.CRITICAL,P,"flush failed, telemetry will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.onunloadFlush=function(){if(!1!==this._config.onunloadDisableBeacon()&&!1!==this._config.isBeaconApiDisabled()||!Pe.IsBeaconApiSupported())this.flush();else try{this.triggerSend(!0,this._beaconSender)}catch(e){this._logger.throwInternal(i.CRITICAL,A,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype.teardown=function(){throw new Error("Method not implemented.")},e.prototype.initialize=function(t,n,r){var i=this;
2this._logger=n.logger,this._serializer=new jt(n.logger),this._consecutiveErrors=0,this._retryAt=null,this._lastSend=0,this._sender=null;var o=e._getDefaultAppInsightsChannelConfig();this._config=e._getEmptyAppInsightsChannelConfig();var a=function(e){s._config[e]=function(){return it.getConfig(t,e,i.identifier,o[e]())}},s=this;for(var c in o)a(c);(this._buffer=this._config.enableSessionStorageBuffer&&Pe.canUseSessionStorage()?new Et(this._logger,this._config):new It(this._config),this._sample=new Vt(this._config.samplingPercentage(),this._logger),!this._config.isBeaconApiDisabled()&&Pe.IsBeaconApiSupported())?this._sender=this._beaconSender:"undefined"!=typeof XMLHttpRequest&&("withCredentials"in new XMLHttpRequest?(this._sender=this._xhrSender,this._XMLHttpRequestSupported=!0):"undefined"!=typeof XDomainRequest&&(this._sender=this._xdrSender))},e.prototype.processTelemetry=function(t){var n=this;try{if(this._config.disableTelemetry())return;if(!t)return void this._logger.throwInternal(i.CRITICAL,v,"Cannot send empty telemetry");if(t.baseData&&!t.baseType)return void this._logger.throwInternal(i.CRITICAL,be,"Cannot send telemetry without baseData and baseType");if(t.baseType||(t.baseType="EventData"),!this._sender)return void this._logger.throwInternal(i.CRITICAL,j,"Sender was not initialized");if(!this._isSampledIn(t))return void this._logger.throwInternal(i.WARNING,B,"Telemetry item was sampled out and not sent",{SampleRate:this._sample.sampleRate});t[mt]=this._sample.sampleRate;var r=e.constructEnvelope(t,this._config.instrumentationKey(),this._logger);if(!r)return void this._logger.throwInternal(i.CRITICAL,te,"Unable to create an AppInsights envelope");var a=!1;if(t.tags&&t.tags[yt]&&(t.tags[yt].forEach(function(e){try{e&&!1===e(r)&&(a=!0,n._logger.warnToConsole("Telemetry processor check returns false"))}catch(e){n._logger.throwInternal(i.CRITICAL,ge,"One of telemetry initializers failed, telemetry item will not be sent: "+Pe.getExceptionName(e),{exception:Pe.dump(e)},!0)}}),delete t.tags[yt]),a)return;var s=this._serializer.serialize(r),c=this._buffer.getItems(),u=this._buffer.batchPayloads(c);u&&u.length+s.length>this._config.maxBatchSizeInBytes()&&this.triggerSend(),this._buffer.enqueue(s),this._setupTimer()}catch(e){this._logger.throwInternal(i.WARNING,I,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}o.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(t)},e.prototype.setNextPlugin=function(e){this._nextPlugin=e},e.prototype._xhrReadyStateChange=function(e,t,n){if(4===e.readyState){var r=null;if(this._appId||(r=this._parseResponse(e.responseText||e.response))&&r.appId&&(this._appId=r.appId),(e.status<200||e.status>=300)&&0!==e.status)!this._config.isRetryDisabled()&&this._isRetriable(e.status)?(this._resendPayload(t),this._logger.throwInternal(i.WARNING,K,". Response code "+e.status+". Will retry to send "+t.length+" items.")):this._onError(t,this._formatErrorMessageXhr(e));else if(qt.isOffline()){if(!this._config.isRetryDisabled()){this._resendPayload(t,10),this._logger.throwInternal(i.WARNING,K,". Offline - Response Code: "+e.status+". Offline status: "+qt.isOffline()+". Will retry to send "+t.length+" items.")}}else 206===e.status?(r||(r=this._parseResponse(e.responseText||e.response)),r&&!this._config.isRetryDisabled()?this._onPartialSuccess(t,r):this._onError(t,this._formatErrorMessageXhr(e))):(this._consecutiveErrors=0,this._onSuccess(t,n))}},e.prototype.triggerSend=function(e,t){void 0===e&&(e=!0);try{if(this._config.disableTelemetry())this._buffer.clear();else{if(this._buffer.count()>0){var n=this._buffer.getItems();t?t.call(this,n,e):this._sender(n,e)}this._lastSend=+new Date}clearTimeout(this._timeoutHandle),this._timeoutHandle=null,this._retryAt=null}catch(e){(!Pe.getIEVersion()||Pe.getIEVersion()>9)&&this._logger.throwInternal(i.CRITICAL,K,"Telemetry transmission failed, some telemetry will be lost: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}},e.prototype._onError=function(e,t,n){this._logger.throwInternal(i.WARNING,L,"Failed to send telemetry.",{message:t}),this._buffer.clearSent(e)},e.prototype._onPartialSuccess=function(e,t){for(var n=[],r=[],o=0,a=t.errors.reverse();o<a.length;o++){var s=a[o],c=e.splice(s.index,1)[0];this._isRetriable(s.statusCode)?r.push(c):n.push(c)}e.length>0&&this._onSuccess(e,t.itemsAccepted),n.length>0&&this._onError(n,this._formatErrorMessageXhr(null,["partial success",t.itemsAccepted,"of",t.itemsReceived].join(" "))),r.length>0&&(this._resendPayload(r),this._logger.throwInternal(i.WARNING,K,"Partial success. Delivered: "+e.length+", Failed: "+n.length+". Will retry to send "+r.length+" our of "+t.itemsReceived+" items"))},e.prototype._onSuccess=function(e,t){this._buffer.clearSent(e)},e.prototype._xdrOnLoad=function(e,t){if(!e||e.responseText+""!="200"&&""!==e.responseText){var n=this._parseResponse(e.responseText);n&&n.itemsReceived&&n.itemsReceived>n.itemsAccepted&&!this._config.isRetryDisabled()?this._onPartialSuccess(t,n):this._onError(t,this._formatErrorMessageXdr(e))}else this._consecutiveErrors=0,this._onSuccess(t,0)},e.prototype._isSampledIn=function(e){return this._sample.isSampledIn(e)},e.prototype._beaconSender=function(e,t){var n=this._config.endpointUrl(),r=this._buffer.batchPayloads(e),o=new Blob([r],{type:"text/plain;charset=UTF-8"});navigator.sendBeacon(n,o)?(this._buffer.markAsSent(e),this._onSuccess(e,e.length)):(this._xhrSender(e,!0),this._logger.throwInternal(i.WARNING,K,". Failed to send telemetry with Beacon API, retried with xhrSender."))},e.prototype._xhrSender=function(e,t){var n=this,r=new XMLHttpRequest;r[gt]=!0,r.open("POST",this._config.endpointUrl(),t),r.setRequestHeader("Content-type","application/json"),Pe.isInternalApplicationInsightsEndpoint(this._config.endpointUrl())&&r.setRequestHeader(Re.sdkContextHeader,Re.sdkContextHeaderAppIdRequest),r.onreadystatechange=function(){return n._xhrReadyStateChange(r,e,e.length)},r.onerror=function(t){return n._onError(e,n._formatErrorMessageXhr(r),t)};var i=this._buffer.batchPayloads(e);r.send(i),this._buffer.markAsSent(e)},e.prototype._parseResponse=function(e){try{if(e&&""!==e){var t=JSON.parse(e);if(t&&t.itemsReceived&&t.itemsReceived>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors.length)return t}}catch(t){this._logger.throwInternal(i.CRITICAL,J,"Cannot parse the response. "+Pe.getExceptionName(t),{response:e})}return null},e.prototype._resendPayload=function(e,t){if(void 0===t&&(t=1),e&&0!==e.length){this._buffer.clearSent(e),this._consecutiveErrors++;for(var n=0,r=e;n<r.length;n++){var i=r[n];this._buffer.enqueue(i)}this._setRetryTime(t),this._setupTimer()}},e.prototype._setRetryTime=function(e){var t;if(this._consecutiveErrors<=1)t=10;else{var n=(Math.pow(2,this._consecutiveErrors)-1)/2,r=Math.floor(Math.random()*n*10)+1;
2r*=e,t=Math.max(Math.min(r,3600),10)}var i=Date.now()+1e3*t;this._retryAt=i},e.prototype._setupTimer=function(){var e=this;if(!this._timeoutHandle){var t=this._retryAt?Math.max(0,this._retryAt-Date.now()):0,n=Math.max(this._config.maxBatchInterval(),t);this._timeoutHandle=setTimeout(function(){e.triggerSend()},n)}},e.prototype._isRetriable=function(e){return 408===e||429===e||500===e||503===e},e.prototype._formatErrorMessageXhr=function(e,t){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+e.responseText||0:t},e.prototype._xdrSender=function(e,t){var n=this,r=new XDomainRequest;r.onload=function(){return n._xdrOnLoad(r,e)},r.onerror=function(t){return n._onError(e,n._formatErrorMessageXdr(r),t)};var o="object"==typeof window&&window.location&&window.location.protocol||"";if(0!==this._config.endpointUrl().lastIndexOf(o,0))return this._logger.throwInternal(i.WARNING,K,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void this._buffer.clear();var a=this._config.endpointUrl().replace(/^(https?:)/,"");r.open("POST",a);var s=this._buffer.batchPayloads(e);r.send(s),this._buffer.markAsSent(e)},e.prototype._formatErrorMessageXdr=function(e,t){return e?"XDomainRequest,Response:"+e.responseText||0:t},e}(),Ht=function(){},Wt=function(){function e(t,n){var r=this;o.isNullOrUndefined(n)?this._logger=new Ee:this._logger=n,t||(t={}),"function"!=typeof t.sessionExpirationMs&&(t.sessionExpirationMs=function(){return e.acquisitionSpan}),"function"!=typeof t.sessionRenewalMs&&(t.sessionRenewalMs=function(){return e.renewalSpan}),this.config=t,this._storageNamePrefix=function(){return r.config.namePrefix&&r.config.namePrefix()?e.cookieNameConst+r.config.namePrefix():e.cookieNameConst},this.automaticSession=new Ht}return e.prototype.update=function(){this.automaticSession.id||this.initializeAutomaticSession();var t=Le.Now(),n=0!==this.config.sessionExpirationMs()&&t-this.automaticSession.acquisitionDate>this.config.sessionExpirationMs(),r=0!==this.config.sessionExpirationMs()&&t-this.automaticSession.renewalDate>this.config.sessionRenewalMs();n||r?this.renew():(!this.cookieUpdatedTimestamp||t-this.cookieUpdatedTimestamp>e.cookieUpdateInterval)&&(this.automaticSession.renewalDate=t,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate))},e.prototype.backup=function(){this.setStorage(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate)},e.prototype.initializeAutomaticSession=function(){var e=Pe.getCookie(this._logger,this._storageNamePrefix());if(e&&"function"==typeof e.split)this.initializeAutomaticSessionWithData(e);else{var t=Pe.getStorage(this._logger,this._storageNamePrefix());t&&this.initializeAutomaticSessionWithData(t)}this.automaticSession.id||this.renew()},e.prototype.initializeAutomaticSessionWithData=function(e){var t=e.split("|");t.length>0&&(this.automaticSession.id=t[0]);try{if(t.length>1){var n=+t[1];this.automaticSession.acquisitionDate=+new Date(n),this.automaticSession.acquisitionDate=this.automaticSession.acquisitionDate>0?this.automaticSession.acquisitionDate:0}if(t.length>2){var r=+t[2];this.automaticSession.renewalDate=+new Date(r),this.automaticSession.renewalDate=this.automaticSession.renewalDate>0?this.automaticSession.renewalDate:0}}catch(e){this._logger.throwInternal(i.CRITICAL,b,"Error parsing ai_session cookie, session will be reset: "+Pe.getExceptionName(e),{exception:Pe.dump(e)})}0===this.automaticSession.renewalDate&&this._logger.throwInternal(i.WARNING,U,"AI session renewal date is 0, session will be reset.")},e.prototype.renew=function(){var e=Le.Now();this.automaticSession.id=Pe.newId(),this.automaticSession.acquisitionDate=e,this.automaticSession.renewalDate=e,this.setCookie(this.automaticSession.id,this.automaticSession.acquisitionDate,this.automaticSession.renewalDate),Pe.canUseLocalStorage()||this._logger.throwInternal(i.WARNING,d,"Browser does not support local storage. Session durations will be inaccurate.")},e.prototype.setCookie=function(e,t,n){var r=t+this.config.sessionExpirationMs(),i=n+this.config.sessionRenewalMs(),o=new Date,a=[e,t,n];r<i?o.setTime(r):o.setTime(i);var s=this.config.cookieDomain?this.config.cookieDomain():null,c=0===this.config.sessionExpirationMs()?"0":o.toUTCString();Pe.setCookie(this._logger,this._storageNamePrefix(),a.join("|")+";expires="+c,s),this.cookieUpdatedTimestamp=Le.Now()}
2,e.prototype.setStorage=function(e,t,n){Pe.setStorage(this._logger,this._storageNamePrefix(),[e,t,n].join("|"))},e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e.cookieNameConst="ai_session",e}(),Gt=function(){},Xt=function(){this.id="browser",this.deviceClass="Browser"},$t=function(e){this.sdkVersion=(e.sdkExtension&&e.sdkExtension()?e.sdkExtension()+"_":"")+"javascript:2.3.0"},Kt=function(){function e(t,n){this.isNewUser=!1,this._logger=n;var r=Pe.getCookie(this._logger,e.userCookieName);if(r){this.isNewUser=!1;var i=r.split(e.cookieSeparator);i.length>0&&(this.id=i[0])}if(this.config=t,!this.id){this.id=Pe.newId();var o=new Date,a=Pe.toISOStringForIE8(o);this.accountAcquisitionDate=a,this.isNewUser=!0,o.setTime(o.getTime()+31536e6);var s=[this.id,a],c=this.config.cookieDomain?this.config.cookieDomain():void 0;Pe.setCookie(this._logger,e.userCookieName,s.join(e.cookieSeparator)+";expires="+o.toUTCString(),c);var u=t.namePrefix&&t.namePrefix()?t.namePrefix()+"ai_session":"ai_session";Pe.removeStorage(this._logger,u)}this.accountId=t.accountId?t.accountId():void 0;var l=Pe.getCookie(this._logger,e.authUserCookieName);if(l){var d=(l=decodeURI(l)).split(e.cookieSeparator);d[0]&&(this.authenticatedId=d[0]),d.length>1&&d[1]&&(this.accountId=d[1])}}return e.prototype.setAuthenticatedUserContext=function(t,n,r){if(void 0===r&&(r=!1),!this.validateUserInput(t)||n&&!this.validateUserInput(n))this._logger.throwInternal(i.WARNING,de,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);else{this.authenticatedId=t;var o=this.authenticatedId;n&&(this.accountId=n,o=[this.authenticatedId,this.accountId].join(e.cookieSeparator)),r&&Pe.setCookie(this._logger,e.authUserCookieName,encodeURI(o),this.config.cookieDomain())}},e.prototype.clearAuthenticatedUserContext=function(){this.authenticatedId=null,this.accountId=null,Pe.deleteCookie(this._logger,e.authUserCookieName)},e.prototype.validateUserInput=function(e){return!("string"!=typeof e||!e||e.match(/,|;|=| |\|/))},e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}(),Qt=function(){},Yt=function(e,t,n){this.traceID=e||Pe.generateW3CId(),this.parentID=t,this.name=n,window&&window.location&&window.location.pathname&&(this.name=window.location.pathname)},Jt=function(){function e(e,t){"undefined"!=typeof window&&(this.sessionManager=new Wt(t,e),this.application=new Gt,this.device=new Xt,this.internal=new $t(t),this.location=new Qt,this.user=new Kt(t,e),this.telemetryTrace=new Yt,this.session=new Ht),this.appId=function(){return null}}return e.prototype.applySessionContext=function(e){var t=this.session||this.sessionManager.automaticSession;t&&"string"==typeof t.id&&(e.ext.app.sesId=t.id),this.session&&("string"==typeof this.session.id?e.ext.app.sesId=this.session.id:e.ext.app.sesId=this.sessionManager.automaticSession.id)},e.prototype.applyOperatingSystemContxt=function(e){this.os&&this.os.name&&(e.ext.os=this.os)},e.prototype.applyApplicationContext=function(e){this.application&&("string"==typeof this.application.ver&&(e.tags[Tt.applicationVersion]=this.application.ver),"string"==typeof this.application.build&&(e.tags[Tt.applicationBuild]=this.application.build))},e.prototype.applyDeviceContext=function(e){this.device&&("string"==typeof this.device.id&&(e.ext.device.localId=this.device.id),"string"==typeof this.device.ip&&(e.ext.device.ip=this.device.ip),"string"==typeof this.device.model&&(e.ext.device.model=this.device.model),"string"==typeof this.device.deviceClass&&(e.ext.device.deviceClass=this.device.deviceClass))},e.prototype.applyInternalContext=function(e){this.internal&&("string"==typeof this.internal.agentVersion&&(e.tags[Tt.internalAgentVersion]=this.internal.agentVersion),"string"==typeof this.internal.sdkVersion&&(e.tags[Tt.internalSdkVersion]=this.internal.sdkVersion))},e.prototype.applyLocationContext=function(e){this.location&&"string"==typeof this.location.ip&&(e.tags[Tt.locationIp]=this.location.ip)},e.prototype.applyOperationContext=function(e){if(this.telemetryTrace){var t=e.ext.trace||{traceID:void 0,parentID:void 0};"string"==typeof this.telemetryTrace.traceID&&(t.traceID=this.telemetryTrace.traceID),"string"==typeof this.telemetryTrace.name&&(t.name=this.telemetryTrace.name),"string"==typeof this.telemetryTrace.parentID&&(t.parentID=this.telemetryTrace.parentID),e.ext.trace=t}},e.prototype.applyWebContext=function(e){this.web&&(e.ext.web=e.ext.web||{},e.ext.web=this.web)},e.prototype.applyUserContext=function(e){if(this.user){if(e.tags||(e.tags=[]),"string"==typeof this.user.accountId){e.tags[Tt.userAccountId]=this.user.accountId}"string"==typeof this.user.id&&(e.ext.user.id=this.user.id),"string"==typeof this.user.authenticatedId&&(e.ext.user.authId=this.user.authenticatedId)}},e.prototype.cleanUp=function(e){e.ext[kt.DeviceExt]&&0===Object.keys(e.ext[kt.DeviceExt]).length&&delete e.ext[kt.DeviceExt],e.ext[kt.UserExt]&&0===Object.keys(e.ext[kt.UserExt]).length&&delete e.ext[kt.UserExt],e.ext[kt.WebExt]&&0===Object.keys(e.ext[kt.WebExt]).length&&delete e.ext[kt.WebExt],e.ext[kt.OSExt]&&0===Object.keys(e.ext[kt.OSExt]).length&&delete e.ext[kt.OSExt],e.ext[kt.AppExt]&&0===Object.keys(e.ext[kt.AppExt]).length&&delete e.ext[kt.AppExt],e.ext[kt.TraceExt]&&0===Object.keys(e.ext[kt.TraceExt]).length&&delete e.ext[kt.TraceExt]},e}();const Zt=function(){function e(){this.priority=110,this.identifier=ot}return e.getDefaultConfig=function(){return{instrumentationKey:function(){},accountId:function(){return null},sessionRenewalMs:function(){return 18e5},samplingPercentage:function(){return 100},sessionExpirationMs:function(){return 864e5},cookieDomain:function(){return null},sdkExtension:function(){return null},isBrowserLinkTrackingEnabled:function(){return!1},appId:function(){return null},namePrefix:function(){}}},e.prototype.initialize=function(t,n,r){var i=this,o=e.getDefaultConfig();this._extensionConfig=this._extensionConfig||e.getDefaultConfig();var a=function(e){s._extensionConfig[e]=function(){return it.getConfig(t,e,i.identifier,o[e]())}},s=this;for(var c in o)a(c);this._logger=n.logger,this.context=new Jt(n.logger,this._extensionConfig),this._breezeChannel=Pe.getExtension(r,at),this.context.appId=function(){return i._breezeChannel?i._breezeChannel._appI
2d:null}},e.prototype.processTelemetry=function(e){if(o.isNullOrUndefined(e));else{if(e.name===Ye.envelopeType&&this._logger.resetInternalMessageCount(),this.context.session&&"string"!=typeof this.context.session.id&&this.context.sessionManager.update(),this._processTelemetryInternal(e),this.context&&this.context.user&&this.context.user.isNewUser){this.context.user.isNewUser=!1;var t=new Ie(xe,navigator.userAgent);this._logger.logInternalMessage(i.CRITICAL,t)}o.isNullOrUndefined(this._nextPlugin)||this._nextPlugin.processTelemetry(e)}},e.prototype.setNextPlugin=function(e){this._nextPlugin=e},e.prototype._processTelemetryInternal=function(e){e.tags||(e.tags=[]),e.ext||(e.ext={}),e.ext[kt.DeviceExt]=e.ext[kt.DeviceExt]||{},e.ext[kt.WebExt]=e.ext[kt.WebExt]||{},e.ext[kt.UserExt]=e.ext[kt.UserExt]||{},e.ext[kt.OSExt]=e.ext[kt.OSExt]||{},e.ext[kt.AppExt]=e.ext[kt.AppExt]||{},e.ext[kt.TraceExt]=e.ext[kt.TraceExt]||{},this.context.applySessionContext(e),this.context.applyApplicationContext(e),this.context.applyDeviceContext(e),this.context.applyOperationContext(e),this.context.applyUserContext(e),this.context.applyOperatingSystemContxt(e),this.context.applyWebContext(e),this.context.applyLocationContext(e),this.context.applyInternalContext(e),this.context.cleanUp(e)},e}();var en=function(){this.openDone=!1,this.setRequestHeaderDone=!1,this.sendDone=!1,this.abortDone=!1,this.onreadystatechangeCallbackAttached=!1},tn=function(){function e(e,t,n){this.completed=!1,this.requestHeadersSize=null,this.requestHeaders=null,this.ttfb=null,this.responseReceivingDuration=null,this.callbackDuration=null,this.ajaxTotalDuration=null,this.aborted=null,this.pageUrl=null,this.requestUrl=null,this.requestSize=0,this.method=null,this.status=null,this.requestSentTime=null,this.responseStartedTime=null,this.responseFinishedTime=null,this.callbackFinishedTime=null,this.endTime=null,this.originalOnreadystatechage=null,this.xhrMonitoringState=new en,this.clientFailure=0,this.CalculateMetrics=function(){var e=this;e.ajaxTotalDuration=Math.round(1e3*Le.GetDuration(e.requestSentTime,e.responseFinishedTime))/1e3},this.traceID=e,this.spanID=t,this._logger=n}return e.prototype.getAbsoluteUrl=function(){return this.requestUrl?Me.getAbsoluteUrl(this.requestUrl):null},e.prototype.getPathName=function(){return this.requestUrl?Ae.sanitizeUrl(this._logger,Me.getCompleteUrl(this.method,this.requestUrl)):null},e}(),nn=(function(){function e(){}e.GetLength=function(e){var t=0;if(!o.isNullOrUndefined(e)){var n="";try{n=e.toString()}catch(e){}t=n.length,t=isNaN(t)?0:t}return t}}(),function(){function e(){}return e.AttachEvent=function(e,t,n){var r=!1;return o.isNullOrUndefined(e)||(o.isNullOrUndefined(e.attachEvent)?o.isNullOrUndefined(e.addEventListener)||(e.addEventListener(t,n,!1),r=!0):(e.attachEvent("on"+t,n),r=!0)),r},e.DetachEvent=function(e,t,n){o.isNullOrUndefined(e)||(o.isNullOrUndefined(e.detachEvent)?o.isNullOrUndefined(e.removeEventListener)||e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n))},e}()),rn=function(){function e(t,n){this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&e.isValidTraceId(t)?this.traceId=t:this.traceId=Pe.generateW3CId(),n&&e.isValidSpanId(n)?this.spanId=n:this.spanId=Pe.generateW3CId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}(),on=function(){function e(){this.identifier=e.identifier,this.priority=120,this._trackAjaxAttempts=0,this.currentWindowHost=window&&window.location&&window.location.host&&window.location.host.toLowerCase(),this.initialized=!1,this._fetchInitialized=!1}return e.getDefaultConfig=function(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!0,disableCorrelationHeaders:!1,distributedTracingMode:Te.AI,correlationHeaderExcludedDomains:["*.blob.core.windows.net","*.blob.core.chinacloudapi.cn","*.blob.core.cloudapi.de","*.blob.core.usgovcloudapi.net"],correlationHeaderDomains:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1}}
2,e.getEmptyConfig=function(){return{maxAjaxCallsPerView:void 0,disableAjaxTracking:void 0,disableFetchTracking:void 0,disableCorrelationHeaders:void 0,distributedTracingMode:void 0,correlationHeaderExcludedDomains:void 0,appId:void 0,enableCorsCorrelation:void 0,correlationHeaderDomains:void 0,enableRequestHeaderTracking:void 0,enableResponseHeaderTracking:void 0}},e.getFailedAjaxDiagnosticsMessage=function(e){var t="";try{o.isNullOrUndefined(e)||o.isNullOrUndefined(e.ajaxData)||o.isNullOrUndefined(e.ajaxData.requestUrl)||(t+="(url: '"+e.ajaxData.requestUrl+"')")}catch(e){}return t},e.prototype.trackDependencyData=function(e,t){this.trackDependencyDataInternal(e,t)},e.prototype.processTelemetry=function(e){this._nextPlugin&&this._nextPlugin.processTelemetry&&this._nextPlugin.processTelemetry(e)},e.prototype.setNextPlugin=function(e){e&&(this._nextPlugin=e)},e.prototype.includeCorrelationHeaders=function(e,t,n,r){if(t){if(Ne.canIncludeCorrelationHeader(this._config,e.getAbsoluteUrl(),this.currentWindowHost)){if(n||(n={}),n.headers=new Headers(n.headers||t instanceof Request&&t.headers||{}),this._isUsingAIHeaders){var i="|"+e.traceID+"."+e.spanID;n.headers.set(Re.requestIdHeader,i),this._config.enableRequestHeaderTracking&&(e.requestHeaders[Re.requestIdHeader]=i)}if((a=this._config.appId||this._context.appId())&&(n.headers.set(Re.requestContextHeader,Re.requestContextAppIdFormat+a),this._config.enableRequestHeaderTracking&&(e.requestHeaders[Re.requestContextHeader]=Re.requestContextAppIdFormat+a)),this._isUsingW3CHeaders){var o=new rn(e.traceID,e.spanID);n.headers.set(Re.traceParentHeader,o.toString()),this._config.enableRequestHeaderTracking&&(e.requestHeaders[Re.traceParentHeader]=o.toString())}return n}return n}if(r){if(this.currentWindowHost&&Ne.canIncludeCorrelationHeader(this._config,r.ajaxData.getAbsoluteUrl(),this.currentWindowHost)){if(this._isUsingAIHeaders){i="|"+r.ajaxData.traceID+"."+r.ajaxData.spanID;r.setRequestHeader(Re.requestIdHeader,i),this._config.enableRequestHeaderTracking&&(r.ajaxData.requestHeaders[Re.requestIdHeader]=i)}var a;if((a=this._config.appId||this._context.appId())&&(r.setRequestHeader(Re.requestContextHeader,Re.requestContextAppIdFormat+a),this._config.enableRequestHeaderTracking&&(r.ajaxData.requestHeaders[Re.requestContextHeader]=Re.requestContextAppIdFormat+a)),this._isUsingW3CHeaders){o=new rn(r.ajaxData.traceID,r.ajaxData.spanID);r.setRequestHeader(Re.traceParentHeader,o.toString()),this._config.enableRequestHeaderTracking&&(r.ajaxData.requestHeaders[Re.traceParentHeader]=o.toString())}}return r}},e.prototype.initialize=function(t,n,r){if(!this.initialized&&!this._fetchInitialized){this._core=n;var i=e.getDefaultConfig();for(var o in this._config=e.getEmptyConfig(),i)this._config[o]=it.getConfig(t,o,e.identifier,i[o]);if(this._isUsingAIHeaders=this._config.distributedTracingMode===Te.AI||this._config.distributedTracingMode===Te.AI_AND_W3C,this._isUsingW3CHeaders=this._config.distributedTracingMode===Te.AI_AND_W3C||this._config.distributedTracingMode===Te.W3C,!1===this._config.disableAjaxTracking&&this.instrumentXhr(),!1===this._config.disableFetchTracking&&this.instrumentFetch(),r.length>0&&r){for(var a=void 0,s=0;!a&&s<r.length;)r[s]&&r[s].identifier===ot&&(a=r[s]),s++;a&&(this._context=a.context)}}},e.prototype.trackDependencyDataInternal=function(e,t,n){if(-1===this._config.maxAjaxCallsPerView||this._trackAjaxAttempts<this._config.maxAjaxCallsPerView){var r=Ue.create(e,st.dataType,st.envelopeType,this._core.logger,t,n);this._core.track(r)}else this._trackAjaxAttempts===this._config.maxAjaxCallsPerView&&this._core.logger.throwInternal(i.CRITICAL,se,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++this._trackAjaxAttempts},e.prototype.instrumentFetch=function(){if(this.supportsFetch()&&!this._fetchInitialized){var e=window.fetch,t=this;window.fetch=function(n,r){var o;if(t.isFetchInstrumented(n)&&t.isMonitoredInstance(void 0,void 0,n,r))try{o=t.createFetchRecord(n,r),r=t.includeCorrelationHeaders(o,n,r)}catch(e){t._core.logger.throwInternal(i.CRITICAL,C,"Failed to monitor Window.fetch, monitoring data for this fetch call may be incorrect.",{ajaxDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(n),exception:Pe.dump(e)})}return e(n,r).then(function(e){return t.onFetchComplete(e,o),e}).catch(function(e){throw t.onFetchFailed(n,o,e),e})},this._fetchInitialized=!0}},e.prototype.instrumentXhr=function(){this.supportsAjaxMonitoring()&&!this.initialized&&(this.instrumentOpen(),this.instrumentSend(),this.instrumentAbort(),this.instrumentSetRequestHeader(),this.initialized=!0)},e.prototype.isMonitoredInstance=function(e,t,n,r){var i=!1,a=!0,s=!1;return void 0!==n?(s=this._fetchInitialized,i="object"==typeof n&&!0===n[gt]||!!r&&!0===r[gt]):void 0!==e&&(s=this.initialized,i=!0===e[gt],a=!0===t||!o.isNullOrUndefined(e.ajaxData)),s&&a&&!i},e.prototype.supportsAjaxMonitoring=function(){var e=!0;(o.isNullOrUndefined(XMLHttpRequest)||o.isNullOrUndefined(XMLHttpRequest.prototype)||o.isNullOrUndefined(XMLHttpRequest.prototype.open)||o.isNullOrUndefined(XMLHttpRequest.prototype.send)||o.isNullOrUndefined(XMLHttpRequest.prototype.abort))&&(e=!1);try{" a ".trim()}catch(t){e=!1}return e},e.prototype.instrumentOpen=function(){var t=XMLHttpRequest.prototype.open,n=this;XMLHttpRequest.prototype.open=function(r,o,a){try{!n.isMonitoredInstance(this,!0)||this.ajaxData&&this.ajaxData.xhrMonitoringState.openDone||n.openHandler(this,r,o,a)}catch(t){n._core.logger.throwInternal(i.CRITICAL,C,"Failed to monitor XMLHttpRequest.open, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(this),exception:Pe.dump(t)})}return t.apply(this,arguments)}},e.prototype.openHandler=function(e,t,n,r){var i=this._context&&this._context.telemetryTrace&&this._context.telemetryTrace.traceID||Pe.generateW3CId(),o=Pe.generateW3CId().substr(0,16),a=new tn(i,o,this._core.logger);a.method=t,a.requestUrl=n,a.xhrMonitoringState.openDone=!0,a.requestHeaders={},e.ajaxData=a,this.attachToOnReadyStateChange(e)},e.prototype.instrumentSend=function(){var t=XMLHttpRequest.prototype.send,n=this;XMLHttpRequest.prototype.send=function(r){try{n.isMonitoredInstance(this)&&!this.ajaxData.xhrMonitoringState.sendD
2one&&n.sendHandler(this,r)}catch(t){n._core.logger.throwInternal(i.CRITICAL,T,"Failed to monitor XMLHttpRequest, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(this),exception:Pe.dump(t)})}return t.apply(this,arguments)}},e.prototype.sendHandler=function(e,t){e.ajaxData.requestSentTime=Le.Now(),(e=this.includeCorrelationHeaders(e.ajaxData,void 0,void 0,e)).ajaxData.xhrMonitoringState.sendDone=!0},e.prototype.instrumentAbort=function(){var t=XMLHttpRequest.prototype.abort,n=this;XMLHttpRequest.prototype.abort=function(){try{n.isMonitoredInstance(this)&&!this.ajaxData.xhrMonitoringState.abortDone&&(this.ajaxData.aborted=1,this.ajaxData.xhrMonitoringState.abortDone=!0)}catch(t){n._core.logger.throwInternal(i.CRITICAL,E,"Failed to monitor XMLHttpRequest.abort, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(this),exception:Pe.dump(t)})}return t.apply(this,arguments)}},e.prototype.instrumentSetRequestHeader=function(){if(this._config.enableRequestHeaderTracking){var t=XMLHttpRequest.prototype.setRequestHeader,n=this;XMLHttpRequest.prototype.setRequestHeader=function(r,o){try{n.isMonitoredInstance(this)&&(this.ajaxData.requestHeaders[r]=o)}catch(t){n._core.logger.throwInternal(i.CRITICAL,_e,"Failed to monitor XMLHttpRequest.setRequestHeader, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(this),exception:Pe.dump(t)})}return t.apply(this,arguments)}}},e.prototype.attachToOnReadyStateChange=function(t){var n=this;t.ajaxData.xhrMonitoringState.onreadystatechangeCallbackAttached=nn.AttachEvent(t,"readystatechange",function(){try{n.isMonitoredInstance(t)&&4===t.readyState&&n.onAjaxComplete(t)}catch(o){var r=Pe.dump(o);r&&-1!==r.toLowerCase().indexOf("c00c023f")||n._core.logger.throwInternal(i.CRITICAL,k,"Failed to monitor XMLHttpRequest 'readystatechange' event handler, monitoring data for this ajax call may be incorrect.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(t),exception:Pe.dump(o)})}})},e.prototype.onAjaxComplete=function(t){if(t.ajaxData.responseFinishedTime=Le.Now(),t.ajaxData.status=t.status,t.ajaxData.CalculateMetrics(),t.ajaxData.ajaxTotalDuration<0)this._core.logger.throwInternal(i.WARNING,S,"Failed to calculate the duration of the ajax call, monitoring data for this ajax call won't be sent.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(t),requestSentTime:t.ajaxData.requestSentTime,responseFinishedTime:t.ajaxData.responseFinishedTime});else{var n={id:"|"+t.ajaxData.traceID+"."+t.ajaxData.spanID,target:t.ajaxData.getAbsoluteUrl(),name:t.ajaxData.getPathName(),type:"Ajax",duration:t.ajaxData.ajaxTotalDuration,success:+t.ajaxData.status>=200&&+t.ajaxData.status<400,responseCode:+t.ajaxData.status,method:t.ajaxData.method},r=this.getAjaxCorrelationContext(t);if(r&&(n.correlationContext=r),this._config.enableRequestHeaderTracking&&Object.keys(t.ajaxData.requestHeaders).length>0&&(n.properties=n.properties||{},n.properties.requestHeaders={},n.properties.requestHeaders=t.ajaxData.requestHeaders),this._config.enableResponseHeaderTracking){var o=t.getAllResponseHeaders();if(o){var a=o.trim().split(/[\r\n]+/),s={};a.forEach(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");s[n]=r}),Object.keys(s).length>0&&(n.properties=n.properties||{},n.properties.responseHeaders={},n.properties.responseHeaders=s)}}this.trackDependencyDataInternal(n),t.ajaxData=null}},e.prototype.getAjaxCorrelationContext=function(t){try{var n=t.getAllResponseHeaders();if(null!==n)if(-1!==n.toLowerCase().indexOf(Re.requestContextHeaderLowerCase)){var r=t.getResponseHeader(Re.requestContextHeader);return Ne.getCorrelationContext(r)}}catch(n){this._core.logger.throwInternal(i.WARNING,D,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{ajaxDiagnosticsMessage:e.getFailedAjaxDiagnosticsMessage(t),exception:Pe.dump(n)})}},e.prototype.isFetchInstrumented=function(e){return this._fetchInitialized&&!0!==e[gt]},e.prototype.supportsFetch=function(){var e=!0;return(!window||o.isNullOrUndefined(window.Request)||o.isNullOrUndefined(window.Request.prototype)||o.isNullOrUndefined(window.fetch))&&(e=!1),e},e.prototype.createFetchRecord=function(e,t){var n=this._context&&this._context.telemetryTrace&&this._context.telemetryTrace.traceID||Pe.generateW3CId(),r=Pe.generateW3CId().substr(0,16),i=new tn(n,r,this._core.logger);return i.requestSentTime=Le.Now(),e instanceof Request?i.requestUrl=e?e.url:"":i.requestUrl=e,t&&t.method?i.method=t.method:e&&e instanceof Request?i.method=e.method:i.method="GET",t&&t.headers&&this._config.enableRequestHeaderTracking?i.requestHeaders=t.headers:i.requestHeaders={},i},e.prototype.getFailedFetchDiagnosticsMessage=function(e){var t="";try{o.isNullOrUndefined(e)||(t+="string"==typeof e?"(url: '"+e+"')":"(url: '"+e.url+"')")}catch(e){this._core.logger.throwInternal(i.CRITICAL,C,"Failed to grab failed fetch diagnostics message",{exception:Pe.dump(e)})}return t},e.prototype.onFetchComplete=function(e,t){if(t)try{if(t.responseFinishedTime=Le.Now(),t.CalculateMetrics(),t.ajaxTotalDuration<0)this._core.logger.throwInternal(i.WARNING,S,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",{fetchDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(e),requestSentTime:t.requestSentTime,responseFinishedTime:t.responseFinishedTime});else{var n={id:"|"+t.traceID+"."+t.spanID,target:t.getAbsoluteUrl(),name:t.getPathName(),type:"Fetch",duration:t.ajaxTotalDuration,success:e.status>=200&&e.status<400,responseCode:e.status,properties:{HttpMethod:t.method}},r=this.getFetchCorrelationContext(e);if(r&&(n.correlationContext=r),this._config.enableRequestHeaderTracking&&Object.keys(t.requestHeaders).length>0&&(n.properties=n.properties||{},n.properties.requestHeaders=t.requestHeaders),this._config.enableResponseHeaderTracking){var o={};
2e.headers.forEach(function(e,t){o[t]=e}),Object.keys(o).length>0&&(n.properties=n.properties||{},n.properties.responseHeaders=o)}this.trackDependencyDataInternal(n)}}catch(t){this._core.logger.throwInternal(i.WARNING,D,"Failed to calculate the duration of the fetch call, monitoring data for this fetch call won't be sent.",{fetchDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(e),exception:Pe.dump(t)})}},e.prototype.onFetchFailed=function(e,t,n){if(t)try{if(t.responseFinishedTime=Le.Now(),t.CalculateMetrics(),t.ajaxTotalDuration<0)this._core.logger.throwInternal(i.WARNING,S,"Failed to calculate the duration of the failed fetch call, monitoring data for this fetch call won't be sent.",{fetchDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(e),requestSentTime:t.requestSentTime,responseFinishedTime:t.responseFinishedTime});else{var r={id:"|"+t.traceID+"."+t.spanID,target:t.getAbsoluteUrl(),name:t.getPathName(),type:"Fetch",duration:t.ajaxTotalDuration,success:!1,responseCode:0,properties:{HttpMethod:t.method}};this.trackDependencyDataInternal(r,{error:n.message})}}catch(t){this._core.logger.throwInternal(i.WARNING,D,"Failed to calculate the duration of the failed fetch call, monitoring data for this fetch call won't be sent.",{fetchDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(e),exception:Pe.dump(t)})}},e.prototype.getFetchCorrelationContext=function(e){try{var t=e.headers.get(Re.requestContextHeader);return Ne.getCorrelationContext(t)}catch(t){this._core.logger.throwInternal(i.WARNING,D,"Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",{fetchDiagnosticsMessage:this.getFailedFetchDiagnosticsMessage(e),exception:Pe.dump(t)})}},e.identifier="AjaxDependencyPlugin",e}(),an=function(){function e(e){e.queue=e.queue||[],e.version=e.version||2;var t=e.config||{};if(t.connectionString){var n=wt.parse(t.connectionString),r=n.ingestionendpoint;t.endpointUrl=r?r+"/v2/track":t.endpointUrl,t.instrumentationKey=n.instrumentationkey||t.instrumentationKey}this.appInsights=new pt,this.properties=new Zt,this.dependencies=new on,this.core=new Se,this.snippet=e,this.config=t,this.getSKUDefaults()}return e.prototype.trackEvent=function(e,t){this.appInsights.trackEvent(e,t)},e.prototype.trackPageView=function(e){var t=e||{};this.appInsights.trackPageView(t)},e.prototype.trackPageViewPerformance=function(e){var t=e||{};this.appInsights.trackPageViewPerformance(t)},e.prototype.trackException=function(e){!e.exception&&e.error&&(e.exception=e.error),this.appInsights.trackException(e)},e.prototype._onerror=function(e){this.appInsights._onerror(e)},e.prototype.trackTrace=function(e,t){this.appInsights.trackTrace(e,t)},e.prototype.trackMetric=function(e,t){this.appInsights.trackMetric(e,t)},e.prototype.startTrackPage=function(e){this.appInsights.startTrackPage(e)},e.prototype.stopTrackPage=function(e,t,n,r){this.appInsights.stopTrackPage(e,t,n,r)},e.prototype.startTrackEvent=function(e){this.appInsights.startTrackEvent(e)},e.prototype.stopTrackEvent=function(e,t,n){this.appInsights.stopTrackEvent(e,t,n)},e.prototype.addTelemetryInitializer=function(e){return this.appInsights.addTelemetryInitializer(e)},e.prototype.setAuthenticatedUserContext=function(e,t,n){void 0===n&&(n=!1),this.properties.context.user.setAuthenticatedUserContext(e,t,n)},e.prototype.clearAuthenticatedUserContext=function(){this.properties.context.user.clearAuthenticatedUserContext()},e.prototype.trackDependencyData=function(e){this.dependencies.trackDependencyData(e)},e.prototype.flush=function(e){void 0===e&&(e=!0),this.core.getTransmissionControls().forEach(function(t){t.forEach(function(t){t.flush(e)})})},e.prototype.onunloadFlush=function(e){void 0===e&&(e=!0),this.core.getTransmissionControls().forEach(function(t){t.forEach(function(t){t.onunloadFlush?t.onunloadFlush():t.flush(e)})})},e.prototype.loadAppInsights=function(e){if(void 0===e&&(e=!1),e&&this.config.extensions&&this.config.extensions.length>0)throw new Error("Extensions not allowed in legacy mode");var t=[],n=new Bt;return t.push(n),t.push(this.properties),t.push(this.dependencies),t.push(this.appInsights),this.core.initialize(this.config,t),this.emptyQueue(),this.pollInternalLogs(),this.addHousekeepingBeforeUnload(this),this.context=this.properties.context,this},e.prototype.updateSnippetDefinitions=function(e){for(var t in this)"string"==typeof t&&(e[t]=this[t])},e.prototype.emptyQueue=function(){try{if(Pe.isArray(this.snippet.queue)){for(var e=this.snippet.queue.length,t=0;t<e;t++){(0,this.snippet.queue[t])()}this.snippet.queue=void 0,delete this.snippet.queue}}catch(e){e&&"function"==typeof e.toString&&e.toString()}},e.prototype.pollInternalLogs=function(){this.core.pollInternalLogs()},e.prototype.addHousekeepingBeforeUnload=function(e){if(!e.appInsights.config.disableFlushOnBeforeUnload&&"object"==typeof window&&"onbeforeunload"in window){Pe.addEventHandler("beforeunload",function(){e.onunloadFlush(!1);var t=e.appInsights.core._extensions[ot];t&&t.context&&t.context._sessionManager&&t.context._sessionManager.backup()})||e.appInsights.core.logger.throwInternal(i.CRITICAL,R,"Could not add handler for beforeunload")}},e.prototype.getSKUDefaults=function(){this.config.diagnosticLogInterval=this.config.diagnosticLogInterval&&this.config.diagnosticLogInterval>0?this.config.diagnosticLogInterval:1e4},e}()},95006(e,t,n){"use strict";n.d(t,{$s:()=>p,Ao:()=>a,De:()=>b,SJ:()=>m,nm:()=>c,pS:()=>d,rf:()=>l,uX:()=>s});var r=n(31543),i=n(63696),o=Symbol.for("Animated:node"),a=e=>e&&e[o],s=(e,t)=>(0,r.OX)(e,o,t),c=e=>e&&e[o]&&e[o].getPayload(),u=class{constructor(){s(this,this)}getPayload(){return this.payload||[]}},l=class e extends u{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,r.is.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return r.is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,r.is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},d=class e extends l{constructor(e){super(0),this._string=null,this._toString=(0,r.kx)({output:[e,e]})}static create(t){return new e(t)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(r.is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=(0,r.kx)({output:[this.getValue(),e]})),this._value=0,super.reset()}},f={dependencies:null},p=class extends u{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return(0,r.FI)(this.source,(n,i)=>{var a;(a=n)&&a[o]===a?t[i]=n.getValue(e):(0,r.at)(n)?t[i]=(0,r.oq)(n):e||(t[i]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&(0,r.__)(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return(0,r.FI)(e,this._addToPayload,t),Array.from(t)}}
2_addToPayload(e){f.dependencies&&(0,r.at)(e)&&f.dependencies.add(e);const t=c(e);t&&(0,r.__)(t,e=>this.add(e))}},h=class e extends p{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(g)),!0)}};function g(e){return((0,r.$7)(e)?d:l).create(e)}function m(e){const t=a(e);return t?t.constructor:r.is.arr(e)?h:(0,r.$7)(e)?d:l}var y=(e,t)=>{const n=!r.is.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,i.forwardRef)((o,a)=>{const s=(0,i.useRef)(null),c=n&&(0,i.useCallback)(e=>{s.current=function(e,t){e&&(r.is.fun(e)?e(t):e.current=t);return t}(a,e)},[a]),[u,l]=function(e,t){const n=new Set;f.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new p(e),f.dependencies=null,[e,n]}(o,t),d=(0,r.CH)(),h=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&d()},g=new v(h,l),m=(0,i.useRef)(void 0);(0,r.Es)(()=>(m.current=g,(0,r.__)(l,e=>(0,r.Ec)(e,g)),()=>{m.current&&((0,r.__)(m.current.deps,e=>(0,r.DV)(e,m.current)),r.er.cancel(m.current.update))})),(0,i.useEffect)(h,[]),(0,r.H5)(()=>()=>{const e=m.current;(0,r.__)(e.deps,t=>(0,r.DV)(t,e))});const y=t.getComponentProps(u.getValue());return i.createElement(e,{...y,ref:c})})},v=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&r.er.write(this.update)}};var w=Symbol.for("AnimatedComponent"),b=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new p(e),getComponentProps:i=e=>e}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:i},a=e=>{const t=_(e)||"Anonymous";return(e=r.is.str(e)?a[e]||(a[e]=y(e,o)):e[w]||(e[w]=y(e,o))).displayName=`Animated(${t})`,e};return(0,r.FI)(e,(t,n)=>{r.is.arr(e)&&(n=_(t)),a[n]=a(t)}),{animated:a}},_=e=>r.is.str(e)?e:e&&r.is.str(e.displayName)?e.displayName:r.is.fun(e)&&e.name||null},5582(e,t,n){"use strict";n.d(t,{$W:()=>b,RV:()=>r.RV,pn:()=>pe,zh:()=>fe});var r=n(31543),i=n(63696),o=n(95006);function a(e,...t){return r.is.fun(e)?e(...t):e}var s=(e,t)=>!0===e||!!(t&&e&&(r.is.fun(e)?e(t):(0,r.$r)(e).includes(t))),c=(e,t)=>r.is.obj(e)?t&&e[t]:e,u=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,l=e=>e,d=(e,t=l)=>{let n=f;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const i={};for(const o of n){const n=t(e[o],o);r.is.und(n)||(i[o]=n)}return i},f=["config","onProps","onStart","onChange","onPause","onResume","onRest"],p={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function h(e){const t=function(e){const t={};let n=0;if((0,r.FI)(e,(e,r)=>{p[r]||(t[r]=e,n++)}),n)return t}(e);if(t){const n={to:t};return(0,r.FI)(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function g(e){return e=(0,r.oq)(e),r.is.arr(e)?e.map(g):(0,r.$7)(e)?r.RV.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function m(e){for(const t in e)return!0;return!1}function y(e){return r.is.fun(e)||r.is.arr(e)&&r.is.obj(e[0])}function v(e,t){e.ref?.delete(e),t?.delete(e)}function w(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var b={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},_={...b.default,mass:1,damping:1,easing:r.le.linear,clamp:!1},x=class{constructor(){this.velocity=0,Object.assign(this,_)}};function I(e,t){if(r.is.und(t.decay)){const n=!r.is.und(t.tension)||!r.is.und(t.friction);!n&&r.is.und(t.frequency)&&r.is.und(t.damping)&&r.is.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var E=[],S=class{constructor(){this.changed=!1,this.values=E,this.toValues=null,this.fromValues=E,this.config=new x,this.immediate=!1}};function C(e,{key:t,props:n,defaultProps:i,state:o,actions:c}){return new Promise((u,l)=>{let d,f,p=s(n.cancel??i?.cancel,t);if(p)m();else{r.is.und(n.pause)||(o.paused=s(n.pause,t));let e=i?.pause;!0!==e&&(e=o.paused||s(e,t)),d=a(n.delay||0,t),e?(o.resumeQueue.add(g),c.pause()):(c.resume(),g())}function h(){o.resumeQueue.add(g),o.timeouts.delete(f),f.cancel(),d=f.time-r.er.now()}function g(){d>0&&!r.RV.skipAnimation?(o.delayed=!0,f=r.er.setTimeout(m,d),o.pauseQueue.add(h),o.timeouts.add(f)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(f),e<=(o.cancelId||0)&&(p=!0);try{c.start({...n,callId:e,cancel:p},u)}catch(e){l(e)}}})}var k=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?R(e.get()):t.every(e=>e.noop)?T(e.get()):D(e.get(),t.every(e=>e.finished)),T=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),D=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),R=e=>({value:e,cancelled:!0,finished:!1});function A(e,t,n,i){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:c,promise:u}=n;return a||e!==c||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const l=d(t,(e,t)=>"onRest"===t?void 0:e);let f,p;const h=new Promise((e,t)=>
2(f=e,p=t)),g=e=>{const t=o<=(n.cancelId||0)&&R(i)||o!==n.asyncId&&D(i,!1);if(t)throw e.result=t,p(e),e},m=(e,t)=>{const a=new M,s=new N;return(async()=>{if(r.RV.skipAnimation)throw P(n),s.result=D(i,!1),p(s),s;g(a);const c=r.is.obj(e)?{...e}:{...t,to:e};c.parentId=o,(0,r.FI)(l,(e,t)=>{r.is.und(c[t])&&(c[t]=e)});const u=await i.start(c);return g(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),u})()};let y;if(r.RV.skipAnimation)return P(n),D(i,!1);try{let t;t=r.is.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,i.stop.bind(i))),await Promise.all([t.then(f),h]),y=D(i.get(),!0,!1)}catch(e){if(e instanceof M)y=e.result;else{if(!(e instanceof N))throw e;y=e.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?u:void 0)}return r.is.fun(s)&&r.er.batchedUpdates(()=>{s(y,i,i.item)}),y})():u}function P(e,t){(0,r.bX)(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var M=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},N=class extends Error{constructor(){super("SkipAnimationSignal")}},O=e=>e instanceof U,L=1,U=class extends r.aq{constructor(){super(...arguments),this.id=L++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=(0,o.Ao)(this);return e&&e.getValue()}to(...e){return r.RV.to(this,e)}interpolate(...e){return(0,r.ZJ)(),r.RV.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){(0,r.MI)(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||r.WU.sort(this),(0,r.MI)(this,{type:"priority",parent:this,priority:e})}},j=Symbol.for("SpringPhase"),q=e=>(1&e[j])>0,F=e=>(2&e[j])>0,z=e=>(4&e[j])>0,V=(e,t)=>t?e[j]|=3:e[j]&=-3,B=(e,t)=>t?e[j]|=4:e[j]&=-5,H=class extends U{constructor(e,t){if(super(),this.animation=new S,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!r.is.und(e)||!r.is.und(t)){const n=r.is.obj(e)?{...e}:{...t,from:e};r.is.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(F(this)||this._state.asyncTo)||z(this)}get goal(){return(0,r.oq)(this.animation.to)}get velocity(){const e=(0,o.Ao)(this);return e instanceof o.rf?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return q(this)}get isAnimating(){return F(this)}get isPaused(){return z(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const i=this.animation;let{toValues:a}=i;const{config:s}=i,c=(0,o.nm)(i.to);!c&&(0,r.at)(i.to)&&(a=(0,r.$r)((0,r.oq)(i.to))),i.values.forEach((u,l)=>{if(u.done)return;const d=u.constructor==o.pS?1:c?c[l].lastPosition:a[l];let f=i.immediate,p=d;if(!f){if(p=u.lastPosition,s.tension<=0)return void(u.done=!0);let t=u.elapsedTime+=e;const n=i.fromValues[l],o=null!=u.v0?u.v0:u.v0=r.is.arr(s.velocity)?s.velocity[l]:s.velocity;let a;const c=s.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n)));if(r.is.und(s.duration))if(s.decay){const e=!0===s.decay?.998:s.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),f=Math.abs(u.lastPosition-p)<=c,a=o*r}else{a=null==u.lastVelocity?o:u.lastVelocity;const t=s.restVelocity||c/10,i=s.clamp?0:s.bounce,l=!r.is.und(i),h=n==d?u.v0>0:n<d;let g,m=!1;const y=1,v=Math.ceil(e/y);for(let e=0;e<v&&(g=Math.abs(a)>t,g||(f=Math.abs(d-p)<=c,!f));++e){l&&(m=p==d||p>d==h,m&&(a=-a*i,p=d));a+=(1e-6*-s.tension*(p-d)+.001*-s.friction*a)/s.mass*y,p+=a*y}}else{let r=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,t=u.elapsedTime+=e)),r=(s.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,u.durationProgress=r),p=n+s.easing(r)*(d-n),a=(p-u.lastPosition)/e,f=1==r}u.lastVelocity=a,Number.isNaN(p)&&(f=!0)}
2c&&!c[l].done&&(f=!1),f?u.done=!0:t=!1,u.setValue(p,s.round)&&(n=!0)});const u=(0,o.Ao)(this),l=u.getValue();if(t){const e=(0,r.oq)(i.to);l===e&&!n||s.decay?n&&s.decay&&this._onChange(l):(u.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return r.er.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(F(this)){const{to:e,config:t}=this.animation;r.er.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return r.is.und(e)?(n=this.queue||[],this.queue=[]):n=[r.is.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>k(this,e))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),P(this._state,e&&this._lastCallId),r.er.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:i}=e;n=r.is.obj(n)?n[t]:n,(null==n||y(n))&&(n=void 0),i=r.is.obj(i)?i[t]:i,null==i&&(i=void 0);const a={to:n,from:i};return q(this)||(e.reverse&&([n,i]=[i,n]),i=(0,r.oq)(i),r.is.und(i)?(0,o.Ao)(this)||this._set(n):this._set(i)),a}_update({...e},t){const{key:n,defaultProps:i}=this;e.default&&Object.assign(i,d(e,(e,t)=>/^on/.test(t)?c(e,n):e)),Y(this,e,"onProps"),J(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return C(++this._lastCallId,{key:n,props:e,defaultProps:i,state:a,actions:{pause:()=>{z(this)||(B(this,!0),(0,r.Wd)(a.pauseQueue),J(this,"onPause",D(this,W(this,this.animation.to)),this))},resume:()=>{z(this)&&(B(this,!1),F(this)&&this._resume(),(0,r.Wd)(a.resumeQueue),J(this,"onResume",D(this,W(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then(n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=G(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(R(this));const i=!r.is.und(e.to),c=!r.is.und(e.from);if(i||c){if(!(t.callId>this._lastToId))return n(R(this));this._lastToId=t.callId}const{key:u,defaultProps:l,animation:d}=this,{to:f,from:p}=d;let{to:h=f,from:m=p}=e;!c||i||t.default&&!r.is.und(h)||(h=m),t.reverse&&([h,m]=[m,h]);const v=!(0,r.n4)(m,p);v&&(d.from=m),m=(0,r.oq)(m);const w=!(0,r.n4)(h,f);w&&this._focus(h);const b=y(t.to),{config:x}=d,{decay:E,velocity:S}=x;
2(i||c)&&(x.velocity=0),t.config&&!b&&function(e,t,n){n&&(I(n={...n},t),t={...n,...t}),I(e,t),Object.assign(e,t);for(const t in _)null==e[t]&&(e[t]=_[t]);let{frequency:i,damping:o}=e;const{mass:a}=e;r.is.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*o*a/i)}(x,a(t.config,u),t.config!==l.config?a(l.config,u):void 0);let C=(0,o.Ao)(this);if(!C||r.is.und(h))return n(D(this,!0));const k=r.is.und(t.reset)?c&&!t.default:!r.is.und(m)&&s(t.reset,u),P=k?m:this.get(),M=g(h),N=r.is.num(M)||r.is.arr(M)||(0,r.$7)(M),O=!b&&(!N||s(l.immediate||t.immediate,u));if(w){const e=(0,o.SJ)(h);if(e!==C.constructor){if(!O)throw Error(`Cannot animate between ${C.constructor.name} and ${e.name}, as the "to" prop suggests`);C=this._set(M)}}const L=C.constructor;let U=(0,r.at)(h),j=!1;if(!U){const e=k||!q(this)&&v;(w||e)&&(j=(0,r.n4)(g(P),M),U=!j),((0,r.n4)(d.immediate,O)||O)&&(0,r.n4)(x.decay,E)&&(0,r.n4)(x.velocity,S)||(U=!0)}if(j&&F(this)&&(d.changed&&!k?U=!0:U||this._stop(f)),!b&&((U||(0,r.at)(f))&&(d.values=C.getPayload(),d.toValues=(0,r.at)(h)?null:L==o.pS?[1]:(0,r.$r)(M)),d.immediate!=O&&(d.immediate=O,O||k||this._set(f)),U)){const{onRest:e}=d;(0,r.__)(Q,e=>Y(this,t,e));const i=D(this,W(this,f));(0,r.Wd)(this._pendingCalls,i),this._pendingCalls.add(n),d.changed&&r.er.batchedUpdates(()=>{d.changed=!k,e?.(i,this),k?a(l.onRest,i):d.onStart?.(i,this)})}k&&this._set(P),b?n(A(t.to,t,this._state,this)):U?this._start():F(this)&&!w?this._pendingCalls.add(n):n(T(P))}_focus(e){const t=this.animation;e!==t.to&&((0,r.Wg)(this)&&this._detach(),t.to=e,(0,r.Wg)(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;(0,r.at)(t)&&((0,r.Ec)(t,this),O(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;(0,r.at)(e)&&(0,r.DV)(e,this)}_set(e,t=!0){const n=(0,r.oq)(e);if(!r.is.und(n)){const e=(0,o.Ao)(this);if(!e||!(0,r.n4)(n,e.getValue())){const i=(0,o.SJ)(n);e&&e.constructor==i?e.setValue(n):(0,o.uX)(this,i.create(n)),e&&r.er.batchedUpdates(()=>{this._onChange(n,t)})}}return(0,o.Ao)(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,J(this,"onStart",D(this,W(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),a(this.animation.onChange,e,this)),a(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;(0,o.Ao)(this).reset((0,r.oq)(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),F(this)||(V(this,!0),z(this)||this._resume())}_resume(){r.RV.skipAnimation?this.finish():r.WU.start(this)}_stop(e,t){if(F(this)){V(this,!1);const n=this.animation;(0,r.__)(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),(0,r.MI)(this,{type:"idle",parent:this});const i=t?R(this.get()):D(this.get(),W(this,e??n.to));(0,r.Wd)(this._pendingCalls,i),n.changed&&(n.changed=!1,J(this,"onRest",i,this))}}};function W(e,t){const n=g(t),i=g(e.get());return(0,r.n4)(i,n)}function G(e,t=e.loop,n=e.to){const r=a(t);if(r){const i=!0!==r&&h(r),o=(i||e).reverse,a=!i||i.reset;return X({...e,loop:t,default:!1,pause:void 0,to:!o||y(n)?n:void 0,from:a?e.from:void 0,reset:a,...i})}}function X(e){const{to:t,from:n}=e=h(e),i=new Set;return r.is.obj(t)&&K(t,i),r.is.obj(n)&&K(n,i),e.keys=i.size?Array.from(i):null,e}function $(e){const t=X(e);return r.is.und(t.default)&&(t.default=d(t)),t}function K(e,t){(0,r.FI)(e,(e,n)=>null!=e&&t.add(n))}var Q=["onStart","onRest","onChange","onPause","onResume"];function Y(e,t,n){e.animation[n]=t[n]!==u(t,n)?c(t[n],e.key):void 0}function J(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var Z=["onStart","onChange","onRest"],ee=1,te=class{constructor(e,t){this.id=ee++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];r.is.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(X(e)),this}start(e){let{queue:t}=this;return e?t=(0,r.$r)(e).map(X):this.queue=[],this._flush?this._flush(this,t):(ce(this,t),ne(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;(0,r.__)((0,r.$r)(t),t=>n[t].stop(!!e))}else P(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(r.is.und(e))this.start({pause:!0});else{const t=this.springs;(0,r.__)((0,r.$r)(e),e=>t[e].pause())}return this}resume(e){if(r.is.und(e))this.start({pause:!1});else{const t=this.springs;(0,r.__)((0,r.$r)(e),e=>t[e].resume())}return this}each(e){(0,r.FI)(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,i=this._active.size>0,o=this._changed.size>0;(i&&!this._started||o&&!this._started)&&(this._started=!0,(0,r.bX)(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));const a=!i&&this._started,s=o||a&&n.size?this.get():null;o&&t.size&&(0,r.bX)(t,([e,t])=>{t.value=s,e(t,this,this._item)}),a&&(this._started=!1,(0,r.bX)(n,([e,t])=>{t.value=s,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}r.er.onFrame(this._onFrame)}};function ne(e,t){return Promise.all(t.map(t=>re(e,t))).then(t=>k(e,t))}async function re(e,t,n){const{keys:i,to:o,from:a,loop:s,onRest:c,onResolve:l}=t,d=r.is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===o&&(t.to=null),!1===a&&(t.from=null);const f=r.is.arr(o)||r.is.fun(o)?o:void 0;f?(t.to=void 0,t.onRest=void 0,d&&(d.onRest=void 0)):(0,r.__)(Z,n=>{const i=t[n];if(r.is.fun(i)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(i);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(i,{value:null,finished:e||!1,cancelled:t||!1})},d&&(d[n]=t[n])}});const p=e._state;t.pause===!p.paused?(p.paused=t.pause,(0,r.Wd)(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);const h=(i||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),g=!0===t.cancel||!0===u(t,"cancel");(f||g&&p.asyncId)&&h.push(C(++e._lastAsyncId,{props:t,state:p,actions:{pause:r.lQ,resume:r.lQ,start(t,n){g?(P(p,e._lastAsyncId),n(R(e))):(t.onRest=c,n(A(f,t,p,e)))}}})),p.paused&&await new Promise(e=>{p.resumeQueue.add(e)});const m=k(e,await Promise.all(h));if(s&&m.finished&&(!n||!m.noop)){const n=G(t,s,o);if(n)return ce(e,[n]),re(e,n,!0)}return l&&r.er.batchedUpdates(()=>l(m,e,e.item)),m}function ie(e,t){const n={...e.springs};return t&&(0,r.__)((0,r.$r)(t),e=>{r.is.und(e.keys)&&(e=X(e)),r.is.obj(e.to)||(e={...e,to:void 0}),se(n,e,e=>ae(e))}),oe(e,n),n}function oe(e,t){(0,r.FI)(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,(0,r.Ec)(t,e))})}function ae(e,t){const n=new H;return n.key=e,t&&(0,r.Ec)(n,t),n}function se(e,t,n){t.keys&&(0,r.__)(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function ce(e,t){(0,r.__)(t,t=>{se(e.springs,t,t=>ae(t,e))})}var ue=i.createContext({pause:!1,immediate:!1}),le=()=>{const e=[],t=function(t){(0,r.HX)();const i=[];return(0,r.__)(e,(e,o)=>{if(r.is.und(t))i.push(e.start());else{const r=n(t,e,o);r&&i.push(e.start(r))}}),i};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return(0,r.__)(e,e=>e.pause(...arguments)),this},t.resume=function(){return(0,r.__)(e,e=>e.resume(...arguments)),this},t.set=function(t){(0,r.__)(e,(e,n)=>{const i=r.is.fun(t)?t(n,e):t;i&&e.set(i)})},t.start=function(t){const n=[];return(0,r.__)(e,(e,i)=>{if(r.is.und(t))n.push(e.start());
2else{const r=this._getProps(t,e,i);r&&n.push(e.start(r))}}),n},t.stop=function(){return(0,r.__)(e,e=>e.stop(...arguments)),this},t.update=function(t){return(0,r.__)(e,(e,n)=>e.update(this._getProps(t,e,n))),this};const n=function(e,t,n){return r.is.fun(e)?e(n,t):e};return t._getProps=n,t};function de(e,t,n){const o=r.is.fun(t)&&t;o&&!n&&(n=[]);const a=(0,i.useMemo)(()=>o||3==arguments.length?le():void 0,[]),s=(0,i.useRef)(0),c=(0,r.CH)(),u=(0,i.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){const n=ie(e,t);return s.current>0&&!u.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?ne(e,t):new Promise(r=>{oe(e,n),u.queue.push(()=>{r(ne(e,t))}),c()})}}),[]),l=(0,i.useRef)([...u.ctrls]),d=(0,i.useRef)([]),f=(0,r.NQ)(e)||0;function p(e,n){for(let r=e;r<n;r++){const e=l.current[r]||(l.current[r]=new te(null,u.flush)),n=o?o(r,e):t[r];n&&(d.current[r]=$(n))}}(0,i.useMemo)(()=>{(0,r.__)(l.current.slice(e,f),e=>{v(e,a),e.stop(!0)}),l.current.length=e,p(f,e)},[e]),(0,i.useMemo)(()=>{p(0,Math.min(f,e))},n);const h=l.current.map((e,t)=>ie(e,d.current[t])),g=(0,i.useContext)(ue),y=(0,r.NQ)(g),b=g!==y&&m(g);(0,r.Es)(()=>{s.current++,u.ctrls=l.current;const{queue:e}=u;e.length&&(u.queue=[],(0,r.__)(e,e=>e())),(0,r.__)(l.current,(e,t)=>{a?.add(e),b&&e.start({default:g});const n=d.current[t];n&&(w(e,n.ref),e.ref?e.queue.push(n):e.start(n))})}),(0,r.H5)(()=>()=>{(0,r.__)(u.ctrls,e=>e.stop(!0))});const _=h.map(e=>({...e}));return a?[_,a]:_}function fe(e,t){const n=r.is.fun(e),[[i],o]=de(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[i,o]:i}function pe(e,t,n){const o=r.is.fun(t)&&t,{reset:s,sort:c,trail:u=0,expires:l=!0,exitBeforeEnter:f=!1,onDestroyed:p,ref:g,config:y}=o?o():t,b=(0,i.useMemo)(()=>o||3==arguments.length?le():void 0,[]),_=(0,r.$r)(e),x=[],I=(0,i.useRef)(null),E=s?null:I.current;(0,r.Es)(()=>{I.current=x}),(0,r.H5)(()=>((0,r.__)(x,e=>{b?.add(e.ctrl),e.ctrl.ref=b}),()=>{(0,r.__)(I.current,e=>{e.expired&&clearTimeout(e.expirationId),v(e.ctrl,b),e.ctrl.stop(!0)})}));const S=function(e,{key:t,keys:n=t},i){if(null===n){const t=new Set;return e.map(e=>{const n=i&&i.find(n=>n.item===e&&"leave"!==n.phase&&!t.has(n));return n?(t.add(n),n.key):he++})}return r.is.und(n)?e:r.is.fun(n)?e.map(n):(0,r.$r)(n)}(_,o?o():t,E),C=s&&I.current||[];(0,r.Es)(()=>(0,r.__)(C,({ctrl:e,item:t,key:n})=>{v(e,b),a(p,t,n)}));const k=[];if(E&&(0,r.__)(E,(e,t)=>{e.expired?(clearTimeout(e.expirationId),C.push(e)):~(t=k[t]=S.indexOf(e.key))&&(x[t]=e)}),(0,r.__)(_,(e,t)=>{x[t]||(x[t]={key:S[t],item:e,phase:"mount",ctrl:new te},x[t].ctrl.item=e)}),k.length){let e=-1;const{leave:n}=o?o():t;(0,r.__)(k,(t,r)=>{const i=E[r];~t?(e=x.indexOf(i),x[e]={...i,item:_[t]}):n&&x.splice(++e,0,i)})}r.is.fun(c)&&x.sort((e,t)=>c(e.item,t.item));let T=-u;const D=(0,r.CH)(),R=d(t),A=new Map,P=(0,i.useRef)(new Map),M=(0,i.useRef)(!1);(0,r.__)(x,(e,n)=>{const i=e.key,s=e.phase,c=o?o():t;let d,p;const m=a(c.delay||0,i);if("mount"==s)d=c.enter,p="enter";else{const e=S.indexOf(i)<0;if("leave"!=s)if(e)d=c.leave,p="leave";else{if(!(d=c.update))return;p="update"}else{if(e)return;d=c.enter,p="enter"}}if(d=a(d,e.item,n),d=r.is.obj(d)?h(d):{to:d},!d.config){const t=y||R.config;d.config=a(t,e.item,n,p)}T+=u;const v={...R,delay:m+T,ref:g,immediate:c.immediate,reset:!1,...d};if("enter"==p&&r.is.und(v.from)){const i=o?o():t,s=r.is.und(i.initial)||E?i.from:i.initial;v.from=a(s,e.item,n)}const{onResolve:w}=v;v.onResolve=e=>{a(w,e);const t=I.current,n=t.find(e=>e.key===i);if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every(e=>e.ctrl.idle);if("leave"==n.phase){const t=a(l,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(D,r)))}}e&&t.some(e=>e.expired)&&(P.current.delete(n),f&&(M.current=!0),D())}};const b=ie(e.ctrl,v);"leave"===p&&f?P.current.set(e,{phase:p,springs:b,payload:v}):A.set(e,{phase:p,springs:b,payload:v})});const N=(0,i.useContext)(ue),O=(0,r.NQ)(N),L=N!==O&&m(N);(0,r.Es)(()=>{L&&(0,r.__)(x,e=>{e.ctrl.start({default:N})})},[N]),(0,r.__)(A,(e,t)=>{if(P.current.size){const e=x.findIndex(e=>e.key===t.key);x.splice(e,1)}}),(0,r.Es)(()=>{(0,r.__)(P.current.size?P.current:A,({phase:e,payload:t},n)=>{const{ctrl:r}=n;
2n.phase=e,b?.add(r),L&&"enter"==e&&r.start({default:N}),t&&(w(r,t.ref),!r.ref&&!b||M.current?(r.start(t),M.current&&(M.current=!1)):r.update(t))})},s?void 0:n);const U=e=>i.createElement(i.Fragment,null,x.map((t,n)=>{const{springs:o}=A.get(t)||t.ctrl,a=e({...o},t.item,t,n),s=r.is.str(t.key)||r.is.num(t.key)?t.key:t.ctrl.id,c=i.version<"19.0.0",u=a?.props??{},l=c?a?.ref:u?.ref;return a&&a.type?i.createElement(a.type,{...u,key:s,ref:l}):a}));return b?[U,b]:U}var he=1;var ge=class extends U{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=(0,r.kx)(...t);const n=this._get(),i=(0,o.SJ)(n);(0,o.uX)(this,i.create(n))}advance(e){const t=this._get(),n=this.get();(0,r.n4)(t,n)||((0,o.Ao)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&ye(this._active)&&ve(this)}_get(){const e=r.is.arr(this.source)?this.source.map(r.oq):(0,r.$r)((0,r.oq)(this.source));return this.calc(...e)}_start(){this.idle&&!ye(this._active)&&(this.idle=!1,(0,r.__)((0,o.nm)(this),e=>{e.done=!1}),r.RV.skipAnimation?(r.er.batchedUpdates(()=>this.advance()),ve(this)):r.WU.start(this))}_attach(){let e=1;(0,r.__)((0,r.$r)(this.source),t=>{(0,r.at)(t)&&(0,r.Ec)(t,this),O(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){(0,r.__)((0,r.$r)(this.source),e=>{(0,r.at)(e)&&(0,r.DV)(e,this)}),this._active.clear(),ve(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=(0,r.$r)(this.source).reduce((e,t)=>Math.max(e,(O(t)?t.priority:0)+1),0))}};function me(e){return!1!==e.idle}function ye(e){return!e.size||Array.from(e).every(me)}function ve(e){e.idle||(e.idle=!0,(0,r.__)((0,o.nm)(e),e=>{e.done=!0}),(0,r.MI)(e,{type:"idle",parent:e}))}r.RV.assign({createStringInterpolator:r.Rs,to:(e,t)=>new ge(e,t)});r.WU.advance},31543(e,t,n){"use strict";n.d(t,{aq:()=>Te,RV:()=>I,Ec:()=>Re,MI:()=>ke,Tj:()=>K,kx:()=>he,Rs:()=>Ve,OX:()=>S,HX:()=>$e,ZJ:()=>Ge,__:()=>T,FI:()=>D,le:()=>_e,bX:()=>A,Wd:()=>N,WU:()=>H,Wg:()=>Ce,oq:()=>Se,at:()=>Ee,is:()=>C,$7:()=>Ke,n4:()=>k,lQ:()=>E,er:()=>i,DV:()=>Ae,$r:()=>R,CH:()=>Ye,Es:()=>Qe,H5:()=>Je,NQ:()=>et});var r=w(),i=e=>g(e,r),o=w();i.write=e=>g(e,o);var a=w();i.onStart=e=>g(e,a);var s=w();i.onFrame=e=>g(e,s);var c=w();i.onFinish=e=>g(e,c);var u=[];i.setTimeout=(e,t)=>{const n=i.now()+t,r=()=>{const e=u.findIndex(e=>e.cancel==r);~e&&u.splice(e,1),p-=~e?1:0},o={time:n,handler:e,cancel:r};return u.splice(l(n),0,o),p+=1,m(),o};var l=e=>~(~u.findIndex(t=>t.time>e)||~u.length);i.cancel=e=>{a.delete(e),s.delete(e),c.delete(e),r.delete(e),o.delete(e)},i.sync=e=>{h=!0,i.batchedUpdates(e),h=!1},i.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,i.onStart(n)}return r.handler=e,r.cancel=()=>{a.delete(n),t=null},r};var d="undefined"!=typeof window?window.requestAnimationFrame:()=>{};i.use=e=>d=e,i.now="undefined"!=typeof performance?()=>performance.now():Date.now,i.batchedUpdates=e=>e(),i.catch=console.error,i.frameLoop="always",i.advance=()=>{"demand"!==i.frameLoop||v()};var f=-1,p=0,h=!1;function g(e,t){h?(t.delete(e),e(0)):(t.add(e),m())}function m(){f<0&&(f=0,"demand"!==i.frameLoop&&d(y))}function y(){~f&&(d(y),i.batchedUpdates(v))}function v(){const e=f;f=i.now();const t=l(f);t&&(b(u.splice(0,t),e=>e.handler()),p-=t),p?(a.flush(),r.flush(e?Math.min(64,f-e):16.667),s.flush(),o.flush(),c.flush()):f=-1}function w(){let e=new Set,t=e;return{add(n){p+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(p-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,p-=t.size,b(t,t=>t(n)&&e.add(t)),p+=e.size,t=e)}}}function b(e,t){e.forEach(e=>{try{t(e)}catch(e){i.catch(e)}})}var _=n(63696),x=Object.defineProperty,I={};function E(){}((e,t)=>{for(var n in t)x(e,n,{get:t[n],enumerable:!0})})(I,{assign:()=>q,colors:()=>L,createStringInterpolator:()=>P,skipAnimation:()=>U,to:()=>M,willAdvance:()=>j});var S=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),C={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function k(e,t){if(C.arr(e)){if(!C.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var T=(e,t)=>
2e.forEach(t);function D(e,t,n){if(C.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var R=e=>C.und(e)?[]:C.arr(e)?e:[e];function A(e,t){if(e.size){const n=Array.from(e);e.clear(),T(n,t)}}var P,M,N=(e,...t)=>A(e,e=>e(...t)),O=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,U=!1,j=E,q=e=>{e.to&&(M=e.to),e.now&&(i.now=e.now),void 0!==e.colors&&(L=e.colors),null!=e.skipAnimation&&(U=e.skipAnimation),e.createStringInterpolator&&(P=e.createStringInterpolator),e.requestAnimationFrame&&i.use(e.requestAnimationFrame),e.batchedUpdates&&(i.batchedUpdates=e.batchedUpdates),e.willAdvance&&(j=e.willAdvance),e.frameLoop&&(i.frameLoop=e.frameLoop)},F=new Set,z=[],V=[],B=0,H={get idle(){return!F.size&&!z.length},start(e){B>e.priority?(F.add(e),i.onStart(W)):(G(e),i($))},advance:$,sort(e){if(B)i.onFrame(()=>H.sort(e));else{const t=z.indexOf(e);~t&&(z.splice(t,1),X(e))}},clear(){z=[],F.clear()}};function W(){F.forEach(G),F.clear(),i($)}function G(e){z.includes(e)||X(e)}function X(e){z.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(z,t=>t.priority>e.priority),0,e)}function $(e){const t=V;for(let n=0;n<z.length;n++){const r=z[n];B=r.priority,r.idle||(j(r),r.advance(e),r.idle||t.push(r))}return B=0,(V=z).length=0,(z=t).length>0}var K={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Q="[-+]?\\d*\\.?\\d+",Y=Q+"%";function J(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Z=new RegExp("rgb"+J(Q,Q,Q)),ee=new RegExp("rgba"+J(Q,Q,Q,Q)),te=new RegExp("hsl"+J(Q,Y,Y)),ne=new RegExp("hsla"
2+J(Q,Y,Y,Q)),re=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ie=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,oe=/^#([0-9a-fA-F]{6})$/,ae=/^#([0-9a-fA-F]{8})$/;function se(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ce(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=se(i,r,e+1/3),a=se(i,r,e),s=se(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ue(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function le(e){return(parseFloat(e)%360+360)%360/360}function de(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=oe.exec(e))?parseInt(t[1]+"ff",16)>>>0:L&&void 0!==L[e]?L[e]:(t=Z.exec(e))?(ue(t[1])<<24|ue(t[2])<<16|ue(t[3])<<8|255)>>>0:(t=ee.exec(e))?(ue(t[1])<<24|ue(t[2])<<16|ue(t[3])<<8|de(t[4]))>>>0:(t=re.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ae.exec(e))?parseInt(t[1],16)>>>0:(t=ie.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=te.exec(e))?(255|ce(le(t[1]),fe(t[2]),fe(t[3])))>>>0:(t=ne.exec(e))?(ce(le(t[1]),fe(t[2]),fe(t[3]))|de(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var he=(e,t,n)=>{if(C.fun(e))return e;if(C.arr(e))return he({range:e,output:t,extrapolate:n});if(C.str(e.output[0]))return P(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",c=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,c){let u=c?c(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],c,a,s,r.map)}};var ge=1.70158,me=1.525*ge,ye=ge+1,ve=2*Math.PI/3,we=2*Math.PI/4.5,be=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},_e={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>ye*e*e*e-ge*e*e,easeOutBack:e=>1+ye*Math.pow(e-1,3)+ge*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ve),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ve)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*we)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*we)/2+1,easeInBounce:e=>1-be(1-e),easeOutBounce:be,easeInOutBounce:e=>e<.5?(1-be(1-2*e))/2:(1+be(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}},xe=Symbol.for("FluidValue.get"),Ie=Symbol.for("FluidValue.observers"),Ee=e=>Boolean(e&&e[xe]),Se=e=>e&&e[xe]?e[xe]():e,Ce=e=>e[Ie]||null;function ke(e,t){const n=e[Ie];
2n&&n.forEach(e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)})}var Te=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");De(this,e)}},De=(e,t)=>Me(e,xe,t);function Re(e,t){if(e[xe]){let n=e[Ie];n||Me(e,Ie,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ae(e,t){const n=e[Ie];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ie]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Pe,Me=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Oe=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Le=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Ue=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,je=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qe=e=>{const[t,n]=Fe(e);if(!t||O())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&je.test(n)?qe(n):n||e},Fe=e=>{const t=je.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},ze=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Ve=e=>{Pe||(Pe=L?new RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(e=>Se(e).replace(je,qe).replace(Oe,pe).replace(Pe,pe)),n=t.map(e=>e.match(Ne).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>he({...e,output:t}));return e=>{const n=!Le.test(t[0])&&t.find(e=>Le.test(e))?.replace(Ne,"");let i=0;return t[0].replace(Ne,()=>`${r[i++](e)}${n||""}`).replace(Ue,ze)}},Be="react-spring: ",He=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Be}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},We=He(console.warn);function Ge(){We(`${Be}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var Xe=He(console.warn);function $e(){Xe(`${Be}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function Ke(e){return C.str(e)&&("#"==e[0]||/\d/.test(e)||!O()&&je.test(e)||e in(L||{}))}var Qe=O()?_.useEffect:_.useLayoutEffect;function Ye(){const e=(0,_.useState)()[1],t=(()=>{const e=(0,_.useRef)(!1);return Qe(()=>(e.current=!0,()=>{e.current=!1}),[]),e})();return()=>{t.current&&e(Math.random())}}var Je=e=>(0,_.useEffect)(e,Ze),Ze=[];function et(e){const t=(0,_.useRef)(void 0);return(0,_.useEffect)(()=>{t.current=e}),t.current}},95989(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e)};var r,i=n(78145),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},17298(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&n.test(e)};var n=/-webkit-|-moz-|-ms-/;e.exports=t.default},58486(e,t,n){"use strict";var r=n(84271),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);d&&(a=a.concat(d(n)));for(var s=c(t),g=c(n),m=0;m<a.length;++m){var y=a[m];if(!(o[y]||r&&r[y]||g&&g[y]||s&&s[y])){var v=f(n,y);try{u(t,y,v)}catch(e){}}}}return t}},78145(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>s});var r=/[A-Z]/g,i=/^ms-/,o={};function a(e){return"-"+e.toLowerCase()}const s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,a);return o[e]=i.test(t)?"-"+t:t}},96248(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t,n){if(e.hasOwnProperty(t)){for(var i={}
2,o=e[t],a=r(t),s=Object.keys(n),c=0;c<s.length;c++){var u=s[c];if(u===t)for(var l=0;l<o.length;l++)i[o[l]+a]=n[t];i[u]=n[u]}return i}return n}function o(e,t,n,r,i){for(var o=0,a=e.length;o<a;++o){var s=e[o](t,n,r,i);if(s)return s}}function a(e,t){-1===e.indexOf(t)&&e.push(t)}function s(e,t){if(Array.isArray(t))for(var n=0,r=t.length;n<r;++n)a(e,t[n]);else a(e,t)}function c(e){return e instanceof Object&&!Array.isArray(e)}n.d(t,{P:()=>F});var u=["Webkit"],l=["ms"],d=["Webkit","ms"];const f={plugins:[],prefixMap:{appearance:["Webkit","Moz"],textEmphasisPosition:u,textEmphasis:u,textEmphasisStyle:u,textEmphasisColor:u,boxDecorationBreak:u,maskImage:u,maskMode:u,maskRepeat:u,maskPosition:u,maskClip:u,maskOrigin:u,maskSize:u,maskComposite:u,mask:u,maskBorderSource:u,maskBorderMode:u,maskBorderSlice:u,maskBorderWidth:u,maskBorderOutset:u,maskBorderRepeat:u,maskBorder:u,maskType:u,textDecorationStyle:u,textDecorationSkip:u,textDecorationLine:u,textDecorationColor:u,userSelect:["Webkit","Moz","ms"],backdropFilter:u,fontKerning:u,scrollSnapType:d,scrollSnapPointsX:d,scrollSnapPointsY:d,scrollSnapDestination:d,scrollSnapCoordinate:d,clipPath:u,shapeImageThreshold:u,shapeImageMargin:u,shapeImageOutside:u,filter:u,hyphens:d,flowInto:d,flowFrom:d,breakBefore:d,breakAfter:d,breakInside:d,regionFragment:d,writingMode:u,textOrientation:u,tabSize:["Moz"],fontFeatureSettings:u,columnCount:u,columnFill:u,columnGap:u,columnRule:u,columnRuleColor:u,columnRuleStyle:u,columnRuleWidth:u,columns:u,columnSpan:u,columnWidth:u,wrapFlow:l,wrapThrough:l,wrapMargin:l,textSizeAdjust:u}};var p=["-webkit-","-moz-",""],h={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};var g=n(17298),m=n.n(g),y=["-webkit-",""];var v=["-webkit-",""];var w={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};var b={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},_={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};var x=["-webkit-","-moz-",""],I=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;var E=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function S(e){return"number"==typeof e&&!isNaN(e)}function C(e){return"string"==typeof e&&e.includes("/")}var k=["center","end","start","stretch"],T={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},D={alignSelf:function(e,t){k.indexOf(e)>-1&&(t.msGridRowAlign=e)},gridColumn:function(e,t){if(S(e))t.msGridColumn=e;else if(C(e)){var n=e.split("/"),r=E(n,2),i=r[0],o=r[1];D.gridColumnStart(+i,t);var a=o.split(/ ?span /),s=E(a,2),c=s[0],u=s[1];""===c?D.gridColumnEnd(+i+ +u,t):D.gridColumnEnd(+o,t)}else D.gridColumnStart(e,t)},gridColumnEnd:function(e,t){var n=t.msGridColumn;S(e)&&S(n)&&(t.msGridColumnSpan=e-n)},gridColumnStart:function(e,t){S(e)&&(t.msGridColumn=e)},gridRow:function(e,t){if(S(e))t.msGridRow=e;else if(C(e)){var n=e.split("/"),r=E(n,2),i=r[0],o=r[1];D.gridRowStart(+i,t);var a=o.split(/ ?span /),s=E(a,2),c=s[0],u=s[1];""===c?D.gridRowEnd(+i+ +u,t):D.gridRowEnd(+o,t)}else D.gridRowStart(e,t)},gridRowEnd:function(e,t){var n=t.msGridRow;S(e)&&S(n)&&(t.msGridRowSpan=e-n)},gridRowStart:function(e,t){S(e)&&(t.msGridRow=e)},gridTemplateColumns:function(e,t){t.msGridColumns=e},gridTemplateRows:function(e,t){t.msGridRows=e},justifySelf:function(e,t){k.indexOf(e)>-1&&(t.msGridColumnAlign=e)}};var R=["-webkit-",""];var A={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};var P=["-webkit-","-moz-",""],M={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},N={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};var O=n(95989),L=n.n(O),U={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},j={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};var q=[function(e,t){if("string"==typeof t&&"text"===t)return["-webkit-text","text"]},function(e,t){if("string"==typeof t&&!m()(t)&&t.indexOf("cross-fade(")>-1)return y.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})},function(e,t){if("cursor"===e&&h.hasOwnProperty(t))return p.map(function(e){return e+t})},function(e,t){if("string"==typeof t&&!m()(t)&&t.indexOf("filter(")>-1)return v.map(function(e){return t.replace(/filter\(/g,e+"filter(")})},function(e,t,n){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?n.WebkitBoxOrient="vertical":n.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?n.WebkitBoxDirection="reverse":n.WebkitBoxDirection="normal"),_.hasOwnProperty(e)&&(n[_[e]]=b[t]||t)},function(e,t){if("string"==typeof t&&!m()(t)&&I.test(t))return x.map(function(e){return t.replace(I,function(t){return e+t})})},function(e,t,n){if("display"===e&&t in T)return T[t];e in D&&(0,D[e])(t,n)},function(e,t){if("string"==typeof t&&!m()(t)&&t.indexOf("image-set(")>-1)return R.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})},function(e,t,n){if(Object.prototype.hasOwnProperty.call(A,e))for(var r=A[e],i=0,o=r.length;i<o;++i)n[r[i]]=t},function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},function(e,t){if(M.hasOwnProperty(e)&&N.hasOwnProperty(t))return P.map(function(e){return e+t})},function(e,t,n,i){if("string"==typeof t&&U.hasOwnProperty(e)){var o=function(e,t){if(m()(e))return e;
2for(var n=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),r=0,i=n.length;r<i;++r){var o=n[r],a=[o];for(var s in t){var c=L()(s);if(o.indexOf(c)>-1&&"order"!==c)for(var u=t[s],l=0,d=u.length;l<d;++l)a.unshift(o.replace(c,j[u[l]]+c))}n[r]=a.join(",")}return n.join(",")}(t,i),a=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-moz-|-ms-/.test(e)}).join(",");if(e.indexOf("Webkit")>-1)return a;var s=o.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?s:(n["Webkit"+r(e)]=a,n["Moz"+r(e)]=s,o)}},function(e,t){if("display"===e&&w.hasOwnProperty(t))return w[t]}],F=function(e){var t=e.prefixMap,n=e.plugins;return function e(r){for(var a in r){var u=r[a];if(c(u))r[a]=e(u);else if(Array.isArray(u)){for(var l=[],d=0,f=u.length;d<f;++d){s(l,o(n,a,u[d],r,t)||u[d])}l.length>0&&(r[a]=l)}else{var p=o(n,a,u,r,t);p&&(r[a]=p),r=i(t,a,r)}}return r}}({prefixMap:f.prefixMap,plugins:q})},40362(e,t,n){"use strict";var r=n(56441);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
2;return n.PropTypes=n,n}},62688(e,t,n){e.exports=n(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},52387(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(63696),i=n(62688),o=n.n(i),a=n(58486),s=n.n(a);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var u={},l=0;function d(e,t){return t=t||{},function(n){var i=n.displayName||n.name||"Component",a=function(i){var o,a;function s(e,t){var n;return(n=i.call(this,e,t)||this).state={},n.__scriptURL="",n}a=i,(o=s).prototype=Object.create(a.prototype),o.prototype.constructor=o,o.__proto__=a;var c=s.prototype;return c.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+l++),this.__scriptLoaderID},c.setupScriptURL=function(){return this.__scriptURL="function"==typeof e?e():e,this.__scriptURL},c.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},c.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=u[this.__scriptURL];if(!e||!e.loaded)throw new Error("Script is not loaded.");for(var n in e.observers)e.observers[n](e);delete window[t.callbackName]},c.componentDidMount=function(){var e=this,n=this.setupScriptURL(),r=this.asyncScriptLoaderGetScriptLoaderID(),i=t,o=i.globalName,a=i.callbackName,s=i.scriptId;if(o&&void 0!==window[o]&&(u[n]={loaded:!0,observers:{}}),u[n]){var c=u[n];return c&&(c.loaded||c.errored)?void this.asyncScriptLoaderHandleLoad(c):void(c.observers[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)})}var l={};l[r]=function(t){return e.asyncScriptLoaderHandleLoad(t)},u[n]={loaded:!1,observers:l};var d=document.createElement("script");for(var f in d.src=n,d.async=!0,t.attributes)d.setAttribute(f,t.attributes[f]);s&&(d.id=s);var p=function(e){if(u[n]){var t=u[n].observers;for(var r in t)e(t[r])&&delete t[r]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),d.onload=function(){var e=u[n];e&&(e.loaded=!0,p(function(t){return!a&&(t(e),!0)}))},d.onerror=function(){var e=u[n];e&&(e.errored=!0,p(function(t){return t(e),!0}))},document.body.appendChild(d)},c.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===t.removeOnUnmount)for(var n=document.getElementsByTagName("script"),r=0;r<n.length;r+=1)n[r].src.indexOf(e)>-1&&n[r].parentNode&&n[r].parentNode.removeChild(n[r]);var i=u[e];i&&(delete i.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===t.removeOnUnmount&&delete u[e])},c.render=function(){var e=t.globalName,i=this.props,o=(i.asyncScriptOnLoad,i.forwardedRef),a=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(i,["asyncScriptOnLoad","forwardedRef"]);return e&&"undefined"!=typeof window&&(a[e]=void 0!==window[e]?window[e]:void 0),a.ref=o,(0,r.createElement)(n,a)},s}(r.Component),d=(0,r.forwardRef)(function(e,t){return(0,r.createElement)(a,c({},e,{forwardedRef:t}))});return d.displayName="AsyncScriptLoader("+i+")",d.propTypes={asyncScriptOnLoad:o().func},s()(d,n)}}},74149(e,t,n){"use strict";n.d(t,{A:()=>d});var r=n(63696),i=n(62688),o=n.n(i);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var c=function(e){var t,n;function i(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(s(t)),t.handleErrored=t.handleErrored.bind(s(t)),t.handleChange=t.handleChange.bind(s(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(s(t)),t}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=i.prototype;return o.getValue=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this.props.grecaptcha.getResponse(this._widgetId):null},o.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},o.execute=function(){var e=this.props.grecaptcha;if(e&&void 0!==this._widgetId)return e.execute(this._widgetId);this._executeRequested=!0},o.executeAsync=function(){var e=this;return new Promise(function(t,n){e.executionResolve=t,e.executionReject=n,e.execute()})},o.reset=function(){this.props.grecaptcha&&void 0!==this._widgetId&&this.props.grecaptcha.reset(this._widgetId)},o.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},o.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},o.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},o.explicitRender=function(){if(this.props.grecaptcha&&this.props.grecaptcha.render&&void 0===this._widgetId){var e=document.createElement("div");this._widgetId=this.props.grecaptcha.render(e,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge}),this.captcha.appendChild(e)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},o.componentDidMount=function(){this.explicitRender()},o.componentDidUpdate=function(){this.explicitRender()},o.componentWillUnmount=function(){void 0!==this._widgetId&&(this.delayOfCaptchaIframeRemoving(),this.reset())},o.delayOfCaptchaIframeRemoving=function(){var e=document.createElement("div");for(document.body.appendChild(e),e.style.display="none";this.captcha.firstChild;)e.appendChild(this.captcha.firstChild);setTimeout(function(){document.body.removeChild(e)},5e3)},o.handleRecaptchaRef=function(e){this.captcha=e},o.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl"]));return r.createElement("div",a({},t,{ref:this.handleRecaptchaRef}))},i}(r.Component);c.displayName="ReCAPTCHA",c.propTypes={sitekey:o().string.isRequired,onChange:o().func,grecaptcha:o().object,theme:o().oneOf(["dark","light"]),type:o().oneOf(["image","audio"]),tabindex:o().number,onExpired:o().func,onErrored:o().func,size:o().oneOf(["compact","normal","invisible"]),stoken:o().string,hl:o().string,badge:o().oneOf(["bottomright","bottomleft","inline"])}
2,c.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var u=n(52387),l="onloadcallback";const d=(0,u.A)(function(){return"https://"+(("undefined"!=typeof window&&window.recaptchaOptions||{}).useRecaptchaNet?"recaptcha.net":"www.google.com")+"/recaptcha/api.js?onload="+l+"&render=explicit"},{callbackName:l,globalName:"grecaptcha"})(c)},38299(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case d:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case g:case c:return e;default:return t}}case i:return t}}}function x(e){return _(e)===d}t.AsyncMode=l,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||_(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===w||e.$$typeof===b||e.$$typeof===y)},t.typeOf=_},84271(e,t,n){"use strict";e.exports=n(38299)},34625(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,c=e[s],u=s+1,l=e[u];if(0>o(c,n))u<i&&0>o(l,c)?(e[r]=l,e[u]=n,r=u):(e[r]=c,e[s]=n,r=s);else{if(!(u<i&&0>o(l,n)))break e;e[r]=l,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}var u=[],l=[],d=1,f=null,p=3,h=!1,g=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,w="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function _(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(u,t)}t=r(l)}}function x(e){if(m=!1,_(e),!g)if(null!==r(u))g=!0,E||(E=!0,I());else{var t=r(l);null!==t&&P(x,t.startTime-e)}}var I,E=!1,S=-1,C=5,k=-1;function T(){return!!y||!(t.unstable_now()-k<C)}function D(){if(y=!1,E){var e=t.unstable_now();k=e;var n=!0;try{e:{g=!1,m&&(m=!1,w(S),S=-1),h=!0;var o=p;try{t:{for(_(e),f=r(u);null!==f&&!(f.expirationTime>e&&T());){var a=f.callback;if("function"==typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof s){f.callback=s,_(e),n=!0;break t}f===r(u)&&i(u),_(e)}else i(u);f=r(u)}if(null!==f)n=!0;else{var c=r(l);null!==c&&P(x,c.startTime-e),n=!1}}break e}finally{f=null,p=o,h=!1}
2n=void 0}}finally{n?I():E=!1}}}if("function"==typeof b)I=function(){b(D)};else if("undefined"!=typeof MessageChannel){var R=new MessageChannel,A=R.port2;R.port1.onmessage=D,I=function(){A.postMessage(null)}}else I=function(){v(D,0)};function P(e,n){S=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(l,e),null===r(u)&&e===r(l)&&(m?(w(S),S=-1):m=!0,P(x,o-a))):(e.sortIndex=s,n(u,e),g||h||(g=!0,E||(E=!0,I()))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},91434(e,t,n){"use strict";e.exports=n(34625)},26166(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>O,__assign:()=>o,__asyncDelegator:()=>S,__asyncGenerator:()=>E,__asyncValues:()=>C,__await:()=>I,__awaiter:()=>h,__classPrivateFieldGet:()=>P,__classPrivateFieldIn:()=>N,__classPrivateFieldSet:()=>M,__createBinding:()=>m,__decorate:()=>s,__disposeResources:()=>U,__esDecorate:()=>u,__exportStar:()=>y,__extends:()=>i,__generator:()=>g,__importDefault:()=>A,__importStar:()=>
vendor: 10,494 bytes, line 2
2R,__makeTemplateObject:()=>k,__metadata:()=>p,__param:()=>c,__propKey:()=>d,__read:()=>w,__rest:()=>a,__rewriteRelativeImportExtension:()=>j,__runInitializers:()=>l,__setFunctionName:()=>f,__spread:()=>b,__spreadArray:()=>x,__spreadArrays:()=>_,__values:()=>v,default:()=>q});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=r.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),f=!1,p=n.length-1;p>=0;p--){var h={};for(var g in r)h[g]="access"===g?{}:r[g];for(var g in r.access)h.access[g]=r.access[g];h.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var m=(0,n[p])("accessor"===c?{get:d.get,set:d.set}:d[u],h);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(d.get=s),(s=a(m.set))&&(d.set=s),(s=a(m.init))&&i.unshift(s)}else(s=a(m))&&("field"===c?i.unshift(s):d[u]=s)}l&&Object.defineProperty(l,r.name,d),f=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}function g(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var m=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||m(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function _(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function x(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function I(e){return this instanceof I?(this.v=e,this):new I(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(e,t){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{(n=i[e](t)).value instanceof I?Promise.resolve(n.value.v).then(c,u):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:I(e[r](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,i,(t=e[n](t)).done,t.value)})}}}function k(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},D=function(e){return D=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},D(e)};function R(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=D(e),r=0;r<n.length;r++)"default"!==n[r]&&m(t,e,n[r]);return T(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function M(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function N(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function O(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function U(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function i(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(e){return t(e),i()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function j(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,i,o){return n?t?".jsx":".js":!r||i&&o?r+i+"."+o.toLowerCase()+"js":e}):e}const q={__extends:i,__assign:o,__rest:a,__decorate:s,__param:c,__esDecorate:u,__runInitializers:l,__propKey:d,__setFunctionName:f,__metadata:p,__awaiter:h,__generator:g,__createBinding:m,__exportStar:y,__values:v,__read:w,__spread:b,__spreadArrays:_,__spreadArray:x,__await:I,__asyncGenerator:E,__asyncDelegator:S,__asyncValues:C,__makeTemplateOb
2ject:k,__importStar:R,__importDefault:A,__classPrivateFieldGet:P,__classPrivateFieldSet:M,__classPrivateFieldIn:N,__addDisposableResource:O,__disposeResources:U,__rewriteRelativeImportExtension:j}},68102(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},49257(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},68808(e,t,n){"use strict";n.d(t,{A:()=>c});var r=n(63696);function i(e){return function(e){return"[object Object]"===Object.prototype.toString.call(e)}(e)||Array.isArray(e)}function o(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;return JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{const r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:i(r)&&i(a)?o(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}var s=n(39393);function c(e={},t=[]){const n=(0,r.useRef)(e),i=(0,r.useRef)(t),[u,l]=(0,r.useState)(),[d,f]=(0,r.useState)(),p=(0,r.useCallback)(()=>{u&&u.reInit(n.current,i.current)},[u]);return(0,r.useEffect)(()=>{o(n.current,e)||(n.current=e,p())},[e,p]),(0,r.useEffect)(()=>{(function(e,t){if(e.length!==t.length)return!1;const n=a(e),r=a(t);return n.every((e,t)=>o(e,r[t]))})(i.current,t)||(i.current=t,p())},[t,p]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&d){s.A.globalOptions=c.globalOptions;const e=(0,s.A)(d,n.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[d,l]),[f,u]}c.globalOptions=void 0}}]);
3//# sourceMappingURL=549.bundle.5dd451b48e5b7fe4779f.js.map

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