@wistia/vhs 2.74.1-beta.4fde312a.f02663b → 2.74.1-beta.7e6b4a65.8314659

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"getBackgroundGradient.d.ts","sourceRoot":"","sources":["../../../src/helpers/getBackgroundGradient/getBackgroundGradient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;CA2Hd,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,SAAS,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAE,gBAAgB,EAAiD,CAAC;AAE5F,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kBAClB,yBAAyB,KACtC,0BAEF,CAAC"}
1
+ {"version":3,"file":"getBackgroundGradient.d.ts","sourceRoot":"","sources":["../../../src/helpers/getBackgroundGradient/getBackgroundGradient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAGpE,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;CA2Gd,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,SAAS,CAAC;AAEtD,eAAO,MAAM,WAAW,EAAE,gBAAgB,EAAiD,CAAC;AAE5F,MAAM,MAAM,yBAAyB,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,kBAClB,yBAAyB,KACtC,0BAEF,CAAC"}
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/vhs v2.74.1-beta.4fde312a.f02663b
3
+ * @license @wistia/vhs v2.74.1-beta.7e6b4a65.8314659
4
4
  *
5
5
  * Copyright (c) 2021-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -9,107 +9,91 @@
9
9
 
10
10
  "use strict";var gk=Object.create;var xf=Object.defineProperty;var vk=Object.getOwnPropertyDescriptor;var yk=Object.getOwnPropertyNames;var bk=Object.getPrototypeOf,Ck=Object.prototype.hasOwnProperty;var N0=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),wf=(e,t)=>{for(var r in t)xf(e,r,{get:t[r],enumerable:!0})},r7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yk(t))!Ck.call(e,o)&&o!==r&&xf(e,o,{get:()=>t[o],enumerable:!(n=vk(t,o))||n.enumerable});return e};var A=(e,t,r)=>(r=e!=null?gk(bk(e)):{},r7(t||!e||!e.__esModule?xf(r,"default",{value:e,enumerable:!0}):r,e)),n7=e=>r7(xf({},"__esModule",{value:!0}),e);var f,i=N0(()=>{"use strict";f=A(require("react"))});var ee=Ie(q=>{"use strict";i();Object.defineProperty(q,"__esModule",{value:!0});q.hasKey=q.isError=q.isNotVoid=q.isVoid=q.isNotBoolean=q.isBoolean=q.isNotFunction=q.isFunction=q.isNonEmptyArray=q.isEmptyArray=q.isNotArray=q.isArray=q.isNonEmptyRecord=q.isEmptyRecord=q.isNotRecord=q.isRecord=q.isInteger=q.isNaN=q.isNotNumber=q.isNumber=q.isNonEmptyString=q.isEmptyString=q.isNotString=q.isString=q.isNotNil=q.isNil=q.isNotUndefined=q.isUndefined=q.isNotNull=q.isNull=void 0;var xk=e=>e===null;q.isNull=xk;var wk=e=>!(0,q.isNull)(e);q.isNotNull=wk;var Dk=e=>e===void 0;q.isUndefined=Dk;var Sk=e=>!(0,q.isUndefined)(e);q.isNotUndefined=Sk;var Ek=e=>(0,q.isNull)(e)||(0,q.isUndefined)(e);q.isNil=Ek;var Pk=e=>!(0,q.isNil)(e);q.isNotNil=Pk;var Tk=e=>typeof e=="string";q.isString=Tk;var Ak=e=>!(0,q.isString)(e);q.isNotString=Ak;var Rk=e=>(0,q.isString)(e)&&e==="";q.isEmptyString=Rk;var Fk=e=>(0,q.isString)(e)&&!(0,q.isEmptyString)(e);q.isNonEmptyString=Fk;var Bk=e=>typeof e=="number";q.isNumber=Bk;var Ok=e=>!(0,q.isNumber)(e);q.isNotNumber=Ok;var Mk=e=>Number.isNaN(e);q.isNaN=Mk;var Ik=e=>Number.isInteger(e);q.isInteger=Ik;var kk=e=>(0,q.isNotNil)(e)&&typeof e=="object"&&!(e instanceof Array);q.isRecord=kk;var Nk=e=>!(0,q.isRecord)(e);q.isNotRecord=Nk;var Vk=e=>(0,q.isRecord)(e)&&Object.keys(e).length===0;q.isEmptyRecord=Vk;var Lk=e=>(0,q.isRecord)(e)&&Object.keys(e).length>0;q.isNonEmptyRecord=Lk;var $k=e=>(0,q.isNotNil)(e)&&typeof e=="object"&&e instanceof Array;q.isArray=$k;var zk=e=>!(0,q.isArray)(e);q.isNotArray=zk;var Gk=e=>(0,q.isArray)(e)&&e.length===0;q.isEmptyArray=Gk;var Hk=e=>(0,q.isArray)(e)&&e.length>0;q.isNonEmptyArray=Hk;var jk=e=>(0,q.isNotNil)(e)&&typeof e=="function";q.isFunction=jk;var Wk=e=>!(0,q.isFunction)(e);q.isNotFunction=Wk;var _k=e=>(0,q.isNotNil)(e)&&typeof e=="boolean";q.isBoolean=_k;var Uk=e=>!(0,q.isBoolean)(e);q.isNotBoolean=Uk;var Kk=e=>e===void 0;q.isVoid=Kk;var qk=e=>!(0,q.isVoid)(e);q.isNotVoid=qk;var Xk=e=>(0,q.isNotNil)(e)&&e instanceof Error;q.isError=Xk;var Yk=(e,t)=>(0,q.isNonEmptyRecord)(e)&&t in e;q.hasKey=Yk});var n8=Ie((Vle,ah)=>{i();var r8=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);r8?(oh=new Uint8Array(16),ah.exports=function(){return r8(oh),oh}):(ih=new Array(16),ah.exports=function(){for(var t=0,r;t<16;t++)(t&3)===0&&(r=Math.random()*4294967296),ih[t]=r>>>((t&3)<<3)&255;return ih});var oh,ih});var a8=Ie(($le,i8)=>{i();var o8=[];for(dl=0;dl<256;++dl)o8[dl]=(dl+256).toString(16).substr(1);var dl;function sV(e,t){var r=t||0,n=o8;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}i8.exports=sV});var u8=Ie((Gle,s8)=>{i();var uV=n8(),lV=a8();function cV(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||uV)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[n+a]=o[a];return t||lV(o)}s8.exports=cV});function T8(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var A8=N0(()=>{i()});var R8={};wf(R8,{default:()=>bV});var yV,bV,F8=N0(()=>{i();A8();yV=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,bV=T8(function(e){return yV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var TS=Ie((rNe,PS)=>{"use strict";i();var SS=Array.isArray,ES=Object.keys,WW=Object.prototype.hasOwnProperty,_W=typeof Element<"u";function x3(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=SS(e),n=SS(t),o,a,s;if(r&&n){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!x3(e[o],t[o]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,l=t instanceof Date;if(u!=l)return!1;if(u&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var d=ES(e);if(a=d.length,a!==ES(t).length)return!1;for(o=a;o--!==0;)if(!WW.call(t,d[o]))return!1;if(_W&&e instanceof Element&&t instanceof Element)return e===t;for(o=a;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!x3(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}PS.exports=function(t,r){try{return x3(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}});var $S=Ie(Fe=>{"use strict";i();var gt=typeof Symbol=="function"&&Symbol.for,E3=gt?Symbol.for("react.element"):60103,P3=gt?Symbol.for("react.portal"):60106,Zd=gt?Symbol.for("react.fragment"):60107,Qd=gt?Symbol.for("react.strict_mode"):60108,e1=gt?Symbol.for("react.profiler"):60114,t1=gt?Symbol.for("react.provider"):60109,r1=gt?Symbol.for("react.context"):60110,T3=gt?Symbol.for("react.async_mode"):60111,n1=gt?Symbol.for("react.concurrent_mode"):60111,o1=gt?Symbol.for("react.forward_ref"):60112,i1=gt?Symbol.for("react.suspense"):60113,c_=gt?Symbol.for("react.suspense_list"):60120,a1=gt?Symbol.for("react.memo"):60115,s1=gt?Symbol.for("react.lazy"):60116,f_=gt?Symbol.for("react.block"):60121,p_=gt?Symbol.for("react.fundamental"):60117,d_=gt?Symbol.for("react.responder"):60118,m_=gt?Symbol.for("react.scope"):60119;function Dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case E3:switch(e=e.type,e){case T3:case n1:case Zd:case e1:case Qd:case i1:return e;default:switch(e=e&&e.$$typeof,e){case r1:case o1:case s1:case a1:case t1:return e;default:return t}}case P3:return t}}}function LS(e){return Dr(e)===n1}Fe.AsyncMode=T3;Fe.ConcurrentMode=n1;Fe.ContextConsumer=r1;Fe.ContextProvider=t1;Fe.Element=E3;Fe.ForwardRef=o1;Fe.Fragment=Zd;Fe.Lazy=s1;Fe.Memo=a1;Fe.Portal=P3;Fe.Profiler=e1;Fe.StrictMode=Qd;Fe.Suspense=i1;Fe.isAsyncMode=function(e){return LS(e)||Dr(e)===T3};Fe.isConcurrentMode=LS;Fe.isContextConsumer=function(e){return Dr(e)===r1};Fe.isContextProvider=function(e){return Dr(e)===t1};Fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===E3};Fe.isForwardRef=function(e){return Dr(e)===o1};Fe.isFragment=function(e){return Dr(e)===Zd};Fe.isLazy=function(e){return Dr(e)===s1};Fe.isMemo=function(e){return Dr(e)===a1};Fe.isPortal=function(e){return Dr(e)===P3};Fe.isProfiler=function(e){return Dr(e)===e1};Fe.isStrictMode=function(e){return Dr(e)===Qd};Fe.isSuspense=function(e){return Dr(e)===i1};Fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Zd||e===n1||e===e1||e===Qd||e===i1||e===c_||typeof e=="object"&&e!==null&&(e.$$typeof===s1||e.$$typeof===a1||e.$$typeof===t1||e.$$typeof===r1||e.$$typeof===o1||e.$$typeof===p_||e.$$typeof===d_||e.$$typeof===m_||e.$$typeof===f_)};Fe.typeOf=Dr});var GS=Ie((KNe,zS)=>{"use strict";i();zS.exports=$S()});var qS=Ie((XNe,KS)=>{"use strict";i();var A3=GS(),h_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},g_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},v_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_S={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R3={};R3[A3.ForwardRef]=v_;R3[A3.Memo]=_S;function HS(e){return A3.isMemo(e)?_S:R3[e.$$typeof]||h_}var y_=Object.defineProperty,b_=Object.getOwnPropertyNames,jS=Object.getOwnPropertySymbols,C_=Object.getOwnPropertyDescriptor,x_=Object.getPrototypeOf,WS=Object.prototype;function US(e,t,r){if(typeof t!="string"){if(WS){var n=x_(t);n&&n!==WS&&US(e,n,r)}var o=b_(t);jS&&(o=o.concat(jS(t)));for(var a=HS(e),s=HS(t),u=0;u<o.length;++u){var l=o[u];if(!g_[l]&&!(r&&r[l])&&!(s&&s[l])&&!(a&&a[l])){var c=C_(t,l);try{y_(e,l,c)}catch{}}}}return e}KS.exports=US});var g1=Ie((lLe,cE)=>{i();var $_=typeof Element<"u",z_=typeof Map=="function",G_=typeof Set=="function",H_=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function h1(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!h1(e[n],t[n]))return!1;return!0}var a;if(z_&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!h1(n.value[1],t.get(n.value[0])))return!1;return!0}if(G_&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(H_&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if($_&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!h1(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}cE.exports=function(t,r){try{return h1(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}});var cT=Ie((y_e,lT)=>{"use strict";i();lT.exports=Bq;var sT="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",uT="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",Rq=new RegExp("^[^"+uT+"]*["+sT+"]"),Fq=new RegExp("^[^"+sT+"]*["+uT+"]");function Bq(e){return e=String(e||""),Rq.test(e)?"rtl":Fq.test(e)?"ltr":"neutral"}});var Y1=Ie((C_e,fT)=>{i();function Oq(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}fT.exports=Oq});var dT=Ie((w_e,pT)=>{i();var Mq=typeof window=="object"&&window&&window.Object===Object&&window;pT.exports=Mq});var E5=Ie((S_e,mT)=>{i();var Iq=dT(),kq=typeof self=="object"&&self&&self.Object===Object&&self,Nq=Iq||kq||Function("return this")();mT.exports=Nq});var gT=Ie((P_e,hT)=>{i();var Vq=E5(),Lq=function(){return Vq.Date.now()};hT.exports=Lq});var yT=Ie((A_e,vT)=>{i();var $q=/\s/;function zq(e){for(var t=e.length;t--&&$q.test(e.charAt(t)););return t}vT.exports=zq});var CT=Ie((F_e,bT)=>{i();var Gq=yT(),Hq=/^\s+/;function jq(e){return e&&e.slice(0,Gq(e)+1).replace(Hq,"")}bT.exports=jq});var P5=Ie((O_e,xT)=>{i();var Wq=E5(),_q=Wq.Symbol;xT.exports=_q});var ET=Ie((I_e,ST)=>{i();var wT=P5(),DT=Object.prototype,Uq=DT.hasOwnProperty,Kq=DT.toString,Cc=wT?wT.toStringTag:void 0;function qq(e){var t=Uq.call(e,Cc),r=e[Cc];try{e[Cc]=void 0;var n=!0}catch{}var o=Kq.call(e);return n&&(t?e[Cc]=r:delete e[Cc]),o}ST.exports=qq});var TT=Ie((N_e,PT)=>{i();var Xq=Object.prototype,Yq=Xq.toString;function Jq(e){return Yq.call(e)}PT.exports=Jq});var BT=Ie((L_e,FT)=>{i();var AT=P5(),Zq=ET(),Qq=TT(),eX="[object Null]",tX="[object Undefined]",RT=AT?AT.toStringTag:void 0;function rX(e){return e==null?e===void 0?tX:eX:RT&&RT in Object(e)?Zq(e):Qq(e)}FT.exports=rX});var MT=Ie((z_e,OT)=>{i();function nX(e){return e!=null&&typeof e=="object"}OT.exports=nX});var kT=Ie((H_e,IT)=>{i();var oX=BT(),iX=MT(),aX="[object Symbol]";function sX(e){return typeof e=="symbol"||iX(e)&&oX(e)==aX}IT.exports=sX});var $T=Ie((W_e,LT)=>{i();var uX=CT(),NT=Y1(),lX=kT(),VT=NaN,cX=/^[-+]0x[0-9a-f]+$/i,fX=/^0b[01]+$/i,pX=/^0o[0-7]+$/i,dX=parseInt;function mX(e){if(typeof e=="number")return e;if(lX(e))return VT;if(NT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=NT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uX(e);var r=fX.test(e);return r||pX.test(e)?dX(e.slice(2),r?2:8):cX.test(e)?VT:+e}LT.exports=mX});var A5=Ie((U_e,GT)=>{i();var hX=Y1(),T5=gT(),zT=$T(),gX="Expected a function",vX=Math.max,yX=Math.min;function bX(e,t,r){var n,o,a,s,u,l,c=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(gX);t=zT(t)||0,hX(r)&&(p=!!r.leading,d="maxWait"in r,a=d?vX(zT(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(D){var P=n,R=o;return n=o=void 0,c=D,s=e.apply(R,P),s}function v(D){return c=D,u=setTimeout(y,t),p?g(D):s}function m(D){var P=D-l,R=D-c,B=t-P;return d?yX(B,a-R):B}function b(D){var P=D-l,R=D-c;return l===void 0||P>=t||P<0||d&&R>=a}function y(){var D=T5();if(b(D))return x(D);u=setTimeout(y,m(D))}function x(D){return u=void 0,h&&n?g(D):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function S(){return u===void 0?s:x(T5())}function E(){var D=T5(),P=b(D);if(n=arguments,o=this,l=D,P){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(y,t),g(l)}return u===void 0&&(u=setTimeout(y,t)),s}return E.cancel=w,E.flush=S,E}GT.exports=bX});var jT=Ie((q_e,HT)=>{i();var CX=A5(),xX=Y1(),wX="Expected a function";function DX(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(wX);return xX(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),CX(e,t,{leading:n,maxWait:t,trailing:o})}HT.exports=DX});var aR=Ie(On=>{"use strict";i();Object.defineProperty(On,"__esModule",{value:!0});var sZ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),u4={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},uZ={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:sZ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},rR={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Ac=1;Ac<20;Ac++)rR["f"+Ac]=111+Ac;var Ac;function dm(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return nR(s,t)}),o=function(u){return n.some(function(l){return oR(l,u)})},a=r==null?o:o(r);return a}function lZ(e,t){return dm(e,t)}function cZ(e,t){return dm(e,{byKey:!0},t)}function nR(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in u4)n[u4[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=l4(h),m=u4[v];(a===1||!m)&&(r?n.key=v:n.which=iR(h)),m&&(n[m]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function oR(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function iR(e){e=l4(e);var t=rR[e]||e.toUpperCase().charCodeAt(0);return t}function l4(e){return e=e.toLowerCase(),e=uZ[e]||e,e}On.default=dm;On.isHotkey=dm;On.isCodeHotkey=lZ;On.isKeyHotkey=cZ;On.parseHotkey=nR;On.compareHotkey=oR;On.toKeyCode=iR;On.toKeyName=l4});var JR=Ie(Mn=>{"use strict";i();Object.defineProperty(Mn,"__esModule",{value:!0});var FQ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),T4={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},KR={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:FQ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},A4={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Ic=1;Ic<20;Ic++)A4["f"+Ic]=111+Ic;var Ic;function Dm(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return qR(s,t)}),o=function(u){return n.some(function(l){return XR(l,u)})},a=r==null?o:o(r);return a}function BQ(e,t){return Dm(e,t)}function OQ(e,t){return Dm(e,{byKey:!0},t)}function qR(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in T4)n[T4[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=R4(h),m=T4[v];if(h.length>1&&!m&&!KR[h]&&!A4[v])throw new TypeError('Unknown modifier: "'+h+'"');(a===1||!m)&&(r?n.key=v:n.which=YR(h)),m&&(n[m]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function XR(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function YR(e){e=R4(e);var t=A4[e]||e.toUpperCase().charCodeAt(0);return t}function R4(e){return e=e.toLowerCase(),e=KR[e]||e,e}Mn.default=Dm;Mn.isHotkey=Dm;Mn.isCodeHotkey=BQ;Mn.isKeyHotkey=OQ;Mn.parseHotkey=qR;Mn.compareHotkey=XR;Mn.toKeyCode=YR;Mn.toKeyName=R4});var mie={};wf(mie,{ActionModal:()=>_3,Avatar:()=>K3,Backdrop:()=>en,BackgroundImage:()=>q3,Badge:()=>Y3,Banner:()=>cu,Box:()=>J3,Breakline:()=>Z3,Button:()=>et,ButtonGroup:()=>uo,ButtonLink:()=>r5,Checkbox:()=>sc,CheckboxGroup:()=>pc,CheckboxMenuItem:()=>oI,ClickArea:()=>o5,CloseButton:()=>s5,CollapsibleGroup:()=>c5,Divider:()=>dc,Ellipsis:()=>L3,FileSelect:()=>f5,Form:()=>m5,FormButtons:()=>g5,FormField:()=>rv,FormFieldError:()=>cc,FormGlobalError:()=>hc,FullScreenModal:()=>nv,Icon:()=>Pe,IconButton:()=>co,Image:()=>ov,Input:()=>pa,KeyboardShortcut:()=>iv,Label:()=>lc,LabelDescription:()=>fc,Link:()=>ac,LinkButton:()=>av,List:()=>Hc,ListItem:()=>Ei,MediaObject:()=>uv,Menu:()=>v6,MenuButton:()=>S6,MenuItem:()=>nI,MenuLabel:()=>sI,MenuRadioGroup:()=>p6,Modal:()=>E6,ModalBase:()=>sa,ModalBody:()=>EI,ModalCloseButton:()=>TI,ModalFooter:()=>PI,ModalHeader:()=>SI,Paper:()=>T6,ProgressBar:()=>R6,Radio:()=>yc,RadioGroup:()=>bc,RadioMenuItem:()=>iI,RangeSelector:()=>z6,RangeSelectorCalendar:()=>df,RangeSelectorInput:()=>bf,RichTextEditor:()=>zc,ScreenReaderOnly:()=>Ql,Select:()=>hi,Slider:()=>U6,Stack:()=>K6,SubMenu:()=>lI,Switch:()=>Y6,Text:()=>or,Thumbnail:()=>J6,ThumbnailCollage:()=>sk,Toast:()=>Wl,ToastProvider:()=>vd,Tooltip:()=>la,Truncate:()=>rc,VHSProvider:()=>nz,WistiaLogo:()=>Q6,WistiaLogoNew:()=>e7,copyToClipboard:()=>Wa,datetimeHelpers:()=>tN,ellipsisFlexParentStyle:()=>wE,ellipsisStyle:()=>Sr,getBackgroundGradient:()=>yr,getSemiRandomBackgroundGradient:()=>nN,iconSizeMap:()=>Gl,isValidRange:()=>Zu,mq:()=>Re,objectHelpers:()=>JN,rteDeserializeHTML:()=>$c,rteFormatTypes:()=>lt,rteSerializeToHTML:()=>wa,screenReaderOnlyStyle:()=>ou,stringHelpers:()=>ZN,useBoolean:()=>Cd,useClipboard:()=>Bw,useElementObserver:()=>wd,useEvent:()=>Dd,useFocusTrap:()=>Ed,useForceUpdate:()=>_w,useFormikContext:()=>ui,useIsHovered:()=>nE,useKey:()=>Yl,useKeyPress:()=>c1,useKeyPressOnce:()=>p1,useLocalStorage:()=>sE,useMergedRefs:()=>eu,useMq:()=>Cn,useOnClickOutside:()=>tu,usePreventScroll:()=>d1,usePreviousValue:()=>ru,useTheme:()=>bn,useThemeColor:()=>Be,useToast:()=>hu,useWindowSize:()=>cd});module.exports=n7(mie);i();i();i();var Wa=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(a=>{throw a instanceof Error?a:new DOMException("The clipboard is not accessible","NotAllowedError")});let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let r=window.getSelection(),n=window.document.createRange();r?.removeAllRanges(),n.selectNode(t),r?.addRange(n);let o=!1;try{o=window.document.execCommand("copy")}catch(a){console.error("error",a)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};i();i();var h7=A(ee());i();i();i();var Jk=Math.pow(10,8)*24*60*60*1e3,Sie=-Jk;var o7=864e5;var Zk=3600;var i7=Zk*24,Eie=i7*7,Qk=i7*365.2425,eN=Qk/12,Pie=eN*3,V0=Symbol.for("constructDateFrom");function Nt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&V0 in e?e[V0](t):e instanceof Date?new e.constructor(t):new Date(t)}i();function he(e,t){return Nt(t||e,e)}function L0(e,t,r){let n=he(e,r?.in);return isNaN(t)?Nt(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i();function rl(e,t,r){let n=he(e,r?.in);if(isNaN(t))return Nt(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),a=Nt(r?.in||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);let s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}i();i();function $0(e){let t=he(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}i();function Bo(e,...t){let r=Nt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i();function Xr(e,t){let r=he(e,t?.in);return r.setHours(0,0,0,0),r}function Df(e,t,r){let[n,o]=Bo(r?.in,e,t),a=Xr(n),s=Xr(o),u=+a-$0(a),l=+s-$0(s);return Math.round((u-l)/o7)}i();function z0(e,t,r){return rl(e,t*12,r)}i();function Sf(e,t){let r=+he(e)-+he(t);return r<0?-1:r>0?1:r}i();function vr(e,t,r){let[n,o]=Bo(r?.in,e,t);return+Xr(n)==+Xr(o)}i();i();function a7(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function nl(e){return!(!a7(e)&&typeof e!="number"||isNaN(+he(e)))}i();function u7(e,t,r){let[n,o]=Bo(r?.in,e,t),a=s7(n,o),s=Math.abs(Df(n,o));n.setDate(n.getDate()-a*s);let u=+(s7(n,o)===-a),l=a*(s-u);return l===0?0:l}function s7(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}i();function _a(e,t){let r=he(e,t?.in);return r.setHours(23,59,59,999),r}i();function G0(e,t){let r=he(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i();i();function Ef(e,t){let[r,n]=Bo(e,t.start,t.end);return{start:r,end:n}}function l7(e,t){let{start:r,end:n}=Ef(t?.in,e),o=+r>+n,a=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=a;)l.push(Nt(r,s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}i();function H0(e,t){let{start:r,end:n}=Ef(t?.in,e),o=+r>+n,a=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=a;)l.push(Nt(r,s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}i();function ol(e,t){let r=he(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i();function c7(e,t){return he(e,t?.in).getDay()}i();function j0(e,t){let r=he(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=Nt(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}i();function W0(e,t){return he(e,t?.in).getFullYear()}i();function f7(e,t){return+he(e)>+he(t)}i();function pn(e,t){return+he(e)<+he(t)}i();function _0(e,t){return+he(e)==+he(t)}i();function p7(e){return+he(e)>Date.now()}i();function d7(e,t,r){let n=+he(e,r?.in),[o,a]=[+he(t.start,r?.in),+he(t.end,r?.in)].sort((s,u)=>s-u);return n>=o&&n<=a}var g7=1e3,U0=60,al=60,m7=30,Rr=["en-US"],Hn=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",il=e=>e.toString().padStart(2,"0"),Yr=e=>e instanceof Date,jn=e=>!Yr(e)||e.getTime()===0,v7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{return new Intl.DateTimeFormat(Rr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},y7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{return new Intl.DateTimeFormat(Rr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},b7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{let o=new Intl.DateTimeFormat(Rr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((a,s)=>(a[s.type]=s.value,a),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},C7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{return new Intl.DateTimeFormat(Rr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},x7=(e,{timeZone:t=Hn}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(Rr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},w7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{return new Intl.DateTimeFormat(Rr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},Pf=(e,{timeZone:t=Hn}={})=>{if((0,h7.isNil)(e))return"";let r=new Date(e);if(jn(r))return"";try{return new Intl.DateTimeFormat(Rr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},D7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{let{year:r,month:n,day:o,hour:a,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(Rr,{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t}).formatToParts(e).reduce((l,c)=>(c.type!=="literal"&&(l[c.type]=c.value),l),{});return`${n} ${o}, ${r}, ${a}:${s} ${u}`}catch(r){return console.error(r),""}},S7=(e,{timeZone:t=Hn}={})=>{if(!Yr(e)||jn(e))return"";try{return new Intl.DateTimeFormat(Rr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},E7=(e,{nowAnchor:t=new Date}={})=>{if(jn(e))return"";let r=(t.valueOf()-e.valueOf())/(U0*g7),n=Math.round(r),o=Df(t,e);return r<0?Pf(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=al?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(Rr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(Rr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(Rr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):Pf(e)},P7=e=>{let t=e.getTimezoneOffset()/al*-1,r=Math.round(t),n=(t-r)*al,o=r>=0?"+":"",a=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${a}:${s}`},sl=e=>{let t=Math.floor(e/g7),r=Math.floor(t/U0),n=Math.floor(r/al),o=t-r*U0,a=r-n*al;return{seconds:o,minutes:a,hours:n}},T7=e=>{let{hours:t,minutes:r,seconds:n}=sl(e);return t<1?`${r}:${il(n)}`:`${t}:${il(r)}:${il(n)}`},A7=e=>{let{hours:t,minutes:r,seconds:n}=sl(e);return`${t}:${il(r)}:${il(n)}`},K0=e=>Yr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,Tf=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:a}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,a??0):null},q0=e=>Tf(e)?.toISOString()??null,R7=(e,t=!0)=>{let r=e.getMinutes()<=m7,n=r?e.getHours():e.getHours()+1,o=r?m7:0,a={...K0(e),hours:n,minutes:o};return t?q0(a):Tf(a)},F7=e=>{let{seconds:t,minutes:r,hours:n}=sl(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var tN={isDate:Yr,dateOnlyString:v7,dateOnlyStringNumeric:y7,dateOnlyISOString:b7,monthDayStringNumeric:C7,dayOfWeekString:x7,timeOnlyString:w7,dateTimeString:Pf,dateTimeStringForSentence:D7,dateOnlyStringForSentence:S7,timeAgoString:E7,dateUTCOffset:P7,buildTimeDuration:sl,mediaDurationString:T7,sessionDurationString:A7,dateToDateTime:K0,dateTimeToDate:Tf,dateTimeToISO:q0,dateTimeRounded:R7,millisecondsToDurationISOString:F7};i();i();var B7=A(ee()),Dt=require("styled-components"),X0={defaultDarkOne:Dt.css`
11
11
  background-color: #222d66;
12
- background-image:
13
- radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
12
+ background-image: radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
14
13
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
15
14
  radial-gradient(farthest-corner at bottom left, #6b84ff, transparent 57%),
16
15
  radial-gradient(farthest-corner at top left, #2949e5, transparent 68%);
17
16
  `,defaultDarkTwo:Dt.css`
18
17
  background-color: #222d66;
19
- background-image:
20
- radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
18
+ background-image: radial-gradient(farthest-corner at top left, #6b84ff, transparent 100%),
21
19
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%),
22
20
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
23
21
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
24
22
  `,defaultLightOne:Dt.css`
25
23
  background-color: #ccd5ff;
26
- background-image:
27
- radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
24
+ background-image: radial-gradient(farthest-corner at bottom right, #ccd5ff, transparent 55%),
28
25
  radial-gradient(farthest-corner at top left, #ccd5ff, transparent 65%),
29
26
  radial-gradient(farthest-corner at top right, #6b84ff, transparent 50%),
30
27
  radial-gradient(farthest-corner at bottom left, #f7f8ff, transparent 50%);
31
28
  `,defaultLightTwo:Dt.css`
32
29
  background-color: #ccd5ff;
33
- background-image:
34
- radial-gradient(ellipse at top, #ccd5ff, transparent),
30
+ background-image: radial-gradient(ellipse at top, #ccd5ff, transparent),
35
31
  radial-gradient(ellipse at bottom, #6b84ff, transparent);
36
32
  `,defaultMidOne:Dt.css`
37
33
  background-color: #6b84ff;
38
- background-image:
39
- radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
34
+ background-image: radial-gradient(farthest-corner at top right, #2949e5, transparent 70%),
40
35
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
41
36
  radial-gradient(farthest-corner at top left, #6b84ff, transparent 80%),
42
37
  radial-gradient(farthest-corner at bottom left, #222d66, transparent 57%);
43
38
  `,defaultMidTwo:Dt.css`
44
39
  background-color: #6b84ff;
45
- background-image:
46
- radial-gradient(ellipse at top, #2949e5, transparent),
40
+ background-image: radial-gradient(ellipse at top, #2949e5, transparent),
47
41
  radial-gradient(ellipse at bottom, #ccd5ff, transparent);
48
42
  `,green:Dt.css`
49
43
  background-color: #fafffa;
50
- background-image:
51
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
44
+ background-image: radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
52
45
  radial-gradient(farthest-corner at top right, #268713, transparent 50%),
53
46
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
54
47
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
55
48
  `,greenWithPop:Dt.css`
56
49
  background-color: #fafffa;
57
- background-image:
58
- radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
50
+ background-image: radial-gradient(farthest-corner at bottom left, #b0e5a5, transparent 50%),
59
51
  radial-gradient(farthest-corner at top right, #2949e5, transparent 50%),
60
52
  radial-gradient(farthest-corner at top left, #44b62d, transparent 65%),
61
53
  radial-gradient(farthest-corner at bottom right, #44b62d, transparent 55%);
62
54
  `,pink:Dt.css`
63
55
  background-color: #fffff0;
64
- background-image:
65
- radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
56
+ background-image: radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 50%),
66
57
  radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
67
58
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
68
59
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%);
69
60
  `,pinkWithPop:Dt.css`
70
61
  background-color: #fffff0;
71
- background-image:
72
- radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
62
+ background-image: radial-gradient(farthest-corner at top right, #e0128e, transparent 70%),
73
63
  radial-gradient(farthest-corner at top left, #ff40b3, transparent 65%),
74
64
  radial-gradient(farthest-corner at bottom right, #ff40b3, transparent 55%),
75
65
  radial-gradient(farthest-corner at bottom left, #2949e5, transparent 50%);
76
66
  `,playfulGradientOne:Dt.css`
77
67
  background-color: #f7f8ff;
78
- background-image:
79
- radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
68
+ background-image: radial-gradient(farthest-corner at top left, #d65cff, transparent 68%),
80
69
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
81
70
  radial-gradient(farthest-corner at bottom left, #ffc7e8, transparent 57%),
82
71
  radial-gradient(farthest-corner at top right, #ffcaba, transparent 70%);
83
72
  `,playfulGradientTwo:Dt.css`
84
73
  background-color: #f7f8ff;
85
- background-image:
86
- radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
74
+ background-image: radial-gradient(farthest-corner at top left, #44b62d, transparent 68%),
87
75
  radial-gradient(farthest-corner at bottom right, #eff18d, transparent 50%),
88
76
  radial-gradient(farthest-corner at bottom left, #ccd5ff, transparent 57%),
89
77
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
90
78
  `,purple:Dt.css`
91
79
  background-color: #f2caff;
92
- background-image:
93
- radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
80
+ background-image: radial-gradient(ellipse at 0% 100%, #f9e5ff, transparent 50%),
94
81
  radial-gradient(ellipse at 100% 0%, #e093fa, transparent 70%);
95
82
  `,purpleWithPop:Dt.css`
96
83
  background-color: #f2caff;
97
- background-image:
98
- radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
84
+ background-image: radial-gradient(farthest-corner at bottom left, #f2caff, transparent 50%),
99
85
  radial-gradient(farthest-corner at top left, #d65cff, transparent 65%),
100
86
  radial-gradient(farthest-corner at bottom right, #d65cff, transparent 55%),
101
87
  radial-gradient(farthest-corner at top right, #2949e5, transparent 70%);
102
88
  `,yellow:Dt.css`
103
89
  background-color: #fffff0;
104
- background-image:
105
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
90
+ background-image: radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
106
91
  radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
107
92
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
108
93
  radial-gradient(farthest-corner at bottom right, #e8ec1e, transparent 55%);
109
94
  `,yellowWithPop:Dt.css`
110
95
  background-color: #fffff0;
111
- background-image:
112
- radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
96
+ background-image: radial-gradient(farthest-corner at bottom left, #eff18d, transparent 50%),
113
97
  radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
114
98
  radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
115
99
  radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
@@ -2742,7 +2726,7 @@
2742
2726
  visibility: hidden;
2743
2727
  width: calc(100% + 40px);
2744
2728
  }
2745
- `,z6=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Boe,fullWidth:a=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=(0,Ro.useState)(c),[v,m]=(0,Ro.useState)(!1),[b,y]=(0,Ro.useState)(!0),[x,w]=(0,Ro.useState)("end"),[S,E]=(0,Ro.useState)([]),D=bn();return(0,Ro.useEffect)(()=>{g(c)},[c]),(0,Ro.useEffect)(()=>{let R=()=>{m(!1),g(c)};return v&&window.addEventListener("click",R),()=>{window.removeEventListener("click",R)}},[v,c,g]),(0,He.jsxs)(Ioe,{"data-testid":"rangeselector-test-identifer",onClick:R=>R.stopPropagation(),children:[(0,He.jsx)(koe,{...d,"data-testid":"trigger",fullWidth:a,icon:(0,He.jsx)(Pe,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?(0,He.jsxs)(Loe,{align:e,hasPresets:!!l.length,children:[(0,He.jsxs)($oe,{children:[!!l.length&&(0,He.jsx)(Hc,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${D.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:R,value:B,tooltipText:I})=>(0,He.jsx)(Ei,{children:(0,He.jsx)(Noe,{"data-testid":R?.replaceAll(" ","_"),isActive:Ooe(h,B),onClick:()=>{g(B)},children:(0,He.jsxs)(Hoe,{"data-title":`${R}___`,children:[R," ",I!==void 0?(0,He.jsx)(Foe,{tooltipText:I}):null]})})},R))}),(0,He.jsx)(zoe,{children:(0,He.jsxs)(Moe,{children:[(0,He.jsx)(bf,{earliestDate:r,latestDate:n,onChange:R=>{g(R)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),(0,He.jsx)(df,{earliestDate:r,latestDate:n,onChange:R=>{g(R)},onIsValidChange:y,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),(0,He.jsx)(Voe,{}),(0,He.jsxs)(Goe,{children:[(0,He.jsx)("div",{children:s}),(0,He.jsxs)(uo,{align:"right",children:[(0,He.jsx)(et,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),(0,He.jsx)(et,{"data-testid":"apply-button",disabled:!!S.length||!b,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};z6.displayName="RangeSelector_VHS";i();i();var tl=A(require("styled-components"));i();i();var Ha=A(require("react"),1);function G6(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function H6(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function B0(e){return e!==null&&e.length===1?e[0]:e.slice()}function O0(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Ga(e,t){return j6(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function j6(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var W6=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),O0(o.getMouseEventMap())})}G6(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=Ga(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),O0(o.getKeyDownEventMap()),G6(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),O0(o.getMouseEventMap()),G6(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),O0(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:B0(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:B0(o.state.value)};return o.props.renderTrack(p,d)};let a=H6(n.value);a.length||(a=H6(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<a.length;u+=1)a[u]=Ga(a[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=Ha.default.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}Rf(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=H6(n.value);return a.length?o.pending?null:{value:a.map(s=>Ga(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return B0(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,a=l)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Ga(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),u=n[a],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],u=a[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),u=Ga(this.calcValue(a),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Ga(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Ga(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,u=o[a];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m-b*v;g[h-1-b]>y&&(g[h-1-b]=y)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m+b*v;g[b]<y&&(g[b]=y)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,u;for(s=a,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=j6(u,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=j6(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](B0(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let u=0;u<o;u+=1)a[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(a[u],u);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),u={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return Ha.default.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(Ha.default.Component);W6.displayName="ReactSlider",W6.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Ha.default.createElement("div",e),renderTrack:e=>Ha.default.createElement("div",e),renderMark:e=>Ha.default.createElement("span",e)};var _6=W6;var bt=A(ee()),el=require("react/jsx-runtime"),tk="4px",joe=tl.css`
2729
+ `,z6=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Boe,fullWidth:a=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=(0,Ro.useState)(c),[v,m]=(0,Ro.useState)(!1),[b,y]=(0,Ro.useState)(!0),[x,w]=(0,Ro.useState)("end"),[S,E]=(0,Ro.useState)([]),D=bn();return(0,Ro.useEffect)(()=>{g(c)},[c]),(0,Ro.useEffect)(()=>{let R=()=>{m(!1),g(c)};return v&&window.addEventListener("click",R),()=>{window.removeEventListener("click",R)}},[v,c,g]),(0,He.jsxs)(Ioe,{"data-testid":"rangeselector-test-identifier",onClick:R=>R.stopPropagation(),children:[(0,He.jsx)(koe,{...d,"data-testid":"trigger",fullWidth:a,icon:(0,He.jsx)(Pe,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?(0,He.jsxs)(Loe,{align:e,hasPresets:!!l.length,children:[(0,He.jsxs)($oe,{children:[!!l.length&&(0,He.jsx)(Hc,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${D.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:R,value:B,tooltipText:I})=>(0,He.jsx)(Ei,{children:(0,He.jsx)(Noe,{"data-testid":R?.replaceAll(" ","_"),isActive:Ooe(h,B),onClick:()=>{g(B)},children:(0,He.jsxs)(Hoe,{"data-title":`${R}___`,children:[R," ",I!==void 0?(0,He.jsx)(Foe,{tooltipText:I}):null]})})},R))}),(0,He.jsx)(zoe,{children:(0,He.jsxs)(Moe,{children:[(0,He.jsx)(bf,{earliestDate:r,latestDate:n,onChange:R=>{g(R)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),(0,He.jsx)(df,{earliestDate:r,latestDate:n,onChange:R=>{g(R)},onIsValidChange:y,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),(0,He.jsx)(Voe,{}),(0,He.jsxs)(Goe,{children:[(0,He.jsx)("div",{children:s}),(0,He.jsxs)(uo,{align:"right",children:[(0,He.jsx)(et,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),(0,He.jsx)(et,{"data-testid":"apply-button",disabled:!!S.length||!b,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};z6.displayName="RangeSelector_VHS";i();i();var tl=A(require("styled-components"));i();i();var Ha=A(require("react"),1);function G6(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function H6(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function B0(e){return e!==null&&e.length===1?e[0]:e.slice()}function O0(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Ga(e,t){return j6(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function j6(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var W6=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),O0(o.getMouseEventMap())})}G6(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=Ga(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),O0(o.getKeyDownEventMap()),G6(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),O0(o.getMouseEventMap()),G6(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),O0(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:B0(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:B0(o.state.value)};return o.props.renderTrack(p,d)};let a=H6(n.value);a.length||(a=H6(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<a.length;u+=1)a[u]=Ga(a[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=Ha.default.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:a,zIndices:s},o}Rf(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let a=H6(n.value);return a.length?o.pending?null:{value:a.map(s=>Ga(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(a=>{typeof document<"u"&&document.removeEventListener(a,o[a],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return B0(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,a=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,a=l)}return a},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Ga(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let a=this.sizeKey(),s=n.getBoundingClientRect(),u=n[a],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[a.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,a=o.getBoundingClientRect(),s=a[this.posMaxKey()],u=a[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let a=this.calcOffsetFromPosition(n),s=this.getClosestIndex(a),u=Ga(this.calcValue(a),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let a=this["thumb"+n];a&&a.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Ga(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(a,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],a=Ga(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(a,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:a}=this.state,{length:s}=o,u=o[a];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(a>0){let h=o[a-1];n<h+d&&(n=h+d)}if(a<s-1){let h=o[a+1];n>h-d&&(n=h-d)}}o[a]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m-b*v;g[h-1-b]>y&&(g[h-1-b]=y)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,a),function(h,g,v,m){for(let b=0;b<h;b+=1){let y=m+b*v;g[b]<y&&(g[b]=y)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,a){let s,u;for(s=a,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=j6(u,this.props)},r.pushPreceding=function(n,o,a){for(let s=a,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=j6(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](B0(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let a={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return a[this.posMinKey()]=n+"px",a},r.buildTrackStyle=function(n,o){let a={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return a[this.posMinKey()]=n,a[this.posMaxKey()]=o,a},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,a=[];for(let u=0;u<o;u+=1)a[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(a[u],u);return s},r.renderTracks=function(n){let o=[],a=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<a;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(a+1,n[a],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((a,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((a,s)=>s).filter(a=>a%n==0)),n.map(parseFloat).sort((a,s)=>a-s).map(a=>{let s=this.calcOffset(a),u={key:a,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,a=o.length;for(let c=0;c<a;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return Ha.default.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(Ha.default.Component);W6.displayName="ReactSlider",W6.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>Ha.default.createElement("div",e),renderTrack:e=>Ha.default.createElement("div",e),renderMark:e=>Ha.default.createElement("span",e)};var _6=W6;var bt=A(ee()),el=require("react/jsx-runtime"),tk="4px",joe=tl.css`
2746
2730
  opacity: 0.5;
2747
2731
 
2748
2732
  & * {