@bynder/compact-view 4.2.2 → 4.2.3
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.
- package/components.js +1 -1
- package/index.d.ts +3 -1
- package/index.js +29 -29
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* bynder-compactview v4.2.
|
|
3
|
+
* bynder-compactview v4.2.3
|
|
4
4
|
* (c) 2024 Bynder
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,useContext as i,useEffect as a,createElement as s,useRef as l,useCallback as c,forwardRef as u,useLayoutEffect as d,useReducer as p,cloneElement as f}from"react";import h,{createPortal as m}from"react-dom";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var y=function(e){return e&&e.Math===Math&&e},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof g&&g)||y("object"==typeof g&&g)||function(){return this}()||Function("return this")(),x={},w=function(e){try{return!!e()}catch(e){return!0}},E=!w((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=!w((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),k=C,S=Function.prototype.call,_=k?S.bind(S):function(){return S.apply(S,arguments)},I={},T={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,j=O&&!T.call({1:2},1);I.f=j?function(e){var t=O(this,e);return!!t&&t.enumerable}:T;var z,B,P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=C,N=Function.prototype,D=N.call,M=A&&N.bind.bind(D,D),F=A?M:function(e){return function(){return D.apply(e,arguments)}},L=F,R=L({}.toString),H=L("".slice),$=function(e){return H(R(e),8,-1)},U=w,V=$,W=Object,q=F("".split),G=U((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"===V(e)?q(e,""):W(e)}:W,Y=function(e){return null==e},X=Y,K=TypeError,Z=function(e){if(X(e))throw new K("Can't call method on "+e);return e},J=G,Q=Z,ee=function(e){return J(Q(e))},te="object"==typeof document&&document.all,ne=void 0===te&&void 0!==te?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},re=ne,oe=function(e){return"object"==typeof e?null!==e:re(e)},ie=b,ae=ne,se=function(e,t){return arguments.length<2?(n=ie[e],ae(n)?n:void 0):ie[e]&&ie[e][t];var n},le=F({}.isPrototypeOf),ce=b,ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",de=ce.process,pe=ce.Deno,fe=de&&de.versions||pe&&pe.version,he=fe&&fe.v8;he&&(B=(z=he.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!B&&ue&&(!(z=ue.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=ue.match(/Chrome\/(\d+)/))&&(B=+z[1]);var me=B,ge=w,ve=b.String,ye=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol("symbol detection");return!ve(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),be=ye&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xe=se,we=ne,Ee=le,Ce=Object,ke=be?function(e){return"symbol"==typeof e}:function(e){var t=xe("Symbol");return we(t)&&Ee(t.prototype,Ce(e))},Se=String,_e=ne,Ie=TypeError,Te=function(e){if(_e(e))return e;throw new Ie(function(e){try{return Se(e)}catch(e){return"Object"}}(e)+" is not a function")},Oe=Te,je=Y,ze=_,Be=ne,Pe=oe,Ae=TypeError,Ne={exports:{}},De=b,Me=Object.defineProperty,Fe=function(e,t){try{Me(De,e,{value:t,configurable:!0,writable:!0})}catch(n){De[e]=t}return t},Le=Fe,Re="__core-js_shared__",He=b[Re]||Le(Re,{}),$e=He;(Ne.exports=function(e,t){return $e[e]||($e[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=Z,Ve=Object,We=function(e){return Ve(Ue(e))},qe=We,Ge=F({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Ge(qe(e),t)},Xe=F,Ke=0,Ze=Math.random(),Je=Xe(1..toString),Qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++Ke+Ze,36)},et=b,tt=Ne.exports,nt=Ye,rt=Qe,ot=ye,it=be,at=et.Symbol,st=tt("wks"),lt=it?at.for||at:at&&at.withoutSetter||rt,ct=function(e){return nt(st,e)||(st[e]=ot&&nt(at,e)?at[e]:lt("Symbol."+e)),st[e]},ut=_,dt=oe,pt=ke,ft=TypeError,ht=ct("toPrimitive"),mt=function(e,t){if(!dt(e)||pt(e))return e;var n,r=function(e,t){var n=e[t];return je(n)?void 0:Oe(n)}(e,ht);if(r){if(void 0===t&&(t="default"),n=ut(r,e,t),!dt(n)||pt(n))return n;throw new ft("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Be(n=e.toString)&&!Pe(r=ze(n,e)))return r;if(Be(n=e.valueOf)&&!Pe(r=ze(n,e)))return r;if("string"!==t&&Be(n=e.toString)&&!Pe(r=ze(n,e)))return r;throw new Ae("Can't convert object to primitive value")}(e,t)},gt=ke,vt=function(e){var t=mt(e,"string");return gt(t)?t:t+""},yt=oe,bt=b.document,xt=yt(bt)&&yt(bt.createElement),wt=function(e){return xt?bt.createElement(e):{}},Et=wt,Ct=!E&&!w((function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),kt=E,St=_,_t=I,It=P,Tt=ee,Ot=vt,jt=Ye,zt=Ct,Bt=Object.getOwnPropertyDescriptor;x.f=kt?Bt:function(e,t){if(e=Tt(e),t=Ot(t),zt)try{return Bt(e,t)}catch(e){}if(jt(e,t))return It(!St(_t.f,e,t),e[t])};var Pt={},At=E&&w((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Nt=oe,Dt=String,Mt=TypeError,Ft=function(e){if(Nt(e))return e;throw new Mt(Dt(e)+" is not an object")},Lt=E,Rt=Ct,Ht=At,$t=Ft,Ut=vt,Vt=TypeError,Wt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Gt="enumerable",Yt="configurable",Xt="writable";Pt.f=Lt?Ht?function(e,t,n){if($t(e),t=Ut(t),$t(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Xt in n&&!n[Xt]){var r=qt(e,t);r&&r[Xt]&&(e[t]=n.value,n={configurable:Yt in n?n[Yt]:r[Yt],enumerable:Gt in n?n[Gt]:r[Gt],writable:!1})}return Wt(e,t,n)}:Wt:function(e,t,n){if($t(e),t=Ut(t),$t(n),Rt)try{return Wt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Vt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Kt=Pt,Zt=P,Jt=E?function(e,t,n){return Kt.f(e,t,Zt(1,n))}:function(e,t,n){return e[t]=n,e},Qt={exports:{}},en=E,tn=Ye,nn=Function.prototype,rn=en&&Object.getOwnPropertyDescriptor,on=tn(nn,"name"),an={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!en||en&&rn(nn,"name").configurable)},sn=ne,ln=He,cn=F(Function.toString);sn(ln.inspectSource)||(ln.inspectSource=function(e){return cn(e)});var un,dn,pn,fn=ln.inspectSource,hn=ne,mn=b.WeakMap,gn=hn(mn)&&/native code/.test(String(mn)),vn=Ne.exports,yn=Qe,bn=vn("keys"),xn=function(e){return bn[e]||(bn[e]=yn(e))},wn={},En=gn,Cn=b,kn=oe,Sn=Jt,_n=Ye,In=He,Tn=xn,On=wn,jn="Object already initialized",zn=Cn.TypeError,Bn=Cn.WeakMap;if(En||In.state){var Pn=In.state||(In.state=new Bn);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,un=function(e,t){if(Pn.has(e))throw new zn(jn);return t.facade=e,Pn.set(e,t),t},dn=function(e){return Pn.get(e)||{}},pn=function(e){return Pn.has(e)}}else{var An=Tn("state");On[An]=!0,un=function(e,t){if(_n(e,An))throw new zn(jn);return t.facade=e,Sn(e,An,t),t},dn=function(e){return _n(e,An)?e[An]:{}},pn=function(e){return _n(e,An)}}var Nn={set:un,get:dn,has:pn,enforce:function(e){return pn(e)?dn(e):un(e,{})},getterFor:function(e){return function(t){var n;if(!kn(t)||(n=dn(t)).type!==e)throw new zn("Incompatible receiver, "+e+" required");return n}}},Dn=F,Mn=w,Fn=ne,Ln=Ye,Rn=E,Hn=an.CONFIGURABLE,$n=fn,Un=Nn.enforce,Vn=Nn.get,Wn=String,qn=Object.defineProperty,Gn=Dn("".slice),Yn=Dn("".replace),Xn=Dn([].join),Kn=Rn&&!Mn((function(){return 8!==qn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Jn=Qt.exports=function(e,t,n){"Symbol("===Gn(Wn(t),0,7)&&(t="["+Yn(Wn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ln(e,"name")||Hn&&e.name!==t)&&(Rn?qn(e,"name",{value:t,configurable:!0}):e.name=t),Kn&&n&&Ln(n,"arity")&&e.length!==n.arity&&qn(e,"length",{value:n.arity});try{n&&Ln(n,"constructor")&&n.constructor?Rn&&qn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Un(e);return Ln(r,"source")||(r.source=Xn(Zn,"string"==typeof t?t:"")),e};Function.prototype.toString=Jn((function(){return Fn(this)&&Vn(this).source||$n(this)}),"toString");var Qn=ne,er=Pt,tr=Qt.exports,nr=Fe,rr={},or=Math.ceil,ir=Math.floor,ar=Math.trunc||function(e){var t=+e;return(t>0?ir:or)(t)},sr=ar,lr=function(e){var t=+e;return t!=t||0===t?0:sr(t)},cr=lr,ur=Math.max,dr=Math.min,pr=lr,fr=Math.min,hr=function(e){return t=e.length,(n=pr(t))>0?fr(n,9007199254740991):0;var t,n},mr=ee,gr=hr,vr=function(e){return function(t,n,r){var o,i=mr(t),a=gr(i),s=function(e,t){var n=cr(e);return n<0?ur(n+t,0):dr(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},yr={includes:vr(!0),indexOf:vr(!1)},br=Ye,xr=ee,wr=yr.indexOf,Er=wn,Cr=F([].push),kr=function(e,t){var n,r=xr(e),o=0,i=[];for(n in r)!br(Er,n)&&br(r,n)&&Cr(i,n);for(;t.length>o;)br(r,n=t[o++])&&(~wr(i,n)||Cr(i,n));return i},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_r=kr,Ir=Sr.concat("length","prototype");rr.f=Object.getOwnPropertyNames||function(e){return _r(e,Ir)};var Tr={};Tr.f=Object.getOwnPropertySymbols;var Or=se,jr=rr,zr=Tr,Br=Ft,Pr=F([].concat),Ar=Or("Reflect","ownKeys")||function(e){var t=jr.f(Br(e)),n=zr.f;return n?Pr(t,n(e)):t},Nr=Ye,Dr=Ar,Mr=x,Fr=Pt,Lr=w,Rr=ne,Hr=/#|\.prototype\./,$r=function(e,t){var n=Vr[Ur(e)];return n===qr||n!==Wr&&(Rr(t)?Lr(t):!!t)},Ur=$r.normalize=function(e){return String(e).replace(Hr,".").toLowerCase()},Vr=$r.data={},Wr=$r.NATIVE="N",qr=$r.POLYFILL="P",Gr=$r,Yr=b,Xr=x.f,Kr=Jt,Zr=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(Qn(n)&&tr(n,i,r),r.global)o?e[t]=n:nr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:er.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Jr=Fe,Qr=function(e,t,n){for(var r=Dr(t),o=Fr.f,i=Mr.f,a=0;a<r.length;a++){var s=r[a];Nr(e,s)||n&&Nr(n,s)||o(e,s,i(t,s))}},eo=Gr,to=$,no=F,ro=function(e){if("Function"===to(e))return no(e)},oo=Te,io=C,ao=ro(ro.bind),so=$,lo=Array.isArray||function(e){return"Array"===so(e)},co={};co[ct("toStringTag")]="z";var uo="[object z]"===String(co),po=ne,fo=$,ho=ct("toStringTag"),mo=Object,go="Arguments"===fo(function(){return arguments}()),vo=uo?fo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=mo(e),ho))?n:go?fo(t):"Object"===(r=fo(t))&&po(t.callee)?"Arguments":r},yo=F,bo=w,xo=ne,wo=vo,Eo=fn,Co=function(){},ko=se("Reflect","construct"),So=/^\s*(?:class|function)\b/,_o=yo(So.exec),Io=!So.test(Co),To=function(e){if(!xo(e))return!1;try{return ko(Co,[],e),!0}catch(e){return!1}},Oo=function(e){if(!xo(e))return!1;switch(wo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!_o(So,Eo(e))}catch(e){return!0}};Oo.sham=!0;var jo=!ko||bo((function(){var e;return To(To.call)||!To(Object)||!To((function(){e=!0}))||e}))?Oo:To,zo=lo,Bo=jo,Po=oe,Ao=ct("species"),No=Array,Do=G,Mo=We,Fo=hr,Lo=function(e,t){return new(function(e){var t;return zo(e)&&(t=e.constructor,(Bo(t)&&(t===No||zo(t.prototype))||Po(t)&&null===(t=t[Ao]))&&(t=void 0)),void 0===t?No:t}(e))(0===t?0:t)},Ro=F([].push),Ho=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(l,c,u,d){for(var p,f,h=Mo(l),m=Do(h),g=Fo(m),v=function(e,t){return oo(e),void 0===t?e:io?ao(e,t):function(){return e.apply(t,arguments)}}(c,u),y=0,b=d||Lo,x=t?b(l,g):n||a?b(l,0):void 0;g>y;y++)if((s||y in m)&&(f=v(p=m[y],y,h),e))if(t)x[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Ro(x,p)}else switch(e){case 4:return!1;case 7:Ro(x,p)}return i?-1:r||o?o:x}},$o={forEach:Ho(0),map:Ho(1),filter:Ho(2),some:Ho(3),every:Ho(4),find:Ho(5),findIndex:Ho(6),filterReject:Ho(7)},Uo={},Vo=kr,Wo=Sr,qo=Object.keys||function(e){return Vo(e,Wo)},Go=E,Yo=At,Xo=Pt,Ko=Ft,Zo=ee,Jo=qo;Uo.f=Go&&!Yo?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Zo(t),o=Jo(t),i=o.length,a=0;i>a;)Xo.f(e,n=o[a++],r[n]);return e};var Qo,ei=se("document","documentElement"),ti=Ft,ni=Uo,ri=Sr,oi=wn,ii=ei,ai=wt,si="prototype",li="script",ci=xn("IE_PROTO"),ui=function(){},di=function(e){return"<"+li+">"+e+"</"+li+">"},pi=function(e){e.write(di("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{Qo=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fi="undefined"!=typeof document?document.domain&&Qo?pi(Qo):(t=ai("iframe"),n="java"+li+":",t.style.display="none",ii.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(di("document.F=Object")),e.close(),e.F):pi(Qo);for(var r=ri.length;r--;)delete fi[si][ri[r]];return fi()};oi[ci]=!0;var hi=Object.create||function(e,t){var n;return null!==e?(ui[si]=ti(e),n=new ui,ui[si]=null,n[ci]=e):n=fi(),void 0===t?n:ni.f(n,t)},mi=ct,gi=hi,vi=Pt.f,yi=mi("unscopables"),bi=Array.prototype;void 0===bi[yi]&&vi(bi,yi,{configurable:!0,value:gi(null)});var xi,wi=$o.find,Ei="find",Ci=!0;Ei in[]&&Array(1)[Ei]((function(){Ci=!1})),function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?Yr:c?Yr[s]||Jr(s,{}):Yr[s]&&Yr[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Xr(n,r))&&a.value:n[r],!eo(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qr(i,o)}(e.sham||o&&o.sham)&&Kr(i,"sham",!0),Zr(n,r,i,e)}}({target:"Array",proto:!0,forced:Ci},{find:function(e){return wi(this,e,arguments.length>1?arguments[1]:void 0)}}),xi=Ei,bi[yi][xi]=!0,F(b.Array.prototype.find),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),l(e,"resize",r,!0)),l(t,"scroll",r,!0),a&&a.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=o(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=c(o),s=this._rootContainsTarget(o),l=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,a,t),d=null;this._rootContainsTarget(o)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:d,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,l,u,p,h,m,g,v=o,y=f(t),b=!1;!b&&y;){var x=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,x=null,v=null):x=r:x=i;else{var E=f(y),C=E&&c(E),k=E&&this._computeTargetAndRootIntersection(E,C,i);C&&k?(y=E,x=d(C,k)):(y=null,v=null)}else{var S=y.ownerDocument;y!=S.body&&y!=S.documentElement&&"visible"!=w.overflow&&(x=c(y))}if(x&&(a=x,s=v,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(a.top,s.top),u=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),g=u-l,v=(m=(h=Math.min(a.right,s.right))-p)>=0&&g>=0&&{top:l,bottom:u,left:p,right:h,width:m,height:g}||null),!v)break;y=y&&f(y)}return v}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=c(this.root);else{var n=h(this.root)?this.root:e,r=n.documentElement,o=n.body;t={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function h(e){return e&&9===e.nodeType}}();const ki=Object.prototype.toString;function Si(e){switch(ki.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Pi(e,Error)}}function _i(e,t){return ki.call(e)===`[object ${t}]`}function Ii(e){return _i(e,"ErrorEvent")}function Ti(e){return _i(e,"DOMError")}function Oi(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ji(e){return _i(e,"Object")}function zi(e){return"undefined"!=typeof Event&&Pi(e,Event)}function Bi(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Pi(e,t){try{return e instanceof t}catch(e){return!1}}function Ai(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Ni(e){return e&&e.Math==Math?e:void 0}const Di="object"==typeof globalThis&&Ni(globalThis)||"object"==typeof window&&Ni(window)||"object"==typeof self&&Ni(self)||"object"==typeof global&&Ni(global)||function(){return this}()||{};function Mi(e,t,n){const r=n||Di,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const Fi=Di,Li=80;function Ri(e,t){const n=e,r=[];let o,i,a,s,l;if(!n||!n.tagName)return"";if(Fi.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&_i(o,"String"))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const Hi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$i=["debug","info","warn","error","log","assert","trace"],Ui={};function Vi(e){if(!("console"in Di))return e();const t=Di.console,n={},r=Object.keys(Ui);r.forEach((e=>{const r=Ui[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const Wi=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Hi?$i.forEach((n=>{t[n]=(...t)=>{e&&Vi((()=>{Di.console[n](`Sentry Logger [${n}]:`,...t)}))}})):$i.forEach((e=>{t[e]=()=>{}})),t}(),qi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gi(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Yi(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}class Xi extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Ki(e){if(Si(e))return{message:e.message,name:e.name,stack:e.stack,...Ji(e)};if(zi(e)){const t={type:e.type,target:Zi(e.target),currentTarget:Zi(e.currentTarget),...Ji(e)};return"undefined"!=typeof CustomEvent&&Pi(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Zi(e){try{return"undefined"!=typeof Element&&Pi(e,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Li;for(;n&&i++<r&&(c=Ri(n,u),!("html"===c||i>1&&a+o.length*l+c.length>=d));)o.push(c),a+=c.length,n=n.parentNode;return o.reverse().join(s)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Ji(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Qi(e){return ea(e,new Map)}function ea(e,t){if(function(e){if(!ji(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=ea(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(ea(e,t))})),r}return e}const ta=/\(error: (.*)\)/,na=/captureMessage|captureException/,ra="<anonymous>";function oa(){const e=Di,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function ia(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function aa(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function sa(e){if(e&&e.__sentry_captured__)return!0;try{!function(e,t,n){try{Object.defineProperty(e,t,{value:!0,writable:!0,configurable:!0})}catch(n){Hi&&Wi.log(`Failed to add non-enumerable property "${t}" to object`,e)}}(e,"__sentry_captured__")}catch(e){}return!1}function la(e,t=100,n=1/0){try{return ua("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ca(e,t=3,n=102400){const r=la(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ca(e,t-1,n):r;var o}function ua(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(s=t)||s==s))return t;var s;const l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}(t))return"[VueViewModel]";if(function(e){return ji(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${function(e){try{return e&&"function"==typeof e&&e.name||ra}catch(e){return ra}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return ua("",u.toJSON(),c-1,r,o)}catch(e){}const d=Array.isArray(t)?[]:{};let p=0;const f=Ki(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(p>=r){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=ua(e,t,c-1,r,o),p++}return a(t),d}var da;function pa(e){return new ha((t=>{t(e)}))}function fa(e){return new ha(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(da||(da={}));class ha{constructor(e){ha.prototype.__init.call(this),ha.prototype.__init2.call(this),ha.prototype.__init3.call(this),ha.prototype.__init4.call(this),this._state=da.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ha(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ha(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(da.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(da.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===da.PENDING&&(Bi(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===da.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===da.RESOLVED&&e[1](this._value),this._state===da.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const ma=1e3;function ga(){return Date.now()/ma}const va=function(){const{performance:e}=Di;if(!e||!e.now)return ga;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/ma}();function ya(e,t=[]){return[e,t]}function ba(e,t){const[n,r]=e;return[n,[...r,t]]}function xa(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function wa(e,t){return(t||new TextEncoder).encode(e)}function Ea(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[wa(o,t),e]:o.push("string"==typeof e?wa(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(la(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Ca(e,t){const n="string"==typeof e.data?wa(e.data,t):e.data;return[Qi({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(()=>{const{performance:e}=Di;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&o<=s&&e.timeOrigin})();const ka={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Sa(e){return ka[e]}function _a(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const Ia=6e4;const Ta="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Oa="production";function ja(){return Mi("globalEventProcessors",(()=>[]))}function za(e){ja().push(e)}function Ba(e,t,n,r=0){return new ha(((o,i)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const s=a({...t},n);Ta&&a.id&&null===s&&Wi.log(`Event processor "${a.id}" dropped event`),Bi(s)?s.then((t=>Ba(e,t,n,r+1).then(o))).then(null,i):Ba(e,s,n,r+1).then(o).then(null,i)}}))}function Pa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||va(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:oa()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const Aa=1;function Na(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,tags:s,origin:l}=Da(e);return Qi({data:r,op:o,parent_span_id:i,span_id:t,status:a,tags:s,trace_id:n,origin:l})}function Da(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}const Ma=new WeakMap;const Fa=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function La(){return ts().getClient()}function Ra(e){return e.transaction}function Ha(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},a=Qi({environment:r.environment||Oa,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function $a(e){const t=La();if(!t)return{};const n=Ha(Da(e).trace_id||"",t,ts().getScope()),r=Ra(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:a}=r.metadata;null!=i&&(n.sample_rate=`${i}`);const s=Da(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Aa)}(r)),t.emit&&t.emit("createDsc",n),n}function Ua(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i,propagationContext:a}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,l=Qi(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=Qi(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=Qi(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Qi(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Na(t),...e.contexts};const n=Ra(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:$a(t),...e.sdkProcessingMetadata};const r=Da(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t,n){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t,propagationContext:n}}(e,i,a)}function Va(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:f,span:h}=t;Wa(e,"extra",n),Wa(e,"tags",r),Wa(e,"user",o),Wa(e,"contexts",i),Wa(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Wa(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let qa;class Ga{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ya()}static clone(e){return e?e.clone():new Ga}clone(){const e=new Ga;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Pa(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof Ga?t:this}return e instanceof Ga?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):ji(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ya(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ga(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return Ua(e,this.getScopeData()),Ba([...n,...ja(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:oa();if(!this._client)return Wi.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:oa();if(!this._client)return Wi.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:oa();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Wi.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Ya(){return{traceId:oa(),spanId:oa().substring(16)}}const Xa="7.98.0",Ka=parseFloat(Xa),Za=100;class Ja{constructor(e,t,n,r=Ka){let o,i;this._version=r,t?o=t:(o=new Ga,o.setClient(e)),n?i=n:(i=new Ga,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return Bi(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:oa(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:oa(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:oa();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Za}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const a={timestamp:ga(),...e},s=o?Vi((()=>o(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=es(this);try{e(this)}finally{es(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Ta&&Wi.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Ta&&!n&&(this.getClient()?Wi.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Wi.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Pa(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=Oa}=n&&n.getOptions()||{},{userAgent:i}=Di.navigator||{},a=function(e){const t=va(),n={sid:oa(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Qi({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Pa(n,e),n}({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Pa(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=Qa().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Ta&&Wi.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Qa(){return Di.__SENTRY__=Di.__SENTRY__||{extensions:{},hub:void 0},Di}function es(e){const t=Qa(),n=ns(t);return rs(t,e),n}function ts(){const e=Qa();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Qa()){var t;return(t=e)&&t.__SENTRY__&&t.__SENTRY__.hub&&!ns(e).isOlderThan(Ka)||rs(e,new Ja),ns(e)}(e)}function ns(e){return Mi("hub",(()=>new Ja),e)}function rs(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const os=[];function is(e,t,n){if(n[t.name])Ta&&Wi.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===os.indexOf(t.name)&&(t.setupOnce(za,ts),os.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Ta&&Wi.log(`Integration installed: ${t.name}`)}}const as="Not capturing exception because it's already been captured.";class ss{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=qi.exec(e);if(!t)return void Vi((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Yi({host:i,pass:o,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):Yi(e);if(t&&function(e){if(!Hi)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Wi.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Wi.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Wi.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Wi.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Ta&&Wi.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(sa(e))return void(Ta&&Wi.log(as));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=Oi(e)?e:String(e),a=null===(s=e)||Oi(s)||"object"!=typeof s&&"function"!=typeof s?this.eventFromMessage(i,t,n):this.eventFromException(e,n);var s;return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&sa(t.originalException))return void(Ta&&Wi.log(as));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Ta&&Wi.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Pa(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):pa(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Ta&&Wi.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){is(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=_a(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gi(r)},...o&&{trace:Qi({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ya(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ba(n,Ca(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=_a(n);return ya({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Gi(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Ta&&Wi.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Ta&&Wi.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Gi(t));const i=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return ya(o,[i])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&is(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Pa(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ha((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=function(){return ts().getIsolationScope()}()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),function(e,t,n,r,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||oa(),timestamp:t.timestamp||ga()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Oa),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Ai(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Ai(a.value,i));const s=e.request;s&&s.url&&(s.url=Ai(s.url,i))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=Di._sentryDebugIds;if(!n)return;let r;const o=Ma.get(t);o?r=o:(r=new Map,Ma.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Ga;return n.update(t),n}(r,n.captureContext);n.mechanism&&aa(l,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(qa||(qa=new Ga),qa).getScopeData();i&&Va(p,i.getScopeData()),u&&Va(p,u.getScopeData());const f=[...n.attachments||[],...p.attachments];return f.length&&(n.attachments=f),Ua(l,p),Ba([...d,...ja(),...p.eventProcessors],l,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:la(e.data,t,n)}})))},...e.user&&{user:la(e.user,t,n)},...e.contexts&&{contexts:la(e.contexts,t,n)},...e.extra&&{extra:la(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=la(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Da(e).data;return r&&(e.data=la(r,t,n)),e}))),r}(e,a,s):e)))}(o,e,t,n,this,r).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const s=a||Ha(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Ta){const t=e;"log"===t.logLevel?Wi.log(t.message):Wi.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=cs(e),a=ls(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),fa(new Xi(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Xi("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return ls(t)&&r?r(t,n):cs(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Bi(e))return e.then((e=>{if(!ji(e)&&null!==e)throw new Xi(n);return e}),(e=>{throw new Xi(`${t} rejected with ${e}`)}));if(!ji(e)&&null!==e)throw new Xi(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new Xi(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Xi)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Xi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Ta&&Wi.error("Error while sending event:",e)}));Ta&&Wi.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function ls(e){return void 0===e.type}function cs(e){return"transaction"===e.type}function us(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return fa(new Xi("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new ha(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{pa(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};function o(o){const i=[];if(xa(o,((t,n)=>{const o=Sa(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=ds(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return pa();const a=ya(o[0],i),s=t=>{xa(a,((n,r)=>{const o=ds(n,r);e.recordDroppedEvent(t,Sa(r),o)}))};return n.add((()=>t({body:Ea(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Ta&&Wi.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))o[e]=r+a;else o.all=r+a}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Ia:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Xi)return Ta&&Wi.error("Skipped sending event because buffer is full."),s("queue_overflow"),pa();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function ds(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const ps=Di,fs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function hs(e,t){const n=gs(e,t),r={type:t&&t.name,value:ys(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ms(e,t){return{exception:{values:[hs(e,t)]}}}function gs(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(vs.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const vs=/Minified React error #\d+;/i;function ys(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function bs(e,t,n,r){const o={};if(r&&n){const r=gs(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Oi(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function xs(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Ki(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Ai(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Ai(r,t)}return""}(e),r=t?"promise rejection":"exception";if(Ii(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(zi(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}let ws;const Es="?";function Cs(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const ks=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ss=/\((\S*)(?::(\d+))(?::(\d+))\)/,_s=[30,e=>{const t=ks.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Ss.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Ps(t[1]||Es,t[2]);return Cs(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Is=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ts=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Os=[50,e=>{const t=Is.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ts.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Es;return[n,e]=Ps(n,e),Cs(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],js=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zs=[40,e=>{const t=js.exec(e);return t?Cs(t[2],t[1]||Es,+t[3],t[4]?+t[4]:void 0):void 0}],Bs=function(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e<o.length;e++){const n=o[e];if(n.length>1024)continue;const i=ta.test(n)?n.replace(ta,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),na.test(t[t.length-1].function||"")&&(t.pop(),na.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(_s,Os,zs),Ps=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Es,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var As=n(null),Ns={field:"CREATED_AT",direction:"DESC"};function Ds(e){var n=r(Ns),i=n[0],a=n[1],s=r(Ns),l=s[0],c=s[1],u=r(Ns),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?c(t):p(t)}function h(){a(Ns),c(Ns),p(Ns)}var m=o((function(){return{assets:i,collections:l,collection:d,setOrdering:f,reset:h}}),[i,d,l]);return t.createElement(As.Provider,{value:m},e.children)}function Ms(e){var t=function(){var e=i(As);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(n){return t.setOrdering(e,n)}]}var Fs=function(e,t){return Fs=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])},Fs(e,t)},Ls=function(){return Ls=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ls.apply(this,arguments)};function Rs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Hs(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function $s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Us(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Vs(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Ws=n(null);function qs(e){var n=r({page:"assets"});return t.createElement(Ws.Provider,{value:n},e.children)}function Gs(){var e=i(Ws);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var Ys=n(null),Xs={assets:"",collection:"",collections:"",isLoading:!1};function Ks(e){var n=r(Xs),i=n[0],s=n[1],l=Gs()[0];function c(e,t){var n=""!==t;s((function(r){var o;return Ls(Ls({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return Ls(Ls({},t),{isLoading:e})}))}function d(){s(Xs)}a((function(){var t;c("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return Ls(Ls({},e),{collection:""})}))}),[l]);var p=o((function(){return Ls(Ls({},i),{setSearch:c,setIsLoading:u,clear:d})}),[i]);return t.createElement(Ys.Provider,{value:p},e.children)}function Zs(){var e=i(Ys);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Js(e){var t=Zs();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}var Qs={error:console.error},el=n(null),tl=el.Provider,nl=function(){var e=i(el);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},rl=function(){return rl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rl.apply(this,arguments)};function ol(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var il=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0},al="-ms-",sl="-moz-",ll="-webkit-",cl="comm",ul="rule",dl="decl",pl="@import",fl="@keyframes",hl="@layer",ml=Math.abs,gl=String.fromCharCode,vl=Object.assign;function yl(e){return e.trim()}function bl(e,t){return(e=t.exec(e))?e[0]:e}function xl(e,t,n){return e.replace(t,n)}function wl(e,t,n){return e.indexOf(t,n)}function El(e,t){return 0|e.charCodeAt(t)}function Cl(e,t,n){return e.slice(t,n)}function kl(e){return e.length}function Sl(e){return e.length}function _l(e,t){return t.push(e),e}function Il(e,t){return e.filter((function(e){return!bl(e,t)}))}var Tl=1,Ol=1,jl=0,zl=0,Bl=0,Pl="";function Al(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Tl,column:Ol,length:a,return:"",siblings:s}}function Nl(e,t){return vl(Al("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Dl(e){for(;e.root;)e=Nl(e.root,{children:[e]});_l(e,e.siblings)}function Ml(){return Bl=zl>0?El(Pl,--zl):0,Ol--,10===Bl&&(Ol=1,Tl--),Bl}function Fl(){return Bl=zl<jl?El(Pl,zl++):0,Ol++,10===Bl&&(Ol=1,Tl++),Bl}function Ll(){return El(Pl,zl)}function Rl(){return zl}function Hl(e,t){return Cl(Pl,e,t)}function $l(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ul(e){return yl(Hl(zl-1,ql(91===e?e+2:40===e?e+1:e)))}function Vl(e){for(;(Bl=Ll())&&Bl<33;)Fl();return $l(e)>2||$l(Bl)>3?"":" "}function Wl(e,t){for(;--t&&Fl()&&!(Bl<48||Bl>102||Bl>57&&Bl<65||Bl>70&&Bl<97););return Hl(e,Rl()+(t<6&&32==Ll()&&32==Fl()))}function ql(e){for(;Fl();)switch(Bl){case e:return zl;case 34:case 39:34!==e&&39!==e&&ql(Bl);break;case 40:41===e&&ql(e);break;case 92:Fl()}return zl}function Gl(e,t){for(;Fl()&&e+Bl!==57&&(e+Bl!==84||47!==Ll()););return"/*"+Hl(t,zl-1)+"*"+gl(47===e?e:Fl())}function Yl(e){for(;!$l(Ll());)Fl();return Hl(e,zl)}function Xl(e){return function(e){return Pl="",e}(Kl("",null,null,null,[""],e=function(e){return Tl=Ol=1,jl=kl(Pl=e),zl=0,[]}(e),0,[0],e))}function Kl(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,w=i,E=r,C=b;g;)switch(h=y,y=Fl()){case 40:if(108!=h&&58==El(C,d-1)){-1!=wl(C+=xl(Ul(y),"&","&\f"),"&\f",ml(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Ul(y);break;case 9:case 10:case 13:case 32:C+=Vl(h);break;case 92:C+=Wl(Rl()-1,7);continue;case 47:switch(Ll()){case 42:case 47:_l(Jl(Gl(Fl(),Rl()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=kl(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=xl(C,/\f/g,"")),f>0&&kl(C)-d&&_l(f>32?Ql(C+";",r,n,d-1,l):Ql(xl(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(_l(E=Zl(C,t,n,c,u,o,s,b,x=[],w=[],d,i),i),123===y)if(0===u)Kl(C,t,E,E,x,i,d,s,w);else switch(99===p&&110===El(C,3)?100:p){case 100:case 108:case 109:case 115:Kl(e,E,E,r&&_l(Zl(e,E,E,0,0,o,s,b,o,x=[],d,w),w),o,w,d,s,r?x:w);break;default:Kl(C,E,E,E,[""],w,0,s,w)}}c=u=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+kl(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ml())continue;switch(C+=gl(y),y*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(kl(C)-1)*v,v=1;break;case 64:45===Ll()&&(C+=Ul(Fl())),p=Ll(),u=d=kl(b=C+=Yl(Rl())),y++;break;case 45:45===h&&2==kl(C)&&(m=0)}}return i}function Zl(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=Sl(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Cl(e,p+1,p=ml(g=a[m])),x=e;y<h;++y)(x=yl(g>0?f[y]+" "+b:xl(b,/&\f/g,f[y])))&&(l[v++]=x);return Al(e,t,n,0===o?ul:s,l,c,u,d)}function Jl(e,t,n,r){return Al(e,t,n,cl,gl(Bl),Cl(e,2,-2),0,r)}function Ql(e,t,n,r,o){return Al(e,t,n,dl,Cl(e,0,r),Cl(e,r+1,-1),r,o)}function ec(e,t,n){switch(function(e,t){return 45^El(e,0)?(((t<<2^El(e,0))<<2^El(e,1))<<2^El(e,2))<<2^El(e,3):0}(e,t)){case 5103:return ll+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ll+e+e;case 4789:return sl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ll+e+sl+e+al+e+e;case 5936:switch(El(e,t+11)){case 114:return ll+e+al+xl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ll+e+al+xl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ll+e+al+xl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ll+e+al+e+e;case 6165:return ll+e+al+"flex-"+e+e;case 5187:return ll+e+xl(e,/(\w+).+(:[^]+)/,ll+"box-$1$2"+al+"flex-$1$2")+e;case 5443:return ll+e+al+"flex-item-"+xl(e,/flex-|-self/g,"")+(bl(e,/flex-|baseline/)?"":al+"grid-row-"+xl(e,/flex-|-self/g,""))+e;case 4675:return ll+e+al+"flex-line-pack"+xl(e,/align-content|flex-|-self/g,"")+e;case 5548:return ll+e+al+xl(e,"shrink","negative")+e;case 5292:return ll+e+al+xl(e,"basis","preferred-size")+e;case 6060:return ll+"box-"+xl(e,"-grow","")+ll+e+al+xl(e,"grow","positive")+e;case 4554:return ll+xl(e,/([^-])(transform)/g,"$1"+ll+"$2")+e;case 6187:return xl(xl(xl(e,/(zoom-|grab)/,ll+"$1"),/(image-set)/,ll+"$1"),e,"")+e;case 5495:case 3959:return xl(e,/(image-set\([^]*)/,ll+"$1$`$1");case 4968:return xl(xl(e,/(.+:)(flex-)?(.*)/,ll+"box-pack:$3"+al+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ll+e+e;case 4200:if(!bl(e,/flex-|baseline/))return al+"grid-column-align"+Cl(e,t)+e;break;case 2592:case 3360:return al+xl(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,bl(e.props,/grid-\w+-end/)}))?~wl(e+(n=n[t].value),"span",0)?e:al+xl(e,"-start","")+e+al+"grid-row-span:"+(~wl(n,"span",0)?bl(n,/\d+/):+bl(n,/\d+/)-+bl(e,/\d+/))+";":al+xl(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return bl(e.props,/grid-\w+-start/)}))?e:al+xl(xl(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return xl(e,/(.+)-inline(.+)/,ll+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kl(e)-1-t>6)switch(El(e,t+1)){case 109:if(45!==El(e,t+4))break;case 102:return xl(e,/(.+:)(.+)-([^]+)/,"$1"+ll+"$2-$3$1"+sl+(108==El(e,t+3)?"$3":"$2-$3"))+e;case 115:return~wl(e,"stretch",0)?ec(xl(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return xl(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return al+n+":"+r+s+(o?al+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===El(e,t+6))return xl(e,":",":"+ll)+e;break;case 6444:switch(El(e,45===El(e,14)?18:11)){case 120:return xl(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ll+(45===El(e,14)?"inline-":"")+"box$3$1"+ll+"$2$3$1"+al+"$2box$3")+e;case 100:return xl(e,":",":"+al)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return xl(e,"scroll-","scroll-snap-")+e}return e}function tc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function nc(e,t,n,r){switch(e.type){case hl:if(e.children.length)break;case pl:case dl:return e.return=e.return||e.value;case cl:return"";case fl:return e.return=e.value+"{"+tc(e.children,r)+"}";case ul:if(!kl(e.value=e.props.join(",")))return""}return kl(n=tc(e.children,r))?e.return=e.value+"{"+n+"}":""}function rc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case dl:return void(e.return=ec(e.value,e.length,n));case fl:return tc([Nl(e,{value:xl(e.value,"@","@"+ll)})],r);case ul:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(bl(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Dl(Nl(e,{props:[xl(t,/:(read-\w+)/,":"+sl+"$1")]})),Dl(Nl(e,{props:[t]})),vl(e,{props:Il(n,r)});break;case"::placeholder":Dl(Nl(e,{props:[xl(t,/:(plac\w+)/,":"+ll+"input-$1")]})),Dl(Nl(e,{props:[xl(t,/:(plac\w+)/,":"+sl+"$1")]})),Dl(Nl(e,{props:[xl(t,/:(plac\w+)/,al+"input-$1")]})),Dl(Nl(e,{props:[t]})),vl(e,{props:Il(n,r)})}return""}))}}var oc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ic="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ac="active",sc="data-styled-version",lc="6.1.8",cc="/*!sc*/\n",uc="undefined"!=typeof window&&"HTMLElement"in window,dc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),pc={},fc=Object.freeze([]),hc=Object.freeze({});function mc(e,t,n){return void 0===n&&(n=hc),e.theme!==n.theme&&e.theme||t||n.theme}var gc=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),vc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yc=/(^-|-$)/g;function bc(e){return e.replace(vc,"-").replace(yc,"")}var xc=/(a)(d)/gi,wc=52,Ec=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cc(e){var t,n="";for(t=Math.abs(e);t>wc;t=t/wc|0)n=Ec(t%wc)+n;return(Ec(t%wc)+n).replace(xc,"$1-$2")}var kc,Sc=5381,_c=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ic=function(e){return _c(Sc,e)};function Tc(e){return Cc(Ic(e)>>>0)}function Oc(e){return"string"==typeof e&&!0}var jc="function"==typeof Symbol&&Symbol.for,zc=jc?Symbol.for("react.memo"):60115,Bc=jc?Symbol.for("react.forward_ref"):60112,Pc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ac={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dc=((kc={})[Bc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kc[zc]=Nc,kc);function Mc(e){return("type"in(t=e)&&t.type.$$typeof)===zc?Nc:"$$typeof"in e?Dc[e.$$typeof]:Pc;var t}var Fc=Object.defineProperty,Lc=Object.getOwnPropertyNames,Rc=Object.getOwnPropertySymbols,Hc=Object.getOwnPropertyDescriptor,$c=Object.getPrototypeOf,Uc=Object.prototype;function Vc(e,t,n){if("string"!=typeof t){if(Uc){var r=$c(t);r&&r!==Uc&&Vc(e,r,n)}var o=Lc(t);Rc&&(o=o.concat(Rc(t)));for(var i=Mc(e),a=Mc(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Ac||n&&n[l]||a&&l in a||i&&l in i)){var c=Hc(t,l);try{Fc(e,l,c)}catch(e){}}}}return e}function Wc(e){return"function"==typeof e}function qc(e){return"object"==typeof e&&"styledComponentId"in e}function Gc(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Yc(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Xc(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Kc(e,t,n){if(void 0===n&&(n=!1),!n&&!Xc(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Kc(e[r],t[r]);else if(Xc(t))for(var r in t)e[r]=Kc(e[r],t[r]);return e}function Zc(e,t){Object.defineProperty(e,"toString",{value:t})}function Jc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Qc=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Jc(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(cc);return t},e}(),eu=new Map,tu=new Map,nu=1,ru=function(e){if(eu.has(e))return eu.get(e);for(;tu.has(nu);)nu++;var t=nu++;return eu.set(e,t),tu.set(t,e),t},ou=function(e,t){nu=t+1,eu.set(e,t),tu.set(t,e)},iu="style[".concat(ic,"][").concat(sc,'="').concat(lc,'"]'),au=new RegExp("^".concat(ic,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),su=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},lu=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(cc),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(au);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(ou(u,c),su(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},cu=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(ic,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(ic,ac),r.setAttribute(sc,lc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},uu=function(){function e(e){this.element=cu(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Jc(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),du=function(){function e(e){this.element=cu(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),pu=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),fu=uc,hu={isServer:!uc,useCSSOMInjection:!dc},mu=function(){function e(e,t,n){void 0===e&&(e=hc),void 0===t&&(t={});var r=this;this.options=rl(rl({},hu),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&uc&&fu&&(fu=!1,function(e){for(var t=document.querySelectorAll(iu),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(ic)!==ac&&(lu(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Zc(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return tu.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(ic,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(cc)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return ru(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(rl(rl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new pu(n):t?new uu(n):new du(n)}(this.options),new Qc(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ru(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ru(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(ru(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),gu=/&/g,vu=/^\s*\/\/.*$/gm;function yu(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=yu(e.children,t)),e}))}function bu(e){var t,n,r,o=void 0===e?hc:e,i=o.options,a=void 0===i?hc:i,s=o.plugins,l=void 0===s?fc:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===ul&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(gu,n).replace(r,c))})),a.prefix&&u.push(rc),u.push(nc);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(vu,""),c=Xl(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=yu(c,a.namespace));var d,p=[];return tc(c,function(e){var t=Sl(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||Jc(15),_c(e,t.name)}),Sc).toString():"",d}var xu=new mu,wu=bu(),Eu=t.createContext({shouldForwardProp:void 0,styleSheet:xu,stylis:wu}),Cu=t.createContext(void 0);function ku(){return i(Eu)}function Su(e){var n=r(e.stylisPlugins),i=n[0],s=n[1],l=ku().styleSheet,c=o((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,l]),u=o((function(){return bu({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:i})}),[e.enableVendorPrefixes,e.namespace,i]);a((function(){il(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]);var d=o((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:u}}),[e.shouldForwardProp,c,u]);return t.createElement(Eu.Provider,{value:d},t.createElement(Cu.Provider,{value:u},e.children))}var _u=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=wu);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Zc(this,(function(){throw Jc(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=wu),this.name+e.hash},e}(),Iu=function(e){return e>="A"&&e<="Z"};function Tu(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Iu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Ou=function(e){return null==e||!1===e||""===e},ju=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ou(i)&&(Array.isArray(i)&&i.isCss||Wc(i)?r.push("".concat(Tu(o),":"),i,";"):Xc(i)?r.push.apply(r,ol(ol(["".concat(o," {")],ju(i),!1),["}"],!1)):r.push("".concat(Tu(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in oc||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function zu(e,t,n,r){return Ou(e)?[]:qc(e)?[".".concat(e.styledComponentId)]:Wc(e)?!Wc(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:zu(e(t),t,n,r):e instanceof _u?n?(e.inject(n,r),[e.getName(r)]):[e]:Xc(e)?ju(e):Array.isArray(e)?Array.prototype.concat.apply(fc,e.map((function(e){return zu(e,t,n,r)}))):[e.toString()];var o}function Bu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Wc(n)&&!qc(n))return!1}return!0}var Pu=Ic(lc),Au=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Bu(e),this.componentId=t,this.baseHash=_c(Pu,t),this.baseStyle=n,mu.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Gc(r,this.staticRulesId);else{var o=Yc(zu(this.rules,e,t,n)),i=Cc(_c(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Gc(r,i),this.staticRulesId=i}else{for(var s=_c(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=Yc(zu(u,e,t,n));s=_c(s,d+c),l+=d}}if(l){var p=Cc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Gc(r,p)}}return r},e}(),Nu=t.createContext(void 0),Du={};function Mu(e,n,r){var o=qc(e),i=e,a=!Oc(e),l=n.attrs,c=void 0===l?fc:l,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":bc(e);Du[n]=(Du[n]||0)+1;var r="".concat(n,"-").concat(Tc(lc+n+Du[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return Oc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=n.displayName&&n.componentId?"".concat(bc(n.displayName),"-").concat(n.componentId):n.componentId||d,m=o&&i.attrs?i.attrs.concat(c).filter(Boolean):c,g=n.shouldForwardProp;if(o&&i.shouldForwardProp){var v=i.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new Au(r,h,o?i.componentStyle:void 0);function x(e,n){return function(e,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=t.useContext(Nu),p=ku(),f=e.shouldForwardProp||p.shouldForwardProp,h=mc(n,d,a)||hc,m=function(e,t,n){for(var r,o=rl(rl({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Wc(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?Gc(o[s],a[s]):"style"===s?rl(rl({},o[s]),a[s]):a[s]}return t.className&&(o.className=Gc(o.className,t.className)),o}(o,n,h),g=m.as||u,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var n=ku();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(i,m),x=Gc(l,c);return b&&(x+=" "+b),m.className&&(x+=" "+m.className),v[Oc(g)&&!gc.has(g)?"class":"className"]=x,v.ref=r,s(g,v)}(w,e,n)}x.displayName=f;var w=t.forwardRef(x);return w.attrs=m,w.componentStyle=b,w.displayName=f,w.shouldForwardProp=g,w.foldedComponentIds=o?Gc(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=h,w.target=o?i.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Kc(e,o[r],!0);return e}({},i.defaultProps,e):e}}),Zc(w,(function(){return".".concat(w.styledComponentId)})),a&&Vc(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Fu(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Lu=function(e){return Object.assign(e,{isCss:!0})};function Ru(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Wc(e)||Xc(e))return Lu(zu(Fu(fc,ol([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?zu(r):Lu(zu(Fu(r,t)))}function Hu(e,t,n){if(void 0===n&&(n=hc),!t)throw Jc(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,Ru.apply(void 0,ol([r],o,!1)))};return r.attrs=function(r){return Hu(e,t,rl(rl({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Hu(e,t,rl(rl({},n),r))},r}var $u=function(e){return Hu(Mu,e)},Uu=$u;gc.forEach((function(e){Uu[e]=$u(e)}));var Vu=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Bu(e),mu.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Yc(zu(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&mu.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Wu(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=Ru.apply(void 0,ol([e],n,!1)),i="sc-global-".concat(Tc(JSON.stringify(o))),a=new Vu(o,i),s=function(e){var n=ku(),r=t.useContext(Nu),o=t.useRef(n.styleSheet.allocateGSInstance(i)).current;return n.styleSheet.server&&l(o,e,n.styleSheet,r,n.stylis),t.useLayoutEffect((function(){if(!n.styleSheet.server)return l(o,e,n.styleSheet,r,n.stylis),function(){return a.removeStyles(o,n.styleSheet)}}),[o,e,n.styleSheet,r,n.stylis]),null};function l(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,pc,n,o);else{var i=rl(rl({},t),{theme:mc(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return t.memo(s)}function qu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Yc(Ru.apply(void 0,ol([e],t,!1))),o=Tc(r);return new _u(o,r)}var Gu={exports:{}},Yu={},Xu=t,Ku=Symbol.for("react.element"),Zu=Symbol.for("react.fragment"),Ju=Object.prototype.hasOwnProperty,Qu=Xu.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ed={key:!0,ref:!0,__self:!0,__source:!0};function td(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Ju.call(t,r)&&!ed.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Ku,type:e,key:i,ref:a,props:o,_owner:Qu.current}}Yu.Fragment=Zu,Yu.jsx=td,Yu.jsxs=td,Gu.exports=Yu;const nd={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal500a10:"var(--teal500a10)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)",componentPaginationBackground:"var(--componentPaginationBackground)",componentPaginationElevation:"var(--componentPaginationElevation)",componentTooltipBackground:"var(--componentTooltipBackground)",componentTooltipShadow:"var(--componentTooltipShadow)",componentTooltipTitleColor:"var(--componentTooltipTitleColor)",componentTooltipSecondaryTextColor:"var(--componentTooltipSecondaryTextColor)",componentTooltipTextColor:"var(--componentTooltipTextColor)"};function rd({children:e,color:t="brand",hasBorder:n=!1,isPillShaped:r=!1,icon:o,isSmall:i=!1,isSecondary:a=!1,...s}){return Gu.exports.jsxs(od,{$color:t,$hasBorder:n,$isPillShaped:r,$isSecondary:a,$isSmall:i,...s,children:[o&&Gu.exports.jsx(id,{$isSmall:i,children:o}),e]})}const od=Uu.div.withConfig({displayName:"BadgeStyled",componentId:"sc-1qqwh9d-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.$isSmall?"20px":"24px"),(e=>e.$isSmall?nd.spacing2:"6px"),(e=>e.$isPillShaped?nd.radiusPill:nd.radiusMedium),nd.white,nd.fontSize50,(e=>{if(!e.$isSecondary&&e.$color){const t={brand:nd.brandPrimary500,gray:nd.gray400,black:nd.gray900,"black-alpha":nd.gray600a,green:nd.green500,blue:nd.blue500,red:nd.red400};return e.$hasBorder?Ru(["border-color:",";color:",";"],t[e.$color],t[e.$color]):Ru(["background-color:",";"],t[e.$color])}if(e.$isSecondary)return Ru(["border-color:",";background-color:",";color:",";"],e.$hasBorder?nd.gray100:"transparent",e.$hasBorder?nd.white:nd.gray100,nd.gray800)})),id=Uu.div.withConfig({displayName:"IconHolder",componentId:"sc-1qqwh9d-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.$isSmall?nd.spacing1:nd.spacing2),nd.spacing1),ad=Ru(["color:",";font-size:",";font-family:",";line-height:",";"],nd.colorText,nd.fontSizeBase,nd.brandFontStackBase,nd.lineHeightBase);Uu.div.withConfig({displayName:"BaseStyles",componentId:"sc-9qrbu4-0"})(["",""],ad);const sd="undefined"!=typeof document?t.useLayoutEffect:()=>{};let ld=new Map,cd=new Set;function ud(){if("undefined"==typeof window)return;let e=t=>{let n=ld.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),ld.delete(t.target)),0===ld.size)){for(let e of cd)e();cd.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=ld.get(t.target);n||(n=new Set,ld.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?ud():document.addEventListener("DOMContentLoaded",ud)),t.createContext({register:()=>{}}).displayName="PressResponderContext";class dd{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function pd(e){let t=l({isFocused:!1,observer:null});sd((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=l(null);return sd((()=>{t.current=e}),[e]),c(((...e)=>(0,t.current)(...e)),[])}((t=>{null==e||e(t)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new dd("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let fd=null,hd=new Set,md=!1,gd=!1,vd=!1;const yd={Tab:!0,Escape:!0};function bd(e,t){for(let n of hd)n(e,t)}function xd(e){gd=!0,function(e){return!(e.metaKey||("undefined"==typeof window||null==window.navigator||!/^Mac/i.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform))&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key);var t}(e)&&(fd="keyboard",bd("keyboard",e))}function wd(e){fd="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(gd=!0,bd("pointer",e))}function Ed(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(gd=!0,fd="virtual")}function Cd(e){e.target!==window&&e.target!==document&&(gd||vd||(fd="virtual",bd("virtual",e)),gd=!1,vd=!1)}function kd(){gd=!1,vd=!0}function Sd(){if("undefined"==typeof window||md)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){gd=!0,e.apply(this,arguments)},document.addEventListener("keydown",xd,!0),document.addEventListener("keyup",xd,!0),document.addEventListener("click",Ed,!0),window.addEventListener("focus",Cd,!0),window.addEventListener("blur",kd,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",wd,!0),document.addEventListener("pointermove",wd,!0),document.addEventListener("pointerup",wd,!0)):(document.addEventListener("mousedown",wd,!0),document.addEventListener("mousemove",wd,!0),document.addEventListener("mouseup",wd,!0)),md=!0}function _d(){return"pointer"!==fd}"undefined"!=typeof document&&("loading"!==document.readyState?Sd():document.addEventListener("DOMContentLoaded",Sd));const Id=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Td=!1,Od=0;function jd(){Td=!0,setTimeout((()=>{Td=!1}),50)}function zd(e){"touch"===e.pointerType&&jd()}function Bd(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",zd):document.addEventListener("touchend",jd),Od++,()=>{Od--,Od>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",zd):document.removeEventListener("touchend",jd))}}function Pd(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}class Ad{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new Nd({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Pd(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Ad;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Nd({scopeRef:null}),this.fastMap.set(null,this.root)}}class Nd{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function Dd(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=l({isFocused:!1,isFocusVisible:t||_d()}),[s,u]=r(!1),[d,p]=r((()=>i.current.isFocused&&i.current.isFocusVisible)),f=c((()=>p(i.current.isFocused&&i.current.isFocusVisible)),[]),h=c((e=>{i.current.isFocused=e,u(e),f()}),[f]);!function(e,t,n){Sd(),a((()=>{let t=(t,r)=>{(function(e,t,n){var r;return!((e=e||(null==n?void 0:n.target)instanceof HTMLInputElement&&!Id.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof HTMLTextAreaElement||(null==n?void 0:n.target)instanceof HTMLElement&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof KeyboardEvent&&!yd[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(_d())};return hd.add(t),()=>{hd.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=pd(i),s=c((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:o,onFocusChange:h}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=l({isFocusWithin:!1}),a=c((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=pd(a),u=c((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}({isDisabled:!o,onFocusWithinChange:h});return{isFocused:s,isFocusVisible:d,focusProps:o?g:m}}new Ad;const Md=Uu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-t3fck2-0"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentcolor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],nd.brandRadiusBase,nd.fontSizeBase,nd.brandFontStackBase,nd.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?Ru(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],nd.spacing4,nd.fontSize75):Ru(["height:40px !important;padding:0 "," !important;"],nd.spacing5)),(e=>{if("primary"===e.$variant){const t=Ru(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],nd.componentButtonPrimaryBorderActive,nd.componentButtonPrimaryFillActive,nd.componentButtonPrimaryColorActive);return Ru(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],nd.componentButtonPrimaryFill,nd.componentButtonPrimaryColor,e.$isPressed&&t,nd.componentButtonPrimaryBorderHover,nd.componentButtonPrimaryFillHover,nd.componentButtonPrimaryColorHover,nd.elevation1,nd.componentButtonPrimaryBorderFocus,nd.componentButtonPrimaryFillFocus,nd.componentButtonPrimaryColorFocus,nd.componentButtonPrimaryFocusRing,t,nd.componentButtonPrimaryBorderDisabled,nd.componentButtonPrimaryFillDisabled,nd.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=Ru(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],nd.componentButtonSecondaryBorderActive,nd.componentButtonSecondaryFillActive,nd.componentButtonSecondaryColorActive);return Ru(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],nd.componentButtonSecondaryBorder,nd.componentButtonSecondaryFill,nd.componentButtonSecondaryColor,e.$isPressed&&t,nd.componentButtonSecondaryBorderHover,nd.componentButtonSecondaryFillHover,nd.componentButtonSecondaryColorHover,nd.elevation1,nd.componentButtonSecondaryBorderFocus,nd.componentButtonSecondaryFillFocus,nd.componentButtonSecondaryColorFocus,nd.componentButtonSecondaryFocusRing,t,nd.componentButtonSecondaryBorderDisabled,nd.componentButtonSecondaryFillDisabled,nd.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=Ru(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],nd.componentButtonCleanBorderActive,nd.componentButtonCleanFillActive,nd.componentButtonCleanColorActive);return Ru(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{background-color:"," !important;color:"," !important;}"],nd.componentButtonCleanFill,nd.componentButtonCleanColor,e.$isPressed&&t,nd.componentButtonCleanFillHover,nd.componentButtonCleanColorHover,nd.componentButtonCleanBorderFocus,nd.componentButtonCleanColorFocus,nd.componentButtonCleanFocusRing,t,nd.componentButtonCleanFillDisabled,nd.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=Ru(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],nd.componentButtonDangerBorderActive,nd.componentButtonDangerFillActive,nd.componentButtonDangerColorActive);return Ru(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],nd.componentButtonDangerFill,nd.componentButtonDangerColor,nd.elevation1,e.$isPressed&&t,nd.componentButtonDangerBorderHover,nd.componentButtonDangerFillHover,nd.componentButtonDangerColorHover,nd.elevation2,nd.componentButtonDangerBorderFocus,nd.componentButtonDangerColorFocus,nd.componentButtonDangerFocusRing,t,nd.componentButtonDangerBorderDisabled,nd.componentButtonDangerFillDisabled,nd.componentButtonDangerColorDisabled)}return""})),Fd=Uu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1s1egyn-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],nd.brandRadiusBase,nd.fontSizeBase,nd.brandFontStackBase,nd.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?Ru(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],nd.spacing4,nd.fontSize75):Ru(["height:40px;padding:0 ",";"],nd.spacing5)),(e=>{if("primary"===e.$variant){const t=Ru(["border-color:",";background-color:",";color:",";box-shadow:none;"],nd.componentButtonPrimaryBorderActive,nd.componentButtonPrimaryFillActive,nd.componentButtonPrimaryColorActive);return Ru(["border-color:transparent;background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],nd.componentButtonPrimaryFill,nd.componentButtonPrimaryColor,e.$isPressed&&t,nd.componentButtonPrimaryBorderHover,nd.componentButtonPrimaryFillHover,nd.componentButtonPrimaryColorHover,nd.elevation1,t,e.$isFocusVisible&&Ru(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],nd.componentButtonPrimaryFillFocus,nd.componentButtonPrimaryColorFocus,nd.componentButtonPrimaryBorderFocus,nd.componentButtonPrimaryFocusRing),nd.componentButtonPrimaryBorderDisabled,nd.componentButtonPrimaryFillDisabled,nd.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=Ru(["border-color:",";background-color:",";color:",";box-shadow:none;"],nd.componentButtonSecondaryBorderActive,nd.componentButtonSecondaryFillActive,nd.componentButtonSecondaryColorActive);return Ru(["border-color:",";background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],nd.componentButtonSecondaryBorder,nd.componentButtonSecondaryFill,nd.componentButtonSecondaryColor,e.$isPressed&&t,nd.componentButtonSecondaryBorderHover,nd.componentButtonSecondaryFillHover,nd.componentButtonSecondaryColorHover,nd.elevation1,t,e.$isFocusVisible&&Ru(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],nd.componentButtonSecondaryFillFocus,nd.componentButtonSecondaryColorFocus,nd.componentButtonSecondaryBorderFocus,nd.componentButtonSecondaryFocusRing),nd.componentButtonSecondaryBorderDisabled,nd.componentButtonSecondaryFillDisabled,nd.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=Ru(["border-color:",";background-color:",";color:",";box-shadow:none;"],nd.componentButtonCleanBorderActive,nd.componentButtonCleanFillActive,nd.componentButtonCleanColorActive);return Ru(["background-color:",";color:",";"," &&:hover{background-color:",";color:",";box-shadow:none;}&&:active{","}"," &&:disabled{background-color:",";color:",";}"],nd.componentButtonCleanFill,nd.componentButtonCleanColor,e.$isPressed&&t,nd.componentButtonCleanFillHover,nd.componentButtonCleanColorHover,t,e.$isFocusVisible&&Ru(["color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],nd.componentButtonCleanColorFocus,nd.componentButtonCleanBorderFocus,nd.componentButtonCleanFocusRing),nd.componentButtonCleanFillDisabled,nd.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=Ru(["border-color:",";background-color:",";color:",";box-shadow:none;"],nd.componentButtonDangerBorderActive,nd.componentButtonDangerFillActive,nd.componentButtonDangerColorActive);return Ru(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],nd.componentButtonDangerFill,nd.componentButtonDangerColor,nd.elevation1,e.$isPressed&&t,nd.componentButtonDangerBorderHover,nd.componentButtonDangerFillHover,nd.componentButtonDangerColorHover,nd.elevation2,t,e.$isFocusVisible&&Ru(["background-color:",";color:",";box-shadow:none;&&,&&:hover{border-color:",";box-shadow:",";}"],nd.componentButtonDangerFillFocus,nd.componentButtonDangerColorFocus,nd.componentButtonDangerBorderFocus,nd.componentButtonDangerFocusRing),nd.componentButtonDangerBorderDisabled,nd.componentButtonDangerFillDisabled,nd.componentButtonDangerColorDisabled)}return""})),Ld=Uu.div.withConfig({displayName:"Icon",componentId:"sc-1s1egyn-1"})(["display:flex;align-items:center;height:100%;"]),Rd=Uu(Ld).withConfig({displayName:"LeftIcon",componentId:"sc-1s1egyn-2"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.$lastChild?`calc(${nd.spacing2} * -1) `:nd.spacing3),nd.spacing2),Hd=Uu(Ld).withConfig({displayName:"RightIcon",componentId:"sc-1s1egyn-3"})(["margin-right:calc("," * -1);margin-left:",";"],nd.spacing2,nd.spacing3);function $d(e){return Gu.exports.jsx(Wd,{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:Gu.exports.jsx(qd,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"})})}const Ud=qu`
|
|
7
|
+
import*as e from"react";import t,{createContext as n,useContext as r,useState as o,useMemo as i,useEffect as a,createElement as s,useRef as l,useCallback as c,forwardRef as u,useLayoutEffect as d,useReducer as p,cloneElement as f}from"react";import h,{createPortal as m}from"react-dom";var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var y=function(e){return e&&e.Math===Math&&e},b=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof g&&g)||y("object"==typeof g&&g)||function(){return this}()||Function("return this")(),x={},w=function(e){try{return!!e()}catch(e){return!0}},E=!w((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),C=!w((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),k=C,S=Function.prototype.call,_=k?S.bind(S):function(){return S.apply(S,arguments)},I={},T={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,j=O&&!T.call({1:2},1);I.f=j?function(e){var t=O(this,e);return!!t&&t.enumerable}:T;var z,B,P=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=C,N=Function.prototype,D=N.call,M=A&&N.bind.bind(D,D),F=A?M:function(e){return function(){return D.apply(e,arguments)}},L=F,R=L({}.toString),H=L("".slice),$=function(e){return H(R(e),8,-1)},U=w,V=$,W=Object,q=F("".split),G=U((function(){return!W("z").propertyIsEnumerable(0)}))?function(e){return"String"===V(e)?q(e,""):W(e)}:W,Y=function(e){return null==e},X=Y,K=TypeError,Z=function(e){if(X(e))throw new K("Can't call method on "+e);return e},J=G,Q=Z,ee=function(e){return J(Q(e))},te="object"==typeof document&&document.all,ne=void 0===te&&void 0!==te?function(e){return"function"==typeof e||e===te}:function(e){return"function"==typeof e},re=ne,oe=function(e){return"object"==typeof e?null!==e:re(e)},ie=b,ae=ne,se=function(e,t){return arguments.length<2?(n=ie[e],ae(n)?n:void 0):ie[e]&&ie[e][t];var n},le=F({}.isPrototypeOf),ce=b,ue="undefined"!=typeof navigator&&String(navigator.userAgent)||"",de=ce.process,pe=ce.Deno,fe=de&&de.versions||pe&&pe.version,he=fe&&fe.v8;he&&(B=(z=he.split("."))[0]>0&&z[0]<4?1:+(z[0]+z[1])),!B&&ue&&(!(z=ue.match(/Edge\/(\d+)/))||z[1]>=74)&&(z=ue.match(/Chrome\/(\d+)/))&&(B=+z[1]);var me=B,ge=w,ve=b.String,ye=!!Object.getOwnPropertySymbols&&!ge((function(){var e=Symbol("symbol detection");return!ve(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&me&&me<41})),be=ye&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,xe=se,we=ne,Ee=le,Ce=Object,ke=be?function(e){return"symbol"==typeof e}:function(e){var t=xe("Symbol");return we(t)&&Ee(t.prototype,Ce(e))},Se=String,_e=ne,Ie=TypeError,Te=function(e){if(_e(e))return e;throw new Ie(function(e){try{return Se(e)}catch(e){return"Object"}}(e)+" is not a function")},Oe=Te,je=Y,ze=_,Be=ne,Pe=oe,Ae=TypeError,Ne={exports:{}},De=b,Me=Object.defineProperty,Fe=function(e,t){try{Me(De,e,{value:t,configurable:!0,writable:!0})}catch(n){De[e]=t}return t},Le=Fe,Re="__core-js_shared__",He=b[Re]||Le(Re,{}),$e=He;(Ne.exports=function(e,t){return $e[e]||($e[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Ue=Z,Ve=Object,We=function(e){return Ve(Ue(e))},qe=We,Ge=F({}.hasOwnProperty),Ye=Object.hasOwn||function(e,t){return Ge(qe(e),t)},Xe=F,Ke=0,Ze=Math.random(),Je=Xe(1..toString),Qe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Je(++Ke+Ze,36)},et=b,tt=Ne.exports,nt=Ye,rt=Qe,ot=ye,it=be,at=et.Symbol,st=tt("wks"),lt=it?at.for||at:at&&at.withoutSetter||rt,ct=function(e){return nt(st,e)||(st[e]=ot&&nt(at,e)?at[e]:lt("Symbol."+e)),st[e]},ut=_,dt=oe,pt=ke,ft=TypeError,ht=ct("toPrimitive"),mt=function(e,t){if(!dt(e)||pt(e))return e;var n,r=function(e,t){var n=e[t];return je(n)?void 0:Oe(n)}(e,ht);if(r){if(void 0===t&&(t="default"),n=ut(r,e,t),!dt(n)||pt(n))return n;throw new ft("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Be(n=e.toString)&&!Pe(r=ze(n,e)))return r;if(Be(n=e.valueOf)&&!Pe(r=ze(n,e)))return r;if("string"!==t&&Be(n=e.toString)&&!Pe(r=ze(n,e)))return r;throw new Ae("Can't convert object to primitive value")}(e,t)},gt=ke,vt=function(e){var t=mt(e,"string");return gt(t)?t:t+""},yt=oe,bt=b.document,xt=yt(bt)&&yt(bt.createElement),wt=function(e){return xt?bt.createElement(e):{}},Et=wt,Ct=!E&&!w((function(){return 7!==Object.defineProperty(Et("div"),"a",{get:function(){return 7}}).a})),kt=E,St=_,_t=I,It=P,Tt=ee,Ot=vt,jt=Ye,zt=Ct,Bt=Object.getOwnPropertyDescriptor;x.f=kt?Bt:function(e,t){if(e=Tt(e),t=Ot(t),zt)try{return Bt(e,t)}catch(e){}if(jt(e,t))return It(!St(_t.f,e,t),e[t])};var Pt={},At=E&&w((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Nt=oe,Dt=String,Mt=TypeError,Ft=function(e){if(Nt(e))return e;throw new Mt(Dt(e)+" is not an object")},Lt=E,Rt=Ct,Ht=At,$t=Ft,Ut=vt,Vt=TypeError,Wt=Object.defineProperty,qt=Object.getOwnPropertyDescriptor,Gt="enumerable",Yt="configurable",Xt="writable";Pt.f=Lt?Ht?function(e,t,n){if($t(e),t=Ut(t),$t(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Xt in n&&!n[Xt]){var r=qt(e,t);r&&r[Xt]&&(e[t]=n.value,n={configurable:Yt in n?n[Yt]:r[Yt],enumerable:Gt in n?n[Gt]:r[Gt],writable:!1})}return Wt(e,t,n)}:Wt:function(e,t,n){if($t(e),t=Ut(t),$t(n),Rt)try{return Wt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new Vt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Kt=Pt,Zt=P,Jt=E?function(e,t,n){return Kt.f(e,t,Zt(1,n))}:function(e,t,n){return e[t]=n,e},Qt={exports:{}},en=E,tn=Ye,nn=Function.prototype,rn=en&&Object.getOwnPropertyDescriptor,on=tn(nn,"name"),an={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!en||en&&rn(nn,"name").configurable)},sn=ne,ln=He,cn=F(Function.toString);sn(ln.inspectSource)||(ln.inspectSource=function(e){return cn(e)});var un,dn,pn,fn=ln.inspectSource,hn=ne,mn=b.WeakMap,gn=hn(mn)&&/native code/.test(String(mn)),vn=Ne.exports,yn=Qe,bn=vn("keys"),xn=function(e){return bn[e]||(bn[e]=yn(e))},wn={},En=gn,Cn=b,kn=oe,Sn=Jt,_n=Ye,In=He,Tn=xn,On=wn,jn="Object already initialized",zn=Cn.TypeError,Bn=Cn.WeakMap;if(En||In.state){var Pn=In.state||(In.state=new Bn);Pn.get=Pn.get,Pn.has=Pn.has,Pn.set=Pn.set,un=function(e,t){if(Pn.has(e))throw new zn(jn);return t.facade=e,Pn.set(e,t),t},dn=function(e){return Pn.get(e)||{}},pn=function(e){return Pn.has(e)}}else{var An=Tn("state");On[An]=!0,un=function(e,t){if(_n(e,An))throw new zn(jn);return t.facade=e,Sn(e,An,t),t},dn=function(e){return _n(e,An)?e[An]:{}},pn=function(e){return _n(e,An)}}var Nn={set:un,get:dn,has:pn,enforce:function(e){return pn(e)?dn(e):un(e,{})},getterFor:function(e){return function(t){var n;if(!kn(t)||(n=dn(t)).type!==e)throw new zn("Incompatible receiver, "+e+" required");return n}}},Dn=F,Mn=w,Fn=ne,Ln=Ye,Rn=E,Hn=an.CONFIGURABLE,$n=fn,Un=Nn.enforce,Vn=Nn.get,Wn=String,qn=Object.defineProperty,Gn=Dn("".slice),Yn=Dn("".replace),Xn=Dn([].join),Kn=Rn&&!Mn((function(){return 8!==qn((function(){}),"length",{value:8}).length})),Zn=String(String).split("String"),Jn=Qt.exports=function(e,t,n){"Symbol("===Gn(Wn(t),0,7)&&(t="["+Yn(Wn(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ln(e,"name")||Hn&&e.name!==t)&&(Rn?qn(e,"name",{value:t,configurable:!0}):e.name=t),Kn&&n&&Ln(n,"arity")&&e.length!==n.arity&&qn(e,"length",{value:n.arity});try{n&&Ln(n,"constructor")&&n.constructor?Rn&&qn(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Un(e);return Ln(r,"source")||(r.source=Xn(Zn,"string"==typeof t?t:"")),e};Function.prototype.toString=Jn((function(){return Fn(this)&&Vn(this).source||$n(this)}),"toString");var Qn=ne,er=Pt,tr=Qt.exports,nr=Fe,rr={},or=Math.ceil,ir=Math.floor,ar=Math.trunc||function(e){var t=+e;return(t>0?ir:or)(t)},sr=ar,lr=function(e){var t=+e;return t!=t||0===t?0:sr(t)},cr=lr,ur=Math.max,dr=Math.min,pr=lr,fr=Math.min,hr=function(e){return t=e.length,(n=pr(t))>0?fr(n,9007199254740991):0;var t,n},mr=ee,gr=hr,vr=function(e){return function(t,n,r){var o,i=mr(t),a=gr(i),s=function(e,t){var n=cr(e);return n<0?ur(n+t,0):dr(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},yr={includes:vr(!0),indexOf:vr(!1)},br=Ye,xr=ee,wr=yr.indexOf,Er=wn,Cr=F([].push),kr=function(e,t){var n,r=xr(e),o=0,i=[];for(n in r)!br(Er,n)&&br(r,n)&&Cr(i,n);for(;t.length>o;)br(r,n=t[o++])&&(~wr(i,n)||Cr(i,n));return i},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_r=kr,Ir=Sr.concat("length","prototype");rr.f=Object.getOwnPropertyNames||function(e){return _r(e,Ir)};var Tr={};Tr.f=Object.getOwnPropertySymbols;var Or=se,jr=rr,zr=Tr,Br=Ft,Pr=F([].concat),Ar=Or("Reflect","ownKeys")||function(e){var t=jr.f(Br(e)),n=zr.f;return n?Pr(t,n(e)):t},Nr=Ye,Dr=Ar,Mr=x,Fr=Pt,Lr=w,Rr=ne,Hr=/#|\.prototype\./,$r=function(e,t){var n=Vr[Ur(e)];return n===qr||n!==Wr&&(Rr(t)?Lr(t):!!t)},Ur=$r.normalize=function(e){return String(e).replace(Hr,".").toLowerCase()},Vr=$r.data={},Wr=$r.NATIVE="N",qr=$r.POLYFILL="P",Gr=$r,Yr=b,Xr=x.f,Kr=Jt,Zr=function(e,t,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:t;if(Qn(n)&&tr(n,i,r),r.global)o?e[t]=n:nr(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:er.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},Jr=Fe,Qr=function(e,t,n){for(var r=Dr(t),o=Fr.f,i=Mr.f,a=0;a<r.length;a++){var s=r[a];Nr(e,s)||n&&Nr(n,s)||o(e,s,i(t,s))}},eo=Gr,to=$,no=F,ro=function(e){if("Function"===to(e))return no(e)},oo=Te,io=C,ao=ro(ro.bind),so=$,lo=Array.isArray||function(e){return"Array"===so(e)},co={};co[ct("toStringTag")]="z";var uo="[object z]"===String(co),po=ne,fo=$,ho=ct("toStringTag"),mo=Object,go="Arguments"===fo(function(){return arguments}()),vo=uo?fo:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=mo(e),ho))?n:go?fo(t):"Object"===(r=fo(t))&&po(t.callee)?"Arguments":r},yo=F,bo=w,xo=ne,wo=vo,Eo=fn,Co=function(){},ko=se("Reflect","construct"),So=/^\s*(?:class|function)\b/,_o=yo(So.exec),Io=!So.test(Co),To=function(e){if(!xo(e))return!1;try{return ko(Co,[],e),!0}catch(e){return!1}},Oo=function(e){if(!xo(e))return!1;switch(wo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Io||!!_o(So,Eo(e))}catch(e){return!0}};Oo.sham=!0;var jo=!ko||bo((function(){var e;return To(To.call)||!To(Object)||!To((function(){e=!0}))||e}))?Oo:To,zo=lo,Bo=jo,Po=oe,Ao=ct("species"),No=Array,Do=G,Mo=We,Fo=hr,Lo=function(e,t){return new(function(e){var t;return zo(e)&&(t=e.constructor,(Bo(t)&&(t===No||zo(t.prototype))||Po(t)&&null===(t=t[Ao]))&&(t=void 0)),void 0===t?No:t}(e))(0===t?0:t)},Ro=F([].push),Ho=function(e){var t=1===e,n=2===e,r=3===e,o=4===e,i=6===e,a=7===e,s=5===e||i;return function(l,c,u,d){for(var p,f,h=Mo(l),m=Do(h),g=Fo(m),v=function(e,t){return oo(e),void 0===t?e:io?ao(e,t):function(){return e.apply(t,arguments)}}(c,u),y=0,b=d||Lo,x=t?b(l,g):n||a?b(l,0):void 0;g>y;y++)if((s||y in m)&&(f=v(p=m[y],y,h),e))if(t)x[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Ro(x,p)}else switch(e){case 4:return!1;case 7:Ro(x,p)}return i?-1:r||o?o:x}},$o={forEach:Ho(0),map:Ho(1),filter:Ho(2),some:Ho(3),every:Ho(4),find:Ho(5),findIndex:Ho(6),filterReject:Ho(7)},Uo={},Vo=kr,Wo=Sr,qo=Object.keys||function(e){return Vo(e,Wo)},Go=E,Yo=At,Xo=Pt,Ko=Ft,Zo=ee,Jo=qo;Uo.f=Go&&!Yo?Object.defineProperties:function(e,t){Ko(e);for(var n,r=Zo(t),o=Jo(t),i=o.length,a=0;i>a;)Xo.f(e,n=o[a++],r[n]);return e};var Qo,ei=se("document","documentElement"),ti=Ft,ni=Uo,ri=Sr,oi=wn,ii=ei,ai=wt,si="prototype",li="script",ci=xn("IE_PROTO"),ui=function(){},di=function(e){return"<"+li+">"+e+"</"+li+">"},pi=function(e){e.write(di("")),e.close();var t=e.parentWindow.Object;return e=null,t},fi=function(){try{Qo=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;fi="undefined"!=typeof document?document.domain&&Qo?pi(Qo):(t=ai("iframe"),n="java"+li+":",t.style.display="none",ii.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(di("document.F=Object")),e.close(),e.F):pi(Qo);for(var r=ri.length;r--;)delete fi[si][ri[r]];return fi()};oi[ci]=!0;var hi=Object.create||function(e,t){var n;return null!==e?(ui[si]=ti(e),n=new ui,ui[si]=null,n[ci]=e):n=fi(),void 0===t?n:ni.f(n,t)},mi=ct,gi=hi,vi=Pt.f,yi=mi("unscopables"),bi=Array.prototype;void 0===bi[yi]&&vi(bi,yi,{configurable:!0,value:gi(null)});var xi,wi=$o.find,Ei="find",Ci=!0;Ei in[]&&Array(1)[Ei]((function(){Ci=!1})),function(e,t){var n,r,o,i,a,s=e.target,l=e.global,c=e.stat;if(n=l?Yr:c?Yr[s]||Jr(s,{}):Yr[s]&&Yr[s].prototype)for(r in t){if(i=t[r],o=e.dontCallGetSet?(a=Xr(n,r))&&a.value:n[r],!eo(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qr(i,o)}(e.sham||o&&o.sham)&&Kr(i,"sham",!0),Zr(n,r,i,e)}}({target:"Array",proto:!0,forced:Ci},{find:function(e){return wi(this,e,arguments.length>1?arguments[1]:void 0)}}),xi=Ei,bi[yi][xi]=!0,F(b.Array.prototype.find),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,n=o(t);n;)n=o(t=n.ownerDocument);return t}(),t=[],n=null,r=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){r=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var r=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=n.setInterval(r,this.POLL_INTERVAL):(s(n,"resize",r,!0),s(t,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(r)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),l(e,"resize",r,!0)),l(t,"scroll",r,!0),a&&a.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=o(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var r=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}));if(!i){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=r){var s=o(t);s&&this._unmonitorIntersections(s.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||r){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var o=r.element,a=c(o),s=this._rootContainsTarget(o),l=r.entry,u=e&&s&&this._computeTargetAndRootIntersection(o,a,t),d=null;this._rootContainsTarget(o)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var p=r.entry=new i({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:d,intersectionRect:u});l?e&&s?this._hasCrossedThreshold(l,p)&&this._queuedEntries.push(p):l&&l.isIntersecting&&this._queuedEntries.push(p):this._queuedEntries.push(p)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,o,i){if("none"!=window.getComputedStyle(t).display){for(var a,s,l,u,p,h,m,g,v=o,y=f(t),b=!1;!b&&y;){var x=null,w=1==y.nodeType?window.getComputedStyle(y):{};if("none"==w.display)return null;if(y==this.root||9==y.nodeType)if(b=!0,y==this.root||y==e)n&&!this.root?!r||0==r.width&&0==r.height?(y=null,x=null,v=null):x=r:x=i;else{var E=f(y),C=E&&c(E),k=E&&this._computeTargetAndRootIntersection(E,C,i);C&&k?(y=E,x=d(C,k)):(y=null,v=null)}else{var S=y.ownerDocument;y!=S.body&&y!=S.documentElement&&"visible"!=w.overflow&&(x=c(y))}if(x&&(a=x,s=v,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(a.top,s.top),u=Math.min(a.bottom,s.bottom),p=Math.max(a.left,s.left),g=u-l,v=(m=(h=Math.min(a.right,s.right))-p)>=0&&g>=0&&{top:l,bottom:u,left:p,right:h,width:m,height:g}||null),!v)break;y=y&&f(y)}return v}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=c(this.root);else{var n=h(this.root)?this.root:e,r=n.documentElement,o=n.body;t={top:0,left:0,right:r.clientWidth||o.clientWidth,width:r.clientWidth||o.clientWidth,bottom:r.clientHeight||o.clientHeight,height:r.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,r=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}function o(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=u(e.rootBounds),this.boundingClientRect=u(e.boundingClientRect),this.intersectionRect=u(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=function(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detachEvent&&e.detachEvent("on"+t,n)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function u(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var n=t.top-e.top,r=t.left-e.left;return{top:n,left:r,height:t.height,width:t.width,bottom:n+t.height,right:r+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?o(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function h(e){return e&&9===e.nodeType}}();const ki=Object.prototype.toString;function Si(e){switch(ki.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Pi(e,Error)}}function _i(e,t){return ki.call(e)===`[object ${t}]`}function Ii(e){return _i(e,"ErrorEvent")}function Ti(e){return _i(e,"DOMError")}function Oi(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function ji(e){return _i(e,"Object")}function zi(e){return"undefined"!=typeof Event&&Pi(e,Event)}function Bi(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Pi(e,t){try{return e instanceof t}catch(e){return!1}}function Ai(e,t=0){return"string"!=typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function Ni(e){return e&&e.Math==Math?e:void 0}const Di="object"==typeof globalThis&&Ni(globalThis)||"object"==typeof window&&Ni(window)||"object"==typeof self&&Ni(self)||"object"==typeof global&&Ni(global)||function(){return this}()||{};function Mi(e,t,n){const r=n||Di,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}const Fi=Di,Li=80;function Ri(e,t){const n=e,r=[];let o,i,a,s,l;if(!n||!n.tagName)return"";if(Fi.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(c&&c.length)c.forEach((e=>{r.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&_i(o,"String"))for(i=o.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)a=u[l],s=n.getAttribute(a),s&&r.push(`[${a}="${s}"]`);return r.join("")}const Hi="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,$i=["debug","info","warn","error","log","assert","trace"],Ui={};function Vi(e){if(!("console"in Di))return e();const t=Di.console,n={},r=Object.keys(Ui);r.forEach((e=>{const r=Ui[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const Wi=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Hi?$i.forEach((n=>{t[n]=(...t)=>{e&&Vi((()=>{Di.console[n](`Sentry Logger [${n}]:`,...t)}))}})):$i.forEach((e=>{t[e]=()=>{}})),t}(),qi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gi(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:l}=e;return`${s}://${l}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Yi(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}class Xi extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Ki(e){if(Si(e))return{message:e.message,name:e.name,stack:e.stack,...Ji(e)};if(zi(e)){const t={type:e.type,target:Zi(e.target),currentTarget:Zi(e.currentTarget),...Ji(e)};return"undefined"!=typeof CustomEvent&&Pi(e,CustomEvent)&&(t.detail=e.detail),t}return e}function Zi(e){try{return"undefined"!=typeof Element&&Pi(e,Element)?function(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,o=[];let i=0,a=0;const s=" > ",l=s.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Li;for(;n&&i++<r&&(c=Ri(n,u),!("html"===c||i>1&&a+o.length*l+c.length>=d));)o.push(c),a+=c.length,n=n.parentNode;return o.reverse().join(s)}catch(e){return"<unknown>"}}(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function Ji(e){if("object"==typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function Qi(e){return ea(e,new Map)}function ea(e,t){if(function(e){if(!ji(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const n of Object.keys(e))void 0!==e[n]&&(r[n]=ea(e[n],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(ea(e,t))})),r}return e}const ta=/\(error: (.*)\)/,na=/captureMessage|captureException/,ra="<anonymous>";function oa(){const e=Di,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function ia(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function aa(e,t){const n=function(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function sa(e){if(e&&e.__sentry_captured__)return!0;try{!function(e,t,n){try{Object.defineProperty(e,t,{value:!0,writable:!0,configurable:!0})}catch(n){Hi&&Wi.log(`Failed to add non-enumerable property "${t}" to object`,e)}}(e,"__sentry_captured__")}catch(e){}return!1}function la(e,t=100,n=1/0){try{return ua("",e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function ca(e,t=3,n=102400){const r=la(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?ca(e,t-1,n):r;var o}function ua(e,t,n=1/0,r=1/0,o=function(){const e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e<t.length;e++)if(t[e]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(let e=0;e<t.length;e++)if(t[e]===n){t.splice(e,1);break}}]}()){const[i,a]=o;if(null==t||["number","boolean","string"].includes(typeof t)&&("number"!=typeof(s=t)||s==s))return t;var s;const l=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(function(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}(t))return"[VueViewModel]";if(function(e){return ji(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}(t))return"[SyntheticEvent]";if("number"==typeof t&&t!=t)return"[NaN]";if("function"==typeof t)return`[Function: ${function(e){try{return e&&"function"==typeof e&&e.name||ra}catch(e){return ra}}(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;const n=function(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}(e,t);if(!l.startsWith("[object "))return l;if(t.__sentry_skip_normalization__)return t;const c="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:n;if(0===c)return l.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&"function"==typeof u.toJSON)try{return ua("",u.toJSON(),c-1,r,o)}catch(e){}const d=Array.isArray(t)?[]:{};let p=0;const f=Ki(t);for(const e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(p>=r){d[e]="[MaxProperties ~]";break}const t=f[e];d[e]=ua(e,t,c-1,r,o),p++}return a(t),d}var da;function pa(e){return new ha((t=>{t(e)}))}function fa(e){return new ha(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(da||(da={}));class ha{constructor(e){ha.prototype.__init.call(this),ha.prototype.__init2.call(this),ha.prototype.__init3.call(this),ha.prototype.__init4.call(this),this._state=da.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}then(e,t){return new ha(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(e){r(e)}else n(t)},e=>{if(t)try{n(t(e))}catch(e){r(e)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new ha(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(da.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(da.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===da.PENDING&&(Bi(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===da.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===da.RESOLVED&&e[1](this._value),this._state===da.REJECTED&&e[2](this._value),e[0]=!0)}))}}}const ma=1e3;function ga(){return Date.now()/ma}const va=function(){const{performance:e}=Di;if(!e||!e.now)return ga;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/ma}();function ya(e,t=[]){return[e,t]}function ba(e,t){const[n,r]=e;return[n,[...r,t]]}function xa(e,t){const n=e[1];for(const e of n)if(t(e,e[0].type))return!0;return!1}function wa(e,t){return(t||new TextEncoder).encode(e)}function Ea(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"==typeof o?o="string"==typeof e?o+e:[wa(o,t),e]:o.push("string"==typeof e?wa(e,t):e)}for(const e of r){const[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),"string"==typeof n||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch(t){e=JSON.stringify(la(n))}i(e)}}return"string"==typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(o)}function Ca(e,t){const n="string"==typeof e.data?wa(e.data,t):e.data;return[Qi({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}(()=>{const{performance:e}=Di;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&o<=s&&e.timeOrigin})();const ka={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Sa(e){return ka[e]}function _a(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}const Ia=6e4;const Ta="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Oa="production";function ja(){return Mi("globalEventProcessors",(()=>[]))}function za(e){ja().push(e)}function Ba(e,t,n,r=0){return new ha(((o,i)=>{const a=e[r];if(null===t||"function"!=typeof a)o(t);else{const s=a({...t},n);Ta&&a.id&&null===s&&Wi.log(`Event processor "${a.id}" dropped event`),Bi(s)?s.then((t=>Ba(e,t,n,r+1).then(o))).then(null,i):Ba(e,s,n,r+1).then(o).then(null,i)}}))}function Pa(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||va(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:oa()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}const Aa=1;function Na(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:a,tags:s,origin:l}=Da(e);return Qi({data:r,op:o,parent_span_id:i,span_id:t,status:a,tags:s,trace_id:n,origin:l})}function Da(e){return function(e){return"function"==typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"==typeof e.toJSON?e.toJSON():{}}const Ma=new WeakMap;const Fa=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function La(){return ts().getClient()}function Ra(e){return e.transaction}function Ha(e,t,n){const r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},a=Qi({environment:r.environment||Oa,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",a),a}function $a(e){const t=La();if(!t)return{};const n=Ha(Da(e).trace_id||"",t,ts().getScope()),r=Ra(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:i,source:a}=r.metadata;null!=i&&(n.sample_rate=`${i}`);const s=Da(r);return a&&"url"!==a&&(n.transaction=s.description),n.sampled=String(function(e){const{traceFlags:t}=e.spanContext();return Boolean(t&Aa)}(r)),t.emit&&t.emit("createDsc",n),n}function Ua(e,t){const{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i,propagationContext:a}=t;!function(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,transactionName:s}=t,l=Qi(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=Qi(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=Qi(o);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Qi(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),a&&(e.level=a),s&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts={trace:Na(t),...e.contexts};const n=Ra(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:$a(t),...e.sdkProcessingMetadata};const r=Da(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,r),function(e,t){var n;e.fingerprint=e.fingerprint?(n=e.fingerprint,Array.isArray(n)?n:[n]):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,o),function(e,t,n){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t,propagationContext:n}}(e,i,a)}function Va(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:p,transactionName:f,span:h}=t;Wa(e,"extra",n),Wa(e,"tags",r),Wa(e,"user",o),Wa(e,"contexts",i),Wa(e,"sdkProcessingMetadata",s),a&&(e.level=a),f&&(e.transactionName=f),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Wa(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}let qa;class Ga{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ya()}static clone(e){return e?e.clone():new Ga}clone(){const e=new Ga;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Pa(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"==typeof e){const t=e(this);return t instanceof Ga?t:this}return e instanceof Ga?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession),e._propagationContext&&(this._propagationContext=e._propagationContext)):ji(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession),e.propagationContext&&(this._propagationContext=e.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ya(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:100;if(n<=0)return this;const r={timestamp:ga(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:a,_fingerprint:s,_eventProcessors:l,_propagationContext:c,_sdkProcessingMetadata:u,_transactionName:d,_span:p}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:a,fingerprint:s||[],eventProcessors:l,propagationContext:c,sdkProcessingMetadata:u,transactionName:d,span:p}}applyToEvent(e,t={},n=[]){return Ua(e,this.getScopeData()),Ba([...n,...ja(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:oa();if(!this._client)return Wi.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:oa();if(!this._client)return Wi.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:oa();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Wi.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function Ya(){return{traceId:oa(),spanId:oa().substring(16)}}const Xa="7.98.0",Ka=parseFloat(Xa),Za=100;class Ja{constructor(e,t,n,r=Ka){let o,i;this._version=r,t?o=t:(o=new Ga,o.setClient(e)),n?i=n:(i=new Ga,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version<e}bindClient(e){const t=this.getStackTop();t.client=e,t.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(e){const t=this.pushScope();let n;try{n=e(t)}catch(e){throw this.popScope(),e}return Bi(n)?n.then((e=>(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:oa(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:oa(),o=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:oa();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Za}=r.getOptions&&r.getOptions()||{};if(i<=0)return;const a={timestamp:ga(),...e},s=o?Vi((()=>o(a,t))):a;null!==s&&(r.emit&&r.emit("beforeAddBreadcrumb",s,t),n.addBreadcrumb(s,i))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=es(this);try{e(this)}finally{es(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Ta&&Wi.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return Ta&&!n&&(this.getClient()?Wi.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Wi.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};"ok"===e.status&&(n={status:"exited"}),Pa(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=Oa}=n&&n.getOptions()||{},{userAgent:i}=Di.navigator||{},a=function(e){const t=va(),n={sid:oa(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return Qi({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&Pa(n,e),n}({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession&&t.getSession();return s&&"ok"===s.status&&Pa(s,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=Qa().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[e])return n.extensions[e].apply(this,t);Ta&&Wi.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function Qa(){return Di.__SENTRY__=Di.__SENTRY__||{extensions:{},hub:void 0},Di}function es(e){const t=Qa(),n=ns(t);return rs(t,e),n}function ts(){const e=Qa();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return function(e=Qa()){var t;return(t=e)&&t.__SENTRY__&&t.__SENTRY__.hub&&!ns(e).isOlderThan(Ka)||rs(e,new Ja),ns(e)}(e)}function ns(e){return Mi("hub",(()=>new Ja),e)}function rs(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}const os=[];function is(e,t,n){if(n[t.name])Ta&&Wi.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===os.indexOf(t.name)&&(t.setupOnce(za,ts),os.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),e.on&&"function"==typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"==typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}Ta&&Wi.log(`Integration installed: ${t.name}`)}}const as="Not capturing exception because it's already been captured.";class ss{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=function(e){const t="string"==typeof e?function(e){const t=qi.exec(e);if(!t)return void Vi((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,a="",s]=t.slice(1);let l="",c=s;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const e=c.match(/^\d+/);e&&(c=e[0])}return Yi({host:i,pass:o,path:l,projectId:c,port:a,protocol:n,publicKey:r})}(e):Yi(e);if(t&&function(e){if(!Hi)return!0;const{port:t,projectId:n,protocol:r}=e;return!(["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(Wi.error(`Invalid Sentry Dsn: ${t} missing`),!0)))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(Wi.error(`Invalid Sentry Dsn: Invalid port ${t}`),1):(Wi.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(Wi.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),1)))}(t))return t}(e.dsn):Ta&&Wi.warn("No DSN provided, client will not send events."),this._dsn){const t=function(e,t={}){const n="string"==typeof t?t:t.tunnel,r="string"!=typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${function(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return n={sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}},Object.keys(n).map((e=>`${encodeURIComponent(e)}=${encodeURIComponent(n[e])}`)).join("&");var n}(e,r)}`}(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if(sa(e))return void(Ta&&Wi.log(as));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=Oi(e)?e:String(e),a=null===(s=e)||Oi(s)||"object"!=typeof s&&"function"!=typeof s?this.eventFromMessage(i,t,n):this.eventFromException(e,n);var s;return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&sa(t.originalException))return void(Ta&&Wi.log(as));let r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((e=>{r=e}))),r}captureSession(e){"string"!=typeof e.release?Ta&&Wi.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Pa(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):pa(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return Ta&&Wi.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){is(this,e,this._integrations)}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=function(e,t,n,r){const o=_a(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Gi(r)},...o&&{trace:Qi({...o})}}}(e,o,r,t);return delete e.sdkProcessingMetadata,ya(a,[[{type:i},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(const e of t.attachments||[])n=ba(n,Ca(e,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=_a(n);return ya({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:Gi(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;Ta&&Wi.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){Ta&&Wi.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=function(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=Gi(t));const i=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return ya(o,[i])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&is(e,t,n)})),n}(this,this._options.integrations),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&(Pa(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new ha((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=function(){return ts().getIsolationScope()}()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),function(e,t,n,r,o,i){const{normalizeDepth:a=3,normalizeMaxBreadth:s=1e3}=e,l={...t,event_id:t.event_id||n.event_id||oa(),timestamp:t.timestamp||ga()},c=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Oa),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=Ai(e.message,i));const a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=Ai(a.value,i));const s=e.request;s&&s.url&&(s.url=Ai(s.url,i))}(l,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(l,c),void 0===t.type&&function(e,t){const n=Di._sentryDebugIds;if(!n)return;let r;const o=Ma.get(t);o?r=o:(r=new Map,Ma.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(e){}}(l,e.stackParser);const u=function(e,t){if(!t)return e;const n=e?e.clone():new Ga;return n.update(t),n}(r,n.captureContext);n.mechanism&&aa(l,n.mechanism);const d=o&&o.getEventProcessors?o.getEventProcessors():[],p=(qa||(qa=new Ga),qa).getScopeData();i&&Va(p,i.getScopeData()),u&&Va(p,u.getScopeData());const f=[...n.attachments||[],...p.attachments];return f.length&&(n.attachments=f),Ua(l,p),Ba([...d,...ja(),...p.eventProcessors],l,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"==typeof a&&a>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:la(e.data,t,n)}})))},...e.user&&{user:la(e.user,t,n)},...e.contexts&&{contexts:la(e.contexts,t,n)},...e.extra&&{extra:la(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=la(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((e=>{const r=Da(e).data;return r&&(e.data=la(r,t,n)),e}))),r}(e,a,s):e)))}(o,e,t,n,this,r).then((e=>{if(null===e)return e;const{propagationContext:t}=e.sdkProcessingMetadata||{};if((!e.contexts||!e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const s=a||Ha(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(Ta){const t=e;"log"===t.logLevel?Wi.log(t.message):Wi.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=cs(e),a=ls(e),s=e.type||"error",l=`before send for type \`${s}\``;if(a&&"number"==typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),fa(new Xi(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const c="replay_event"===s?"replay":s;return this._prepareEvent(e,t,n).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",c,e),new Xi("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;return ls(t)&&r?r(t,n):cs(t)&&o?o(t,n):t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Bi(e))return e.then((e=>{if(!ji(e)&&null!==e)throw new Xi(n);return e}),(e=>{throw new Xi(`${t} rejected with ${e}`)}));if(!ji(e)&&null!==e)throw new Xi(n);return e}(o,l)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",c,e),new Xi(`${l} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Xi)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Xi(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{Ta&&Wi.error("Error while sending event:",e)}));Ta&&Wi.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}function ls(e){return void 0===e.type}function cs(e){return"transaction"===e.type}function us(e,t,n=function(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return fa(new Xi("Not adding Promise because buffer limit was reached."));const o=r();return-1===t.indexOf(o)&&t.push(o),o.then((()=>n(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new ha(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{pa(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(e.bufferSize||30)){let r={};function o(o){const i=[];if(xa(o,((t,n)=>{const o=Sa(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=ds(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return pa();const a=ya(o[0],i),s=t=>{xa(a,((n,r)=>{const o=ds(n,r);e.recordDroppedEvent(t,Sa(r),o)}))};return n.add((()=>t({body:Ea(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&Ta&&Wi.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=function(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const e of i.trim().split(",")){const[t,n]=e.split(":",2),i=parseInt(t,10),a=1e3*(isNaN(i)?60:i);if(n)for(const e of n.split(";"))o[e]=r+a;else o.all=r+a}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?Ia:r-t}(a,r):429===t&&(o.all=r+6e4);return o}(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Xi)return Ta&&Wi.error("Skipped sending event because buffer is full."),s("queue_overflow"),pa();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function ds(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}const ps=Di,fs="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function hs(e,t){const n=gs(e,t),r={type:t&&t.name,value:ys(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function ms(e,t){return{exception:{values:[hs(e,t)]}}}function gs(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(vs.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(e){}return[]}const vs=/Minified React error #\d+;/i;function ys(e){const t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function bs(e,t,n,r){const o={};if(r&&n){const r=gs(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if(Oi(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function xs(e,{isUnhandledRejection:t}){const n=function(e,t=40){const n=Object.keys(Ki(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Ai(n[0],t);for(let e=n.length;e>0;e--){const r=n.slice(0,e).join(", ");if(!(r.length>t))return e===n.length?r:Ai(r,t)}return""}(e),r=t?"promise rejection":"exception";if(Ii(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if(zi(e)){const t=function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}let ws;const Es="?";function Cs(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const ks=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ss=/\((\S*)(?::(\d+))(?::(\d+))\)/,_s=[30,e=>{const t=ks.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=Ss.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=Ps(t[1]||Es,t[2]);return Cs(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],Is=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ts=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Os=[50,e=>{const t=Is.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=Ts.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Es;return[n,e]=Ps(n,e),Cs(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],js=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,zs=[40,e=>{const t=js.exec(e);return t?Cs(t[2],t[1]||Es,+t[3],t[4]?+t[4]:void 0):void 0}],Bs=function(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const r=[],o=e.split("\n");for(let e=n;e<o.length;e++){const n=o[e];if(n.length>1024)continue;const i=ta.test(n)?n.replace(ta,"$1"):n;if(!i.match(/\S*Error: /)){for(const e of t){const t=e(i);if(t){r.push(t);break}}if(r.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),na.test(t[t.length-1].function||"")&&(t.pop(),na.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(r)}}(_s,Os,zs),Ps=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Es,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var As=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Ns=As.Provider,Ds=function(){return r(As)},Ms=function(){return Ds().assetFilter},Fs=function(){return Ds().selectionMode},Ls=function(){return Ds().hideSwitch},Rs=n(null),Hs={field:"CREATED_AT",direction:"DESC"};function $s(e){var n=o(Hs),r=n[0],a=n[1],s=o(Hs),l=s[0],c=s[1],u=o(Hs),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?c(t):p(t)}function h(){a(Hs),c(Hs),p(Hs)}var m=i((function(){return{assets:r,collections:l,collection:d,setOrdering:f,reset:h}}),[r,d,l]);return t.createElement(Rs.Provider,{value:m},e.children)}function Us(e){var t=function(){var e=r(Rs);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(n){return t.setOrdering(e,n)}]}var Vs=function(e,t){return Vs=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])},Vs(e,t)},Ws=function(){return Ws=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ws.apply(this,arguments)};function qs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Gs(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function Ys(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function Xs(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Ks(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Zs=n(null);function Js(e){var n=o({page:"assets"});return t.createElement(Zs.Provider,{value:n},e.children)}function Qs(){var e=r(Zs);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var el=n(null),tl={assets:"",collection:"",collections:"",isLoading:!1};function nl(e){var n=o(tl),r=n[0],s=n[1],l=Qs()[0];function c(e,t){var n=""!==t;s((function(r){var o;return Ws(Ws({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return Ws(Ws({},t),{isLoading:e})}))}function d(){s(tl)}a((function(){var t;c("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return Ws(Ws({},e),{collection:""})}))}),[l]);var p=i((function(){return Ws(Ws({},r),{setSearch:c,setIsLoading:u,clear:d})}),[r]);return t.createElement(el.Provider,{value:p},e.children)}function rl(){var e=r(el);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function ol(e){var t=rl();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}var il={error:console.error},al=n(null),sl=al.Provider,ll=function(){var e=r(al);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},cl=function(){return cl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl.apply(this,arguments)};function ul(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var dl=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0},pl="-ms-",fl="-moz-",hl="-webkit-",ml="comm",gl="rule",vl="decl",yl="@import",bl="@keyframes",xl="@layer",wl=Math.abs,El=String.fromCharCode,Cl=Object.assign;function kl(e){return e.trim()}function Sl(e,t){return(e=t.exec(e))?e[0]:e}function _l(e,t,n){return e.replace(t,n)}function Il(e,t,n){return e.indexOf(t,n)}function Tl(e,t){return 0|e.charCodeAt(t)}function Ol(e,t,n){return e.slice(t,n)}function jl(e){return e.length}function zl(e){return e.length}function Bl(e,t){return t.push(e),e}function Pl(e,t){return e.filter((function(e){return!Sl(e,t)}))}var Al=1,Nl=1,Dl=0,Ml=0,Fl=0,Ll="";function Rl(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Al,column:Nl,length:a,return:"",siblings:s}}function Hl(e,t){return Cl(Rl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $l(e){for(;e.root;)e=Hl(e.root,{children:[e]});Bl(e,e.siblings)}function Ul(){return Fl=Ml>0?Tl(Ll,--Ml):0,Nl--,10===Fl&&(Nl=1,Al--),Fl}function Vl(){return Fl=Ml<Dl?Tl(Ll,Ml++):0,Nl++,10===Fl&&(Nl=1,Al++),Fl}function Wl(){return Tl(Ll,Ml)}function ql(){return Ml}function Gl(e,t){return Ol(Ll,e,t)}function Yl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Xl(e){return kl(Gl(Ml-1,Jl(91===e?e+2:40===e?e+1:e)))}function Kl(e){for(;(Fl=Wl())&&Fl<33;)Vl();return Yl(e)>2||Yl(Fl)>3?"":" "}function Zl(e,t){for(;--t&&Vl()&&!(Fl<48||Fl>102||Fl>57&&Fl<65||Fl>70&&Fl<97););return Gl(e,ql()+(t<6&&32==Wl()&&32==Vl()))}function Jl(e){for(;Vl();)switch(Fl){case e:return Ml;case 34:case 39:34!==e&&39!==e&&Jl(Fl);break;case 40:41===e&&Jl(e);break;case 92:Vl()}return Ml}function Ql(e,t){for(;Vl()&&e+Fl!==57&&(e+Fl!==84||47!==Wl()););return"/*"+Gl(t,Ml-1)+"*"+El(47===e?e:Vl())}function ec(e){for(;!Yl(Wl());)Vl();return Gl(e,Ml)}function tc(e){return function(e){return Ll="",e}(nc("",null,null,null,[""],e=function(e){return Al=Nl=1,Dl=jl(Ll=e),Ml=0,[]}(e),0,[0],e))}function nc(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,v=1,y=0,b="",x=o,w=i,E=r,C=b;g;)switch(h=y,y=Vl()){case 40:if(108!=h&&58==Tl(C,d-1)){-1!=Il(C+=_l(Xl(y),"&","&\f"),"&\f",wl(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:C+=Xl(y);break;case 9:case 10:case 13:case 32:C+=Kl(h);break;case 92:C+=Zl(ql()-1,7);continue;case 47:switch(Wl()){case 42:case 47:Bl(oc(Ql(Vl(),ql()),t,n,l),l);break;default:C+="/"}break;case 123*m:s[c++]=jl(C)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(C=_l(C,/\f/g,"")),f>0&&jl(C)-d&&Bl(f>32?ic(C+";",r,n,d-1,l):ic(_l(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(Bl(E=rc(C,t,n,c,u,o,s,b,x=[],w=[],d,i),i),123===y)if(0===u)nc(C,t,E,E,x,i,d,s,w);else switch(99===p&&110===Tl(C,3)?100:p){case 100:case 108:case 109:case 115:nc(e,E,E,r&&Bl(rc(e,E,E,0,0,o,s,b,o,x=[],d,w),w),o,w,d,s,r?x:w);break;default:nc(C,E,E,E,[""],w,0,s,w)}}c=u=f=0,m=v=1,b=C="",d=a;break;case 58:d=1+jl(C),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Ul())continue;switch(C+=El(y),y*m){case 38:v=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(jl(C)-1)*v,v=1;break;case 64:45===Wl()&&(C+=Xl(Vl())),p=Wl(),u=d=jl(b=C+=ec(ql())),y++;break;case 45:45===h&&2==jl(C)&&(m=0)}}return i}function rc(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=zl(f),m=0,g=0,v=0;m<r;++m)for(var y=0,b=Ol(e,p+1,p=wl(g=a[m])),x=e;y<h;++y)(x=kl(g>0?f[y]+" "+b:_l(b,/&\f/g,f[y])))&&(l[v++]=x);return Rl(e,t,n,0===o?gl:s,l,c,u,d)}function oc(e,t,n,r){return Rl(e,t,n,ml,El(Fl),Ol(e,2,-2),0,r)}function ic(e,t,n,r,o){return Rl(e,t,n,vl,Ol(e,0,r),Ol(e,r+1,-1),r,o)}function ac(e,t,n){switch(function(e,t){return 45^Tl(e,0)?(((t<<2^Tl(e,0))<<2^Tl(e,1))<<2^Tl(e,2))<<2^Tl(e,3):0}(e,t)){case 5103:return hl+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return hl+e+e;case 4789:return fl+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return hl+e+fl+e+pl+e+e;case 5936:switch(Tl(e,t+11)){case 114:return hl+e+pl+_l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return hl+e+pl+_l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return hl+e+pl+_l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return hl+e+pl+e+e;case 6165:return hl+e+pl+"flex-"+e+e;case 5187:return hl+e+_l(e,/(\w+).+(:[^]+)/,hl+"box-$1$2"+pl+"flex-$1$2")+e;case 5443:return hl+e+pl+"flex-item-"+_l(e,/flex-|-self/g,"")+(Sl(e,/flex-|baseline/)?"":pl+"grid-row-"+_l(e,/flex-|-self/g,""))+e;case 4675:return hl+e+pl+"flex-line-pack"+_l(e,/align-content|flex-|-self/g,"")+e;case 5548:return hl+e+pl+_l(e,"shrink","negative")+e;case 5292:return hl+e+pl+_l(e,"basis","preferred-size")+e;case 6060:return hl+"box-"+_l(e,"-grow","")+hl+e+pl+_l(e,"grow","positive")+e;case 4554:return hl+_l(e,/([^-])(transform)/g,"$1"+hl+"$2")+e;case 6187:return _l(_l(_l(e,/(zoom-|grab)/,hl+"$1"),/(image-set)/,hl+"$1"),e,"")+e;case 5495:case 3959:return _l(e,/(image-set\([^]*)/,hl+"$1$`$1");case 4968:return _l(_l(e,/(.+:)(flex-)?(.*)/,hl+"box-pack:$3"+pl+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+hl+e+e;case 4200:if(!Sl(e,/flex-|baseline/))return pl+"grid-column-align"+Ol(e,t)+e;break;case 2592:case 3360:return pl+_l(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,Sl(e.props,/grid-\w+-end/)}))?~Il(e+(n=n[t].value),"span",0)?e:pl+_l(e,"-start","")+e+pl+"grid-row-span:"+(~Il(n,"span",0)?Sl(n,/\d+/):+Sl(n,/\d+/)-+Sl(e,/\d+/))+";":pl+_l(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return Sl(e.props,/grid-\w+-start/)}))?e:pl+_l(_l(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return _l(e,/(.+)-inline(.+)/,hl+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(jl(e)-1-t>6)switch(Tl(e,t+1)){case 109:if(45!==Tl(e,t+4))break;case 102:return _l(e,/(.+:)(.+)-([^]+)/,"$1"+hl+"$2-$3$1"+fl+(108==Tl(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Il(e,"stretch",0)?ac(_l(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return _l(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,s){return pl+n+":"+r+s+(o?pl+n+"-span:"+(i?a:+a-+r)+s:"")+e}));case 4949:if(121===Tl(e,t+6))return _l(e,":",":"+hl)+e;break;case 6444:switch(Tl(e,45===Tl(e,14)?18:11)){case 120:return _l(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+hl+(45===Tl(e,14)?"inline-":"")+"box$3$1"+hl+"$2$3$1"+pl+"$2box$3")+e;case 100:return _l(e,":",":"+pl)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return _l(e,"scroll-","scroll-snap-")+e}return e}function sc(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function lc(e,t,n,r){switch(e.type){case xl:if(e.children.length)break;case yl:case vl:return e.return=e.return||e.value;case ml:return"";case bl:return e.return=e.value+"{"+sc(e.children,r)+"}";case gl:if(!jl(e.value=e.props.join(",")))return""}return jl(n=sc(e.children,r))?e.return=e.value+"{"+n+"}":""}function cc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vl:return void(e.return=ac(e.value,e.length,n));case bl:return sc([Hl(e,{value:_l(e.value,"@","@"+hl)})],r);case gl:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(Sl(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$l(Hl(e,{props:[_l(t,/:(read-\w+)/,":"+fl+"$1")]})),$l(Hl(e,{props:[t]})),Cl(e,{props:Pl(n,r)});break;case"::placeholder":$l(Hl(e,{props:[_l(t,/:(plac\w+)/,":"+hl+"input-$1")]})),$l(Hl(e,{props:[_l(t,/:(plac\w+)/,":"+fl+"$1")]})),$l(Hl(e,{props:[_l(t,/:(plac\w+)/,pl+"input-$1")]})),$l(Hl(e,{props:[t]})),Cl(e,{props:Pl(n,r)})}return""}))}}var uc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",pc="active",fc="data-styled-version",hc="6.1.8",mc="/*!sc*/\n",gc="undefined"!=typeof window&&"HTMLElement"in window,vc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),yc={},bc=Object.freeze([]),xc=Object.freeze({});function wc(e,t,n){return void 0===n&&(n=xc),e.theme!==n.theme&&e.theme||t||n.theme}var Ec=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Cc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,kc=/(^-|-$)/g;function Sc(e){return e.replace(Cc,"-").replace(kc,"")}var _c=/(a)(d)/gi,Ic=52,Tc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Oc(e){var t,n="";for(t=Math.abs(e);t>Ic;t=t/Ic|0)n=Tc(t%Ic)+n;return(Tc(t%Ic)+n).replace(_c,"$1-$2")}var jc,zc=5381,Bc=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pc=function(e){return Bc(zc,e)};function Ac(e){return Oc(Pc(e)>>>0)}function Nc(e){return"string"==typeof e&&!0}var Dc="function"==typeof Symbol&&Symbol.for,Mc=Dc?Symbol.for("react.memo"):60115,Fc=Dc?Symbol.for("react.forward_ref"):60112,Lc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Rc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Hc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$c=((jc={})[Fc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},jc[Mc]=Hc,jc);function Uc(e){return("type"in(t=e)&&t.type.$$typeof)===Mc?Hc:"$$typeof"in e?$c[e.$$typeof]:Lc;var t}var Vc=Object.defineProperty,Wc=Object.getOwnPropertyNames,qc=Object.getOwnPropertySymbols,Gc=Object.getOwnPropertyDescriptor,Yc=Object.getPrototypeOf,Xc=Object.prototype;function Kc(e,t,n){if("string"!=typeof t){if(Xc){var r=Yc(t);r&&r!==Xc&&Kc(e,r,n)}var o=Wc(t);qc&&(o=o.concat(qc(t)));for(var i=Uc(e),a=Uc(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Rc||n&&n[l]||a&&l in a||i&&l in i)){var c=Gc(t,l);try{Vc(e,l,c)}catch(e){}}}}return e}function Zc(e){return"function"==typeof e}function Jc(e){return"object"==typeof e&&"styledComponentId"in e}function Qc(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eu(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function tu(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function nu(e,t,n){if(void 0===n&&(n=!1),!n&&!tu(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=nu(e[r],t[r]);else if(tu(t))for(var r in t)e[r]=nu(e[r],t[r]);return e}function ru(e,t){Object.defineProperty(e,"toString",{value:t})}function ou(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var iu=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ou(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(mc);return t},e}(),au=new Map,su=new Map,lu=1,cu=function(e){if(au.has(e))return au.get(e);for(;su.has(lu);)lu++;var t=lu++;return au.set(e,t),su.set(t,e),t},uu=function(e,t){lu=t+1,au.set(e,t),su.set(t,e)},du="style[".concat(dc,"][").concat(fc,'="').concat(hc,'"]'),pu=new RegExp("^".concat(dc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fu=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},hu=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(mc),o=[],i=0,a=r.length;i<a;i++){var s=r[i].trim();if(s){var l=s.match(pu);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(uu(u,c),fu(e,u,l[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(s)}}},mu=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(dc,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(dc,pc),r.setAttribute(fc,hc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},gu=function(){function e(e){this.element=mu(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw ou(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),vu=function(){function e(e){this.element=mu(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),yu=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bu=gc,xu={isServer:!gc,useCSSOMInjection:!vc},wu=function(){function e(e,t,n){void 0===e&&(e=xc),void 0===t&&(t={});var r=this;this.options=cl(cl({},xu),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&gc&&bu&&(bu=!1,function(e){for(var t=document.querySelectorAll(du),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(dc)!==pc&&(hu(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),ru(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return su.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var s="".concat(dc,".g").concat(n,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(mc)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return cu(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(cl(cl({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new yu(n):t?new gu(n):new vu(n)}(this.options),new iu(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(cu(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(cu(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(cu(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Eu=/&/g,Cu=/^\s*\/\/.*$/gm;function ku(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ku(e.children,t)),e}))}function Su(e){var t,n,r,o=void 0===e?xc:e,i=o.options,a=void 0===i?xc:i,s=o.plugins,l=void 0===s?bc:s,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===gl&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Eu,n).replace(r,c))})),a.prefix&&u.push(cc),u.push(lc);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Cu,""),c=tc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(c=ku(c,a.namespace));var d,p=[];return sc(c,function(e){var t=zl(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(u.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||ou(15),Bc(e,t.name)}),zc).toString():"",d}var _u=new wu,Iu=Su(),Tu=t.createContext({shouldForwardProp:void 0,styleSheet:_u,stylis:Iu}),Ou=t.createContext(void 0);function ju(){return r(Tu)}function zu(e){var n=o(e.stylisPlugins),r=n[0],s=n[1],l=ju().styleSheet,c=i((function(){var t=l;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,l]),u=i((function(){return Su({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);a((function(){dl(r,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]);var d=i((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:c,stylis:u}}),[e.shouldForwardProp,c,u]);return t.createElement(Tu.Provider,{value:d},t.createElement(Ou.Provider,{value:u},e.children))}var Bu=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Iu);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ru(this,(function(){throw ou(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Iu),this.name+e.hash},e}(),Pu=function(e){return e>="A"&&e<="Z"};function Au(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Pu(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Nu=function(e){return null==e||!1===e||""===e},Du=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Nu(i)&&(Array.isArray(i)&&i.isCss||Zc(i)?r.push("".concat(Au(o),":"),i,";"):tu(i)?r.push.apply(r,ul(ul(["".concat(o," {")],Du(i),!1),["}"],!1)):r.push("".concat(Au(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in uc||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Mu(e,t,n,r){return Nu(e)?[]:Jc(e)?[".".concat(e.styledComponentId)]:Zc(e)?!Zc(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Mu(e(t),t,n,r):e instanceof Bu?n?(e.inject(n,r),[e.getName(r)]):[e]:tu(e)?Du(e):Array.isArray(e)?Array.prototype.concat.apply(bc,e.map((function(e){return Mu(e,t,n,r)}))):[e.toString()];var o}function Fu(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Zc(n)&&!Jc(n))return!1}return!0}var Lu=Pc(hc),Ru=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Fu(e),this.componentId=t,this.baseHash=Bc(Lu,t),this.baseStyle=n,wu.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Qc(r,this.staticRulesId);else{var o=eu(Mu(this.rules,e,t,n)),i=Oc(Bc(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Qc(r,i),this.staticRulesId=i}else{for(var s=Bc(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=eu(Mu(u,e,t,n));s=Bc(s,d+c),l+=d}}if(l){var p=Oc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(l,".".concat(p),void 0,this.componentId)),r=Qc(r,p)}}return r},e}(),Hu=t.createContext(void 0),$u={};function Uu(e,n,r){var o=Jc(e),i=e,a=!Nc(e),l=n.attrs,c=void 0===l?bc:l,u=n.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Sc(e);$u[n]=($u[n]||0)+1;var r="".concat(n,"-").concat(Ac(hc+n+$u[n]));return t?"".concat(t,"-").concat(r):r}(n.displayName,n.parentComponentId):u,p=n.displayName,f=void 0===p?function(e){return Nc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):p,h=n.displayName&&n.componentId?"".concat(Sc(n.displayName),"-").concat(n.componentId):n.componentId||d,m=o&&i.attrs?i.attrs.concat(c).filter(Boolean):c,g=n.shouldForwardProp;if(o&&i.shouldForwardProp){var v=i.shouldForwardProp;if(n.shouldForwardProp){var y=n.shouldForwardProp;g=function(e,t){return v(e,t)&&y(e,t)}}else g=v}var b=new Ru(r,h,o?i.componentStyle:void 0);function x(e,n){return function(e,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,c=e.styledComponentId,u=e.target,d=t.useContext(Hu),p=ju(),f=e.shouldForwardProp||p.shouldForwardProp,h=wc(n,d,a)||xc,m=function(e,t,n){for(var r,o=cl(cl({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Zc(r=e[i])?r(o):r;for(var s in a)o[s]="className"===s?Qc(o[s],a[s]):"style"===s?cl(cl({},o[s]),a[s]):a[s]}return t.className&&(o.className=Qc(o.className,t.className)),o}(o,n,h),g=m.as||u,v={};for(var y in m)void 0===m[y]||"$"===y[0]||"as"===y||"theme"===y&&m.theme===h||("forwardedAs"===y?v.as=m.forwardedAs:f&&!f(y,g)||(v[y]=m[y]));var b=function(e,t){var n=ju();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(i,m),x=Qc(l,c);return b&&(x+=" "+b),m.className&&(x+=" "+m.className),v[Nc(g)&&!Ec.has(g)?"class":"className"]=x,v.ref=r,s(g,v)}(w,e,n)}x.displayName=f;var w=t.forwardRef(x);return w.attrs=m,w.componentStyle=b,w.displayName=f,w.shouldForwardProp=g,w.foldedComponentIds=o?Qc(i.foldedComponentIds,i.styledComponentId):"",w.styledComponentId=h,w.target=o?i.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)nu(e,o[r],!0);return e}({},i.defaultProps,e):e}}),ru(w,(function(){return".".concat(w.styledComponentId)})),a&&Kc(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Vu(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Wu=function(e){return Object.assign(e,{isCss:!0})};function qu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Zc(e)||tu(e))return Wu(Mu(Vu(bc,ul([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Mu(r):Wu(Mu(Vu(r,t)))}function Gu(e,t,n){if(void 0===n&&(n=xc),!t)throw ou(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,qu.apply(void 0,ul([r],o,!1)))};return r.attrs=function(r){return Gu(e,t,cl(cl({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Gu(e,t,cl(cl({},n),r))},r}var Yu=function(e){return Gu(Uu,e)},Xu=Yu;Ec.forEach((function(e){Xu[e]=Yu(e)}));var Ku=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Fu(e),wu.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(eu(Mu(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&wu.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Zu(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=qu.apply(void 0,ul([e],n,!1)),i="sc-global-".concat(Ac(JSON.stringify(o))),a=new Ku(o,i),s=function(e){var n=ju(),r=t.useContext(Hu),o=t.useRef(n.styleSheet.allocateGSInstance(i)).current;return n.styleSheet.server&&l(o,e,n.styleSheet,r,n.stylis),t.useLayoutEffect((function(){if(!n.styleSheet.server)return l(o,e,n.styleSheet,r,n.stylis),function(){return a.removeStyles(o,n.styleSheet)}}),[o,e,n.styleSheet,r,n.stylis]),null};function l(e,t,n,r,o){if(a.isStatic)a.renderStyles(e,yc,n,o);else{var i=cl(cl({},t),{theme:wc(t,r,s.defaultProps)});a.renderStyles(e,i,n,o)}}return t.memo(s)}function Ju(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=eu(qu.apply(void 0,ul([e],t,!1))),o=Ac(r);return new Bu(o,r)}var Qu={exports:{}},ed={},td=t,nd=Symbol.for("react.element"),rd=Symbol.for("react.fragment"),od=Object.prototype.hasOwnProperty,id=td.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ad={key:!0,ref:!0,__self:!0,__source:!0};function sd(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)od.call(t,r)&&!ad.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:nd,type:e,key:i,ref:a,props:o,_owner:id.current}}ed.Fragment=rd,ed.jsx=sd,ed.jsxs=sd,Qu.exports=ed;const ld={white:"var(--white)","white-rgb":"var(--white-rgb)",gray1000:"var(--gray1000)","gray1000-rgb":"var(--gray1000-rgb)",gray900:"var(--gray900)",gray800:"var(--gray800)",gray700:"var(--gray700)",gray600:"var(--gray600)",gray500:"var(--gray500)",gray400:"var(--gray400)",gray300:"var(--gray300)",gray200:"var(--gray200)",gray100:"var(--gray100)",gray75:"var(--gray75)",gray50:"var(--gray50)",gray25:"var(--gray25)",gray10:"var(--gray10)",blue1000:"var(--blue1000)",blue900:"var(--blue900)",blue800:"var(--blue800)",blue700:"var(--blue700)",blue600:"var(--blue600)",blue500:"var(--blue500)",blue500a10:"var(--blue500a10)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red500a10:"var(--red500a10)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",yellow500a10:"var(--yellow500a10)",yellow600:"var(--yellow600)",yellow700:"var(--yellow700)",green500:"var(--green500)",purple1000:"var(--purple1000)",purple900:"var(--purple900)",purple800:"var(--purple800)",purple700:"var(--purple700)",purple600:"var(--purple600)",purple500:"var(--purple500)",purple400:"var(--purple400)",purple300:"var(--purple300)",purple200:"var(--purple200)",purple100:"var(--purple100)",magenta1000:"var(--magenta1000)",magenta900:"var(--magenta900)",magenta800:"var(--magenta800)",magenta700:"var(--magenta700)",magenta600:"var(--magenta600)",magenta500:"var(--magenta500)",magenta400:"var(--magenta400)",magenta300:"var(--magenta300)",magenta200:"var(--magenta200)",magenta100:"var(--magenta100)",teal1000:"var(--teal1000)",teal900:"var(--teal900)",teal800:"var(--teal800)",teal700:"var(--teal700)",teal600:"var(--teal600)",teal500:"var(--teal500)",teal500a10:"var(--teal500a10)",teal400:"var(--teal400)",teal300:"var(--teal300)",teal200:"var(--teal200)",teal100:"var(--teal100)",brandPrimary700:"var(--brandPrimary700)",brandPrimary600:"var(--brandPrimary600)",brandPrimary500:"var(--brandPrimary500)","brandPrimary500-rgb":"var(--brandPrimary500-rgb)",brandPrimary300:"var(--brandPrimary300)",brandPrimary100:"var(--brandPrimary100)",spacing1:"var(--spacing1)",spacing2:"var(--spacing2)",spacing3:"var(--spacing3)",spacing4:"var(--spacing4)",spacing5:"var(--spacing5)",spacing6:"var(--spacing6)",spacing7:"var(--spacing7)",spacing8:"var(--spacing8)",spacing9:"var(--spacing9)",layoutSpacing1:"var(--layoutSpacing1)",layoutSpacing2:"var(--layoutSpacing2)",layoutSpacing3:"var(--layoutSpacing3)",layoutSpacing4:"var(--layoutSpacing4)",layoutSpacing5:"var(--layoutSpacing5)",layoutSpacing6:"var(--layoutSpacing6)",layoutSpacing7:"var(--layoutSpacing7)",radiusSmall:"var(--radiusSmall)",radiusMedium:"var(--radiusMedium)",radiusLarge:"var(--radiusLarge)",radiusCircle:"var(--radiusCircle)",radiusPill:"var(--radiusPill)",radiusBase:"var(--radiusBase)",brandRadiusBase:"var(--brandRadiusBase)",fontStackBase:"var(--fontStackBase)",brandFontStackBase:"var(--brandFontStackBase)",fontSize25:"var(--fontSize25)",fontSize50:"var(--fontSize50)",fontSize75:"var(--fontSize75)",fontSize100:"var(--fontSize100)",fontSize200:"var(--fontSize200)",fontSize300:"var(--fontSize300)",fontSize400:"var(--fontSize400)",fontSize500:"var(--fontSize500)",fontSize600:"var(--fontSize600)",fontSize700:"var(--fontSize700)",fontSize800:"var(--fontSize800)",fontSize900:"var(--fontSize900)",fontSize1000:"var(--fontSize1000)",fontSizeBase:"var(--fontSizeBase)",lineHeightBase:"var(--lineHeightBase)",lineHeightHeading:"var(--lineHeightHeading)",lineHeightText:"var(--lineHeightText)",gray900a:"var(--gray900a)",gray800a:"var(--gray800a)",gray700a:"var(--gray700a)",gray600a:"var(--gray600a)",gray500a:"var(--gray500a)",gray400a:"var(--gray400a)",gray300a:"var(--gray300a)",gray200a:"var(--gray200a)",gray100a:"var(--gray100a)",gray75a:"var(--gray75a)",gray50a:"var(--gray50a)",gray25a:"var(--gray25a)",colorText:"var(--colorText)",colorTextMuted:"var(--colorTextMuted)",colorTextDisabled:"var(--colorTextDisabled)",focusRingWidth:"var(--focusRingWidth)",focusRingColorPrimary:"var(--focusRingColorPrimary)",focusRingColorSecondary:"var(--focusRingColorSecondary)",colorShadow:"var(--colorShadow)",elevationStatic:"var(--elevationStatic)",elevation1:"var(--elevation1)",elevation2:"var(--elevation2)",elevation4:"var(--elevation4)",elevation8:"var(--elevation8)",elevation12:"var(--elevation12)",elevation16:"var(--elevation16)",elevation24:"var(--elevation24)",componentButtonPrimaryBorderHover:"var(--componentButtonPrimaryBorderHover)",componentButtonPrimaryBorderActive:"var(--componentButtonPrimaryBorderActive)",componentButtonPrimaryBorderFocus:"var(--componentButtonPrimaryBorderFocus)",componentButtonPrimaryBorderDisabled:"var(--componentButtonPrimaryBorderDisabled)",componentButtonPrimaryColor:"var(--componentButtonPrimaryColor)",componentButtonPrimaryColorHover:"var(--componentButtonPrimaryColorHover)",componentButtonPrimaryColorActive:"var(--componentButtonPrimaryColorActive)",componentButtonPrimaryColorFocus:"var(--componentButtonPrimaryColorFocus)",componentButtonPrimaryColorDisabled:"var(--componentButtonPrimaryColorDisabled)",componentButtonPrimaryFill:"var(--componentButtonPrimaryFill)",componentButtonPrimaryFillHover:"var(--componentButtonPrimaryFillHover)",componentButtonPrimaryFillActive:"var(--componentButtonPrimaryFillActive)",componentButtonPrimaryFillFocus:"var(--componentButtonPrimaryFillFocus)",componentButtonPrimaryFillDisabled:"var(--componentButtonPrimaryFillDisabled)",componentButtonPrimaryFocusRing:"var(--componentButtonPrimaryFocusRing)",componentButtonSecondaryBorder:"var(--componentButtonSecondaryBorder)",componentButtonSecondaryBorderHover:"var(--componentButtonSecondaryBorderHover)",componentButtonSecondaryBorderActive:"var(--componentButtonSecondaryBorderActive)",componentButtonSecondaryBorderFocus:"var(--componentButtonSecondaryBorderFocus)",componentButtonSecondaryBorderDisabled:"var(--componentButtonSecondaryBorderDisabled)",componentButtonSecondaryColor:"var(--componentButtonSecondaryColor)",componentButtonSecondaryColorHover:"var(--componentButtonSecondaryColorHover)",componentButtonSecondaryColorActive:"var(--componentButtonSecondaryColorActive)",componentButtonSecondaryColorFocus:"var(--componentButtonSecondaryColorFocus)",componentButtonSecondaryColorDisabled:"var(--componentButtonSecondaryColorDisabled)",componentButtonSecondaryFill:"var(--componentButtonSecondaryFill)",componentButtonSecondaryFillHover:"var(--componentButtonSecondaryFillHover)",componentButtonSecondaryFillActive:"var(--componentButtonSecondaryFillActive)",componentButtonSecondaryFillFocus:"var(--componentButtonSecondaryFillFocus)",componentButtonSecondaryFillDisabled:"var(--componentButtonSecondaryFillDisabled)",componentButtonSecondaryFocusRing:"var(--componentButtonSecondaryFocusRing)",componentButtonCleanBorderFocus:"var(--componentButtonCleanBorderFocus)",componentButtonCleanBorderActive:"var(--componentButtonCleanBorderActive)",componentButtonCleanColor:"var(--componentButtonCleanColor)",componentButtonCleanColorHover:"var(--componentButtonCleanColorHover)",componentButtonCleanColorActive:"var(--componentButtonCleanColorActive)",componentButtonCleanColorFocus:"var(--componentButtonCleanColorFocus)",componentButtonCleanColorDisabled:"var(--componentButtonCleanColorDisabled)",componentButtonCleanFill:"var(--componentButtonCleanFill)",componentButtonCleanFillHover:"var(--componentButtonCleanFillHover)",componentButtonCleanFillActive:"var(--componentButtonCleanFillActive)",componentButtonCleanFillFocus:"var(--componentButtonCleanFillFocus)",componentButtonCleanFillDisabled:"var(--componentButtonCleanFillDisabled)",componentButtonCleanFocusRing:"var(--componentButtonCleanFocusRing)",componentButtonDangerBorderHover:"var(--componentButtonDangerBorderHover)",componentButtonDangerBorderActive:"var(--componentButtonDangerBorderActive)",componentButtonDangerBorderFocus:"var(--componentButtonDangerBorderFocus)",componentButtonDangerBorderDisabled:"var(--componentButtonDangerBorderDisabled)",componentButtonDangerColor:"var(--componentButtonDangerColor)",componentButtonDangerColorHover:"var(--componentButtonDangerColorHover)",componentButtonDangerColorActive:"var(--componentButtonDangerColorActive)",componentButtonDangerColorFocus:"var(--componentButtonDangerColorFocus)",componentButtonDangerColorDisabled:"var(--componentButtonDangerColorDisabled)",componentButtonDangerFill:"var(--componentButtonDangerFill)",componentButtonDangerFillHover:"var(--componentButtonDangerFillHover)",componentButtonDangerFillActive:"var(--componentButtonDangerFillActive)",componentButtonDangerFillFocus:"var(--componentButtonDangerFillFocus)",componentButtonDangerFillDisabled:"var(--componentButtonDangerFillDisabled)",componentButtonDangerFocusRing:"var(--componentButtonDangerFocusRing)",componentDividerColor:"var(--componentDividerColor)",componentCheckboxBorderUnchecked:"var(--componentCheckboxBorderUnchecked)",componentCheckboxBorderUncheckedHover:"var(--componentCheckboxBorderUncheckedHover)",componentCheckboxBorderUncheckedFocus:"var(--componentCheckboxBorderUncheckedFocus)",componentCheckboxFillDisabled:"var(--componentCheckboxFillDisabled)",componentCheckboxCheckmarkColorDisabled:"var(--componentCheckboxCheckmarkColorDisabled)",componentRadioBorderUnchecked:"var(--componentRadioBorderUnchecked)",componentRadioFillDisabled:"var(--componentRadioFillDisabled)",componentRadioCheckmarkColorDisabled:"var(--componentRadioCheckmarkColorDisabled)",componentRadioBorderUncheckedHover:"var(--componentRadioBorderUncheckedHover)",componentPaginationBackground:"var(--componentPaginationBackground)",componentPaginationElevation:"var(--componentPaginationElevation)",componentTooltipBackground:"var(--componentTooltipBackground)",componentTooltipShadow:"var(--componentTooltipShadow)",componentTooltipTitleColor:"var(--componentTooltipTitleColor)",componentTooltipSecondaryTextColor:"var(--componentTooltipSecondaryTextColor)",componentTooltipTextColor:"var(--componentTooltipTextColor)"};function cd({children:e,color:t="brand",hasBorder:n=!1,isPillShaped:r=!1,icon:o,isSmall:i=!1,isSecondary:a=!1,...s}){return Qu.exports.jsxs(ud,{$color:t,$hasBorder:n,$isPillShaped:r,$isSecondary:a,$isSmall:i,...s,children:[o&&Qu.exports.jsx(dd,{$isSmall:i,children:o}),e]})}const ud=Xu.div.withConfig({displayName:"BadgeStyled",componentId:"sc-1qqwh9d-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;height:",";padding:0 ",";border:2px solid transparent;border-radius:",";color:",";font-weight:normal;font-size:",";line-height:normal;",""],(e=>e.$isSmall?"20px":"24px"),(e=>e.$isSmall?ld.spacing2:"6px"),(e=>e.$isPillShaped?ld.radiusPill:ld.radiusMedium),ld.white,ld.fontSize50,(e=>{if(!e.$isSecondary&&e.$color){const t={brand:ld.brandPrimary500,gray:ld.gray400,black:ld.gray900,"black-alpha":ld.gray600a,green:ld.green500,blue:ld.blue500,red:ld.red400};return e.$hasBorder?qu(["border-color:",";color:",";"],t[e.$color],t[e.$color]):qu(["background-color:",";"],t[e.$color])}if(e.$isSecondary)return qu(["border-color:",";background-color:",";color:",";"],e.$hasBorder?ld.gray100:"transparent",e.$hasBorder?ld.white:ld.gray100,ld.gray800)})),dd=Xu.div.withConfig({displayName:"IconHolder",componentId:"sc-1qqwh9d-1"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],(e=>e.$isSmall?ld.spacing1:ld.spacing2),ld.spacing1),pd=qu(["color:",";font-size:",";font-family:",";line-height:",";"],ld.colorText,ld.fontSizeBase,ld.brandFontStackBase,ld.lineHeightBase);Xu.div.withConfig({displayName:"BaseStyles",componentId:"sc-9qrbu4-0"})(["",""],pd);const fd="undefined"!=typeof document?t.useLayoutEffect:()=>{};let hd=new Map,md=new Set;function gd(){if("undefined"==typeof window)return;let e=t=>{let n=hd.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),hd.delete(t.target)),0===hd.size)){for(let e of md)e();md.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=hd.get(t.target);n||(n=new Set,hd.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}"undefined"!=typeof document&&("loading"!==document.readyState?gd():document.addEventListener("DOMContentLoaded",gd)),t.createContext({register:()=>{}}).displayName="PressResponderContext";class vd{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function yd(e){let t=l({isFocused:!1,observer:null});fd((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=l(null);return fd((()=>{t.current=e}),[e]),c(((...e)=>(0,t.current)(...e)),[])}((t=>{null==e||e(t)}));return c((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new vd("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let bd=null,xd=new Set,wd=!1,Ed=!1,Cd=!1;const kd={Tab:!0,Escape:!0};function Sd(e,t){for(let n of xd)n(e,t)}function _d(e){Ed=!0,function(e){return!(e.metaKey||("undefined"==typeof window||null==window.navigator||!/^Mac/i.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform))&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key);var t}(e)&&(bd="keyboard",Sd("keyboard",e))}function Id(e){bd="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Ed=!0,Sd("pointer",e))}function Td(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(function(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}(/Android/i)&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(Ed=!0,bd="virtual")}function Od(e){e.target!==window&&e.target!==document&&(Ed||Cd||(bd="virtual",Sd("virtual",e)),Ed=!1,Cd=!1)}function jd(){Ed=!1,Cd=!0}function zd(){if("undefined"==typeof window||wd)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Ed=!0,e.apply(this,arguments)},document.addEventListener("keydown",_d,!0),document.addEventListener("keyup",_d,!0),document.addEventListener("click",Td,!0),window.addEventListener("focus",Od,!0),window.addEventListener("blur",jd,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Id,!0),document.addEventListener("pointermove",Id,!0),document.addEventListener("pointerup",Id,!0)):(document.addEventListener("mousedown",Id,!0),document.addEventListener("mousemove",Id,!0),document.addEventListener("mouseup",Id,!0)),wd=!0}function Bd(){return"pointer"!==bd}"undefined"!=typeof document&&("loading"!==document.readyState?zd():document.addEventListener("DOMContentLoaded",zd));const Pd=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ad=!1,Nd=0;function Dd(){Ad=!0,setTimeout((()=>{Ad=!1}),50)}function Md(e){"touch"===e.pointerType&&Dd()}function Fd(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Md):document.addEventListener("touchend",Dd),Nd++,()=>{Nd--,Nd>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Md):document.removeEventListener("touchend",Dd))}}function Ld(e,t){return!!e&&!!t&&t.some((t=>t.contains(e)))}class Rd{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let o=new Hd({scopeRef:e});r.addChild(o),o.parent=r,this.fastMap.set(e,o),n&&(o.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&Ld(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach((e=>n&&n.addChild(e)))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e;let t=new Rd;var n;for(let r of this.traverse())t.addTreeNode(r.scopeRef,null!==(n=null===(e=r.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new Hd({scopeRef:null}),this.fastMap.set(null,this.root)}}class Hd{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}function $d(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=l({isFocused:!1,isFocusVisible:t||Bd()}),[s,u]=o(!1),[d,p]=o((()=>i.current.isFocused&&i.current.isFocusVisible)),f=c((()=>p(i.current.isFocused&&i.current.isFocusVisible)),[]),h=c((e=>{i.current.isFocused=e,u(e),f()}),[f]);!function(e,t,n){zd(),a((()=>{let t=(t,r)=>{(function(e,t,n){var r;return!((e=e||(null==n?void 0:n.target)instanceof HTMLInputElement&&!Pd.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof HTMLTextAreaElement||(null==n?void 0:n.target)instanceof HTMLElement&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof KeyboardEvent&&!kd[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Bd())};return xd.add(t),()=>{xd.delete(t)}}),t)}((e=>{i.current.isFocusVisible=e,f()}),[],{isTextInput:n});let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=c((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=yd(i),s=c((e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:h}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=l({isFocusWithin:!1}),a=c((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=yd(a),u=c((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:h});return{isFocused:s,isFocusVisible:d,focusProps:r?g:m}}new Rd;const Ud=Xu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-t3fck2-0"})(["vertical-align:middle;justify-content:center;align-items:center !important;box-sizing:border-box !important;border:1px solid transparent !important;border-radius:",";outline:none !important;font-weight:400 !important;font-style:normal;font-size:"," !important;font-family:"," !important;line-height:"," !important;text-transform:none !important;text-shadow:none !important;cursor:pointer !important;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;button&,a&{position:relative;display:flex;flex:0 0 auto;flex-wrap:nowrap;min-width:40px;background-position:center;text-align:center;text-decoration:none;white-space:nowrap;fill:currentcolor;&:focus{display:flex;}}&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],ld.brandRadiusBase,ld.fontSizeBase,ld.brandFontStackBase,ld.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?qu(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],ld.spacing4,ld.fontSize75):qu(["height:40px !important;padding:0 "," !important;"],ld.spacing5)),(e=>{if("primary"===e.$variant){const t=qu(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],ld.componentButtonPrimaryBorderActive,ld.componentButtonPrimaryFillActive,ld.componentButtonPrimaryColorActive);return qu(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],ld.componentButtonPrimaryFill,ld.componentButtonPrimaryColor,e.$isPressed&&t,ld.componentButtonPrimaryBorderHover,ld.componentButtonPrimaryFillHover,ld.componentButtonPrimaryColorHover,ld.elevation1,ld.componentButtonPrimaryBorderFocus,ld.componentButtonPrimaryFillFocus,ld.componentButtonPrimaryColorFocus,ld.componentButtonPrimaryFocusRing,t,ld.componentButtonPrimaryBorderDisabled,ld.componentButtonPrimaryFillDisabled,ld.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=qu(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],ld.componentButtonSecondaryBorderActive,ld.componentButtonSecondaryFillActive,ld.componentButtonSecondaryColorActive);return qu(["border-color:"," !important;background-color:"," !important;color:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],ld.componentButtonSecondaryBorder,ld.componentButtonSecondaryFill,ld.componentButtonSecondaryColor,e.$isPressed&&t,ld.componentButtonSecondaryBorderHover,ld.componentButtonSecondaryFillHover,ld.componentButtonSecondaryColorHover,ld.elevation1,ld.componentButtonSecondaryBorderFocus,ld.componentButtonSecondaryFillFocus,ld.componentButtonSecondaryColorFocus,ld.componentButtonSecondaryFocusRing,t,ld.componentButtonSecondaryBorderDisabled,ld.componentButtonSecondaryFillDisabled,ld.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=qu(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],ld.componentButtonCleanBorderActive,ld.componentButtonCleanFillActive,ld.componentButtonCleanColorActive);return qu(["background-color:"," !important;color:",";"," &:hover{background-color:"," !important;color:"," !important;box-shadow:none !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{background-color:"," !important;color:"," !important;}"],ld.componentButtonCleanFill,ld.componentButtonCleanColor,e.$isPressed&&t,ld.componentButtonCleanFillHover,ld.componentButtonCleanColorHover,ld.componentButtonCleanBorderFocus,ld.componentButtonCleanColorFocus,ld.componentButtonCleanFocusRing,t,ld.componentButtonCleanFillDisabled,ld.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=qu(["border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;"],ld.componentButtonDangerBorderActive,ld.componentButtonDangerFillActive,ld.componentButtonDangerColorActive);return qu(["border-color:transparent;background-color:"," !important;color:"," !important;box-shadow:"," !important;"," &:hover{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:"," !important;}&:focus{border-color:"," !important;color:"," !important;box-shadow:"," !important;}&:active{","}&&&:disabled{border-color:"," !important;background-color:"," !important;color:"," !important;box-shadow:none !important;}"],ld.componentButtonDangerFill,ld.componentButtonDangerColor,ld.elevation1,e.$isPressed&&t,ld.componentButtonDangerBorderHover,ld.componentButtonDangerFillHover,ld.componentButtonDangerColorHover,ld.elevation2,ld.componentButtonDangerBorderFocus,ld.componentButtonDangerColorFocus,ld.componentButtonDangerFocusRing,t,ld.componentButtonDangerBorderDisabled,ld.componentButtonDangerFillDisabled,ld.componentButtonDangerColorDisabled)}return""})),Vd=Xu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1s1egyn-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;border:1px solid transparent;border-radius:",";background-color:transparent;outline:none;font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default;}"," ",";",""],ld.brandRadiusBase,ld.fontSizeBase,ld.brandFontStackBase,ld.lineHeightBase,(e=>e.$isFullWidth&&"width: 100%;"),(e=>e.$isSmall?qu(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],ld.spacing4,ld.fontSize75):qu(["height:40px;padding:0 ",";"],ld.spacing5)),(e=>{if("primary"===e.$variant){const t=qu(["border-color:",";background-color:",";color:",";box-shadow:none;"],ld.componentButtonPrimaryBorderActive,ld.componentButtonPrimaryFillActive,ld.componentButtonPrimaryColorActive);return qu(["border-color:transparent;background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],ld.componentButtonPrimaryFill,ld.componentButtonPrimaryColor,e.$isPressed&&t,ld.componentButtonPrimaryBorderHover,ld.componentButtonPrimaryFillHover,ld.componentButtonPrimaryColorHover,ld.elevation1,t,e.$isFocusVisible&&qu(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],ld.componentButtonPrimaryFillFocus,ld.componentButtonPrimaryColorFocus,ld.componentButtonPrimaryBorderFocus,ld.componentButtonPrimaryFocusRing),ld.componentButtonPrimaryBorderDisabled,ld.componentButtonPrimaryFillDisabled,ld.componentButtonPrimaryColorDisabled)}if("secondary"===e.$variant){const t=qu(["border-color:",";background-color:",";color:",";box-shadow:none;"],ld.componentButtonSecondaryBorderActive,ld.componentButtonSecondaryFillActive,ld.componentButtonSecondaryColorActive);return qu(["border-color:",";background-color:",";color:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],ld.componentButtonSecondaryBorder,ld.componentButtonSecondaryFill,ld.componentButtonSecondaryColor,e.$isPressed&&t,ld.componentButtonSecondaryBorderHover,ld.componentButtonSecondaryFillHover,ld.componentButtonSecondaryColorHover,ld.elevation1,t,e.$isFocusVisible&&qu(["background-color:",";color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],ld.componentButtonSecondaryFillFocus,ld.componentButtonSecondaryColorFocus,ld.componentButtonSecondaryBorderFocus,ld.componentButtonSecondaryFocusRing),ld.componentButtonSecondaryBorderDisabled,ld.componentButtonSecondaryFillDisabled,ld.componentButtonSecondaryColorDisabled)}if("clean"===e.$variant){const t=qu(["border-color:",";background-color:",";color:",";box-shadow:none;"],ld.componentButtonCleanBorderActive,ld.componentButtonCleanFillActive,ld.componentButtonCleanColorActive);return qu(["background-color:",";color:",";"," &&:hover{background-color:",";color:",";box-shadow:none;}&&:active{","}"," &&:disabled{background-color:",";color:",";}"],ld.componentButtonCleanFill,ld.componentButtonCleanColor,e.$isPressed&&t,ld.componentButtonCleanFillHover,ld.componentButtonCleanColorHover,t,e.$isFocusVisible&&qu(["color:",";&&,&&:hover{border-color:",";box-shadow:",";}"],ld.componentButtonCleanColorFocus,ld.componentButtonCleanBorderFocus,ld.componentButtonCleanFocusRing),ld.componentButtonCleanFillDisabled,ld.componentButtonCleanColorDisabled)}if("danger"===e.$variant){const t=qu(["border-color:",";background-color:",";color:",";box-shadow:none;"],ld.componentButtonDangerBorderActive,ld.componentButtonDangerFillActive,ld.componentButtonDangerColorActive);return qu(["border-color:transparent;background-color:",";color:",";box-shadow:",";"," &&:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&&:active{","}"," &&:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],ld.componentButtonDangerFill,ld.componentButtonDangerColor,ld.elevation1,e.$isPressed&&t,ld.componentButtonDangerBorderHover,ld.componentButtonDangerFillHover,ld.componentButtonDangerColorHover,ld.elevation2,t,e.$isFocusVisible&&qu(["background-color:",";color:",";box-shadow:none;&&,&&:hover{border-color:",";box-shadow:",";}"],ld.componentButtonDangerFillFocus,ld.componentButtonDangerColorFocus,ld.componentButtonDangerBorderFocus,ld.componentButtonDangerFocusRing),ld.componentButtonDangerBorderDisabled,ld.componentButtonDangerFillDisabled,ld.componentButtonDangerColorDisabled)}return""})),Wd=Xu.div.withConfig({displayName:"Icon",componentId:"sc-1s1egyn-1"})(["display:flex;align-items:center;height:100%;"]),qd=Xu(Wd).withConfig({displayName:"LeftIcon",componentId:"sc-1s1egyn-2"})(["margin-right:",";margin-left:calc("," * -1);"],(e=>e.$lastChild?`calc(${ld.spacing2} * -1) `:ld.spacing3),ld.spacing2),Gd=Xu(Wd).withConfig({displayName:"RightIcon",componentId:"sc-1s1egyn-3"})(["margin-right:calc("," * -1);margin-left:",";"],ld.spacing2,ld.spacing3);function Yd(e){return Qu.exports.jsx(Zd,{viewBox:"0 0 24 24","aria-hidden":"true",...e,children:Qu.exports.jsx(Jd,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"})})}const Xd=Ju`
|
|
8
8
|
100% {
|
|
9
9
|
transform: rotate(360deg);
|
|
10
10
|
}
|
|
11
|
-
`,
|
|
11
|
+
`,Kd=Ju`
|
|
12
12
|
0% {
|
|
13
13
|
stroke-dasharray: 1, 100;
|
|
14
14
|
stroke-dashoffset: 0;
|
|
@@ -23,7 +23,7 @@ import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,
|
|
|
23
23
|
stroke-dasharray: 80, 100;
|
|
24
24
|
stroke-dashoffset: -48;
|
|
25
25
|
}
|
|
26
|
-
`,Wd=Uu.svg.withConfig({displayName:"Svg",componentId:"sc-5lftme-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Ud),qd=Uu.circle.withConfig({displayName:"Circle",componentId:"sc-5lftme-1"})(["stroke:currentcolor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Vd),Gd=u((({children:e,className:t="",rightIcon:n,type:r="button","aria-label":o,isFullWidth:i=!1,icon:a,variant:s="secondary",isSmall:l=!1,isDisabled:c=!1,isPressed:u=!1,isLoading:d=!1,...p},f)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:t,variant:s,isSmall:l,icon:a,isDisabled:c});return Gu.exports.jsx(Md,{"aria-label":o||p.title,className:h,disabled:c||d,type:r,$variant:s,$isPressed:u,$isSmall:l,$isFullWidth:i,as:p.href?"a":"button",ref:f,...p,children:d?Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(Rd,{$lastChild:!e,children:Gu.exports.jsx($d,{})}),e]}):Gu.exports.jsxs(Gu.exports.Fragment,{children:[a&&Gu.exports.jsx(Rd,{$lastChild:!e,children:a}),e,n&&Gu.exports.jsx(Hd,{children:n})]})})})),Yd=n("modern"),Xd=u((({children:e,variant:t="secondary",isSmall:n=!1,icon:r,rightIcon:o,isDisabled:i=!1,isLoading:a=!1,type:s="button",isPressed:l=!1,isFullWidth:c=!1,...u},d)=>{const{isFocusVisible:p,focusProps:f}=Dd();return Gu.exports.jsx(Fd,{$variant:t,$isSmall:n,$isPressed:l,$isFullWidth:c,disabled:a||i,type:s,as:u.href?"a":"button",$isFocusVisible:p,ref:d,...f,...u,children:a?Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(Rd,{"data-testid":"ds-button-loading-icon",$lastChild:!e,children:Gu.exports.jsx($d,{})}),e]}):Gu.exports.jsxs(Gu.exports.Fragment,{children:[r&&Gu.exports.jsx(Rd,{$lastChild:!e,children:r}),e,o&&Gu.exports.jsx(Hd,{children:o})]})})})),Kd=u(((e,t)=>"legacy"===(i(Yd)||"modern")?Gu.exports.jsx(Gd,{ref:t,...e}):Gu.exports.jsx(Xd,{ref:t,...e}))),Zd=Object.assign(Kd,{VersionProvider:Yd.Provider});function Jd({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function Qd({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.12 5l.81-1h12l.94 1H5.12Z"})})}function ep({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}function tp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41Z"})})}function np({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function rp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function op({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[Gu.exports.jsx("path",{fill:"currentColor",d:"M15.2 12a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0Z"}),Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.17 4 9 2h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3.17ZM7 12c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5Z",clipRule:"evenodd"})]})}function ip({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"})})}function ap({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"m7 10 5 5 5-5H7Z"})})}function sp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17Z"})})}function lp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59Z"})})}function cp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function up({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59ZM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"})})}function dp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6Zm7 7V3.5L18.5 9H13Z"})})}function pp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2Z"})})}function fp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.01 3.87 1.41-1.42L21.15 20.2l-1.41 1.41-3.43-3.43c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5.77-1.97 2.06-3.67 3.69-4.95L2.01 3.87ZM17 11.5c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L8.36 4.57C9.51 4.2 10.73 4 12 4c5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46Zm-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5Zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64Z",clipRule:"evenodd"})})}function hp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14Zm-8 13.51L8.5 13.5 5 18h14l-4.5-6-3.5 4.51Z",clipRule:"evenodd"})})}function mp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 5v14h14v-7h2v7c0 1.1-.9 2-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7v2H5Zm9 0V3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14Z",clipRule:"evenodd"})})}function gp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})})}function vp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5ZM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Zm-3-5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3Z",clipRule:"evenodd"})})}function yp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.41 2.58 9 9c.36.36.59.87.59 1.42 0 .55-.22 1.05-.59 1.41l-7 7c-.36.37-.86.59-1.41.59-.55 0-1.05-.22-1.41-.58l-9-9C2.22 12.05 2 11.55 2 11V4c0-1.1.9-2 2-2h7c.55 0 1.05.22 1.41.58ZM4 5.5C4 6.33 4.67 7 5.5 7S7 6.33 7 5.5 6.33 4 5.5 4 4 4.67 4 5.5Z",clipRule:"evenodd"})})}function bp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4Z"})})}function xp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",d:"M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02ZM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77Z"})})}const wp=n(null);function Ep(){const e=i(wp);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const Cp=Uu.div.withConfig({displayName:"FrameStyled",componentId:"sc-1bnqt8s-0"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.$isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":nd.gray25),(e=>"fixed"===e.$height&&Ru(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),kp=Uu.div.withConfig({displayName:"FocusRing",componentId:"sc-1bnqt8s-1"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),Sp=Uu.div.withConfig({displayName:"Children",componentId:"sc-1bnqt8s-2"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.$height&&Ru(["position:absolute;inset:0;"]))),_p=Uu.div.withConfig({displayName:"Overlay",componentId:"sc-1bnqt8s-3"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),Ip=Uu.div.withConfig({displayName:"BadgeContainer",componentId:"sc-1bnqt8s-4"})(["position:absolute;right:",";bottom:",";"],nd.spacing4,nd.spacing4),Tp=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1bnqt8s-5"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],nd.spacing4,nd.spacing4,nd.white,nd.gray100a),Op=Uu.div.withConfig({displayName:"ProgressContainer",componentId:"sc-1bnqt8s-6"})(["position:absolute;bottom:0;left:0;width:100%;"]);function jp(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function zp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bp(e,t,n){return t&&zp(e.prototype,t),n&&zp(e,n),e}function Pp(){return Pp=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},Pp.apply(this,arguments)}function Ap(e,t){return Ap=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ap(e,t)}function Np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dp(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Np(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Np(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mp(e){var t=l(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var Fp="undefined"!=typeof window?d:a;function Lp(e){return parseFloat(e.replace("px",""))}function Rp(e,t,n){return e<t?t:e>n?n:e}function Hp(e){return null!=e}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=Dp(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function Up(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,Up(e.parentElement,t))}function Vp(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function Wp(e){var t=e.enabled,n=e.onChange,r=e.environment,i=e.ResizeObserverPolyfill,s=e.overflowContainer,u=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(r,i);a((function(){}),[d]);var p,f,h=l(null),m=Boolean(u),g=(f=l({scrollContainers:[],trigger:null,layer:null}),o((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=l([]),o((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=Dp(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),x=b.hasEventSubscriptions,w=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=c((function(){var e=v(),t=e.layer,o=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(Vp("layer"));if(!o&&!m)throw new Error(Vp("trigger"));var s={top:0,left:0};if(a){var l=a.scrollLeft;s={top:a.scrollTop,left:l}}else{var c=r.scrollX;s={top:r.scrollY,left:c}}var u={left:0,top:0};if(a){var d=r.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:Lp(p)||0,top:Lp(f)||0}}n({layer:t,trigger:o,scrollContainers:i,arrow:h.current},s,u)}),[v,n,r,h,m]),k=c((function(){var e=v(),t=e.trigger,n=e.layer,o=e.scrollContainers;if(!n)throw new Error(Vp("layer"));if(!t&&!m)throw new Error(Vp("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),s=0,l=[t,n,document.body];s<l.length;s++){var c=l[s];c&&a.observe(c)}w((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),w((function(){return e.removeEventListener("scroll",C)}))},f=Dp([r].concat(o));!(u=f()).done;)p()}),[v,w,C,r,d,m]),S=c((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),_=Mp(c((function(e){var t=v().layer;y((function(t){return Pp({},t,{layer:e})})),S(t,e)}),[v,y,S])),I=c((function(e){var t=Up(e,r),n=t[0];if(n){var o=r.getComputedStyle(n).position;["relative","absolute","fixed"].includes(o)||s||(n.style.position="relative")}return t}),[r,s]),T=Mp(c((function(e){var t=I(e),n=v().trigger;y((function(n){return Pp({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,I])),O=null==u||null==u.getParent?void 0:u.getParent();return Fp((function(){O&&y((function(e){return Pp({},e,{scrollContainers:I(O)})}))}),[O,y,I]),Fp((function(){return t&&(x()||k()),function(){x()&&E()}}),[t,x,k,E]),Fp((function(){t&&C()})),{triggerRef:T,layerRef:_,arrowRef:h,closestScrollContainer:v().scrollContainers[0]||null}}var qp=n({});function Gp(e){var t=e.children,n=e.registrations,r=c((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return s(qp.Provider,{value:r},t)}var Yp={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},Xp=function(){function e(e,t,n,r,o,i,a,s,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=s,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function Kp(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new Xp(e,t?Kp(Yp[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var Zp={top:Kp("top"),bottom:Kp("bottom"),left:Kp("left"),right:Kp("right")},Jp=Pp({},Zp,{center:Kp("center")}),Qp=["top","left","bottom","right"],ef=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(Qp.map((function(e){return[e,n[e]]}))),a=Dp(r);!(o=a()).done;)for(var s,l=o.value,c=Dp(Qp);!(s=c()).done;){var u=s.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Bp(e,[{key:"allSidesArePositive",get:function(){var e=this;return Qp.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(Qp.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function tf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?Lp(t):0)}),0)}function nf(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var rf={top:0,left:0,right:0,bottom:0,width:0,height:0},of=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,rf,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,s=void 0===a?window:a,l=r.withScrollbars,c=void 0===l||l,u=new e(nf(t.getBoundingClientRect()));if(!i){var d=s.getComputedStyle(t),p=d.width,f=d.height,h=d.boxSizing,m=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,x=d.paddingRight,w=d.paddingTop,E=d.paddingBottom;u=new e(Pp({},u,{width:"border-box"===h?Lp(p):tf(p,m,g,b,x),height:"border-box"===h?Lp(f):tf(f,v,y,w,E)}))}if(!c){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,o=null!=r?r:{},i=o.clientWidth,a=void 0===i?0:i,s=o.clientHeight,l=void 0===s?0:s;return new e({width:a,height:l,right:a,bottom:l})};var t=e.prototype;return t.toObject=function(){return nf(this)},t.merge=function(t){var n=this.toObject();return new e(Pp({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];if(a in Zp){var l=Zp[a];n[a]+=l.factor(s),n[l.isHorizontal?"width":"height"]-=s}else n[a]-=s||0}return new e(n)},t.offsetsTo=function(e){return new ef({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(Zp);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Bp(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),af=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Pp({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,s=t.isHorizontal,l=t.oppositeCssProp,c=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=of.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,h=o[l]-(i[c]-a[c])+f,m=o[l]+(o[c]-a[c])-f;if(n.isPush||(h+=i[c],m+=i[c]),n.isCenter){var g=(s?Zp.top:Zp.left).prop,v=(s?Zp.bottom:Zp.right).prop;p[g]=Rp(o[g]+o[c]/2-i[c]/2+e,h,m),p[v]=p[g]+i[c]}else{var y=n,b=o[y.prop],x=b<h?h-b:b>m?m-b:0;p[y.prop]=Rp(b+e+x,h,m),p[y.opposite.prop]=p[y.prop]+n.factor(i[c])}p.width=p.right-p.left,p.height=p.bottom-p.top;var w=of.create(p);return 0===e&&(this._cachedLayerBounds=w),w},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=ef.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Bp(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets(),o=null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[Zp[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[];return o[0]||null}}]),e}(),sf=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ap(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=of.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(af),lf={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},cf=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=Zp[n];return[o,"center"===r?Jp.center:o.isHorizontal?"start"===r?Jp.top:Jp.bottom:"start"===r?Jp.left:Jp.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],s=i[1],l=Zp[a.isHorizontal?n.preferY:n.preferX],c=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new af(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,s),d[1]=u(a,s.isCenter?l:Jp.center),d[2]=u(a,Jp[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d[3]=u(l,c?a:Jp[a.opposite.prop]),d[4]=u(l,Jp.center),d[5]=u(l,c?Jp[a.opposite.prop]:a),d[6]=u(Zp[l.opposite.prop],c?a:Jp[a.opposite.prop]),d[7]=u(Zp[l.opposite.prop],Jp.center),d[8]=u(Zp[l.opposite.prop],c?Jp[a.opposite.prop]:a),d[9]=u(Zp[a.opposite.prop],s),d[10]=u(Zp[a.opposite.prop],s.isCenter?l:Jp.center),d[11]=u(Zp[a.opposite.prop],Jp[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new sf(Jp.center,Jp.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof sf)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var s,l=e.getContainerOffsets(),c=e.secondary;return s=e.triggerIsBigger||i===e?a.isPush?-1:1:c===Jp.left||[Jp.top,Jp.center].includes(c)&&a.isPush?-1:1,l[a.prop]*s},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return lf;var o=e.layer,i=e.trigger,a=e.arrow,s=t.primary.oppositeSizeProp,l=i[s]>o[s],c=n+a[s]/2,u=o[s]-a[s]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,s=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=s[0],c=s[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[c]-r[a]/2-o[c]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,h=l?o[s]/2+d:i[f]+i[s]/2-o[f];return Pp({},lf,((r={})[p]="100%",r[f]=Rp(h,c,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Pp({},o,{position:"fixed",top:e.top,left:e.left}):Pp({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=ef.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[Zp[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),uf=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,s,l){var c=of.fromWindow(t);return new e({layer:of.fromElement(n,{environment:t,withTransform:!1}),trigger:l?of.create(nf(l())):of.fromElement(r),arrow:i?of.fromElement(i):of.empty(),parent:o?of.fromElement(o):c,window:c,scrollContainers:[c].concat(a.map((function(e){return of.fromElement(e,{withScrollbars:!1})})))},s)};var t=e.prototype;return t.merge=function(t){return new e(Pp({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Bp(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),df=null,pf={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function ff(e){var t,n=e.isOpen,o=void 0!==n&&n,u=e.overflowContainer,d=void 0===u?pf.overflowContainer:u,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,h=e.ResizeObserver,g=e.placement,v=void 0===g?pf.placement:g,y=e.possiblePlacements,b=void 0===y?pf.possiblePlacements:y,x=e.preferX,w=void 0===x?pf.preferX:x,E=e.preferY,C=void 0===E?pf.preferY:E,k=e.auto,S=void 0===k?pf.auto:k,_=e.snap,I=void 0===_?pf.snap:_,T=e.triggerOffset,O=void 0===T?pf.triggerOffset:T,j=e.containerOffset,z=void 0===j?pf.containerOffset:j,B=e.arrowOffset,P=void 0===B?pf.arrowOffset:B,A=e.container,N=void 0===A?pf.container:A,D=e.layerDimensions,M=void 0===D?null:D,F=e.onDisappear,L=e.onOutsideClick,R=e.onParentClose,H=e.trigger,$=r((function(){return{layerSide:"center"===v?"center":cf.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),U=$[0],V=$[1],W=l(null),q=function(e,t){var n=l(e);return t?(n.current=e,n):(n.current=null,n)}(U,o),G=l({cancelled:!1});a((function(){return function(){G.current.cancelled=!0}}),[]);var Y=c((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,s=i[0],l=uf.create(f,o,a,s,r,i,d,null==H?void 0:H.getBounds),c={placement:v,possiblePlacements:b,auto:S,layerDimensions:M,arrowOffset:P,containerOffset:z,triggerOffset:O,preferX:w,preferY:C,snap:I,overflowContainer:d},u=cf.create(l,c).result(t,n),p=u.hasDisappeared,h={layerSide:u.layerSide,styles:u.styles};if(!q.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(q.current,h)){q.current=h,G.current.cancelled=!0;var m={cancelled:!1};G.current=m,Promise.resolve().then((function(){m.cancelled||V(h)}))}Hp(p)&&Hp(F)&&F(p)}),[P,S,z,f,M,F,d,v,b,w,C,I,O,q,H]),X=Wp({ResizeObserverPolyfill:h,environment:f,enabled:o,overflowContainer:d,onChange:Y,triggerOption:H}),K=X.triggerRef,Z=X.layerRef,J=X.arrowRef,Q=X.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,r=e.onParentClose,o=l(null),s=l(null),u=l(new Set),d=i(qp),p=c((function(e){var t=e.target,n=o.current&&o.current.contains(t),r=s.current&&s.current.contains(t),i=function(e,t){for(var n,r=Dp(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(u.current,e);return r&&i&&u.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&i}),[o,s,u]);return a((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){r&&r()}})}),[d,p,r,u]),a((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),a((function(){t||u.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:o,layer:s},registrations:u}}({isOpen:o,onOutsideClick:L,onParentClose:R}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean(H)?{}:{ref:$p(K,te.trigger,W)},layerProps:{ref:$p(Z,te.layer),style:U.styles.layer},arrowProps:{ref:J,style:U.styles.arrow,layerSide:U.layerSide},layerSide:U.layerSide,triggerBounds:o?H?H.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?m(s(Gp,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(df instanceof HTMLElement)return df;(t=document.getElementById(gf))||((t=document.createElement("div")).id=gf,t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(N):Q):null}};return re}var hf,mf,gf="layers";function vf(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}(mf=hf||(hf={}))[mf.ENTERING=0]="ENTERING",mf[mf.LEAVING=1]="LEAVING",mf[mf.IDLE=2]="IDLE";const yf={"--white":"#ffffff","--white-rgb":vf("#ffffff"),"--gray1000":"#031026","--gray1000-rgb":vf("#031026"),"--gray900":"#1c283c","--gray800":"#354051","--gray700":"#4f5867","--gray600":"#68707d","--gray500":"#818793","--gray400":"#9a9fa8","--gray300":"#b3b7be","--gray200":"#cdcfd4","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":vf("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":vf("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":vf("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal500-rgb":vf("#22ccaa"),"--teal500a10":"rgb(var(--teal500-rgb) / 10%)","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":kf("brandPrimary700","#0087e0"),"--brandPrimary600":kf("brandPrimary600","#0095eb"),"--brandPrimary500":kf("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":kf("brandPrimary500-rgb",vf("#00aaff")),"--brandPrimary300":kf("brandPrimary300","#b3e6ff"),"--brandPrimary100":kf("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":'"Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandFontStackBase":kf("brandFontStackBase","inherit"),"--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)","--componentPaginationBackground":"none","--componentPaginationElevation":"var(--elevationStatic), var(--elevation2)","--componentTooltipBackground":"var(--gray10)","--componentTooltipShadow":"var(--elevation2), var(--elevationStatic)","--componentTooltipTitleColor":"var(--colorText)","--componentTooltipSecondaryTextColor":"var(--colorTextMuted)","--componentTooltipTextColor":"var(--colorTextMuted)"},bf={"--gray1000":"#ffffff","--gray1000-rgb":vf("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)","--componentPaginationBackground":"var(--gray50a)","--componentPaginationElevation":"none","--componentTooltipBackground":"var(--gray100)","--componentTooltipShadow":"0 2px 4px -1px rgb(3 16 38 / 10%), 0 0 0 1px rgb(3 16 38 / 10%)","--componentTooltipTitleColor":"var(--gray1000)","--componentTooltipSecondaryTextColor":"var(--gray600)","--componentTooltipTextColor":"var(--gray800)"},xf="ds-light-theme",wf="ds-dark-theme",Ef=Wu`${Ru([":root,:host,.",",.","{","}.","{","}"],xf,wf,Cf(yf),wf,Cf(bf))}`;function Cf(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function kf(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}function Sf({className:e,children:t,...n}){return Gu.exports.jsx("div",{className:xf+(e?` ${e}`:""),...n,children:t})}function _f({className:e,children:t,...n}){return Gu.exports.jsx("div",{className:wf+(e?` ${e}`:""),...n,children:t})}const If={paragraphS:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize75,nd.lineHeightText),paragraphM:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize100,nd.lineHeightText),paragraphL:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize200,nd.lineHeightText),uiTextXS:Ru(["font-weight:normal;font-size:",";line-height:20px;"],nd.fontSize50),uiTextS:Ru(["font-weight:normal;font-size:",";line-height:20px;"],nd.fontSize75),uiTextM:Ru(["font-weight:normal;font-size:",";line-height:20px;"],nd.fontSize100),uiTextL:Ru(["font-weight:normal;font-size:",";line-height:24px;"],nd.fontSize200),headingXS:Ru(["font-weight:600;font-size:",";line-height:",";"],nd.fontSize100,nd.lineHeightHeading),headingS:Ru(["font-weight:600;font-size:",";line-height:",";"],nd.fontSize200,nd.lineHeightHeading),headingM:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize400,nd.lineHeightHeading),headingL:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize600,nd.lineHeightHeading),headingXL:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize800,nd.lineHeightHeading),headingXXL:Ru(["font-weight:normal;font-size:",";line-height:",";"],nd.fontSize1000,nd.lineHeightHeading)};function Tf({children:e,direction:t="row",wrap:n="nowrap",justifyContent:r="flex-start",alignItems:o="stretch",gap:i,...a}){return Gu.exports.jsx(Of,{$direction:t,$wrap:n,$justifyContent:r,$alignItems:o,$gap:i,...a,children:e})}const Of=Uu.div.withConfig({displayName:"FlexStyled",componentId:"sc-duap7b-0"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.$direction),(e=>e.$wrap),(e=>e.$gap?nd[`spacing${e.$gap}`]:void 0),(e=>e.$justifyContent),(e=>e.$alignItems));var jf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},zf=t.createContext&&t.createContext(jf),Bf=function(){return Bf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bf.apply(this,arguments)},Pf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Af(e){return e&&e.map((function(e,n){return t.createElement(e.tag,Bf({key:n},e.attr),Af(e.child))}))}function Nf(e){return function(n){return t.createElement(Df,Bf({attr:Bf({},e.attr)},n),Af(e.child))}}function Df(e){var n=function(n){var r,o=e.attr,i=e.size,a=e.title,s=Pf(e,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",Bf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:Bf(Bf({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==zf?t.createElement(zf.Consumer,null,(function(e){return n(e)})):n(jf)}const Mf=(e,t)=>{const n=e[t];return n?"function"==typeof n?n():Promise.resolve(n):new Promise(((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))}))};class Ff{constructor(e){this.input=e,this.index=0,this.done=!1,this.value="",this.value=this.input.charAt(0)}next(){return++this.index>=this.input.length&&(this.done=!0),this.value=this.input.charAt(this.index)}croak(){throw new Error(`[${this.input}]. Unexpected character "${this.value}" on position ${this.index}.`)}}var Lf;!function(e){e[e.Plural=0]="Plural",e[e.Select=1]="Select",e[e.Text=2]="Text",e[e.Variable=3]="Variable"}(Lf||(Lf={}));const Rf="{",Hf="}",$f=",",Uf=[Rf,Hf,$f];class Vf{constructor(e){this.input=new Ff(e)}next(){return this.input.value===Rf?this.readVariable():this.readText()}skip(e){e!==this.input.value&&this.input.croak(),this.input.next()}readWhile(e){let t="";for(;!this.input.done&&e(this.input.value);)t+=this.input.value,this.input.next();return t}readVariable(){this.skip(Rf);const e=this.readWhile((e=>!function(e){return Uf.includes(e)}(e))).trim();if(0===e.length&&this.input.croak(),this.input.value===Hf)return this.skip(Hf),{type:Lf.Variable,value:e};this.skip($f);const t=this.readVariableType();return{options:this.readVariableOptions(),type:t,value:e}}readText(){return{type:Lf.Text,value:this.readWhile((e=>e!==Rf&&e!==Hf))}}readVariableType(){const e=this.readWhile((e=>e!==$f)).trim();return"plural"===e?Lf.Plural:"select"===e?Lf.Select:void this.input.croak()}readVariableOptions(){this.skip($f);const e={};for(;this.input.value!==Hf;)e[this.readText().value.trim()]=this.readExpression();return this.skip(Hf),e}readExpression(){const e=[];for(this.skip(Rf);this.input.value!==Hf;)e.push(this.next());return this.skip(Hf),e}}const Wf=["campaigns","Campaigns","Campaign","campaign","Collection","collections","collection","Collections","limitedUsage","LIMITED","jobs","Jobs","job","Job","Guidelines","WorkflowCalendar","AssetBank","Brandstore","Reporter","Brand","brands","categories","Brands","brand","Asset","Subbrand","subbrands","Assets","assets","asset","subbrand","Subbrands","category","task","Stage","accountable","tasks","stage","Categories","Category","stages","Task","Stages","Tasks","Accountable"];class qf{constructor(e,t,n){this.memo={},this.onError=console.error,this.translateParts=(e,t)=>{const n=this.getTranslationById(e);try{return function({locale:e,translation:t,values:n,wordReplacements:r}){const o=new Vf(t),i=[];for(;!o.input.done;)a(o.next());return i;function a({options:t,type:o,value:s}){if(o===Lf.Variable)return Wf.includes(s)?void(r[s]?i.push(r[s]):i.push(s)):void i.push(n[s]);if(!t)return void i.push(s);if(o===Lf.Select)return void t[n[s]].map(a);const l=e.replace("_","-");t[new Intl.PluralRules(l).select(n[s])].map(a)}}({locale:this.locale,translation:n,values:t,wordReplacements:this.wordReplacements})}catch(e){return this.onError(e),[n]}},this.translate=(e,t={})=>this.translateParts(e,t).join(""),this.getTranslationById=e=>{if(!this.memo[e]){let t=this.translations[e];"string"!=typeof t&&(this.onError(new Error(`Localization: Missing translation with ID "${e}"`)),t=e),this.memo[e]=t}return this.memo[e]},this.locale=function(e){return e||"en_US"}(t),n?(this.translations={...e,...n.translations},this.wordReplacements=n.wordReplacements):(this.translations={...e},this.wordReplacements={})}}const Gf={"colorpicker.opacity-input":"Opacity","datepicker.clear-date":"Clear date","datepicker.next-month":"Next month","datepicker.open-calendar":"Open calendar","datepicker.previous-month":"Previous month","input.clear":"Clear input","input.hide-password":"Hide password","input.show-password":"Show password","modal.close":"Close","multiselectchips.add-value":"Add ‘{value}’","multiselectchips.remove-all":"Remove all","pagination.next-page":"Next page","pagination.previous-page":"Previous page"};var Yf=Object.freeze({__proto__:null,default:Gf});const Xf=["de_DE","en_US","es_ES","es_MX","fr_FR","it_IT","ja_JP","ko_KR","nl_NL","pl_PL","pt_BR","ru_RU","tr_TR","zh_CN","zh_TW"],Kf=t.createContext(void 0);function Zf({children:e,locale:t="en_US"}){const[n,o]=r(void 0);if(a((()=>{Xf.includes(t)?Mf(Object.assign({"../../i18n/de_DE.json":()=>Promise.resolve().then((function(){return aU})),"../../i18n/en_US.json":()=>Promise.resolve().then((function(){return Yf})),"../../i18n/es_ES.json":()=>Promise.resolve().then((function(){return sU})),"../../i18n/es_MX.json":()=>Promise.resolve().then((function(){return lU})),"../../i18n/fr_FR.json":()=>Promise.resolve().then((function(){return cU})),"../../i18n/it_IT.json":()=>Promise.resolve().then((function(){return uU})),"../../i18n/ja_JP.json":()=>Promise.resolve().then((function(){return dU})),"../../i18n/ko_KR.json":()=>Promise.resolve().then((function(){return pU})),"../../i18n/nl_NL.json":()=>Promise.resolve().then((function(){return fU})),"../../i18n/pl_PL.json":()=>Promise.resolve().then((function(){return hU})),"../../i18n/pt_BR.json":()=>Promise.resolve().then((function(){return mU})),"../../i18n/ru_RU.json":()=>Promise.resolve().then((function(){return gU})),"../../i18n/tr_TR.json":()=>Promise.resolve().then((function(){return vU})),"../../i18n/zh_CN.json":()=>Promise.resolve().then((function(){return yU})),"../../i18n/zh_TW.json":()=>Promise.resolve().then((function(){return bU}))}),`../../i18n/${t}.json`).then((e=>{o(e.default)})):Promise.resolve().then((function(){return Yf})).then((e=>{o(e.default)}))}),[t]),!n)return null;const i=new qf(n,t);return Gu.exports.jsx(Kf.Provider,{value:i,children:e})}const Jf={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},Qf=1031,eh=t.createContext({zIndexBase:Qf});function th({children:e,noTheme:t,zIndexBase:n=Qf,buttonVersion:r="modern",dateFnsLocale:i,locale:a="en_US"}){const s=o((()=>({zIndexBase:n,dateFnsLocale:i})),[i,n]);return Gu.exports.jsx(eh.Provider,{value:s,children:Gu.exports.jsx(Zf,{locale:a,children:Gu.exports.jsx(zf.Provider,{value:Jf,children:Gu.exports.jsxs(Zd.VersionProvider,{value:r,children:[!t&&Gu.exports.jsx(Ef,{}),e]})})})})}const nh=["modal","datepicker","dropdown","tooltip","colorpicker","listDragAndDrop"];function rh(e){return i(eh).zIndexBase+nh.indexOf(e)}const oh=Uu.div.withConfig({displayName:"ImageHolder",componentId:"sc-1m204zj-0"})(["margin:calc("," * -1) calc("," * -1) ",";"],nd.spacing4,nd.spacing5,nd.spacing3),ih=Uu.img.withConfig({displayName:"StyledImage",componentId:"sc-1m204zj-1"})(["vertical-align:top;width:100%;border-bottom:1px solid ",";border-radius:var(--ds-tooltip-border-radius) var(--ds-tooltip-border-radius) 0 0;"],nd.gray100a),ah=Uu.div.withConfig({displayName:"StyledText",componentId:"sc-16o2twi-0"})([""," padding-block:",";color:",";"],If.paragraphS,nd.spacing3,nd.componentTooltipTextColor),sh=Uu.div.withConfig({displayName:"ItemStyled",componentId:"sc-17jheit-0"})(["display:flex;gap:",";align-items:center;margin-inline:calc("," * -1);padding:"," ",";"],nd.spacing3,nd.spacing5,nd.spacing3,nd.spacing5),lh=Uu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-17jheit-1"})(["flex:none;"]),ch=Uu.div.withConfig({displayName:"Content",componentId:"sc-17jheit-2"})([""," flex:1;min-width:0;"],If.uiTextM),uh=Uu.div.withConfig({displayName:"Subtext",componentId:"sc-17jheit-3"})([""," color:",";"],If.uiTextS,nd.componentTooltipSecondaryTextColor);function dh({position:e="top-center",timing:t="instant",size:n="small",isLightTheme:o=!1,className:i,icon:s,secondaryText:u,badge:d,content:p,...f}){const[h,m]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,o=void 0===n?0:n,i=t.delayLeave,s=void 0===i?0:i,u=t.hideOnScroll,d=void 0===u||u,p=r(!1),f=p[0],h=p[1],m=l(null),g=l(hf.IDLE),v=l(!1),y=c((function(){clearTimeout(m.current),m.current=null,g.current=hf.IDLE}),[]);function b(e,t){if(g.current===hf.ENTERING&&m.current&&y(),f){if(t)return h(!1),m.current=null,void(g.current=hf.IDLE);g.current=hf.LEAVING,m.current=window.setTimeout((function(){h(!1),m.current=null,g.current=hf.IDLE}),s)}}return a((function(){function e(){f&&d&&(y(),h(!1))}return window.addEventListener("scroll",e,!0),function(){window.removeEventListener("scroll",e,!0),m.current&&clearTimeout(m.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===hf.LEAVING&&m.current&&y(),f||(g.current=hf.ENTERING,m.current=window.setTimeout((function(){h(!0),m.current=null,g.current=hf.IDLE}),o))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||h(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===t?800:0}),{isFocusVisible:g,focusProps:v}=Dd(),y=rh("tooltip"),b=void 0===f.isOpen?h||g:f.isOpen,{triggerProps:x,layerProps:w,renderLayer:E}=ff({isOpen:b,auto:!0,snap:!0,placement:ph(e),possiblePlacements:fh(e),triggerOffset:8,containerOffset:8});return Gu.exports.jsxs(Gu.exports.Fragment,{children:["function"==typeof f.children?f.children({...x,...m,...v}):Gu.exports.jsx("div",{...x,...m,...v,children:f.children}),b&&E(Gu.exports.jsx(hh,{isLightTheme:o,children:Gu.exports.jsx(mh,{...w,$zIndex:y,className:i,$size:n,children:Gu.exports.jsxs(Tf,{alignItems:"center",gap:"3",children:[s&&Gu.exports.jsx(gh,{$size:n,children:s}),Gu.exports.jsx("div",{children:p}),u&&Gu.exports.jsx(vh,{children:u}),d]})})}))]})}function ph(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function fh(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}function hh({isLightTheme:e,children:t}){return e?Gu.exports.jsx(Sf,{children:t}):Gu.exports.jsx(_f,{children:t})}dh.Image=function({src:e,alt:t=""}){return Gu.exports.jsx(oh,{children:Gu.exports.jsx(ih,{src:e,alt:t,"data-testid":"ds-tooltip-image"})})},dh.Text=function({children:e}){return Gu.exports.jsx(ah,{children:e})},dh.ListItem=function({children:e,subtext:t,thumbnail:n,rightElements:r,...o}){return Gu.exports.jsxs(sh,{...o,children:[n&&Gu.exports.jsx(lh,{children:n}),Gu.exports.jsxs(ch,{children:[e,t?Gu.exports.jsx(uh,{children:t}):null]}),r]})};const mh=Uu.div.withConfig({displayName:"TooltipContainer",componentId:"sc-xel4md-0"})(["--ds-tooltip-border-radius:",";z-index:",";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:",";color:",";box-shadow:",";word-break:break-word;",";"],nd.radiusBase,(e=>e.$zIndex),nd.componentTooltipBackground,nd.componentTooltipTitleColor,nd.componentTooltipShadow,(e=>"small"===e.$size?Ru([""," max-width:240px;padding:"," ",";"],If.uiTextS,nd.spacing3,nd.spacing4):"medium"===e.$size?Ru([""," max-width:256px;padding:"," ",";"],If.uiTextM,nd.spacing3,nd.spacing5):void 0)),gh=Uu.span.withConfig({displayName:"IconContainer",componentId:"sc-xel4md-1"})(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc("," * -1);margin-left:",";"],nd.spacing1,(e=>"medium"===e.$size?`calc(${nd.spacing3} * -1)`:`calc(${nd.spacing2} * -1)`)),vh=Uu.span.withConfig({displayName:"SecondaryTextContainer",componentId:"sc-xel4md-2"})([""," color:",";"],If.uiTextS,nd.componentTooltipSecondaryTextColor);function yh({children:e,tooltipPosition:t="top-left",...n}){const[i,s]=r(!1),u=l(null);function p(){if(u.current){const e=u.current.offsetWidth<u.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=l(void 0);n.current=t;var i=e.round||Math.round,s=l(),u=r({width:void 0,height:void 0}),d=u[0],p=u[1],f=l(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var h=l({width:void 0,height:void 0}),m=function(e,t){var n=l(null),r=l(null);r.current=t;var o=l(null);a((function(){i()}));var i=c((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),c((function(e){o.current=e,i()}),[i])}(c((function(t){return s.current&&s.current.box===e.box&&s.current.round===i||(s.current={box:e.box,round:i,instance:new ResizeObserver((function(t){var r=t[0],o="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=jp(r,o,"inlineSize"),s=jp(r,o,"blockSize"),l=a?i(a):void 0,c=s?i(s):void 0;if(h.current.width!==l||h.current.height!==c){var u={width:l,height:c};h.current.width=l,h.current.height=c,n.current?n.current(u):f.current||p(u)}}))}),s.current.instance.observe(t,{box:e.box}),function(){s.current&&s.current.instance.unobserve(t)}}),[e.box,i]),e.ref);o((function(){return{ref:m,width:d.width,height:d.height}}),[m,d.width,d.height])}({ref:u,onResize:()=>{p()}}),d((()=>{p()}),[]),Gu.exports.jsx(bh,{ref:u,...n,children:i?Gu.exports.jsx(dh,{content:e,position:t,timing:"delay",children:t=>Gu.exports.jsx("span",{...t,children:e})}):e})}const bh=Uu.span.withConfig({displayName:"StyledText",componentId:"sc-19w3680-0"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),xh=Uu.div.withConfig({displayName:"HeaderStyled",componentId:"sc-1pov1j3-0"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),wh=Uu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1pov1j3-1"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],nd.spacing4),Eh=Uu.div.withConfig({displayName:"Title",componentId:"sc-1pov1j3-2"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],If.uiTextM,nd.colorText),Ch=Uu.div.withConfig({displayName:"Detail",componentId:"sc-1pov1j3-3"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],If.uiTextS,nd.spacing2,nd.colorTextMuted),kh=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1pov1j3-4"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],nd.spacing2,nd.gray600),Sh=Uu.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-kuakuj-0"})([""," padding:",";border-top:1px solid ",";color:",";"],If.uiTextS,(e=>"all"===e.$padding?"var(--card-content-padding)":"0"),nd.gray100a,nd.colorText),_h=u((({children:e,isDisabled:t=!1,isPressed:n=!1,tooltip:r,"aria-label":o,...i},a)=>{const{isFocusVisible:s,focusProps:l}=Dd(),c=Gu.exports.jsx(Ih,{disabled:t,type:"button",$isFocusVisible:s,ref:a,$isPressed:n,"aria-label":o,...l,...i,children:e});return r?Gu.exports.jsx(dh,{timing:"delay",content:r,children:c}):c})),Ih=Uu.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-yl6ibh-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],nd.spacing3,nd.brandRadiusBase,nd.gray100a,nd.fontSize75,nd.brandFontStackBase,nd.lineHeightBase,(e=>{const t=Ru(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],nd.gray10,nd.gray800,nd.gray100a);return Ru(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],nd["white-rgb"],nd.gray600a,e.$isPressed&&t,nd.gray10,nd.gray800,nd.elevation1,nd.elevationStatic,t,nd["white-rgb"],nd.gray200a,nd.gray100a)})),Th=Uu.div.withConfig({displayName:"ImagesStyled",componentId:"sc-1orrgud-0"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],nd.spacing1),Oh=Uu.img.withConfig({displayName:"ImgStyled",componentId:"sc-1orrgud-1"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.$contentResize?"cover":"scale-down")),jh=Uu.div.withConfig({displayName:"Placeholder",componentId:"sc-1qwqjbg-0"})(["display:grid;place-items:center;min-height:100px;"]),zh=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1qwqjbg-1"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],nd.brandRadiusBase,nd.gray10,nd.gray600);let Bh=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function Ph(e){return o((()=>e+"-"+Bh()),[e])}const Ah=Uu.div.withConfig({displayName:"Placeholder",componentId:"sc-qax8fp-0"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";color:",";svg{width:48px;height:48px;}"],(e=>e.$backgroundColor),(e=>e.$iconColor)),Nh=Uu.div.withConfig({displayName:"StatsStyled",componentId:"sc-a5kvvv-0"})(["display:flex;flex-wrap:wrap;row-gap:",";padding:var(--card-content-padding);border-top:1px solid ",";column-gap:",";"],nd.spacing4,nd.gray100a,nd.spacing5),Dh=Uu.div.withConfig({displayName:"StatItemStyled",componentId:"sc-7uwt82-0"})([""," display:flex;align-items:center;color:",";column-gap:",";"],If.uiTextS,nd.colorTextMuted,nd.spacing2);function Mh({children:e,variant:t="outlined",isSelected:n=!1,contextAction:r,onClick:i,onSelect:a,as:s="button",href:l,to:c,noMinWidth:u,selectButtonAriaLabel:d,"aria-label":p,isDisabled:f=!1,...h}){const m=Ph("card-title"),g=o((()=>({variant:t,isSelected:n,cardTitleId:m})),[n,t,m]),v=f?"div":s;return Gu.exports.jsx(wp.Provider,{value:g,children:Gu.exports.jsxs(Fh,{$variant:t,$isSelected:n,$noMinWidth:u,$isDisabled:f,...h,children:[Gu.exports.jsx(Lh,{as:v,to:f?void 0:c,href:"a"===v?l:void 0,type:"button"===v?"button":void 0,onClick:function(e){if(!f)return a&&(e.metaKey||e.ctrlKey||e.shiftKey)?(a(e),void e.preventDefault()):void(null==i||i(e))},"aria-labelledby":p?void 0:m,"aria-label":p,$isDisabled:f,children:e}),r&&!f?Gu.exports.jsx(Hh,{children:r}):null,a?Gu.exports.jsx(Rh,{type:"button",$isSelected:n,onClick:a,"aria-label":d,disabled:f,$isDisabled:f,children:Gu.exports.jsx(sp,{})}):null]})})}Mh.Frame=function({children:e,progressBar:t,badge:n,icon:r,isCheckeredBackground:o=!1,height:i="fixed",...a}){const{variant:s,isSelected:l}=Ep();return Gu.exports.jsxs(Cp,{$isCheckeredBackground:o,$height:i,...a,children:["clean"===s&&l&&Gu.exports.jsx(kp,{}),Gu.exports.jsx(Sp,{$height:i,children:e}),Gu.exports.jsx(_p,{}),t?Gu.exports.jsx(Op,{children:t}):null,n?Gu.exports.jsx(Ip,{children:Gu.exports.jsx(rd,{color:"black-alpha",children:n})}):null,r?Gu.exports.jsx(Tp,{children:r}):null]})},Mh.Header=function({thumbnail:e,title:t,detail:n,icon:r,isNotTruncated:o=!1,...i}){const{cardTitleId:a}=Ep();return Gu.exports.jsxs(xh,{...i,children:[e?Gu.exports.jsx(wh,{children:e}):null,Gu.exports.jsx(Eh,{id:a,children:o?t:Gu.exports.jsx(yh,{children:t})}),n?Gu.exports.jsx(Ch,{children:o?n:Gu.exports.jsx(yh,{children:n})}):null,r?Gu.exports.jsx(kh,{children:r}):null]})},Mh.AdditionalInfo=function({children:e,padding:t="all",...n}){return Gu.exports.jsx(Sh,{$padding:t,...n,children:e})},Mh.ContextActionButton=_h,Mh.Images=function({children:e,...t}){return Gu.exports.jsx(Th,{...t,children:e})},Mh.Img=function({src:e,contentResize:t="fill",alt:n="",...r}){return Gu.exports.jsx(Oh,{src:e,alt:n,$contentResize:t,...r})},Mh.FilePlaceholder=function({children:e,...t}){return Gu.exports.jsx(jh,{...t,children:Gu.exports.jsx(zh,{children:e})})},Mh.IconPlaceholder=function({children:e,backgroundColor:t=nd.gray25,iconColor:n=nd.gray400a,...r}){return Gu.exports.jsx(Ah,{$backgroundColor:t,$iconColor:n,...r,children:e})},Mh.Stats=function({children:e,...t}){return Gu.exports.jsx(Nh,{...t,children:e})},Mh.StatsItem=function({icon:e,children:t,title:n,...r}){return t&&t.toString().length,Gu.exports.jsx(dh,{content:n,timing:"delay",children:n=>Gu.exports.jsxs(Dh,{...r,...n,children:[Gu.exports.jsx("div",{children:e}),t?Gu.exports.jsx("span",{children:t}):null]})})};const Fh=Uu.div.withConfig({displayName:"Container",componentId:"sc-1qf5tkf-0"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:",";--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:",";border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);pointer-events:",";"],nd.radiusBase,nd.gray100a,(e=>e.$isDisabled?nd.gray400:nd.brandPrimary500),(e=>e.$isDisabled?"0 0 0 transparent":nd.elevation1),nd.gray100a,(e=>"outlined"===e.$variant?Ru(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],nd.spacing4,nd.spacing5,nd.gray200a,nd.elevation2,e.$isSelected?Ru(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):Ru(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],nd.spacing3)),(e=>e.$noMinWidth?"auto":"224px"),nd.gray10,(e=>e.$isDisabled?"none":"initial")),Lh=Uu.button.withConfig({displayName:"MainAction",componentId:"sc-1qf5tkf-1"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:",";"],(e=>e.$isDisabled?"default":"pointer")),Rh=Uu.button.withConfig({displayName:"SelectButton",componentId:"sc-1qf5tkf-2"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb("," / 80%);border-radius:",";background:none;color:transparent;opacity:",";pointer-events:",";&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],nd.spacing4,nd.spacing4,nd["white-rgb"],nd.radiusCircle,(e=>e.$isSelected?"1":"var(--card-actions-opacity)"),(e=>e.$isDisabled?"none":"initial"),nd.white,nd.white,(e=>e.$isSelected&&Ru(["border:none;background:",";color:",";&:hover{background:",";box-shadow:",";}&:active{background:",";box-shadow:none;}"],e.$isDisabled?nd.gray400:nd.brandPrimary500,nd.white,nd.brandPrimary600,nd.elevation1,nd.brandPrimary700))),Hh=Uu.div.withConfig({displayName:"ActionContainer",componentId:"sc-1qf5tkf-3"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],nd.spacing4,nd.spacing4);function $h(){return Gu.exports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:Gu.exports.jsx("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"})})}const Uh="ds-checkbox__pointer-events-wrapper";function Vh({isChecked:e=!1,isDisabled:t=!1,isIndeterminate:n=!1,inputProps:r,subtext:o,children:i,onChange:a=(()=>{}),id:s,...l}){const{isFocusVisible:c,focusProps:u}=Dd();return Gu.exports.jsxs(Wh,{$isIndeterminate:n,$isDisabled:t,$isChecked:e,className:Uh,...l,children:[Gu.exports.jsx(Yh,{type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},"aria-checked":n?"mixed":e,disabled:t,checked:e,onChange:a,id:s,...u,...r}),Gu.exports.jsx(qh,{children:Gu.exports.jsxs(Gh,{$isFocusVisible:c,$isIndeterminate:n,$isDisabled:t,$isChecked:e,children:[e&&Gu.exports.jsx($h,{}),n&&Gu.exports.jsx(Xh,{})]})}),i&&Gu.exports.jsxs(Kh,{$isDisabled:t,children:[i,o&&Gu.exports.jsx(Zh,{$isDisabled:t,children:o})]})]})}Vh.pointerEventsClassname=Uh;const Wh=Uu.label.withConfig({displayName:"Container",componentId:"sc-1xpfd3x-0"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],If.uiTextM,nd.spacing1,(e=>!e.$isDisabled&&"pointer")),qh=Uu.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-1xpfd3x-1"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),Gh=Uu.div.withConfig({displayName:"Indicator",componentId:"sc-1xpfd3x-2"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &&,",":focus-visible &&{"," background-color:",";}"],nd.componentCheckboxBorderUnchecked,nd.radiusMedium,nd.focusRingWidth,nd.radiusMedium,(e=>e.$isFocusVisible&&Ru(["border-color:",";&::before{border-color:",";}"],nd.componentCheckboxBorderUncheckedFocus,e.$isChecked||e.$isIndeterminate?nd.focusRingColorPrimary:nd.focusRingColorSecondary)),(e=>e.$isChecked&&Ru(["border-color:transparent;background-color:",";fill:#fff;"],nd.blue500)),(e=>e.$isIndeterminate&&Ru(["border-color:transparent;background-color:",";"],nd.blue500)),(e=>e.$isDisabled&&Ru(["border-color:transparent;background-color:",";fill:",";"],nd.componentCheckboxFillDisabled,nd.componentCheckboxCheckmarkColorDisabled)),"."+Uh,"."+Uh,(e=>!e.$isChecked&&!e.$isIndeterminate&&!e.$isDisabled&&`border-color: ${nd.componentCheckboxBorderUncheckedHover};`),(e=>!e.$isChecked&&!e.$isIndeterminate||e.$isDisabled?void 0:nd.blue600)),Yh=Uu.input.withConfig({displayName:"Input",componentId:"sc-1xpfd3x-3"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),Xh=Uu.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-1xpfd3x-4"})(["width:8px;height:2px;border-radius:",";background-color:",";"],nd.radiusPill,nd.white),Kh=Uu.div.withConfig({displayName:"Label",componentId:"sc-1xpfd3x-5"})(["display:block;margin-left:8px;color:",";"],(e=>e.$isDisabled?nd.colorTextDisabled:nd.colorText)),Zh=Uu.span.withConfig({displayName:"SubtextHolder",componentId:"sc-1xpfd3x-6"})(["display:block;color:",";font-size:",";"],(e=>e.$isDisabled?nd.colorTextDisabled:nd.colorTextMuted),nd.fontSize75),Jh=u((({size:e="m",isDisabled:t=!1,thumbnail:n,children:r,icon:o,onClick:i,onDelete:a,...s},l)=>{const{isFocusVisible:c,focusProps:u}=Dd(),d=Boolean(i||a);return Gu.exports.jsxs(em,{$size:e,$isDisabled:t,disabled:t&&d,onClick:i,onKeyDown:function(e){i&&"Enter"===e.key?i():!a||"Backspace"!==e.key&&"Delete"!==e.key||a()},$isFocusVisible:c,as:d?"button":"span",ref:l,...u,...s,children:[n&&Gu.exports.jsx(tm,{children:n}),o&&Gu.exports.jsx(im,{children:o}),Gu.exports.jsx("span",{children:r}),a&&Gu.exports.jsx(Qh,{$isDisabled:t,onClick:function(e){e.stopPropagation(),a&&a()},"data-testid":"ds-chip-delete-button",children:Gu.exports.jsx(ip,{size:"18px"})})]})})),Qh=Uu.span.withConfig({displayName:"DeleteButton",componentId:"sc-1ymu8i6-0"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],nd.spacing3,nd.spacing3,nd.radiusCircle,(e=>e.$isDisabled?nd.gray400:nd.gray600),nd.gray50a,nd.gray800,nd.gray100a),em=Uu.button.withConfig({displayName:"ChipStyled",componentId:"sc-1ymu8i6-1"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],nd.radiusPill,nd.gray50,nd.colorText,nd.brandFontStackBase,(e=>e.onClick&&Ru(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],nd.gray75,Qh,nd.gray800,nd.gray100)),(e=>e.$isFocusVisible&&Ru(["background:",";box-shadow:inset ",";outline:0;"],nd.gray25,nd.elevationStatic)),(e=>"m"===e.$size&&rm),(e=>"s"===e.$size&&nm),(e=>e.$isDisabled&&om)),tm=Uu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1ymu8i6-2"})(["display:block;"]),nm=Ru([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],If.uiTextS,tm,nd.spacing3,nd.spacing3),rm=Ru([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],If.uiTextM,tm,nd.spacing3,nd.spacing4),om=Ru(["background-color:",";color:",";pointer-events:none;"],nd.gray25,nd.colorTextDisabled),im=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1ymu8i6-3"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],nd.spacing2,nd.spacing3);function am(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}function sm(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function lm(e){if(!e||!sm(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function cm(){return(cm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function um(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function dm(e){var t=l(e),n=l((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var pm=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},fm=function(e){return"touches"in e},hm=function(e){return e&&e.ownerDocument.defaultView||self},mm=function(e,t,n){var r=e.getBoundingClientRect(),o=fm(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:pm((o.pageX-(r.left+hm(e).pageXOffset))/r.width),top:pm((o.pageY-(r.top+hm(e).pageYOffset))/r.height)}},gm=function(e){!fm(e)&&e.preventDefault()},vm=t.memo((function(e){var n=e.onMove,r=e.onKey,i=um(e,["onMove","onKey"]),s=l(null),c=dm(n),u=dm(r),d=l(null),p=l(!1),f=o((function(){var e=function(e){gm(e),(fm(e)?e.touches.length>0:e.buttons>0)&&s.current?c(mm(s.current,e,d.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=p.current,o=hm(s.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=s.current;if(r&&(gm(t),!function(e,t){return t&&!fm(e)}(t,p.current)&&r)){if(fm(t)){p.current=!0;var o=t.changedTouches||[];o.length&&(d.current=o[0].identifier)}r.focus(),c(mm(r,t,d.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),u({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[u,c]),h=f[0],m=f[1],g=f[2];return a((function(){return g}),[g]),t.createElement("div",cm({},i,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:s,onKeyDown:m,tabIndex:0,role:"slider"}))})),ym=function(e){return e.filter(Boolean).join(" ")},bm=function(e){var n=e.color,r=e.left,o=e.top,i=void 0===o?.5:o,a=ym(["react-colorful__pointer",e.className]);return t.createElement("div",{className:a,style:{top:100*i+"%",left:100*r+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},xm=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},wm=function(e){return jm(Em(e))},Em=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?xm(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?xm(parseInt(e.substring(6,8),16)/255,2):1}},Cm=function(e){return Om(Im(e))},km=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:xm(e.h),s:xm(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:xm(o/2),a:xm(r,2)}},Sm=function(e){var t=km(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},_m=function(e){var t=km(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Im=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:xm(255*[r,s,a,a,l,r][c]),g:xm(255*[l,r,r,s,a,a][c]),b:xm(255*[a,a,l,r,r,s][c]),a:xm(o,2)}},Tm=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Om=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Tm(xm(255*o)):"";return"#"+Tm(t)+Tm(n)+Tm(r)+i},jm=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:xm(60*(s<0?s+6:s)),s:xm(i?a/i*100:0),v:xm(i/255*100),a:o}},zm=t.memo((function(e){var n=e.hue,r=e.onChange,o=ym(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(vm,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:pm(n+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":xm(n),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(bm,{className:"react-colorful__hue-pointer",left:n/360,color:Sm({h:n,s:100,v:100,a:1})})))})),Bm=t.memo((function(e){var n=e.hsva,r=e.onChange,o={backgroundColor:Sm({h:n.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(vm,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:pm(n.s+100*e.left,0,100),v:pm(n.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+xm(n.s)+"%, Brightness "+xm(n.v)+"%"},t.createElement(bm,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:Sm(n)})))})),Pm=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Am=function(e,t){return e.toLowerCase()===t.toLowerCase()||Pm(Em(e),Em(t))};function Nm(e,t,n){var o=dm(n),i=r((function(){return e.toHsva(t)})),s=i[0],u=i[1],d=l({color:t,hsva:s});a((function(){if(!e.equal(t,d.current.color)){var n=e.toHsva(t);d.current={hsva:n,color:t},u(n)}}),[t,e]),a((function(){var t;Pm(s,d.current.hsva)||e.equal(t=e.fromHsva(s),d.current.color)||(d.current={hsva:s,color:t},o(t))}),[s,e,o]);var p=c((function(e){u((function(t){return Object.assign({},t,e)}))}),[]);return[s,p]}var Dm="undefined"!=typeof window?d:a,Mm=new Map,Fm=function(e){Dm((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Mm.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Mm.set(t,n);var r="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},Lm=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=um(e,["className","colorModel","color","onChange"]),c=l(null);Fm(c);var u=Nm(r,i,a),d=u[0],p=u[1],f=ym(["react-colorful",n]);return t.createElement("div",cm({},s,{ref:c,className:f}),t.createElement(Bm,{hsva:d,onChange:p}),t.createElement(zm,{hue:d.h,onChange:p,className:"react-colorful__last-control"}))},Rm={defaultColor:"000",toHsva:wm,fromHsva:function(e){return Cm({h:e.h,s:e.s,v:e.v,a:1})},equal:Am},Hm=function(e){return t.createElement(Lm,cm({},e,{colorModel:Rm}))},$m=function(e){var n=e.className,r=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+_m(Object.assign({},r,{a:0}))+", "+_m(Object.assign({},r,{a:1}))+")"},a=ym(["react-colorful__alpha",n]),s=xm(100*r.a);return t.createElement("div",{className:a},t.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),t.createElement(vm,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:pm(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},t.createElement(bm,{className:"react-colorful__alpha-pointer",left:r.a,color:_m(r)})))},Um=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=um(e,["className","colorModel","color","onChange"]),c=l(null);Fm(c);var u=Nm(r,i,a),d=u[0],p=u[1],f=ym(["react-colorful",n]);return t.createElement("div",cm({},s,{ref:c,className:f}),t.createElement(Bm,{hsva:d,onChange:p}),t.createElement(zm,{hue:d.h,onChange:p}),t.createElement($m,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},Vm={defaultColor:"0001",toHsva:wm,fromHsva:Cm,equal:Am},Wm=function(e){return t.createElement(Um,cm({},e,{colorModel:Vm}))};const qm=Uu.div.withConfig({displayName:"InputWrapper",componentId:"sc-108g0a0-0"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.$isSmall?Ru(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],nd.spacing4,nd.spacing2):Ru(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],nd.spacing5,nd.spacing3)),(e=>e.$isInvalid?nd.red500:nd.gray100),nd.radiusMedium,nd.gray10,(e=>e.$isInvalid?nd.red600:nd.gray200),nd.elevation1,(e=>e.$isInvalid?nd.red500:nd.gray300),nd.gray100,(e=>e.$isDisabled&&Ru(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],nd.gray100,nd.gray25,nd.gray600,nd.gray100)),(e=>"clean"===e.$variant&&Ru(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],nd.gray25a,nd.gray50a))),Gm=Uu.input.withConfig({displayName:"InputStyled",componentId:"sc-108g0a0-1"})(["&&&{flex:1;width:auto;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],nd.colorText,nd.brandFontStackBase,If.uiTextM,nd.gray400,nd.gray600,nd.gray400),Ym=Uu.div.withConfig({displayName:"LeftItems",componentId:"sc-108g0a0-2"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);&:empty{display:none;}"]),Xm=Uu.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-108g0a0-3"})(["flex:none;margin-left:calc("," * -1);color:",";"],nd.spacing2,nd.gray600),Km=Uu.div.withConfig({displayName:"PrefixContainer",componentId:"sc-108g0a0-4"})(["color:",";"],(e=>e.$isDisabled?nd.gray400:nd.gray600)),Zm=Uu.div.withConfig({displayName:"RightItems",componentId:"sc-108g0a0-5"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);&:empty{display:none;}"],nd.spacing2),Jm=Uu.div.withConfig({displayName:"SuffixContainer",componentId:"sc-108g0a0-6"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.$isDisabled?nd.gray400:nd.gray600),nd.spacing2),Qm=Uu.div.withConfig({displayName:"IconRightContainer",componentId:"sc-108g0a0-7"})(["display:grid;flex:none;align-items:center;color:",";"],nd.gray600),eg=Uu.button.withConfig({displayName:"ClearButton",componentId:"sc-108g0a0-8"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],nd.gray200a,nd.gray300a,nd.gray400a);function tg(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const ng=u((({icon:e,onClick:t,isTooltipShown:n=!1,label:r,isDisabled:o=!1,...i},a)=>{const{isFocusVisible:s,focusProps:l}=Dd();return n?Gu.exports.jsx(dh,{content:r,isOpen:!!s||void 0,children:n=>Gu.exports.jsx(rg,{...i,...n,...l,ref:tg(a,n.ref),onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:s,children:e})}):Gu.exports.jsx(rg,{ref:a,...i,...l,onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:s,children:e})})),rg=Uu.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-1dsfcs7-0"})(["vertical-align:middle;width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],nd.gray600,nd.gray800,nd.gray200,(e=>e.$isFocusVisible&&Ru(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],nd.gray800,nd.gray200))),og=new qf(Gf);function ig(){return{translate:(i(Kf)||og).translate}}const ag=u((({hasClearButton:e=!1,icon:t,iconRight:n,id:o,name:i,isDisabled:a=!1,isReadOnly:s=!1,isInvalid:c=!1,isSmall:u=!1,onBlur:d,onChange:p,onFocus:f,onKeyDown:h,placeholder:m,type:g="text",value:v,variant:y="outlined","aria-label":b,"aria-labelledby":x,"aria-describedby":w,"aria-haspopup":E,"aria-expanded":C,"aria-controls":k,"aria-autocomplete":S,"aria-activedescendant":_,inputRef:I,maxLength:T,prefix:O,suffix:j,autoFocus:z=!1,role:B,autoComplete:P="off",...A},N)=>{const[D,M]=r(!1),F=l(null),L=I||F,{translate:R}=ig(),H=e&&v.length>0&&"number"!==g&&"password"!==g,$="password"===g?D?"text":"password":g;function U(){var e;null==(e=null==L?void 0:L.current)||e.focus()}const V="password"===g;return Gu.exports.jsxs(qm,{...A,$isDisabled:a,$isInvalid:c,$isSmall:u,onClick:U,ref:N,$variant:y,children:[Gu.exports.jsxs(Ym,{"data-testid":"ds-input-left-items",children:[t&&Gu.exports.jsx(Xm,{children:t}),O&&Gu.exports.jsx(Km,{$isDisabled:a,children:O})]}),Gu.exports.jsx(Gm,{autoComplete:P,autoCorrect:"off",disabled:a,$isDisabled:a,readOnly:s,onBlur:d,onChange:function(e){const t=e.currentTarget.value;null==p||p(t)},onFocus:f,onKeyDown:h,placeholder:m,ref:L,spellCheck:!1,type:$,value:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":w,"aria-haspopup":E,"aria-expanded":C,"aria-controls":k,"aria-autocomplete":S,"aria-activedescendant":_,"aria-invalid":c,role:B,id:o,name:i,maxLength:T,autoFocus:z}),Gu.exports.jsxs(Zm,{"data-testid":"ds-input-right-items",children:[j&&Gu.exports.jsx(Jm,{$isDisabled:a,children:j}),V&&!a&&Gu.exports.jsx(ng,{"data-testid":"ds-password-visibility-toggle",onClick:()=>(M((e=>!e)),void U()),label:R(D?"input.hide-password":"input.show-password"),icon:D?Gu.exports.jsx(vp,{}):Gu.exports.jsx(fp,{}),isTooltipShown:!0}),H&&!a&&Gu.exports.jsx(eg,{onClick:function(){null==p||p(""),U()},type:"button","aria-label":R("input.clear"),children:Gu.exports.jsx(lp,{})}),n&&Gu.exports.jsx(Qm,{children:n})]})]})})),sg="ds-thumbnail__pointer-events-wrapper",lg=Uu.div.withConfig({displayName:"OverlayStyled",componentId:"sc-tjrr3h-0"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);mask-image:var(--ds-thumbnail-indicator-cutoff);",""],nd.gray200a,nd.gray10,(e=>e.$isConcealed&&Ru(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+sg,"."+sg))),cg=n((()=>null)),ug=2,dg={state:{square:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},circle:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}}},status:{square:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}},circle:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},pg=Ru(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),fg=Uu.svg.withConfig({displayName:"SvgIcon",componentId:"sc-18umtiy-0"})(["",""],pg),hg=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-18umtiy-1"})([""," display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:",";color:",";svg{width:12px;height:12px;}"],pg,(({$backgroundColor:e})=>nd[e]),(({$iconColor:e})=>nd[e])),mg={draft:function({...e}){return Gu.exports.jsxs(fg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.gray400,children:[Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Gu.exports.jsx("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"})]})},error:function({...e}){return Gu.exports.jsxs(fg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.red400,children:[Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Gu.exports.jsx("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),Gu.exports.jsx("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"})]})},loading:function({...e}){return Gu.exports.jsx(fg,{...e,viewBox:"0 0 14 14","aria-hidden":"true",fill:nd.gray400,children:Gu.exports.jsx(vg,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"})})},negative:function({...e}){return Gu.exports.jsxs(fg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.red400,children:[Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Gu.exports.jsx("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"})]})},positive:function({...e}){return Gu.exports.jsxs(fg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.teal500,children:[Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Gu.exports.jsx("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"})]})}},gg=qu`
|
|
26
|
+
`,Zd=Xu.svg.withConfig({displayName:"Svg",componentId:"sc-5lftme-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Xd),Jd=Xu.circle.withConfig({displayName:"Circle",componentId:"sc-5lftme-1"})(["stroke:currentcolor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Kd),Qd=u((({children:e,className:t="",rightIcon:n,type:r="button","aria-label":o,isFullWidth:i=!1,icon:a,variant:s="secondary",isSmall:l=!1,isDisabled:c=!1,isPressed:u=!1,isLoading:d=!1,...p},f)=>{const h=function({variant:e,isSmall:t,icon:n,isDisabled:r,className:o=""}){return[o,"action-btn","secondary"===e||"clean"===e?"cancel gray":"cta-main blue",t?"button-small":"",n?"button-icon":"",r?"disabled":""].join(" ")}({className:t,variant:s,isSmall:l,icon:a,isDisabled:c});return Qu.exports.jsx(Ud,{"aria-label":o||p.title,className:h,disabled:c||d,type:r,$variant:s,$isPressed:u,$isSmall:l,$isFullWidth:i,as:p.href?"a":"button",ref:f,...p,children:d?Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(qd,{$lastChild:!e,children:Qu.exports.jsx(Yd,{})}),e]}):Qu.exports.jsxs(Qu.exports.Fragment,{children:[a&&Qu.exports.jsx(qd,{$lastChild:!e,children:a}),e,n&&Qu.exports.jsx(Gd,{children:n})]})})})),ep=n("modern"),tp=u((({children:e,variant:t="secondary",isSmall:n=!1,icon:r,rightIcon:o,isDisabled:i=!1,isLoading:a=!1,type:s="button",isPressed:l=!1,isFullWidth:c=!1,...u},d)=>{const{isFocusVisible:p,focusProps:f}=$d();return Qu.exports.jsx(Vd,{$variant:t,$isSmall:n,$isPressed:l,$isFullWidth:c,disabled:a||i,type:s,as:u.href?"a":"button",$isFocusVisible:p,ref:d,...f,...u,children:a?Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(qd,{"data-testid":"ds-button-loading-icon",$lastChild:!e,children:Qu.exports.jsx(Yd,{})}),e]}):Qu.exports.jsxs(Qu.exports.Fragment,{children:[r&&Qu.exports.jsx(qd,{$lastChild:!e,children:r}),e,o&&Qu.exports.jsx(Gd,{children:o})]})})})),np=u(((e,t)=>"legacy"===(r(ep)||"modern")?Qu.exports.jsx(Qd,{ref:t,...e}):Qu.exports.jsx(tp,{ref:t,...e}))),rp=Object.assign(np,{VersionProvider:ep.Provider});function op({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M15 9h2V7h4V5h-4V3h-2v6ZM7 9v2H3v2h4v2h2V9H7Zm6 10v2h-2v-6h2v2h8v2h-8ZM3 19v-2h6v2H3Zm18-8v2H11v-2h10Zm-8-6H3v1.99h10V5Z",clipRule:"evenodd"})})}function ip({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27ZM12 17.5 6.5 12H10v-2h4v2h3.5L12 17.5ZM5.12 5l.81-1h12l.94 1H5.12Z"})})}function ap({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41Z"})})}function sp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41Z"})})}function lp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41Z"})})}function cp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5v-5ZM7 9h3V7H5v5h2V9Zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Zm0 16.01H3V4.99h18v14.02Z"})})}function up({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:[Qu.exports.jsx("path",{fill:"currentColor",d:"M15.2 12a3.2 3.2 0 1 1-6.4 0 3.2 3.2 0 0 1 6.4 0Z"}),Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.17 4 9 2h6l1.83 2H20c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h3.17ZM7 12c0 2.76 2.24 5 5 5s5-2.24 5-5-2.24-5-5-5-5 2.24-5 5Z",clipRule:"evenodd"})]})}function dp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"})})}function pp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"m7 10 5 5 5-5H7Z"})})}function fp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17Z"})})}function hp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2Zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59Z"})})}function mp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 1v16h16v2h-4v4h-2v-4H7c-1.1 0-2-.9-2-2V7H1V5h4V1h2Zm12 14h-2V7H9V5h8c1.1 0 2 .9 2 2v8Z",clipRule:"evenodd"})})}function gp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59ZM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2Z"})})}function vp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6Zm7 7V3.5L18.5 9H13Z"})})}function yp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2Z"})})}function bp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m2.01 3.87 1.41-1.42L21.15 20.2l-1.41 1.41-3.43-3.43c-1.34.52-2.79.82-4.31.82-5 0-9.27-3.11-11-7.5.77-1.97 2.06-3.67 3.69-4.95L2.01 3.87ZM17 11.5c0-2.76-2.24-5-5-5-.51 0-1 .1-1.47.24L8.36 4.57C9.51 4.2 10.73 4 12 4c5 0 9.27 3.11 11 7.49-.69 1.76-1.79 3.3-3.18 4.53l-3.06-3.06c.14-.46.24-.95.24-1.46Zm-5 5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5Zm2.97-5.33a2.97 2.97 0 0 0-2.64-2.64l2.64 2.64Z",clipRule:"evenodd"})})}function xp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19 3c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14Zm-8 13.51L8.5 13.5 5 18h14l-4.5-6-3.5 4.51Z",clipRule:"evenodd"})})}function wp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 5v14h14v-7h2v7c0 1.1-.9 2-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7v2H5Zm9 0V3h7v7h-2V6.41l-9.83 9.83-1.41-1.41L17.59 5H14Z",clipRule:"evenodd"})})}function Ep({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5Zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14Z"})})}function Cp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5ZM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5Zm-3-5c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3Z",clipRule:"evenodd"})})}function kp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.41 2.58 9 9c.36.36.59.87.59 1.42 0 .55-.22 1.05-.59 1.41l-7 7c-.36.37-.86.59-1.41.59-.55 0-1.05-.22-1.41-.58l-9-9C2.22 12.05 2 11.55 2 11V4c0-1.1.9-2 2-2h7c.55 0 1.05.22 1.41.58ZM4 5.5C4 6.33 4.67 7 5.5 7S7 6.33 7 5.5 6.33 4 5.5 4 4 4.67 4 5.5Z",clipRule:"evenodd"})})}function Sp({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4Z"})})}function _p({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",d:"M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02ZM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77 0-4.28-2.99-7.86-7-8.77Z"})})}const Ip=n(null);function Tp(){const e=r(Ip);if(!e)throw new Error("Card compound components cannot be rendered outside the Card component");return e}const Op=Xu.div.withConfig({displayName:"FrameStyled",componentId:"sc-1bnqt8s-0"})(["position:relative;min-height:92px;border-radius:var(--card-frame-border-radius);background:",";",""],(e=>e.$isCheckeredBackground?"url(\"data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='12' width='12' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='6' width='6' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='6' width='6' y='6' x='6' fill='%23e9ecee'/%3E%3C/svg%3E%0A\") ":ld.gray25),(e=>"fixed"===e.$height&&qu(["&::before{content:'';display:inline-block;vertical-align:top;width:0;height:0;padding-bottom:calc(100% / (16 / 10));}"]))),jp=Xu.div.withConfig({displayName:"FocusRing",componentId:"sc-1bnqt8s-1"})(["position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px;border:var(--card-selected-border-width) solid var(--card-selected-border-color);border-radius:calc(var(--card-border-radius) + 4px);"]),zp=Xu.div.withConfig({displayName:"Children",componentId:"sc-1bnqt8s-2"})([""," display:grid;overflow:hidden;border-radius:var(--card-frame-border-radius);"],(e=>"fixed"===e.$height&&qu(["position:absolute;inset:0;"]))),Bp=Xu.div.withConfig({displayName:"Overlay",componentId:"sc-1bnqt8s-3"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:var(--card-inner-border-width) solid var(--card-inner-border-color);border-bottom-width:var(--card-frame-border-bottom-width);border-radius:var(--card-frame-border-radius);background:var(--card-frame-overlay-color);"]),Pp=Xu.div.withConfig({displayName:"BadgeContainer",componentId:"sc-1bnqt8s-4"})(["position:absolute;right:",";bottom:",";"],ld.spacing4,ld.spacing4),Ap=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1bnqt8s-5"})(["position:absolute;bottom:",";left:",";color:",";path{stroke:",";stroke-width:2px;paint-order:stroke;&[d='M0 0h24v24H0z']{stroke:none;}}"],ld.spacing4,ld.spacing4,ld.white,ld.gray100a),Np=Xu.div.withConfig({displayName:"ProgressContainer",componentId:"sc-1bnqt8s-6"})(["position:absolute;bottom:0;left:0;width:100%;"]);function Dp(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function Mp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fp(e,t,n){return t&&Mp(e.prototype,t),n&&Mp(e,n),e}function Lp(){return Lp=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},Lp.apply(this,arguments)}function Rp(e,t){return Rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rp(e,t)}function Hp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hp(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Up(e){var t=l(null);return function(n){n&&n!==t.current&&(t.current=n,e(n))}}var Vp="undefined"!=typeof window?d:a;function Wp(e){return parseFloat(e.replace("px",""))}function qp(e,t,n){return e<t?t:e>n?n:e}function Gp(e){return null!=e}function Yp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n,r=$p(t);!(n=r()).done;){var o=n.value;o&&("function"==typeof o?o(e):o.current=e)}}}function Xp(e,t){var n=[];if(!e||!t||e===document.body)return n;var r=t.getComputedStyle(e);return[r.overflow,r.overflowX,r.overflowY].some((function(e){return["auto","scroll"].includes(e)}))&&n.push(e),[].concat(n,Xp(e.parentElement,t))}function Kp(e){return"react-laag: Could not find a valid reference for the "+e+" element. There might be 2 causes:\n - Make sure that the 'ref' is set correctly on the "+e+' element when isOpen: true. Also make sure your component forwards the ref with "forwardRef()".\n - Make sure that you are actually rendering the '+e+" when the isOpen prop is set to true"}function Zp(e){var t=e.enabled,n=e.onChange,r=e.environment,o=e.ResizeObserverPolyfill,s=e.overflowContainer,u=e.triggerOption,d=function(e,t){if(void 0!==e)return t||e.ResizeObserver}(r,o);a((function(){}),[d]);var p,f,h=l(null),m=Boolean(u),g=(f=l({scrollContainers:[],trigger:null,layer:null}),i((function(){return[function(){return f.current},function(e){f.current="function"==typeof e?e(f.current):e}]}),[])),v=g[0],y=g[1],b=(p=l([]),i((function(){return{hasEventSubscriptions:function(){return p.current.length>0},removeAllEventSubscriptions:function(){for(var e,t=$p(p.current);!(e=t()).done;)(0,e.value)();p.current=[]},addEventSubscription:function(e){p.current.push(e)}}}),[])),x=b.hasEventSubscriptions,w=b.addEventSubscription,E=b.removeAllEventSubscriptions,C=c((function(){var e=v(),t=e.layer,o=e.trigger,i=e.scrollContainers,a=i[0];if(!t)throw new Error(Kp("layer"));if(!o&&!m)throw new Error(Kp("trigger"));var s={top:0,left:0};if(a){var l=a.scrollLeft;s={top:a.scrollTop,left:l}}else{var c=r.scrollX;s={top:r.scrollY,left:c}}var u={left:0,top:0};if(a){var d=r.getComputedStyle(a),p=d.borderLeftWidth,f=d.borderTopWidth;u={left:Wp(p)||0,top:Wp(f)||0}}n({layer:t,trigger:o,scrollContainers:i,arrow:h.current},s,u)}),[v,n,r,h,m]),k=c((function(){var e=v(),t=e.trigger,n=e.layer,o=e.scrollContainers;if(!n)throw new Error(Kp("layer"));if(!t&&!m)throw new Error(Kp("trigger"));if(d){for(var i=!1,a=new d((function(){i?C():i=!0})),s=0,l=[t,n,document.body];s<l.length;s++){var c=l[s];c&&a.observe(c)}w((function(){for(var e=0,r=[t,n,document.body];e<r.length;e++){var o=r[e];o&&a.unobserve(o)}a.disconnect()}))}for(var u,p=function(){var e=u.value;e.addEventListener("scroll",C),w((function(){return e.removeEventListener("scroll",C)}))},f=$p([r].concat(o));!(u=f()).done;)p()}),[v,w,C,r,d,m]),S=c((function(e,n){t&&e&&e!==n&&(E(),k(),C())}),[E,k,C,t]),_=Up(c((function(e){var t=v().layer;y((function(t){return Lp({},t,{layer:e})})),S(t,e)}),[v,y,S])),I=c((function(e){var t=Xp(e,r),n=t[0];if(n){var o=r.getComputedStyle(n).position;["relative","absolute","fixed"].includes(o)||s||(n.style.position="relative")}return t}),[r,s]),T=Up(c((function(e){var t=I(e),n=v().trigger;y((function(n){return Lp({},n,{trigger:e,scrollContainers:t})})),S(n,e)}),[v,y,S,I])),O=null==u||null==u.getParent?void 0:u.getParent();return Vp((function(){O&&y((function(e){return Lp({},e,{scrollContainers:I(O)})}))}),[O,y,I]),Vp((function(){return t&&(x()||k()),function(){x()&&E()}}),[t,x,k,E]),Vp((function(){t&&C()})),{triggerRef:T,layerRef:_,arrowRef:h,closestScrollContainer:v().scrollContainers[0]||null}}var Jp=n({});function Qp(e){var t=e.children,n=e.registrations,r=c((function(e){return n.current.add(e),function(){return n.current.delete(e)}}),[n]);return s(Jp.Provider,{value:r},t)}var ef={top:"bottom",left:"right",bottom:"top",right:"left",center:"center"},tf=function(){function e(e,t,n,r,o,i,a,s,l){this.prop=void 0,this.opposite=void 0,this.isHorizontal=void 0,this.sizeProp=void 0,this.oppositeSizeProp=void 0,this.cssProp=void 0,this.oppositeCssProp=void 0,this.isCenter=void 0,this.isPush=void 0,this.prop=e,this.opposite=t,this.isHorizontal=n,this.sizeProp=r,this.oppositeSizeProp=o,this.cssProp=i,this.oppositeCssProp=a,this.isCenter=s,this.isPush=l}var t=e.prototype;return t.factor=function(e){return e*(this.isPush?1:-1)},t.isOppositeDirection=function(e){return this.isHorizontal!==e.isHorizontal},e}();function nf(e,t){void 0===t&&(t=!0);var n=["left","right"].includes(e);return new tf(e,t?nf(ef[e],!1):null,n,n?"width":"height",n?"height":"width",n?"left":"top",n?"top":"left","center"===e,!["right","bottom"].includes(e))}var rf={top:nf("top"),bottom:nf("bottom"),left:nf("left"),right:nf("right")},of=Lp({},rf,{center:nf("center")}),af=["top","left","bottom","right"],sf=function(){function e(e){return this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,Object.assign(this,e)}return e.mergeSmallestSides=function(t){var n=t[0],r=t.slice(1);if(!n)throw new Error("Please provide at least 1 bounds objects in order to merge");for(var o,i=Object.fromEntries(af.map((function(e){return[e,n[e]]}))),a=$p(r);!(o=a()).done;)for(var s,l=o.value,c=$p(af);!(s=c()).done;){var u=s.value;i[u]=Math.min(i[u],l[u])}return new e(i)},Fp(e,[{key:"allSidesArePositive",get:function(){var e=this;return af.every((function(t){return e[t]>=0}))}},{key:"negativeSides",get:function(){var e=this;return Object.fromEntries(af.filter((function(t){return e[t]<0})).map((function(t){return[t,e[t]]})))}}]),e}();function lf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return e+(t?Wp(t):0)}),0)}function cf(e){return{top:e.top,left:e.left,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}var uf={top:0,left:0,right:0,bottom:0,width:0,height:0},df=function(){function e(e){return void 0===e&&(e={}),this.top=void 0,this.left=void 0,this.right=void 0,this.bottom=void 0,this.width=void 0,this.height=void 0,Object.assign(this,uf,e)}e.create=function(t){return new e(t)},e.fromElement=function(t,n){void 0===n&&(n={});var r=n,o=r.withTransform,i=void 0===o||o,a=r.environment,s=void 0===a?window:a,l=r.withScrollbars,c=void 0===l||l,u=new e(cf(t.getBoundingClientRect()));if(!i){var d=s.getComputedStyle(t),p=d.width,f=d.height,h=d.boxSizing,m=d.borderLeft,g=d.borderRight,v=d.borderTop,y=d.borderBottom,b=d.paddingLeft,x=d.paddingRight,w=d.paddingTop,E=d.paddingBottom;u=new e(Lp({},u,{width:"border-box"===h?Wp(p):lf(p,m,g,b,x),height:"border-box"===h?Wp(f):lf(f,v,y,w,E)}))}if(!c){var C=u.width-t.clientWidth,k=u.height-t.clientHeight;return u.substract({right:C,bottom:k})}return u},e.empty=function(){return new e},e.fromWindow=function(t){var n,r=null!=(n=null==t?void 0:t.document.scrollingElement)?n:null==t?void 0:t.document.documentElement,o=null!=r?r:{},i=o.clientWidth,a=void 0===i?0:i,s=o.clientHeight,l=void 0===s?0:s;return new e({width:a,height:l,right:a,bottom:l})};var t=e.prototype;return t.toObject=function(){return cf(this)},t.merge=function(t){var n=this.toObject();return new e(Lp({},n,"function"==typeof t?t(n):t))},t.substract=function(t){for(var n=this.toObject(),r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];if(a in rf){var l=rf[a];n[a]+=l.factor(s),n[l.isHorizontal?"width":"height"]-=s}else n[a]-=s||0}return new e(n)},t.offsetsTo=function(e){return new sf({top:e.top-this.top,bottom:this.bottom-e.bottom,left:e.left-this.left,right:this.right-e.right})},t.mapSides=function(t){for(var n=this.toObject(),r=0,o=Object.values(rf);r<o.length;r++){var i=o[r];n[i.prop]=t(i,n[i.prop])}return new e(n)},Fp(e,[{key:"surface",get:function(){return this.width*this.height}}]),e}(),pf=function(){function e(e,t,n,r,o){this.primary=void 0,this.secondary=void 0,this.offsets=void 0,this.subjectsBounds=void 0,this._cachedLayerBounds=null,this._cachedContainerOffsets=null,this.primary=e,this.secondary=t,this.offsets=o,this.setSubjectsBounds(n,r)}var t=e.prototype;return t.setSubjectsBounds=function(e,t){if(t){var n="function"==typeof t?t(this.primary.prop):t;this.subjectsBounds=e.merge({layer:Lp({},e.layer,n)})}else this.subjectsBounds=e},t.getLayerBounds=function(e){if(void 0===e&&(e=0),this._cachedLayerBounds&&0===e)return this._cachedLayerBounds;var t=this.primary,n=this.secondary,r=this.subjectsBounds,o=r.trigger,i=r.layer,a=r.arrow,s=t.isHorizontal,l=t.oppositeCssProp,c=t.oppositeSizeProp,u=t.prop,d=t.opposite,p=df.empty();p[d.prop]=o[u]-t.factor(this.offsets.trigger),p[u]=p[d.prop]-t.factor(i[t.sizeProp]);var f=2*this.offsets.arrow,h=o[l]-(i[c]-a[c])+f,m=o[l]+(o[c]-a[c])-f;if(n.isPush||(h+=i[c],m+=i[c]),n.isCenter){var g=(s?rf.top:rf.left).prop,v=(s?rf.bottom:rf.right).prop;p[g]=qp(o[g]+o[c]/2-i[c]/2+e,h,m),p[v]=p[g]+i[c]}else{var y=n,b=o[y.prop],x=b<h?h-b:b>m?m-b:0;p[y.prop]=qp(b+e+x,h,m),p[y.opposite.prop]=p[y.prop]+n.factor(i[c])}p.width=p.right-p.left,p.height=p.bottom-p.top;var w=df.create(p);return 0===e&&(this._cachedLayerBounds=w),w},t.getLayerCollisionBounds=function(){var e=this.offsets.container;return this.getLayerBounds().mapSides((function(t,n){return n-t.factor(e)})).merge((function(t){var n=t.width,r=t.height;return{width:n+2*e,height:r+2*e}}))},t.getContainerOffsets=function(e){if(this._cachedContainerOffsets&&!e)return this._cachedContainerOffsets;var t=this.subjectsBounds.merge({layer:e||this.getLayerCollisionBounds()}),n=sf.mergeSmallestSides(t.layerOffsetsToScrollContainers);return e||(this._cachedContainerOffsets=n),n},Fp(e,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var e=this.secondary.isHorizontal,t=this.subjectsBounds,n=t.triggerHasBiggerWidth,r=t.triggerHasBiggerHeight;return e&&n||!e&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var e=this.getLayerBounds(),t=this.getContainerOffsets(e).negativeSides;for(var n in t)t[n]=-t[n];return e.substract(t).surface}},{key:"secondaryOffsetSide",get:function(){var e,t,n=this,r=this.getContainerOffsets(),o=null!=(e=null==(t=Object.entries(r.negativeSides).map((function(e){var t=e[0],n=e[1];return[rf[t],n]})).filter((function(e){var t=e[0];return n.primary.isOppositeDirection(t)})).sort((function(e,t){var n=e[1];return t[1]-n})))?void 0:t[0])?e:[];return o[0]||null}}]),e}(),ff=function(e){var t,n;function r(){return e.apply(this,arguments)||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Rp(t,n),r.prototype.getLayerBounds=function(){var e=this.subjectsBounds,t=e.trigger,n=e.layer,r=df.empty();return r.top=t.top+t.height/2-n.height/2,r.bottom=r.top+n.height,r.left=t.left+t.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},r}(pf),hf={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},mf=function(){function e(e,t,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=e,this.config=t,this.subjectsBounds=n}e.getSidesFromPlacementType=function(e){var t=e.split("-"),n=t[0],r=t[1],o=rf[n];return[o,"center"===r?of.center:o.isHorizontal?"start"===r?of.top:of.bottom:"start"===r?of.left:of.right]},e.create=function(t,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function o(o){void 0===o&&(o=n.placement);var i=e.getSidesFromPlacementType(o),a=i[0],s=i[1],l=rf[a.isHorizontal?n.preferY:n.preferX],c=!a.isHorizontal&&t.triggerHasBiggerWidth||a.isHorizontal&&t.triggerHasBiggerHeight;function u(e,o){return new pf(e,o,t,n.layerDimensions,r)}var d=[];return d[0]=u(a,s),d[1]=u(a,s.isCenter?l:of.center),d[2]=u(a,of[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d[3]=u(l,c?a:of[a.opposite.prop]),d[4]=u(l,of.center),d[5]=u(l,c?of[a.opposite.prop]:a),d[6]=u(rf[l.opposite.prop],c?a:of[a.opposite.prop]),d[7]=u(rf[l.opposite.prop],of.center),d[8]=u(rf[l.opposite.prop],c?of[a.opposite.prop]:a),d[9]=u(rf[a.opposite.prop],s),d[10]=u(rf[a.opposite.prop],s.isCenter?l:of.center),d[11]=u(rf[a.opposite.prop],of[(s.opposite.isCenter?l.opposite:s.opposite).prop]),d.filter((function(e){return e.type===n.placement||n.possiblePlacements.includes(e.type)}))}return"center"===n.placement?new e([new ff(of.center,of.center,t,n.layerDimensions,r)].concat(o(n.preferY+"-"+n.preferX)),n,t):new e(o(),n,t)};var t=e.prototype;return t.filterPlacementsBySide=function(e){return this.placements.filter((function(t){return t.primary===e}))},t.findFirstPlacementThatFits=function(){return this.placements.find((function(e){return e.fitsContainer}))},t.placementWithBiggestVisibleSurface=function(){var e=this.placements.map((function(e){return{placement:e,surface:e.visibleSurface}})).sort((function(e,t){return t.surface-e.surface}));return e[0].placement},t.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},t.getSecondaryOffset=function(e){var t=this.config,n=t.auto,r=t.snap;if(!n||r||e instanceof ff)return 0;var o=this.filterPlacementsBySide(e.primary);if(0===o.indexOf(e)&&e.fitsContainer)return 0;var i=o.find((function(e){return!e.fitsContainer}));if(!i)return 0;var a=i.secondaryOffsetSide;if(!a)return 0;var s,l=e.getContainerOffsets(),c=e.secondary;return s=e.triggerIsBigger||i===e?a.isPush?-1:1:c===of.left||[of.top,of.center].includes(c)&&a.isPush?-1:1,l[a.prop]*s},t.getStyles=function(e,t,n,r){var o={willChange:"top, left, width, height"},i=function(e,t,n){var r;if(t.primary.isCenter)return hf;var o=e.layer,i=e.trigger,a=e.arrow,s=t.primary.oppositeSizeProp,l=i[s]>o[s],c=n+a[s]/2,u=o[s]-a[s]/2-n,d=function(e,t,n){var r=e.layer,o=e.trigger,i=e.arrow,a=t.primary.oppositeSizeProp,s=t.primary.isHorizontal?["top","bottom"]:["left","right"],l=s[0],c=s[1],u=r[l]+r[a]/2-o[l]-i[a]/2-n,d=r[c]-r[a]/2-o[c]+i[a]/2+n;return(u<0?-u:0)+(d>0?-d:0)}(e,t,n),p=t.primary.prop,f=t.primary.oppositeCssProp,h=l?o[s]/2+d:i[f]+i[s]/2-o[f];return Lp({},hf,((r={})[p]="100%",r[f]=qp(h,c,u),r))}(this.subjectsBounds.merge({layer:e}),t,this.config.arrowOffset);return{arrow:i,layer:this.config.overflowContainer?Lp({},o,{position:"fixed",top:e.top,left:e.left}):Lp({},o,{position:"absolute",top:e.top-this.subjectsBounds.parent.top+n.top-r.top,left:e.left-this.subjectsBounds.parent.left+n.left-r.left})}},t.getHasDisappeared=function(e){var t=this.config.overflowContainer?this.subjectsBounds.trigger:e,n=sf.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(t,!0));return Object.entries(n.negativeSides).some((function(e){var n=e[0];return e[1]<=-t[rf[n].sizeProp]}))?"full":n.allSidesArePositive?null:"partial"},t.result=function(e,t){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),o=n.getLayerBounds(r);return{styles:this.getStyles(o,n,e,t),layerSide:n.primary.prop,placement:n,layerBounds:o,hasDisappeared:this.getHasDisappeared(o)}},e}(),gf=function(){function e(e,t){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=t,Object.assign(this,e)}e.create=function(t,n,r,o,i,a,s,l){var c=df.fromWindow(t);return new e({layer:df.fromElement(n,{environment:t,withTransform:!1}),trigger:l?df.create(cf(l())):df.fromElement(r),arrow:i?df.fromElement(i):df.empty(),parent:o?df.fromElement(o):c,window:c,scrollContainers:[c].concat(a.map((function(e){return df.fromElement(e,{withScrollbars:!1})})))},s)};var t=e.prototype;return t.merge=function(t){return new e(Lp({},this,t),this.overflowContainer)},t.offsetsToScrollContainers=function(e,t){return void 0===t&&(t=!1),(this.overflowContainer&&!t?[this.window]:this.scrollContainers).map((function(t){return t.offsetsTo(e)}))},Fp(e,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),e}(),vf=null,yf={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0,trigger:void 0};function bf(e){var t,n=e.isOpen,i=void 0!==n&&n,u=e.overflowContainer,d=void 0===u?yf.overflowContainer:u,p=e.environment,f=void 0===p?"undefined"!=typeof window?window:void 0:p,h=e.ResizeObserver,g=e.placement,v=void 0===g?yf.placement:g,y=e.possiblePlacements,b=void 0===y?yf.possiblePlacements:y,x=e.preferX,w=void 0===x?yf.preferX:x,E=e.preferY,C=void 0===E?yf.preferY:E,k=e.auto,S=void 0===k?yf.auto:k,_=e.snap,I=void 0===_?yf.snap:_,T=e.triggerOffset,O=void 0===T?yf.triggerOffset:T,j=e.containerOffset,z=void 0===j?yf.containerOffset:j,B=e.arrowOffset,P=void 0===B?yf.arrowOffset:B,A=e.container,N=void 0===A?yf.container:A,D=e.layerDimensions,M=void 0===D?null:D,F=e.onDisappear,L=e.onOutsideClick,R=e.onParentClose,H=e.trigger,$=o((function(){return{layerSide:"center"===v?"center":mf.getSidesFromPlacementType(v)[0].prop,styles:{layer:{position:d?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}})),U=$[0],V=$[1],W=l(null),q=function(e,t){var n=l(e);return t?(n.current=e,n):(n.current=null,n)}(U,i),G=l({cancelled:!1});a((function(){return function(){G.current.cancelled=!0}}),[]);var Y=c((function(e,t,n){var r=e.arrow,o=e.layer,i=e.scrollContainers,a=e.trigger,s=i[0],l=gf.create(f,o,a,s,r,i,d,null==H?void 0:H.getBounds),c={placement:v,possiblePlacements:b,auto:S,layerDimensions:M,arrowOffset:P,containerOffset:z,triggerOffset:O,preferX:w,preferY:C,snap:I,overflowContainer:d},u=mf.create(l,c).result(t,n),p=u.hasDisappeared,h={layerSide:u.layerSide,styles:u.styles};if(!q.current||function(e,t){if(e.layerSide!==t.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n<r.length;n++){var o=r[n];if(e.styles.layer[o]!==t.styles.layer[o]||e.styles.arrow[o]!==t.styles.arrow[o])return!0}return!1}(q.current,h)){q.current=h,G.current.cancelled=!0;var m={cancelled:!1};G.current=m,Promise.resolve().then((function(){m.cancelled||V(h)}))}Gp(p)&&Gp(F)&&F(p)}),[P,S,z,f,M,F,d,v,b,w,C,I,O,q,H]),X=Zp({ResizeObserverPolyfill:h,environment:f,enabled:i,overflowContainer:d,onChange:Y,triggerOption:H}),K=X.triggerRef,Z=X.layerRef,J=X.arrowRef,Q=X.closestScrollContainer,ee=function(e){var t=e.isOpen,n=e.onOutsideClick,o=e.onParentClose,i=l(null),s=l(null),u=l(new Set),d=r(Jp),p=c((function(e){var t=e.target,n=i.current&&i.current.contains(t),r=s.current&&s.current.contains(t),o=function(e,t){for(var n,r=$p(e);!(n=r()).done;)if(!(0,n.value.shouldCloseWhenClickedOutside)(t))return!1;return!0}(u.current,e);return r&&o&&u.current.forEach((function(e){return(0,e.closeChild)()})),!n&&!r&&o}),[i,s,u]);return a((function(){if("function"==typeof d)return d({shouldCloseWhenClickedOutside:p,closeChild:function(){o&&o()}})}),[d,p,o,u]),a((function(){if(t&&n&&"function"!=typeof d)return document.addEventListener("click",e,!0),function(){return document.removeEventListener("click",e,!0)};function e(e){p(e)&&n()}}),[t,n,p,d]),a((function(){t||u.current.forEach((function(e){return(0,e.closeChild)()}))}),[t]),{closeOnOutsideClickRefs:{trigger:i,layer:s},registrations:u}}({isOpen:i,onOutsideClick:L,onParentClose:R}),te=ee.closeOnOutsideClickRefs,ne=ee.registrations,re={triggerProps:Boolean(H)?{}:{ref:Yp(K,te.trigger,W)},layerProps:{ref:Yp(Z,te.layer),style:U.styles.layer},arrowProps:{ref:J,style:U.styles.arrow,layerSide:U.layerSide},layerSide:U.layerSide,triggerBounds:i?H?H.getBounds():null==(t=W.current)?void 0:t.getBoundingClientRect():null,renderLayer:function(e){return"undefined"!=typeof document?m(s(Qp,{registrations:ne,children:e}),d||!Q?function(e){var t;if("function"==typeof e){if(!((t=e())&&t instanceof HTMLElement))throw new Error("react-laag: You've passed a function to the 'container' prop, but it returned no valid HTMLElement")}else if(e instanceof HTMLElement)t=e;else if("string"==typeof e){if(!(t=document.getElementById(e)))throw new Error("react-laag: You've passed element with id '"+e+"' to the 'container' prop, but it returned no valid HTMLElement")}else{if(vf instanceof HTMLElement)return vf;(t=document.getElementById(Ef))||((t=document.createElement("div")).id=Ef,t.style.cssText="\n position: absolute;\n top: 0px;\n left: 0px;\n right: 0px;\n ",document.body.appendChild(t))}return t}(N):Q):null}};return re}var xf,wf,Ef="layers";function Cf(e){if(!/^#([\da-f]{3}){1,2}$/i.test(e))throw new Error(`Invalid HEX to RGB conversion: ${e}`);let t,n,r;return 4===e.length?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],r="0x"+e[3]+e[3]):7===e.length?(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],r="0x"+e[5]+e[6]):(t="",n="",r=""),`${Number(t)} ${Number(n)} ${Number(r)}`}(wf=xf||(xf={}))[wf.ENTERING=0]="ENTERING",wf[wf.LEAVING=1]="LEAVING",wf[wf.IDLE=2]="IDLE";const kf={"--white":"#ffffff","--white-rgb":Cf("#ffffff"),"--gray1000":"#031026","--gray1000-rgb":Cf("#031026"),"--gray900":"#1c283c","--gray800":"#354051","--gray700":"#4f5867","--gray600":"#68707d","--gray500":"#818793","--gray400":"#9a9fa8","--gray300":"#b3b7be","--gray200":"#cdcfd4","--gray100":"#e6e7e9","--gray75":"#edeef0","--gray50":"#f2f3f4","--gray25":"#f8f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue500-rgb":Cf("#0099ff"),"--blue500a10":"rgb(var(--blue500-rgb) / 10%)","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red500-rgb":Cf("#f23e0d"),"--red500a10":"rgb(var(--red500-rgb) / 10%)","--red500a50":"rgb(var(--red500-rgb) / 50%)","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--yellow500-rgb":Cf("#fea900"),"--yellow500a10":"rgb(var(--yellow500-rgb) / 10%)","--yellow600":"#e59800","--yellow700":"#cb8700","--green500":"#72d400","--purple1000":"#15122e","--purple900":"#1f1b44","--purple800":"#2a245c","--purple700":"#40378a","--purple600":"#5549b8","--purple500":"#6b5ce6","--purple400":"#978ced","--purple300":"#c3bdf5","--purple200":"#e1defa","--purple100":"#f7f6fd","--magenta1000":"#2e0d18","--magenta900":"#451424","--magenta800":"#5c1b30","--magenta700":"#8a2949","--magenta600":"#b83761","--magenta500":"#e6457a","--magenta400":"#eb6a94","--magenta300":"#f5b4c9","--magenta200":"#fad9e4","--magenta100":"#fdf5f8","--teal1000":"#062822","--teal900":"#0a3c32","--teal800":"#0d5144","--teal700":"#147a66","--teal600":"#1ba388","--teal500":"#22ccaa","--teal500-rgb":Cf("#22ccaa"),"--teal500a10":"rgb(var(--teal500-rgb) / 10%)","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":jf("brandPrimary700","#0087e0"),"--brandPrimary600":jf("brandPrimary600","#0095eb"),"--brandPrimary500":jf("brandPrimary500","#00aaff"),"--brandPrimary500-rgb":jf("brandPrimary500-rgb",Cf("#00aaff")),"--brandPrimary300":jf("brandPrimary300","#b3e6ff"),"--brandPrimary100":jf("brandPrimary100","#e5f7ff"),"--spacing1":"2px","--spacing2":"4px","--spacing3":"8px","--spacing4":"12px","--spacing5":"16px","--spacing6":"24px","--spacing7":"32px","--spacing8":"40px","--spacing9":"48px","--layoutSpacing1":"16px","--layoutSpacing2":"24px","--layoutSpacing3":"32px","--layoutSpacing4":"48px","--layoutSpacing5":"64px","--layoutSpacing6":"96px","--layoutSpacing7":"160px","--radiusSmall":"2px","--radiusMedium":"5px","--radiusLarge":"8px","--radiusCircle":"50%","--radiusPill":"9999px","--radiusBase":"var(--radiusMedium)","--brandRadiusBase":"var(--radiusBase)","--fontStackBase":'"Source Sans 3", "Source Sans Pro", SourceSansPro, system-ui, sans-serif',"--brandFontStackBase":jf("brandFontStackBase","inherit"),"--fontSize25":"10px","--fontSize50":"12px","--fontSize75":"14px","--fontSize100":"16px","--fontSize200":"18px","--fontSize300":"20px","--fontSize400":"22px","--fontSize500":"25px","--fontSize600":"28px","--fontSize700":"32px","--fontSize800":"36px","--fontSize900":"40px","--fontSize1000":"45px","--fontSizeBase":"var(--fontSize100)","--lineHeightBase":"1.25","--lineHeightHeading":"1.25","--lineHeightText":"1.5","--gray900a":"rgb(var(--gray1000-rgb) / 90%)","--gray800a":"rgb(var(--gray1000-rgb) / 80%)","--gray700a":"rgb(var(--gray1000-rgb) / 70%)","--gray600a":"rgb(var(--gray1000-rgb) / 60%)","--gray500a":"rgb(var(--gray1000-rgb) / 50%)","--gray400a":"rgb(var(--gray1000-rgb) / 40%)","--gray300a":"rgb(var(--gray1000-rgb) / 30%)","--gray200a":"rgb(var(--gray1000-rgb) / 20%)","--gray100a":"rgb(var(--gray1000-rgb) / 10%)","--gray75a":"rgb(var(--gray1000-rgb) / 7%)","--gray50a":"rgb(var(--gray1000-rgb) / 5%)","--gray25a":"rgb(var(--gray1000-rgb) / 3%)","--colorText":"var(--gray800)","--colorTextMuted":"var(--gray600)","--colorTextDisabled":"var(--gray400)","--focusRingWidth":"2px","--focusRingColorPrimary":"var(--blue500)","--focusRingColorSecondary":"var(--gray200)","--colorShadow":"var(--gray100a)","--elevationStatic":"0 0 0 1px var(--colorShadow)","--elevation1":"0 1px 4px -1px var(--colorShadow)","--elevation2":"0 2px 4px -1px var(--colorShadow)","--elevation4":"0 4px 6px -2px var(--colorShadow)","--elevation8":"0 8px 12px -2px var(--colorShadow)","--elevation12":"0 12px 12px -2px var(--colorShadow)","--elevation16":"0 16px 12px -2px var(--colorShadow)","--elevation24":"0 24px 12px -2px var(--colorShadow)","--componentButtonPrimaryBorderHover":"var(--brandPrimary600)","--componentButtonPrimaryBorderActive":"var(--brandPrimary700)","--componentButtonPrimaryBorderFocus":"var(--brandPrimary500)","--componentButtonPrimaryBorderDisabled":"transparent","--componentButtonPrimaryColor":"var(--white)","--componentButtonPrimaryColorHover":"var(--white)","--componentButtonPrimaryColorActive":"var(--white)","--componentButtonPrimaryColorFocus":"var(--white)","--componentButtonPrimaryColorDisabled":"var(--white)","--componentButtonPrimaryFill":"var(--brandPrimary500)","--componentButtonPrimaryFillHover":"var(--brandPrimary600)","--componentButtonPrimaryFillActive":"var(--brandPrimary700)","--componentButtonPrimaryFillFocus":"var(--brandPrimary500)","--componentButtonPrimaryFillDisabled":"var(--brandPrimary300)","--componentButtonPrimaryFocusRing":"0 0 0 3px rgb(var(--brandPrimary500-rgb) / 30%)","--componentButtonSecondaryBorder":"var(--gray100)","--componentButtonSecondaryBorderHover":"var(--gray200)","--componentButtonSecondaryBorderActive":"var(--gray300)","--componentButtonSecondaryBorderFocus":"var(--gray300)","--componentButtonSecondaryBorderDisabled":"var(--gray50)","--componentButtonSecondaryColor":"var(--gray800)","--componentButtonSecondaryColorHover":"var(--gray800)","--componentButtonSecondaryColorActive":"var(--gray800)","--componentButtonSecondaryColorFocus":"var(--gray800)","--componentButtonSecondaryColorDisabled":"var(--gray300)","--componentButtonSecondaryFill":"var(--gray25)","--componentButtonSecondaryFillHover":"var(--gray50)","--componentButtonSecondaryFillActive":"var(--gray75)","--componentButtonSecondaryFillFocus":"var(--gray25)","--componentButtonSecondaryFillDisabled":"var(--gray25)","--componentButtonSecondaryFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonCleanBorderFocus":"var(--gray200)","--componentButtonCleanBorderActive":"transparent","--componentButtonCleanColor":"var(--gray600)","--componentButtonCleanColorHover":"var(--gray900)","--componentButtonCleanColorActive":"var(--gray900)","--componentButtonCleanColorFocus":"var(--gray900)","--componentButtonCleanColorDisabled":"var(--gray300)","--componentButtonCleanFill":"transparent","--componentButtonCleanFillHover":"var(--gray25a)","--componentButtonCleanFillActive":"var(--gray50a)","--componentButtonCleanFillFocus":"var(--gray25a)","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)","--componentButtonDangerBorderHover":"var(--red600)","--componentButtonDangerBorderActive":"var(--red700)","--componentButtonDangerBorderFocus":"var(--red500)","--componentButtonDangerBorderDisabled":"transparent","--componentButtonDangerColor":"var(--white)","--componentButtonDangerColorHover":"var(--white)","--componentButtonDangerColorActive":"var(--white)","--componentButtonDangerColorFocus":"var(--white)","--componentButtonDangerColorDisabled":"var(--white)","--componentButtonDangerFill":"var(--red500)","--componentButtonDangerFillHover":"var(--red600)","--componentButtonDangerFillActive":"var(--red700)","--componentButtonDangerFillFocus":"var(--red500)","--componentButtonDangerFillDisabled":"var(--red500a50)","--componentButtonDangerFocusRing":"0 0 0 3px rgb(var(--red500-rgb) / 30%)","--componentDividerColor":"var(--gray100a)","--componentCheckboxBorderUnchecked":"var(--gray300)","--componentCheckboxBorderUncheckedHover":"var(--gray500)","--componentCheckboxBorderUncheckedFocus":"var(--gray500)","--componentCheckboxFillDisabled":"var(--gray100)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUnchecked":"var(--gray300)","--componentRadioFillDisabled":"var(--gray100)","--componentRadioCheckmarkColorDisabled":"var(--gray500)","--componentRadioBorderUncheckedHover":"var(--gray500)","--componentPaginationBackground":"none","--componentPaginationElevation":"var(--elevationStatic), var(--elevation2)","--componentTooltipBackground":"var(--gray10)","--componentTooltipShadow":"var(--elevation2), var(--elevationStatic)","--componentTooltipTitleColor":"var(--colorText)","--componentTooltipSecondaryTextColor":"var(--colorTextMuted)","--componentTooltipTextColor":"var(--colorTextMuted)"},Sf={"--gray1000":"#ffffff","--gray1000-rgb":Cf("#ffffff"),"--gray900":"#e6e7e9","--gray800":"#cdcfd4","--gray700":"#b3b7be","--gray600":"#9a9fa8","--gray500":"#818793","--gray400":"#68707d","--gray300":"#4f5867","--gray200":"#354051","--gray100":"#1c283c","--gray75":"#152135","--gray50":"#101c31","--gray25":"#0b172c","--gray10":"#031026","--componentDividerColor":"var(--gray100a)","--focusRingColorSecondary":"var(--gray200a)","--componentCheckboxBorderUnchecked":"var(--gray300a)","--componentCheckboxBorderUncheckedHover":"var(--gray500a)","--componentCheckboxBorderUncheckedFocus":"var(--gray500a)","--componentCheckboxFillDisabled":"var(--gray100a)","--componentCheckboxCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUnchecked":"var(--gray300a)","--componentRadioFillDisabled":"var(--gray100a)","--componentRadioCheckmarkColorDisabled":"var(--gray500a)","--componentRadioBorderUncheckedHover":"var(--gray500a)","--componentPaginationBackground":"var(--gray50a)","--componentPaginationElevation":"none","--componentTooltipBackground":"var(--gray100)","--componentTooltipShadow":"0 2px 4px -1px rgb(3 16 38 / 10%), 0 0 0 1px rgb(3 16 38 / 10%)","--componentTooltipTitleColor":"var(--gray1000)","--componentTooltipSecondaryTextColor":"var(--gray600)","--componentTooltipTextColor":"var(--gray800)"},_f="ds-light-theme",If="ds-dark-theme",Tf=Zu`${qu([":root,:host,.",",.","{","}.","{","}"],_f,If,Of(kf),If,Of(Sf))}`;function Of(e){const t=Object.entries(e).map((e=>e.join(":")));return t.join(";")+";"}function jf(e,t){return`var(--user-${e}, var(--theme-${e}, ${t}))`}function zf({className:e,children:t,...n}){return Qu.exports.jsx("div",{className:_f+(e?` ${e}`:""),...n,children:t})}function Bf({className:e,children:t,...n}){return Qu.exports.jsx("div",{className:If+(e?` ${e}`:""),...n,children:t})}const Pf={paragraphS:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize75,ld.lineHeightText),paragraphM:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize100,ld.lineHeightText),paragraphL:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize200,ld.lineHeightText),uiTextXS:qu(["font-weight:normal;font-size:",";line-height:20px;"],ld.fontSize50),uiTextS:qu(["font-weight:normal;font-size:",";line-height:20px;"],ld.fontSize75),uiTextM:qu(["font-weight:normal;font-size:",";line-height:20px;"],ld.fontSize100),uiTextL:qu(["font-weight:normal;font-size:",";line-height:24px;"],ld.fontSize200),headingXS:qu(["font-weight:600;font-size:",";line-height:",";"],ld.fontSize100,ld.lineHeightHeading),headingS:qu(["font-weight:600;font-size:",";line-height:",";"],ld.fontSize200,ld.lineHeightHeading),headingM:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize400,ld.lineHeightHeading),headingL:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize600,ld.lineHeightHeading),headingXL:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize800,ld.lineHeightHeading),headingXXL:qu(["font-weight:normal;font-size:",";line-height:",";"],ld.fontSize1000,ld.lineHeightHeading)};function Af({children:e,direction:t="row",wrap:n="nowrap",justifyContent:r="flex-start",alignItems:o="stretch",gap:i,...a}){return Qu.exports.jsx(Nf,{$direction:t,$wrap:n,$justifyContent:r,$alignItems:o,$gap:i,...a,children:e})}const Nf=Xu.div.withConfig({displayName:"FlexStyled",componentId:"sc-duap7b-0"})(["display:flex;flex-direction:",";flex-wrap:",";gap:",";justify-content:",";align-items:",";box-sizing:border-box;width:100%;height:100%;"],(e=>e.$direction),(e=>e.$wrap),(e=>e.$gap?ld[`spacing${e.$gap}`]:void 0),(e=>e.$justifyContent),(e=>e.$alignItems));var Df={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Mf=t.createContext&&t.createContext(Df),Ff=function(){return Ff=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ff.apply(this,arguments)},Lf=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Rf(e){return e&&e.map((function(e,n){return t.createElement(e.tag,Ff({key:n},e.attr),Rf(e.child))}))}function Hf(e){return function(n){return t.createElement($f,Ff({attr:Ff({},e.attr)},n),Rf(e.child))}}function $f(e){var n=function(n){var r,o=e.attr,i=e.size,a=e.title,s=Lf(e,["attr","size","title"]),l=i||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",Ff({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:Ff(Ff({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&t.createElement("title",null,a),e.children)};return void 0!==Mf?t.createElement(Mf.Consumer,null,(function(e){return n(e)})):n(Df)}const Uf=(e,t)=>{const n=e[t];return n?"function"==typeof n?n():Promise.resolve(n):new Promise(((e,n)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t)))}))};class Vf{constructor(e){this.input=e,this.index=0,this.done=!1,this.value="",this.value=this.input.charAt(0)}next(){return++this.index>=this.input.length&&(this.done=!0),this.value=this.input.charAt(this.index)}croak(){throw new Error(`[${this.input}]. Unexpected character "${this.value}" on position ${this.index}.`)}}var Wf;!function(e){e[e.Plural=0]="Plural",e[e.Select=1]="Select",e[e.Text=2]="Text",e[e.Variable=3]="Variable"}(Wf||(Wf={}));const qf="{",Gf="}",Yf=",",Xf=[qf,Gf,Yf];class Kf{constructor(e){this.input=new Vf(e)}next(){return this.input.value===qf?this.readVariable():this.readText()}skip(e){e!==this.input.value&&this.input.croak(),this.input.next()}readWhile(e){let t="";for(;!this.input.done&&e(this.input.value);)t+=this.input.value,this.input.next();return t}readVariable(){this.skip(qf);const e=this.readWhile((e=>!function(e){return Xf.includes(e)}(e))).trim();if(0===e.length&&this.input.croak(),this.input.value===Gf)return this.skip(Gf),{type:Wf.Variable,value:e};this.skip(Yf);const t=this.readVariableType();return{options:this.readVariableOptions(),type:t,value:e}}readText(){return{type:Wf.Text,value:this.readWhile((e=>e!==qf&&e!==Gf))}}readVariableType(){const e=this.readWhile((e=>e!==Yf)).trim();return"plural"===e?Wf.Plural:"select"===e?Wf.Select:void this.input.croak()}readVariableOptions(){this.skip(Yf);const e={};for(;this.input.value!==Gf;)e[this.readText().value.trim()]=this.readExpression();return this.skip(Gf),e}readExpression(){const e=[];for(this.skip(qf);this.input.value!==Gf;)e.push(this.next());return this.skip(Gf),e}}const Zf=["campaigns","Campaigns","Campaign","campaign","Collection","collections","collection","Collections","limitedUsage","LIMITED","jobs","Jobs","job","Job","Guidelines","WorkflowCalendar","AssetBank","Brandstore","Reporter","Brand","brands","categories","Brands","brand","Asset","Subbrand","subbrands","Assets","assets","asset","subbrand","Subbrands","category","task","Stage","accountable","tasks","stage","Categories","Category","stages","Task","Stages","Tasks","Accountable"];class Jf{constructor(e,t,n){this.memo={},this.onError=console.error,this.translateParts=(e,t)=>{const n=this.getTranslationById(e);try{return function({locale:e,translation:t,values:n,wordReplacements:r}){const o=new Kf(t),i=[];for(;!o.input.done;)a(o.next());return i;function a({options:t,type:o,value:s}){if(o===Wf.Variable)return Zf.includes(s)?void(r[s]?i.push(r[s]):i.push(s)):void i.push(n[s]);if(!t)return void i.push(s);if(o===Wf.Select)return void t[n[s]].map(a);const l=e.replace("_","-");t[new Intl.PluralRules(l).select(n[s])].map(a)}}({locale:this.locale,translation:n,values:t,wordReplacements:this.wordReplacements})}catch(e){return this.onError(e),[n]}},this.translate=(e,t={})=>this.translateParts(e,t).join(""),this.getTranslationById=e=>{if(!this.memo[e]){let t=this.translations[e];"string"!=typeof t&&(this.onError(new Error(`Localization: Missing translation with ID "${e}"`)),t=e),this.memo[e]=t}return this.memo[e]},this.locale=function(e){return e||"en_US"}(t),n?(this.translations={...e,...n.translations},this.wordReplacements=n.wordReplacements):(this.translations={...e},this.wordReplacements={})}}const Qf={"colorpicker.opacity-input":"Opacity","datepicker.clear-date":"Clear date","datepicker.next-month":"Next month","datepicker.open-calendar":"Open calendar","datepicker.previous-month":"Previous month","input.clear":"Clear input","input.hide-password":"Hide password","input.show-password":"Show password","modal.close":"Close","multiselectchips.add-value":"Add ‘{value}’","multiselectchips.remove-all":"Remove all","pagination.next-page":"Next page","pagination.previous-page":"Previous page"};var eh=Object.freeze({__proto__:null,default:Qf});const th=["de_DE","en_US","es_ES","es_MX","fr_FR","it_IT","ja_JP","ko_KR","nl_NL","pl_PL","pt_BR","ru_RU","tr_TR","zh_CN","zh_TW"],nh=t.createContext(void 0);function rh({children:e,locale:t="en_US"}){const[n,r]=o(void 0);if(a((()=>{th.includes(t)?Uf(Object.assign({"../../i18n/de_DE.json":()=>Promise.resolve().then((function(){return aU})),"../../i18n/en_US.json":()=>Promise.resolve().then((function(){return eh})),"../../i18n/es_ES.json":()=>Promise.resolve().then((function(){return sU})),"../../i18n/es_MX.json":()=>Promise.resolve().then((function(){return lU})),"../../i18n/fr_FR.json":()=>Promise.resolve().then((function(){return cU})),"../../i18n/it_IT.json":()=>Promise.resolve().then((function(){return uU})),"../../i18n/ja_JP.json":()=>Promise.resolve().then((function(){return dU})),"../../i18n/ko_KR.json":()=>Promise.resolve().then((function(){return pU})),"../../i18n/nl_NL.json":()=>Promise.resolve().then((function(){return fU})),"../../i18n/pl_PL.json":()=>Promise.resolve().then((function(){return hU})),"../../i18n/pt_BR.json":()=>Promise.resolve().then((function(){return mU})),"../../i18n/ru_RU.json":()=>Promise.resolve().then((function(){return gU})),"../../i18n/tr_TR.json":()=>Promise.resolve().then((function(){return vU})),"../../i18n/zh_CN.json":()=>Promise.resolve().then((function(){return yU})),"../../i18n/zh_TW.json":()=>Promise.resolve().then((function(){return bU}))}),`../../i18n/${t}.json`).then((e=>{r(e.default)})):Promise.resolve().then((function(){return eh})).then((e=>{r(e.default)}))}),[t]),!n)return null;const i=new Jf(n,t);return Qu.exports.jsx(nh.Provider,{value:i,children:e})}const oh={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}},ih=1031,ah=t.createContext({zIndexBase:ih});function sh({children:e,noTheme:t,zIndexBase:n=ih,buttonVersion:r="modern",dateFnsLocale:o,locale:a="en_US"}){const s=i((()=>({zIndexBase:n,dateFnsLocale:o})),[o,n]);return Qu.exports.jsx(ah.Provider,{value:s,children:Qu.exports.jsx(rh,{locale:a,children:Qu.exports.jsx(Mf.Provider,{value:oh,children:Qu.exports.jsxs(rp.VersionProvider,{value:r,children:[!t&&Qu.exports.jsx(Tf,{}),e]})})})})}const lh=["modal","datepicker","dropdown","tooltip","colorpicker","listDragAndDrop"];function ch(e){return r(ah).zIndexBase+lh.indexOf(e)}const uh=Xu.div.withConfig({displayName:"ImageHolder",componentId:"sc-1m204zj-0"})(["margin:calc("," * -1) calc("," * -1) ",";"],ld.spacing4,ld.spacing5,ld.spacing3),dh=Xu.img.withConfig({displayName:"StyledImage",componentId:"sc-1m204zj-1"})(["vertical-align:top;width:100%;border-bottom:1px solid ",";border-radius:var(--ds-tooltip-border-radius) var(--ds-tooltip-border-radius) 0 0;"],ld.gray100a),ph=Xu.div.withConfig({displayName:"StyledText",componentId:"sc-16o2twi-0"})([""," padding-block:",";color:",";"],Pf.paragraphS,ld.spacing3,ld.componentTooltipTextColor),fh=Xu.div.withConfig({displayName:"ItemStyled",componentId:"sc-17jheit-0"})(["display:flex;gap:",";align-items:center;margin-inline:calc("," * -1);padding:"," ",";"],ld.spacing3,ld.spacing5,ld.spacing3,ld.spacing5),hh=Xu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-17jheit-1"})(["flex:none;"]),mh=Xu.div.withConfig({displayName:"Content",componentId:"sc-17jheit-2"})([""," flex:1;min-width:0;"],Pf.uiTextM),gh=Xu.div.withConfig({displayName:"Subtext",componentId:"sc-17jheit-3"})([""," color:",";"],Pf.uiTextS,ld.componentTooltipSecondaryTextColor);function vh({position:e="top-center",timing:t="instant",size:n="small",isLightTheme:r=!1,className:i,icon:s,secondaryText:u,badge:d,content:p,...f}){const[h,m]=function(e){var t=void 0===e?{}:e,n=t.delayEnter,r=void 0===n?0:n,i=t.delayLeave,s=void 0===i?0:i,u=t.hideOnScroll,d=void 0===u||u,p=o(!1),f=p[0],h=p[1],m=l(null),g=l(xf.IDLE),v=l(!1),y=c((function(){clearTimeout(m.current),m.current=null,g.current=xf.IDLE}),[]);function b(e,t){if(g.current===xf.ENTERING&&m.current&&y(),f){if(t)return h(!1),m.current=null,void(g.current=xf.IDLE);g.current=xf.LEAVING,m.current=window.setTimeout((function(){h(!1),m.current=null,g.current=xf.IDLE}),s)}}return a((function(){function e(){f&&d&&(y(),h(!1))}return window.addEventListener("scroll",e,!0),function(){window.removeEventListener("scroll",e,!0),m.current&&clearTimeout(m.current)}}),[f,d,y]),[f,{onMouseEnter:function(){g.current===xf.LEAVING&&m.current&&y(),f||(g.current=xf.ENTERING,m.current=window.setTimeout((function(){h(!0),m.current=null,g.current=xf.IDLE}),r))},onMouseLeave:b,onTouchStart:function(){v.current=!1},onTouchMove:function(){v.current=!0},onTouchEnd:function(){v.current||f||h(!0),v.current=!1}},function(){return b(0,!0)}]}({delayEnter:"delay"===t?800:0}),{isFocusVisible:g,focusProps:v}=$d(),y=ch("tooltip"),b=void 0===f.isOpen?h||g:f.isOpen,{triggerProps:x,layerProps:w,renderLayer:E}=bf({isOpen:b,auto:!0,snap:!0,placement:yh(e),possiblePlacements:bh(e),triggerOffset:8,containerOffset:8});return Qu.exports.jsxs(Qu.exports.Fragment,{children:["function"==typeof f.children?f.children({...x,...m,...v}):Qu.exports.jsx("div",{...x,...m,...v,children:f.children}),b&&E(Qu.exports.jsx(xh,{isLightTheme:r,children:Qu.exports.jsx(wh,{...w,$zIndex:y,className:i,$size:n,children:Qu.exports.jsxs(Af,{alignItems:"center",gap:"3",children:[s&&Qu.exports.jsx(Eh,{$size:n,children:s}),Qu.exports.jsx("div",{children:p}),u&&Qu.exports.jsx(Ch,{children:u}),d]})})}))]})}function yh(e){return{"top-left":"top-start","top-center":"top-center","top-right":"top-end",left:"left-center",right:"right-center","bottom-left":"bottom-start","bottom-center":"bottom-center","bottom-right":"bottom-end"}[e]}function bh(e){const t=["top-center","bottom-center"],n=["left-center","right-center"],r=["top-end","top-start","bottom-end","bottom-start"];return{"top-left":r,"top-center":t,"top-right":r,left:n,right:n,"bottom-left":r,"bottom-center":t,"bottom-right":r}[e]}function xh({isLightTheme:e,children:t}){return e?Qu.exports.jsx(zf,{children:t}):Qu.exports.jsx(Bf,{children:t})}vh.Image=function({src:e,alt:t=""}){return Qu.exports.jsx(uh,{children:Qu.exports.jsx(dh,{src:e,alt:t,"data-testid":"ds-tooltip-image"})})},vh.Text=function({children:e}){return Qu.exports.jsx(ph,{children:e})},vh.ListItem=function({children:e,subtext:t,thumbnail:n,rightElements:r,...o}){return Qu.exports.jsxs(fh,{...o,children:[n&&Qu.exports.jsx(hh,{children:n}),Qu.exports.jsxs(mh,{children:[e,t?Qu.exports.jsx(gh,{children:t}):null]}),r]})};const wh=Xu.div.withConfig({displayName:"TooltipContainer",componentId:"sc-xel4md-0"})(["--ds-tooltip-border-radius:",";z-index:",";display:flex;box-sizing:border-box;border-radius:var(--ds-tooltip-border-radius);background:",";color:",";box-shadow:",";word-break:break-word;",";"],ld.radiusBase,(e=>e.$zIndex),ld.componentTooltipBackground,ld.componentTooltipTitleColor,ld.componentTooltipShadow,(e=>"small"===e.$size?qu([""," max-width:240px;padding:"," ",";"],Pf.uiTextS,ld.spacing3,ld.spacing4):"medium"===e.$size?qu([""," max-width:256px;padding:"," ",";"],Pf.uiTextM,ld.spacing3,ld.spacing5):void 0)),Eh=Xu.span.withConfig({displayName:"IconContainer",componentId:"sc-xel4md-1"})(["display:flex;align-items:center;width:24px;height:24px;margin-block:calc("," * -1);margin-left:",";"],ld.spacing1,(e=>"medium"===e.$size?`calc(${ld.spacing3} * -1)`:`calc(${ld.spacing2} * -1)`)),Ch=Xu.span.withConfig({displayName:"SecondaryTextContainer",componentId:"sc-xel4md-2"})([""," color:",";"],Pf.uiTextS,ld.componentTooltipSecondaryTextColor);function kh({children:e,tooltipPosition:t="top-left",...n}){const[r,s]=o(!1),u=l(null);function p(){if(u.current){const e=u.current.offsetWidth<u.current.scrollWidth;s(e)}}return function(e){void 0===e&&(e={});var t=e.onResize,n=l(void 0);n.current=t;var r=e.round||Math.round,s=l(),u=o({width:void 0,height:void 0}),d=u[0],p=u[1],f=l(!1);a((function(){return f.current=!1,function(){f.current=!0}}),[]);var h=l({width:void 0,height:void 0}),m=function(e,t){var n=l(null),r=l(null);r.current=t;var o=l(null);a((function(){i()}));var i=c((function(){var t=o.current,i=r.current,a=t||(i?i instanceof Element?i:i.current:null);n.current&&n.current.element===a&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:a,subscriber:e,cleanup:a?e(a):void 0})}),[e]);return a((function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}}),[]),c((function(e){o.current=e,i()}),[i])}(c((function(t){return s.current&&s.current.box===e.box&&s.current.round===r||(s.current={box:e.box,round:r,instance:new ResizeObserver((function(t){var o=t[0],i="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",a=Dp(o,i,"inlineSize"),s=Dp(o,i,"blockSize"),l=a?r(a):void 0,c=s?r(s):void 0;if(h.current.width!==l||h.current.height!==c){var u={width:l,height:c};h.current.width=l,h.current.height=c,n.current?n.current(u):f.current||p(u)}}))}),s.current.instance.observe(t,{box:e.box}),function(){s.current&&s.current.instance.unobserve(t)}}),[e.box,r]),e.ref);i((function(){return{ref:m,width:d.width,height:d.height}}),[m,d.width,d.height])}({ref:u,onResize:()=>{p()}}),d((()=>{p()}),[]),Qu.exports.jsx(Sh,{ref:u,...n,children:r?Qu.exports.jsx(vh,{content:e,position:t,timing:"delay",children:t=>Qu.exports.jsx("span",{...t,children:e})}):e})}const Sh=Xu.span.withConfig({displayName:"StyledText",componentId:"sc-19w3680-0"})(["display:block;overflow:hidden;min-width:0;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),_h=Xu.div.withConfig({displayName:"HeaderStyled",componentId:"sc-1pov1j3-0"})(["display:grid;grid-template-areas:'thumbnail title icon' 'thumbnail detail icon';grid-template-columns:auto 1fr auto;padding:var(--card-content-padding);"]),Ih=Xu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1pov1j3-1"})(["grid-area:thumbnail;margin-top:2px;margin-right:",";"],ld.spacing4),Th=Xu.div.withConfig({displayName:"Title",componentId:"sc-1pov1j3-2"})([""," grid-area:title;min-width:0;color:",";overflow-wrap:break-word;"],Pf.uiTextM,ld.colorText),Oh=Xu.div.withConfig({displayName:"Detail",componentId:"sc-1pov1j3-3"})([""," grid-area:detail;min-width:0;margin-top:",";color:",";overflow-wrap:break-word;"],Pf.uiTextS,ld.spacing2,ld.colorTextMuted),jh=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1pov1j3-4"})(["z-index:2;display:grid;grid-area:icon;align-items:center;margin-left:",";color:",";"],ld.spacing2,ld.gray600),zh=Xu.div.withConfig({displayName:"AdditionalInfoStyled",componentId:"sc-kuakuj-0"})([""," padding:",";border-top:1px solid ",";color:",";"],Pf.uiTextS,(e=>"all"===e.$padding?"var(--card-content-padding)":"0"),ld.gray100a,ld.colorText),Bh=u((({children:e,isDisabled:t=!1,isPressed:n=!1,tooltip:r,"aria-label":o,...i},a)=>{const{isFocusVisible:s,focusProps:l}=$d(),c=Qu.exports.jsx(Ph,{disabled:t,type:"button",$isFocusVisible:s,ref:a,$isPressed:n,"aria-label":o,...l,...i,children:e});return r?Qu.exports.jsx(vh,{timing:"delay",content:r,children:c}):c})),Ph=Xu.button.withConfig({displayName:"ContextActionButtonStyled",componentId:"sc-yl6ibh-0"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;box-sizing:border-box;min-width:40px;height:32px;padding:0 ",";border:none;border-radius:",";background-color:transparent;box-shadow:0 0 0 1px ",";font-weight:400;font-style:normal;font-size:",";font-family:",";line-height:",";letter-spacing:normal;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;fill:currentcolor;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;",""],ld.spacing3,ld.brandRadiusBase,ld.gray100a,ld.fontSize75,ld.brandFontStackBase,ld.lineHeightBase,(e=>{const t=qu(["background-color:",";color:",";box-shadow:0 0 0 1px ",";"],ld.gray10,ld.gray800,ld.gray100a);return qu(["background-color:rgb("," / 90%);color:",";"," &:hover{background-color:",";color:",";box-shadow:",",",";}&:active{","}&:disabled{background-color:rgb("," / 70%);color:",";box-shadow:0 0 0 1px ",";cursor:default;}"],ld["white-rgb"],ld.gray600a,e.$isPressed&&t,ld.gray10,ld.gray800,ld.elevation1,ld.elevationStatic,t,ld["white-rgb"],ld.gray200a,ld.gray100a)})),Ah=Xu.div.withConfig({displayName:"ImagesStyled",componentId:"sc-1orrgud-0"})(["display:grid;grid-template-rows:1fr 1fr;grid-template-columns:3fr 2fr;gap:",";min-height:10px;"],ld.spacing1),Nh=Xu.img.withConfig({displayName:"ImgStyled",componentId:"sc-1orrgud-1"})(["object-fit:",";width:100%;height:100%;min-height:0;max-height:410px;&:nth-child(1){grid-row:1 / -1;grid-column:1;}&:nth-child(1):last-child{grid-column:span 2;}&:nth-child(2){grid-row:1;grid-column:2;}&:nth-child(2):last-child{grid-row:span 2;}&:nth-child(3){grid-row:2;grid-column:2;}"],(e=>"fill"===e.$contentResize?"cover":"scale-down")),Dh=Xu.div.withConfig({displayName:"Placeholder",componentId:"sc-1qwqjbg-0"})(["display:grid;place-items:center;min-height:100px;"]),Mh=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1qwqjbg-1"})(["display:grid;place-items:center;width:60px;height:70px;border-radius:",";background:",";color:",";"],ld.brandRadiusBase,ld.gray10,ld.gray600);let Fh=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function Lh(e){return i((()=>e+"-"+Fh()),[e])}const Rh=Xu.div.withConfig({displayName:"Placeholder",componentId:"sc-qax8fp-0"})(["display:flex;justify-content:center;align-items:center;min-height:100px;background:",";color:",";svg{width:48px;height:48px;}"],(e=>e.$backgroundColor),(e=>e.$iconColor)),Hh=Xu.div.withConfig({displayName:"StatsStyled",componentId:"sc-a5kvvv-0"})(["display:flex;flex-wrap:wrap;row-gap:",";padding:var(--card-content-padding);border-top:1px solid ",";column-gap:",";"],ld.spacing4,ld.gray100a,ld.spacing5),$h=Xu.div.withConfig({displayName:"StatItemStyled",componentId:"sc-7uwt82-0"})([""," display:flex;align-items:center;color:",";column-gap:",";"],Pf.uiTextS,ld.colorTextMuted,ld.spacing2);function Uh({children:e,variant:t="outlined",isSelected:n=!1,contextAction:r,onClick:o,onSelect:a,as:s="button",href:l,to:c,noMinWidth:u,selectButtonAriaLabel:d,"aria-label":p,isDisabled:f=!1,...h}){const m=Lh("card-title"),g=i((()=>({variant:t,isSelected:n,cardTitleId:m})),[n,t,m]),v=f?"div":s;return Qu.exports.jsx(Ip.Provider,{value:g,children:Qu.exports.jsxs(Vh,{$variant:t,$isSelected:n,$noMinWidth:u,$isDisabled:f,...h,children:[Qu.exports.jsx(Wh,{as:v,to:f?void 0:c,href:"a"===v?l:void 0,type:"button"===v?"button":void 0,onClick:function(e){if(!f)return a&&(e.metaKey||e.ctrlKey||e.shiftKey)?(a(e),void e.preventDefault()):void(null==o||o(e))},"aria-labelledby":p?void 0:m,"aria-label":p,$isDisabled:f,children:e}),r&&!f?Qu.exports.jsx(Gh,{children:r}):null,a?Qu.exports.jsx(qh,{type:"button",$isSelected:n,onClick:a,"aria-label":d,disabled:f,$isDisabled:f,children:Qu.exports.jsx(fp,{})}):null]})})}Uh.Frame=function({children:e,progressBar:t,badge:n,icon:r,isCheckeredBackground:o=!1,height:i="fixed",...a}){const{variant:s,isSelected:l}=Tp();return Qu.exports.jsxs(Op,{$isCheckeredBackground:o,$height:i,...a,children:["clean"===s&&l&&Qu.exports.jsx(jp,{}),Qu.exports.jsx(zp,{$height:i,children:e}),Qu.exports.jsx(Bp,{}),t?Qu.exports.jsx(Np,{children:t}):null,n?Qu.exports.jsx(Pp,{children:Qu.exports.jsx(cd,{color:"black-alpha",children:n})}):null,r?Qu.exports.jsx(Ap,{children:r}):null]})},Uh.Header=function({thumbnail:e,title:t,detail:n,icon:r,isNotTruncated:o=!1,...i}){const{cardTitleId:a}=Tp();return Qu.exports.jsxs(_h,{...i,children:[e?Qu.exports.jsx(Ih,{children:e}):null,Qu.exports.jsx(Th,{id:a,children:o?t:Qu.exports.jsx(kh,{children:t})}),n?Qu.exports.jsx(Oh,{children:o?n:Qu.exports.jsx(kh,{children:n})}):null,r?Qu.exports.jsx(jh,{children:r}):null]})},Uh.AdditionalInfo=function({children:e,padding:t="all",...n}){return Qu.exports.jsx(zh,{$padding:t,...n,children:e})},Uh.ContextActionButton=Bh,Uh.Images=function({children:e,...t}){return Qu.exports.jsx(Ah,{...t,children:e})},Uh.Img=function({src:e,contentResize:t="fill",alt:n="",...r}){return Qu.exports.jsx(Nh,{src:e,alt:n,$contentResize:t,...r})},Uh.FilePlaceholder=function({children:e,...t}){return Qu.exports.jsx(Dh,{...t,children:Qu.exports.jsx(Mh,{children:e})})},Uh.IconPlaceholder=function({children:e,backgroundColor:t=ld.gray25,iconColor:n=ld.gray400a,...r}){return Qu.exports.jsx(Rh,{$backgroundColor:t,$iconColor:n,...r,children:e})},Uh.Stats=function({children:e,...t}){return Qu.exports.jsx(Hh,{...t,children:e})},Uh.StatsItem=function({icon:e,children:t,title:n,...r}){return t&&t.toString().length,Qu.exports.jsx(vh,{content:n,timing:"delay",children:n=>Qu.exports.jsxs($h,{...r,...n,children:[Qu.exports.jsx("div",{children:e}),t?Qu.exports.jsx("span",{children:t}):null]})})};const Vh=Xu.div.withConfig({displayName:"Container",componentId:"sc-1qf5tkf-0"})(["--card-border-radius:",";--card-inner-border-color:",";--card-inner-border-width:1px;--card-selected-border-color:",";--card-selected-border-width:2px;--card-elevation:",";--card-frame-overlay-color:transparent;--card-actions-opacity:0;&:hover{--card-frame-overlay-color:",";--card-actions-opacity:1;}&:focus-within{--card-actions-opacity:1;}"," position:relative;box-sizing:border-box;min-width:",";border-radius:var(--card-border-radius);background:",";box-shadow:var(--card-box-shadow);pointer-events:",";"],ld.radiusBase,ld.gray100a,(e=>e.$isDisabled?ld.gray400:ld.brandPrimary500),(e=>e.$isDisabled?"0 0 0 transparent":ld.elevation1),ld.gray100a,(e=>"outlined"===e.$variant?qu(["--card-frame-border-radius:var(--card-border-radius) var(--card-border-radius) 0 0;--card-box-shadow:var(--card-elevation),inset 0 0 0 var(--card-inner-border-width) var(--card-inner-border-color);--card-frame-border-bottom-width:0;--card-content-padding:"," ",";&:hover{--card-inner-border-color:",";--card-elevation:",";}",""],ld.spacing4,ld.spacing5,ld.gray200a,ld.elevation2,e.$isSelected?qu(["--card-inner-border-width:var(--card-selected-border-width);--card-inner-border-color:var(--card-selected-border-color);&:hover{--card-inner-border-color:var(--card-selected-border-color);}"]):""):qu(["--card-frame-border-radius:var(--card-border-radius);--card-box-shadow:none;--card-frame-border-bottom-width:1px;--card-content-padding:"," 0;"],ld.spacing3)),(e=>e.$noMinWidth?"auto":"224px"),ld.gray10,(e=>e.$isDisabled?"none":"initial")),Wh=Xu.button.withConfig({displayName:"MainAction",componentId:"sc-1qf5tkf-1"})(["display:block;box-sizing:border-box;width:100%;padding:0;border:none;background:none;font:inherit;text-align:left;text-decoration:none;cursor:",";"],(e=>e.$isDisabled?"default":"pointer")),qh=Xu.button.withConfig({displayName:"SelectButton",componentId:"sc-1qf5tkf-2"})(["position:absolute;top:",";right:",";z-index:2;display:grid;place-items:center;box-sizing:border-box;width:32px;height:32px;padding:0;border:2px solid rgb("," / 80%);border-radius:",";background:none;color:transparent;opacity:",";pointer-events:",";&:hover{border-color:",";}&:active{border-width:3px;border-color:",";}",""],ld.spacing4,ld.spacing4,ld["white-rgb"],ld.radiusCircle,(e=>e.$isSelected?"1":"var(--card-actions-opacity)"),(e=>e.$isDisabled?"none":"initial"),ld.white,ld.white,(e=>e.$isSelected&&qu(["border:none;background:",";color:",";&:hover{background:",";box-shadow:",";}&:active{background:",";box-shadow:none;}"],e.$isDisabled?ld.gray400:ld.brandPrimary500,ld.white,ld.brandPrimary600,ld.elevation1,ld.brandPrimary700))),Gh=Xu.div.withConfig({displayName:"ActionContainer",componentId:"sc-1qf5tkf-3"})(["position:absolute;top:",";left:",";z-index:2;opacity:var(--card-actions-opacity);"],ld.spacing4,ld.spacing4);function Yh(){return Qu.exports.jsx("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:Qu.exports.jsx("path",{d:"M1.793 5.621a1 1 0 000 1.415l2.121 2.12a.995.995 0 00.773.292.996.996 0 00.641-.291l4.95-4.95a1 1 0 00-1.414-1.414L4.621 7.036 3.207 5.62a1 1 0 00-1.414 0z"})})}const Xh="ds-checkbox__pointer-events-wrapper";function Kh({isChecked:e=!1,isDisabled:t=!1,isIndeterminate:n=!1,inputProps:r,subtext:o,children:i,onChange:a=(()=>{}),id:s,...l}){const{isFocusVisible:c,focusProps:u}=$d();return Qu.exports.jsxs(Zh,{$isIndeterminate:n,$isDisabled:t,$isChecked:e,className:Xh,...l,children:[Qu.exports.jsx(em,{type:"checkbox",ref:e=>{e&&(e.indeterminate=n)},"aria-checked":n?"mixed":e,disabled:t,checked:e,onChange:a,id:s,...u,...r}),Qu.exports.jsx(Jh,{children:Qu.exports.jsxs(Qh,{$isFocusVisible:c,$isIndeterminate:n,$isDisabled:t,$isChecked:e,children:[e&&Qu.exports.jsx(Yh,{}),n&&Qu.exports.jsx(tm,{})]})}),i&&Qu.exports.jsxs(nm,{$isDisabled:t,children:[i,o&&Qu.exports.jsx(rm,{$isDisabled:t,children:o})]})]})}Kh.pointerEventsClassname=Xh;const Zh=Xu.label.withConfig({displayName:"Container",componentId:"sc-1xpfd3x-0"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],Pf.uiTextM,ld.spacing1,(e=>!e.$isDisabled&&"pointer")),Jh=Xu.div.withConfig({displayName:"IndicatorPosition",componentId:"sc-1xpfd3x-1"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),Qh=Xu.div.withConfig({displayName:"Indicator",componentId:"sc-1xpfd3x-2"})(["position:relative;display:flex;justify-content:center;align-items:center;box-sizing:border-box;width:16px;height:16px;border:2px solid ",";border-radius:",";background-color:transparent;&::before{content:'';position:absolute;top:-5px;right:-5px;bottom:-5px;left:-5px;border:"," solid transparent;border-radius:calc( "," + 3px );}"," "," "," "," ",":hover &&,",":focus-visible &&{"," background-color:",";}"],ld.componentCheckboxBorderUnchecked,ld.radiusMedium,ld.focusRingWidth,ld.radiusMedium,(e=>e.$isFocusVisible&&qu(["border-color:",";&::before{border-color:",";}"],ld.componentCheckboxBorderUncheckedFocus,e.$isChecked||e.$isIndeterminate?ld.focusRingColorPrimary:ld.focusRingColorSecondary)),(e=>e.$isChecked&&qu(["border-color:transparent;background-color:",";fill:#fff;"],ld.blue500)),(e=>e.$isIndeterminate&&qu(["border-color:transparent;background-color:",";"],ld.blue500)),(e=>e.$isDisabled&&qu(["border-color:transparent;background-color:",";fill:",";"],ld.componentCheckboxFillDisabled,ld.componentCheckboxCheckmarkColorDisabled)),"."+Xh,"."+Xh,(e=>!e.$isChecked&&!e.$isIndeterminate&&!e.$isDisabled&&`border-color: ${ld.componentCheckboxBorderUncheckedHover};`),(e=>!e.$isChecked&&!e.$isIndeterminate||e.$isDisabled?void 0:ld.blue600)),em=Xu.input.withConfig({displayName:"Input",componentId:"sc-1xpfd3x-3"})(["position:absolute;overflow:hidden;clip:rect(0,0,0,0);width:1px;height:1px;margin:0 -1px -1px 0;padding:0;border:0;white-space:nowrap;clip-path:inset(50%);"]),tm=Xu.div.withConfig({displayName:"IndeterminateMark",componentId:"sc-1xpfd3x-4"})(["width:8px;height:2px;border-radius:",";background-color:",";"],ld.radiusPill,ld.white),nm=Xu.div.withConfig({displayName:"Label",componentId:"sc-1xpfd3x-5"})(["display:block;margin-left:8px;color:",";"],(e=>e.$isDisabled?ld.colorTextDisabled:ld.colorText)),rm=Xu.span.withConfig({displayName:"SubtextHolder",componentId:"sc-1xpfd3x-6"})(["display:block;color:",";font-size:",";"],(e=>e.$isDisabled?ld.colorTextDisabled:ld.colorTextMuted),ld.fontSize75),om=u((({size:e="m",isDisabled:t=!1,thumbnail:n,children:r,icon:o,onClick:i,onDelete:a,...s},l)=>{const{isFocusVisible:c,focusProps:u}=$d(),d=Boolean(i||a);return Qu.exports.jsxs(am,{$size:e,$isDisabled:t,disabled:t&&d,onClick:i,onKeyDown:function(e){i&&"Enter"===e.key?i():!a||"Backspace"!==e.key&&"Delete"!==e.key||a()},$isFocusVisible:c,as:d?"button":"span",ref:l,...u,...s,children:[n&&Qu.exports.jsx(sm,{children:n}),o&&Qu.exports.jsx(dm,{children:o}),Qu.exports.jsx("span",{children:r}),a&&Qu.exports.jsx(im,{$isDisabled:t,onClick:function(e){e.stopPropagation(),a&&a()},"data-testid":"ds-chip-delete-button",children:Qu.exports.jsx(dp,{size:"18px"})})]})})),im=Xu.span.withConfig({displayName:"DeleteButton",componentId:"sc-1ymu8i6-0"})(["display:flex;justify-content:center;align-items:center;width:24px;height:24px;margin:0 calc("," * -1) 0 ",";padding:0;border:0;border-radius:",";background:none;color:",";outline:0;cursor:pointer;&:hover{background:",";color:",";}&:active{background:",";}"],ld.spacing3,ld.spacing3,ld.radiusCircle,(e=>e.$isDisabled?ld.gray400:ld.gray600),ld.gray50a,ld.gray800,ld.gray100a),am=Xu.button.withConfig({displayName:"ChipStyled",componentId:"sc-1ymu8i6-1"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],ld.radiusPill,ld.gray50,ld.colorText,ld.brandFontStackBase,(e=>e.onClick&&qu(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],ld.gray75,im,ld.gray800,ld.gray100)),(e=>e.$isFocusVisible&&qu(["background:",";box-shadow:inset ",";outline:0;"],ld.gray25,ld.elevationStatic)),(e=>"m"===e.$size&&cm),(e=>"s"===e.$size&&lm),(e=>e.$isDisabled&&um)),sm=Xu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1ymu8i6-2"})(["display:block;"]),lm=qu([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],Pf.uiTextS,sm,ld.spacing3,ld.spacing3),cm=qu([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],Pf.uiTextM,sm,ld.spacing3,ld.spacing4),um=qu(["background-color:",";color:",";pointer-events:none;"],ld.gray25,ld.colorTextDisabled),dm=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1ymu8i6-3"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],ld.spacing2,ld.spacing3);function pm(e,t){a((()=>{function n(n){n.key===e&&t(n)}return window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}}),[t,e])}function fm(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function hm(e){if(!e||!fm(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}function mm(){return(mm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gm(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function vm(e){var t=l(e),n=l((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var ym=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},bm=function(e){return"touches"in e},xm=function(e){return e&&e.ownerDocument.defaultView||self},wm=function(e,t,n){var r=e.getBoundingClientRect(),o=bm(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:ym((o.pageX-(r.left+xm(e).pageXOffset))/r.width),top:ym((o.pageY-(r.top+xm(e).pageYOffset))/r.height)}},Em=function(e){!bm(e)&&e.preventDefault()},Cm=t.memo((function(e){var n=e.onMove,r=e.onKey,o=gm(e,["onMove","onKey"]),s=l(null),c=vm(n),u=vm(r),d=l(null),p=l(!1),f=i((function(){var e=function(e){Em(e),(bm(e)?e.touches.length>0:e.buttons>0)&&s.current?c(wm(s.current,e,d.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=p.current,o=xm(s.current),i=n?o.addEventListener:o.removeEventListener;i(r?"touchmove":"mousemove",e),i(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=s.current;if(r&&(Em(t),!function(e,t){return t&&!bm(e)}(t,p.current)&&r)){if(bm(t)){p.current=!0;var o=t.changedTouches||[];o.length&&(d.current=o[0].identifier)}r.focus(),c(wm(r,t,d.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),u({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[u,c]),h=f[0],m=f[1],g=f[2];return a((function(){return g}),[g]),t.createElement("div",mm({},o,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:s,onKeyDown:m,tabIndex:0,role:"slider"}))})),km=function(e){return e.filter(Boolean).join(" ")},Sm=function(e){var n=e.color,r=e.left,o=e.top,i=void 0===o?.5:o,a=km(["react-colorful__pointer",e.className]);return t.createElement("div",{className:a,style:{top:100*i+"%",left:100*r+"%"}},t.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:n}}))},_m=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Im=function(e){return Dm(Tm(e))},Tm=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?_m(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?_m(parseInt(e.substring(6,8),16)/255,2):1}},Om=function(e){return Nm(Pm(e))},jm=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:_m(e.h),s:_m(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:_m(o/2),a:_m(r,2)}},zm=function(e){var t=jm(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Bm=function(e){var t=jm(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Pm=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:_m(255*[r,s,a,a,l,r][c]),g:_m(255*[l,r,r,s,a,a][c]),b:_m(255*[a,a,l,r,r,s][c]),a:_m(o,2)}},Am=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Nm=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Am(_m(255*o)):"";return"#"+Am(t)+Am(n)+Am(r)+i},Dm=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:_m(60*(s<0?s+6:s)),s:_m(i?a/i*100:0),v:_m(i/255*100),a:o}},Mm=t.memo((function(e){var n=e.hue,r=e.onChange,o=km(["react-colorful__hue",e.className]);return t.createElement("div",{className:o},t.createElement(Cm,{onMove:function(e){r({h:360*e.left})},onKey:function(e){r({h:ym(n+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":_m(n),"aria-valuemax":"360","aria-valuemin":"0"},t.createElement(Sm,{className:"react-colorful__hue-pointer",left:n/360,color:zm({h:n,s:100,v:100,a:1})})))})),Fm=t.memo((function(e){var n=e.hsva,r=e.onChange,o={backgroundColor:zm({h:n.h,s:100,v:100,a:1})};return t.createElement("div",{className:"react-colorful__saturation",style:o},t.createElement(Cm,{onMove:function(e){r({s:100*e.left,v:100-100*e.top})},onKey:function(e){r({s:ym(n.s+100*e.left,0,100),v:ym(n.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+_m(n.s)+"%, Brightness "+_m(n.v)+"%"},t.createElement(Sm,{className:"react-colorful__saturation-pointer",top:1-n.v/100,left:n.s/100,color:zm(n)})))})),Lm=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Rm=function(e,t){return e.toLowerCase()===t.toLowerCase()||Lm(Tm(e),Tm(t))};function Hm(e,t,n){var r=vm(n),i=o((function(){return e.toHsva(t)})),s=i[0],u=i[1],d=l({color:t,hsva:s});a((function(){if(!e.equal(t,d.current.color)){var n=e.toHsva(t);d.current={hsva:n,color:t},u(n)}}),[t,e]),a((function(){var t;Lm(s,d.current.hsva)||e.equal(t=e.fromHsva(s),d.current.color)||(d.current={hsva:s,color:t},r(t))}),[s,e,r]);var p=c((function(e){u((function(t){return Object.assign({},t,e)}))}),[]);return[s,p]}var $m="undefined"!=typeof window?d:a,Um=new Map,Vm=function(e){$m((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!Um.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Um.set(t,n);var r="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},Wm=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=gm(e,["className","colorModel","color","onChange"]),c=l(null);Vm(c);var u=Hm(r,i,a),d=u[0],p=u[1],f=km(["react-colorful",n]);return t.createElement("div",mm({},s,{ref:c,className:f}),t.createElement(Fm,{hsva:d,onChange:p}),t.createElement(Mm,{hue:d.h,onChange:p,className:"react-colorful__last-control"}))},qm={defaultColor:"000",toHsva:Im,fromHsva:function(e){return Om({h:e.h,s:e.s,v:e.v,a:1})},equal:Rm},Gm=function(e){return t.createElement(Wm,mm({},e,{colorModel:qm}))},Ym=function(e){var n=e.className,r=e.hsva,o=e.onChange,i={backgroundImage:"linear-gradient(90deg, "+Bm(Object.assign({},r,{a:0}))+", "+Bm(Object.assign({},r,{a:1}))+")"},a=km(["react-colorful__alpha",n]),s=_m(100*r.a);return t.createElement("div",{className:a},t.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),t.createElement(Cm,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:ym(r.a+e.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},t.createElement(Sm,{className:"react-colorful__alpha-pointer",left:r.a,color:Bm(r)})))},Xm=function(e){var n=e.className,r=e.colorModel,o=e.color,i=void 0===o?r.defaultColor:o,a=e.onChange,s=gm(e,["className","colorModel","color","onChange"]),c=l(null);Vm(c);var u=Hm(r,i,a),d=u[0],p=u[1],f=km(["react-colorful",n]);return t.createElement("div",mm({},s,{ref:c,className:f}),t.createElement(Fm,{hsva:d,onChange:p}),t.createElement(Mm,{hue:d.h,onChange:p}),t.createElement(Ym,{hsva:d,onChange:p,className:"react-colorful__last-control"}))},Km={defaultColor:"0001",toHsva:Im,fromHsva:Om,equal:Rm},Zm=function(e){return t.createElement(Xm,mm({},e,{colorModel:Km}))};const Jm=Xu.div.withConfig({displayName:"InputWrapper",componentId:"sc-108g0a0-0"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:var(--ds-input-height);padding:0 var(--ds-input-side-padding);border:1px solid ",";border-radius:",";background:",";&:hover{border-color:",";box-shadow:",";}&:focus-within{border-color:",";box-shadow:0 0 0 3px ",";}",";",";"],(e=>e.$isSmall?qu(["--ds-input-height:32px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],ld.spacing4,ld.spacing2):qu(["--ds-input-height:40px;--ds-input-side-padding:",";--ds-input-icons-gap:",";"],ld.spacing5,ld.spacing3)),(e=>e.$isInvalid?ld.red500:ld.gray100),ld.radiusMedium,ld.gray10,(e=>e.$isInvalid?ld.red600:ld.gray200),ld.elevation1,(e=>e.$isInvalid?ld.red500:ld.gray300),ld.gray100,(e=>e.$isDisabled&&qu(["border-color:",";background:",";color:",";cursor:not-allowed;&:hover{border-color:",";box-shadow:none;}"],ld.gray100,ld.gray25,ld.gray600,ld.gray100)),(e=>"clean"===e.$variant&&qu(["border-color:transparent;box-shadow:none;&:hover{border-color:transparent;background:",";box-shadow:none;}&:focus-within{border-color:transparent;background:",";box-shadow:none;}"],ld.gray25a,ld.gray50a))),Qm=Xu.input.withConfig({displayName:"InputStyled",componentId:"sc-108g0a0-1"})(["&&&{flex:1;width:auto;min-width:0;height:100%;margin:0;padding:0;border:0;background:transparent;color:",";box-shadow:none;outline:none;font-family:",";"," &::-webkit-inner-spin-button,&::-webkit-outer-spin-button{display:none;margin:0;appearance:none;}&[type='number']{appearance:textfield;}&::placeholder{color:",";}&:disabled{color:",";cursor:not-allowed;&::placeholder{color:",";}}}"],ld.colorText,ld.brandFontStackBase,Pf.uiTextM,ld.gray400,ld.gray600,ld.gray400),eg=Xu.div.withConfig({displayName:"LeftItems",componentId:"sc-108g0a0-2"})(["display:flex;gap:var(--ds-input-icons-gap);align-items:center;margin-right:var(--ds-input-icons-gap);&:empty{display:none;}"]),tg=Xu.div.withConfig({displayName:"IconLeftContainer",componentId:"sc-108g0a0-3"})(["flex:none;margin-left:calc("," * -1);color:",";"],ld.spacing2,ld.gray600),ng=Xu.div.withConfig({displayName:"PrefixContainer",componentId:"sc-108g0a0-4"})(["color:",";"],(e=>e.$isDisabled?ld.gray400:ld.gray600)),rg=Xu.div.withConfig({displayName:"RightItems",componentId:"sc-108g0a0-5"})(["display:flex;flex:none;gap:var(--ds-input-icons-gap);align-items:center;margin-right:calc("," * -1);margin-left:var(--ds-input-icons-gap);&:empty{display:none;}"],ld.spacing2),og=Xu.div.withConfig({displayName:"SuffixContainer",componentId:"sc-108g0a0-6"})(["color:",";&:last-child{margin-right:",";}"],(e=>e.$isDisabled?ld.gray400:ld.gray600),ld.spacing2),ig=Xu.div.withConfig({displayName:"IconRightContainer",componentId:"sc-108g0a0-7"})(["display:grid;flex:none;align-items:center;color:",";"],ld.gray600),ag=Xu.button.withConfig({displayName:"ClearButton",componentId:"sc-108g0a0-8"})(["flex:none;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:focus{color:",";outline:none;}&:active{color:",";}"],ld.gray200a,ld.gray300a,ld.gray400a);function sg(...e){return t=>{for(const n of e)n&&("function"==typeof n?n(t):n.current=t)}}const lg=u((({icon:e,onClick:t,isTooltipShown:n=!1,label:r,isDisabled:o=!1,...i},a)=>{const{isFocusVisible:s,focusProps:l}=$d();return n?Qu.exports.jsx(vh,{content:r,isOpen:!!s||void 0,children:n=>Qu.exports.jsx(cg,{...i,...n,...l,ref:sg(a,n.ref),onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:s,children:e})}):Qu.exports.jsx(cg,{ref:a,...i,...l,onClick:t,disabled:o,type:"button","aria-label":r,$isFocusVisible:s,children:e})})),cg=Xu.button.withConfig({displayName:"InteractiveIconWrapper",componentId:"sc-1dsfcs7-0"})(["vertical-align:middle;width:24px;height:24px;padding:0;border:none;background:transparent;color:",";cursor:pointer;&:hover,&:active{color:",";}&:disabled{color:",";cursor:not-allowed;}",""],ld.gray600,ld.gray800,ld.gray200,(e=>e.$isFocusVisible&&qu(["border-radius:2px;color:",";box-shadow:0 0 0 2px ",";outline:none;"],ld.gray800,ld.gray200))),ug=new Jf(Qf);function dg(){return{translate:(r(nh)||ug).translate}}const pg=u((({hasClearButton:e=!1,icon:t,iconRight:n,id:r,name:i,isDisabled:a=!1,isReadOnly:s=!1,isInvalid:c=!1,isSmall:u=!1,onBlur:d,onChange:p,onFocus:f,onKeyDown:h,placeholder:m,type:g="text",value:v,variant:y="outlined","aria-label":b,"aria-labelledby":x,"aria-describedby":w,"aria-haspopup":E,"aria-expanded":C,"aria-controls":k,"aria-autocomplete":S,"aria-activedescendant":_,inputRef:I,maxLength:T,prefix:O,suffix:j,autoFocus:z=!1,role:B,autoComplete:P="off",...A},N)=>{const[D,M]=o(!1),F=l(null),L=I||F,{translate:R}=dg(),H=e&&v.length>0&&"number"!==g&&"password"!==g,$="password"===g?D?"text":"password":g;function U(){var e;null==(e=null==L?void 0:L.current)||e.focus()}const V="password"===g;return Qu.exports.jsxs(Jm,{...A,$isDisabled:a,$isInvalid:c,$isSmall:u,onClick:U,ref:N,$variant:y,children:[Qu.exports.jsxs(eg,{"data-testid":"ds-input-left-items",children:[t&&Qu.exports.jsx(tg,{children:t}),O&&Qu.exports.jsx(ng,{$isDisabled:a,children:O})]}),Qu.exports.jsx(Qm,{autoComplete:P,autoCorrect:"off",disabled:a,$isDisabled:a,readOnly:s,onBlur:d,onChange:function(e){const t=e.currentTarget.value;null==p||p(t)},onFocus:f,onKeyDown:h,placeholder:m,ref:L,spellCheck:!1,type:$,value:v,"aria-label":b,"aria-labelledby":x,"aria-describedby":w,"aria-haspopup":E,"aria-expanded":C,"aria-controls":k,"aria-autocomplete":S,"aria-activedescendant":_,"aria-invalid":c,role:B,id:r,name:i,maxLength:T,autoFocus:z}),Qu.exports.jsxs(rg,{"data-testid":"ds-input-right-items",children:[j&&Qu.exports.jsx(og,{$isDisabled:a,children:j}),V&&!a&&Qu.exports.jsx(lg,{"data-testid":"ds-password-visibility-toggle",onClick:()=>(M((e=>!e)),void U()),label:R(D?"input.hide-password":"input.show-password"),icon:D?Qu.exports.jsx(Cp,{}):Qu.exports.jsx(bp,{}),isTooltipShown:!0}),H&&!a&&Qu.exports.jsx(ag,{onClick:function(){null==p||p(""),U()},type:"button","aria-label":R("input.clear"),children:Qu.exports.jsx(hp,{})}),n&&Qu.exports.jsx(ig,{children:n})]})]})})),fg="ds-thumbnail__pointer-events-wrapper",hg=Xu.div.withConfig({displayName:"OverlayStyled",componentId:"sc-tjrr3h-0"})(["position:absolute;top:0;left:0;display:grid;place-items:center;width:100%;height:100%;border-radius:var(--ds-thumbnail-border-radius);background:",";color:",";-webkit-mask-image:var(--ds-thumbnail-indicator-cutoff);mask-image:var(--ds-thumbnail-indicator-cutoff);",""],ld.gray200a,ld.gray10,(e=>e.$isConcealed&&qu(["opacity:0;",":hover &,",":focus-visible &{opacity:1;}"],"."+fg,"."+fg))),mg=n((()=>null)),gg=2,vg={state:{square:{l:{radius:8,offset:[4,4]},m:{radius:8,offset:[4,4]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[7,7]}},circle:{l:{radius:8,offset:[0,0]},m:{radius:8,offset:[2,2]},s:{radius:8,offset:[4,4]},xs:{radius:8,offset:[9,5]}}},status:{square:{l:{radius:5,offset:[1,1]},m:{radius:5,offset:[1,1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[1,1]}},circle:{l:{radius:5,offset:[-5,-5]},m:{radius:5,offset:[-1,-1]},s:{radius:5,offset:[1,1]},xs:{radius:3,offset:[-1,-1]}}}},yg=qu(["position:absolute;right:calc(var(--ds-thumbnail-indicator-offset-x) * -1);bottom:calc(var(--ds-thumbnail-indicator-offset-y) * -1);overflow:visible;width:calc(var(--ds-thumbnail-indicator-radius) * 2);height:calc(var(--ds-thumbnail-indicator-radius) * 2);"]),bg=Xu.svg.withConfig({displayName:"SvgIcon",componentId:"sc-18umtiy-0"})(["",""],yg),xg=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-18umtiy-1"})([""," display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:",";color:",";svg{width:12px;height:12px;}"],yg,(({$backgroundColor:e})=>ld[e]),(({$iconColor:e})=>ld[e])),wg={draft:function({...e}){return Qu.exports.jsxs(bg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.gray400,children:[Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Qu.exports.jsx("path",{d:"M 7.5 10.5 C 6.671875 10.5 6 11.171875 6 12 C 6 12.828125 6.671875 13.5 7.5 13.5 C 8.328125 13.5 9 12.828125 9 12 C 9 11.171875 8.328125 10.5 7.5 10.5 Z M 10.5 12 C 10.5 11.171875 11.171875 10.5 12 10.5 C 12.828125 10.5 13.5 11.171875 13.5 12 C 13.5 12.828125 12.828125 13.5 12 13.5 C 11.171875 13.5 10.5 12.828125 10.5 12 Z M 15 12 C 15 11.171875 15.671875 10.5 16.5 10.5 C 17.328125 10.5 18 11.171875 18 12 C 18 12.828125 17.328125 13.5 16.5 13.5 C 15.671875 13.5 15 12.828125 15 12 Z M 15 12 ",fill:"white"})]})},error:function({...e}){return Qu.exports.jsxs(bg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.red400,children:[Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Qu.exports.jsx("path",{d:"M 13.5 4.5 L 10.5 4.5 L 10.5 13.5 L 13.5 13.5 Z M 13.5 4.5 ",fill:"white"}),Qu.exports.jsx("path",{d:"M 13.5 16.5 L 10.5 16.5 L 10.5 19.5 L 13.5 19.5 Z M 13.5 16.5 ",fill:"white"})]})},loading:function({...e}){return Qu.exports.jsx(bg,{...e,viewBox:"0 0 14 14","aria-hidden":"true",fill:ld.gray400,children:Qu.exports.jsx(Cg,{cx:"7",cy:"7",r:"5",fill:"transparent",strokeWidth:"2"})})},negative:function({...e}){return Qu.exports.jsxs(bg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.red400,children:[Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Qu.exports.jsx("path",{d:"M 17.304688 6.695312 C 16.71875 6.109375 15.769531 6.109375 15.183594 6.695312 L 12 9.878906 L 8.816406 6.695312 C 8.230469 6.109375 7.28125 6.109375 6.695312 6.695312 C 6.109375 7.28125 6.109375 8.230469 6.695312 8.816406 L 9.878906 12 L 6.695312 15.183594 C 6.109375 15.769531 6.109375 16.71875 6.695312 17.304688 C 7.28125 17.890625 8.230469 17.890625 8.816406 17.304688 L 12 14.121094 L 15.183594 17.304688 C 15.769531 17.890625 16.71875 17.890625 17.304688 17.304688 C 17.890625 16.71875 17.890625 15.769531 17.304688 15.183594 L 14.121094 12 L 17.304688 8.816406 C 17.890625 8.230469 17.890625 7.28125 17.304688 6.695312 Z M 17.304688 6.695312",fill:"white"})]})},positive:function({...e}){return Qu.exports.jsxs(bg,{...e,viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.teal500,children:[Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "}),Qu.exports.jsx("path",{d:"m5.69215,11.43763c-0.58607,0.58607 -0.58607,1.53629 0,2.12236l3.18355,3.18363c0.21978,0.21971 0.49077,0.35703 0.77456,0.41195c0.12714,0.02461 0.25685,0.03272 0.38568,0.02431c0.35044,-0.02311 0.69432,-0.16853 0.96216,-0.43627l7.42831,-7.42836c0.58604,-0.58608 0.58604,-1.53629 0,-2.12238c-0.58604,-0.58607 -1.53631,-0.58607 -2.12235,0l-6.36715,6.36712l-2.12238,-2.12238c-0.58608,-0.58608 -1.53629,-0.58608 -2.12238,0z",fill:"white"})]})}},Eg=Ju`
|
|
27
27
|
0% {
|
|
28
28
|
transform: rotate(0deg);
|
|
29
29
|
stroke-dashoffset: 6.6;
|
|
@@ -38,12 +38,12 @@ import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,
|
|
|
38
38
|
transform: rotate(1080deg);
|
|
39
39
|
stroke-dashoffset: 6.6;
|
|
40
40
|
}
|
|
41
|
-
`,vg=Uu.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-1lkhjx6-0"})(["stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.$color||nd.gray400),gg),yg={online:function(){return Gu.exports.jsx(fg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.teal500,children:Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "})})},offline:function(){return Gu.exports.jsx(fg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:nd.gray400,children:Gu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "})})},inactive:function(){return Gu.exports.jsx(fg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent",children:Gu.exports.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:nd.gray400,strokeWidth:"4"})})}};function bg({size:e="m",shape:t="square",variant:n="clean",icon:o,imageUrl:i,backgroundColor:a,iconColor:s,children:l,...c}){const[u,d]=r("none"),p="content"===n,f="clean"===n,h=a?nd[a]||a:f?nd.gray50a:a||i?"transparent":nd.white,m=f?nd[s]||s||nd.gray600:void 0,g="circle"===t?"50%":"preview"===n?"0":"5px",v=Ph("thumbnail-mask"),y="none"!==u?dg[u][t][e]:{radius:0,offset:[0,0]};return Gu.exports.jsx(cg.Provider,{value:d,children:Gu.exports.jsxs(Eg,{$size:e,$shape:t,$indicator:u,className:sg,style:{"--ds-thumbnail-border-radius":g},...c,children:[Gu.exports.jsxs(xg,{role:"none",children:[Gu.exports.jsxs("mask",{id:v,children:[Gu.exports.jsx("rect",{fill:"white",x:"0",y:"0",width:"100%",height:"100%",rx:g}),"none"!==u&&Gu.exports.jsx("circle",{fill:"black",cx:`calc(100% - ${y.radius}px + ${y.offset[0]}px)`,cy:`calc(100% - ${y.radius}px + ${y.offset[1]}px)`,r:`calc(${y.radius}px + ${ug}px`})]}),Gu.exports.jsxs("g",{mask:`url(#${v})`,children:[p&&Gu.exports.jsx(_g,{}),Gu.exports.jsx("rect",{fill:h,x:"0",y:"0",width:"100%",height:"100%",rx:g,"data-testid":"ds-thumbnail-fill"}),i&&Gu.exports.jsx("image",{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid "+("preview"===n?"meet":"slice"),xlinkHref:i,"data-testid":"ds-thumbnail-image"}),p&&Gu.exports.jsx("rect",{fill:"none",x:"0",y:"0",width:"100%",height:"100%",stroke:"rgba(0,0,0,0.1)",strokeWidth:"2",rx:g,"data-testid":"ds-thumbnail-inner-shadow"})]})]}),Gu.exports.jsxs(kg,{$iconColor:m,$size:e,"data-testid":"ds-thumbnail-content",children:[o,p&&!a&&!i&&Gu.exports.jsx(Sg,{"data-testid":"ds-thumbnail-no-image-line"})]}),l]})})}bg.Overlay=function({children:e,isConcealed:t=!1,isLoading:n=!1,...r}){return Gu.exports.jsx(lg,{$isConcealed:t,...r,children:n?Gu.exports.jsx($d,{"data-testid":"ds-thumbnail-overlay-spinner"}):e})},bg.pointerEventsClassname=sg,bg.Indicator=function({...e}){const t=i(cg);if(a((()=>(t("state"),()=>t("none"))),[t]),"type"in e){const{type:t,...n}=e,r=mg[t];return Gu.exports.jsx(r,{...n})}const{backgroundColor:n,iconColor:r,icon:o,...s}=e;return Gu.exports.jsx(hg,{$backgroundColor:n||"gray400",$iconColor:r||"white",...s,children:o})},bg.Status=function({type:e}){const t=i(cg),n=yg[e];return a((()=>(t("status"),()=>t("none"))),[t]),Gu.exports.jsx(n,{})};const xg=Uu.svg.withConfig({displayName:"Svg",componentId:"sc-yoyund-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;"]),wg={xs:"24px",s:"32px",m:"40px",l:"64px"},Eg=Uu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-yoyund-1"})(["position:relative;flex:none;width:",";height:",";",""],(e=>wg[e.$size]),(e=>wg[e.$size]),(e=>{if("none"===e.$indicator)return;const{radius:t,offset:n}=dg[e.$indicator][e.$shape][e.$size];return Ru(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-x ) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-y ) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,ug)})),Cg={xs:nd.fontSize100,s:nd.fontSize200,m:nd.fontSize500,l:nd.fontSize500},kg=Uu.div.withConfig({displayName:"Content",componentId:"sc-yoyund-2"})(["position:absolute;inset:0;display:grid;place-items:center;color:",";font-weight:600;font-size:",";line-height:1;"],(e=>e.$iconColor),(e=>Cg[e.$size])),Sg=Uu.div.withConfig({displayName:"NoImage",componentId:"sc-yoyund-3"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],nd.red500);function _g(){return Gu.exports.jsxs("g",{children:[Gu.exports.jsx("rect",{height:"64",width:"64",x:"0",y:"0",fill:"#ffffff"}),Gu.exports.jsx("path",{fill:"#e9ecee",d:"M0 0h4v4H0zM0 8h4v4H0zM0 16h4v4H0zM0 24h4v4H0zM0 32h4v4H0zM0 40h4v4H0zM0 48h4v4H0zM0 56h4v4H0zM4 4h4v4H4zM4 12h4v4H4zM4 20h4v4H4zM4 28h4v4H4zM4 36h4v4H4zM4 44h4v4H4zM4 52h4v4H4zM4 60h4v4H4zM8 0h4v4H8zM8 8h4v4H8zM8 16h4v4H8zM8 24h4v4H8zM8 32h4v4H8zM8 40h4v4H8zM8 48h4v4H8zM8 56h4v4H8zM12 4h4v4h-4zM12 12h4v4h-4zM12 20h4v4h-4zM12 28h4v4h-4zM12 36h4v4h-4zM12 44h4v4h-4zM12 52h4v4h-4zM12 60h4v4h-4zM16 0h4v4h-4zM16 8h4v4h-4zM16 16h4v4h-4zM16 24h4v4h-4zM16 32h4v4h-4zM16 40h4v4h-4zM16 48h4v4h-4zM16 56h4v4h-4zM20 4h4v4h-4zM20 12h4v4h-4zM20 20h4v4h-4zM20 28h4v4h-4zM20 36h4v4h-4zM20 44h4v4h-4zM20 52h4v4h-4zM20 60h4v4h-4zM24 0h4v4h-4zM24 8h4v4h-4zM24 16h4v4h-4zM24 24h4v4h-4zM24 32h4v4h-4zM24 40h4v4h-4zM24 48h4v4h-4zM24 56h4v4h-4zM28 4h4v4h-4zM28 12h4v4h-4zM28 20h4v4h-4zM28 28h4v4h-4zM28 36h4v4h-4zM28 44h4v4h-4zM28 52h4v4h-4zM28 60h4v4h-4zM32 0h4v4h-4zM32 8h4v4h-4zM32 16h4v4h-4zM32 24h4v4h-4zM32 32h4v4h-4zM32 40h4v4h-4zM32 48h4v4h-4zM32 56h4v4h-4zM36 4h4v4h-4zM36 12h4v4h-4zM36 20h4v4h-4zM36 28h4v4h-4zM36 36h4v4h-4zM36 44h4v4h-4zM36 52h4v4h-4zM36 60h4v4h-4zM40 0h4v4h-4zM40 8h4v4h-4zM40 16h4v4h-4zM40 24h4v4h-4zM40 32h4v4h-4zM40 40h4v4h-4zM40 48h4v4h-4zM40 56h4v4h-4zM44 4h4v4h-4zM44 12h4v4h-4zM44 20h4v4h-4zM44 28h4v4h-4zM44 36h4v4h-4zM44 44h4v4h-4zM44 52h4v4h-4zM44 60h4v4h-4zM48 0h4v4h-4zM48 8h4v4h-4zM48 16h4v4h-4zM48 24h4v4h-4zM48 32h4v4h-4zM48 40h4v4h-4zM48 48h4v4h-4zM48 56h4v4h-4zM52 4h4v4h-4zM52 12h4v4h-4zM52 20h4v4h-4zM52 28h4v4h-4zM52 36h4v4h-4zM52 44h4v4h-4zM52 52h4v4h-4zM52 60h4v4h-4zM56 0h4v4h-4zM56 8h4v4h-4zM56 16h4v4h-4zM56 24h4v4h-4zM56 32h4v4h-4zM56 40h4v4h-4zM56 48h4v4h-4zM56 56h4v4h-4zM60 4h4v4h-4zM60 12h4v4h-4zM60 20h4v4h-4zM60 28h4v4h-4zM60 36h4v4h-4zM60 44h4v4h-4zM60 52h4v4h-4zM60 60h4v4h-4z"})]})}const Ig=/^#([a-f\d])([a-f\d])([a-f\d])$/i,Tg="#$1$1$2$2$3$3";function Og({color:e,opacity:t}){let n=e;return Ig.test(e)&&(n=n.replace(Ig,Tg)),n+function(e){const t=Math.round(255*parseInt(e,10)/100).toString(16).toUpperCase();return t.length<2?`0${t}`:t}(t.toString())}function jg({value:e,onChange:t,opacity:n}){const[o,i]=r(e);return a((()=>{i(e)}),[e]),Gu.exports.jsx(ag,{maxLength:7,icon:Gu.exports.jsx(bg,{variant:"content",backgroundColor:void 0===n?e:Og({color:e,opacity:n}),shape:"circle",size:"xs"}),value:o,onChange:e=>{const n=function(e){const t="#"+e.replace(/([^0-9A-F]+)/gi,"");return 1===t.length?"":t}(e);i(n),(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n)||0===n.length)&&t(n)},onBlur:()=>{o!==e&&(t(e),i(e))},placeholder:"#ffffff","aria-label":"Hex"})}const zg=Uu.div.withConfig({displayName:"InputContainer",componentId:"sc-1a4d7zw-0"})(["display:grid;grid-template-columns:",";align-items:center;padding:0 "," ",";column-gap:",";"],(e=>e.$hasAlphaChannel?"minmax(10px, 1fr) 80px":"1fr"),nd.spacing5,nd.spacing5,nd.spacing4);function Bg({value:e,onChange:t}){return Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(Hm,{color:e,onChange:e=>{t(e)}}),Gu.exports.jsx(zg,{children:Gu.exports.jsx(jg,{value:e,onChange:e=>{t(e)}})})]})}function Pg(e){if(e.length<=7)return 100;const t=e.slice(-2),n=parseInt(t,16);return Math.floor(Math.round(n/255*100))}function Ag(e){const{translate:t}=ig();return Gu.exports.jsx(ag,{type:"number",suffix:"%",maxLength:3,value:e.value.toString(),onChange:t=>{e.onChange(parseInt(t||"0",10))},onBlur:t=>{const n=parseInt(t.target.value,10);n>=0&&n<=100||e.onChange(100)},"aria-label":t("colorpicker.opacity-input")})}function Ng({value:e,onChange:t}){return Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(Wm,{color:Og(e),onChange:e=>{t({color:e.substring(0,7),opacity:Pg(e)})}}),Gu.exports.jsxs(zg,{$hasAlphaChannel:!0,children:[Gu.exports.jsx(jg,{value:e.color,opacity:e.opacity,onChange:n=>{t({color:n,opacity:e.opacity})}}),Gu.exports.jsx(Ag,{value:e.opacity,onChange:n=>{t({color:e.color,opacity:n})}})]})]})}function Dg(e){return"string"==typeof e.value}function Mg(e){const{trigger:t,value:n,onChange:o,...i}=e,[a,s]=r(!1),c=l(),u=Ph("colorpicker"),d=rh("colorpicker"),{renderLayer:p,triggerProps:{ref:f},layerProps:h}=ff({isOpen:a,onOutsideClick:sm(c.current)?void 0:()=>s(!1),triggerOffset:8,containerOffset:16,auto:!0,container:lm(c.current),placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start","bottom-end","top-end"]});return am("Escape",(()=>{a&&s(!1)})),t?Gu.exports.jsxs(Gu.exports.Fragment,{children:[t({isOpen:a,onClick:()=>s((e=>!e)),"aria-haspopup":!0,"aria-expanded":a,"aria-controls":u,ref:$p(f,c)}),a&&p(Gu.exports.jsx(Fg,{id:u,$zIndex:d,...h,...i,children:Gu.exports.jsx(Lg,{children:Dg(e)?Gu.exports.jsx(Bg,{value:e.value,onChange:e.onChange}):Gu.exports.jsx(Ng,{value:e.value,onChange:e.onChange})})}))]}):Gu.exports.jsx(Lg,{...i,children:Dg(e)?Gu.exports.jsx(Bg,{value:e.value,onChange:e.onChange}):Gu.exports.jsx(Ng,{value:e.value,onChange:e.onChange})})}const Fg=Uu.div.withConfig({displayName:"Container",componentId:"sc-qqaz7i-0"})(["z-index:",";"],(e=>e.$zIndex)),Lg=Uu.div.withConfig({displayName:"ColorPickerCard",componentId:"sc-qqaz7i-1"})(["width:256px;border-radius:",";background-color:",";box-shadow:",",",";.react-colorful{width:100%;height:auto;}.react-colorful__saturation{height:156px;margin-bottom:",";border-bottom:none;border-radius:"," "," 0 0;box-shadow:none;}.react-colorful__hue,.react-colorful__alpha{height:8px;margin:0 "," ",";border-radius:",";}.react-colorful__hue{box-shadow:inset 0 0 0 1px ",";}.react-colorful__alpha{background-image:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");}.react-colorful__alpha-gradient{height:8px;border-radius:",";box-shadow:inset 0 0 0 1px ",";}.react-colorful__pointer{width:16px;height:16px;border-width:4px;box-shadow:0 0 0 1px ",";cursor:pointer;}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%);}.react-colorful__interactive:active .react-colorful__pointer{width:20px;height:20px;border-width:6px;}.react-colorful__pointer-fill{box-shadow:inset ",";}"],nd.radiusBase,nd.gray10,nd.elevationStatic,nd.elevation2,nd.spacing6,nd.radiusBase,nd.radiusBase,nd.spacing5,nd.spacing6,nd.radiusPill,nd.gray100a,nd.radiusBase,nd.gray100a,nd.gray200a,nd.elevation1),Rg=Uu.div.withConfig({displayName:"ArrowStyled",componentId:"sc-dmd5wz-0"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],nd.spacing2,nd.spacing2),Hg=n(null);function $g(){const e=i(Hg);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}const Ug=n(void 0),Vg=u((({children:e,minWidth:t,role:n="menu",...r},o)=>{const s=rh("dropdown"),c=l(null),{dispatch:u}=$g(),d=i(Ug);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),Gu.exports.jsx(Wg,{$minWidth:t,role:n,ref:tg(o,c),$zIndex:s,...r,children:e})})),Wg=Uu.div.withConfig({displayName:"ContainerStyled",componentId:"sc-12bt5ca-0"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:",";max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.$zIndex),(e=>e.$minWidth?e.$minWidth:"224px"),nd.spacing3,nd.spacing3,nd.radiusBase,nd.gray10,nd.colorText,nd.elevationStatic,nd.elevation2),qg="ds-switch__pointer-events-wrapper";function Gg({children:e,isChecked:t,isDisabled:n,inputProps:r,onChange:o=(()=>{}),...i}){const{isFocusVisible:a,focusProps:s}=Dd();return Gu.exports.jsxs(Yg,{$isDisabled:n,className:qg,...i,children:[e&&Gu.exports.jsx(Xg,{children:e}),Gu.exports.jsx(Kg,{children:Gu.exports.jsxs(Zg,{children:[Gu.exports.jsx("input",{role:"switch",type:"checkbox",disabled:n,onChange:o,checked:t,"aria-checked":t,...s,...r}),Gu.exports.jsx(Qg,{"aria-hidden":"true",$isDisabled:n,$isFocusVisible:a})]})})]})}Gg.pointerEventsClassname=qg;const Yg=Uu.label.withConfig({displayName:"SwitchStyled",componentId:"sc-1tgwl0j-0"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],If.uiTextM,nd.spacing1,nd.colorText,(e=>!e.$isDisabled&&"pointer")),Xg=Uu.span.withConfig({displayName:"Label",componentId:"sc-1tgwl0j-1"})(["align-self:center;margin-right:",";"],nd.spacing4),Kg=Uu.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-1tgwl0j-2"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),Zg=Uu.span.withConfig({displayName:"Toggle",componentId:"sc-1tgwl0j-3"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),Jg="."+qg,Qg=Uu.span.withConfig({displayName:"Indicator",componentId:"sc-1tgwl0j-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &&{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &&,",":focus-visible &&{background-color:",";}",":hover input:checked + &&,",":focus-visible input:checked + &&{background-color:",";}",""],nd.radiusPill,(e=>e.$isDisabled?nd.gray100:nd.gray75),(e=>!e.$isDisabled&&"pointer"),(e=>e.$isDisabled?nd.gray50:nd.gray10),nd.elevation2,Zg,(e=>e.$isDisabled?nd.gray400:nd.blue500),(e=>e.$isDisabled?"0.5":"1"),(e=>e.$isDisabled?nd.gray100:nd.gray10),(e=>!e.$isDisabled&&Ru(["",":active input + &&::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &&::before{right:2px;left:calc(100% - 24px);}"],Jg,Jg)),Jg,Jg,nd.gray100,Jg,Jg,(e=>e.$isDisabled?nd.gray400:nd.blue600),(e=>e.$isFocusVisible&&Ru([""," input + &&{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &&::after{border-color:",";}"],Zg,nd.gray100,nd.gray200,Zg,nd.blue500))),ev=Uu.div.withConfig({displayName:"ItemWrapper",componentId:"sc-19mayjj-0"})(["position:relative;"]),tv=Uu.button.withConfig({displayName:"ItemStyled",componentId:"sc-19mayjj-1"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],If.uiTextS,nd.spacing5,(e=>e.$isChecked?nd.colorText:nd.colorTextMuted),nd.brandFontStackBase,(e=>e.$isSubmenuOpen&&Ru(["background:",";color:",";"],nd.gray25,nd.gray800)),(e=>e.$isHighlighted&&Ru(["background:",";color:",";"],nd.gray50,nd.gray800)),nd.gray25,nd.colorText,nd.gray50,nd.gray800,nd.colorTextDisabled),nv=Uu.span.withConfig({displayName:"CheckboxContainer",componentId:"sc-19mayjj-2"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],nd.spacing3),rv=Uu.span.withConfig({displayName:"Icon",componentId:"sc-19mayjj-3"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],nd.spacing3),ov=Uu.span.withConfig({displayName:"Label",componentId:"sc-19mayjj-4"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),iv=Uu.span.withConfig({displayName:"RightContainer",componentId:"sc-19mayjj-5"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],nd.spacing3,nd.spacing2),av=Uu.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-19mayjj-6"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],nd.spacing3,nd.spacing3,(e=>e.$isActive?nd.gray400:nd.gray200),tv,tv,nd.gray400),sv=Uu(Vg).withConfig({displayName:"SubMenuContainer",componentId:"sc-19mayjj-7"})(["margin-top:calc("," * -1);"],nd.spacing3),lv=Uu.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-oyebvv-0"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],If.uiTextS,nd.spacing4,nd.spacing5,nd.spacing3,nd.colorText);function cv(e){return{"bottom-center":{placement:"bottom-center",possiblePlacements:["bottom-center","top-center"]},"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const uv={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function dv(e,t){var n,r;if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...uv};if("toggle"===t.type)return{...uv,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...uv,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){if(0===e.items.length)return e;const t=null==(n=e.items.find((t=>t.id===e.highlightedItemId)))?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,s=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:s}}if("highlight-next"===t.type){if(0===e.items.length)return e;const t=null==(r=e.items.find((t=>t.id===e.highlightedItemId)))?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const pv=Uu.span.withConfig({displayName:"Text",componentId:"sc-46jr3k-0"})(["width:100%;min-width:0;text-align:left;"]);function fv({direction:e="horizontal",...t}){return"horizontal"===e?Gu.exports.jsx(hv,{...t}):Gu.exports.jsx(mv,{role:"separator",...t})}const hv=Uu.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-1dm91yn-0"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],nd.spacing3,nd.componentDividerColor),mv=Uu.div.withConfig({displayName:"VerticalDivider",componentId:"sc-1dm91yn-1"})(["box-sizing:content-box;width:1px;min-height:100%;margin:0;padding:0 ",";background:",";background-clip:content-box;"],nd.spacing2,nd.componentDividerColor),gv=Uu.div.withConfig({displayName:"Container",componentId:"sc-ha8lpr-0"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:",";box-shadow:",";"],nd.spacing3,nd.spacing4,nd.white,nd.elevationStatic),vv=Uu.div.withConfig({displayName:"Inner",componentId:"sc-ha8lpr-1"})(["position:absolute;top:",";right:",";left:",";display:flex;gap:",";"],nd.spacing4,nd.spacing4,nd.spacing4,nd.spacing3),yv=Uu.div.withConfig({displayName:"InputWrapper",componentId:"sc-ha8lpr-2"})(["min-width:0;"]),bv=Uu.div.withConfig({displayName:"TextStyled",componentId:"sc-14qd6tq-0"})([""," padding:"," ",";color:",";"],(e=>"item"===e.$fontSize?If.uiTextS:If.uiTextM),nd.spacing3,nd.spacing5,nd.gray400);const xv=64,wv=Uu.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-inr4c8-0"})(["width:",";opacity:",";&:focus-within{width:auto;opacity:1;}"],(e=>e.$isVisible?"auto":"var(--list-item-concealead-action-width, 0)"),(e=>e.$isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),Ev=Uu.div.withConfig({displayName:"Header",componentId:"sc-1hlvuel-0"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";color:",";"],nd.spacing3,nd.spacing2,nd.colorText),Cv=n({isDragging:!1,dragIndicator:null}),kv=u((({children:e,subtext:n,thumbnail:r,rightElements:o,onClick:a,isDisabled:s=!1,isSelected:l=!1,checkedVariant:c,isChecked:u=!1,isIndeterminateCheckbox:d=!1,...p},f)=>{const h=Ph("list-item-label"),{isFocusVisible:m,focusProps:g}=Dd(),v=i(Cv),y=t.useRef(null),b=[Vh.pointerEventsClassname,Gg.pointerEventsClassname,bg.pointerEventsClassname].join(" "),x="function"==typeof a,w=x&&!s;return Gu.exports.jsxs(Sv,{$isDragging:(null==v?void 0:v.isDragging)??!1,$isSelected:l,$isActive:x,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},$isDisabled:s,className:b,$isFocusVisible:m,ref:f,...p,...g,children:["checkbox"===c&&Gu.exports.jsx(_v,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:Gu.exports.jsx(Vh,{isChecked:u,isIndeterminate:d,isDisabled:s,"aria-labelledby":h,onChange:a})}),r&&Gu.exports.jsx(Iv,{$isDisabled:s,children:r}),Gu.exports.jsxs(Tv,{id:h,children:[Gu.exports.jsx(yh,{children:e}),n?Gu.exports.jsx(Ov,{$isDisabled:s,children:Gu.exports.jsx(yh,{children:n})}):null]}),(o||(null==v?void 0:v.dragIndicator))&&Gu.exports.jsx(jv,{ref:y,onClick:e=>{var t;(null==(t=null==y?void 0:y.current)?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:function(e){"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&e.stopPropagation()},children:Gu.exports.jsxs(Tf,{alignItems:"center",gap:"3",children:[o,null==v?void 0:v.dragIndicator]})}),"switch"===c&&Gu.exports.jsx(jv,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:Gu.exports.jsx(Gg,{isChecked:u,isDisabled:s,"aria-labelledby":h,onChange:a})})]})})),Sv=Uu.div.withConfig({displayName:"ItemStyled",componentId:"sc-1g4uzlb-0"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;--list-item-concealead-action-width:auto;}"," "," ",""],nd.gray200,nd.spacing4,nd.spacing4,nd.spacing3,nd.spacing4,nd.radiusLarge,(e=>e.$isActive&&Ru(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&&:hover{--list-item-right-elements-color:",";background:",";}"," &&:active{background:",";box-shadow:none;}",""],nd.gray200,nd.gray600,nd.gray25,e.$isFocusVisible&&Ru(["--list-item-right-elements-color:",";background:",";&&,&&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],nd.gray600,nd.gray25,nd.gray50,nd.gray10),nd.gray50,e.$isDisabled&&Ru(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],nd.gray200,nd.colorTextDisabled))),(e=>e.$isSelected&&Ru(["--list-item-right-elements-color:",";&&,&&:hover{background:",";}"],nd.gray600,nd.gray50)),(e=>e.$isDragging&&Ru(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],nd.gray600,nd.gray25,nd.elevation4))),_v=Uu.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-1g4uzlb-1"})(["flex:none;margin-right:",";"],nd.spacing4),Iv=Uu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1g4uzlb-2"})(["flex:none;margin-right:",";",""],nd.spacing4,(e=>e.$isDisabled&&"opacity: 50%;")),Tv=Uu.div.withConfig({displayName:"Content",componentId:"sc-1g4uzlb-3"})([""," flex:1;min-width:0;"],If.uiTextM),Ov=Uu.div.withConfig({displayName:"Subtext",componentId:"sc-1g4uzlb-4"})([""," color:",";"],If.uiTextS,(e=>e.$isDisabled?nd.colorTextDisabled:nd.colorTextMuted)),jv=Uu.div.withConfig({displayName:"RightElements",componentId:"sc-1g4uzlb-5"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],nd.spacing4);function zv({children:e,isContained:t=!1,...n}){return Gu.exports.jsx(Bv,{$isContained:t,...n,children:e})}zv.Group=function({title:e,action:t,children:n,...r}){const o=Ph("list-group-header");return Gu.exports.jsxs("div",{...r,children:[Gu.exports.jsxs(Ev,{children:[Gu.exports.jsx("span",{id:o,children:e}),t]}),Gu.exports.jsx("div",{"aria-describedby":o,children:n})]})},zv.Item=kv,zv.Divider=fv,zv.ConcealedAction=function({isVisible:e,...t}){return Gu.exports.jsx(wv,{$isVisible:e,...t})};const Bv=Uu.div.withConfig({displayName:"ListStyled",componentId:"sc-kyt0j-0"})(["padding:",";"],(e=>e.$isContained?`0 ${nd.spacing5}`:`${nd.spacing3} 0`)),Pv=Uu.div.withConfig({displayName:"ItemWrapper",componentId:"sc-upc0k1-0"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],nd.spacing4);function Av(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Nv(e){if(!e||!Av(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}const Dv=n("normal");function Mv({children:e,trigger:t,position:n="bottom-left",isClosedOnScroll:r=!1,isKeepingFocusOnTrigger:s=!1,containerRef:u,onOpen:d,onClose:f,minWidth:h,role:m,...g}){const[v,y]=p(dv,uv),b=l(!0),x=l(),w=Ph("dropdown-menu");var E,C;a((()=>{b.current?b.current=!1:v.isOpen?(y({type:"highlight-current-item"}),null==d||d()):null==f||f()}),[v.isOpen]),E=v.highlightedItemId,C=v.hasSearch,a((()=>{if(!E)return;const e=document.querySelector("#"+E);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=n?xv:0;return!(r>=a.bottom-i||o<=a.top+s+i)}(e,t,C)||e.scrollIntoView(!1))}}),[E,C]);const k=c((()=>{var e;v.isOpen&&(y({type:"close"}),null==(e=null==x?void 0:x.current)||e.focus())}),[v.isOpen]);a((()=>{function e(){k()}if(r&&v.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[r,k,v.isOpen]),am("Tab",(()=>{v.isOpen&&k()})),am("Escape",(()=>{v.isOpen&&k()})),am("Enter",(e=>{var t;v.isOpen&&v.highlightedItemId&&(null==(t=document.querySelector("#"+v.highlightedItemId))||t.click(),e.preventDefault())})),am("ArrowDown",(e=>{v.isOpen&&(y({type:"highlight-next"}),e.preventDefault())})),am("ArrowUp",(e=>{v.isOpen&&(y({type:"highlight-previous"}),e.preventDefault())}));const S=o((()=>({dispatch:y,close:k,highlightedItemId:v.highlightedItemId,hasSearch:v.hasSearch,isKeepingFocusOnTrigger:s,menuId:w})),[k,s,v.hasSearch,v.highlightedItemId,w]),_="extra"===i(Dv)?8:4,{renderLayer:I,triggerProps:{ref:T},layerProps:O,triggerBounds:j}=ff({isOpen:v.isOpen,onOutsideClick:Av(x.current)?void 0:()=>y({type:"close"}),onDisappear:e=>{"full"===e&&y({type:"close"})},triggerOffset:_,containerOffset:16,auto:!0,container:Nv(x.current),...cv(n)}),z="bottom"===n?{width:null==j?void 0:j.width,minWidth:"initial",maxWidth:"initial"}:{};return Gu.exports.jsx(Hg.Provider,{value:S,children:Gu.exports.jsxs("div",{...g,children:[t({isOpen:v.isOpen,onClick:()=>{y({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":v.isOpen,"aria-controls":w,"aria-activedescendant":v.highlightedItemId,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),y({type:"toggle-from-keyboard"}))},ref:$p(T,x)},{open:()=>{y({type:"open"})},close:()=>{y({type:"close"})}}),v.isOpen&&I(Gu.exports.jsx(Vg,{id:w,...O,ref:$p(O.ref,u),style:{...O.style,...z},minWidth:h,role:m,children:e}))]})})}function Fv(e){return Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fv(e)}function Lv(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Rv(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Hv(e){Rv(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Fv(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}Mv.Divider=fv,Mv.Item=function({children:e,isDisabled:t,icon:n,checkedVariant:s="checkmark",isChecked:c=!1,badge:u,onClick:d,submenu:p,role:f,...h}){const[m,g]=r(!1),[v,y]=r(!1),b=Ph("dropdown-item"),x=Ph("dropdown-item-label"),w=Ph("dropdown-submenu"),E=Boolean(p),{dispatch:C,...k}=$g(),S=k.highlightedItemId===b,_=i(Ug),{isFocusVisible:I,focusProps:T}=Dd(),{hoverProps:O}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:s}=e,[c,u]=r(!1),d=l({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(Bd,[]);let{hoverProps:p,triggerHoverEnd:f}=o((()=>{let e=(e,r)=>{if(d.pointerType=r,s||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let o=e.currentTarget;d.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},r=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),u(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{Td&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(o.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Td||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:o,triggerHoverEnd:r}}),[t,n,i,s,d]);return a((()=>{s&&f({currentTarget:d.target},d.pointerType)}),[s]),{hoverProps:p,isHovered:c}}({onHoverStart:()=>{E&&g(!0)},onHoverEnd:()=>{E&&g(!1)}}),j=m&&E,{triggerProps:z,layerProps:B,renderLayer:P}=ff({isOpen:j,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});a((()=>{C({type:"add-item",payload:{id:b,parentId:_,isDisabled:t,isSelected:"checkmark"===s?c:void 0}})})),a((()=>{v&&C({type:"highlight-submenu"})}),[C,v]),a((()=>{var e;k.hasSearch||k.isKeepingFocusOnTrigger||S&&(null==(e=document.querySelector("#"+b))||e.focus())}),[k.hasSearch,k.isKeepingFocusOnTrigger,b,S]),am("ArrowLeft",(e=>{E&&v&&(C({type:"highlight-item",payload:b}),g(!1),y(!1),e.preventDefault())})),am("ArrowRight",(e=>{S&&E&&(g(!0),y(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?Vh.pointerEventsClassname:"switch"===e?Gg.pointerEventsClassname:""}(s),N=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(f,s,c),D="menuitemcheckbox"===N||"menuitemradio"===N||"option"===N?c:void 0,M=E?{"aria-haspopup":!0,"aria-expanded":m,"aria-controls":w}:{};function F(e){null==d||d(e),E||("menuitemcheckbox"!==N?k.close():C({type:"keep-highlight"}))}return Gu.exports.jsx(Ug.Provider,{value:b,children:Gu.exports.jsxs(ev,{...O,...z,onClick:e=>e.stopPropagation(),children:[Gu.exports.jsxs(tv,{disabled:t,"aria-disabled":t,$isChecked:c,"aria-checked":D,"aria-selected":k.hasSearch||k.isKeepingFocusOnTrigger?S:void 0,role:N,onClick:F,tabIndex:-1,id:b,onKeyDown:function(e){E&&(" "!==e.key&&"Enter"!==e.key||(null==d||d(e),g((e=>{const t=!e;return y(t),t})),e.preventDefault()))},$isHighlighted:S||I,$isSubmenuOpen:m,className:A,...M,...T,...h,children:["checkbox"===s&&Gu.exports.jsx(nv,{onClick:e=>e.stopPropagation(),children:Gu.exports.jsx(Vh,{isChecked:c,isDisabled:t,"aria-labelledby":x,onChange:F})}),n&&Gu.exports.jsx(rv,{children:n}),Gu.exports.jsx(ov,{id:x,children:e}),"checkmark"===s&&c&&Gu.exports.jsx(iv,{children:Gu.exports.jsx(sp,{})}),u&&Gu.exports.jsx(iv,{children:u}),"switch"===s&&Gu.exports.jsx(iv,{onClick:e=>e.stopPropagation(),children:Gu.exports.jsx(Gg,{isChecked:c,isDisabled:t,"aria-labelledby":x,onChange:F})}),E&&Gu.exports.jsx(av,{$isActive:m||I||S,children:Gu.exports.jsx(np,{})})]}),j&&P(Gu.exports.jsx(sv,{id:w,...B,children:p}))]})})},Mv.ListItem=function({children:e,isDisabled:t,isChecked:n=!1,onClick:r,role:o="menuitem",rightElements:i,...s}){const l=Ph("dropdown-item"),{dispatch:c,...u}=$g(),d=u.highlightedItemId===l;a((()=>{c({type:"add-item",payload:{id:l,parentId:void 0,isDisabled:t,isSelected:n}})})),a((()=>{var e;u.hasSearch||u.isKeepingFocusOnTrigger||d&&(null==(e=document.querySelector("#"+l))||e.focus())}),[u.hasSearch,u.isKeepingFocusOnTrigger,l,d]);const p=n?Gu.exports.jsx(sp,{style:{color:nd.gray800}}):null;return Gu.exports.jsx(Pv,{onClick:e=>e.stopPropagation(),children:Gu.exports.jsx(zv.Item,{isSelected:d,isDisabled:t,onClick:function(){null==r||r(),u.close()},"aria-disabled":t,"aria-checked":"menuitemradio"===o||"option"===o?n:void 0,"aria-selected":u.hasSearch||u.isKeepingFocusOnTrigger?d:void 0,role:o,rightElements:i?Gu.exports.jsxs(Gu.exports.Fragment,{children:[i,p]}):p,id:l,...s,children:e})})},Mv.SectionTitle=function({children:e,...t}){return Gu.exports.jsx(lv,{...t,children:e})},Mv.Arrow=function(e){return Gu.exports.jsx(Rg,{...e,children:Gu.exports.jsx(ap,{})})},Mv.SelectButtonText=function({children:e,...t}){return Gu.exports.jsx(pv,{...t,children:Gu.exports.jsx(yh,{children:e})})},Mv.SearchInput=function({onChange:e,actionButton:t,...n}){const r=l(null),{dispatch:o}=$g(),{menuId:i}=$g();return a((()=>{var e;null==(e=r.current)||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),Gu.exports.jsx(gv,{children:Gu.exports.jsxs(vv,{children:[Gu.exports.jsx(yv,{children:Gu.exports.jsx(ag,{inputRef:r,hasClearButton:!0,icon:Gu.exports.jsx(gp,{}),onChange:function(t){var n,r;null==(r=null==(n=document.querySelector(`#${i}`))?void 0:n.scrollTo)||r.call(n,{top:0}),e(t)},...n})}),t]})})},Mv.Text=function({fontSize:e="item",children:t,...n}){return Gu.exports.jsx(bv,{$fontSize:e,...n,children:t})},Mv.OffsetContext=Dv;var $v={};function Uv(){return $v}function Vv(e){Rv(1,arguments);var t=Hv(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Wv(e){Rv(1,arguments);var t=Hv(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Vv(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Vv(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function qv(e,t){var n,r,o,i,a,s,l,c;Rv(1,arguments);var u=Uv(),d=Lv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Hv(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Gv(e,t){var n,r,o,i,a,s,l,c;Rv(1,arguments);var u=Hv(e),d=u.getUTCFullYear(),p=Uv(),f=Lv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=qv(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=qv(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function Yv(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Xv={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Yv("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Yv(n+1,2)},d:function(e,t){return Yv(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Yv(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Yv(e.getUTCHours(),t.length)},m:function(e,t){return Yv(e.getUTCMinutes(),t.length)},s:function(e,t){return Yv(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Yv(Math.floor(r*Math.pow(10,n-3)),t.length)}},Kv=Xv,Zv={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return Kv.y(e,t)},Y:function(e,t,n,r){var o=Gv(e,r),i=o>0?o:1-o;return"YY"===t?Yv(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):Yv(i,t.length)},R:function(e,t){return Yv(Wv(e),t.length)},u:function(e,t){return Yv(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Yv(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Yv(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return Kv.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Yv(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){Rv(1,arguments);var n=Hv(e),r=qv(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;Rv(1,arguments);var u=Uv(),d=Lv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=Gv(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),qv(f,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Yv(o,t.length)},I:function(e,t,n){var r=function(e){Rv(1,arguments);var t=Hv(e),n=Vv(t).getTime()-function(e){Rv(1,arguments);var t=Wv(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Vv(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Yv(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):Kv.d(e,t)},D:function(e,t,n){var r=function(e){Rv(1,arguments);var t=Hv(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Yv(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Yv(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Yv(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Yv(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return Kv.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Kv.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Yv(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Yv(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Kv.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Kv.s(e,t)},S:function(e,t){return Kv.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Qv(o);case"XXXX":case"XX":return ey(o);default:return ey(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return Qv(o);case"xxxx":case"xx":return ey(o);default:return ey(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Jv(o,":");default:return"GMT"+ey(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Jv(o,":");default:return"GMT"+ey(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return Yv(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return Yv((r._originalDate||e).getTime(),t.length)}};function Jv(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+Yv(i,2)}function Qv(e,t){return e%60==0?(e>0?"-":"+")+Yv(Math.abs(e)/60,2):ey(e,t)}function ey(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Yv(Math.floor(o/60),2)+n+Yv(o%60,2)}var ty=Zv,ny=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},ry=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},oy={p:ry,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ny(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ny(o,t)).replace("{{time}}",ry(i,t))}},iy=oy,ay=["D","DD"],sy=["YY","YYYY"];function ly(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var cy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function uy(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var dy={date:uy({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:uy({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:uy({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},py={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function fy(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function hy(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(l):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(l);return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var my,gy={code:"en-US",formatDistance:function(e,t,n){var r,o=cy[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:dy,formatRelative:function(e,t,n,r){return py[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:fy({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:fy({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:fy({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:fy({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:fy({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(my={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(my.matchPattern);if(!n)return null;var r=n[0],o=e.match(my.parsePattern);if(!o)return null;var i=my.valueCallback?my.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:hy({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:hy({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:hy({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:hy({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:hy({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},vy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,by=/^'([^]*?)'?$/,xy=/''/g,wy=/[a-zA-Z]/;function Ey(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x;Rv(2,arguments);var w=String(t),E=Uv(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:gy,k=Lv(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Lv(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:E.weekStartsOn)&&void 0!==h?h:null===(b=E.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var _=Hv(e);if(!function(e){if(Rv(1,arguments),!function(e){return Rv(1,arguments),e instanceof Date||"object"===Fv(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Hv(e);return!isNaN(Number(t))}(_))throw new RangeError("Invalid time value");var I=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(_),T=function(e,t){return Rv(2,arguments),function(e,t){Rv(2,arguments);var n=Hv(e).getTime(),r=Lv(t);return new Date(n+r)}(e,-Lv(t))}(_,I),O={firstWeekContainsDate:k,weekStartsOn:S,locale:C,_originalDate:_},j=w.match(yy).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,iy[t])(e,C.formatLong):e})).join("").match(vy).map((function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(by))?i[1].replace(xy,"'"):o;var s=ty[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==sy.indexOf(e)}(r)||ly(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==ay.indexOf(e)}(r)||ly(r,t,String(e)),s(T,r,C.localize,O);if(a.match(wy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("");return j}const Cy=n(void 0);function ky(e){if(!i(Cy))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const Sy=Uu.div.withConfig({displayName:"GroupStyled",componentId:"sc-1o6r33c-0"})(["margin:0;padding:"," 0;border:0;"],nd.spacing3),_y=Uu.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-1gcvrkz-0"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],If.uiTextS,nd.spacing2,(e=>e.$hasIcon?"2px":"0"),(e=>e.$isInvalid?nd.red500:nd.colorTextMuted)),Iy=Uu.div.withConfig({displayName:"Icon",componentId:"sc-1gcvrkz-1"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],nd.spacing2),Ty=Uu.label.withConfig({displayName:"LabelStyled",componentId:"sc-17wblts-0"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],If.uiTextM,nd.spacing3,nd.colorText),Oy=Uu.span.withConfig({displayName:"SecondaryText",componentId:"sc-17wblts-1"})(["color:",";"],nd.colorTextMuted),jy=Uu.span.withConfig({displayName:"Space",componentId:"sc-17wblts-2"})(["display:inline-block;width:",";"],nd.spacing3),zy=Uu.div.withConfig({displayName:"RowStyled",componentId:"sc-13oau0l-0"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],nd.spacing4),By=Uu.div.withConfig({displayName:"InputRowStyled",componentId:"sc-1mba7ih-0"})(["display:flex;gap:",";> *:not(","){min-width:auto;}> ","{min-width:0;}"],nd.spacing4,qm,qm);function Py({children:e,onSubmit:t,...n}){return Gu.exports.jsx("form",{onSubmit:t,...n,children:e})}function Ay({attr:e,title:t,size:n,children:r,color:o,style:a,...s}){const l=i(zf),c=n||l.size,u={...l.attr,...e};return Gu.exports.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...u,...s,style:{color:o,...l.style,...a},height:c,width:c,xmlns:"http://www.w3.org/2000/svg",children:[t&&Gu.exports.jsx("title",{children:t}),r]})}function Ny({label:e,labelSecondaryText:t,helperText:n,helperTextIcon:r,id:o,name:i,isInvalid:a,hasClearButton:s,icon:l,iconRight:c,inputRef:u,isDisabled:d,isReadOnly:p,isSmall:f,maxLength:h,onBlur:m,onChange:g,onFocus:v,onKeyDown:y,placeholder:b,type:x,value:w,variant:E,prefix:C,suffix:k,autoFocus:S,..._}){const I=Ph("input"),T=o||I,O=Ph("helper-text");return Gu.exports.jsxs(Py.Group,{..._,children:[Gu.exports.jsx(Py.Label,{secondaryText:t,htmlFor:T,children:e}),Gu.exports.jsx(ag,{hasClearButton:s,icon:l,iconRight:c,inputRef:u,isDisabled:d,isReadOnly:p,isInvalid:a,isSmall:f,maxLength:h,onBlur:m,onChange:g,onFocus:v,onKeyDown:y,placeholder:b,type:x,value:w,variant:E,id:T,name:i,"aria-describedby":n?O:void 0,prefix:C,suffix:k,autoFocus:S}),n?Gu.exports.jsx(Py.HelperText,{icon:r,isInvalid:a,id:O,children:n}):null]})}Py.Group=function({children:e,...t}){return Gu.exports.jsx(Cy.Provider,{value:"group",children:Gu.exports.jsx(Sy,{...t,children:e})})},Py.HelperText=function({icon:e,isInvalid:t,children:n,...r}){return ky("HelperText"),Gu.exports.jsxs(_y,{$isInvalid:t,$hasIcon:Boolean(e),...r,children:[e&&Gu.exports.jsx(Iy,{children:e}),n]})},Py.Label=function({children:e,secondaryText:t,htmlFor:n,id:r,...o}){return ky("Label"),Gu.exports.jsxs(Ty,{htmlFor:n,id:r,...o,children:[e,t?Gu.exports.jsxs(Oy,{children:[Gu.exports.jsx(jy,{children:" "}),t]}):null]})},Py.Row=function({children:e,...t}){return Gu.exports.jsx(zy,{...t,children:e})},Py.InputRow=function({children:e,...t}){return ky("InputRow"),Gu.exports.jsx(By,{...t,children:e})},Py.IconError=function({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm-1 15v-2h2v2h-2Zm0-10v6h2V7h-2Z",clipRule:"evenodd"})})};var Dy,My={exports:{}};
|
|
41
|
+
`,Cg=Xu.circle.withConfig({displayName:"SvgSpinner",componentId:"sc-1lkhjx6-0"})(["stroke:",";transform-origin:center;animation:"," 2s linear infinite;stroke-dasharray:31.4;stroke-linecap:round;"],(e=>e.$color||ld.gray400),Eg),kg={online:function(){return Qu.exports.jsx(bg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.teal500,children:Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "})})},offline:function(){return Qu.exports.jsx(bg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:ld.gray400,children:Qu.exports.jsx("path",{d:"M 0 12 C 0 5.371094 5.371094 0 12 0 C 18.628906 0 24 5.371094 24 12 C 24 18.628906 18.628906 24 12 24 C 5.371094 24 0 18.628906 0 12 Z M 0 12 "})})},inactive:function(){return Qu.exports.jsx(bg,{viewBox:"0 0 24 24","aria-hidden":"true",fill:"transparent",children:Qu.exports.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:ld.gray400,strokeWidth:"4"})})}};function Sg({size:e="m",shape:t="square",variant:n="clean",icon:r,imageUrl:i,backgroundColor:a,iconColor:s,children:l,...c}){const[u,d]=o("none"),p="content"===n,f="clean"===n,h=a?ld[a]||a:f?ld.gray50a:a||i?"transparent":ld.white,m=f?ld[s]||s||ld.gray600:void 0,g="circle"===t?"50%":"preview"===n?"0":"5px",v=Lh("thumbnail-mask"),y="none"!==u?vg[u][t][e]:{radius:0,offset:[0,0]};return Qu.exports.jsx(mg.Provider,{value:d,children:Qu.exports.jsxs(Tg,{$size:e,$shape:t,$indicator:u,className:fg,style:{"--ds-thumbnail-border-radius":g},...c,children:[Qu.exports.jsxs(_g,{role:"none",children:[Qu.exports.jsxs("mask",{id:v,children:[Qu.exports.jsx("rect",{fill:"white",x:"0",y:"0",width:"100%",height:"100%",rx:g}),"none"!==u&&Qu.exports.jsx("circle",{fill:"black",cx:`calc(100% - ${y.radius}px + ${y.offset[0]}px)`,cy:`calc(100% - ${y.radius}px + ${y.offset[1]}px)`,r:`calc(${y.radius}px + ${gg}px`})]}),Qu.exports.jsxs("g",{mask:`url(#${v})`,children:[p&&Qu.exports.jsx(Bg,{}),Qu.exports.jsx("rect",{fill:h,x:"0",y:"0",width:"100%",height:"100%",rx:g,"data-testid":"ds-thumbnail-fill"}),i&&Qu.exports.jsx("image",{x:"0",y:"0",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid "+("preview"===n?"meet":"slice"),xlinkHref:i,"data-testid":"ds-thumbnail-image"}),p&&Qu.exports.jsx("rect",{fill:"none",x:"0",y:"0",width:"100%",height:"100%",stroke:"rgba(0,0,0,0.1)",strokeWidth:"2",rx:g,"data-testid":"ds-thumbnail-inner-shadow"})]})]}),Qu.exports.jsxs(jg,{$iconColor:m,$size:e,"data-testid":"ds-thumbnail-content",children:[r,p&&!a&&!i&&Qu.exports.jsx(zg,{"data-testid":"ds-thumbnail-no-image-line"})]}),l]})})}Sg.Overlay=function({children:e,isConcealed:t=!1,isLoading:n=!1,...r}){return Qu.exports.jsx(hg,{$isConcealed:t,...r,children:n?Qu.exports.jsx(Yd,{"data-testid":"ds-thumbnail-overlay-spinner"}):e})},Sg.pointerEventsClassname=fg,Sg.Indicator=function({...e}){const t=r(mg);if(a((()=>(t("state"),()=>t("none"))),[t]),"type"in e){const{type:t,...n}=e,r=wg[t];return Qu.exports.jsx(r,{...n})}const{backgroundColor:n,iconColor:o,icon:i,...s}=e;return Qu.exports.jsx(xg,{$backgroundColor:n||"gray400",$iconColor:o||"white",...s,children:i})},Sg.Status=function({type:e}){const t=r(mg),n=kg[e];return a((()=>(t("status"),()=>t("none"))),[t]),Qu.exports.jsx(n,{})};const _g=Xu.svg.withConfig({displayName:"Svg",componentId:"sc-yoyund-0"})(["position:absolute;top:0;left:0;width:100%;height:100%;"]),Ig={xs:"24px",s:"32px",m:"40px",l:"64px"},Tg=Xu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-yoyund-1"})(["position:relative;flex:none;width:",";height:",";",""],(e=>Ig[e.$size]),(e=>Ig[e.$size]),(e=>{if("none"===e.$indicator)return;const{radius:t,offset:n}=vg[e.$indicator][e.$shape][e.$size];return qu(["--ds-thumbnail-indicator-offset-x:","px;--ds-thumbnail-indicator-offset-y:","px;--ds-thumbnail-indicator-radius:","px;--ds-thumbnail-indicator-cutoff:-webkit-radial-gradient( calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-x ) ) ) calc( 100% - ( var(--ds-thumbnail-indicator-radius) - var( --ds-thumbnail-indicator-offset-y ) ) ),circle,transparent calc(var(--ds-thumbnail-indicator-radius) + ","px),black 0 );"],n[0],n[1],t,gg)})),Og={xs:ld.fontSize100,s:ld.fontSize200,m:ld.fontSize500,l:ld.fontSize500},jg=Xu.div.withConfig({displayName:"Content",componentId:"sc-yoyund-2"})(["position:absolute;inset:0;display:grid;place-items:center;color:",";font-weight:600;font-size:",";line-height:1;"],(e=>e.$iconColor),(e=>Og[e.$size])),zg=Xu.div.withConfig({displayName:"NoImage",componentId:"sc-yoyund-3"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],ld.red500);function Bg(){return Qu.exports.jsxs("g",{children:[Qu.exports.jsx("rect",{height:"64",width:"64",x:"0",y:"0",fill:"#ffffff"}),Qu.exports.jsx("path",{fill:"#e9ecee",d:"M0 0h4v4H0zM0 8h4v4H0zM0 16h4v4H0zM0 24h4v4H0zM0 32h4v4H0zM0 40h4v4H0zM0 48h4v4H0zM0 56h4v4H0zM4 4h4v4H4zM4 12h4v4H4zM4 20h4v4H4zM4 28h4v4H4zM4 36h4v4H4zM4 44h4v4H4zM4 52h4v4H4zM4 60h4v4H4zM8 0h4v4H8zM8 8h4v4H8zM8 16h4v4H8zM8 24h4v4H8zM8 32h4v4H8zM8 40h4v4H8zM8 48h4v4H8zM8 56h4v4H8zM12 4h4v4h-4zM12 12h4v4h-4zM12 20h4v4h-4zM12 28h4v4h-4zM12 36h4v4h-4zM12 44h4v4h-4zM12 52h4v4h-4zM12 60h4v4h-4zM16 0h4v4h-4zM16 8h4v4h-4zM16 16h4v4h-4zM16 24h4v4h-4zM16 32h4v4h-4zM16 40h4v4h-4zM16 48h4v4h-4zM16 56h4v4h-4zM20 4h4v4h-4zM20 12h4v4h-4zM20 20h4v4h-4zM20 28h4v4h-4zM20 36h4v4h-4zM20 44h4v4h-4zM20 52h4v4h-4zM20 60h4v4h-4zM24 0h4v4h-4zM24 8h4v4h-4zM24 16h4v4h-4zM24 24h4v4h-4zM24 32h4v4h-4zM24 40h4v4h-4zM24 48h4v4h-4zM24 56h4v4h-4zM28 4h4v4h-4zM28 12h4v4h-4zM28 20h4v4h-4zM28 28h4v4h-4zM28 36h4v4h-4zM28 44h4v4h-4zM28 52h4v4h-4zM28 60h4v4h-4zM32 0h4v4h-4zM32 8h4v4h-4zM32 16h4v4h-4zM32 24h4v4h-4zM32 32h4v4h-4zM32 40h4v4h-4zM32 48h4v4h-4zM32 56h4v4h-4zM36 4h4v4h-4zM36 12h4v4h-4zM36 20h4v4h-4zM36 28h4v4h-4zM36 36h4v4h-4zM36 44h4v4h-4zM36 52h4v4h-4zM36 60h4v4h-4zM40 0h4v4h-4zM40 8h4v4h-4zM40 16h4v4h-4zM40 24h4v4h-4zM40 32h4v4h-4zM40 40h4v4h-4zM40 48h4v4h-4zM40 56h4v4h-4zM44 4h4v4h-4zM44 12h4v4h-4zM44 20h4v4h-4zM44 28h4v4h-4zM44 36h4v4h-4zM44 44h4v4h-4zM44 52h4v4h-4zM44 60h4v4h-4zM48 0h4v4h-4zM48 8h4v4h-4zM48 16h4v4h-4zM48 24h4v4h-4zM48 32h4v4h-4zM48 40h4v4h-4zM48 48h4v4h-4zM48 56h4v4h-4zM52 4h4v4h-4zM52 12h4v4h-4zM52 20h4v4h-4zM52 28h4v4h-4zM52 36h4v4h-4zM52 44h4v4h-4zM52 52h4v4h-4zM52 60h4v4h-4zM56 0h4v4h-4zM56 8h4v4h-4zM56 16h4v4h-4zM56 24h4v4h-4zM56 32h4v4h-4zM56 40h4v4h-4zM56 48h4v4h-4zM56 56h4v4h-4zM60 4h4v4h-4zM60 12h4v4h-4zM60 20h4v4h-4zM60 28h4v4h-4zM60 36h4v4h-4zM60 44h4v4h-4zM60 52h4v4h-4zM60 60h4v4h-4z"})]})}const Pg=/^#([a-f\d])([a-f\d])([a-f\d])$/i,Ag="#$1$1$2$2$3$3";function Ng({color:e,opacity:t}){let n=e;return Pg.test(e)&&(n=n.replace(Pg,Ag)),n+function(e){const t=Math.round(255*parseInt(e,10)/100).toString(16).toUpperCase();return t.length<2?`0${t}`:t}(t.toString())}function Dg({value:e,onChange:t,opacity:n}){const[r,i]=o(e);return a((()=>{i(e)}),[e]),Qu.exports.jsx(pg,{maxLength:7,icon:Qu.exports.jsx(Sg,{variant:"content",backgroundColor:void 0===n?e:Ng({color:e,opacity:n}),shape:"circle",size:"xs"}),value:r,onChange:e=>{const n=function(e){const t="#"+e.replace(/([^0-9A-F]+)/gi,"");return 1===t.length?"":t}(e);i(n),(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(n)||0===n.length)&&t(n)},onBlur:()=>{r!==e&&(t(e),i(e))},placeholder:"#ffffff","aria-label":"Hex"})}const Mg=Xu.div.withConfig({displayName:"InputContainer",componentId:"sc-1a4d7zw-0"})(["display:grid;grid-template-columns:",";align-items:center;padding:0 "," ",";column-gap:",";"],(e=>e.$hasAlphaChannel?"minmax(10px, 1fr) 80px":"1fr"),ld.spacing5,ld.spacing5,ld.spacing4);function Fg({value:e,onChange:t}){return Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(Gm,{color:e,onChange:e=>{t(e)}}),Qu.exports.jsx(Mg,{children:Qu.exports.jsx(Dg,{value:e,onChange:e=>{t(e)}})})]})}function Lg(e){if(e.length<=7)return 100;const t=e.slice(-2),n=parseInt(t,16);return Math.floor(Math.round(n/255*100))}function Rg(e){const{translate:t}=dg();return Qu.exports.jsx(pg,{type:"number",suffix:"%",maxLength:3,value:e.value.toString(),onChange:t=>{e.onChange(parseInt(t||"0",10))},onBlur:t=>{const n=parseInt(t.target.value,10);n>=0&&n<=100||e.onChange(100)},"aria-label":t("colorpicker.opacity-input")})}function Hg({value:e,onChange:t}){return Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(Zm,{color:Ng(e),onChange:e=>{t({color:e.substring(0,7),opacity:Lg(e)})}}),Qu.exports.jsxs(Mg,{$hasAlphaChannel:!0,children:[Qu.exports.jsx(Dg,{value:e.color,opacity:e.opacity,onChange:n=>{t({color:n,opacity:e.opacity})}}),Qu.exports.jsx(Rg,{value:e.opacity,onChange:n=>{t({color:e.color,opacity:n})}})]})]})}function $g(e){return"string"==typeof e.value}function Ug(e){const{trigger:t,value:n,onChange:r,...i}=e,[a,s]=o(!1),c=l(),u=Lh("colorpicker"),d=ch("colorpicker"),{renderLayer:p,triggerProps:{ref:f},layerProps:h}=bf({isOpen:a,onOutsideClick:fm(c.current)?void 0:()=>s(!1),triggerOffset:8,containerOffset:16,auto:!0,container:hm(c.current),placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start","bottom-end","top-end"]});return pm("Escape",(()=>{a&&s(!1)})),t?Qu.exports.jsxs(Qu.exports.Fragment,{children:[t({isOpen:a,onClick:()=>s((e=>!e)),"aria-haspopup":!0,"aria-expanded":a,"aria-controls":u,ref:Yp(f,c)}),a&&p(Qu.exports.jsx(Vg,{id:u,$zIndex:d,...h,...i,children:Qu.exports.jsx(Wg,{children:$g(e)?Qu.exports.jsx(Fg,{value:e.value,onChange:e.onChange}):Qu.exports.jsx(Hg,{value:e.value,onChange:e.onChange})})}))]}):Qu.exports.jsx(Wg,{...i,children:$g(e)?Qu.exports.jsx(Fg,{value:e.value,onChange:e.onChange}):Qu.exports.jsx(Hg,{value:e.value,onChange:e.onChange})})}const Vg=Xu.div.withConfig({displayName:"Container",componentId:"sc-qqaz7i-0"})(["z-index:",";"],(e=>e.$zIndex)),Wg=Xu.div.withConfig({displayName:"ColorPickerCard",componentId:"sc-qqaz7i-1"})(["width:256px;border-radius:",";background-color:",";box-shadow:",",",";.react-colorful{width:100%;height:auto;}.react-colorful__saturation{height:156px;margin-bottom:",";border-bottom:none;border-radius:"," "," 0 0;box-shadow:none;}.react-colorful__hue,.react-colorful__alpha{height:8px;margin:0 "," ",";border-radius:",";}.react-colorful__hue{box-shadow:inset 0 0 0 1px ",";}.react-colorful__alpha{background-image:url(\"data:image/svg+xml,%3Csvg width='8' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Crect height='8' width='8' y='0' x='0' fill='%23ffffff'/%3E%3Crect height='4' width='4' y='0' x='0' fill='%23e9ecee'/%3E%3Crect height='4' width='4' y='4' x='4' fill='%23e9ecee'/%3E%3C/svg%3E%0A\");}.react-colorful__alpha-gradient{height:8px;border-radius:",";box-shadow:inset 0 0 0 1px ",";}.react-colorful__pointer{width:16px;height:16px;border-width:4px;box-shadow:0 0 0 1px ",";cursor:pointer;}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%);}.react-colorful__interactive:active .react-colorful__pointer{width:20px;height:20px;border-width:6px;}.react-colorful__pointer-fill{box-shadow:inset ",";}"],ld.radiusBase,ld.gray10,ld.elevationStatic,ld.elevation2,ld.spacing6,ld.radiusBase,ld.radiusBase,ld.spacing5,ld.spacing6,ld.radiusPill,ld.gray100a,ld.radiusBase,ld.gray100a,ld.gray200a,ld.elevation1),qg=Xu.div.withConfig({displayName:"ArrowStyled",componentId:"sc-dmd5wz-0"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],ld.spacing2,ld.spacing2),Gg=n(null);function Yg(){const e=r(Gg);if(!e)throw new Error("Dropdown compound components cannot be rendered outside the Dropdown component");return e}const Xg=n(void 0),Kg=u((({children:e,minWidth:t,role:n="menu",...o},i)=>{const s=ch("dropdown"),c=l(null),{dispatch:u}=Yg(),d=r(Xg);return a((()=>()=>{u({type:"purge-menu-items",payload:d})}),[e,u,d]),Qu.exports.jsx(Zg,{$minWidth:t,role:n,ref:sg(i,c),$zIndex:s,...o,children:e})})),Zg=Xu.div.withConfig({displayName:"ContainerStyled",componentId:"sc-12bt5ca-0"})(["z-index:",";overflow-y:auto;box-sizing:border-box;min-width:",";max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";color:",";box-shadow:",",",";&:empty{display:none;}"],(e=>e.$zIndex),(e=>e.$minWidth?e.$minWidth:"224px"),ld.spacing3,ld.spacing3,ld.radiusBase,ld.gray10,ld.colorText,ld.elevationStatic,ld.elevation2),Jg="ds-switch__pointer-events-wrapper";function Qg({children:e,isChecked:t,isDisabled:n,inputProps:r,onChange:o=(()=>{}),...i}){const{isFocusVisible:a,focusProps:s}=$d();return Qu.exports.jsxs(ev,{$isDisabled:n,className:Jg,...i,children:[e&&Qu.exports.jsx(tv,{children:e}),Qu.exports.jsx(nv,{children:Qu.exports.jsxs(rv,{children:[Qu.exports.jsx("input",{role:"switch",type:"checkbox",disabled:n,onChange:o,checked:t,"aria-checked":t,...s,...r}),Qu.exports.jsx(iv,{"aria-hidden":"true",$isDisabled:n,$isFocusVisible:a})]})})]})}Qg.pointerEventsClassname=Jg;const ev=Xu.label.withConfig({displayName:"SwitchStyled",componentId:"sc-1tgwl0j-0"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],Pf.uiTextM,ld.spacing1,ld.colorText,(e=>!e.$isDisabled&&"pointer")),tv=Xu.span.withConfig({displayName:"Label",componentId:"sc-1tgwl0j-1"})(["align-self:center;margin-right:",";"],ld.spacing4),nv=Xu.span.withConfig({displayName:"ToggleAlignment",componentId:"sc-1tgwl0j-2"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]),rv=Xu.span.withConfig({displayName:"Toggle",componentId:"sc-1tgwl0j-3"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]),ov="."+Jg,iv=Xu.span.withConfig({displayName:"Indicator",componentId:"sc-1tgwl0j-4"})(["position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box;width:100%;height:100%;border-radius:",";background:",";cursor:",";transition:0.2s;&::before{content:'';position:absolute;right:calc(100% - 20px);bottom:2px;left:2px;height:18px;border-radius:50%;background-color:",";box-shadow:",";transition:0.2s;}"," input:checked + &&{background-color:",";opacity:",";&::before{right:2px;left:calc(100% - 20px);background-color:",";}}"," ",":hover &&,",":focus-visible &&{background-color:",";}",":hover input:checked + &&,",":focus-visible input:checked + &&{background-color:",";}",""],ld.radiusPill,(e=>e.$isDisabled?ld.gray100:ld.gray75),(e=>!e.$isDisabled&&"pointer"),(e=>e.$isDisabled?ld.gray50:ld.gray10),ld.elevation2,rv,(e=>e.$isDisabled?ld.gray400:ld.blue500),(e=>e.$isDisabled?"0.5":"1"),(e=>e.$isDisabled?ld.gray100:ld.gray10),(e=>!e.$isDisabled&&qu(["",":active input + &&::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &&::before{right:2px;left:calc(100% - 24px);}"],ov,ov)),ov,ov,ld.gray100,ov,ov,(e=>e.$isDisabled?ld.gray400:ld.blue600),(e=>e.$isFocusVisible&&qu([""," input + &&{background-color:",";&::after{content:'';position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border:2px solid ",";border-radius:100px;}}"," input:checked + &&::after{border-color:",";}"],rv,ld.gray100,ld.gray200,rv,ld.blue500))),av=Xu.div.withConfig({displayName:"ItemWrapper",componentId:"sc-19mayjj-0"})(["position:relative;"]),sv=Xu.button.withConfig({displayName:"ItemStyled",componentId:"sc-19mayjj-1"})([""," display:flex;align-items:center;box-sizing:border-box;width:100%;height:36px;margin:0;padding:0 ",";border:none;background:none;color:",";outline:none;font-family:",";cursor:pointer;"," "," &:hover{background:",";color:",";}&:active{background:",";color:",";}&:disabled{background:none;color:",";cursor:default;}"],Pf.uiTextS,ld.spacing5,(e=>e.$isChecked?ld.colorText:ld.colorTextMuted),ld.brandFontStackBase,(e=>e.$isSubmenuOpen&&qu(["background:",";color:",";"],ld.gray25,ld.gray800)),(e=>e.$isHighlighted&&qu(["background:",";color:",";"],ld.gray50,ld.gray800)),ld.gray25,ld.colorText,ld.gray50,ld.gray800,ld.colorTextDisabled),lv=Xu.span.withConfig({displayName:"CheckboxContainer",componentId:"sc-19mayjj-2"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],ld.spacing3),cv=Xu.span.withConfig({displayName:"Icon",componentId:"sc-19mayjj-3"})(["display:flex;flex:none;justify-content:center;align-items:center;width:24px;height:24px;margin-right:",";"],ld.spacing3),uv=Xu.span.withConfig({displayName:"Label",componentId:"sc-19mayjj-4"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),dv=Xu.span.withConfig({displayName:"RightContainer",componentId:"sc-19mayjj-5"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],ld.spacing3,ld.spacing2),pv=Xu.span.withConfig({displayName:"SubmenuIconContainer",componentId:"sc-19mayjj-6"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],ld.spacing3,ld.spacing3,(e=>e.$isActive?ld.gray400:ld.gray200),sv,sv,ld.gray400),fv=Xu(Kg).withConfig({displayName:"SubMenuContainer",componentId:"sc-19mayjj-7"})(["margin-top:calc("," * -1);"],ld.spacing3),hv=Xu.div.withConfig({displayName:"SectionTitleStyled",componentId:"sc-oyebvv-0"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],Pf.uiTextS,ld.spacing4,ld.spacing5,ld.spacing3,ld.colorText);function mv(e){return{"bottom-center":{placement:"bottom-center",possiblePlacements:["bottom-center","top-center"]},"bottom-left":{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"bottom-right":{placement:"bottom-end",preferX:"right",preferY:"bottom",possiblePlacements:["bottom-end","top-end"]},bottom:{placement:"bottom-start",preferX:"left",preferY:"bottom",possiblePlacements:["bottom-start","top-start"]},"top-left":{placement:"top-start",preferX:"left",preferY:"top",possiblePlacements:["top-start","bottom-start"]},"top-right":{placement:"top-end",preferX:"right",preferY:"top",possiblePlacements:["top-end","bottom-end"]},"right-center":{placement:"right-center",possiblePlacements:["right-center"]},"left-center":{placement:"left-center",possiblePlacements:["left-center"]}}[e]}const gv={isOpen:!1,isOpenedWithKeyboard:!1,items:[],highlightedItemId:"",hasSearch:!1,keepHighlight:!1};function vv(e,t){var n,r;if("open"===t.type)return{...e,isOpen:!0};if("close"===t.type)return{...gv};if("toggle"===t.type)return{...gv,isOpen:!e.isOpen};if("toggle-from-keyboard"===t.type)return{...gv,isOpen:!e.isOpen,isOpenedWithKeyboard:!e.isOpen};if("highlight-current-item"===t.type){const t=e.items.find((e=>e.isSelected));return e.hasSearch&&t?{...e,highlightedItemId:t.id}:e.isOpenedWithKeyboard&&e.items.length?{...e,highlightedItemId:e.items[0].id}:e}if("highlight-item"===t.type)return{...e,highlightedItemId:t.payload,keepHighlight:!0};if("highlight-previous"===t.type){if(0===e.items.length)return e;const t=null==(n=e.items.find((t=>t.id===e.highlightedItemId)))?void 0:n.parentId,r=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=r.findIndex((t=>t.id===e.highlightedItemId)),i=0===o,a=r.length-1,s=-1===o||i?r[a].id:r[o-1].id;return{...e,highlightedItemId:s}}if("highlight-next"===t.type){if(0===e.items.length)return e;const t=null==(r=e.items.find((t=>t.id===e.highlightedItemId)))?void 0:r.parentId,n=e.items.filter((e=>e.parentId===t&&!e.isDisabled)),o=n.findIndex((t=>t.id===e.highlightedItemId)),i=o===n.length-1,a=-1===o||i?n[0].id:n[o+1].id;return{...e,highlightedItemId:a}}if("highlight-submenu"===t.type){const t=e.highlightedItemId,n=e.items.find((e=>e.parentId===t));return{...e,highlightedItemId:n.id}}if("add-item"===t.type){const n=t.payload;return e.items.find((e=>e.id===n.id))?e:{...e,items:[...e.items,n]}}if("purge-menu-items"===t.type){const n=t.payload,r=e.items.filter((e=>e.parentId!==n));return{...e,items:r,highlightedItemId:e.keepHighlight?e.highlightedItemId:"",keepHighlight:!1}}return"keep-highlight"===t.type?{...e,keepHighlight:!0}:"set-search-presence"===t.type?{...e,hasSearch:!0}:void function(e,t){throw new Error("Unexpected action: "+t)}(0,t)}const yv=Xu.span.withConfig({displayName:"Text",componentId:"sc-46jr3k-0"})(["width:100%;min-width:0;text-align:left;"]);function bv({direction:e="horizontal",...t}){return"horizontal"===e?Qu.exports.jsx(xv,{...t}):Qu.exports.jsx(wv,{role:"separator",...t})}const xv=Xu.hr.withConfig({displayName:"HorizontalDivider",componentId:"sc-1dm91yn-0"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],ld.spacing3,ld.componentDividerColor),wv=Xu.div.withConfig({displayName:"VerticalDivider",componentId:"sc-1dm91yn-1"})(["box-sizing:content-box;width:1px;min-height:100%;margin:0;padding:0 ",";background:",";background-clip:content-box;"],ld.spacing2,ld.componentDividerColor),Ev=Xu.div.withConfig({displayName:"Container",componentId:"sc-ha8lpr-0"})(["--container-top-padding-compensation:calc("," * -1);position:sticky;top:var(--container-top-padding-compensation);z-index:1;box-sizing:content-box;height:40px;margin-top:var(--container-top-padding-compensation);padding:",";background:",";box-shadow:",";"],ld.spacing3,ld.spacing4,ld.white,ld.elevationStatic),Cv=Xu.div.withConfig({displayName:"Inner",componentId:"sc-ha8lpr-1"})(["position:absolute;top:",";right:",";left:",";display:flex;gap:",";"],ld.spacing4,ld.spacing4,ld.spacing4,ld.spacing3),kv=Xu.div.withConfig({displayName:"InputWrapper",componentId:"sc-ha8lpr-2"})(["min-width:0;"]),Sv=Xu.div.withConfig({displayName:"TextStyled",componentId:"sc-14qd6tq-0"})([""," padding:"," ",";color:",";"],(e=>"item"===e.$fontSize?Pf.uiTextS:Pf.uiTextM),ld.spacing3,ld.spacing5,ld.gray400);const _v=64,Iv=Xu.div.withConfig({displayName:"ConcealedActionStyled",componentId:"sc-inr4c8-0"})(["width:",";opacity:",";&:focus-within{width:auto;opacity:1;}"],(e=>e.$isVisible?"auto":"var(--list-item-concealead-action-width, 0)"),(e=>e.$isVisible?"1":"var(--list-item-concealead-action-opacity, 0)")),Tv=Xu.div.withConfig({displayName:"Header",componentId:"sc-1hlvuel-0"})(["display:flex;justify-content:space-between;align-items:center;padding:"," 0 ",";color:",";"],ld.spacing3,ld.spacing2,ld.colorText),Ov=n({isDragging:!1,dragIndicator:null}),jv=u((({children:e,subtext:n,thumbnail:o,rightElements:i,onClick:a,isDisabled:s=!1,isSelected:l=!1,checkedVariant:c,isChecked:u=!1,isIndeterminateCheckbox:d=!1,...p},f)=>{const h=Lh("list-item-label"),{isFocusVisible:m,focusProps:g}=$d(),v=r(Ov),y=t.useRef(null),b=[Kh.pointerEventsClassname,Qg.pointerEventsClassname,Sg.pointerEventsClassname].join(" "),x="function"==typeof a,w=x&&!s;return Qu.exports.jsxs(zv,{$isDragging:(null==v?void 0:v.isDragging)??!1,$isSelected:l,$isActive:x,tabIndex:w?0:void 0,onClick:w?a:void 0,onKeyDown:e=>{"function"!=typeof a||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a())},$isDisabled:s,className:b,$isFocusVisible:m,ref:f,...p,...g,children:["checkbox"===c&&Qu.exports.jsx(Bv,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:Qu.exports.jsx(Kh,{isChecked:u,isIndeterminate:d,isDisabled:s,"aria-labelledby":h,onChange:a})}),o&&Qu.exports.jsx(Pv,{$isDisabled:s,children:o}),Qu.exports.jsxs(Av,{id:h,children:[Qu.exports.jsx(kh,{children:e}),n?Qu.exports.jsx(Nv,{$isDisabled:s,children:Qu.exports.jsx(kh,{children:n})}):null]}),(i||(null==v?void 0:v.dragIndicator))&&Qu.exports.jsx(Dv,{ref:y,onClick:e=>{var t;(null==(t=null==y?void 0:y.current)?void 0:t.querySelectorAll("a, button").length)&&e.stopPropagation()},onKeyDown:function(e){"ArrowDown"!==e.key&&"ArrowUp"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&e.stopPropagation()},children:Qu.exports.jsxs(Af,{alignItems:"center",gap:"3",children:[i,null==v?void 0:v.dragIndicator]})}),"switch"===c&&Qu.exports.jsx(Dv,{onClick:e=>{e.stopPropagation()},onKeyDown:e=>{e.stopPropagation()},children:Qu.exports.jsx(Qg,{isChecked:u,isDisabled:s,"aria-labelledby":h,onChange:a})})]})})),zv=Xu.div.withConfig({displayName:"ItemStyled",componentId:"sc-1g4uzlb-0"})(["--list-item-right-elements-color:",";display:flex;align-items:center;margin-right:calc("," * -1);margin-left:calc("," * -1);padding:"," ",";border-radius:var(--ds-list-item-border-radius-override,",");&:hover{--list-item-concealead-action-opacity:1;--list-item-concealead-action-width:auto;}"," "," ",""],ld.gray200,ld.spacing4,ld.spacing4,ld.spacing3,ld.spacing4,ld.radiusLarge,(e=>e.$isActive&&qu(["--list-item-right-elements-color:",";outline:none;cursor:pointer;&&:hover{--list-item-right-elements-color:",";background:",";}"," &&:active{background:",";box-shadow:none;}",""],ld.gray200,ld.gray600,ld.gray25,e.$isFocusVisible&&qu(["--list-item-right-elements-color:",";background:",";&&,&&:hover{box-shadow:var( --ds-list-item-focus-ring-override,inset 0 0 0 2px ",",inset 0 0 0 4px "," );}"],ld.gray600,ld.gray25,ld.gray50,ld.gray10),ld.gray50,e.$isDisabled&&qu(["--list-item-right-elements-color:",";color:",";pointer-events:none;"],ld.gray200,ld.colorTextDisabled))),(e=>e.$isSelected&&qu(["--list-item-right-elements-color:",";&&,&&:hover{background:",";}"],ld.gray600,ld.gray50)),(e=>e.$isDragging&&qu(["--list-item-right-elements-color:",";background:",";box-shadow:",";cursor:grabbing;"],ld.gray600,ld.gray25,ld.elevation4))),Bv=Xu.div.withConfig({displayName:"CheckboxContainer",componentId:"sc-1g4uzlb-1"})(["flex:none;margin-right:",";"],ld.spacing4),Pv=Xu.div.withConfig({displayName:"ThumbnailContainer",componentId:"sc-1g4uzlb-2"})(["flex:none;margin-right:",";",""],ld.spacing4,(e=>e.$isDisabled&&"opacity: 50%;")),Av=Xu.div.withConfig({displayName:"Content",componentId:"sc-1g4uzlb-3"})([""," flex:1;min-width:0;"],Pf.uiTextM),Nv=Xu.div.withConfig({displayName:"Subtext",componentId:"sc-1g4uzlb-4"})([""," color:",";"],Pf.uiTextS,(e=>e.$isDisabled?ld.colorTextDisabled:ld.colorTextMuted)),Dv=Xu.div.withConfig({displayName:"RightElements",componentId:"sc-1g4uzlb-5"})(["flex:none;margin-left:",";color:var(--list-item-right-elements-color);"],ld.spacing4);function Mv({children:e,isContained:t=!1,...n}){return Qu.exports.jsx(Fv,{$isContained:t,...n,children:e})}Mv.Group=function({title:e,action:t,children:n,...r}){const o=Lh("list-group-header");return Qu.exports.jsxs("div",{...r,children:[Qu.exports.jsxs(Tv,{children:[Qu.exports.jsx("span",{id:o,children:e}),t]}),Qu.exports.jsx("div",{"aria-describedby":o,children:n})]})},Mv.Item=jv,Mv.Divider=bv,Mv.ConcealedAction=function({isVisible:e,...t}){return Qu.exports.jsx(Iv,{$isVisible:e,...t})};const Fv=Xu.div.withConfig({displayName:"ListStyled",componentId:"sc-kyt0j-0"})(["padding:",";"],(e=>e.$isContained?`0 ${ld.spacing5}`:`${ld.spacing3} 0`)),Lv=Xu.div.withConfig({displayName:"ItemWrapper",componentId:"sc-upc0k1-0"})(["--ds-list-item-border-radius-override:0;--ds-list-item-focus-ring-override:none;padding:0 ",";"],ld.spacing4);function Rv(e){return!!e&&e.getRootNode()instanceof ShadowRoot}function Hv(e){if(!e||!Rv(e))return;const t=null==e?void 0:e.getRootNode();return Array.from(t.children).find((e=>"STYLE"!==e.tagName))}const $v=n("normal");function Uv({children:e,trigger:t,position:n="bottom-left",isClosedOnScroll:o=!1,isKeepingFocusOnTrigger:s=!1,containerRef:u,onOpen:d,onClose:f,minWidth:h,role:m,...g}){const[v,y]=p(vv,gv),b=l(!0),x=l(),w=Lh("dropdown-menu");var E,C;a((()=>{b.current?b.current=!1:v.isOpen?(y({type:"highlight-current-item"}),null==d||d()):null==f||f()}),[v.isOpen]),E=v.highlightedItemId,C=v.hasSearch,a((()=>{if(!E)return;const e=document.querySelector("#"+E);if(e){const t=e.closest('[role="menu"');t&&(function(e,t,n){const{top:r,bottom:o,height:i}=e.getBoundingClientRect(),a=t.getBoundingClientRect(),s=n?_v:0;return!(r>=a.bottom-i||o<=a.top+s+i)}(e,t,C)||e.scrollIntoView(!1))}}),[E,C]);const k=c((()=>{var e;v.isOpen&&(y({type:"close"}),null==(e=null==x?void 0:x.current)||e.focus())}),[v.isOpen]);a((()=>{function e(){k()}if(o&&v.isOpen)return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}}),[o,k,v.isOpen]),pm("Tab",(()=>{v.isOpen&&k()})),pm("Escape",(()=>{v.isOpen&&k()})),pm("Enter",(e=>{var t;v.isOpen&&v.highlightedItemId&&(null==(t=document.querySelector("#"+v.highlightedItemId))||t.click(),e.preventDefault())})),pm("ArrowDown",(e=>{v.isOpen&&(y({type:"highlight-next"}),e.preventDefault())})),pm("ArrowUp",(e=>{v.isOpen&&(y({type:"highlight-previous"}),e.preventDefault())}));const S=i((()=>({dispatch:y,close:k,highlightedItemId:v.highlightedItemId,hasSearch:v.hasSearch,isKeepingFocusOnTrigger:s,menuId:w})),[k,s,v.hasSearch,v.highlightedItemId,w]),_="extra"===r($v)?8:4,{renderLayer:I,triggerProps:{ref:T},layerProps:O,triggerBounds:j}=bf({isOpen:v.isOpen,onOutsideClick:Rv(x.current)?void 0:()=>y({type:"close"}),onDisappear:e=>{"full"===e&&y({type:"close"})},triggerOffset:_,containerOffset:16,auto:!0,container:Hv(x.current),...mv(n)}),z="bottom"===n?{width:null==j?void 0:j.width,minWidth:"initial",maxWidth:"initial"}:{};return Qu.exports.jsx(Gg.Provider,{value:S,children:Qu.exports.jsxs("div",{...g,children:[t({isOpen:v.isOpen,onClick:()=>{y({type:"toggle"})},"aria-haspopup":!0,"aria-expanded":v.isOpen,"aria-controls":w,"aria-activedescendant":v.highlightedItemId,onKeyDown:function(e){" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),y({type:"toggle-from-keyboard"}))},ref:Yp(T,x)},{open:()=>{y({type:"open"})},close:()=>{y({type:"close"})}}),v.isOpen&&I(Qu.exports.jsx(Kg,{id:w,...O,ref:Yp(O.ref,u),style:{...O.style,...z},minWidth:h,role:m,children:e}))]})})}function Vv(e){return Vv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vv(e)}function Wv(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function qv(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Gv(e){qv(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Vv(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}Uv.Divider=bv,Uv.Item=function({children:e,isDisabled:t,icon:n,checkedVariant:s="checkmark",isChecked:c=!1,badge:u,onClick:d,submenu:p,role:f,...h}){const[m,g]=o(!1),[v,y]=o(!1),b=Lh("dropdown-item"),x=Lh("dropdown-item-label"),w=Lh("dropdown-submenu"),E=Boolean(p),{dispatch:C,...k}=Yg(),S=k.highlightedItemId===b,_=r(Xg),{isFocusVisible:I,focusProps:T}=$d(),{hoverProps:O}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:s}=e,[c,u]=o(!1),d=l({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(Fd,[]);let{hoverProps:p,triggerHoverEnd:f}=i((()=>{let e=(e,r)=>{if(d.pointerType=r,s||"touch"===r||d.isHovered||!e.currentTarget.contains(e.target))return;d.isHovered=!0;let o=e.currentTarget;d.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),u(!0)},o=(e,t)=>{if(d.pointerType="",d.target=null,"touch"===t||!d.isHovered)return;d.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),u(!1)},i={};return"undefined"!=typeof PointerEvent?(i.onPointerEnter=t=>{Ad&&"mouse"===t.pointerType||e(t,t.pointerType)},i.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(i.onTouchStart=()=>{d.ignoreEmulatedMouseEvents=!0},i.onMouseEnter=t=>{d.ignoreEmulatedMouseEvents||Ad||e(t,"mouse"),d.ignoreEmulatedMouseEvents=!1},i.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:i,triggerHoverEnd:o}}),[t,n,r,s,d]);return a((()=>{s&&f({currentTarget:d.target},d.pointerType)}),[s]),{hoverProps:p,isHovered:c}}({onHoverStart:()=>{E&&g(!0)},onHoverEnd:()=>{E&&g(!1)}}),j=m&&E,{triggerProps:z,layerProps:B,renderLayer:P}=bf({isOpen:j,auto:!0,placement:"right-start",possiblePlacements:["right-end","right-start","left-start","left-end"],triggerOffset:-4,onParentClose:()=>{}});a((()=>{C({type:"add-item",payload:{id:b,parentId:_,isDisabled:t,isSelected:"checkmark"===s?c:void 0}})})),a((()=>{v&&C({type:"highlight-submenu"})}),[C,v]),a((()=>{var e;k.hasSearch||k.isKeepingFocusOnTrigger||S&&(null==(e=document.querySelector("#"+b))||e.focus())}),[k.hasSearch,k.isKeepingFocusOnTrigger,b,S]),pm("ArrowLeft",(e=>{E&&v&&(C({type:"highlight-item",payload:b}),g(!1),y(!1),e.preventDefault())})),pm("ArrowRight",(e=>{S&&E&&(g(!0),y(!0),e.preventDefault())}));const A=function(e){return"checkbox"===e?Kh.pointerEventsClassname:"switch"===e?Qg.pointerEventsClassname:""}(s),N=function(e,t,n){return e||("checkbox"===t||"switch"===t?"menuitemcheckbox":"checkmark"===t&&n?"menuitemradio":"menuitem")}(f,s,c),D="menuitemcheckbox"===N||"menuitemradio"===N||"option"===N?c:void 0,M=E?{"aria-haspopup":!0,"aria-expanded":m,"aria-controls":w}:{};function F(e){null==d||d(e),E||("menuitemcheckbox"!==N?k.close():C({type:"keep-highlight"}))}return Qu.exports.jsx(Xg.Provider,{value:b,children:Qu.exports.jsxs(av,{...O,...z,onClick:e=>e.stopPropagation(),children:[Qu.exports.jsxs(sv,{disabled:t,"aria-disabled":t,$isChecked:c,"aria-checked":D,"aria-selected":k.hasSearch||k.isKeepingFocusOnTrigger?S:void 0,role:N,onClick:F,tabIndex:-1,id:b,onKeyDown:function(e){E&&(" "!==e.key&&"Enter"!==e.key||(null==d||d(e),g((e=>{const t=!e;return y(t),t})),e.preventDefault()))},$isHighlighted:S||I,$isSubmenuOpen:m,className:A,...M,...T,...h,children:["checkbox"===s&&Qu.exports.jsx(lv,{onClick:e=>e.stopPropagation(),children:Qu.exports.jsx(Kh,{isChecked:c,isDisabled:t,"aria-labelledby":x,onChange:F})}),n&&Qu.exports.jsx(cv,{children:n}),Qu.exports.jsx(uv,{id:x,children:e}),"checkmark"===s&&c&&Qu.exports.jsx(dv,{children:Qu.exports.jsx(fp,{})}),u&&Qu.exports.jsx(dv,{children:u}),"switch"===s&&Qu.exports.jsx(dv,{onClick:e=>e.stopPropagation(),children:Qu.exports.jsx(Qg,{isChecked:c,isDisabled:t,"aria-labelledby":x,onChange:F})}),E&&Qu.exports.jsx(pv,{$isActive:m||I||S,children:Qu.exports.jsx(lp,{})})]}),j&&P(Qu.exports.jsx(fv,{id:w,...B,children:p}))]})})},Uv.ListItem=function({children:e,isDisabled:t,isChecked:n=!1,onClick:r,role:o="menuitem",rightElements:i,...s}){const l=Lh("dropdown-item"),{dispatch:c,...u}=Yg(),d=u.highlightedItemId===l;a((()=>{c({type:"add-item",payload:{id:l,parentId:void 0,isDisabled:t,isSelected:n}})})),a((()=>{var e;u.hasSearch||u.isKeepingFocusOnTrigger||d&&(null==(e=document.querySelector("#"+l))||e.focus())}),[u.hasSearch,u.isKeepingFocusOnTrigger,l,d]);const p=n?Qu.exports.jsx(fp,{style:{color:ld.gray800}}):null;return Qu.exports.jsx(Lv,{onClick:e=>e.stopPropagation(),children:Qu.exports.jsx(Mv.Item,{isSelected:d,isDisabled:t,onClick:function(){null==r||r(),u.close()},"aria-disabled":t,"aria-checked":"menuitemradio"===o||"option"===o?n:void 0,"aria-selected":u.hasSearch||u.isKeepingFocusOnTrigger?d:void 0,role:o,rightElements:i?Qu.exports.jsxs(Qu.exports.Fragment,{children:[i,p]}):p,id:l,...s,children:e})})},Uv.SectionTitle=function({children:e,...t}){return Qu.exports.jsx(hv,{...t,children:e})},Uv.Arrow=function(e){return Qu.exports.jsx(qg,{...e,children:Qu.exports.jsx(pp,{})})},Uv.SelectButtonText=function({children:e,...t}){return Qu.exports.jsx(yv,{...t,children:Qu.exports.jsx(kh,{children:e})})},Uv.SearchInput=function({onChange:e,actionButton:t,...n}){const r=l(null),{dispatch:o}=Yg(),{menuId:i}=Yg();return a((()=>{var e;null==(e=r.current)||e.focus()}),[]),a((()=>{o({type:"set-search-presence"})}),[o]),Qu.exports.jsx(Ev,{children:Qu.exports.jsxs(Cv,{children:[Qu.exports.jsx(kv,{children:Qu.exports.jsx(pg,{inputRef:r,hasClearButton:!0,icon:Qu.exports.jsx(Ep,{}),onChange:function(t){var n,r;null==(r=null==(n=document.querySelector(`#${i}`))?void 0:n.scrollTo)||r.call(n,{top:0}),e(t)},...n})}),t]})})},Uv.Text=function({fontSize:e="item",children:t,...n}){return Qu.exports.jsx(Sv,{$fontSize:e,...n,children:t})},Uv.OffsetContext=$v;var Yv={};function Xv(){return Yv}function Kv(e){qv(1,arguments);var t=Gv(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Zv(e){qv(1,arguments);var t=Gv(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=Kv(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=Kv(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function Jv(e,t){var n,r,o,i,a,s,l,c;qv(1,arguments);var u=Xv(),d=Wv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Gv(e),f=p.getUTCDay(),h=(f<d?7:0)+f-d;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function Qv(e,t){var n,r,o,i,a,s,l,c;qv(1,arguments);var u=Gv(e),d=u.getUTCFullYear(),p=Xv(),f=Wv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(d+1,0,f),h.setUTCHours(0,0,0,0);var m=Jv(h,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=Jv(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function ey(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var ty={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ey("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ey(n+1,2)},d:function(e,t){return ey(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ey(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ey(e.getUTCHours(),t.length)},m:function(e,t){return ey(e.getUTCMinutes(),t.length)},s:function(e,t){return ey(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ey(Math.floor(r*Math.pow(10,n-3)),t.length)}},ny=ty,ry={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return ny.y(e,t)},Y:function(e,t,n,r){var o=Qv(e,r),i=o>0?o:1-o;return"YY"===t?ey(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ey(i,t.length)},R:function(e,t){return ey(Zv(e),t.length)},u:function(e,t){return ey(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return ey(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return ey(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return ny.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return ey(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){qv(1,arguments);var n=Gv(e),r=Jv(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;qv(1,arguments);var u=Xv(),d=Wv(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),p=Qv(e,t),f=new Date(0);return f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0),Jv(f,t)}(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ey(o,t.length)},I:function(e,t,n){var r=function(e){qv(1,arguments);var t=Gv(e),n=Kv(t).getTime()-function(e){qv(1,arguments);var t=Zv(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Kv(n)}(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ey(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):ny.d(e,t)},D:function(e,t,n){var r=function(e){qv(1,arguments);var t=Gv(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ey(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return ey(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return ey(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return ey(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return ny.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ny.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ey(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ey(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ny.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ny.s(e,t)},S:function(e,t){return ny.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return iy(o);case"XXXX":case"XX":return ay(o);default:return ay(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return iy(o);case"xxxx":case"xx":return ay(o);default:return ay(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+oy(o,":");default:return"GMT"+ay(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+oy(o,":");default:return"GMT"+ay(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ey(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ey((r._originalDate||e).getTime(),t.length)}};function oy(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+ey(i,2)}function iy(e,t){return e%60==0?(e>0?"-":"+")+ey(Math.abs(e)/60,2):ay(e,t)}function ay(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ey(Math.floor(o/60),2)+n+ey(o%60,2)}var sy=ry,ly=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},cy=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},uy={p:cy,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return ly(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",ly(o,t)).replace("{{time}}",cy(i,t))}},dy=uy,py=["D","DD"],fy=["YY","YYYY"];function hy(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var my={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function gy(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var vy={date:gy({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:gy({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:gy({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},yy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function by(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function xy(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].test(s))return n}(l):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n].test(s))return n}(l);return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var wy,Ey={code:"en-US",formatDistance:function(e,t,n){var r,o=my[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:vy,formatRelative:function(e,t,n,r){return yy[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:by({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:by({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:by({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:by({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:by({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(wy={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(wy.matchPattern);if(!n)return null;var r=n[0],o=e.match(wy.parsePattern);if(!o)return null;var i=wy.valueCallback?wy.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:xy({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xy({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:xy({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xy({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xy({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},Cy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ky=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sy=/^'([^]*?)'?$/,_y=/''/g,Iy=/[a-zA-Z]/;function Ty(e,t,n){var r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y,b,x;qv(2,arguments);var w=String(t),E=Xv(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:Ey,k=Wv(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=Wv(null!==(f=null!==(h=null!==(m=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(y=v.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:E.weekStartsOn)&&void 0!==h?h:null===(b=E.locale)||void 0===b||null===(x=b.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var _=Gv(e);if(!function(e){if(qv(1,arguments),!function(e){return qv(1,arguments),e instanceof Date||"object"===Vv(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Gv(e);return!isNaN(Number(t))}(_))throw new RangeError("Invalid time value");var I=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(_),T=function(e,t){return qv(2,arguments),function(e,t){qv(2,arguments);var n=Gv(e).getTime(),r=Wv(t);return new Date(n+r)}(e,-Wv(t))}(_,I),O={firstWeekContainsDate:k,weekStartsOn:S,locale:C,_originalDate:_},j=w.match(ky).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,dy[t])(e,C.formatLong):e})).join("").match(Cy).map((function(r){if("''"===r)return"'";var o,i,a=r[0];if("'"===a)return(i=(o=r).match(Sy))?i[1].replace(_y,"'"):o;var s=sy[a];if(s)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==fy.indexOf(e)}(r)||hy(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==py.indexOf(e)}(r)||hy(r,t,String(e)),s(T,r,C.localize,O);if(a.match(Iy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");return r})).join("");return j}const Oy=n(void 0);function jy(e){if(!r(Oy))throw new Error(`<Form.${e}> cannot be rendered outside the <Form.Group> component`)}const zy=Xu.div.withConfig({displayName:"GroupStyled",componentId:"sc-1o6r33c-0"})(["margin:0;padding:"," 0;border:0;"],ld.spacing3),By=Xu.div.withConfig({displayName:"HelperTextStyled",componentId:"sc-1gcvrkz-0"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],Pf.uiTextS,ld.spacing2,(e=>e.$hasIcon?"2px":"0"),(e=>e.$isInvalid?ld.red500:ld.colorTextMuted)),Py=Xu.div.withConfig({displayName:"Icon",componentId:"sc-1gcvrkz-1"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],ld.spacing2),Ay=Xu.label.withConfig({displayName:"LabelStyled",componentId:"sc-17wblts-0"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],Pf.uiTextM,ld.spacing3,ld.colorText),Ny=Xu.span.withConfig({displayName:"SecondaryText",componentId:"sc-17wblts-1"})(["color:",";"],ld.colorTextMuted),Dy=Xu.span.withConfig({displayName:"Space",componentId:"sc-17wblts-2"})(["display:inline-block;width:",";"],ld.spacing3),My=Xu.div.withConfig({displayName:"RowStyled",componentId:"sc-13oau0l-0"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],ld.spacing4),Fy=Xu.div.withConfig({displayName:"InputRowStyled",componentId:"sc-1mba7ih-0"})(["display:flex;gap:",";> *:not(","){min-width:auto;}> ","{min-width:0;}"],ld.spacing4,Jm,Jm);function Ly({children:e,onSubmit:t,...n}){return Qu.exports.jsx("form",{onSubmit:t,...n,children:e})}function Ry({attr:e,title:t,size:n,children:o,color:i,style:a,...s}){const l=r(Mf),c=n||l.size,u={...l.attr,...e};return Qu.exports.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...u,...s,style:{color:i,...l.style,...a},height:c,width:c,xmlns:"http://www.w3.org/2000/svg",children:[t&&Qu.exports.jsx("title",{children:t}),o]})}function Hy({label:e,labelSecondaryText:t,helperText:n,helperTextIcon:r,id:o,name:i,isInvalid:a,hasClearButton:s,icon:l,iconRight:c,inputRef:u,isDisabled:d,isReadOnly:p,isSmall:f,maxLength:h,onBlur:m,onChange:g,onFocus:v,onKeyDown:y,placeholder:b,type:x,value:w,variant:E,prefix:C,suffix:k,autoFocus:S,..._}){const I=Lh("input"),T=o||I,O=Lh("helper-text");return Qu.exports.jsxs(Ly.Group,{..._,children:[Qu.exports.jsx(Ly.Label,{secondaryText:t,htmlFor:T,children:e}),Qu.exports.jsx(pg,{hasClearButton:s,icon:l,iconRight:c,inputRef:u,isDisabled:d,isReadOnly:p,isInvalid:a,isSmall:f,maxLength:h,onBlur:m,onChange:g,onFocus:v,onKeyDown:y,placeholder:b,type:x,value:w,variant:E,id:T,name:i,"aria-describedby":n?O:void 0,prefix:C,suffix:k,autoFocus:S}),n?Qu.exports.jsx(Ly.HelperText,{icon:r,isInvalid:a,id:O,children:n}):null]})}Ly.Group=function({children:e,...t}){return Qu.exports.jsx(Oy.Provider,{value:"group",children:Qu.exports.jsx(zy,{...t,children:e})})},Ly.HelperText=function({icon:e,isInvalid:t,children:n,...r}){return jy("HelperText"),Qu.exports.jsxs(By,{$isInvalid:t,$hasIcon:Boolean(e),...r,children:[e&&Qu.exports.jsx(Py,{children:e}),n]})},Ly.Label=function({children:e,secondaryText:t,htmlFor:n,id:r,...o}){return jy("Label"),Qu.exports.jsxs(Ay,{htmlFor:n,id:r,...o,children:[e,t?Qu.exports.jsxs(Ny,{children:[Qu.exports.jsx(Dy,{children:" "}),t]}):null]})},Ly.Row=function({children:e,...t}){return Qu.exports.jsx(My,{...t,children:e})},Ly.InputRow=function({children:e,...t}){return jy("InputRow"),Qu.exports.jsx(Fy,{...t,children:e})},Ly.IconError=function({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm-1 15v-2h2v2h-2Zm0-10v6h2V7h-2Z",clipRule:"evenodd"})})};var $y,Uy={exports:{}};
|
|
42
42
|
/*!
|
|
43
43
|
Copyright (c) 2018 Jed Watson.
|
|
44
44
|
Licensed under the MIT License (MIT), see
|
|
45
45
|
http://jedwatson.github.io/classnames
|
|
46
|
-
*/Dy=My,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}Dy.exports?(t.default=t,Dy.exports=t):window.classNames=t}();var Fy=My.exports,Ly=!1;if("undefined"!=typeof window){var Ry={get passive(){Ly=!0}};window.addEventListener("testPassive",null,Ry),window.removeEventListener("testPassive",null,Ry)}var Hy="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),$y=[],Uy=!1,Vy=-1,Wy=void 0,qy=void 0,Gy=function(e){return $y.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Yy=function(e){var t=e||window.event;return!!Gy(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function Xy(){return Xy=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},Xy.apply(this,arguments)}var Ky=function(e){var n=e.classes,r=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,s=e.onClick;return t.createElement("button",{id:i,className:Fy(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:s,"data-testid":"close-button"},a||t.createElement("svg",{className:null==r?void 0:r.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},t.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},Zy="undefined"!=typeof window,Jy=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Qy(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function eb(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var t=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=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 n===e||void 0===n&&t[0]===e}function tb(e){for(var t=document.activeElement,n=e.querySelectorAll(Jy.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&nb(i)>-1&&!Qy(i)&&eb(i))&&r.push(i)}return r}function nb(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var rb=function(e){var t=e.container,n=e.initialFocusRef,r=l();return a((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return process,!1;if(!t.contains(e.target))return!1;var n=tb(t),r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):!e.shiftKey&&e.target===o&&(r.focus(),e.preventDefault())}}(e,t.current)};if(Zy&&document.addEventListener("keydown",e),Zy&&(null==t?void 0:t.current)){var o=function(){-1!==Jy.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(r.current=document.activeElement)};if(n)o(),requestAnimationFrame((function(){var e;null==(e=n.current)||e.focus()}));else{var i=tb(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;Zy&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},ob=[],ib={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},ab=t.forwardRef((function(e,n){var o,i,s,c,u=e.open,d=e.center,p=e.blockScroll,f=void 0===p||p,m=e.closeOnEsc,g=void 0===m||m,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,x=e.showCloseIcon,w=void 0===x||x,E=e.closeIconId,C=e.closeIcon,k=e.focusTrapped,S=void 0===k||k,_=e.initialFocusRef,I=void 0===_?void 0:_,T=e.animationDuration,O=void 0===T?300:T,j=e.classNames,z=e.styles,B=e.role,P=void 0===B?"dialog":B,A=e.ariaDescribedby,N=e.ariaLabelledby,D=e.containerId,M=e.modalId,F=e.onClose,L=e.onEscKeyDown,R=e.onOverlayClick,H=e.onAnimationEnd,$=e.children,U=e.reserveScrollBarGap,V=function(e,n={isStateful:!0}){const r=function(e=null){let[n,r]=t.useState(e);const{current:o}=t.useRef({current:n});return Object.defineProperty(o,"current",{get:()=>n,set:e=>{Object.is(n,e)||(n=e,r(e))}}),o}(null),o=l(null),i=n.isStateful?r:o;return t.useEffect((()=>{!e||("function"==typeof e?e(i.current):e.current=i.current)})),i}(n),W=l(null),q=l(null),G=l(null);null===G.current&&Zy&&(G.current=document.createElement("div"));var Y=r(!1),X=Y[0],K=Y[1];!function(e,t){a((function(){return t&&(n=e,ob.push(n)),function(){var t;t=e,ob=ob.filter((function(e){return e!==t}))};var n}),[t,e])}(W,u),function(e,t,n,r,o){var i=l(null);a((function(){return t&&e.current&&r&&(i.current=e.current,function(e,t){if(e){if(!$y.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};$y=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}($y),[n]),Hy?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Vy=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Vy;!Gy(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Yy(e):e.stopPropagation())}(t,e)},Uy||(document.addEventListener("touchmove",Yy,Ly?{passive:!1}:void 0),Uy=!0)):function(e){if(void 0===qy){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(qy=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Wy&&(Wy=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(e.current,{reserveScrollBarGap:o})),function(){var e;i.current&&((e=i.current)?($y=$y.filter((function(t){return t.targetElement!==e})),Hy?(e.ontouchstart=null,e.ontouchmove=null,Uy&&0===$y.length&&(document.removeEventListener("touchmove",Yy,Ly?{passive:!1}:void 0),Uy=!1)):$y.length||(void 0!==qy&&(document.body.style.paddingRight=qy,qy=void 0),void 0!==Wy&&(document.body.style.overflow=Wy,Wy=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e,r,o])}(W,u,X,f,U);var Z=function(e){var t;27===e.keyCode&&(t=W,ob.length&&ob[ob.length-1]===t)&&(null==L||L(e),g&&F())};a((function(){return function(){X&&(G.current&&!b&&document.body.contains(G.current)&&document.body.removeChild(G.current),document.removeEventListener("keydown",Z))}}),[X]),a((function(){u&&!X&&(K(!0),!G.current||b||document.body.contains(G.current)||document.body.appendChild(G.current),document.addEventListener("keydown",Z))}),[u]);var J=function(){q.current=!1},Q=b||G.current,ee=u?null!=(o=null==j?void 0:j.overlayAnimationIn)?o:ib.overlayAnimationIn:null!=(i=null==j?void 0:j.overlayAnimationOut)?i:ib.overlayAnimationOut,te=u?null!=(s=null==j?void 0:j.modalAnimationIn)?s:ib.modalAnimationIn:null!=(c=null==j?void 0:j.modalAnimationOut)?c:ib.modalAnimationOut;return X&&Q?h.createPortal(t.createElement("div",{className:Fy(ib.root,null==j?void 0:j.root),style:null==z?void 0:z.root,"data-testid":"root"},t.createElement("div",{className:Fy(ib.overlay,null==j?void 0:j.overlay),"data-testid":"overlay","aria-hidden":!0,style:Xy({animation:ee+" "+O+"ms"},null==z?void 0:z.overlay)}),t.createElement("div",{ref:W,id:D,className:Fy(ib.modalContainer,d&&ib.modalContainerCenter,null==j?void 0:j.modalContainer),style:null==z?void 0:z.modalContainer,"data-testid":"modal-container",onClick:function(e){null===q.current&&(q.current=!0),q.current?(null==R||R(e),y&&F(),q.current=null):q.current=null}},t.createElement("div",{ref:V,className:Fy(ib.modal,null==j?void 0:j.modal),style:Xy({animation:te+" "+O+"ms"},null==z?void 0:z.modal),onMouseDown:J,onMouseUp:J,onClick:J,onAnimationEnd:function(){u||K(!1),null==H||H()},id:M,role:P,"aria-modal":"true","aria-labelledby":N,"aria-describedby":A,"data-testid":"modal",tabIndex:-1},S&&t.createElement(rb,{container:V,initialFocusRef:I}),$,w&&t.createElement(Ky,{classes:ib,classNames:j,styles:z,closeIcon:C,onClick:F,id:E})))),Q):null}));function sb({hasNoBorder:e=!1,children:t,...n}){return Gu.exports.jsx(lb,{$hasBorder:!e,...n,children:t})}const lb=Uu.aside.withConfig({displayName:"Container",componentId:"sc-1pvyynk-0"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:",";"],nd.spacing5,(e=>e.$hasBorder?`1px solid ${nd.gray100}`:void 0)),cb=`b-modal-${Bh()}`,ub={root:cb,overlay:`${cb}__overlay`,modalContainer:`${cb}__container`,modal:`${cb}__modal`,modalSmall:`${cb}__modal--small`,modalMedium:`${cb}__modal--medium`,modalFullScreen:`${cb}__modal--full-screen`,modalHasSidebar:`${cb}__modal--has-sidebar`,overlayAnimationIn:`${cb}-overlay-in`,overlayAnimationOut:`${cb}-overlay-out`,modalAnimationIn:`${cb}-container-in`,modalAnimationOut:`${cb}-container-out`},db=Wu((e=>Ru(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0;transform:scale(0.95);}}.",",.",",.","{animation-fill-mode:forwards !important;}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:grid;grid-template-areas:'sidebar header' 'sidebar content' 'sidebar footer';grid-template-rows:auto 1fr auto;grid-template-columns:auto var(--ds-modal-content-width);box-sizing:border-box;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{--ds-modal-content-width:520px;max-height:100%;}.",".","{max-height:min(520px,100%);}.","{--ds-modal-content-width:minmax(auto,866px);max-height:min(752px,100%);}.","{--ds-modal-content-width:minmax( 0,1fr );width:100%;height:100%;min-height:0;}"],ub.overlayAnimationIn,ub.overlayAnimationOut,ub.modalAnimationIn,ub.modalAnimationOut,ub.overlay,ub.modalContainer,ub.modal,ub.overlay,ub.modalContainer,e.zIndex,ub.overlay,nd.gray200a,ub.modalContainer,nd.spacing6,ub.modal,ad,nd.radiusLarge,nd.gray10,nd.elevation8,ub.modalSmall,ub.modalSmall,ub.modalHasSidebar,ub.modalMedium,ub.modalFullScreen))),pb=Uu.div.withConfig({displayName:"HeaderStyled",componentId:"sc-fx4fjy-0"})(["display:flex;grid-area:header;gap:",";align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],nd.spacing4,nd.spacing4,nd.spacing6,(e=>!e.$hideCloseIcon&&Ru(["padding-right:calc( 50px + "," + "," );"],nd.spacing5,nd.spacing4))),fb=Uu.div.withConfig({displayName:"AdditionalActions",componentId:"sc-fx4fjy-1"})(["display:flex;gap:",";"],nd.spacing3),hb=Uu.div.withConfig({displayName:"BackButton",componentId:"sc-fx4fjy-2"})(["margin-left:calc("," * -1);"],nd.spacing3),mb=Uu.div.withConfig({displayName:"Headings",componentId:"sc-fx4fjy-3"})(["flex:1;min-width:0;"]),gb=Uu.h2.withConfig({displayName:"Title",componentId:"sc-fx4fjy-4"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],If.uiTextL,nd.colorText),vb=Uu.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-fx4fjy-5"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],If.uiTextS,nd.colorTextMuted),yb=Uu.div.withConfig({displayName:"ContentStyled",componentId:"sc-fx4fjy-6"})(["position:relative;grid-area:content;min-height:0;&:nth-last-child(2){--ds-modal-content-bottom-radius:",";}&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:4px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);box-shadow:inset 0 1px 0 0 ",";}&::after{bottom:0;border-bottom-right-radius:var(--ds-modal-content-bottom-radius);border-bottom-left-radius:var(--ds-modal-content-bottom-radius);background:linear-gradient(to top,",",transparent);box-shadow:inset 0 -1px 0 0 ",";}"],nd.radiusLarge,nd.gray50a,nd.gray100a,nd.gray50a,nd.gray100a),bb=Uu.div.withConfig({displayName:"ContentInner",componentId:"sc-fx4fjy-7"})([""," position:relative;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;height:100%;padding:"," ",";color:",";font-family:",";scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);border-bottom-right-radius:var(--ds-modal-content-bottom-radius);border-bottom-left-radius:var(--ds-modal-content-bottom-radius);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],If.paragraphM,nd.spacing5,nd.spacing6,nd.colorText,nd.brandFontStackBase,nd.spacing5,nd.spacing5,nd.spacing6,nd.gray10,nd.gray10,nd.spacing6,nd.spacing5,nd.gray10,nd.gray10),xb=Uu.div.withConfig({displayName:"ContentExpander",componentId:"sc-fx4fjy-8"})(["min-height:100%;"]),wb=Uu.div.withConfig({displayName:"FooterStyled",componentId:"sc-fx4fjy-9"})(["display:flex;grid-area:footer;padding:",";"],nd.spacing6),Eb=Uu.div.withConfig({displayName:"ActionsRight",componentId:"sc-fx4fjy-10"})(["margin-left:auto;"]),Cb=Uu.div.withConfig({displayName:"CloseButton",componentId:"sc-fx4fjy-11"})(["position:absolute;top:",";right:",";"],nd.spacing5,nd.spacing5),kb=Uu.div.withConfig({displayName:"SidebarStyled",componentId:"sc-fx4fjy-12"})(["grid-area:sidebar;"]),Sb=t.createContext({hideCloseIcon:!1,setHasSidebar:()=>{}}),_b={small:ub.modalSmall,medium:ub.modalMedium,fullscreen:ub.modalFullScreen};function Ib({isOpen:e,onClose:t,size:n="small",isCloseButtonHidden:i=!1,isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:l,children:c,container:u,...d}){const[p,f]=r(!1),h={root:ub.root,overlay:ub.overlay,modalContainer:ub.modalContainer,modal:`${ub.modal} ${_b[n]} ${p?ub.modalHasSidebar:""}`,modalAnimationIn:ub.modalAnimationIn,modalAnimationOut:ub.modalAnimationOut,overlayAnimationIn:ub.overlayAnimationIn,overlayAnimationOut:ub.overlayAnimationOut},{translate:m}=ig(),g=!i,v=rh("modal"),y=o((()=>({hideCloseIcon:i,setHasSidebar:f})),[i]),[b,x]=r(!1);return a((()=>{e&&x(!0)}),[e]),Gu.exports.jsxs(Sb.Provider,{value:y,children:[Gu.exports.jsxs(ab,{open:e,onClose:t,classNames:h,animationDuration:200,showCloseIcon:!1,closeOnEsc:g,closeOnOverlayClick:s,container:u,onAnimationEnd:()=>{e||(x(!1),null==l||l())},...d,children:[e||b?c:null,g&&Gu.exports.jsx(Cb,{children:Gu.exports.jsx(Zd,{variant:"clean",icon:Gu.exports.jsx(ip,{}),"aria-label":m("modal.close"),title:m("modal.close"),onClick:t})})]}),Gu.exports.jsx(db,{zIndex:v})]})}function Tb({isOpen:e,onClose:t,size:n,isCloseButtonHidden:r,isClosedOnOverlayClick:o,title:i,secondaryInfo:a,additionalActions:s,thumbnail:l,children:c,actionPrimary:u,actionSecondary:d,actionTertiary:p,container:f,onCloseAnimationEnd:h,sidebar:m,...g}){return Gu.exports.jsxs(Ib,{isOpen:e,onClose:t,isClosedOnOverlayClick:o,isCloseButtonHidden:r,size:n,onCloseAnimationEnd:h,container:f,...g,children:[Gu.exports.jsx(Ib.Header,{title:i,secondaryInfo:a,thumbnail:l,additionalActions:s}),m?Gu.exports.jsx(Ib.Sidebar,{children:m}):null,Gu.exports.jsx(Ib.Content,{children:c}),u&&Gu.exports.jsx(Ib.Footer,{actionPrimary:u,actionSecondary:d,actionTertiary:p})]})}function Ob(e){return Gu.exports.jsx(Tb,{...e})}Ib.Header=function({title:e,secondaryInfo:t,thumbnail:n,backButton:r,additionalActions:o}){const{hideCloseIcon:a}=i(Sb);return Gu.exports.jsxs(pb,{$hideCloseIcon:a,children:[r&&Gu.exports.jsx(hb,{children:Gu.exports.jsx(Zd,{variant:"clean",icon:Gu.exports.jsx(tp,{}),"aria-label":r.title,...r})}),n&&Gu.exports.jsx("div",{children:n}),Gu.exports.jsxs(mb,{children:[Gu.exports.jsx(gb,{children:e}),t&&Gu.exports.jsx(vb,{children:t})]}),o&&Gu.exports.jsx(fb,{children:o})]})},Ib.Content=function({children:e}){return Gu.exports.jsx(yb,{children:Gu.exports.jsx(bb,{children:Gu.exports.jsx(xb,{children:e})})})},Ib.Footer=function({actionPrimary:e,actionSecondary:t,actionTertiary:n}){return Gu.exports.jsxs(wb,{children:[n,Gu.exports.jsx(Eb,{children:Gu.exports.jsxs(Tf,{gap:"4",children:[t,e]})})]})},Ib.Sidebar=function({children:e}){const{setHasSidebar:t}=i(Sb);return a((()=>(t(!0),()=>{t(!1)}))),Gu.exports.jsx(kb,{children:Gu.exports.jsx(sb,{children:e})})};let jb,zb,Bb,Pb={data:""},Ab=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Pb,Nb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Db=/\/\*[^]*?\*\/| +/g,Mb=/\n+/g,Fb=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Fb(a,i):i+"{"+Fb(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=Fb(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Fb.p?Fb.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Lb={},Rb=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Rb(e[n]);return t}return e},Hb=(e,t,n,r,o)=>{let i=Rb(e),a=Lb[i]||(Lb[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Lb[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Nb.exec(e.replace(Db,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Mb," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Mb," ").trim();return r[0]})(e);Lb[a]=Fb(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&Lb.g?Lb.g:null;return n&&(Lb.g=Lb[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Lb[a],t,r,s),a},$b=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Fb(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ub(e){let t=this||{},n=e.call?e(t.p):e;return Hb(n.unshift?n.raw?$b(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Ab(t.target),t.g,t.o,t.k)}Ub.bind({g:1});let Vb=Ub.bind({k:1});function Wb(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:zb&&zb()},s),n.o=/ *go\d+/.test(l),s.className=Ub.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),Bb&&c[0]&&Bb(s),jb(c,s)}return t?t(o):o}}var qb=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Gb=(()=>{let e=0;return()=>(++e).toString()})(),Yb=new Map,Xb=e=>{if(Yb.has(e))return;let t=setTimeout((()=>{Yb.delete(e),Qb({type:4,toastId:e})}),1e3);Yb.set(e,t)},Kb=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=Yb.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?Kb(e,{type:1,toast:n}):Kb(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?Xb(r):e.toasts.forEach((e=>{Xb(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Zb=[],Jb={toasts:[],pausedAt:void 0},Qb=e=>{Jb=Kb(Jb,e),Zb.forEach((e=>{e(Jb)}))},ex=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Gb()}))(t,e,n);return Qb({type:2,toast:r}),r.id},tx=(e,t)=>ex("blank")(e,t);tx.error=ex("error"),tx.success=ex("success"),tx.loading=ex("loading"),tx.custom=ex("custom"),tx.dismiss=e=>{Qb({type:3,toastId:e})},tx.remove=e=>Qb({type:4,toastId:e}),tx.promise=(e,t,n)=>{let r=tx.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(tx.success(qb(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{tx.error(qb(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var nx=Vb`
|
|
46
|
+
*/$y=Uy,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var o=arguments[t];o&&(e=r(e,n(o)))}return e}function n(n){if("string"==typeof n||"number"==typeof n)return n;if("object"!=typeof n)return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var o="";for(var i in n)e.call(n,i)&&n[i]&&(o=r(o,i));return o}function r(e,t){return t?e?e+" "+t:e+t:e}$y.exports?(t.default=t,$y.exports=t):window.classNames=t}();var Vy=Uy.exports,Wy=!1;if("undefined"!=typeof window){var qy={get passive(){Wy=!0}};window.addEventListener("testPassive",null,qy),window.removeEventListener("testPassive",null,qy)}var Gy="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Yy=[],Xy=!1,Ky=-1,Zy=void 0,Jy=void 0,Qy=function(e){return Yy.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},eb=function(e){var t=e||window.event;return!!Qy(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function tb(){return tb=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},tb.apply(this,arguments)}var nb=function(e){var n=e.classes,r=e.classNames,o=e.styles,i=e.id,a=e.closeIcon,s=e.onClick;return t.createElement("button",{id:i,className:Vy(n.closeButton,null==r?void 0:r.closeButton),style:null==o?void 0:o.closeButton,onClick:s,"data-testid":"close-button"},a||t.createElement("svg",{className:null==r?void 0:r.closeIcon,style:null==o?void 0:o.closeIcon,width:28,height:28,viewBox:"0 0 36 36","data-testid":"close-icon"},t.createElement("path",{d:"M28.5 9.62L26.38 7.5 18 15.88 9.62 7.5 7.5 9.62 15.88 18 7.5 26.38l2.12 2.12L18 20.12l8.38 8.38 2.12-2.12L20.12 18z"})))},rb="undefined"!=typeof window,ob=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function ib(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function ab(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!0;var t=(e.form||e.ownerDocument).querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=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 n===e||void 0===n&&t[0]===e}function sb(e){for(var t=document.activeElement,n=e.querySelectorAll(ob.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&lb(i)>-1&&!ib(i)&&ab(i))&&r.push(i)}return r}function lb(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var cb=function(e){var t=e.container,n=e.initialFocusRef,r=l();return a((function(){var e=function(e){(null==t?void 0:t.current)&&function(e,t){if(e&&"Tab"===e.key){if(!t||!t.contains)return process,!1;if(!t.contains(e.target))return!1;var n=sb(t),r=n[0],o=n[n.length-1];e.shiftKey&&e.target===r?(o.focus(),e.preventDefault()):!e.shiftKey&&e.target===o&&(r.focus(),e.preventDefault())}}(e,t.current)};if(rb&&document.addEventListener("keydown",e),rb&&(null==t?void 0:t.current)){var o=function(){-1!==ob.findIndex((function(e){var t;return null==(t=document.activeElement)?void 0:t.matches(e)}))&&(r.current=document.activeElement)};if(n)o(),requestAnimationFrame((function(){var e;null==(e=n.current)||e.focus()}));else{var i=sb(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;rb&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},ub=[],db={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},pb=t.forwardRef((function(e,n){var r,i,s,c,u=e.open,d=e.center,p=e.blockScroll,f=void 0===p||p,m=e.closeOnEsc,g=void 0===m||m,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,x=e.showCloseIcon,w=void 0===x||x,E=e.closeIconId,C=e.closeIcon,k=e.focusTrapped,S=void 0===k||k,_=e.initialFocusRef,I=void 0===_?void 0:_,T=e.animationDuration,O=void 0===T?300:T,j=e.classNames,z=e.styles,B=e.role,P=void 0===B?"dialog":B,A=e.ariaDescribedby,N=e.ariaLabelledby,D=e.containerId,M=e.modalId,F=e.onClose,L=e.onEscKeyDown,R=e.onOverlayClick,H=e.onAnimationEnd,$=e.children,U=e.reserveScrollBarGap,V=function(e,n={isStateful:!0}){const r=function(e=null){let[n,r]=t.useState(e);const{current:o}=t.useRef({current:n});return Object.defineProperty(o,"current",{get:()=>n,set:e=>{Object.is(n,e)||(n=e,r(e))}}),o}(null),o=l(null),i=n.isStateful?r:o;return t.useEffect((()=>{!e||("function"==typeof e?e(i.current):e.current=i.current)})),i}(n),W=l(null),q=l(null),G=l(null);null===G.current&&rb&&(G.current=document.createElement("div"));var Y=o(!1),X=Y[0],K=Y[1];!function(e,t){a((function(){return t&&(n=e,ub.push(n)),function(){var t;t=e,ub=ub.filter((function(e){return e!==t}))};var n}),[t,e])}(W,u),function(e,t,n,r,o){var i=l(null);a((function(){return t&&e.current&&r&&(i.current=e.current,function(e,t){if(e){if(!Yy.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Yy=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Yy),[n]),Gy?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Ky=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Ky;!Qy(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?eb(e):e.stopPropagation())}(t,e)},Xy||(document.addEventListener("touchmove",eb,Wy?{passive:!1}:void 0),Xy=!0)):function(e){if(void 0===Jy){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Jy=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Zy&&(Zy=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}(e.current,{reserveScrollBarGap:o})),function(){var e;i.current&&((e=i.current)?(Yy=Yy.filter((function(t){return t.targetElement!==e})),Gy?(e.ontouchstart=null,e.ontouchmove=null,Xy&&0===Yy.length&&(document.removeEventListener("touchmove",eb,Wy?{passive:!1}:void 0),Xy=!1)):Yy.length||(void 0!==Jy&&(document.body.style.paddingRight=Jy,Jy=void 0),void 0!==Zy&&(document.body.style.overflow=Zy,Zy=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e,r,o])}(W,u,X,f,U);var Z=function(e){var t;27===e.keyCode&&(t=W,ub.length&&ub[ub.length-1]===t)&&(null==L||L(e),g&&F())};a((function(){return function(){X&&(G.current&&!b&&document.body.contains(G.current)&&document.body.removeChild(G.current),document.removeEventListener("keydown",Z))}}),[X]),a((function(){u&&!X&&(K(!0),!G.current||b||document.body.contains(G.current)||document.body.appendChild(G.current),document.addEventListener("keydown",Z))}),[u]);var J=function(){q.current=!1},Q=b||G.current,ee=u?null!=(r=null==j?void 0:j.overlayAnimationIn)?r:db.overlayAnimationIn:null!=(i=null==j?void 0:j.overlayAnimationOut)?i:db.overlayAnimationOut,te=u?null!=(s=null==j?void 0:j.modalAnimationIn)?s:db.modalAnimationIn:null!=(c=null==j?void 0:j.modalAnimationOut)?c:db.modalAnimationOut;return X&&Q?h.createPortal(t.createElement("div",{className:Vy(db.root,null==j?void 0:j.root),style:null==z?void 0:z.root,"data-testid":"root"},t.createElement("div",{className:Vy(db.overlay,null==j?void 0:j.overlay),"data-testid":"overlay","aria-hidden":!0,style:tb({animation:ee+" "+O+"ms"},null==z?void 0:z.overlay)}),t.createElement("div",{ref:W,id:D,className:Vy(db.modalContainer,d&&db.modalContainerCenter,null==j?void 0:j.modalContainer),style:null==z?void 0:z.modalContainer,"data-testid":"modal-container",onClick:function(e){null===q.current&&(q.current=!0),q.current?(null==R||R(e),y&&F(),q.current=null):q.current=null}},t.createElement("div",{ref:V,className:Vy(db.modal,null==j?void 0:j.modal),style:tb({animation:te+" "+O+"ms"},null==z?void 0:z.modal),onMouseDown:J,onMouseUp:J,onClick:J,onAnimationEnd:function(){u||K(!1),null==H||H()},id:M,role:P,"aria-modal":"true","aria-labelledby":N,"aria-describedby":A,"data-testid":"modal",tabIndex:-1},S&&t.createElement(cb,{container:V,initialFocusRef:I}),$,w&&t.createElement(nb,{classes:db,classNames:j,styles:z,closeIcon:C,onClick:F,id:E})))),Q):null}));function fb({hasNoBorder:e=!1,children:t,...n}){return Qu.exports.jsx(hb,{$hasBorder:!e,...n,children:t})}const hb=Xu.aside.withConfig({displayName:"Container",componentId:"sc-1pvyynk-0"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:",";"],ld.spacing5,(e=>e.$hasBorder?`1px solid ${ld.gray100}`:void 0)),mb=`b-modal-${Fh()}`,gb={root:mb,overlay:`${mb}__overlay`,modalContainer:`${mb}__container`,modal:`${mb}__modal`,modalSmall:`${mb}__modal--small`,modalMedium:`${mb}__modal--medium`,modalFullScreen:`${mb}__modal--full-screen`,modalHasSidebar:`${mb}__modal--has-sidebar`,overlayAnimationIn:`${mb}-overlay-in`,overlayAnimationOut:`${mb}-overlay-out`,modalAnimationIn:`${mb}-container-in`,modalAnimationOut:`${mb}-container-out`},vb=Zu((e=>qu(["@keyframes ","{0%{opacity:0;}100%{opacity:1;}}@keyframes ","{0%{opacity:1;}100%{opacity:0;}}@keyframes ","{0%{opacity:0.5;transform:scale(0.95);}100%{opacity:1;transform:scale(1);}}@keyframes ","{0%{opacity:1;transform:scale(1);}100%{opacity:0;transform:scale(0.95);}}.",",.",",.","{animation-fill-mode:forwards !important;}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:",";}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{"," position:relative;display:grid;grid-template-areas:'sidebar header' 'sidebar content' 'sidebar footer';grid-template-rows:auto 1fr auto;grid-template-columns:auto var(--ds-modal-content-width);box-sizing:border-box;margin:auto;border-radius:",";background:",";box-shadow:",";}.","{--ds-modal-content-width:520px;max-height:100%;}.",".","{max-height:min(520px,100%);}.","{--ds-modal-content-width:minmax(auto,866px);max-height:min(752px,100%);}.","{--ds-modal-content-width:minmax( 0,1fr );width:100%;height:100%;min-height:0;}"],gb.overlayAnimationIn,gb.overlayAnimationOut,gb.modalAnimationIn,gb.modalAnimationOut,gb.overlay,gb.modalContainer,gb.modal,gb.overlay,gb.modalContainer,e.zIndex,gb.overlay,ld.gray200a,gb.modalContainer,ld.spacing6,gb.modal,pd,ld.radiusLarge,ld.gray10,ld.elevation8,gb.modalSmall,gb.modalSmall,gb.modalHasSidebar,gb.modalMedium,gb.modalFullScreen))),yb=Xu.div.withConfig({displayName:"HeaderStyled",componentId:"sc-fx4fjy-0"})(["display:flex;grid-area:header;gap:",";align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],ld.spacing4,ld.spacing4,ld.spacing6,(e=>!e.$hideCloseIcon&&qu(["padding-right:calc( 50px + "," + "," );"],ld.spacing5,ld.spacing4))),bb=Xu.div.withConfig({displayName:"AdditionalActions",componentId:"sc-fx4fjy-1"})(["display:flex;gap:",";"],ld.spacing3),xb=Xu.div.withConfig({displayName:"BackButton",componentId:"sc-fx4fjy-2"})(["margin-left:calc("," * -1);"],ld.spacing3),wb=Xu.div.withConfig({displayName:"Headings",componentId:"sc-fx4fjy-3"})(["flex:1;min-width:0;"]),Eb=Xu.h2.withConfig({displayName:"Title",componentId:"sc-fx4fjy-4"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Pf.uiTextL,ld.colorText),Cb=Xu.h3.withConfig({displayName:"SecondaryInformation",componentId:"sc-fx4fjy-5"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Pf.uiTextS,ld.colorTextMuted),kb=Xu.div.withConfig({displayName:"ContentStyled",componentId:"sc-fx4fjy-6"})(["position:relative;grid-area:content;min-height:0;&:nth-last-child(2){--ds-modal-content-bottom-radius:",";}&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:4px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);box-shadow:inset 0 1px 0 0 ",";}&::after{bottom:0;border-bottom-right-radius:var(--ds-modal-content-bottom-radius);border-bottom-left-radius:var(--ds-modal-content-bottom-radius);background:linear-gradient(to top,",",transparent);box-shadow:inset 0 -1px 0 0 ",";}"],ld.radiusLarge,ld.gray50a,ld.gray100a,ld.gray50a,ld.gray100a),Sb=Xu.div.withConfig({displayName:"ContentInner",componentId:"sc-fx4fjy-7"})([""," position:relative;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;height:100%;padding:"," ",";color:",";font-family:",";scroll-behavior:smooth;&::before,&::after{content:'';position:relative;left:0;z-index:1;display:block;height:",";}&::before{margin:calc("," * -1) calc("," * -1) 0;background:linear-gradient( to bottom,",","," 50%,rgb(255 255 255 / 0) );}&::after{margin:0 calc("," * -1) calc("," * -1);border-bottom-right-radius:var(--ds-modal-content-bottom-radius);border-bottom-left-radius:var(--ds-modal-content-bottom-radius);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],Pf.paragraphM,ld.spacing5,ld.spacing6,ld.colorText,ld.brandFontStackBase,ld.spacing5,ld.spacing5,ld.spacing6,ld.gray10,ld.gray10,ld.spacing6,ld.spacing5,ld.gray10,ld.gray10),_b=Xu.div.withConfig({displayName:"ContentExpander",componentId:"sc-fx4fjy-8"})(["min-height:100%;"]),Ib=Xu.div.withConfig({displayName:"FooterStyled",componentId:"sc-fx4fjy-9"})(["display:flex;grid-area:footer;padding:",";"],ld.spacing6),Tb=Xu.div.withConfig({displayName:"ActionsRight",componentId:"sc-fx4fjy-10"})(["margin-left:auto;"]),Ob=Xu.div.withConfig({displayName:"CloseButton",componentId:"sc-fx4fjy-11"})(["position:absolute;top:",";right:",";"],ld.spacing5,ld.spacing5),jb=Xu.div.withConfig({displayName:"SidebarStyled",componentId:"sc-fx4fjy-12"})(["grid-area:sidebar;"]),zb=t.createContext({hideCloseIcon:!1,setHasSidebar:()=>{}}),Bb={small:gb.modalSmall,medium:gb.modalMedium,fullscreen:gb.modalFullScreen};function Pb({isOpen:e,onClose:t,size:n="small",isCloseButtonHidden:r=!1,isClosedOnOverlayClick:s=!1,onCloseAnimationEnd:l,children:c,container:u,...d}){const[p,f]=o(!1),h={root:gb.root,overlay:gb.overlay,modalContainer:gb.modalContainer,modal:`${gb.modal} ${Bb[n]} ${p?gb.modalHasSidebar:""}`,modalAnimationIn:gb.modalAnimationIn,modalAnimationOut:gb.modalAnimationOut,overlayAnimationIn:gb.overlayAnimationIn,overlayAnimationOut:gb.overlayAnimationOut},{translate:m}=dg(),g=!r,v=ch("modal"),y=i((()=>({hideCloseIcon:r,setHasSidebar:f})),[r]),[b,x]=o(!1);return a((()=>{e&&x(!0)}),[e]),Qu.exports.jsxs(zb.Provider,{value:y,children:[Qu.exports.jsxs(pb,{open:e,onClose:t,classNames:h,animationDuration:200,showCloseIcon:!1,closeOnEsc:g,closeOnOverlayClick:s,container:u,onAnimationEnd:()=>{e||(x(!1),null==l||l())},...d,children:[e||b?c:null,g&&Qu.exports.jsx(Ob,{children:Qu.exports.jsx(rp,{variant:"clean",icon:Qu.exports.jsx(dp,{}),"aria-label":m("modal.close"),title:m("modal.close"),onClick:t})})]}),Qu.exports.jsx(vb,{zIndex:v})]})}function Ab({isOpen:e,onClose:t,size:n,isCloseButtonHidden:r,isClosedOnOverlayClick:o,title:i,secondaryInfo:a,additionalActions:s,thumbnail:l,children:c,actionPrimary:u,actionSecondary:d,actionTertiary:p,container:f,onCloseAnimationEnd:h,sidebar:m,...g}){return Qu.exports.jsxs(Pb,{isOpen:e,onClose:t,isClosedOnOverlayClick:o,isCloseButtonHidden:r,size:n,onCloseAnimationEnd:h,container:f,...g,children:[Qu.exports.jsx(Pb.Header,{title:i,secondaryInfo:a,thumbnail:l,additionalActions:s}),m?Qu.exports.jsx(Pb.Sidebar,{children:m}):null,Qu.exports.jsx(Pb.Content,{children:c}),u&&Qu.exports.jsx(Pb.Footer,{actionPrimary:u,actionSecondary:d,actionTertiary:p})]})}function Nb(e){return Qu.exports.jsx(Ab,{...e})}Pb.Header=function({title:e,secondaryInfo:t,thumbnail:n,backButton:o,additionalActions:i}){const{hideCloseIcon:a}=r(zb);return Qu.exports.jsxs(yb,{$hideCloseIcon:a,children:[o&&Qu.exports.jsx(xb,{children:Qu.exports.jsx(rp,{variant:"clean",icon:Qu.exports.jsx(sp,{}),"aria-label":o.title,...o})}),n&&Qu.exports.jsx("div",{children:n}),Qu.exports.jsxs(wb,{children:[Qu.exports.jsx(Eb,{children:e}),t&&Qu.exports.jsx(Cb,{children:t})]}),i&&Qu.exports.jsx(bb,{children:i})]})},Pb.Content=function({children:e}){return Qu.exports.jsx(kb,{children:Qu.exports.jsx(Sb,{children:Qu.exports.jsx(_b,{children:e})})})},Pb.Footer=function({actionPrimary:e,actionSecondary:t,actionTertiary:n}){return Qu.exports.jsxs(Ib,{children:[n,Qu.exports.jsx(Tb,{children:Qu.exports.jsxs(Af,{gap:"4",children:[t,e]})})]})},Pb.Sidebar=function({children:e}){const{setHasSidebar:t}=r(zb);return a((()=>(t(!0),()=>{t(!1)}))),Qu.exports.jsx(jb,{children:Qu.exports.jsx(fb,{children:e})})};let Db,Mb,Fb,Lb={data:""},Rb=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Lb,Hb=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$b=/\/\*[^]*?\*\/| +/g,Ub=/\n+/g,Vb=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?Vb(a,i):i+"{"+Vb(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=Vb(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Vb.p?Vb.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Wb={},qb=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+qb(e[n]);return t}return e},Gb=(e,t,n,r,o)=>{let i=qb(e),a=Wb[i]||(Wb[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Wb[a]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=Hb.exec(e.replace($b,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Ub," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Ub," ").trim();return r[0]})(e);Wb[a]=Vb(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}let s=n&&Wb.g?Wb.g:null;return n&&(Wb.g=Wb[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Wb[a],t,r,s),a},Yb=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":Vb(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Xb(e){let t=this||{},n=e.call?e(t.p):e;return Gb(n.unshift?n.raw?Yb(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,Rb(t.target),t.g,t.o,t.k)}Xb.bind({g:1});let Kb=Xb.bind({k:1});function Zb(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:Mb&&Mb()},s),n.o=/ *go\d+/.test(l),s.className=Xb.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),Fb&&c[0]&&Fb(s),Db(c,s)}return t?t(o):o}}var Jb=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Qb=(()=>{let e=0;return()=>(++e).toString()})(),ex=new Map,tx=e=>{if(ex.has(e))return;let t=setTimeout((()=>{ex.delete(e),ix({type:4,toastId:e})}),1e3);ex.set(e,t)},nx=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=ex.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?nx(e,{type:1,toast:n}):nx(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?tx(r):e.toasts.forEach((e=>{tx(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},rx=[],ox={toasts:[],pausedAt:void 0},ix=e=>{ox=nx(ox,e),rx.forEach((e=>{e(ox)}))},ax=e=>(t,n)=>{let r=((e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||Qb()}))(t,e,n);return ix({type:2,toast:r}),r.id},sx=(e,t)=>ax("blank")(e,t);sx.error=ax("error"),sx.success=ax("success"),sx.loading=ax("loading"),sx.custom=ax("custom"),sx.dismiss=e=>{ix({type:3,toastId:e})},sx.remove=e=>ix({type:4,toastId:e}),sx.promise=(e,t,n)=>{let r=sx.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(sx.success(Jb(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{sx.error(Jb(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var lx=Kb`
|
|
47
47
|
from {
|
|
48
48
|
transform: scale(0) rotate(45deg);
|
|
49
49
|
opacity: 0;
|
|
@@ -51,7 +51,7 @@ from {
|
|
|
51
51
|
to {
|
|
52
52
|
transform: scale(1) rotate(45deg);
|
|
53
53
|
opacity: 1;
|
|
54
|
-
}`,
|
|
54
|
+
}`,cx=Kb`
|
|
55
55
|
from {
|
|
56
56
|
transform: scale(0);
|
|
57
57
|
opacity: 0;
|
|
@@ -59,7 +59,7 @@ from {
|
|
|
59
59
|
to {
|
|
60
60
|
transform: scale(1);
|
|
61
61
|
opacity: 1;
|
|
62
|
-
}`,
|
|
62
|
+
}`,ux=Kb`
|
|
63
63
|
from {
|
|
64
64
|
transform: scale(0) rotate(90deg);
|
|
65
65
|
opacity: 0;
|
|
@@ -67,7 +67,7 @@ from {
|
|
|
67
67
|
to {
|
|
68
68
|
transform: scale(1) rotate(90deg);
|
|
69
69
|
opacity: 1;
|
|
70
|
-
}`;
|
|
70
|
+
}`;Zb("div")`
|
|
71
71
|
width: 20px;
|
|
72
72
|
opacity: 0;
|
|
73
73
|
height: 20px;
|
|
@@ -76,14 +76,14 @@ to {
|
|
|
76
76
|
position: relative;
|
|
77
77
|
transform: rotate(45deg);
|
|
78
78
|
|
|
79
|
-
animation: ${
|
|
79
|
+
animation: ${lx} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
80
80
|
forwards;
|
|
81
81
|
animation-delay: 100ms;
|
|
82
82
|
|
|
83
83
|
&:after,
|
|
84
84
|
&:before {
|
|
85
85
|
content: '';
|
|
86
|
-
animation: ${
|
|
86
|
+
animation: ${cx} 0.15s ease-out forwards;
|
|
87
87
|
animation-delay: 150ms;
|
|
88
88
|
position: absolute;
|
|
89
89
|
border-radius: 3px;
|
|
@@ -96,18 +96,18 @@ to {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&:before {
|
|
99
|
-
animation: ${
|
|
99
|
+
animation: ${ux} 0.15s ease-out forwards;
|
|
100
100
|
animation-delay: 180ms;
|
|
101
101
|
transform: rotate(90deg);
|
|
102
102
|
}
|
|
103
|
-
`;var
|
|
103
|
+
`;var dx=Kb`
|
|
104
104
|
from {
|
|
105
105
|
transform: rotate(0deg);
|
|
106
106
|
}
|
|
107
107
|
to {
|
|
108
108
|
transform: rotate(360deg);
|
|
109
109
|
}
|
|
110
|
-
`;
|
|
110
|
+
`;Zb("div")`
|
|
111
111
|
width: 12px;
|
|
112
112
|
height: 12px;
|
|
113
113
|
box-sizing: border-box;
|
|
@@ -115,8 +115,8 @@ to {
|
|
|
115
115
|
border-radius: 100%;
|
|
116
116
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
117
117
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
118
|
-
animation: ${
|
|
119
|
-
`;var
|
|
118
|
+
animation: ${dx} 1s linear infinite;
|
|
119
|
+
`;var px=Kb`
|
|
120
120
|
from {
|
|
121
121
|
transform: scale(0) rotate(45deg);
|
|
122
122
|
opacity: 0;
|
|
@@ -124,7 +124,7 @@ from {
|
|
|
124
124
|
to {
|
|
125
125
|
transform: scale(1) rotate(45deg);
|
|
126
126
|
opacity: 1;
|
|
127
|
-
}`,
|
|
127
|
+
}`,fx=Kb`
|
|
128
128
|
0% {
|
|
129
129
|
height: 0;
|
|
130
130
|
width: 0;
|
|
@@ -138,7 +138,7 @@ to {
|
|
|
138
138
|
100% {
|
|
139
139
|
opacity: 1;
|
|
140
140
|
height: 10px;
|
|
141
|
-
}`;
|
|
141
|
+
}`;Zb("div")`
|
|
142
142
|
width: 20px;
|
|
143
143
|
opacity: 0;
|
|
144
144
|
height: 20px;
|
|
@@ -147,13 +147,13 @@ to {
|
|
|
147
147
|
position: relative;
|
|
148
148
|
transform: rotate(45deg);
|
|
149
149
|
|
|
150
|
-
animation: ${
|
|
150
|
+
animation: ${px} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
151
151
|
forwards;
|
|
152
152
|
animation-delay: 100ms;
|
|
153
153
|
&:after {
|
|
154
154
|
content: '';
|
|
155
155
|
box-sizing: border-box;
|
|
156
|
-
animation: ${
|
|
156
|
+
animation: ${fx} 0.2s ease-out forwards;
|
|
157
157
|
opacity: 0;
|
|
158
158
|
animation-delay: 200ms;
|
|
159
159
|
position: absolute;
|
|
@@ -165,16 +165,16 @@ to {
|
|
|
165
165
|
height: 10px;
|
|
166
166
|
width: 6px;
|
|
167
167
|
}
|
|
168
|
-
`,
|
|
168
|
+
`,Zb("div")`
|
|
169
169
|
position: absolute;
|
|
170
|
-
`,
|
|
170
|
+
`,Zb("div")`
|
|
171
171
|
position: relative;
|
|
172
172
|
display: flex;
|
|
173
173
|
justify-content: center;
|
|
174
174
|
align-items: center;
|
|
175
175
|
min-width: 20px;
|
|
176
176
|
min-height: 20px;
|
|
177
|
-
`;var
|
|
177
|
+
`;var hx=Kb`
|
|
178
178
|
from {
|
|
179
179
|
transform: scale(0.6);
|
|
180
180
|
opacity: 0.4;
|
|
@@ -182,14 +182,14 @@ from {
|
|
|
182
182
|
to {
|
|
183
183
|
transform: scale(1);
|
|
184
184
|
opacity: 1;
|
|
185
|
-
}`;function
|
|
185
|
+
}`;function mx(e){return Qu.exports.jsxs(gx,{role:"status","aria-live":"polite",children:[e.thumbnail&&Qu.exports.jsx(vx,{children:e.thumbnail}),Qu.exports.jsxs(yx,{children:[Qu.exports.jsx(bx,{title:"string"==typeof e.title?e.title:"",children:e.title}),e.description&&Qu.exports.jsx(xx,{title:"string"==typeof e.description?e.description:"",children:e.description})]}),Qu.exports.jsx(wx,{children:e.button}),"number"==typeof e.progressPercentage&&Qu.exports.jsx(Ex,{style:{width:e.progressPercentage+"%"}})]})}Zb("div")`
|
|
186
186
|
position: relative;
|
|
187
187
|
transform: scale(0.6);
|
|
188
188
|
opacity: 0.4;
|
|
189
189
|
min-width: 20px;
|
|
190
|
-
animation: ${
|
|
190
|
+
animation: ${hx} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
191
191
|
forwards;
|
|
192
|
-
`,
|
|
192
|
+
`,Zb("div")`
|
|
193
193
|
display: flex;
|
|
194
194
|
align-items: center;
|
|
195
195
|
background: #fff;
|
|
@@ -201,16 +201,16 @@ to {
|
|
|
201
201
|
pointer-events: auto;
|
|
202
202
|
padding: 8px 10px;
|
|
203
203
|
border-radius: 8px;
|
|
204
|
-
`,
|
|
204
|
+
`,Zb("div")`
|
|
205
205
|
display: flex;
|
|
206
206
|
justify-content: center;
|
|
207
207
|
margin: 4px 10px;
|
|
208
208
|
color: inherit;
|
|
209
209
|
flex: 1 1 auto;
|
|
210
210
|
white-space: pre-line;
|
|
211
|
-
`,function(e,t,n,r){
|
|
211
|
+
`,function(e,t,n,r){Vb.p=void 0,Db=e,Mb=void 0,Fb=void 0}(e.createElement),Xb`
|
|
212
212
|
z-index: 9999;
|
|
213
213
|
> * {
|
|
214
214
|
pointer-events: auto;
|
|
215
215
|
}
|
|
216
|
-
`;const ux=Uu.div.withConfig({displayName:"BaloonStyled",componentId:"sc-1yjr5hd-0"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],ad,nd.spacing5,nd.radiusLarge,nd.white,nd.elevationStatic,nd.elevation2),dx=Uu.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-1yjr5hd-1"})(["flex:none;margin-right:",";"],nd.spacing5),px=Uu.div.withConfig({displayName:"Text",componentId:"sc-1yjr5hd-2"})(["flex:1;align-self:center;"]),fx=Uu.h2.withConfig({displayName:"Title",componentId:"sc-1yjr5hd-3"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),hx=Uu.p.withConfig({displayName:"Description",componentId:"sc-1yjr5hd-4"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],nd.spacing2,nd.colorTextMuted,nd.fontSize75),mx=Uu.div.withConfig({displayName:"Action",componentId:"sc-1yjr5hd-5"})(["flex:none;"]),gx=Uu.div.withConfig({displayName:"Progress",componentId:"sc-1yjr5hd-6"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],nd.brandPrimary500),vx=8e3,yx=288e5;function bx({isPersistent:e,button:t,id:n=Bh(),variant:r,thumbnail:o,...i}){return tx((e=>Gu.exports.jsx(cx,{thumbnail:xx(o,r),...i,button:t?f(t,{variant:"clean",onClick(){var n,r;null==(r=(n=t.props).onClick)||r.call(n),tx.dismiss(e.id)}}):Gu.exports.jsx(Zd,{variant:"clean",onClick:()=>{tx.dismiss(e.id)},icon:Gu.exports.jsx(ip,{}),title:"Close"})})),{id:n,duration:e?yx:vx})}function xx(e,t){return e||(t?{loading:Gu.exports.jsx(bg,{shape:"circle",backgroundColor:"transparent",icon:Gu.exports.jsx($d,{})}),success:Gu.exports.jsx(bg,{shape:"circle",backgroundColor:"green500",icon:Gu.exports.jsx(sp,{}),iconColor:"white"}),error:Gu.exports.jsx(bg,{shape:"circle",backgroundColor:"red500",icon:Gu.exports.jsx(ip,{}),iconColor:"white"})}[t]:void 0)}bx.dismiss=function(e){tx.dismiss(e)},bx.remove=function(e){tx.remove(e)};const wx=n({value:"",onChange:()=>{}});function Ex({children:e,isDisabled:t,onChange:n,value:r,label:i,icon:a,"aria-labelledby":s,"aria-label":l,...c}){const u=o((()=>({value:r,onChange:n})),[n,r]);return Gu.exports.jsx(wx.Provider,{value:u,children:Gu.exports.jsx(Mv,{trigger:({isOpen:e,...n})=>Gu.exports.jsx(Zd,{icon:a,isPressed:e,rightIcon:Gu.exports.jsx(Mv.Arrow,{}),isFullWidth:!0,isDisabled:t,role:"combobox","aria-label":l,"aria-labelledby":s,...n,"aria-haspopup":"listbox",children:Gu.exports.jsx(Mv.SelectButtonText,{children:i})}),position:"bottom",role:"listbox",...c,children:e})})}function Cx(e,t,n){return 100*(n-e)/(t-e)+"%"}Ex.Item=function({icon:e,children:t,isDisabled:n,value:r}){const o=i(wx);return Gu.exports.jsx(Mv.Item,{isChecked:r===o.value,role:"option",icon:e,isDisabled:n,onClick:()=>{o.onChange(r)},children:t})},Ex.SectionTitle=Mv.SectionTitle,Ex.Divider=Mv.Divider,Ex.SearchInput=Mv.SearchInput,Ex.Text=Mv.Text;const kx=Uu.div.withConfig({displayName:"Container",componentId:"sc-1b6hxsw-0"})(["position:relative;display:flex;gap:",";align-items:center;"],nd.spacing3),Sx=Uu.div.withConfig({displayName:"SliderContainer",componentId:"sc-1b6hxsw-1"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),_x=Uu.div.withConfig({displayName:"IconStyled",componentId:"sc-1b6hxsw-2"})(["display:grid;color:",";"],(e=>e.$isDisabled?nd.colorTextDisabled:nd.colorTextMuted)),Ix=Ru(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;border-inline:none;appearance:none;"]),Tx=Ru(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:",";transform:translateY(-50%);-webkit-appearance:none;appearance:none;"],(e=>e.$isDisabled?"none":"auto"));function Ox(e){const t=Cx(e.min,e.max,e.value);let n,r;Array.isArray(e.$values)?(n=Cx(e.min,e.max,e.$values[0]),r=Cx(e.min,e.max,e.$values[1])):e.$isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t);const o=e.$isDisabled?nd.gray400:nd.brandPrimary500;return`linear-gradient(\n\t\t90deg,\n\t\t${nd.gray100a} ${n},\n\t\t${o} ${n},\n\t\t${o} ${r},\n\t\t${nd.gray100a} ${r}\n\t)`}const jx=Uu.input.attrs((e=>({style:{"--track-background":Ox(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-1b6hxsw-3"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;cursor:",";pointer-events:",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.$isDisabled?"default":"pointer"),(e=>e.$isRange||e.$isDisabled?"none":"auto"),Tx,Tx,Ix,Ix),zx=Uu.div.withConfig({displayName:"ThumbContainer",componentId:"sc-1b6hxsw-4"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;"," ",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.$isInactive?0:1),(e=>e.$isInactive&&Ru(["",":hover &{--thumb-opacity:",";}"],Sx,e.$isDisabled?0:1)),jx,nd.gray100a,nd.elevationStatic,nd.elevation1,jx,nd.gray100a,nd.gray100a,jx,nd.gray100a,nd.elevationStatic,nd.elevation2),Bx=Uu.div.withConfig({displayName:"ThumbCircle",componentId:"sc-1b6hxsw-5"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";"," transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],nd.radiusCircle,(e=>e.$isDisabled?nd.gray400:nd.gray10),(e=>!e.$isDisabled&&Ru(["box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");"],nd.elevationStatic,nd.elevation1,nd.gray75a)),nd.radiusCircle,(e=>e.$isDisabled?nd.gray400:nd.gray25)),Px=Uu.div.withConfig({displayName:"InputContainer",componentId:"sc-1b6hxsw-6"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.$min.toString().length,e.$max.toString().length)+"px"}));function Ax({min:e,max:t,value:n,isTooltipOpen:r,inputPosition:o,isInactive:i,isDisabled:a}){const s=Cx(e,t,n);return Gu.exports.jsxs(zx,{$isInactive:i,$isDisabled:a,style:Nx(s),"data-testid":"ds-slider-thumb",children:[Gu.exports.jsx(Bx,{$isDisabled:a}),"none"===o&&Gu.exports.jsx(dh,{isOpen:r,content:n,position:"top-center",children:e=>Gu.exports.jsx("div",{...e})})]})}function Nx(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function Dx({min:e,max:t,value:n,onChange:o,inputPosition:i,isFromCenter:a=!1,isInactive:s,isTooltipHidden:l,isDisabled:c}){const[u,d]=r(!1),p=Array.isArray(n);return Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(jx,{min:e,max:t,value:p?n[0]:n,$values:n,type:"range",onChange:o,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},$isFromCenter:a,$isRange:p,$isDisabled:c,role:"slider",disabled:c}),Gu.exports.jsx(Ax,{isTooltipOpen:u&&!l,min:e,max:t,value:p?n[0]:n,inputPosition:i,isInactive:s,isDisabled:c}),p&&Gu.exports.jsxs(Gu.exports.Fragment,{children:[Gu.exports.jsx(jx,{min:e,max:t,value:n[1],type:"range",onChange:o,name:"max-input",$values:n,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},$isRange:p,$isDisabled:c,disabled:c}),Gu.exports.jsx(Ax,{isTooltipOpen:u&&!l,min:e,max:t,value:n[1],inputPosition:i,isInactive:s,isDisabled:c})]})]})}function Mx({min:e,max:t,inputPosition:n="none",value:o,onChange:i,iconLeft:a,iconRight:s,isFromCenter:l=!1,isInactive:c=!1,isTooltipHidden:u=!1,isDisabled:d=!1,...p}){const[f,h]=r(""),[m,g]=r("none");function v(n){g("none");const r=Number(n.target.value);r<e||t<r||(Array.isArray(o)?("min-input"===n.target.name&&r<o[1]&&i([r,o[1]]),"max-input"===n.target.name&&o[0]<r&&i([o[0],r])):i(r))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(o)?o[0]:o),x=String(Array.isArray(o)?o[1]:o);return Gu.exports.jsxs(kx,{...p,children:[("left"===n||"both"===n)&&Gu.exports.jsx(Px,{$min:e,$max:t,"data-testid":"ds-slider-input-left",children:Gu.exports.jsx(ag,{onChange:h,value:"left"===m?f:b,type:"number",onFocus:()=>{h(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y,isDisabled:d})}),a&&Gu.exports.jsx(_x,{$isDisabled:d,children:a}),Gu.exports.jsx(Sx,{children:Gu.exports.jsx(Dx,{min:e,max:t,value:o,inputPosition:n,onChange:v,isFromCenter:l,isInactive:c,isTooltipHidden:u,isDisabled:d})}),s&&Gu.exports.jsx(_x,{$isDisabled:d,children:s}),("right"===n||"both"===n)&&Gu.exports.jsx(Px,{$min:e,$max:t,"data-testid":"ds-slider-input-right",children:Gu.exports.jsx(ag,{onChange:h,value:"right"===m?f:x,type:"number",onFocus:()=>{h(x),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y,isDisabled:d})})]})}var Fx=new Map,Lx=new WeakMap,Rx=0,Hx=void 0;function $x(e,t,n={},r=Hx){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){let t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(Lx.has(n)||(Rx+=1,Lx.set(n,Rx.toString())),Lx.get(n)):"0"):e[t]}`;var n})).toString()}(e),n=Fx.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Fx.set(t,n)}return n}(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),Fx.delete(o))}}function Ux({threshold:t,delay:n,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[p,f]=e.useState(null),h=e.useRef(),[m,g]=e.useState({inView:!!l,entry:void 0});h.current=u,e.useEffect((()=>{if(s||!p)return;let e;return e=$x(p,((t,n)=>{g({inView:t,entry:n}),h.current&&h.current(t,n),n.isIntersecting&&a&&e&&(e(),e=void 0)}),{root:i,rootMargin:o,threshold:t,trackVisibility:r,delay:n},c),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,p,i,o,a,s,r,c,n]);const v=null==(d=m.entry)?void 0:d.target,y=e.useRef();p||!v||a||s||y.current===v||(y.current=v,g({inView:!!l,entry:void 0}));const b=[f,m.inView,m.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}const Vx={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function Wx(e){Object.keys(Vx).forEach((t=>{e.style.setProperty(t,Vx[t],"important")}))}let qx=null;const Gx=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];const Yx=u((({id:e,isDisabled:t=!1,isReadOnly:n=!1,isInvalid:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:s,value:c,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,minRows:h=2,maxRows:m=8,maxLength:g,autoFocus:v=!1,...y},b)=>{const x=l(null);return function(e,t,n){const r=l(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);d((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Gx.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){qx||(qx=document.createElement("textarea"),qx.setAttribute("tabindex","-1"),qx.setAttribute("aria-hidden","true"),Wx(qx)),null===qx.parentNode&&document.body.appendChild(qx);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!qx)return;const t=e;qx.style[t]=a[t]})),Wx(qx),qx.value=t;let s=function(e,t){const n=qx.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);qx.value="x";const l=qx.scrollHeight-o;let c=l*n;"border-box"===a.boxSizing&&(c=c+o+i),s=Math.max(c,s);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),s=Math.min(u,s),s}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(x,h,m),Gu.exports.jsx(Xx,{value:c,onChange:function(e){if(i){const t=e.currentTarget.value;i(t)}},id:e,disabled:t,readOnly:n,$isInvalid:r,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,onBlur:o,onFocus:a,placeholder:s,autoComplete:"off",autoCorrect:"off",autoFocus:v,ref:tg(b,x),maxLength:g,...y})})),Xx=Uu.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11tsgxs-0"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],nd.spacing3,nd.spacing5,nd.gray100,nd.radiusBase,nd.white,nd.colorText,nd.brandFontStackBase,If.paragraphM,nd.gray400,nd.gray200,nd.elevation1,nd.gray300,nd.gray100a,nd.gray100,nd.gray25,nd.gray600,(e=>e.$isInvalid&&Ru(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],nd.red500,nd.red600,nd.red500)));function Kx(e){var t;return null!==(t=Zx[e])&&void 0!==t?t:e}var Zx={};function Jx(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){Zx=e}))}),[e])}function Qx(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function ew(e){return t.createElement(t.Fragment,null,t.createElement(Qx,null),t.createElement(ow,null,Kx("Oops! Something went wrong")),t.createElement(iw,null,Kx("Please try again or get in contact with our customer support.")),t.createElement(aw,null,t.createElement(Zd,{variant:"secondary",title:Kx("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?Kx("Report sent"):Kx("Send report...")),t.createElement(Zd,{variant:"primary",title:Kx("Try again"),onClick:e.onClickRetry},Kx("Try again"))))}var tw,nw,rw,ow=Uu.h1(tw||(tw=Vs(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),nd.spacing8,nd.fontSize400),iw=Uu.span(nw||(nw=Vs(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),nd.spacing5,nd.colorTextDisabled),aw=Uu.div(rw||(rw=Vs(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),nd.spacing7,nd.spacing3);function sw(e){var n;return t.createElement(Ob,{title:Kx("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Zd,{variant:"primary",title:Kx("Send report"),onClick:e.onDone},Kx("Send report")),actionSecondary:t.createElement(Zd,{variant:"secondary",title:Kx("Cancel"),onClick:e.onCancel},Kx("Cancel")),container:e.container},t.createElement(dw,null,Kx("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(pw,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(fw,null,Kx("We will treat this report as confidential and anonymous.")))}var lw,cw,uw,dw=Uu.div(lw||(lw=Vs(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),nd.lineHeightText),pw=Uu.div(cw||(cw=Vs(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),nd.spacing5,nd.gray25,nd.radiusMedium,nd.gray200,nd.lineHeightText,nd.spacing5,nd.spacing4),fw=Uu.span(uw||(uw=Vs(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),nd.colorTextDisabled,nd.lineHeightBase,nd.fontSize75);function hw(e){var n=e.error,o=e.onRetry,i=e.sentryClient,s=nl(),l=r(!1),c=l[0],u=l[1],d=r(!1),p=d[0],f=d[1];return a((function(){Qs.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(ew,{isReportSent:p,onClickSend:function(){u(!0)},onClickRetry:o}),t.createElement(sw,{isOpen:c,error:n,container:s,onDone:function(){null==i||i.captureException(n),u(!1),f(!0)},onCancel:function(){u(!1)}}))}function mw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"}}]})(e)}function gw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function vw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 00-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)}function yw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14L12 4.81M6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2 6.35 7.56z"}}]})(e)}function bw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}}]})(e)}function xw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function ww(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function Ew(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function Cw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z"}},{tag:"path",attr:{d:"M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}}]})(e)}function kw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Sw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function _w(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(e)}function Iw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function Tw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function Ow(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}}]})(e)}function jw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0014 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}}]})(e)}function zw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function Bw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}}]})(e)}function Pw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function Aw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"6",cy:"18",r:"2",fill:"none"}},{tag:"circle",attr:{cx:"12",cy:"12",r:".5",fill:"none"}},{tag:"circle",attr:{cx:"6",cy:"6",r:"2",fill:"none"}},{tag:"path",attr:{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}}]})(e)}function Nw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function Dw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function Mw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"}}]})(e)}function Fw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 000 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"}}]})(e)}function Lw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}}]})(e)}function Rw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function Hw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function $w(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function Uw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function Vw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function Ww(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}}]})(e)}function qw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function Gw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function Yw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.71 5.63l-2.34-2.34a.996.996 0 00-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"}}]})(e)}function Xw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function Kw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}function Zw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0111 4.07zm7.32.19A9.949 9.949 0 0013 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1a7.941 7.941 0 011.62 3.9zM5.69 7.1L4.26 5.68A9.949 9.949 0 002.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM4.07 13H2.05c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 014.07 13zM15 12c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm3.31 4.9l1.43 1.43a9.981 9.981 0 002.21-5.32h-2.02a7.945 7.945 0 01-1.62 3.89zM13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62zm-7.32-.19A9.981 9.981 0 0011 21.95v-2.02a7.941 7.941 0 01-3.9-1.62l-1.42 1.43z"}}]})(e)}function Jw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z"}}]})(e)}function Qw(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}}]})(e)}function eE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function tE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3.2"}},{tag:"path",attr:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})(e)}function nE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function rE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function oE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function iE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function aE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)}function sE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function lE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function cE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}function uE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}function dE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function pE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function fE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function hE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function mE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function gE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}}]})(e)}function vE(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}function yE(){var e=Ms(Gs()[0].page),n=e[0],r=e[1],o={ASC:Kx("Ascending"),DESC:Kx("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(Zd,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(xE,{$isAscending:"ASC"===n.direction})})}var bE,xE=Uu((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(bE||(bE=Vs(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),nd.spacing6,nd.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function wE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var EE=300;function CE(e){var n,o=l(null),i=r(0)[1];!function(e,t){var n=nl();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,o],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=nl(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),x=b.width-(null!=h?h:0)-(null!=g?g:0),w=b.height-(null!=y?y:0)-(null!=v?v:0);h&&x<EE&&(h=p+u.width-EE);var E={left:h,right:g,top:v,bottom:y,maxWidth:x,maxHeight:w,minWidth:EE,overflowY:"scroll"},C=wE("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:o,style:E},e.children),s)}function kE(e){var n=e.buttonKind,i=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=Rs(e,["buttonKind","direction","isSmall","fadeIn"]),p=o((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=r(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(_E,{$fadeIn:Boolean(u)},t.createElement(Zd,{variant:i,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(sE,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(CE,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var SE,_E=Uu.div(SE||(SE=Vs(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function IE(e){var n=e.selected,r=void 0!==n&&n,o=Rs(e,["selected"]),i=wE("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(lE,{className:"w-6 h-6 ml-3 fade-in"})))}function TE(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=Ms(Gs()[0].page),i=o[0],a=o[1],s={CREATED_AT:Kx("Date added"),NAME:Kx("Name"),PUBLISHED_AT:Kx("Date published"),UPDATED_AT:Kx("Date modified")};return t.createElement(jE,null,t.createElement(kE,{className:"py-2",title:s[i.field],alt:Kx("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(IE,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var OE,jE=Uu.div(OE||(OE=Vs(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function zE(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var BE=" ";function PE(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:wE("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function AE(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Mh,null,t.createElement(Mh.Frame,null),t.createElement(Mh.AdditionalInfo,null,t.createElement(PE,{width:70+NE(100,r),className:"h-4"})),e.title))})))}function NE(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}var DE=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),ME=DE.Provider,FE=function(){return i(DE)},LE=function(){return FE().assetFilter},RE=function(){return FE().selectionMode},HE=function(){return FE().hideSwitch};function $E(e){return{tag:"ok",value:e}}function UE(e){return{tag:"error",error:e}}function VE(e){return"ok"===e.tag}function WE(e){return"error"===e.tag}function qE(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var GE="transformBaseURL",YE="transformBaseUrl",XE={year:"numeric",month:"long",day:"2-digit"};function KE(e){var t;if(e[GE]){var n=e,r=GE,o=n[r],i=Rs(n,["symbol"==typeof r?r:r+""]);return Ls(Ls({},i),((t={})[YE]=Ls({},o),t))}return e}var ZE=new Map;function JE(e,t,n){return Hs(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return $s(this,(function(d){switch(d.label){case 0:if(!n)return[2,UE("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?qE(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),ZE.has(i))return[2,$E(ZE.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("4.2.2")},s=void 0===r?a:Ls(Ls({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:s,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return c=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?Ls(Ls({},e),{searchAssets:Ls(Ls({},e.searchAssets),{assets:Ls(Ls({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=KE(e.files);return Ls(Ls({},e),{files:Ls({},t)})}return e}))})})}):e}(c.data),[3,5];case 4:return[2,UE(d.sent())];case 5:return void 0!==c.errors?[2,UE(c.errors.map((function(e){return e.message})).join(","))]:(ZE.set(i,u),ZE.size>50&&ZE.delete(ZE.keys().next().value),[2,$E(u)])}}))}))}function QE(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function eC(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var tC="42b1eefa-d754-4802-b9c4-bf80d6ab6052",nC="v6/authentication/oauth2/",rC="".concat("https://d8ejoa1fys2rk.cloudfront.net"),oC=rC+"/5.0.5/modules/compactview/loginCompleted.html",iC="".concat("https://apiv2.webdamdb.com","/"),aC="oauth2/",sC=["offline","asset:read","collection:read","meta.assetbank:read"];function lC(e,t,n){return Hs(this,void 0,void 0,(function(){var r,o,i,a;return $s(this,(function(s){switch(s.label){case 0:r=cC(n)+"token",o=new URLSearchParams({client_id:tC,code_verifier:t,code:e,redirect_uri:oC,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,UE("Failed to fetch access token: ".concat(i.status))];case 3:return[2,$E({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,UE(s.sent().toString())];case 5:return[2]}}))}))}function cC(e){return"webdam"===uC()?iC+aC:qE(e)+nC}function uC(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function dC(e){return Hs(this,void 0,void 0,(function(){var t,n,r,o,i,a;return $s(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,UE("Error opening login window")]:(o.document.head.innerHTML=pC,o.document.body.innerHTML=fC,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===rC&&e($E(t))}))})),new Promise((function(e){setTimeout((function(){return e(UE("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(UE("Login window closed")))}),1e3)})))])]);case 1:return WE(i=s.sent())?[2,i]:[2,$E({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var pC='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',fC='<div class="cv-spinner"></div>';var hC='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}';function mC(e){var n=nl();return t.createElement(Su,{target:n},t.createElement(th,{zIndexBase:1e6},e.children))}function gC(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o,s=t.useRef(null),l=r(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+hC,vC(null!=e?e:document.head,t),n&&vC(document.head,bC),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(tl,{value:c},t.createElement(mC,null,m(t.createElement(xC,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function vC(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var yC,bC="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),xC=Uu.div(yC||(yC=Vs(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),wC=n("parent");function EC(e){var n=e.children,r=e.isContainerMode,o=void 0!==r&&r;return"parent"===i(wC)?t.createElement(wC.Provider,{value:"child"},t.createElement(gC,{isContainerMode:o},n)):t.createElement(t.Fragment,null,n)}var CC=n(null),kC=function(){return i(CC)};function SC(e){var n=e.children,i=e.isOpen,s=void 0===i||i,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=r(null),p=d[0],f=d[1],h=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(CC.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(EC,null,t.createElement(TC,{className:"z-a-lot"},t.createElement(OC,{style:l,"data-testid":"modal"},n))),p))):null}var _C,IC,TC=Uu.div(_C||(_C=Vs(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),nd.spacing5,nd.gray100a),OC=Uu.div(IC||(IC=Vs(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),nd.radiusBase);function jC(e){var n=kC();return t.createElement(AC,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(NC,null,t.createElement(Zd,{variant:"clean",onClick:n.onClose,title:Kx("Close"),icon:t.createElement(dE,null)})),t.createElement(DC,null,e.children))}var zC,BC,PC,AC=Uu.div(zC||(zC=Vs(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),nd.gray10),NC=Uu.div(BC||(BC=Vs(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),nd.spacing4,nd.spacing5),DC=Uu.div(PC||(PC=Vs(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),nd.fontSize300);function MC(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},Kx("Connect your brand portal")))}function FC(e){var n=wE("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function LC(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement($C,null,t.createElement(Ny,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:Kx("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&Kx("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(UC,{role:"alert","aria-live":"polite"},t.createElement(FC,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var RC,HC,$C=Uu.div(RC||(RC=Vs(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),nd.spacing4),UC=Uu.div(HC||(HC=Vs(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function VC(e){return t.createElement(Zd,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},Kx("Connect"))}function WC(e){return t.createElement(jC,null,t.createElement(MC,null),t.createElement(LC,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(VC,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var qC=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(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}Fs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(hw,{error:this.state.error,sentryClient:this.props.sentryClient,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function GC(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(FC,null)," ")}var YC=n(null);function XC(e){var n,o,i,s,c,u,d,p,f;Jx(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=r(void 0),o=n[0],i=n[1],s=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=r(x()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(x(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function x(e,t){return void 0===e&&(e=o),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){o&&o()||!c||!p||(g("refreshing"),function(e,t){return Hs(this,void 0,void 0,(function(){var n,r,o,i;return $s(this,(function(a){switch(a.label){case 0:n=cC(t)+"token",r=new URLSearchParams({client_id:tC,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,UE("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,$E({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,UE(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){VE(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(Qs.error(e.error),b())})))}),[o,c,p]),[{getAccessToken:o,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return Hs(this,void 0,void 0,(function(){var t,n,r;return $s(this,(function(o){switch(o.label){case 0:t=qE(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:m.accountDomain),b=y[0],x=y[1],w=y[2],E=r(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&Qs.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return Hs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return $s(this,(function(p){switch(p.label){case 0:t=eC(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,QE(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,UE(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=eC(),i=function(e,t,n){var r={client_id:tC,code_challenge:e,code_challenge_method:"S256",redirect_uri:oC,response_type:"code",scope:sC.join(" "),domain:"",state:t},o="auth?";"webdam"===uC()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return cC(n)+o+i}(r,o,e),[4,dC(i)];case 5:return WE(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,UE("Error logging in")]:[4,lC(a.value.code,t,e)];case 6:return WE(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,$E({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(VE(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else Qs.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=Ls(Ls({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(YC.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(EC,{isContainerMode:!0},t.createElement(WC,{domainValue:b,domainStatus:w,onChangeDomain:x,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(GC,null)}}var KC=function(e){return t.createElement(qC,null,t.createElement(XC,Ls({},e)))},ZC=function(){var e;return"authenticated"===(null===(e=i(YC))||void 0===e?void 0:e.status)||!1},JC=function(){return i(YC)},QC=function(e){var t=e.filters,n=e.predefinedFilters;return e.showToolbar?(null==t?void 0:t.length)?Array.from(new Set(Us(Us([],n||[],!0),t,!0))):n:(null==t?void 0:t.length)?t:n},ek=function(e){if(e)return e.map((function(e){return e.id}))},tk="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",nk="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(tk,"\n");function rk(e){var t,n,o,i,s,l=this,c=JC(),u=r({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,h=function(t){return Hs(l,void 0,void 0,(function(){var n,r;return $s(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=ok(e,null!=t?t:null),[4,JE(nk,n,c)];case 1:return r=o.sent(),f||(WE(r)?p({tag:"Failure",value:r.error}):m(r,t)),[2]}}))}))},m=function(e,t){ik(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=ik(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:Ls(Ls({},e.value.searchAssets.assets),{nodes:Us(Us([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return h(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return h()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return h(null===(e=ik(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(s=ik(d))||void 0===s?void 0:s.pageInfo.hasNextPage)}}var ok=function(e,t){var n,r,o=e.filter,i=e.predefinedFilter,a=e.collection,s=e.orderBy,l=e.allAssetTypes,c=e.searchTerm,u=e.language,d=QC({filters:null==o?void 0:o.assetTypes,predefinedFilters:null==i?void 0:i.assetType_in,showToolbar:null==i?void 0:i.showToolbar}),p=QC({filters:ek(null==o?void 0:o.metaproperties),predefinedFilters:null==i?void 0:i.metapropertyOptionId_in,showToolbar:null==i?void 0:i.showToolbar}),f=QC({filters:null==o?void 0:o.tags,predefinedFilters:null==i?void 0:i.tagNames_in,showToolbar:null==i?void 0:i.showToolbar});return{orderBy:s,filter:{collectionId:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:null==i?void 0:i.collectionId,assetType_in:null!=d?d:l,metapropertyOptionId_in:p,searchTerm:null!==(r=null!=c?c:null==i?void 0:i.searchTerm)&&void 0!==r?r:null,tagNames_in:f,isLimitedUse:null==o?void 0:o.isLimited},after:t,language:u}},ik=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets};function ak(e,t,n){return Hs(this,void 0,void 0,(function(){var r;return $s(this,(function(o){switch(o.label){case 0:return[4,JE("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(tk),{ids:e,language:n},t)];case 1:return WE(r=o.sent())?[2,r]:[2,$E(r.value.nodes)]}}))}))}var sk="object"==typeof g&&g&&g.Object===Object&&g,lk=sk,ck="object"==typeof self&&self&&self.Object===Object&&self,uk=lk||ck||Function("return this")(),dk=uk.Symbol,pk=dk,fk=Object.prototype,hk=fk.hasOwnProperty,mk=fk.toString,gk=pk?pk.toStringTag:void 0,vk=Object.prototype.toString,yk=function(e){var t=hk.call(e,gk),n=e[gk];try{e[gk]=void 0;var r=!0}catch(e){}var o=mk.call(e);return r&&(t?e[gk]=n:delete e[gk]),o},bk=dk?dk.toStringTag:void 0,xk=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bk&&bk in Object(e)?yk(e):function(e){return vk.call(e)}(e)},wk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ek=xk,Ck=wk,kk=uk["__core-js_shared__"],Sk=function(){var e=/[^.]+$/.exec(kk&&kk.keys&&kk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_k=Function.prototype.toString,Ik=function(e){if(null!=e){try{return _k.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tk=function(e){if(!Ck(e))return!1;var t=Ek(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ok=function(e){return!!Sk&&Sk in e},jk=wk,zk=Ik,Bk=/^\[object .+?Constructor\]$/,Pk=Function.prototype,Ak=Object.prototype,Nk=Pk.toString,Dk=Ak.hasOwnProperty,Mk=RegExp("^"+Nk.call(Dk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fk=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!jk(e)||Ok(e))&&(Tk(e)?Mk:Bk).test(zk(e))}(n)?n:void 0},Lk=Fk(uk,"DataView"),Rk=Fk(uk,"Map"),Hk=Fk(uk,"Promise"),$k=Fk(uk,"Set"),Uk=Fk(uk,"WeakMap"),Vk=xk,Wk=Ik,qk="[object Map]",Gk="[object Promise]",Yk="[object Set]",Xk="[object WeakMap]",Kk="[object DataView]",Zk=Wk(Lk),Jk=Wk(Rk),Qk=Wk(Hk),eS=Wk($k),tS=Wk(Uk),nS=Vk;(Lk&&nS(new Lk(new ArrayBuffer(1)))!=Kk||Rk&&nS(new Rk)!=qk||Hk&&nS(Hk.resolve())!=Gk||$k&&nS(new $k)!=Yk||Uk&&nS(new Uk)!=Xk)&&(nS=function(e){var t=Vk(e),n="[object Object]"==t?e.constructor:void 0,r=n?Wk(n):"";if(r)switch(r){case Zk:return Kk;case Jk:return qk;case Qk:return Gk;case eS:return Yk;case tS:return Xk}return t});var rS,oS=xk,iS=function(e){return null!=e&&"object"==typeof e},aS=Object.prototype;aS.hasOwnProperty,aS.propertyIsEnumerable,rS=function(){return arguments}(),iS(rS)&&oS(rS);var sS={exports:{}},lS=function(){return!1};!function(e,t){var n=uk,r=lS,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(sS,sS.exports);var cS={exports:{}};function uS(e,t,n){var r=this,i=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var x=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!h.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(o(r))return a(r);if(h.current){var l=t-(r-i.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},x=function(){var a=Date.now(),f=o(a);if(u.current=[].slice.call(arguments),d.current=r,i.current=a,f){if(!c.current&&h.current)return s.current=i.current,n(l,t),g?e(i.current):p.current;if(y)return n(l,t),e(i.current)}return c.current||n(l,t),p.current};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=i.current=d.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?a(Date.now()):p.current},x}),[g,y,t,b,v,m]);return x}!function(e,t){var n=sk,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(cS,cS.exports);var dS={},pS={"text/plain":"Text","text/html":"Url",default:"Text"};function fS(e){return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fS(e)}Object.defineProperty(dS,"__esModule",{value:!0}),dS.CopyToClipboard=void 0;var hS=vS(t),mS=vS((function(e,t){var n,r,o,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=pS[t.format]||pS.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l})),gS=["text","onCopy","options","children"];function vS(e){return e&&e.__esModule?e:{default:e}}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach((function(t){kS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wS(e,t){return wS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wS(e,t)}function ES(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CS(e){return CS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},CS(e)}function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}(a,hS.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=CS(r);if(o){var n=CS(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===fS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ES(e)}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kS(ES(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,s=hS.default.Children.only(i),l=(0,mS.default)(r,a);o&&o(r,l),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gS),r=hS.default.Children.only(t);return hS.default.cloneElement(r,bS(bS({},n),{},{onClick:this.onClick}))}}])&&xS(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();dS.CopyToClipboard=SS,kS(SS,"defaultProps",{onCopy:void 0,options:void 0});var _S=dS.CopyToClipboard;_S.CopyToClipboard=_S;var IS=_S;let TS=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function OS(e,t){return function(){return e.apply(t,arguments)}}const{toString:jS}=Object.prototype,{getPrototypeOf:zS}=Object,BS=(e=>t=>{const n=jS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),PS=e=>(e=e.toLowerCase(),t=>BS(t)===e),AS=e=>t=>typeof t===e,{isArray:NS}=Array,DS=AS("undefined"),MS=PS("ArrayBuffer"),FS=AS("string"),LS=AS("function"),RS=AS("number"),HS=e=>null!==e&&"object"==typeof e,$S=e=>{if("object"!==BS(e))return!1;const t=zS(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},US=PS("Date"),VS=PS("File"),WS=PS("Blob"),qS=PS("FileList"),GS=PS("URLSearchParams");function YS(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),NS(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function XS(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const KS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ZS=e=>!DS(e)&&e!==KS,JS=(QS="undefined"!=typeof Uint8Array&&zS(Uint8Array),e=>QS&&e instanceof QS);var QS;const e_=PS("HTMLFormElement"),t_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),n_=PS("RegExp"),r_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};YS(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},o_="abcdefghijklmnopqrstuvwxyz",i_="0123456789",a_={DIGIT:i_,ALPHA:o_,ALPHA_DIGIT:o_+o_.toUpperCase()+i_},s_=PS("AsyncFunction");var l_={isArray:NS,isArrayBuffer:MS,isBuffer:function(e){return null!==e&&!DS(e)&&null!==e.constructor&&!DS(e.constructor)&&LS(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LS(e.append)&&("formdata"===(t=BS(e))||"object"===t&&LS(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&MS(e.buffer),t},isString:FS,isNumber:RS,isBoolean:e=>!0===e||!1===e,isObject:HS,isPlainObject:$S,isUndefined:DS,isDate:US,isFile:VS,isBlob:WS,isRegExp:n_,isFunction:LS,isStream:e=>HS(e)&&LS(e.pipe),isURLSearchParams:GS,isTypedArray:JS,isFileList:qS,forEach:YS,merge:function e(){const{caseless:t}=ZS(this)&&this||{},n={},r=(r,o)=>{const i=t&&XS(n,o)||o;$S(n[i])&&$S(r)?n[i]=e(n[i],r):$S(r)?n[i]=e({},r):NS(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&YS(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(YS(t,((t,r)=>{n&&LS(t)?e[r]=OS(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&zS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:BS,kindOfTest:PS,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(NS(e))return e;let t=e.length;if(!RS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:e_,hasOwnProperty:t_,hasOwnProp:t_,reduceDescriptors:r_,freezeMethods:e=>{r_(e,((t,n)=>{if(LS(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];LS(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return NS(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:XS,global:KS,isContextDefined:ZS,ALPHABET:a_,generateString:(e=16,t=a_.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&LS(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(HS(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=NS(e)?[]:{};return YS(e,((e,t)=>{const i=n(e,r+1);!DS(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:s_,isThenable:e=>e&&(HS(e)||LS(e))&&LS(e.then)&&LS(e.catch)};function c_(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}l_.inherits(c_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u_=c_.prototype,d_={};function p_(e){return l_.isPlainObject(e)||l_.isArray(e)}function f_(e){return l_.endsWith(e,"[]")?e.slice(0,-2):e}function h_(e,t,n){return e?e.concat(t).map((function(e,t){return e=f_(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{d_[e]={value:e}})),Object.defineProperties(c_,d_),Object.defineProperty(u_,"isAxiosError",{value:!0}),c_.from=(e,t,n,r,o,i)=>{const a=Object.create(u_);return l_.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),c_.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const m_=l_.toFlatObject(l_,{},null,(function(e){return/^is[A-Z]/.test(e)}));function g_(e,t,n){if(!l_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=l_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!l_.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&l_.isSpecCompliantForm(t);if(!l_.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(l_.isDate(e))return e.toISOString();if(!s&&l_.isBlob(e))throw new c_("Blob is not supported. Use a Buffer instead.");return l_.isArrayBuffer(e)||l_.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(l_.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(l_.isArray(e)&&function(e){return l_.isArray(e)&&!e.some(p_)}(e)||(l_.isFileList(e)||l_.endsWith(n,"[]"))&&(s=l_.toArray(e)))return n=f_(n),s.forEach((function(e,r){!l_.isUndefined(e)&&null!==e&&t.append(!0===a?h_([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!p_(e)||(t.append(h_(o,n,i),l(e)),!1)}const u=[],d=Object.assign(m_,{defaultVisitor:c,convertValue:l,isVisitable:p_});if(!l_.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!l_.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),l_.forEach(n,(function(n,i){!0===(!(l_.isUndefined(n)||null===n)&&o.call(t,n,l_.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function v_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function y_(e,t){this._pairs=[],e&&g_(e,this,t)}const b_=y_.prototype;function x_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w_(e,t,n){if(!t)return e;const r=n&&n.encode||x_,o=n&&n.serialize;let i;if(i=o?o(t,n):l_.isURLSearchParams(t)?t.toString():new y_(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}b_.append=function(e,t){this._pairs.push([e,t])},b_.toString=function(e){const t=e?function(t){return e.call(this,t,v_)}:v_;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var E_=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l_.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},C_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},k_={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:y_,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const S_="undefined"!=typeof window&&"undefined"!=typeof document,__=(I_="undefined"!=typeof navigator&&navigator.product,S_&&["ReactNative","NativeScript","NS"].indexOf(I_)<0);var I_;const T_="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var O_={...Object.freeze({__proto__:null,hasBrowserEnv:S_,hasStandardBrowserWebWorkerEnv:T_,hasStandardBrowserEnv:__}),...k_};function j_(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&l_.isArray(r)?r.length:i,s?(l_.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&l_.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&l_.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(l_.isFormData(e)&&l_.isFunction(e.entries)){const n={};return l_.forEachEntry(e,((e,r)=>{t(function(e){return l_.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const z_={transitional:C_,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=l_.isObject(e);if(o&&l_.isHTMLForm(e)&&(e=new FormData(e)),l_.isFormData(e))return r?JSON.stringify(j_(e)):e;if(l_.isArrayBuffer(e)||l_.isBuffer(e)||l_.isStream(e)||l_.isFile(e)||l_.isBlob(e))return e;if(l_.isArrayBufferView(e))return e.buffer;if(l_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return g_(e,new O_.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return O_.isNode&&l_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=l_.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return g_(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(l_.isString(e))try{return(0,JSON.parse)(e),l_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||z_.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&l_.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw c_.from(e,c_.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O_.classes.FormData,Blob:O_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l_.forEach(["delete","get","head","post","put","patch"],(e=>{z_.headers[e]={}}));var B_=z_;const P_=l_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),A_=Symbol("internals");function N_(e){return e&&String(e).trim().toLowerCase()}function D_(e){return!1===e||null==e?e:l_.isArray(e)?e.map(D_):String(e)}function M_(e,t,n,r,o){return l_.isFunction(r)?r.call(this,t,n):(o&&(t=n),l_.isString(t)?l_.isString(r)?-1!==t.indexOf(r):l_.isRegExp(r)?r.test(t):void 0:void 0)}class F_{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=N_(t);if(!o)throw new Error("header name must be a non-empty string");const i=l_.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=D_(e))}const i=(e,t)=>l_.forEach(e,((e,n)=>o(e,n,t)));return l_.isPlainObject(e)||e instanceof this.constructor?i(e,t):l_.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&P_[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=N_(e)){const n=l_.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(l_.isFunction(t))return t.call(this,e,n);if(l_.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=N_(e)){const n=l_.findKey(this,e);return!(!n||void 0===this[n]||t&&!M_(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=N_(e)){const o=l_.findKey(n,e);!o||t&&!M_(0,n[o],o,t)||(delete n[o],r=!0)}}return l_.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!M_(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return l_.forEach(this,((r,o)=>{const i=l_.findKey(n,o);if(i)return t[i]=D_(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=D_(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l_.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&l_.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[A_]=this[A_]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=N_(e);t[r]||(function(e,t){const n=l_.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return l_.isArray(e)?e.forEach(r):r(e),this}}F_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l_.reduceDescriptors(F_.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),l_.freezeMethods(F_);var L_=F_;function R_(e,t){const n=this||B_,r=t||n,o=L_.from(r.headers);let i=r.data;return l_.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function H_(e){return!(!e||!e.__CANCEL__)}function $_(e,t,n){c_.call(this,null==e?"canceled":e,c_.ERR_CANCELED,t,n),this.name="CanceledError"}l_.inherits($_,c_,{__CANCEL__:!0});var U_=O_.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];l_.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),l_.isString(r)&&a.push("path="+r),l_.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V_(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var W_=O_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=l_.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function q_(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var G_="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=L_.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(l_.isFormData(r))if(O_.hasStandardBrowserEnv||O_.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=V_(e.baseURL,e.url);function p(){if(!u)return;const r=L_.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new c_("Request failed with status code "+n.status,[c_.ERR_BAD_REQUEST,c_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),w_(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new c_("Request aborted",c_.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new c_("Network Error",c_.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||C_;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new c_(t,r.clarifyTimeoutError?c_.ETIMEDOUT:c_.ECONNABORTED,e,u)),u=null},O_.hasStandardBrowserEnv&&(l&&l_.isFunction(l)&&(l=l(e)),l||!1!==l&&W_(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&U_.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&l_.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),l_.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",q_(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",q_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new $_(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===O_.protocols.indexOf(f)?n(new c_("Unsupported protocol "+f+":",c_.ERR_BAD_REQUEST,e)):u.send(r||null)}))};const Y_={http:null,xhr:G_};l_.forEach(Y_,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const X_=e=>`- ${e}`,K_=e=>l_.isFunction(e)||null===e||!1===e;var Z_=e=>{e=l_.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!K_(n)&&(r=Y_[(t=String(n)).toLowerCase()],void 0===r))throw new c_(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new c_("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(X_).join("\n"):" "+X_(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function J_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $_(null,e)}function Q_(e){return J_(e),e.headers=L_.from(e.headers),e.data=R_.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Z_(e.adapter||B_.adapter)(e).then((function(t){return J_(e),t.data=R_.call(e,e.transformResponse,t),t.headers=L_.from(t.headers),t}),(function(t){return H_(t)||(J_(e),t&&t.response&&(t.response.data=R_.call(e,e.transformResponse,t.response),t.response.headers=L_.from(t.response.headers))),Promise.reject(t)}))}const eI=e=>e instanceof L_?e.toJSON():e;function tI(e,t){t=t||{};const n={};function r(e,t,n){return l_.isPlainObject(e)&&l_.isPlainObject(t)?l_.merge.call({caseless:n},e,t):l_.isPlainObject(t)?l_.merge({},t):l_.isArray(t)?t.slice():t}function o(e,t,n){return l_.isUndefined(t)?l_.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!l_.isUndefined(t))return r(void 0,t)}function a(e,t){return l_.isUndefined(t)?l_.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eI(e),eI(t),!0)};return l_.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);l_.isUndefined(a)&&i!==s||(n[r]=a)})),n}const nI={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nI[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rI={};nI.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new c_(r(o," has been removed"+(t?" in "+t:"")),c_.ERR_DEPRECATED);return t&&!rI[o]&&(rI[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var oI={assertOptions:function(e,t,n){if("object"!=typeof e)throw new c_("options must be an object",c_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new c_("option "+i+" must be "+n,c_.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new c_("Unknown option "+i,c_.ERR_BAD_OPTION)}},validators:nI};const iI=oI.validators;class aI{constructor(e){this.defaults=e,this.interceptors={request:new E_,response:new E_}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tI(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&oI.assertOptions(n,{silentJSONParsing:iI.transitional(iI.boolean),forcedJSONParsing:iI.transitional(iI.boolean),clarifyTimeoutError:iI.transitional(iI.boolean)},!1),null!=r&&(l_.isFunction(r)?t.paramsSerializer={serialize:r}:oI.assertOptions(r,{encode:iI.function,serialize:iI.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&l_.merge(o.common,o[t.method]);o&&l_.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=L_.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Q_.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Q_.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return w_(V_((e=tI(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}l_.forEach(["delete","get","head","options"],(function(e){aI.prototype[e]=function(t,n){return this.request(tI(n||{},{method:e,url:t,data:(n||{}).data}))}})),l_.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(tI(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}aI.prototype[e]=t(),aI.prototype[e+"Form"]=t(!0)}));var sI=aI;class lI{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new $_(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new lI((function(t){e=t}));return{token:t,cancel:e}}}var cI=lI;const uI={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uI).forEach((([e,t])=>{uI[t]=e}));var dI=uI;const pI=function e(t){const n=new sI(t),r=OS(sI.prototype.request,n);return l_.extend(r,sI.prototype,n,{allOwnKeys:!0}),l_.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tI(t,n))},r}(B_);pI.Axios=sI,pI.CanceledError=$_,pI.CancelToken=cI,pI.isCancel=H_,pI.VERSION="1.6.7",pI.toFormData=g_,pI.AxiosError=c_,pI.Cancel=pI.CanceledError,pI.all=function(e){return Promise.all(e)},pI.spread=function(e){return function(t){return e.apply(null,t)}},pI.isAxiosError=function(e){return l_.isObject(e)&&!0===e.isAxiosError},pI.mergeConfig=tI,pI.AxiosHeaders=L_,pI.formToJSON=e=>j_(l_.isHTMLForm(e)?new FormData(e):e),pI.getAdapter=Z_,pI.HttpStatusCode=dI,pI.default=pI;var fI=pI;function hI(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22L8 18H16L12 22ZM12 2L16 6H8L12 2ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14ZM2 12L6 8V16L2 12ZM22 12L18 16V8L22 12Z"}}]})(e)}function mI(e,t,n){var r=this,i=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var x=o((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!h.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(o(r))return a(r);if(h.current){var l=t-(r-i.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},x=function(){var a=Date.now(),f=o(a);if(u.current=[].slice.call(arguments),d.current=r,i.current=a,f){if(!c.current&&h.current)return s.current=i.current,n(l,t),g?e(i.current):p.current;if(y)return n(l,t),e(i.current)}return c.current||n(l,t),p.current};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=i.current=d.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?a(Date.now()):p.current},x}),[g,y,t,b,v,m]);return x}function gI(e,t){return e===t}function vI(e){return"function"==typeof e?function(){return e}:e}function yI(e,t,n){var o,i,a=n&&n.equalityFn||gI,s=(o=r(vI(e)),i=o[1],[o[0],c((function(e){return i(vI(e))}),[])]),u=s[0],d=s[1],p=mI(c((function(e){return d(e)}),[d]),t,n),f=l(e);return a(f.current,e)||(p(e),f.current=e),[u,p]}var bI=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),xI=bI.Provider,wI=function(){return i(bI)},EI=function(){return wI().assetFilter},CI=function(){return wI().selectionMode},kI=function(e,t){return kI=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])},kI(e,t)},SI=function(){return SI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SI.apply(this,arguments)};function _I(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function II(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function TI(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function OI(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function jI(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zI=n(null);function BI(e){var n=e.children,i=e.hideLimitedUse,s=void 0!==i&&i,l=r([]),c=l[0],u=l[1],d=r([]),p=d[0],f=d[1],h=r([]),m=h[0],g=h[1],v=r(),y=v[0],b=v[1],x=r({}),w=x[0],E=x[1];function C(e){u((function(t){return PI(t,e)}))}function k(e){u((function(t){return AI(t,e)}))}function S(e){f((function(t){return PI(t,e.id)})),E((function(t){var n;return SI(SI({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return AI(t,e.id)})),E((function(t){var n=t,r=e.id;return _I(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return PI(t,e)}))}function T(e){g((function(t){return AI(t,e)}))}function O(){u([]),f([]),E({}),g([])}a((function(){b(!s&&void 0)}),[s]);var j=p.map((function(e){return w[e]})),z=o((function(){return{assetTypes:c,metaproperties:j,tags:m,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:T,clear:O}}),[c,j,m,y]);return t.createElement(zI.Provider,{value:z},n)}function PI(e,t){return e.includes(t)?e:OI(OI([],e,!0),[t],!1)}function AI(e,t){return e.filter((function(e){return e!==t}))}function NI(){var e=i(zI);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function DI(e){var t;return null!==(t=MI[e])&&void 0!==t?t:e}var MI={};function FI(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){MI=e}))}),[e])}var LI=n(null),RI={assets:"",isLoading:!1};function HI(e){var n=r(RI),i=n[0],s=n[1];function l(e,t){var n=""!==t;s((function(r){var o;return SI(SI({},r),((o={})[e]=t,o.isLoading=n,o))}))}function c(e){s((function(t){return SI(SI({},t),{isLoading:e})}))}function u(){s(RI)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]);var d=o((function(){return SI(SI({},i),{setSearch:l,setIsLoading:c,clear:u})}),[i]);return t.createElement(LI.Provider,{value:d},e.children)}function $I(){var e=i(LI);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function UI(e){var t=$I();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function VI(e){return{tag:"ok",value:e}}function WI(e){return{tag:"error",error:e}}function qI(e){return"ok"===e.tag}function GI(e){return"error"===e.tag}function YI(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var XI="transformBaseURL",KI="transformBaseUrl";function ZI(e){var t;if(e[XI]){var n=e,r=XI,o=n[r],i=_I(n,["symbol"==typeof r?r:r+""]);return SI(SI({},i),((t={})[KI]=SI({},o),t))}return e}var JI=new Map;function QI(e,t,n){return II(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return TI(this,(function(d){switch(d.label){case 0:if(!n)return[2,WI("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?YI(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),JI.has(i))return[2,VI(JI.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("2.0.3")},s=void 0===r?a:SI(SI({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:s,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return c=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?SI(SI({},e),{searchAssets:SI(SI({},e.searchAssets),{assets:SI(SI({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=ZI(e.files);return SI(SI({},e),{files:SI({},t)})}return e}))})})}):e}(c.data),[3,5];case 4:return[2,WI(d.sent())];case 5:return void 0!==c.errors?[2,WI(c.errors.map((function(e){return e.message})).join(","))]:(JI.set(i,u),JI.size>50&&JI.delete(JI.keys().next().value),[2,VI(u)])}}))}))}function eT(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function tT(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){var t="0".concat(e.toString(16));return t.substring(t.length-2)})).join("")}var nT="42b1eefa-d754-4802-b9c4-bf80d6ab6052",rT="v6/authentication/oauth2/",oT="".concat("https://d8ejoa1fys2rk.cloudfront.net"),iT=oT+"/5.0.5/modules/compactview/loginCompleted.html",aT="".concat("https://apiv2.webdamdb.com","/"),sT="oauth2/",lT=["offline","asset:read","collection:read","meta.assetbank:read"];function cT(e,t,n){return II(this,void 0,void 0,(function(){var r,o,i,a;return TI(this,(function(s){switch(s.label){case 0:r=uT(n)+"token",o=new URLSearchParams({client_id:nT,code_verifier:t,code:e,redirect_uri:iT,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,WI("Failed to fetch access token: ".concat(i.status))];case 3:return[2,VI({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,WI(s.sent().toString())];case 5:return[2]}}))}))}function uT(e){return"webdam"===dT()?aT+sT:YI(e)+rT}function dT(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function pT(e){return II(this,void 0,void 0,(function(){var t,n,r,o,i,a;return TI(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,WI("Error opening login window")]:(o.document.head.innerHTML=fT,o.document.body.innerHTML=hT,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===oT&&e(VI(t))}))})),new Promise((function(e){setTimeout((function(){return e(WI("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(WI("Login window closed")))}),1e3)})))])]);case 1:return GI(i=s.sent())?[2,i]:[2,VI({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var fT='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',hT='<div class="cv-spinner"></div>',mT={error:console.error},gT=n(null),vT=gT.Provider,yT=function(){var e=i(gT);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},bT='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,object,svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.rounded{border-radius:5px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',xT=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,wT=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=function(e){return xT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}(e)),t[e]}}();function ET(e){var n=yT();return t.createElement(Su,{shouldForwardProp:wT,target:n},t.createElement(th,{zIndexBase:1e6},e.children))}function CT(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o,s=t.useRef(null),l=r(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+bT,kT(null!=e?e:document.head,t),n&&kT(document.head,_T),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(vT,{value:c},t.createElement(ET,null,m(t.createElement(IT,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function kT(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var ST,_T="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),IT=Uu.div(ST||(ST=jI(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),TT=n("parent");function OT(e){var n=e.children,r=e.isContainerMode,o=void 0!==r&&r;return"parent"===i(TT)?t.createElement(TT.Provider,{value:"child"},t.createElement(CT,{isContainerMode:o},n)):t.createElement(t.Fragment,null,n)}var jT=n(null),zT=function(){return i(jT)};function BT(e){var n=e.children,i=e.isOpen,s=void 0===i||i,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=r(null),p=d[0],f=d[1],h=o((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(jT.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(OT,null,t.createElement(NT,{className:"z-a-lot"},t.createElement(DT,{style:l,"data-testid":"modal"},n))),p))):null}var PT,AT,NT=Uu.div(PT||(PT=jI(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),nd.spacing5,nd.gray100a),DT=Uu.div(AT||(AT=jI(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),nd.radiusBase);function MT(e){var n=zT();return t.createElement(HT,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement($T,null,t.createElement(Zd,{variant:"clean",onClick:n.onClose,title:DI("Close"),icon:t.createElement(ip,null)})),t.createElement(UT,null,e.children))}var FT,LT,RT,HT=Uu.div(FT||(FT=jI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),nd.gray10),$T=Uu.div(LT||(LT=jI(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),nd.spacing4,nd.spacing5),UT=Uu.div(RT||(RT=jI(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),nd.fontSize300);function VT(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},DI("Connect your brand portal")))}function WT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function qT(e){var n=WT("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function GT(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(KT,null,t.createElement(Ny,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:DI("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&"Enter"===e.key&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&DI("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(ZT,{role:"alert","aria-live":"polite"},t.createElement(qT,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var YT,XT,KT=Uu.div(YT||(YT=jI(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),nd.spacing4),ZT=Uu.div(XT||(XT=jI(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function JT(e){return t.createElement(Zd,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},DI("Connect"))}function QT(e){return t.createElement(MT,null,t.createElement(VT,null),t.createElement(GT,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(JT,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}function eO(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function tO(e){return t.createElement(t.Fragment,null,t.createElement(eO,null),t.createElement(iO,null,DI("Oops! Something went wrong")),t.createElement(aO,null,DI("Please try again or get in contact with our customer support.")),t.createElement(sO,null,t.createElement(Zd,{variant:"secondary",title:DI("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?DI("Report sent"):DI("Send report...")),t.createElement(Zd,{variant:"primary",title:DI("Try again"),onClick:e.onClickRetry},DI("Try again"))))}var nO,rO,oO,iO=Uu.h1(nO||(nO=jI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),nd.spacing8,nd.fontSize400),aO=Uu.span(rO||(rO=jI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),nd.spacing5,nd.colorTextDisabled),sO=Uu.div(oO||(oO=jI(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),nd.spacing7,nd.spacing3);function lO(e){var n;return t.createElement(Ob,{title:DI("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Zd,{variant:"primary",title:DI("Send report"),onClick:e.onDone},DI("Send report")),actionSecondary:t.createElement(Zd,{variant:"secondary",title:DI("Cancel"),onClick:e.onCancel},DI("Cancel")),container:e.container},t.createElement(pO,null,DI("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(fO,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(hO,null,DI("We will treat this report as confidential and anonymous.")))}var cO,uO,dO,pO=Uu.div(cO||(cO=jI(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),nd.lineHeightText),fO=Uu.div(uO||(uO=jI(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),nd.spacing5,nd.gray25,nd.radiusMedium,nd.gray200,nd.lineHeightText,nd.spacing5,nd.spacing4),hO=Uu.span(dO||(dO=jI(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),nd.colorTextDisabled,nd.lineHeightBase,nd.fontSize75);function mO(e){var n=e.error,o=e.onRetry,i=yT(),s=r(!1),l=s[0],c=s[1],u=r(!1),d=u[0],p=u[1];return a((function(){mT.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(tO,{isReportSent:d,onClickSend:function(){c(!0)},onClickRetry:o}),t.createElement(lO,{isOpen:l,error:n,container:i,onDone:function(){c(!1),p(!0)},onCancel:function(){c(!1)}}))}var gO=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(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}kI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(mO,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function vO(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(qT,null)," ")}var yO=n(null);function bO(e){var n,o,i,s,c,u,d,p,f;FI(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=r(void 0),o=n[0],i=n[1],s=r(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=r(x()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(x(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function x(e,t){return void 0===e&&(e=o),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){o&&o()||!c||!p||(g("refreshing"),function(e,t){return II(this,void 0,void 0,(function(){var n,r,o,i;return TI(this,(function(a){switch(a.label){case 0:n=uT(t)+"token",r=new URLSearchParams({client_id:nT,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,WI("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,VI({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,WI(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){qI(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(mT.error(e.error),b())})))}),[o,c,p]),[{getAccessToken:o,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return II(this,void 0,void 0,(function(){var t,n,r;return TI(this,(function(o){switch(o.label){case 0:t=YI(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:m.accountDomain),b=y[0],x=y[1],w=y[2],E=r(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&mT.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return II(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return TI(this,(function(p){switch(p.label){case 0:t=tT(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,eT(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,WI(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=tT(),i=function(e,t,n){var r={client_id:nT,code_challenge:e,code_challenge_method:"S256",redirect_uri:iT,response_type:"code",scope:lT.join(" "),domain:"",state:t},o="auth?";"webdam"===dT()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return uT(n)+o+i}(r,o,e),[4,pT(i)];case 5:return GI(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,WI("Error logging in")]:[4,cT(a.value.code,t,e)];case 6:return GI(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,VI({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(qI(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else mT.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=SI(SI({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(yO.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(OT,{isContainerMode:!0},t.createElement(QT,{domainValue:b,domainStatus:w,onChangeDomain:x,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(vO,null)}}var xO=function(e){return t.createElement(gO,null,t.createElement(bO,SI({},e)))},wO=function(){var e;return"authenticated"===(null===(e=i(yO))||void 0===e?void 0:e.status)||!1},EO=function(){return i(yO)},CO="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";function kO(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:WT("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function SO(e){var t=r(void 0),n=t[0],o=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function _O(e){return t.createElement(TO,{$isVisible:e.isVisible},t.createElement(Zd,{icon:t.createElement(np,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var IO,TO=Uu.div(IO||(IO=jI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function OO(e){return t.createElement(zO,{$isVisible:e.isVisible},t.createElement(Zd,{icon:t.createElement(tp,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var jO,zO=Uu.div(jO||(jO=jI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function BO(e){var n=r(0),o=n[0],i=n[1],s=l(null),c=SO(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=o>0,m=p>5&&o!==p;return t.createElement("div",{className:WT("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(OO,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(_O,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}var PO,AO,NO,DO,MO=Uu.div(PO||(PO=jI(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),nd.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),FO=Uu.li(AO||(AO=jI(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),nd.spacing2,nd.spacing5,nd.gray25),LO=Uu.div(NO||(NO=jI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"])),nd.fontSize75,(function(e){return e.$isChecked?"inherit":nd.gray500})),RO=Uu.span(DO||(DO=jI(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),nd.spacing4);function HO(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(FO,null,t.createElement(MO,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(Vh,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(LO,{$isChecked:n},t.createElement(RO,{title:e.metapropertyOption.label},t.createElement(yh,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function $O(e){return t.createElement(WO,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(qO,null,e.metaproperty.options.map((function(n){return t.createElement(HO,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var UO,VO,WO=Uu.div(UO||(UO=jI(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),nd.spacing5),qO=Uu.ul(VO||(VO=jI(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"]))),GO=300;function YO(e){var n,o=l(null),i=r(0)[1];!function(e,t){var n=yT();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,o],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=yT(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),x=b.width-(null!=h?h:0)-(null!=g?g:0),w=b.height-(null!=y?y:0)-(null!=v?v:0);h&&x<GO&&(h=p+u.width-GO);var E={left:h,right:g,top:v,bottom:y,maxWidth:x,maxHeight:w,minWidth:GO},C=WT("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:o,style:E},e.children),s)}function XO(e){var n=e.buttonKind,i=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=_I(e,["buttonKind","direction","isSmall","fadeIn"]),p=o((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=r(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(ZO,{$fadeIn:Boolean(u)},t.createElement(Zd,{variant:i,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(ap,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(YO,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var KO,ZO=Uu.div(KO||(KO=jI(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function JO(e){return t.createElement(ej,null,e.smartfilter.metaproperties.map((function(n){return t.createElement($O,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var QO,ej=Uu.div(QO||(QO=jI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),nd.spacing4);function tj(e){var n,r,o=NI(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},OI([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(XO,{key:n.id,title:t.createElement(nj,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement($O,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(JO,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function nj(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:WT("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function rj(e){var n=NI(),r=n.tags.includes(e.tag.name);return t.createElement(ij,{key:e.tag.id,size:"s",onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item",$active:r},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}var oj,ij=Uu(Jh)(oj||(oj=jI(["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"],["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"])),(function(e){return e.$active?nd.gray50:"transparent"}),nd.spacing3,nd.spacing3);function aj(e){var n=OI([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(XO,{title:t.createElement(sj,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",DI("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(rj,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function sj(){return t.createElement(t.Fragment,null,t.createElement(yp,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},DI("Tags")))}function lj(e){return DI({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function cj(e){switch(e){case"AUDIO":return xp;case"DOCUMENT":return dp;case"IMAGE":return op;case"VIDEO":return bp;case"ARCHIVE":return Qd}}function uj(e){var n=NI(),r=n.assetTypes.includes(e.type),o=cj(e.type);return t.createElement(FO,{"data-testid":"advanced-options"},t.createElement(MO,{$isChecked:r,$isLoading:e.isLoading},t.createElement(Vh,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(lj(e.type),"-filter")},t.createElement(LO,{$isChecked:r},t.createElement(o,null),t.createElement(pj,null,lj(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var dj,pj=Uu.div(dj||(dj=jI(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),nd.spacing3);function fj(e){var n=wI().assetTypes,r=n.filter((function(t){return mj(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(XO,{title:t.createElement(hj,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},DI("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(uj,{key:n,type:n,count:mj(e.count,n),isLoading:e.isLoading})}))))}))}function hj(){return t.createElement(t.Fragment,null,t.createElement(Jd,{className:"mr-2 inline w-6 h-6"}),DI("Advanced"))}function mj(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function gj(){var e=NI(),n=UI("assets").value,o=wI(),i=o.assetTypes,s=o.language;FI(s);var l=function(e){var t=this,n=EO(),o=r({tag:"Loading",value:null}),i=o[0],s=o[1],l=!1;return a((function(){return II(t,void 0,void 0,(function(){var t,r,o,i,a,c,u;return TI(this,(function(d){switch(d.label){case 0:return s((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=e.searchTerm,o=e.allAssetTypes,i=e.language,a={filter:{assetType_in:null!==(u=(t=e.filter).assetTypes)&&void 0!==u?u:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},[4,QI(CO,a,n)];case 1:return c=d.sent(),l||(GI(c)?s({tag:"Failure",value:c.error}):s({tag:"Loaded",value:c.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:s}),c=l.data,u=l.isLoading;if("Failure"===c.tag||!c.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(vj,null));var d=c.value.searchAssets,p=d.metapropertyFilters,f=d.tags,h=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(BO,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(tj,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(aj,{tags:f.nodes,isLoading:u}),t.createElement(fj,{isLoading:u,count:h.assetType})))}function vj(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var yj=n(null),bj={field:"CREATED_AT",direction:"DESC"};function xj(e){var n=r(bj),i=n[0],a=n[1];function s(e){a(e)}function l(){a(bj)}var c=o((function(){return{assets:i,setOrdering:s,reset:l}}),[i]);return t.createElement(yj.Provider,{value:c},e.children)}function wj(e){var t=function(){var e=i(yj);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(e){return t.setOrdering(e)}]}var Ej="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",Cj="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Ej,"\n"),kj=function(e,t){var n,r,o,i,a=e.filter,s=e.predefinedFilter,l=e.orderBy,c=e.allAssetTypes,u=e.searchTerm,d=e.language,p=(null===(n=null==a?void 0:a.assetTypes)||void 0===n?void 0:n.length)?a.assetTypes:null==s?void 0:s.assetType_in;return{orderBy:l,filter:{assetType_in:null!=p?p:c,metapropertyOptionId_in:null!==(r=_j(null==a?void 0:a.metaproperties))&&void 0!==r?r:null==s?void 0:s.metapropertyOptionId_in,searchTerm:null!==(o=null!=u?u:null==s?void 0:s.searchTerm)&&void 0!==o?o:null,tagNames_in:null!==(i=null==a?void 0:a.tags)&&void 0!==i?i:null==s?void 0:s.tagNames_in,isLimitedUse:null==a?void 0:a.isLimited},after:t,language:d}},Sj=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},_j=function(e){return e?e.map((function(e){return e.id})):null};function Ij(e,t,n){return II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,QI("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Ej),{ids:e,language:n},t)];case 1:return GI(r=o.sent())?[2,r]:[2,VI(r.value.nodes)]}}))}))}var Tj=n(null);function Oj(e){var n=r([]),i=n[0],s=n[1],l=r(),c=l[0],u=l[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],s=wI(),l=s.selectionMode,c=s.language,u=EO(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,II(t,void 0,void 0,(function(){var e,t,n;return TI(this,(function(o){switch(o.label){case 0:return r.length?[4,Ij(r,u,c)]:[3,2];case 1:e=o.sent(),d||GI(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(c),p=CI();function f(){s([])}function h(e){s((function(t){var n=e.filter((function(e){return!jj(t,e)}));return OI(OI([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function m(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!jj(t,e)})),r=e.filter((function(e){return jj(t,e)}));return OI(OI([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]);var g=o((function(){return{selection:i,preselectedAssetIds:c,clear:f,selectAssets:h,toggleAssets:m}}),[i]);return t.createElement(Tj.Provider,{value:g},e.children)}function jj(e,t){return e.some((function(e){return e.value.id===t.id}))}function zj(){var e=i(Tj);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Bj(){var e=UI("assets"),n=e.value,o=e.isLoading,i=mI(e.setSearch,500),s=r(n),l=s[0],c=s[1];a((function(){c(n)}),[n]),a((function(){return function(){i.flush()}}),[i]);var u=DI("Search for assets");return t.createElement(Aj,null,t.createElement(ag,{value:l,placeholder:u,"aria-label":u,onChange:function(e){return c(t=e),void i(t);var t},"data-testid":"search-input",icon:t.createElement(gp,null),iconRight:o?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(qT,{className:"relative right-0"})):void 0,hasClearButton:!o&&!!n}))}var Pj,Aj=Uu.div(Pj||(Pj=jI(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function Nj(){var e=wO(),n=zT(),r=EO(),o=EI();return e||n||void 0===o?t.createElement(Rj,null,t.createElement(Lj,null),t.createElement(Bj,null),t.createElement(Hj,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(Zd,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(up,null)},DI("Log out")),n&&t.createElement(Zd,{variant:"clean",onClick:function(){return n.onClose()},title:DI("Close"),icon:t.createElement(ip,null)}))):null}var Dj,Mj,Fj,Lj=Uu.div(Dj||(Dj=jI(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"]))),Rj=Uu.nav(Mj||(Mj=jI(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),nd.gray10,nd.spacing5,nd.spacing4),Hj=Uu.div(Fj||(Fj=jI(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function $j(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function Uj(e){return t.createElement(Kj,null,t.createElement(Zj,null,t.createElement($j,null),t.createElement(Jj,null)),t.createElement(Qj,null,DI("No results found")),t.createElement(ez,null,DI("Try adjusting the filter to find assets.")),t.createElement(tz,null,t.createElement(Zd,{variant:"primary",title:DI("Reset filters"),onClick:e.onReset},DI("Reset filters"))))}var Vj,Wj,qj,Gj,Yj,Xj,Kj=Uu.div(Vj||(Vj=jI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),Zj=Uu.div(Wj||(Wj=jI(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),nd.gray25),Jj=Uu(gp)(qj||(qj=jI(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),nd.spacing2,nd.gray300),Qj=Uu.h1(Gj||(Gj=jI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),nd.spacing6,nd.fontSize400),ez=Uu.span(Yj||(Yj=jI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),nd.spacing5,nd.colorTextDisabled),tz=Uu.div(Xj||(Xj=jI(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),nd.spacing7);function nz(e){return t.createElement(oz,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var rz,oz=Uu(Jh)(rz||(rz=jI(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),nd.spacing3);function iz(){var e=NI(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(sz,null,t.createElement(Zd,{variant:"clean",isSmall:!0,onClick:e.clear},DI("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(BO,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=cj(n);return t.createElement(nz,{key:n,onClick:function(){return e.removeAssetType(n)},title:lj(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(nz,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(nz,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var az,sz=Uu.div(az||(az=jI(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"])));function lz(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var cz=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function uz(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return cz.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function dz(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}var pz,fz,hz,mz,gz=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},vz=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?Ey(new Date(n),"dd MMMM yyyy"):n,zIndex:o}}));return OI(OI([],n,!0),r,!0).sort(gz)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Mh.AdditionalInfo,null,t.createElement(yz,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(bz,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(xz,null,n,":"),t.createElement(wz,{title:r},o))})))):null},yz=Uu.dl(pz||(pz=jI(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),nd.fontSize75),bz=Uu.div(fz||(fz=jI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),xz=Uu.dt(hz||(hz=jI(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),wz=Uu.dd(mz||(mz=jI(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function Ez(e){var n=e.className,o=e.fadeIn,i=void 0===o||o,s=e.asset,l=e.isSelected,c=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=wI().hideExternalAccess,h=r(),m=h[0],g=h[1],v=r(),y=v[0],b=v[1],x=function(e){return[e.isArchived&&DI("archived"),e.isWatermarked&&DI("watermarked"),e.isLimitedUse&&DI("limited")].filter((function(e){return e})).join(", ")}(s),w=dz(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));g(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));b(t)}),[s.textMetaproperties]);var E=function(e){void 0!==u&&(e.stopPropagation(),u(s,e))};return t.createElement(_z,{id:s.id,$isOutlined:l||c,$fadeIn:i,className:WT("group",n),"data-drag-select-id":s.id},t.createElement(Mh,{selectButtonAriaLabel:DI(l?"Deselect":"Select"),onSelect:E,onClick:E,isSelected:l,"aria-selected":l,"data-testid":"asset-card",contextAction:!f&&t.createElement(Mh.ContextActionButton,{"aria-label":DI("Open in new tab"),onClick:function(){window.open(s.url,"_blank")}},t.createElement(mp,null))},t.createElement(Mh.Frame,{icon:x?t.createElement(Iz,{$limitWidth:!!w},t.createElement(rd,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(yh,null,x))):void 0,"data-testid":"asset-type",badge:w},t.createElement(Mh.Images,null,uz(s)&&t.createElement(Mh.Img,{src:uz(s),alt:s.name,contentResize:"fit"}))),p,t.createElement(Tz,{"data-testid":"asset-name"},s.name),t.createElement(vz,{metaproperties:m,textMetaproperties:y})))}var Cz,kz,Sz,_z=Uu.div(Cz||(Cz=jI(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"])),nd.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""})),Iz=Uu.div(kz||(kz=jI(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),Tz=Uu.p(Sz||(Sz=jI(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function Oz(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Mh,null,t.createElement(Mh.Frame,null),t.createElement(Mh.AdditionalInfo,null,t.createElement(kO,{width:70+(o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}var jz={x:null,y:null},zz="drag-select-container",Bz=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=r(jz),f=p[0],h=p[1],g=r(jz),v=g[0],y=g[1],b=yI(v,10,{leading:!0,maxWait:10})[0],x=r(),w=x[0],E=x[1],C=yT(),k=t.useMemo((function(){return Az(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=yI(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],T=_[1],O=Lz(I),j=l(f),z=l(v),B=l(null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y),P=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",A,!1),document.addEventListener("keyup",A,!1),function(){document.removeEventListener("keydown",A,!1),document.removeEventListener("keyup",A,!1)}}),[]);var A=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},B.current&&r!==w&&E(r)};a((function(){var e;return"function"==typeof u&&B.current?(A(P.current),u(null!=w?w:"select")):"function"!=typeof d||B.current||(e=setTimeout((function(){return d(null!=w?w:"select")}),10)),function(){return clearTimeout(e)}}),[B.current,w]);var N=function(e){j.current=e,h(e),M()},D=function(e){z.current=e,y(e),M()},M=function(){B.current=null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y},F=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&D({x:o,y:r})}),[]),L=c((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),N(jz),D(jz)}),[F,C]),R=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),N({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(Mz(C),e.addEventListener("mousedown",R)),function(){e&&(e.removeEventListener("mousedown",R),Fz(C))}}),[n,R,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=Dz(t);return t instanceof HTMLElement&&Nz(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);T(t)}),[S,C]),a((function(){if(O&&O!==I&&B.current){var e=I.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[I,O,i,s,B]);var H=C.querySelector("#".concat(zz));return B.current&&H?m(t.createElement("div",SI({},o,{style:o.style?SI(SI(SI({},Pz),o.style),k):SI(SI({},Pz),k),"data-testid":"drag-selection"})),H):null},Pz={position:"absolute",zIndex:100},Az=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},Nz=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},Dz=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},Mz=function(e){var t=document.createElement("div");t.id=zz,e.appendChild(t)},Fz=function(e){var t=e.querySelector("#".concat(zz));t&&t.remove()},Lz=function(e){var t=l();return a((function(){t.current=e})),t.current};function Rz(e){var n=Ux(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(qT,{className:WT(!o&&"hidden")})))}function Hz(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,x=void 0===b?[]:b,w=e.selectionMode,E=void 0===w?"MultiSelect":w,C=e.children,k=void 0===C?null:C,S=l(null),_=SO(S.current).dimensions,I=r([]),T=I[0],O=I[1],j=r("inactive"),z=j[0],B=j[1],P=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,_),A=P[0],N=P[1];function D(e){return("inverse"!==z||!x.includes(e.id)||!T.includes(e.id))&&(x.includes(e.id)||T.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:S,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(Oz,{rows:A,columns:N}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(Bz,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6}},onSelect:function(e){O((function(t){return OI(OI([],t,!0),e,!0)}))},onDeselect:function(e){O((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),T.length){var t=[];T.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),O([])}}}),t.createElement(Rz,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(Ez,{key:e.id,isSelected:D(e),isOutlined:D(e),asset:e,fadeIn:n>=A*N,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),s=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===x[x.length-1]}));-1===s&&(s=0),h(s<a?null===(i=o.value)||void 0===i?void 0:i.slice(s,a+1):o.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function $z(){var e=wj("assets"),n=e[0],r=e[1],o={ASC:DI("Ascending"),DESC:DI("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(Zd,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(Vz,{$isAscending:"ASC"===n.direction})})}var Uz,Vz=Uu((function({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Gu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Gu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6v2h18V6H3Zm0 12h6v-2H3v2Zm12-5H3v-2h12v2Z",clipRule:"evenodd"})})}))(Uz||(Uz=jI(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),nd.spacing6,nd.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function Wz(e){var n=e.selected,r=void 0!==n&&n,o=_I(e,["selected"]),i=WT("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(sp,{className:"w-6 h-6 ml-3 fade-in"})))}function qz(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=wj("assets"),i=o[0],a=o[1],s={CREATED_AT:DI("Date added"),NAME:DI("Name"),PUBLISHED_AT:DI("Date published"),UPDATED_AT:DI("Date modified")};return t.createElement(Yz,null,t.createElement(XO,{className:"py-2",title:s[i.field],alt:DI("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Wz,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Gz,Yz=Uu.div(Gz||(Gz=jI(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function Xz(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=$I().setIsLoading,h=wI(),m=zj().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=zj(),v=g.selectAssets,y=g.toggleAssets,b=$I().setSearch,x=NI();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(mO,{error:new Error(l.value),onRetry:p});var w=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(Hz,{assets:Kz(l),count:w,isLoading:c,loadMore:u,hasNextPage:d,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(Uj,{onReset:function(){x.clear(),b("assets","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==w&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:w},lz(w,DI("{} asset"),DI("{} assets"))),e.showActiveFilters&&t.createElement(iz,null),t.createElement(qz,null),t.createElement($z,null)))}function Kz(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function Zz(){var e=NI(),n=e.assetTypes,o=e.metaproperties,i=e.tags,s=e.isLimited,l=UI("assets").value,c=wj("assets")[0],u=wI(),d=u.assetFilter,p=u.assetTypes,f=u.language,h=function(e){var t,n,o,i,s,l=this,c=EO(),u=r({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,h=function(t){return II(l,void 0,void 0,(function(){var n,r;return TI(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=kj(e,null!=t?t:null),[4,QI(Cj,n,c)];case 1:return r=o.sent(),f||(GI(r)?p({tag:"Failure",value:r.error}):m(r,t)),[2]}}))}))},m=function(e,t){Sj(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=Sj(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:SI(SI({},e.value.searchAssets.assets),{nodes:OI(OI([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return h(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(o=e.filter)||void 0===o?void 0:o.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return h()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return h(null===(e=Sj(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(s=Sj(d))||void 0===s?void 0:s.pageInfo.hasNextPage)}}(void 0===d?{filter:{assetTypes:n,metaproperties:o,tags:i,isLimited:s},searchTerm:l,orderBy:c,allAssetTypes:p,language:f}:{predefinedFilter:d,orderBy:c,language:f});return t.createElement(Xz,{connection:h,showActiveFilters:void 0===d})}var Jz="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function Qz(e,t,n){return void 0===n&&(n=Jz),II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,QI("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return GI(r=o.sent())?[2,r]:[2,VI(r.value.node)]}}))}))}function eB(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var tB="Custom transformation";function nB(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),s=i[0],l=i[1],c=EO(),u=wI().assetFieldSelection;return a((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,Qz(e.id,t,n)];case 1:return qI(r=o.sent())&&r.value.files?[2,VI(ZI(r.value.files))]:[2,WI("Error retrieving asset files")]}}))}))}(n,c,u).then((function(e){if(GI(e))return mT.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[n.id,c,u]),t.createElement(aB,null,t.createElement(XO,{title:t.createElement(rB,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var r,i=n[0],a=n[1];return t.createElement(Wz,{key:i,className:"px-3 py-2",selected:s.key===i,onClick:function(){!function(e){l((function(t){return"Data"!==t.status?t:(setTimeout((function(){return o(t.files[e])})),SI(SI({},t),{key:e}))}))}(i),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===i?t.createElement(rp,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(a.url))&&void 0!==r?r:t.createElement(hp,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},eB(i)),t.createElement("div",{className:"text-sm"},a.width&&a.height&&"".concat(a.width," x ").concat(a.height," px"),a.width&&a.height&&a.fileSize&&t.createElement("span",{className:"mx-2"},"•"),a.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(a.fileSize))))})))})))}function rB(e){var n=e.state;return"Loading"===n.status?t.createElement(kO,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(sB,null,n.key===tB&&t.createElement(cp,null),eB(n.key)):t.createElement(t.Fragment,null,"Error")}var oB,iB,aB=Uu.div(oB||(oB=jI(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),nd.spacing5),sB=Uu.div(iB||(iB=jI(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),nd.spacing4),lB="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function cB(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(sp,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,DI("Retry")):t.createElement(t.Fragment,null,lz(r,DI("Add asset"),DI("Add assets")))}function uB(e){var n,o=wI(),i=o.assetFieldSelection,s=o.onSuccess,c=o.selectionMode,u=zj().preselectedAssetIds,d=EO(),p=l(!0),f=r("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),h=f[0],m=f[1];function g(e,t){if(GI(e))m({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),s(n,{selectedFile:t})}catch(e){mT.error(e)}p.current&&(m({status:"Done"}),setTimeout((function(){p.current&&m({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(nB,{asset:e.selection[0].value,onChange:function(e){m(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Zd,{variant:"primary",isDisabled:"Loading"===h.status||"WaitingForFileSelection"===h.status,onClick:function(){var t,n="ReadyWithFile"===h.status?h.file:void 0;m({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?Qz(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n=lB),II(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h;return TI(this,(function(m){switch(m.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o={ids:e.map((function(e){return e.value.id}))},[4,QI(r,o,t)];case 1:if(GI(i=m.sent()))return[2,i];for(a=[],s=0,l=i.value.nodes;s<l.length;s++)"Collection"===(c=l[s]).__typename?a.push.apply(a,c.assets.nodes):a.push(c);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)h=f[p],u.has(h.id)||(d.push(h),u.add(h.id));return[2,VI(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===h.status},t.createElement(cB,{status:h.status,numberOfSelectedItems:e.selection.length})))}function dB(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(MO,{$isChecked:!0,$isFlex:!0},t.createElement(Vh,{"aria-label":DI("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(fB,{htmlFor:"deselect-".concat(n)},o)))}var pB,fB=Uu.label(pB||(pB=jI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),nd.fontSize100,nd.spacing3);function hB(e){var n=e.asset,r=zj();return t.createElement(dB,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(gB,null,t.createElement(bg,{variant:"preview",imageUrl:uz(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),dz(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},dz(n)))}var mB,gB=Uu.div(mB||(mB=jI(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),nd.spacing4);function vB(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return t.createElement(hB,{key:e.value.id,asset:e.value})})))}function yB(){var e=zj(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(wB,{"data-testid":"selection-footer"},t.createElement(EB,null,t.createElement(XO,{buttonKind:"secondary",direction:"Up",title:DI("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(vB,{selection:n})})),t.createElement(Zd,{variant:"clean",onClick:r},DI("Clear selection"))),t.createElement(uB,{selection:n}))}var bB,xB,wB=Uu.div(bB||(bB=jI(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),nd.layoutSpacing5,nd.spacing6),EB=Uu.span(xB||(xB=jI(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),nd.spacing2);function CB(e){var n=e.assetFieldSelection,r=e.assetTypes,o=void 0===r?["IMAGE","DOCUMENT","VIDEO","AUDIO","ARCHIVE"]:r,i=e.defaultSearchTerm,a=e.language,s=void 0===a?"en_US":a,l=e.mode,c=void 0===l?"SingleSelectFile":l,u=e.onSuccess,d=void 0===u?function(e,t){var n=t.selectedFile;return console.log(e,n)}:u,p=e.hideExternalAccess,f=e.selectedAssets,h=e.hideLimitedUse,m=e.isContainerMode,g=void 0!==m&&m;FI(s);var v={assetFieldSelection:n,assetTypes:o,language:s,onSuccess:d,selectionMode:c,hideExternalAccess:p};return t.createElement(gO,null,t.createElement(OT,{isContainerMode:g},t.createElement(xj,null,t.createElement(BI,{hideLimitedUse:h},t.createElement(HI,{defaultValue:i},t.createElement(xI,{value:v},t.createElement(Oj,{preselectedAssetIds:null!=f?f:[]},t.createElement("div",{className:"cv-root cv-container"},t.createElement(Nj,null),t.createElement(gj,null),t.createElement(Zz,null),t.createElement(yB,null)))))))))}var kB={};function SB(e,t){return function(){return e.apply(t,arguments)}}const{toString:_B}=Object.prototype,{getPrototypeOf:IB}=Object,TB=(e=>t=>{const n=_B.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),OB=e=>(e=e.toLowerCase(),t=>TB(t)===e),jB=e=>t=>typeof t===e,{isArray:zB}=Array,BB=jB("undefined"),PB=OB("ArrayBuffer"),AB=jB("string"),NB=jB("function"),DB=jB("number"),MB=e=>null!==e&&"object"==typeof e,FB=e=>{if("object"!==TB(e))return!1;const t=IB(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},LB=OB("Date"),RB=OB("File"),HB=OB("Blob"),$B=OB("FileList"),UB=OB("URLSearchParams");function VB(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),zB(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function WB(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qB="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:g,GB=e=>!BB(e)&&e!==qB,YB=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&IB(Uint8Array)),XB=OB("HTMLFormElement"),KB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZB=OB("RegExp"),JB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};VB(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},QB="abcdefghijklmnopqrstuvwxyz",eP="0123456789",tP={DIGIT:eP,ALPHA:QB,ALPHA_DIGIT:QB+QB.toUpperCase()+eP},nP=OB("AsyncFunction");var rP={isArray:zB,isArrayBuffer:PB,isBuffer:function(e){return null!==e&&!BB(e)&&null!==e.constructor&&!BB(e.constructor)&&NB(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||NB(e.append)&&("formdata"===(t=TB(e))||"object"===t&&NB(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&PB(e.buffer),t},isString:AB,isNumber:DB,isBoolean:e=>!0===e||!1===e,isObject:MB,isPlainObject:FB,isUndefined:BB,isDate:LB,isFile:RB,isBlob:HB,isRegExp:ZB,isFunction:NB,isStream:e=>MB(e)&&NB(e.pipe),isURLSearchParams:UB,isTypedArray:YB,isFileList:$B,forEach:VB,merge:function e(){const{caseless:t}=GB(this)&&this||{},n={},r=(r,o)=>{const i=t&&WB(n,o)||o;FB(n[i])&&FB(r)?n[i]=e(n[i],r):FB(r)?n[i]=e({},r):zB(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&VB(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(VB(t,((t,r)=>{n&&NB(t)?e[r]=SB(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&IB(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:TB,kindOfTest:OB,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(zB(e))return e;let t=e.length;if(!DB(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:XB,hasOwnProperty:KB,hasOwnProp:KB,reduceDescriptors:JB,freezeMethods:e=>{JB(e,((t,n)=>{if(NB(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];NB(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return zB(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:WB,global:qB,isContextDefined:GB,ALPHABET:tP,generateString:(e=16,t=tP.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&NB(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(MB(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=zB(e)?[]:{};return VB(e,((e,t)=>{const i=n(e,r+1);!BB(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:nP,isThenable:e=>e&&(MB(e)||NB(e))&&NB(e.then)&&NB(e.catch)};function oP(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}rP.inherits(oP,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rP.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const iP=oP.prototype,aP={};function sP(e){return rP.isPlainObject(e)||rP.isArray(e)}function lP(e){return rP.endsWith(e,"[]")?e.slice(0,-2):e}function cP(e,t,n){return e?e.concat(t).map((function(e,t){return e=lP(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{aP[e]={value:e}})),Object.defineProperties(oP,aP),Object.defineProperty(iP,"isAxiosError",{value:!0}),oP.from=(e,t,n,r,o,i)=>{const a=Object.create(iP);return rP.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oP.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const uP=rP.toFlatObject(rP,{},null,(function(e){return/^is[A-Z]/.test(e)}));function dP(e,t,n){if(!rP.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=rP.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!rP.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&rP.isSpecCompliantForm(t);if(!rP.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(rP.isDate(e))return e.toISOString();if(!s&&rP.isBlob(e))throw new oP("Blob is not supported. Use a Buffer instead.");return rP.isArrayBuffer(e)||rP.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(rP.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(rP.isArray(e)&&function(e){return rP.isArray(e)&&!e.some(sP)}(e)||(rP.isFileList(e)||rP.endsWith(n,"[]"))&&(s=rP.toArray(e)))return n=lP(n),s.forEach((function(e,r){!rP.isUndefined(e)&&null!==e&&t.append(!0===a?cP([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!sP(e)||(t.append(cP(o,n,i),l(e)),!1)}const u=[],d=Object.assign(uP,{defaultVisitor:c,convertValue:l,isVisitable:sP});if(!rP.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!rP.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),rP.forEach(n,(function(n,i){!0===(!(rP.isUndefined(n)||null===n)&&o.call(t,n,rP.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function pP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function fP(e,t){this._pairs=[],e&&dP(e,this,t)}const hP=fP.prototype;function mP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gP(e,t,n){if(!t)return e;const r=n&&n.encode||mP,o=n&&n.serialize;let i;if(i=o?o(t,n):rP.isURLSearchParams(t)?t.toString():new fP(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}hP.append=function(e,t){this._pairs.push([e,t])},hP.toString=function(e){const t=e?function(t){return e.call(this,t,pP)}:pP;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var vP=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rP.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},yP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bP={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fP,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const xP="undefined"!=typeof window&&"undefined"!=typeof document,wP=(e=>xP&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!=typeof navigator&&navigator.product),EP="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var CP={...Object.freeze({__proto__:null,hasBrowserEnv:xP,hasStandardBrowserWebWorkerEnv:EP,hasStandardBrowserEnv:wP}),...bP};function kP(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&rP.isArray(r)?r.length:i,s?(rP.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&rP.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&rP.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(rP.isFormData(e)&&rP.isFunction(e.entries)){const n={};return rP.forEachEntry(e,((e,r)=>{t(function(e){return rP.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const SP={transitional:yP,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=rP.isObject(e);if(o&&rP.isHTMLForm(e)&&(e=new FormData(e)),rP.isFormData(e))return r?JSON.stringify(kP(e)):e;if(rP.isArrayBuffer(e)||rP.isBuffer(e)||rP.isStream(e)||rP.isFile(e)||rP.isBlob(e))return e;if(rP.isArrayBufferView(e))return e.buffer;if(rP.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return dP(e,new CP.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return CP.isNode&&rP.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=rP.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return dP(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(rP.isString(e))try{return(0,JSON.parse)(e),rP.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||SP.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&rP.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw oP.from(e,oP.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:CP.classes.FormData,Blob:CP.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rP.forEach(["delete","get","head","post","put","patch"],(e=>{SP.headers[e]={}}));var _P=SP;const IP=rP.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TP=Symbol("internals");function OP(e){return e&&String(e).trim().toLowerCase()}function jP(e){return!1===e||null==e?e:rP.isArray(e)?e.map(jP):String(e)}function zP(e,t,n,r,o){return rP.isFunction(r)?r.call(this,t,n):(o&&(t=n),rP.isString(t)?rP.isString(r)?-1!==t.indexOf(r):rP.isRegExp(r)?r.test(t):void 0:void 0)}class BP{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=OP(t);if(!o)throw new Error("header name must be a non-empty string");const i=rP.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=jP(e))}const i=(e,t)=>rP.forEach(e,((e,n)=>o(e,n,t)));return rP.isPlainObject(e)||e instanceof this.constructor?i(e,t):rP.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&IP[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=OP(e)){const n=rP.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(rP.isFunction(t))return t.call(this,e,n);if(rP.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=OP(e)){const n=rP.findKey(this,e);return!(!n||void 0===this[n]||t&&!zP(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=OP(e)){const o=rP.findKey(n,e);!o||t&&!zP(0,n[o],o,t)||(delete n[o],r=!0)}}return rP.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zP(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return rP.forEach(this,((r,o)=>{const i=rP.findKey(n,o);if(i)return t[i]=jP(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=jP(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return rP.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&rP.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[TP]=this[TP]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=OP(e);t[r]||(function(e,t){const n=rP.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return rP.isArray(e)?e.forEach(r):r(e),this}}BP.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rP.reduceDescriptors(BP.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),rP.freezeMethods(BP);var PP=BP;function AP(e,t){const n=this||_P,r=t||n,o=PP.from(r.headers);let i=r.data;return rP.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function NP(e){return!(!e||!e.__CANCEL__)}function DP(e,t,n){oP.call(this,null==e?"canceled":e,oP.ERR_CANCELED,t,n),this.name="CanceledError"}rP.inherits(DP,oP,{__CANCEL__:!0});var MP=CP.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];rP.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),rP.isString(r)&&a.push("path="+r),rP.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function FP(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var LP=CP.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=rP.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function RP(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var HP="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=PP.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(rP.isFormData(r))if(CP.hasStandardBrowserEnv||CP.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=FP(e.baseURL,e.url);function p(){if(!u)return;const r=PP.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oP("Request failed with status code "+n.status,[oP.ERR_BAD_REQUEST,oP.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),gP(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new oP("Request aborted",oP.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new oP("Network Error",oP.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||yP;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new oP(t,r.clarifyTimeoutError?oP.ETIMEDOUT:oP.ECONNABORTED,e,u)),u=null},CP.hasStandardBrowserEnv&&(l&&rP.isFunction(l)&&(l=l(e)),l||!1!==l&&LP(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&MP.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&rP.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),rP.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",RP(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",RP(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new DP(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===CP.protocols.indexOf(f)?n(new oP("Unsupported protocol "+f+":",oP.ERR_BAD_REQUEST,e)):u.send(r||null)}))};const $P={http:null,xhr:HP};rP.forEach($P,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const UP=e=>`- ${e}`,VP=e=>rP.isFunction(e)||null===e||!1===e;var WP=e=>{e=rP.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!VP(n)&&(r=$P[(t=String(n)).toLowerCase()],void 0===r))throw new oP(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new oP("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(UP).join("\n"):" "+UP(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function qP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new DP(null,e)}function GP(e){return qP(e),e.headers=PP.from(e.headers),e.data=AP.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WP(e.adapter||_P.adapter)(e).then((function(t){return qP(e),t.data=AP.call(e,e.transformResponse,t),t.headers=PP.from(t.headers),t}),(function(t){return NP(t)||(qP(e),t&&t.response&&(t.response.data=AP.call(e,e.transformResponse,t.response),t.response.headers=PP.from(t.response.headers))),Promise.reject(t)}))}const YP=e=>e instanceof PP?e.toJSON():e;function XP(e,t){t=t||{};const n={};function r(e,t,n){return rP.isPlainObject(e)&&rP.isPlainObject(t)?rP.merge.call({caseless:n},e,t):rP.isPlainObject(t)?rP.merge({},t):rP.isArray(t)?t.slice():t}function o(e,t,n){return rP.isUndefined(t)?rP.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!rP.isUndefined(t))return r(void 0,t)}function a(e,t){return rP.isUndefined(t)?rP.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(YP(e),YP(t),!0)};return rP.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);rP.isUndefined(a)&&i!==s||(n[r]=a)})),n}const KP={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{KP[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ZP={};KP.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new oP(r(o," has been removed"+(t?" in "+t:"")),oP.ERR_DEPRECATED);return t&&!ZP[o]&&(ZP[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var JP={assertOptions:function(e,t,n){if("object"!=typeof e)throw new oP("options must be an object",oP.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new oP("option "+i+" must be "+n,oP.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new oP("Unknown option "+i,oP.ERR_BAD_OPTION)}},validators:KP};const QP=JP.validators;class eA{constructor(e){this.defaults=e,this.interceptors={request:new vP,response:new vP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=XP(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&JP.assertOptions(n,{silentJSONParsing:QP.transitional(QP.boolean),forcedJSONParsing:QP.transitional(QP.boolean),clarifyTimeoutError:QP.transitional(QP.boolean)},!1),null!=r&&(rP.isFunction(r)?t.paramsSerializer={serialize:r}:JP.assertOptions(r,{encode:QP.function,serialize:QP.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&rP.merge(o.common,o[t.method]);o&&rP.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=PP.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[GP.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=GP.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return gP(FP((e=XP(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}rP.forEach(["delete","get","head","options"],(function(e){eA.prototype[e]=function(t,n){return this.request(XP(n||{},{method:e,url:t,data:(n||{}).data}))}})),rP.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(XP(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}eA.prototype[e]=t(),eA.prototype[e+"Form"]=t(!0)}));var tA=eA;class nA{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new DP(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new nA((function(t){e=t}));return{token:t,cancel:e}}}var rA=nA;const oA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oA).forEach((([e,t])=>{oA[t]=e}));var iA=oA;const aA=function e(t){const n=new tA(t),r=SB(tA.prototype.request,n);return rP.extend(r,tA.prototype,n,{allOwnKeys:!0}),rP.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(XP(t,n))},r}(_P);aA.Axios=tA,aA.CanceledError=DP,aA.CancelToken=rA,aA.isCancel=NP,aA.VERSION="1.6.7",aA.toFormData=dP,aA.AxiosError=oP,aA.Cancel=aA.CanceledError,aA.all=function(e){return Promise.all(e)},aA.spread=function(e){return function(t){return e.apply(null,t)}},aA.isAxiosError=function(e){return rP.isObject(e)&&!0===e.isAxiosError},aA.mergeConfig=XP,aA.AxiosHeaders=PP,aA.formToJSON=e=>kP(rP.isHTMLForm(e)?new FormData(e):e),aA.getAdapter=WP,aA.HttpStatusCode=iA,aA.default=aA;var sA=aA,lA={exports:{}};function cA(e){this.message=e}cA.prototype=new Error,cA.prototype.name="InvalidCharacterError";var uA="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new cA("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function dA(e){this.message=e}dA.prototype=new Error,dA.prototype.name="InvalidTokenError",lA.exports=function(e,t){if("string"!=typeof e)throw new dA("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(uA(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return uA(t)}}(e.split(".")[n]))}catch(e){throw new dA("Invalid token specified: "+e.message)}},lA.exports.InvalidTokenError=dA;var pA={};Object.defineProperty(pA,"__esModule",{value:!0}),pA.MAX_UNIX_TIME=pA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=pA.PUBLIC_ACCESS_TOKEN_PAYLOAD=pA.DEFAULT_MOCKING_VALUES=pA.IDP_ACCESS_TOKEN_ENDPOINT=pA.LOCAL_STORAGE_JWT_EXPIRY=pA.LOCAL_STORAGE_JWT=pA.LOCAL_STORAGE_JWT_TOKEN=pA.SIGN_OPTIONS=void 0,pA.SIGN_OPTIONS={issuer:"Bynder",subject:"someone@bynder.com",audience:"bynder.com",expiresIn:"12h",algorithm:"RS256"},pA.LOCAL_STORAGE_JWT_TOKEN="jwt_access_token",pA.LOCAL_STORAGE_JWT="jwt",pA.LOCAL_STORAGE_JWT_EXPIRY="jwt_expiry",pA.IDP_ACCESS_TOKEN_ENDPOINT="/v7/idp/access-tokens/by-session",pA.DEFAULT_MOCKING_VALUES={ACCOUNT_ID:"b05f9df8-cd3b-4b30-b57b-5b45ffaac62f",PROFILE_ID:"03cedc27-8755-4849-8b26-3e41e2709a21",USER_ID:"ab851f80-916b-4e12-a49c-b70e6ab1f817"},pA.PUBLIC_ACCESS_TOKEN_PAYLOAD={accountId:"",userId:"",profileId:"",groupIds:[],modulePermissions:[]},pA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=3e5,pA.MAX_UNIX_TIME=9999999999999;var fA={};Object.defineProperty(fA,"__esModule",{value:!0}),fA.removeAccessToken=fA.loadAccessToken=fA.storeAccessToken=void 0;var hA=pA;fA.storeAccessToken=function(e){localStorage.setItem(hA.LOCAL_STORAGE_JWT,e.jwt),localStorage.setItem(hA.LOCAL_STORAGE_JWT_EXPIRY,e.expiryTimestamp.toString())},fA.loadAccessToken=function(){return{jwt:localStorage.getItem(hA.LOCAL_STORAGE_JWT),expiryTimestamp:parseInt(localStorage.getItem(hA.LOCAL_STORAGE_JWT_EXPIRY),10)}},fA.removeAccessToken=function(){localStorage.removeItem(hA.LOCAL_STORAGE_JWT),localStorage.removeItem(hA.LOCAL_STORAGE_JWT_EXPIRY)},function(e){var t=g&&g.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=g&&g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=g&&g.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=g&&g.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=g&&g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getJWT=e.invalidateAccessToken=e.mockAccessTokenResponse=e.buildAccessToken=void 0;var s=r(sA),l=a(lA.exports),c=pA,u=r(fA),d=function(t){return o(void 0,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),n=void 0,t?[3,2]:(r=c.IDP_ACCESS_TOKEN_ENDPOINT,[4,s.default.get(r,{withCredentials:!0})]);case 1:return n=i.sent(),[3,3];case 2:n=e.mockAccessTokenResponse(t),i.label=3;case 3:if(!n.data)throw new Error("Could not retrieve access token");return[2,e.buildAccessToken(n)];case 4:if(401===(l=o=i.sent()).response.status&&"true"===l.response.headers.is_public)return a=e.mockAccessTokenResponse(c.PUBLIC_ACCESS_TOKEN_PAYLOAD),[2,e.buildAccessToken(a)];throw o;case 5:return[2]}var l}))}))};e.buildAccessToken=function(e){return{jwt:e.data.access_token,expiryTimestamp:e.data.expires_in}},e.mockAccessTokenResponse=function(e){return{data:{access_token:"JWT generation deprecated in this js-access-token-lib version",expires_in:c.MAX_UNIX_TIME,token_type:"bearer"},status:200,statusText:"OK",headers:{},config:{headers:new s.AxiosHeaders}}},e.invalidateAccessToken=function(){u.removeAccessToken()},e.getJWT=function(t){return o(void 0,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return[4,u.loadAccessToken()];case 1:return(n=r.sent()).jwt&&!function(e){return 1e3*l.default(e.jwt).exp-c.MS_REFRESH_TOKEN_BEFORE_EXPIRY<Date.now()}(n)?[3,3]:[4,d(t)];case 2:n=r.sent(),u.storeAccessToken(n),function(t){var n=1e3*t.expiryTimestamp;setTimeout(e.invalidateAccessToken,n)}(n),r.label=3;case 3:return[2,n.jwt]}}))}))},window.addEventListener("beforeunload",e.invalidateAccessToken)}(kB);var mA={exports:{}},gA={},vA={exports:{}};function yA(){}function bA(){}function xA(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xA(e))&&(r&&(r+=" "),r+=t);return r}bA.resetWarningCache=yA,vA.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}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:bA,resetWarningCache:yA};return n.PropTypes=n,n}();var EA=v(Object.freeze({__proto__:null,clsx:wA,default:wA})),CA={},kA={};Object.defineProperty(kA,"__esModule",{value:!0}),kA.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},kA.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},kA.int=function(e){return parseInt(e,10)},kA.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},kA.isNum=function(e){return"number"==typeof e&&!isNaN(e)};var SA={};Object.defineProperty(SA,"__esModule",{value:!0}),SA.browserPrefixToKey=TA,SA.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},SA.default=void 0,SA.getPrefix=IA;const _A=["Moz","Webkit","O","ms"];function IA(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const n=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!n)return"";if(t in n)return"";for(let e=0;e<_A.length;e++)if(TA(t,_A[e])in n)return _A[e];return""}function TA(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}SA.default=IA(),Object.defineProperty(CA,"__esModule",{value:!0}),CA.addClassName=NA,CA.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},CA.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&NA(e.body,"react-draggable-transparent-selection")},CA.createCSSTransform=function(e,t){const n=AA(e,t,"px");return{[(0,jA.browserPrefixToKey)("transform",jA.default)]:n}},CA.createSVGTransform=function(e,t){return AA(e,t,"")},CA.getTouch=function(e,t){return e.targetTouches&&(0,OA.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,OA.findInArray)(e.changedTouches,(e=>t===e.identifier))},CA.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},CA.getTranslation=AA,CA.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,OA.int)(n.paddingTop),t-=(0,OA.int)(n.paddingBottom),t},CA.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,OA.int)(n.paddingLeft),t-=(0,OA.int)(n.paddingRight),t},CA.matchesSelector=PA,CA.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(PA(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},CA.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},CA.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,OA.int)(n.borderTopWidth),t+=(0,OA.int)(n.borderBottomWidth),t},CA.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,OA.int)(n.borderLeftWidth),t+=(0,OA.int)(n.borderRightWidth),t},CA.removeClassName=DA,CA.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},CA.removeUserSelectStyles=function(e){if(e)try{if(e.body&&DA(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var OA=kA,jA=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=zA(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(SA);function zA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(zA=function(e){return e?n:t})(e)}let BA="";function PA(e,t){return BA||(BA=(0,OA.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,OA.isFunction)(e[t])}))),!!(0,OA.isFunction)(e[BA])&&e[BA](t)}function AA(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function NA(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function DA(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},MA.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},MA.createCoreData=function(e,t,n){const r=!(0,FA.isNum)(e.lastX),o=RA(e);return r?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},MA.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},MA.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r="string"==typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);const o=RA(e);if("string"==typeof r){const{ownerDocument:e}=o,t=e.defaultView;let n;if(n="parent"===r?o.parentNode:e.querySelector(r),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const i=n,a=t.getComputedStyle(o),s=t.getComputedStyle(i);r={left:-o.offsetLeft+(0,FA.int)(s.paddingLeft)+(0,FA.int)(a.marginLeft),top:-o.offsetTop+(0,FA.int)(s.paddingTop)+(0,FA.int)(a.marginTop),right:(0,LA.innerWidth)(i)-(0,LA.outerWidth)(o)-o.offsetLeft+(0,FA.int)(s.paddingRight)-(0,FA.int)(a.marginRight),bottom:(0,LA.innerHeight)(i)-(0,LA.outerHeight)(o)-o.offsetTop+(0,FA.int)(s.paddingBottom)-(0,FA.int)(a.marginBottom)}}return(0,FA.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,FA.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,FA.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,FA.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]},MA.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,LA.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const o=RA(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,LA.offsetXYFromParent)(r||e,i,n.props.scale)},MA.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var FA=kA,LA=CA;function RA(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var HA={},$A={};Object.defineProperty($A,"__esModule",{value:!0}),$A.default=function(){},Object.defineProperty(HA,"__esModule",{value:!0}),HA.default=void 0;var UA=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ZA(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),VA=KA(vA.exports),WA=KA(h),qA=CA,GA=MA,YA=kA,XA=KA($A);function KA(e){return e&&e.__esModule?e:{default:e}}function ZA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ZA=function(e){return e?n:t})(e)}function JA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA={start:"touchstart",move:"touchmove",stop:"touchend"},eN={start:"mousedown",move:"mousemove",stop:"mouseup"};let tN=eN;class nN extends UA.Component{constructor(){super(...arguments),JA(this,"dragging",!1),JA(this,"lastX",NaN),JA(this,"lastY",NaN),JA(this,"touchIdentifier",null),JA(this,"mounted",!1),JA(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,qA.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,qA.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,qA.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,GA.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:a}=o,s=(0,GA.createCoreData)(this,i,a);(0,XA.default)("DraggableCore: handleDragStart: %j",s),(0,XA.default)("calling",this.props.onStart),!1!==this.props.onStart(e,s)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,qA.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=a,(0,qA.addEvent)(n,tN.move,this.handleDrag),(0,qA.addEvent)(n,tN.stop,this.handleDragStop))})),JA(this,"handleDrag",(e=>{const t=(0,GA.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,GA.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,GA.createCoreData)(this,n,r);if((0,XA.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),JA(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,GA.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,GA.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,GA.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,qA.removeUserSelectStyles)(i.ownerDocument),(0,XA.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,XA.default)("DraggableCore: Removing handlers"),(0,qA.removeEvent)(i.ownerDocument,tN.move,this.handleDrag),(0,qA.removeEvent)(i.ownerDocument,tN.stop,this.handleDragStop))})),JA(this,"onMouseDown",(e=>(tN=eN,this.handleDragStart(e)))),JA(this,"onMouseUp",(e=>(tN=eN,this.handleDragStop(e)))),JA(this,"onTouchStart",(e=>(tN=QA,this.handleDragStart(e)))),JA(this,"onTouchEnd",(e=>(tN=QA,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,qA.addEvent)(e,QA.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,qA.removeEvent)(t,eN.move,this.handleDrag),(0,qA.removeEvent)(t,QA.move,this.handleDrag),(0,qA.removeEvent)(t,eN.stop,this.handleDragStop),(0,qA.removeEvent)(t,QA.stop,this.handleDragStop),(0,qA.removeEvent)(e,QA.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,qA.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:WA.default.findDOMNode(this)}render(){return UA.cloneElement(UA.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}HA.default=nN,JA(nN,"displayName","DraggableCore"),JA(nN,"propTypes",{allowAnyClick:VA.default.bool,children:VA.default.node.isRequired,disabled:VA.default.bool,enableUserSelectHack:VA.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:VA.default.arrayOf(VA.default.number),handle:VA.default.string,cancel:VA.default.string,nodeRef:VA.default.object,onStart:VA.default.func,onDrag:VA.default.func,onStop:VA.default.func,onMouseDown:VA.default.func,scale:VA.default.number,className:YA.dontSetMe,style:YA.dontSetMe,transform:YA.dontSetMe}),JA(nN,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),r=d(vA.exports),o=d(h),i=d(EA),a=CA,s=MA,l=kA,c=d(HA),u=d($A);function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=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},f.apply(this,arguments)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends n.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{if((0,u.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:r,defaultPosition:o,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,x=p||o,w={x:(0,s.canDragX)(this)&&b?this.state.x:x.x,y:(0,s.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(w,h):v=(0,a.createCSSTransform)(w,h);const E=(0,i.default)(r.props.className||"",l,{[u]:this.state.dragging,[d]:this.state.dragged});return n.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:E,style:{...r.props.style,...v},transform:y}))}}e.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(gA);const{default:rN,DraggableCore:oN}=gA;mA.exports=rN,mA.exports.default=rN,mA.exports.DraggableCore=oN;var iN=mA.exports;function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(n),!0).forEach((function(t){dN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lN(){lN=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new j(r||[]);return o(a,"_invoke",{value:_(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(z([])));E&&E!==n&&r.call(E,a)&&(x=E);var C=b.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function I(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function z(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=z,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:z(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function cN(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function uN(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){cN(i,r,o,a,s,"next",e)}function s(e){cN(i,r,o,a,s,"throw",e)}a(void 0)}))}}function dN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pN(){return pN=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},pN.apply(this,arguments)}function fN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function hN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||vN(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gN(e){return function(e){if(Array.isArray(e))return yN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vN(e,t){if(e){if("string"==typeof e)return yN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yN(e,t):void 0}}function yN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bN=["theme"];Uu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],nd.fontStackBase,nd.fontSizeBase,nd.lineHeightBase,nd.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?Ru(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],nd.spacing4,nd.fontSize75):Ru(["height:40px !important;padding:0 "," !important;"],nd.spacing5)}),(function(e){var t=e.theme,n=hN(e,bN);if("primary-dark"===n.variant){var r=Ru(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],nd.componentButtonPrimaryBorderActive,nd.componentButtonPrimaryFillActive,nd.componentButtonPrimaryColorActive);return Ru(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],nd.componentButtonPrimaryFill,nd.componentButtonPrimaryColor,n.isPressed&&r,nd.componentButtonPrimaryBorderHover,nd.componentButtonPrimaryFillHover,nd.componentButtonPrimaryColorHover,nd.elevation1,nd.componentButtonPrimaryFillFocus,nd.componentButtonPrimaryColorFocus,nd.componentButtonPrimaryBorderFocus,nd.componentButtonPrimaryFocusRing,r,nd.componentButtonPrimaryBorderDisabled,nd.componentButtonPrimaryFillDisabled,nd.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=Ru(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return Ru(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=Ru(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return Ru(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var xN=Uu.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);Uu(xN).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(nd.spacing2," * -1)"):nd.spacing3}),nd.spacing2),Uu(xN).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],nd.spacing2,nd.spacing3);var wN,EN=qu(["100%{transform:rotate(360deg);}"]),CN=qu(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);Uu.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],EN),Uu.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],CN),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(wN||(wN={}));var kN,SN,_N,IN=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),TN=Uu(IN).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Uu.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===wN.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),TN,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Uu.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Uu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Uu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Uu(IN).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Uu(IN).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Uu.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Uu.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Wu(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(kN||(kN={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(SN||(SN={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(_N||(_N={})),Uu.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var ON=Uu.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),jN=Uu(ON).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));Uu(ON).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),Uu(ON).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),Uu.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),jN,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),Uu.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),Uu.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var zN=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),BN=Uu(zN).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));Uu.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?nd.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),BN,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?Ru(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Uu.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Uu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Uu.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),Uu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Uu(zN).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Uu(zN).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Uu.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),Uu.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case SN.COLOR:return e.theme.legacy.colorPrimary;case SN.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var PN=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);Uu(PN).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Uu.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?Ru(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),Uu.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),Uu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),Uu.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),Uu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Uu(PN).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),Uu.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),Uu.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),Uu.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],nd.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),Uu.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),Uu.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],nd.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var AN=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);Uu(AN).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Uu.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),Uu.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Uu.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),Uu.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Uu.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),Uu.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var NN=Uu.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));Uu(NN).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),Uu(NN).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),Uu.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),Uu.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),Uu.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var DN=Uu.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);Uu.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),Uu.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),Uu.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var MN=Uu.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);Uu(MN).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),Uu.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),Uu.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),Uu.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),Uu.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var FN,LN,RN=Uu.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),HN=Uu.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),RN);Uu.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),Uu.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),Uu(DN).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],nd.spacing6,nd.spacing6),Uu.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],nd.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(FN||(FN={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(LN||(LN={})),Uu.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var $N=Uu.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));Uu.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:LN.LEFT){case LN.RIGHT:return Ru(["top:110%;right:0;"]);case LN.CENTER:return Ru(["top:110%;left:50%;transform:translateX(-50%);"]);case LN.TOP:return Ru(["top:auto;bottom:110%;"]);case LN.LEFT:default:return Ru(["top:110%;left:0;"])}}(e.position)})),Uu.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],HN);var UN=Uu.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));Uu.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),HN,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),UN);var VN=Ru(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),WN=Ru(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));Uu.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),Uu($N).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),Uu.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],VN,WN,(function(e){return e.theme.legacy.colorRichBlack50}));var qN=Uu.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));Uu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Uu.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var GN=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);Uu(GN).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Uu(GN).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),qN,(function(e){return e.theme.legacy.colorIconActive})),Uu.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),Uu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Uu.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Uu.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Uu.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&Ru(["background-color:",";"],e.theme.legacy.colorRichBlack03)}));var YN="44px";Uu.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),Uu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Uu.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),Uu.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),Uu.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),Uu.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],YN),Uu.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var XN=Uu.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Uu(XN).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),Uu(XN).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var KN=Uu.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],YN);Uu(KN).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),Uu(KN).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var ZN=Uu.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],YN);Uu(ZN).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),Uu(ZN).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var JN=["isOpen"],QN="dat-menu-pointer-events-wrapper";function eD(e){var n=e.presetURL,r=e.alwaysVisible;return t.createElement(Mv,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=hN(e,JN);return t.createElement(tD,{isVisible:r||n},t.createElement(Zd,sN(sN({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(hE,null),"aria-label":"More options"})))}},t.createElement(IS.CopyToClipboard,{text:n,onCopy:function(){bx({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Mv.Item,{icon:t.createElement(Pw,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Mv.Divider,null),t.createElement(Mv.Item,{icon:t.createElement(xw,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Mv.Divider,null),t.createElement(Mv.Item,{icon:t.createElement(Uw,null),onClick:function(){var e=function(e){var t,n,r,o,i,a,s,l,c,u="([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})",d="([^/]*)",p="(.*)/transform",f={preset:new RegExp("".concat(p,"/").concat("([a-zA-Z0-9_-]+)","/").concat(u,"/").concat("([a-zA-Z0-9_-]+)*","$").concat(d)),transform:new RegExp("".concat(p,"/").concat(u,"/").concat(d))},h="";if(f.preset.test(e)){var m=mN(e.match(f.preset),5);s=m[1],h=m[2],l=m[3],c=m[4]}else if(f.transform.test(e)){var g=mN(e.match(f.transform),4);s=g[1],l=g[2],c=g[3]}var v=(null!==(t=null===(n=h)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0,y=null!==(r=null===(o=c)||void 0===o?void 0:o.split("?")[0])&&void 0!==r?r:"",b=null!==(i=null===(a=c)||void 0===a?void 0:a.split("?")[1])&&void 0!==i?i:"",x=b.length>0?"&":"",w=v?"".concat(h,"-").concat(l):y,E=h.length?"".concat(h,"/"):"";return"".concat(s,"/transform/").concat(E).concat(l,"/").concat(w,"?").concat(b).concat(x,"download=true")}(n);window.location.replace(e)}},"Download"))}var tD=Uu.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-0"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),"."+QN),nD=function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()},rD=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},oD=Uu.div.withConfig({displayName:"ItemContainer",componentId:"sc-eq72z0-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";",""],nd.spacing3,nd.spacing4,nd.spacing3,(function(e){return e.isSelected&&nd.gray25}),(function(e){return e.isDisabled?"":"\n\t&:hover {\n\t\tbackground: ".concat(nd.gray25,";\n\t\tcursor: pointer;\n\t}")})),iD=Uu.div.withConfig({displayName:"ItemDetails",componentId:"sc-eq72z0-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),aD=Uu.p.withConfig({displayName:"Title",componentId:"sc-eq72z0-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],nd.fontSize100,nd.lineHeightText,nd.gray800,nd.spacing4),sD=Uu.p.withConfig({displayName:"Subtitle",componentId:"sc-eq72z0-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],nd.gray600,nd.fontSize100,nd.lineHeightText,nd.spacing4),lD=Uu.div.withConfig({displayName:"Container",componentId:"sc-eq72z0-4"})(["padding:0px ",";"],nd.spacing4),cD=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,s=e.isSelected,l=e.baseURL,c=mN(l.split("/transform"),1)[0],u="Base"===n?"":"".concat(n,"/"),d=rD(l),p="/transform/".concat(u).concat(d,"/"),f=uD(c,p);return t.createElement(oD,{className:QN,onClick:r,isSelected:s},t.createElement(bg,{variant:"content",imageUrl:f}),t.createElement(iD,null,t.createElement(aD,null,n),t.createElement(sD,null,o)),!a&&t.createElement(eD,{alwaysVisible:!1,presetURL:"".concat(c).concat(p)}))},uD=function(e,t){return"".concat(e).concat(t,"?io=transform:fit,width:80")},dD=t.memo(cD),pD=function(e){var n=e.name,o=e.id,i=e.baseURL,a=e.onPresetSelected,s=e.selectedPreset,l=e.presets,c=e.presetGroupingActive,u=mN(r(!1),2),d=u[0],p=u[1],f=d?t.createElement(ep,null):t.createElement(np,null),h=l.filter((function(e){return e.groupId===o})),m=h.length>0;return c?t.createElement(t.Fragment,null,t.createElement(oD,{className:QN,onClick:m?function(){return p((function(e){return!e}))}:void 0,isSelected:!1,isDisabled:!m},t.createElement(bg,{size:"m",icon:t.createElement(pp,null)}),t.createElement(iD,null,t.createElement(aD,null,n)),m&&f),t.createElement(lD,null,d&&h.map((function(e){return t.createElement(dD,{baseURL:i,key:e.id,onSelect:function(){return a(e.name)},name:e.name,subtitle:"",isSelected:s===e.name})})))):null},fD=t.memo(pD),hD=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL,a=e.presetGroupingActive,s=r.filter((function(e){return"Preset"===e.type})).length;return t.createElement(lD,null,t.createElement(mD,null,"Base transformation"),t.createElement(dD,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),s>0&&t.createElement(mD,null,s," Presets"),r.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var s,l=e.name===o,c="Group"===e.type;return a&&(null==e||null===(s=e.groupId)||void 0===s?void 0:s.length)>0?null:c?t.createElement(fD,{key:e.id,name:e.name,id:e.id,baseURL:i,onPresetSelected:n,selectedPreset:o,presets:r,presetGroupingActive:a}):t.createElement(dD,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:l})})))},mD=Uu.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],nd.gray800,nd.spacing5,nd.spacing5,nd.spacing4),gD=t.memo(hD);function vD(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}function yD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M14.96 9.29L12.21 12.83L10.25 10.47L7.5 14H18.5L14.96 9.29ZM2 4H0V20C0 21.1 0.9 22 2 22H18V20H2V4ZM20 0H6C4.9 0 4 0.9 4 2V16C4 17.1 4.9 18 6 18H20C21.1 18 22 17.1 22 16V2C22 0.9 21.1 0 20 0ZM20 16H6V2H20V16Z"}))}function bD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M2 4H0V20C0 21.1 0.9 22 2 22H18V20H2V4ZM20 0H6C4.9 0 4 0.9 4 2V16C4 17.1 4.9 18 6 18H20C21.1 18 22 17.1 22 16V2C22 0.9 21.1 0 20 0ZM20 16H6V2H20V16Z"}),t.createElement("path",{d:"M11.7778 5.28257L13 4L14.2222 5.28257L14.2264 5.287L14.2341 5.29511L14.2594 5.32206C14.2805 5.3447 14.31 5.37657 14.3468 5.41681C14.4202 5.4972 14.5228 5.61148 14.6448 5.75269C14.8877 6.0336 15.2141 6.42837 15.5435 6.87997C15.8699 7.32739 16.218 7.85622 16.4894 8.4028C16.7491 8.9259 17 9.58504 17 10.2602C17 12.2016 15.3319 14 13 14C10.6681 14 9 12.2016 9 10.2602C9 9.58504 9.25088 8.9259 9.5106 8.4028C9.78196 7.85622 10.1301 7.32739 10.4565 6.87997C10.7859 6.42837 11.1123 6.0336 11.3552 5.75269C11.4772 5.61148 11.5798 5.4972 11.6532 5.41681C11.69 5.37657 11.7195 5.3447 11.7406 5.32206L11.7659 5.29511L11.7736 5.287L11.7778 5.28257Z"}))}var xD,wD,ED=function(e){switch(e.type){case"fill":case"crop":return t.createElement(Kw,null);case"fit":return t.createElement(mw,null);case"extend":return t.createElement(Sw,null);case"scale":return t.createElement(Hw,null);case"rotate":return t.createElement(oE,null);case"flip":case"mirror":return t.createElement(Qw,null);case"border":return t.createElement(Mw,null);case"background":return t.createElement(Fw,null);case"trim":return t.createElement(Aw,null);case"opacity":return t.createElement(Cw,null);case"sepia":return t.createElement(Yw,null);case"contrast":return t.createElement(yw,null);case"brightness":return t.createElement(Dw,null);case"grayscale":return t.createElement(iE,null);case"blur":return t.createElement(Ww,null);case"sharpness":return t.createElement(Jw,null);case"saturation":return t.createElement(qw,null);case"text":return t.createElement($w,null);case"image":return t.createElement(yD,null);case"box":return t.createElement(bD,null);case"advanced":return t.createElement(Iw,null);case"multiple":return t.createElement(Tw,null);case"removebg":return t.createElement(kD,null);default:return null}};function CD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function kD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function SD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}!function(e){e.fill="fill",e.crop="crop",e.fit="fit",e.extend="extend",e.scale="scale",e.rotate="rotate",e.flip="flip",e.mirror="mirror",e.border="border",e.background="background",e.removebg="removebg",e.trim="trim",e.empty=""}(xD||(xD={})),function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(wD||(wD={}));var _D={name:"Open Sans",id:"opensans"};function ID(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(TD,null,t.createElement(Py.Label,null,r),n,t.createElement(Py.HelperText,null,o))}var TD=Uu(Py.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),OD={transformation:null,group:null,label:"Select a transform"},jD=[{label:"Background",transformation:xD.background,group:"transform"},{label:"Border",transformation:xD.border,group:"transform"},{label:"Crop",transformation:xD.crop,group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:xD.removebg,group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:xD.extend,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:xD.fill,group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:xD.fit,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:xD.flip,secondaryTransformation:xD.mirror,group:"transform"},{label:"Rotate",transformation:xD.rotate,group:"transform"},{label:"Scale",transformation:xD.scale,group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:xD.trim,group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Image overlay",transformation:"image",group:"overlay"},{label:"Color overlay",transformation:"box",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function zD(e){var n,r=jD.find((function(t){return[t.transformation,t.secondaryTransformation].includes(e.transformation)}))||OD;return t.createElement(ID,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(Ex,{"aria-label":"Transformation",onChange:function(t){var n=jD.find((function(e){return[e.transformation,e.secondaryTransformation].includes(t)})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(ED,{type:r.transformation})},t.createElement(Ex.SectionTitle,null,"Transforms"),jD.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(Ex.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)})),t.createElement(Ex.Divider,null),t.createElement(Ex.SectionTitle,null,"Filters"),jD.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(Ex.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)})),t.createElement(Ex.Divider,null),t.createElement(Ex.SectionTitle,null,"Overlay"),jD.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(Ex.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)}))))}var BD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!function(e){return"number"==typeof e&&!isNaN(e)}(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},PD=function(e){return e&&e>0?e.toString():""},AD={type:"Preset",name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0,groupId:""},ND={id:"",transform:null,overlay:null,filter:null},DD={type:"Preset",groupId:"",name:"",content:{io:[]}},MD={id:"",transform:null,overlay:null,filter:null};function FD(e,t){var n,r=function(){return e.content.io.map((function(e){return sN({},e)}))};switch(t.type){case"init":return function(e){var t;if(e){var n=sN({},e);return null==n||null===(t=n.content)||void 0===t||null===(t=t.io)||void 0===t||t.forEach((function(e){e.id||(e.id=TS())})),n}}(t.payload)||AD;case"edit":return sN(sN({isValid:!0},t.payload),{},{content:sN(sN({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return sN(sN({},e),{},{id:TS()})}))})});case"addTransformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:[].concat(gN(r()),[sN(sN({},MD),{},{id:t.payload.id,transform:xD.fill})])})});case"deleteTransformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return sN(sN({},e),{},(dN(n={},t.type,t.payload),dN(n,"content",sN(sN({},e.content),{},{io:r()})),n));case"format":case"quality":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:r()},t.type,t.payload))});case"focuspoint":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:r()},t.type,t.payload.value))});case"transformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},function(e){switch(e){case"fill":case"fit":case"scale":return sN(sN({},MD),{},{height:1e3,width:1e3});case"extend":return sN(sN({},MD),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return sN(sN({},MD),{},{height:1e3,width:1e3,path:"square"});case"background":return sN(sN({},MD),{},{color:"FFFFFF"});case"border":return sN(sN({},MD),{},{color:"FFFFFF",width:1});case"rotate":return sN(sN({},MD),{},{angle:0});case"opacity":return sN(sN({},MD),{},{amount:100});case"blur":return sN(sN({},MD),{},{radius:0});case"text":return sN(sN({},MD),{},{content:"Add Text Here",font:_D.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return sN(sN({},MD),{},{opacity:50,angle:0,gravity:"center"});case"box":return sN(sN({},MD),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return sN(sN({},MD),{},{amount:0})}}(t.payload.value)),{},dN({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value))}))})});case"opacity":case"asset":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value.toString()))}))})});case"groupId":return sN(sN({},e),{},{groupId:t.payload});default:return e}}var LD=t.createContext({}),RD=function(){return i(LD)},HD=function(e){var n=e.children,r=mN(p(FD,DD),2),i=r[0],a=r[1],s=o((function(){return{transformationsState:i,transformationsDispatch:a}}),[i,a]);return t.createElement(LD.Provider,{value:s},n)},$D=9e3;function UD(e){var n=e.id,o=e.height,i=void 0===o?0:o,a=e.width,s=void 0===a?0:a,l=e.showLock,c=void 0!==l&&l,u=RD().transformationsDispatch,d=mN(r(!1),2),p=d[0],f=d[1],h=mN(r(1),2),m=h[0],g=h[1],v=t.createElement(WD,null,p?t.createElement(Ew,null):t.createElement(ww,null)),y=PD(s),b=PD(i);return t.createElement(ID,{label:"Dimensions"},t.createElement(VD,null,t.createElement(qD,null,t.createElement(ag,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(GD,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=BD(t,$D);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/m,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),c?t.createElement(Zd,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(YD,null),t.createElement(qD,null,t.createElement(ag,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(GD,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=BD(t,$D);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*m,id:n}}):g(s&&r?s/r:1)},iconRight:t.createElement("span",null,"px")}))))}var VD=Uu.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),WD=Uu.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],nd.gray400a),qD=Uu.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),GD=Uu.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],nd.spacing6),YD=Uu.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],nd.spacing4);function XD(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,s=e.max;return t.createElement(ID,{label:i},t.createElement(Mx,{value:o,onChange:n,min:a,max:s,inputPosition:"right"}))}function KD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),t.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function ZD(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(ID,{label:"Angle"},t.createElement(ag,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(KD,null),iconRight:t.createElement("span",null,"°")}))}function JD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function QD(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var eM=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],tM=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],nM=function(e){return["topleft","top","topright"].includes(e)?"top":["bottomleft","bottom","bottomright"].includes(e)?"bottom":"center"},rM=function(e){return["topleft","left","bottomleft"].includes(e)?"left":["topright","right","bottomright"].includes(e)?"right":"center"};function oM(e){var n=e.label,o=e.gravity,i=e.onChange,a=tM.findIndex((function(e){return e.value===rM(o)})),s=eM.findIndex((function(e){return e.value===nM(o)})),l=mN(r(tM[a]),2),c=l[0],u=l[1],d=mN(r(eM[s]),2),p=d[0],f=d[1],h=function(e){switch(i(e),e){case"topleft":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"top":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"topright":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"right"===e.value})));break;case"left":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"center":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"right":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"right"===e.value})));break;case"bottomleft":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"bottom":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"bottomright":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"right"===e.value})))}};return t.createElement(ID,{label:n},t.createElement(Tf,null,t.createElement(lM,null,t.createElement(uM,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(dM,{isSelected:"topleft"===o,onClick:function(){return h("topleft")}}),t.createElement(dM,{isSelected:"top"===o,onClick:function(){return h("top")}}),t.createElement(dM,{isSelected:"topright"===o,onClick:function(){return h("topright")}}),t.createElement(dM,{isSelected:"left"===o,onClick:function(){return h("left")}}),t.createElement(dM,{isSelected:"center"===o,onClick:function(){return h("center")}}),t.createElement(dM,{isSelected:"right"===o,onClick:function(){return h("right")}}),t.createElement(dM,{isSelected:"bottomleft"===o,onClick:function(){return h("bottomleft")}}),t.createElement(dM,{isSelected:"bottom"===o,onClick:function(){return h("bottom")}}),t.createElement(dM,{isSelected:"bottomright"===o,onClick:function(){return h("bottomright")}}))),t.createElement(cM,{direction:"column",justifyContent:"space-between"},t.createElement(Ex,{"aria-label":"Horizontal position",onChange:function(e){switch(u(tM.find((function(t){return t.value===e}))),e){case"left":"top"===p.value&&i("topleft"),"center"===p.value&&i("left"),"bottom"===p.value&&i("bottomleft");break;case"center":"top"===p.value&&i("top"),"center"===p.value&&i("center"),"bottom"===p.value&&i("bottom");break;case"right":"top"===p.value&&i("topright"),"center"===p.value&&i("right"),"bottom"===p.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(QD,null)},tM.map((function(e){return t.createElement(Ex.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(Ex,{"aria-label":"Vertical position",onChange:function(e){switch(f(eM.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:p.value,label:p.label,icon:t.createElement(JD,null)},eM.map((function(e){return t.createElement(Ex.Item,{value:e.value,key:e.value},e.label)}))))))}var iM,aM,sM,lM=Uu.div.withConfig({displayName:"SquareFlexContainer",componentId:"sc-ci11hg-0"})(["width:92px;margin-right:16px;"]),cM=Uu(Tf).withConfig({displayName:"DropdownFlex",componentId:"sc-ci11hg-1"})(["height:92px;"]),uM=Uu(Tf).withConfig({displayName:"SquareFlex",componentId:"sc-ci11hg-2"})(["width:92px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],nd.spacing5,nd.gray25,nd.gray100a,nd.radiusMedium),dM=Uu.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-3"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],nd.gray10,nd.gray100a,nd.radiusSmall,nd.gray25a,(function(e){return e.isSelected&&Ru(["border:2px solid ",";background:",";"],nd.blue500,nd.blue100)}));function pM(e){if(2===e.length){var t=parseInt(e,16);return Math.floor(Math.round(t/255*100))}}function fM(e){var n,r=e.io,o=e.ioColorProp,i=void 0===o?"color":o,a=e.label,s=void 0===a?"Color":a,l=e.dispatchType,c=void 0===l?"color":l,u=RD().transformationsDispatch;function d(){var e;return null!==(e=r[i].toString())&&void 0!==e?e:""}return t.createElement(ID,{label:s},t.createElement(Tf,null,t.createElement(Mg,{onChange:function(e){var t,n,o=e.color,i=e.opacity,a=Math.min(100,i),s="#"===o[0]?o.substring(1):o,l=(t=a.toString(),(n=Math.round(255*parseInt(t,10)/100).toString(16).toUpperCase()).length<2?"0".concat(n):n);u({type:c,payload:{value:"".concat(s).concat(l).toUpperCase(),id:r.id}})},value:{color:"#".concat(d().substring(0,6).toUpperCase()),opacity:null!==(n=pM(d().substring(6)))&&void 0!==n?n:100},trigger:function(e){var n,o=pN({},(fN(e),e));return t.createElement(ag,{maxLength:8,value:null===(n=d())||void 0===n?void 0:n.toUpperCase(),prefix:"#",isInvalid:!new RegExp("^[a-fA-F0-9]{8}$|^[a-fA-F0-9]{6}$|^[a-fA-F0-9]{3}$").test(r[i].toString()),icon:t.createElement(ng,sN(sN({label:"Color Thumbnail"},o),{},{onClick:function(e){e.stopPropagation(),o.onClick()},icon:t.createElement(bg,{variant:"content",backgroundColor:"#".concat(d()),shape:"circle",size:"xs"})})),onChange:function(e){u({type:c,payload:{value:e,id:r.id}})}})}})))}var hM=function(e){return e.data},mM=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},gM=null===(iM=document.querySelector('meta[name="x-csrf-token"]'))||void 0===iM?void 0:iM.getAttribute("content"),vM={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(aM=window)||void 0===aM?void 0:aM.csrf)||(null===(sM=window)||void 0===sM||null===(sM=sM.Bynder)||void 0===sM?void 0:sM.csrf_token)||gM},yM=fI.create({headers:vM});function bM(e,t){return yM.get(e,t).then(hM).catch(mM)}function xM(e,t,n){return yM.post(e,t,n).then(hM).catch(mM)}function wM(e,t,n){return yM.put(e,t,n).then(hM).catch(mM)}function EM(e,t){return yM.delete(e,t).then(hM).catch(mM)}var CM={getUploadedFonts:function(){return bM("/v7/fonts/portal/")},getFonts:function(e,t,n){return bM("/v7/fonts/",{params:sN(sN({},e?{pageSize:e}:null),n?{searchTerm:n}:null)})}},kM=function(e){var n=e.fontFamilyLabel,i=e.defaultFontFamilyLabel,s=e.fontFamily,l=e.setFontFamily,c=e.availableFonts,u=e.availableUploadedFonts,d=e.defaultFont,p=e.isDisabled,f=e.actionButton,h=void 0===f?null:f,m=mN(r(""),2),g=m[0],v=m[1],y=function(e){var t=e.searchFont,n=e.availableFonts,o=e.availableUploadedFonts,i=e.defaultFont,s=mN(r(n),2),l=s[0],c=s[1],u=mN(r(o),2),d=u[0],p=u[1],f=mN(r(!1),2),h=f[0],m=f[1],g=mN(r(!1),2),v=g[0],y=g[1];a((function(){c(n),p(o)}),[n,o]);var b=uS((function(e){m(!0),CM.getFonts(20,"",e).then((function(t){var n=t.fonts;if(e){var r=d.filter((function(t){return t.searchable_font_family_name.includes(e)}));p(r)}else p(o);c(e?n:[i].concat(gN(n)))})).catch((function(e){bx({title:e.toString(),variant:"error"}),console.error("error=",e)})).finally((function(){m(!1)}))}),500);return a((function(){t.length>0&&b(t),v&&(b(t),y(!1))}),[v,t,b]),{fontResults:l,fontUploadedResults:d,isLoading:h,setClearFont:y}}({searchFont:g,availableFonts:c,availableUploadedFonts:u,defaultFont:d}),b=y.fontResults,x=y.fontUploadedResults,w=y.isLoading,E=y.setClearFont,C=o((function(){return TS()}),[]);function k(){v(""),E(!0)}var S=function(e){return e.length>0?e.map((function(e){return t.createElement(Ex.Item,{key:e.font_id,value:e.font_id},e.font_family_name)})):t.createElement(Ex.Text,null,"No Results")},_=function(){return t.createElement(Ex.Text,null,"Loading")};return t.createElement(Py.Group,null,t.createElement(Py.Label,{id:C},n),t.createElement(SM,{condition:!!h},t.createElement(Ex,{"aria-labelledby":C,value:s.font_id,onChange:function(e){var t=x.find((function(t){return t.font_id===e}));if(t)l(t);else{var n=b.find((function(t){return t.font_id===e}));n&&l(n)}},label:s.font_family_name||i,isDisabled:p},t.createElement(Ex.SearchInput,{value:g,onChange:v,onBlur:k,onKeyDown:function(e){"Backspace"===e.key&&g.length<=1&&k()},placeholder:"Search","aria-label":"Search Options"}),t.createElement(Ex.SectionTitle,null,"Uploaded Fonts"),w?_():S(x),t.createElement(Ex.Divider,null),t.createElement(Ex.SectionTitle,null,"Available Fonts"),w?_():S(b)),h))},SM=function(e){var n=e.condition,r=e.children;return n?t.createElement(_M,null,r):r},_M=Uu.div.withConfig({displayName:"Wrapper",componentId:"sc-swectq-0"})(["display:flex;gap:",";> div{flex:1 1 auto;}"],nd.spacing3),IM=["Regular"];function TM(e){var n,o,i,s,l,c=e.io,u=RD().transformationsDispatch,d=mN(r(),2),p=d[0],f=d[1],h=mN(r([]),2),m=h[0],g=h[1],v=mN(r([]),2),y=v[0],b=v[1];a((function(){Promise.all([CM.getFonts(20),CM.getUploadedFonts()]).then((function(e){var t=mN(e,2),n=t[0],r=t[1];b(n.fonts),g(r)}))}),[]);var x={font_id:null!==(n=c.font)&&void 0!==n?n:_D.id,font_family_name:null!==(o=c.font)&&void 0!==o?o:_D.name,variants:[],searchable_font_family_name:null!==(i=c.font)&&void 0!==i?i:_D.id};return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Text"},t.createElement(Yx,{value:c.content,onChange:function(e){return u({type:"content",payload:{value:e,id:c.id}})}})),t.createElement(ID,{label:"Font"},t.createElement(kM,{fontFamilyLabel:"",defaultFontFamilyLabel:"",fontFamily:null!=p?p:x,setFontFamily:function(e){f(e),u({type:"font",payload:{value:e.font_family_name,id:c.id}})},availableFonts:y,availableUploadedFonts:m,defaultFont:x})),t.createElement(ID,{label:""},t.createElement(Tf,null,t.createElement(OM,null,t.createElement(Ex,{"aria-label":"Font style",value:c.fontType,label:c.fontType,onChange:function(e){return u({type:"fontType",payload:{value:e,id:c.id}})},isDisabled:!0},IM.map((function(e){return t.createElement(Ex.Item,{value:e,key:e},e)})))),t.createElement(jM,null,t.createElement(ag,{type:"number",value:null===(s=c.size)||void 0===s?void 0:s.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"size",payload:{value:parseInt(e,10),id:c.id}})}})))),t.createElement(fM,{label:"Text color",io:c}),t.createElement(oM,{label:"Position",gravity:c.gravity,onChange:function(e){return u({type:"gravity",payload:{value:e,id:c.id}})}}),t.createElement(ID,{label:"Padding"},t.createElement(ag,{type:"number",value:null===(l=c.padding)||void 0===l?void 0:l.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"padding",payload:{value:parseInt(e,10),id:c.id}})}})),t.createElement(ZD,{io:c}))}var OM=Uu.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],nd.spacing4),jM=Uu.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function zM(e){var n=e.io;return t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(fM,{io:n,label:"Background",dispatchType:"background",ioColorProp:"background"}))}var BM=[{label:"Rectangle",path:"square",icon:t.createElement(Xw,null)},{label:"Ellipse",path:"circle",icon:t.createElement(eE,null)}],PM=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(SD,null)}];function AM(e){var n,r=e.onChange,o=e.shape,i=null!==(n=BM.find((function(e){return e.path===o})))&&void 0!==n?n:PM.find((function(e){return e.path===o}));return t.createElement(ID,{label:"Path"},t.createElement(Ex,sN({"aria-label":"Path",onChange:r,value:o},i),BM.map((function(e){return t.createElement(Ex.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(Ex.Divider,null),PM.map((function(e){return t.createElement(Ex.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}function NM(e){var n=e.onChange,r=mN(e.focusPoint||[],2),o=r[0],i=r[1],a=function(e,t){var r="string"==typeof e?parseFloat(e):e,a=r>=100?100:r;n(["x"===t?a:o,"y"===t?a:i])};return t.createElement(FM,{justifyContent:"space-between",gap:"3",alignItems:"center"},t.createElement(MM,null,t.createElement(ag,{"aria-label":"Focus point position X",placeholder:"50",type:"number",value:(null==o?void 0:o.toString())||"",icon:t.createElement(DM,null,"X"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"x")}})),t.createElement(DM,null,"×"),t.createElement(MM,null,t.createElement(ag,{"aria-label":"Focus point position Y",placeholder:"50",type:"number",value:(null==i?void 0:i.toString())||"",icon:t.createElement(DM,null,"Y"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"y")}})))}var DM=Uu.div.withConfig({displayName:"IconText",componentId:"sc-19e3sbn-0"})(["display:flex;justify-content:center;width:24px;"]),MM=Uu.div.withConfig({displayName:"FlexInput",componentId:"sc-19e3sbn-1"})(["min-width:0;"]),FM=Uu(Tf).withConfig({displayName:"StyledFlex",componentId:"sc-19e3sbn-2"})(["margin-bottom:",";"],nd.spacing2),LM=[{label:"Focus point",focus:"point",icon:t.createElement(Gw,null)},{label:"Override focus point",focus:"override",icon:t.createElement(Zw,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(hI,null)}];function RM(e){var n=e.type,o=e.gravity,i=e.onChangeGravity,s=e.onChangeFocus,l=e.focusPoint,c=e.showEditor,u=e.setShowEditor,d=mN(r(!1),2),p=d[0],f=d[1],h=mN(r(!1),2),m=h[0],g=h[1],v=mN(r(null),2),y=v[0],b=v[1];a((function(){var e,t,n;y||(l?(n=LM.find((function(e){return"override"===e.focus})),b(n),g(!0)):o?(t=LM.find((function(e){return"gravity"===e.focus})),b(t)):(e=LM.find((function(e){return"point"===e.focus})),b(e)))}),[l,o,y]);var x={gravity:"Select the direction from where the transformation is being applied.",override:"Select a new focus point by editing the percentages below or directly clicking on the asset with the editor.",point:"Uses the predefined focus point of the asset."};return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Focus",helpText:x[null==y?void 0:y.focus]||x.point},t.createElement(Ex,sN(sN({"aria-label":"Focus",onChange:function(e){var t="gravity"===e,n="override"===e,r="point"===e;u&&u({show:!1});var o=LM.find((function(t){return t.focus===e}));b(o),f(t),g(n),!n&&u&&u({show:!1}),r&&s(void 0),t?(i("center"),s(void 0)):i(null)}},y),{},{value:null==y?void 0:y.focus}),LM.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(Ex.Divider,null):null,t.createElement(Ex.Item,{value:e.focus,icon:e.icon},e.label))})))),p&&t.createElement(oM,{label:"Gravity",gravity:o,onChange:i}),m&&t.createElement(t.Fragment,null,t.createElement(NM,{onChange:s,focusPoint:l}),u&&t.createElement(HM,{isChecked:c.type===n&&c.show,isDisabled:c.type&&c.type!==n,onChange:function(){c.type&&c.type!==n||u({type:c.show?void 0:n,show:!c.show})}},t.createElement(Tf,{gap:"4",direction:"row",alignItems:"center"},t.createElement(rE,null),t.createElement("span",null,"Show real time editor")))))}var HM=Uu(Gg).withConfig({displayName:"StyledSwitch",componentId:"sc-18kzar2-0"})(["margin-top:",";"],nd.spacing5);function $M(e){var n=e.io,r=e.focuspoint,o=e.setShowEditor,i=e.showEditor,a=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(AM,{shape:n.path,onChange:function(e){return a({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(RM,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,showEditor:i,setShowEditor:o,type:"crop"})),"circle"===n.path&&t.createElement(XD,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return a({type:"blur",payload:{value:e,id:n.id}})}}))}function UM(e){return t.createElement(Ay,sN({},e),t.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),t.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),t.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}var VM=500;function WM(e){var n=e.io,r=RD().transformationsDispatch,o=PD(n.width);return t.createElement(t.Fragment,null,t.createElement(fM,{io:n}),t.createElement(ID,{label:"Border"},t.createElement(ag,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=BD(t,VM);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(UM,null),iconRight:t.createElement("span",null,"px")})))}function qM(e){var n=e.io,r=e.focusPoint,o=e.setShowEditor,i=e.showEditor,a=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(RM,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,setShowEditor:o,showEditor:i,type:"fill"}))}function GM(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(XD,{label:vD(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}})}function YM(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(XD,{label:"Blur",min:0,max:100,value:n.radius,onChange:function(e){return r({type:"radius",payload:{value:e,id:n.id}})}})}function XM(e){var n=e.io;return t.createElement(fM,{io:n})}var KM=3e3;function ZM(e){var n=e.io,r=RD().transformationsDispatch,o=PD(n.padding);return t.createElement(ID,{label:"Padding"},t.createElement(Tf,null,t.createElement(QM,null,t.createElement(ag,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=BD(t,KM);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(UM,null),iconRight:t.createElement("span",null,"px")}))))}var JM,QM=Uu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],nd.spacing4);function eF(e){var n=e.io,r=RD().transformationsDispatch,o=null==rF?void 0:rF[n.transform];return t.createElement(ID,{label:"Flip"},t.createElement(tF,null,t.createElement(Ex,{"aria-label":"Flip",value:n.transform,onChange:function(e){r({type:"transformation",payload:{group:"transform",value:e,id:n.id}})},label:o.label,icon:o.icon},[xD.mirror,xD.flip].map((function(e){return t.createElement(Ex.Item,{value:e,key:e,icon:rF[e].icon},rF[e].label)})))))}var tF=Uu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-keyng0-0"})(["min-width:88px;margin-right:",";"],nd.spacing4),nF=Uu(gE).withConfig({displayName:"IconHorizontal",componentId:"sc-keyng0-1"})(["transform:rotate(90deg);"]),rF=(dN(JM={},xD.flip,{label:"Flip vertically",value:xD.flip,icon:t.createElement(gE,null)}),dN(JM,xD.mirror,{label:"Flip horizontally",value:xD.mirror,icon:t.createElement(nF,null)}),JM),oF=function(){var e=mN(r(""),2),t=e[0],n=e[1],o=function(){var e=uN(lN().mark((function e(){var t;return lN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kB.getJWT();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){o()}),[]),function(){return t}},iF=function(e){if(!lF(e))throw new Error("The value is not a UUID: ".concat(e));return"".concat(e.substring(0,23)).concat(e.substring(24)).toUpperCase()},aF=function(e){var t=e.toLowerCase().split("-");return t.splice(3,1,t[3].substring(0,4),t[3].substring(4)),t.join("-")},sF=function(e){var t=e.match(/(.*)\?mediaId=(.*)/);return t?t[2]:""},lF=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)},cF=["format","io","focuspoint"],uF=["id"];function dF(e){var t,n,r=e.content,o=r.format,i=r.io,a=r.focuspoint,s=hN(r,cF),l=function(){return i.map((function(e){var t=hN(e,uF);return sN({},Object.entries(sN({},t)).reduce((function(e,t){var n=mN(t,2),r=n[0],o=n[1];return o||""===o?sN(sN({},e),{},dN({},r,o)):e}),{}))}))};return sN(sN({},Object.entries(e).reduce((function(e,t){var n=mN(t,2),r=n[0],o=n[1];return["description","groupId"].includes(r)||o&&""!==o?sN(sN({},e),{},dN({},r,o)):e}),{})),{},{content:JSON.stringify((t=a&&("string"==typeof a?a:"".concat(a[0]/100,",").concat(a[1]/100)),n=t?sN(sN({},s),{},{focuspoint:t}):s,sN(sN({},n),{},""===o?{io:l()}:{format:o,io:l()})))})}var pF={getImageInfo:function(e){return bM("/api/v4/media/"+e)},addPreset:function(e){return xM("/v7/dat/presets/add",dF(e))},addGroup:function(e){return xM("/v7/dat/presets/groups/add",{name:e.name})},getAllPresets:function(){return bM("/v7/dat/presets/")},updatePreset:function(e){return wM("/v7/dat/presets/update",dF(e))},updateGroup:function(e){return wM("/v7/dat/presets/groups/update",e)},deletePreset:function(e){return EM("/v7/dat/presets/delete",{data:{id:e}})},deletePresetGroup:function(e,t){return EM("/v7/dat/presets/groups/delete",{data:{id:e,includePresets:t}})}},fF="\n databaseId\n name\n url\n derivatives {\n thumbnail\n }";function hF(e){var n=e.io,o=RD().transformationsDispatch,i=mN(r(!1),2),s=i[0],l=i[1],c=mN(r(!1),2),u=c[0],d=c[1],p=mN(r({name:"",thumbnail:"",coldfusionUUID:""}),2),f=p[0],h=p[1],m=mN(r(void 0),2),g=m[0],v=m[1],y=n.asset&&n.asset.length&&""===f.thumbnail,b=oF();return a((function(){var e,t;y&&(e=n.asset,t=iF(e),d(!0),pF.getImageInfo(t).then((function(e){var n=e.name,r=e.thumbnails.mini;h({name:n,thumbnail:r,coldfusionUUID:t})})).finally((function(){d(!1)})))}),[y,n.asset]),a((function(){b()&&v({getAccessToken:b,hideLogout:!0})}),[b()]),t.createElement(ID,{label:"Image"},t.createElement(t.Fragment,null,t.createElement(mF,{className:QN,onClick:function(){return l(!0)},isSelected:!f.thumbnail.length},f.thumbnail.length||y?t.createElement(bg,{variant:"content",imageUrl:f.thumbnail,backgroundColor:"rgb(255 255 255 / 0%)"},t.createElement(bg.Overlay,{isLoading:u})):t.createElement(Zd,{title:"Edit",icon:t.createElement(zw,null)}),t.createElement(gF,null,t.createElement(vF,null,u?"Loading":f.name.length?f.name:"Choose asset"))),t.createElement(BT,{isOpen:s,onClose:function(){return l(!1)}},t.createElement(xO,{authentication:g},t.createElement(CB,{mode:"SingleSelectFile",language:document.querySelector("html").getAttribute("lang")||"en",assetTypes:["IMAGE"],selectedAssets:f.coldfusionUUID.length?[f.coldfusionUUID]:[],onSuccess:function(e){var t=e[0],r=t.url,i=t.derivatives.thumbnail,a=t.name,s=r||"",c=sF(s),u=i||s;l(!1),h({name:a,thumbnail:u,coldfusionUUID:c}),o({type:"asset",payload:{value:aF(c),id:n.id}})},assetFieldSelection:fF})))))}var mF=Uu.div.withConfig({displayName:"ItemContainer",componentId:"sc-bmwf6h-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],nd.spacing3,nd.spacing4,nd.spacing3,(function(e){return e.isSelected&&nd.gray25}),nd.gray25),gF=Uu.div.withConfig({displayName:"ItemDetails",componentId:"sc-bmwf6h-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),vF=Uu.p.withConfig({displayName:"Title",componentId:"sc-bmwf6h-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],nd.fontSize100,nd.lineHeightText,nd.gray800,nd.spacing4);function yF(e){var n,r=e.io,o=RD().transformationsDispatch;return t.createElement(ID,{label:"Opacity"},t.createElement(ag,{type:"number",placeholder:"100",onChange:function(e){var t=parseInt(e,10);o({type:"opacity",payload:{value:isNaN(t)?100:t,id:r.id}})},value:(null===(n=r.opacity)||void 0===n?void 0:n.toString())||"",iconRight:t.createElement("span",null,"%")}))}function bF(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(hF,{io:n}),t.createElement(yF,{io:n}),t.createElement(oM,{label:"Position",gravity:n.gravity,onChange:function(e){return r({type:"gravity",payload:{value:e,id:n.id}})}}),t.createElement(ZD,{io:n}))}function xF(e){var n=e.color,o=e.onChange,i=e.onChangeValidation,a=mN(r(!0),2),s=a[0],l=a[1],c=function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);u(!!t),o(e)},u=function(e){l(e),i(e)};return t.createElement(Mg,{onChange:function(e){var t=e.substring(1);c(t.toUpperCase())},value:"#".concat(n),trigger:function(e){var r=pN({},(fN(e),e));return t.createElement(t.Fragment,null,t.createElement(ag,{isInvalid:!s,maxLength:6,value:null==n?void 0:n.toUpperCase(),prefix:"#",icon:t.createElement(ng,sN(sN({label:"Color Thumbnail"},r),{},{onClick:function(e){e.stopPropagation(),r.onClick()},icon:t.createElement(bg,{variant:"content",backgroundColor:"#".concat(n),shape:"circle",size:"xs"})})),onChange:c}),!s&&t.createElement(Py.HelperText,{isInvalid:!s},"Please type a valid hex value"))}})}function wF(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(ID,{label:"Color"},t.createElement(Tf,null,t.createElement(EF,null,t.createElement(xF,{color:n.color,onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})}})),t.createElement(CF,null,t.createElement(ag,{type:"number",placeholder:"100",onChange:function(e){var t=isNaN(parseInt(e,10))?"0":e;r({type:"opacity",payload:{value:parseInt(t,10),id:n.id}})},value:n.opacity.toString(),iconRight:t.createElement("span",null,"%")}))))}var EF=Uu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-lch2dr-0"})(["min-width:0;margin-right:",";"],nd.spacing4),CF=Uu.div.withConfig({displayName:"FlexInput",componentId:"sc-lch2dr-1"})(["min-width:0;"]);function kF(e){var n=e.io,r=e.focusPoint,o=e.showEditor,i=e.setShowEditor,a=RD().transformationsDispatch,s=["contrast","brightness","sharpness","saturation"].includes(n.filter),l=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(zD,{transformation:l,onChange:function(e){i&&i({show:!1}),a({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),(n.transform===xD.flip||n.transform===xD.mirror)&&t.createElement(eF,{io:n}),(n.transform===xD.fit||n.transform===xD.scale)&&t.createElement(UD,{width:n.width,height:n.height,id:n.id}),n.transform===xD.fill&&t.createElement(qM,{io:n,focusPoint:r,setShowEditor:i,showEditor:o}),n.transform===xD.background&&t.createElement(XM,{io:n}),n.transform===xD.rotate&&t.createElement(ZD,{io:n}),n.transform===xD.border&&t.createElement(WM,{io:n}),n.transform===xD.extend&&t.createElement(zM,{io:n}),n.transform===xD.crop&&t.createElement($M,{io:n,focuspoint:r,setShowEditor:i,showEditor:o}),n.transform===xD.trim&&t.createElement(ZM,{io:n}),"text"===n.overlay&&t.createElement(TM,{io:n}),"image"===n.overlay&&t.createElement(bF,{io:n}),"box"===n.overlay&&t.createElement(wF,{io:n}),"blur"===n.filter&&t.createElement(YM,{io:n}),"opacity"===n.filter&&t.createElement(GM,{io:n}),s&&t.createElement(XD,{label:vD(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return a({type:"amount",payload:{value:e,id:n.id}})}}))}var SF=[{label:"Auto (recommended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],_F=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function IF(e){var n,o,i=e.options,a=RD().transformationsDispatch,s="custom",l=mN(r(!1),2),c=l[0],u=l[1],d=(null===(n=SF.find((function(e){return e.value===i.format})))||void 0===n?void 0:n.label)||"Select Format",p=c?"Custom":(null===(o=_F.find((function(e){return e.value===String(i.quality)})))||void 0===o?void 0:o.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Format",helpText:"Set the output format"},t.createElement(Ex,{"aria-label":"Format",onChange:function(e){e===s?u(!0):a({type:"format",payload:e})},label:d,value:i.format},SF.map((function(e){return t.createElement(Ex.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(ID,{label:"Quality"},t.createElement(Ex,{"aria-label":"Quality",onChange:function(e){var t=e===s;u(t);var n=t?100:Number(e);a({type:"quality",payload:n})},label:p,value:String(i.quality)},_F.map((function(e){return t.createElement(Ex.Item,{value:e.value,key:e.label},e.label)})),t.createElement(Ex.Divider,null),t.createElement(Ex.Item,{value:s,key:"Custom"},"Custom"))),c&&t.createElement(ID,{label:""},t.createElement(Mx,{value:i.quality,min:60,max:100,onChange:function(e){a({type:"quality",payload:Number(e)})},inputPosition:"right"})))}var TF=function(e){var n,o=e.showEditor,i=e.setShowEditor,a=mN(r([]),2),s=a[0],l=a[1],c=mN(r(!1),2),u=c[0],d=c[1],p=RD(),f=p.transformationsState,h=p.transformationsDispatch;return t.createElement(zv,null,f.content.io.map((function(e,n){var r,a=s.includes(e.id),c=e.transform||e.overlay||e.filter,u=vD((r=c)===xD.mirror?xD.flip:r)||"New transformation",d=OF(e);return t.createElement(t.Fragment,{key:"".concat(e.id,"-").concat(n)},t.createElement(zv.Item,{subtext:d,thumbnail:t.createElement(bg,{variant:"clean",icon:t.createElement(ED,{type:c}),shape:"square"}),rightElements:t.createElement(jF,{isExpanded:a,onDeleteClick:function(t){i&&["fill","crop"].includes(c)&&i({show:!1}),function(e,t){e.stopPropagation(),h({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return function(e){s.includes(e)?l((function(t){return t.filter((function(t){return t!==e}))})):l((function(t){return[].concat(gN(t),[e])}))}(e.id)}},u),a&&t.createElement(kF,{io:e,focusPoint:f.content.focuspoint,showEditor:o,setShowEditor:i,key:"".concat(e.id,"-transformation")}),t.createElement(zv.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(zv.Item,{key:"add-button",onClick:function(){var e=TS();h({type:"addTransformation",payload:{id:e}}),l((function(t){return[].concat(gN(t),[e])})),i&&i({show:!1})},thumbnail:t.createElement(bg,{icon:t.createElement(zw,null),shape:"square"})},"Add transformation"),t.createElement(zv.Divider,{key:"add-button-divider"}),t.createElement(zv.Item,{key:"advanced-button",subtext:"Format: ".concat((null===(n=f.content)||void 0===n||null===(n=n.format)||void 0===n?void 0:n.toUpperCase())||"Auto"," • Quality: ").concat(f.content.quality),thumbnail:t.createElement(bg,{variant:"clean",icon:t.createElement(ED,{type:"advanced"}),shape:"square"}),rightElements:u?t.createElement(pE,null):t.createElement(fE,null),onClick:function(){d(!u)}},"Output options"),u&&t.createElement(IF,{options:f.content,key:"advanced-options"}))},OF=function(e){var t="Focus Point";e.gravity&&(t=vD(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",s=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(s&&"• "+s);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},jF=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(Tf,{alignItems:"center"},t.createElement(dh,{content:"Remove transformation"},t.createElement(Zd,{variant:"clean",icon:t.createElement(gw,{fill:nd.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(pE,null):t.createElement(fE,null))};function zF(e){var n,r,o=e.showEditor,i=e.setShowEditor,a=null!==(n=null===(r=RD().transformationsState.content)||void 0===r||null===(r=r.io)||void 0===r?void 0:r.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(BF,null,t.createElement(AF,null,"Transformations"),t.createElement(NF,null,1===a?"".concat(a," transformation applied"):a>1?"".concat(a," transformations applied"):"No transformations")),t.createElement(PF,null,t.createElement(TF,{showEditor:o,setShowEditor:i})))}var BF=Uu.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],nd.spacing6,nd.white,nd.spacing4),PF=Uu.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),AF=Uu.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],nd.gray800),NF=Uu.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],nd.gray600),DF=function(){return t.createElement(FF,null,t.createElement(RF,null),t.createElement(HF,null,t.createElement($F,{large:!0}),t.createElement($F,null)))},MF=function(){return t.createElement(UF,null)},FF=Uu.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),LF=qu(["0%{background-color:","}100%{background-color:","}"],nd.gray50a,nd.gray100a),RF=Uu.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],LF),HF=Uu.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],nd.spacing4),$F=Uu.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],nd.spacing3,(function(e){return e.large?"110px":"60px"}),nd.radiusSmall,LF),UF=Uu.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],LF);function VF(e){var t=mN(r(),2),n=t[0],o=t[1];return a((function(){var t;(t=e,bM("/v7/featuretreatments/treatment/".concat(t))).then((function(e){o(e.treatment)})).catch((function(t){var n;o("control"),console.error("Something went wrong while fetching the ".concat(e," Split treatment"),t),n=t,ts().captureException(n,function(e){if(e)return function(e){return e instanceof Ga||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Fa.includes(e)))}(e)?{captureContext:e}:e}(undefined))}))}),[e]),n}var WF=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.selectedPreset,s=e.isLoading,l=e.baseURL,c=e.canViewPresets,u=e.canViewTransformations,d=e.showEditor,p=e.setShowEditor,f=RD(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===VF("dat_presets_grouping");return a((function(){var e,t,n,o=!(null!=h&&null!==(e=h.content)&&void 0!==e&&null!==(e=e.io)&&void 0!==e&&e.length)&&(null==h||null===(t=h.content)||void 0===t?void 0:t.quality)===AD.content.quality&&(null==h||null===(n=h.content)||void 0===n?void 0:n.format)===AD.content.format;r===wD.transformations&&o&&m({type:"init"})}),[r,m,h]),t.createElement(qF,{direction:"column"},r===wD.presets?c?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(DF,{key:"preset-skeleton-".concat(e)})}))):t.createElement(gD,{baseURL:l,presets:o,onPresetSelected:n,selectedPreset:i,presetGroupingActive:g}):null:u?t.createElement(GF,null,t.createElement(zF,{showEditor:d,setShowEditor:p})):null)},qF=Uu(Tf).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],nd.white),GF=Uu.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],nd.spacing6);function YF(e){var n=e.url,r=l(null);return d((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(XF,null,t.createElement(KF,null,t.createElement(ZF,null,t.createElement(mE,null)),t.createElement(JF,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(eL,null,n))),t.createElement(QF,null,t.createElement(dh,{content:"Copy URL"},t.createElement(IS.CopyToClipboard,{text:n,onCopy:function(){bx({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(Zd,{variant:"clean",icon:t.createElement(Nw,null),"aria-label":"Copy to clipboard"}))),t.createElement(eD,{alwaysVisible:!0,presetURL:n})))}var XF=Uu.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],nd.white,nd.radiusLarge,nd.elevationStatic),KF=Uu.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),ZF=Uu.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],nd.spacing5,nd.spacing4,nd.gray600),JF=Uu.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],nd.gray800,nd.fontSize100),QF=Uu.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],nd.spacing2),eL=Uu.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),tL=Uu.div.withConfig({displayName:"ImageWrapper",componentId:"sc-1w8edrw-0"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&Ru(["margin-bottom:",";"],nd.spacing8)})),nL=Uu.img.withConfig({displayName:"Image",componentId:"sc-1w8edrw-1"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(nd.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),rL=function(e,t){var n=mN(t,2),r=n[0],o=n[1],i=e.clientWidth*r/100,a=e.clientHeight*o/100;return[Math.ceil(i||0),Math.ceil(a||0)]},oL=function(e,t){var n=mN(t,2),r=n[0],o=n[1],i=r/e.clientWidth*100,a=o/e.clientHeight*100;return[Math.ceil(i||0),Math.ceil(a||0)]},iL=function(e){var t=e.point,n=e.renderedSize,r=e.background;if(n){var o=t-n/2,i=r-n;return o<0?0:o>i?i:o}},aL=Uu.div.withConfig({displayName:"DivStyled",componentId:"sc-1sqkkxm-0"})(["position:absolute;top:0;left:auto;right:auto;bottom:0;right:0;z-index:9;text-align:center;height:","px;width:","px;"],(function(e){return e.height||0}),(function(e){return e.width||0})),sL=Uu.img.withConfig({displayName:"StyledImage",componentId:"sc-1sqkkxm-1"})(["display:",";max-width:100%;max-height:100%;background:",";position:absolute;top:0;left:0;opacity:1;max-width:auto;max-height:auto;height:",";width:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(nd.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px"),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),lL=Uu(aL).withConfig({displayName:"DraggableWrapper",componentId:"sc-1sqkkxm-2"})(["z-index:100;"]),cL=Uu(sL).withConfig({displayName:"PreviewImage",componentId:"sc-1sqkkxm-3"})(["visibility:",";top:","px;left:","px;"],(function(e){return e.displayNone?"hidden":"visible"}),(function(e){return e.top||0}),(function(e){return e.left||0})),uL=Uu.div.withConfig({displayName:"Wrapper",componentId:"sc-1sqkkxm-4"})(["display:flex;justify-content:center;text-align:center,position:relative;width:100%;background-color:#f1f1f1;"]),dL=Uu(iN).withConfig({displayName:"StyledDraggable",componentId:"sc-1sqkkxm-5"})(["position:absolute;top:0;bottom:0;left:0;right:0;"]),pL=Uu.img.withConfig({displayName:"StyledBackground",componentId:"sc-1sqkkxm-6"})(["display:",";max-width:100%;max-height:100%;background:",";opacity:0.5;display:block;"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(nd.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),fL=Uu.div.withConfig({displayName:"DivFocusPoint",componentId:"sc-1sqkkxm-7"})(["position:absolute;cursor:move;height:80px;width:80px;margin:-40px;user-select:none;"]),hL=Uu.div.withConfig({displayName:"StyledPreviewWrapper",componentId:"sc-1sqkkxm-8"})(["display:flex;justify-content:center;text-align:center;overflow:hidden;position:absolute;top:0;height:",";width:",";"],(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),mL=Uu(cL).withConfig({displayName:"FillPreview",componentId:"sc-1sqkkxm-9"})(["object-fit:cover;width:100%;height:100%;object-fit:contain;"]),gL=Uu(mL).withConfig({displayName:"FillPreviewInvisible",componentId:"sc-1sqkkxm-10"})(["visibility:hidden;opacity:0;"]),vL=Uu.div.withConfig({displayName:"FillPreviewWrapper",componentId:"sc-1sqkkxm-11"})(["position:absolute;background-image:url('","');background-size:cover;background-position:",";height:",";width:",";top:","px;left:","px;"],(function(e){return e.background}),(function(e){return e.backgroundPosition}),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"}),(function(e){return e.top||0}),(function(e){return e.left||0})),yL=Uu.div.withConfig({displayName:"EditorMainDiv",componentId:"sc-1sqkkxm-12"})(["position:relative;display:flex;justify-content:center;text-align:center;max-height:100%;width:100%;"]);function bL(){return t.createElement("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"40",cy:"40",r:"39.5",stroke:"white"}),t.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(1 0 0 -1 39 41)",fill:"white"}))}function xL(e){var n=e.url,o=e.isLoading,i=e.backgroundSize,a=e.setIsLoading,s=e.trackPos,l=e.focuspoint,c=e.type,u=e.baseURL,d=mN(r({}),2),p=d[0],f=d[1],h=mN(r(!0),2),m=h[0],g=h[1],v=mN(l||[50,50],2),y=v[0],b=v[1],x=mN(rL(i,[y,b]),2),w=x[0],E=x[1],C=function(e){var t=e.backgroundSize,n=e.renderedImageSize,r=e.type,o=mN(e.focuspoint,2),i=o[0],a=o[1];if(!t.naturalHeight)return{top:0,left:0};if("crop"===r){var s=iL({point:i,renderedSize:n.clientWidth,background:t.clientWidth});return{top:iL({point:a,renderedSize:n.clientHeight,background:t.clientHeight}),left:s}}var l=t.naturalWidth/t.naturalHeight>n.naturalWidth/n.naturalHeight;return Math.ceil(n.naturalWidth/n.naturalHeight)===Math.ceil(t.naturalWidth/t.naturalHeight)?{top:0,left:0}:l?{top:0,left:i-n.clientWidth/2}:{top:a-n.clientHeight/2,left:0}}({type:c,backgroundSize:i,renderedImageSize:p,focuspoint:[w||0,E||0]}),k=C.top,S=C.left,_=function(e){a(!1),function(e){var t,n,r=e.backgroundSize,o=e.setRenderedImageSize,i=e.type,a=e.img.target,s=a.naturalHeight,l=a.naturalWidth,c=l/s;if("crop"===i)t=r.clientWidth*l/r.naturalWidth,n=r.clientHeight*s/r.naturalHeight;else{t=r.clientWidth;var u=l*(n=r.clientHeight)==s*t;n*l<t*s?t=Math.floor(n*c):u||(n=Math.floor(t/c))}o({clientWidth:t,clientHeight:n,naturalHeight:s,naturalWidth:l})}({img:e,setRenderedImageSize:f,backgroundSize:i,type:c})},I=void 0===y||void 0===b||void 0===k||void 0===S,T=function(e,t,n){return e<0?0:e<=t-n?e:t-n};return t.createElement(hL,{width:i.clientWidth,height:i.clientHeight},t.createElement(aL,{width:i.clientWidth,height:i.clientHeight},"crop"===c?t.createElement(cL,{isImageLoading:o||!m,displayNone:I,width:p.clientWidth,height:p.clientHeight,top:k,left:S,src:n,onLoad:_}):t.createElement(t.Fragment,null,t.createElement(gL,{isImageLoading:o&&!m,top:k,left:S,src:n,onLoad:_}),t.createElement(vL,{top:T(k,i.clientHeight,p.clientHeight),left:T(S,i.clientWidth,p.clientWidth),background:u,backgroundPosition:"-".concat(T(S,i.clientWidth,p.clientWidth),"px -").concat(T(k,i.clientHeight,p.clientHeight),"px"),height:p.clientHeight,width:p.clientWidth}))),t.createElement(lL,{width:i.clientWidth,height:i.clientHeight},t.createElement(dL,{bounds:"parent",position:{x:w,y:E},onStart:function(){a(!0),g(!1)},onStop:function(e,t){s(t),g(!0)}},t.createElement(fL,null,t.createElement(bL,null)))))}function wL(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality,s=r.focuspoint;if(o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),"string"==typeof s&&n.push({key:"focuspoint",value:s}),Array.isArray(s)){var l=mN(s,2),c=l[0],u=l[1];(c||u)&&n.push({key:"focuspoint",value:"".concat((c||50)/100,",").concat((u||50)/100)})}return i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}function EL(e){var n=e.url,i=e.baseURL,s=e.isLoading,l=e.setIsLoading,c=e.type,u=e.defaultValues,d=RD(),p=d.transformationsState,f=d.transformationsDispatch,h=mN(r({}),2),m=h[0],g=h[1],v=mN(r(i),2),y=v[0],b=v[1],x=mN(r(!0),2),w=x[0],E=x[1],C=mN(r(!1),2),k=C[0],S=C[1],_=o((function(){return sN(sN({},p),{},{content:sN(sN({},p.content),{},{focuspoint:void 0,io:p.content.io.filter((function(e){var t=e.transform;return!["crop","fill"].includes(t)}))})})}),[p]);a((function(){var e=wL(_,u);b("".concat(i,"?").concat(e)),E(!1)}),[u,_,i]);var I=p.content.focuspoint;return t.createElement(yL,{className:"Editor Main"},t.createElement(uL,null,t.createElement(pL,{id:"backgroundImage",src:y||i,alt:"",isImageLoading:s||w,onLoad:function(e){var t=e.target,n=t.clientHeight,r=t.clientWidth,o=t.naturalHeight,i=t.naturalWidth;g({clientHeight:n,clientWidth:r,naturalHeight:o,naturalWidth:i}),k||S(!0)}}),k&&t.createElement(xL,{type:c,url:n,baseURL:y||i,isLoading:s,backgroundSize:m,setIsLoading:l,trackPos:function(e){var t=[e.x||0,e.y||0],n=mN(oL(m,t),2);!function(e){f({type:"focuspoint",payload:{value:e,id:p.content.io[0].id}})}([n[0]||0,n[1]||0])},focuspoint:I})))}function CL(e){var n=e.mediaInfo,i=e.url,s=e.canViewTransformations,c=e.hideBottomBar,u=e.activeTab,d=e.onBack,p=e.onDone,f=e.onApply,h=e.onShowTransformations,m=e.hasActiveChanges,g=e.showEditor,v=e.defaultValues,y=n.name,b=n.extension,x=n.baseURL,w=mN(r(!0),2),E=w[0],C=w[1],k=o((function(){return nD(i)}),[i]),S=l();return a((function(){var e;C(!0),null===(e=S.current)||void 0===e||e.blur()}),[i]),t.createElement(kL,null,t.createElement(SL,{justifyContent:"space-between",alignItems:"center"},t.createElement(_L,null,t.createElement(Zd,{ref:S,variant:"clean",icon:t.createElement(Vw,null),"aria-label":"Go back",onClick:d})),t.createElement(TL,null,y,".",b),u===wD.presets&&s&&t.createElement(jL,{variant:"clean",onClick:h,icon:t.createElement(CD,null)},"Transform"),u===wD.transformations&&("function"==typeof f&&m?t.createElement(IL,null,t.createElement(jL,{variant:"primary",onClick:f},"Apply transformations")):t.createElement(jL,{variant:"primary",onClick:p},"Done"))),g.show?t.createElement(tL,{hideBottomBar:c},x&&t.createElement(EL,{type:g.type,baseURL:x,url:k,isLoading:E,setIsLoading:C,defaultValues:v})):t.createElement(tL,{hideBottomBar:c},i&&t.createElement(nL,{src:k,alt:"",isImageLoading:E,onLoad:function(){C(!1)}}),E&&t.createElement(MF,null)),!c&&t.createElement(OL,null,t.createElement(YF,{url:i})))}var kL=Uu.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-0"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),SL=Uu(Tf).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-1"})(["height:90px;width:100%;"]),_L=Uu.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-2"})(["margin-left:",";"],nd.layoutSpacing1),IL=Uu.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-3"})(["display:flex;gap:",";"],nd.spacing4),TL=Uu.span.withConfig({displayName:"ImageName",componentId:"sc-dpw9jp-4"})(["font-size:",";width:100%;line-height:24px;margin-left:",";"],nd.fontSize200,nd.spacing4),OL=Uu.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],nd.spacing5),jL=Uu(Zd).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-6"})(["float:right;margin-right:",";"],nd.layoutSpacing1),zL=["content"],BL=function(e){return e.content.io.map((function(e){return sN({},e)}))},PL=function(e){var t=e.preset,n=e.ioId;return sN(sN({},t),{},{content:sN(sN({},t.content),{},{io:[].concat(gN(BL(t)),[sN(sN({},ND),{},{id:n,transform:xD.fill})])})})},AL=function(e){var t=e.preset,n=e.ioId;return sN(sN({},t),{},{content:sN(sN({},t.content),{},{io:t.content.io.filter((function(e){return e.id!==n}))})})};function NL(e,t){var n;switch(t.type){case"init":return AD;case"edit":return sN(sN({isValid:!0},t.payload),{},{content:sN(sN({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return sN(sN({},e),{},{id:TS()})}))})});case"addTransformation":return PL({preset:e,ioId:t.payload.id});case"deleteTransformation":return AL({preset:e,ioId:t.payload.id});case"isValid":case"name":case"description":return sN(sN({},e),{},(dN(n={},t.type,t.payload),dN(n,"content",sN(sN({},e.content),{},{io:BL(e)})),n));case"format":case"quality":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:BL(e)},t.type,t.payload))});case"focuspoint":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:BL(e)},t.type,t.payload.value))});case"transformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},DL(t.payload.value)),{},dN({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value))}))})});case"opacity":case"asset":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value.toString()))}))})});case"groupId":return sN(sN({},e),{},{groupId:t.payload});default:return e}}var DL=function(e){switch(e){case"fill":case"fit":case"scale":return sN(sN({},ND),{},{height:1e3,width:1e3});case"extend":return sN(sN({},ND),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return sN(sN({},ND),{},{height:1e3,width:1e3,path:"square"});case"background":return sN(sN({},ND),{},{color:"FFFFFF"});case"border":return sN(sN({},ND),{},{color:"FFFFFF",width:1});case"rotate":return sN(sN({},ND),{},{angle:0});case"opacity":return sN(sN({},ND),{},{amount:100});case"blur":return sN(sN({},ND),{},{radius:0});case"text":return sN(sN({},ND),{},{content:"Add Text Here",font:_D.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return sN(sN({},ND),{},{opacity:50,angle:0,gravity:"center"});case"box":return sN(sN({},ND),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return sN(sN({},ND),{},{amount:0})}};function ML(e){var n,o,i=e.mediaInfo,s=e.canViewPresets,c=e.canViewTransformations,u=e.hideBottomBar,d=void 0!==u&&u,f=e.initialTransformations,h=e.onDone,m=e.onApply,g=e.onBack,v=s?wD.presets:wD.transformations,y=mN(r(i.baseURL),2),b=y[0],x=y[1],w=mN(r(v),2),E=w[0],C=w[1],k=mN(r(""),2),S=k[0],_=k[1],I=mN(r({show:!1}),2),T=I[0],O=I[1],j=RD(),z=j.transformationsState,B=j.transformationsDispatch,P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=sN(sN({},AD),{},{content:sN(sN({},AD.content),{},{io:t})}),o=mN(r([]),2),i=o[0],s=o[1],c=mN(r({}),2),u=c[0],d=c[1],f=mN(r(!1),2),h=f[0],m=f[1],g=mN(p(NL,n),2),v=g[0],y=g[1],b=l(!0);a((function(){return e&&(m(!0),x()),function(){b.current=!1}}),[e]);var x=function(){pF.getAllPresets().then((function(e){b.current&&(s(function(e){var t,n,r=e.presets.map((function(e){var t=e.content;return sN(sN({},hN(e,zL)),{},{type:"Preset",content:t&&JSON.parse(t)})})),o=null!==(t=null==e||null===(n=e.groups)||void 0===n?void 0:n.map((function(e){return sN(sN({},pN({},(fN(e),e))),{},{type:"Group"})})))&&void 0!==t?t:[];return r.concat(o)}(e)),d(function(e){var t=e.groups.reduce((function(e,t){return sN(sN({},e),{},dN({},t.id,sN(sN({},t),{},{presetCount:0})))}),{});return e.presets.forEach((function(e){var n=e.groupId;if(n&&t[n]){var r=t[n].presetCount;t[n].presetCount=r+1}})),t}(e)),m(!1))})).catch((function(e){b.current&&(m(!1),bx({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presetsOrGroups:i,setPresetsOrGroups:s,setGroups:d,groups:u,preset:v,dispatch:y,isLoading:h,defaultValues:n}}(s,f),A=P.presetsOrGroups,N=P.isLoading,D=P.defaultValues,M=i.baseURL.split("/"),F=M[M.length-1],L=z.content.io.length>0,R=uS((function(){var e=z.content.io.length>0,t=z.content.format!==AD.content.format||z.content.quality!==AD.content.quality;if(e||t){var n=wL(z,D);x("".concat(i.baseURL,"?").concat(n))}else x(i.baseURL)}),500);return a((function(){return R(),function(){return R.cancel()}}),[R,z,i.baseURL]),a((function(){var e,t;B({type:"focuspoint",payload:{value:[Math.floor(100*(null==i||null===(e=i.activeOriginalFocusPoint)||void 0===e?void 0:e.x)/i.width),Math.floor(100*(null==i||null===(t=i.activeOriginalFocusPoint)||void 0===t?void 0:t.y)/i.height)],id:void 0}})}),[null==i||null===(n=i.activeOriginalFocusPoint)||void 0===n?void 0:n.x,null==i||null===(o=i.activeOriginalFocusPoint)||void 0===o?void 0:o.y,i.height,i.width,B]),a((function(){s||c&&C(wD.transformations)}),[s,c]),t.createElement(FL,null,t.createElement(LL,{alignItems:"stretch"},t.createElement(CL,{mediaInfo:i,url:b,canViewTransformations:c,activeTab:E,onApply:m?function(){return m(b,z)}:void 0,onBack:function(){return g(b,z)},hasActiveChanges:L,onDone:function(){var e=!s&&!L;O&&O({show:!1}),e?h(b,z):s&&C(wD.presets)},onShowTransformations:function(){c&&C(wD.transformations)},hideBottomBar:d,showEditor:T,defaultValues:D}),t.createElement(WF,{onPresetSelected:function(e){""!==e?x(i.baseURL.split("/transform")[0]+"/transform/".concat(e,"/").concat(rD(i.baseURL),"/").concat(F)):(B({type:"init"}),x(i.baseURL)),_(e)},activeTab:E,presets:A,selectedPreset:S,isLoading:N,baseURL:i.baseURL,canViewPresets:s,canViewTransformations:c,setShowEditor:O,showEditor:T})))}var FL=Uu.div.withConfig({displayName:"MainWrapper",componentId:"sc-inplsu-0"})(["overflow:hidden;height:100%;width:100%;"]),LL=Uu(Tf).withConfig({displayName:"StyledFlex",componentId:"sc-inplsu-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;"]);Uu(Vh).withConfig({displayName:"StyledCheckbox",componentId:"sc-bpy0n2-0"})(["padding-top:",";padding-bottom:",";"],nd.spacing3,nd.spacing3),Uu(Tf).withConfig({displayName:"PresetNameIconContainer",componentId:"sc-1xqeu8r-0"})(["padding-left:",";"],(function(e){return e.belongsToAGroup?nd.spacing5:"0"})),Uu.div.withConfig({displayName:"DateContainer",componentId:"sc-1xqeu8r-1"})(["font-size:",";color:",";"],nd.fontSize75,nd.gray600),Uu.div.withConfig({displayName:"Name",componentId:"sc-1xqeu8r-2"})(["font-size:",";color:",";flex:1;"],nd.fontSize100,nd.gray800),Uu(Tf).withConfig({displayName:"DescriptionContainer",componentId:"sc-1xqeu8r-3"})(["flex-direction:column;flex:1;padding:0 ",";"],nd.spacing4),Uu.div.withConfig({displayName:"Description",componentId:"sc-1xqeu8r-4"})(["font-size:",";color:",";"],nd.fontSize75,nd.gray600),Uu(Tf).withConfig({displayName:"Actions",componentId:"sc-1xqeu8r-5"})(["margin-left:",";justify-content:end;"],nd.spacing4),Uu(Tf).withConfig({displayName:"GroupNameIconContainer",componentId:"sc-1wo12bf-0"})([""]),Uu(Tf).withConfig({displayName:"PresetGroupHeader",componentId:"sc-n34u1w-0"})(["z-index:1;position:sticky;z-index:1;top:var(--pageHeaderTopPosition);margin-bottom:",";padding:"," ",";background:",";"],nd.spacing7,nd.spacing5,nd.spacing6,nd.white),Uu(Tf).withConfig({displayName:"PresetGroupHeaderTitle",componentId:"sc-n34u1w-1"})(["flex:1 0 0;align-self:stretch;height:40px;"]),Uu.label.withConfig({displayName:"HeaderText",componentId:"sc-n34u1w-2"})([""," min-width:200px;flex:1 0 0;"],If.uiTextL),Uu.header.withConfig({displayName:"Header",componentId:"sc-1ty8ai5-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],nd.spacing4,nd.spacing7,nd.spacing5,nd.spacing6,nd.white),Uu.h3.withConfig({displayName:"Title",componentId:"sc-1ty8ai5-1"})([""," margin:0;"],If.uiTextL);var RL=Uu.p.withConfig({displayName:"Text",componentId:"sc-17jdf49-0"})([""," color:",";margin:0;"],If.uiTextS,nd.gray800a);Uu(RL).withConfig({displayName:"SubTitle",componentId:"sc-17jdf49-1"})([""," font-weight:bold;margin:0;margin-bottom:0;"],If.uiTextS),Uu(RL).withConfig({displayName:"Title",componentId:"sc-17jdf49-2"})([""," font-weight:bold;margin:0;margin-bottom:",";"],If.uiTextS,nd.spacing3),Uu.p.withConfig({displayName:"TransparentText",componentId:"sc-17jdf49-3"})([""," color:",";margin-bottom:",";margin-top:",";height:20px;"],If.uiTextS,nd.gray400a,nd.spacing1,nd.spacing1),Uu.div.withConfig({displayName:"TitleIconWrapper",componentId:"sc-17jdf49-4"})(["display:flex;align-items:center;display:flex;padding:"," 0px;"],nd.spacing3);var HL,$L,UL,VL,WL,qL,GL,YL,XL,KL,ZL,JL=function(e){return Uu(e).withConfig({componentId:"sc-17jdf49-5"})(["margin-right:",";width:12px;height:12px;color:",";"],nd.spacing3,nd.gray800a)};function QL(){return(QL=uN(lN().mark((function e(t){var n;return lN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:return e.prev=2,e.next=5,kB.getJWT();case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return",t);case 8:return e.abrupt("return",sN(sN({},t),{},{headers:sN(sN({},t.headers),{},{Authorization:"Bearer ".concat(n)})}));case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}Uu(Tf).attrs((function(){return{justifyContent:"space-between",alignItems:"center",gap:"1"}})).withConfig({displayName:"StyledFlex",componentId:"sc-17jdf49-6"})(["margin:0;padding:0;height:20px;margin-bottom:",";","{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}"],nd.spacing1,RL),Uu.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-17jdf49-7"})(["margin:"," 0 0 0;display:flex;justify-content:center;"],nd.spacing5),Uu.div.withConfig({displayName:"MainWrapper",componentId:"sc-17jdf49-8"})(["margin-bottom:",";"],nd.spacing7),function(e){e.totalViews="Total views",e.website="Website",e.datPresets="DAT Presets",e.transformations="Transformations",e.typeOfUrl="Type of URL"}(HL||(HL={})),function(e){e.table="table",e.graph="graph"}($L||($L={})),function(e){e.timestamp="timestamp",e.website="website",e.transformation="transformation",e.preset="preset"}(UL||(UL={})),function(e){e.views="views",e.use="use"}(VL||(VL={})),function(e){e.viewsOverTime="viewsOverTime",e.websitesOverTime="websitesOverTime",e.transformations="transformations",e.presets="presets"}(WL||(WL={})),yM.interceptors.request.use((function(e){return function(e){return QL.apply(this,arguments)}(e)}),(function(e){return Promise.reject(e)})),dN(qL={},WL.viewsOverTime,""),dN(qL,WL.websitesOverTime,"&aggregation=website"),dN(qL,WL.transformations,"&aggregation=transformations"),dN(qL,WL.presets,"&aggregation=presets"),Uu.div.withConfig({displayName:"TooltipGuide",componentId:"sc-ikpb3e-0"})(["width:10px;height:10px;postion:absolute;top:","px;left:","px;"],(function(e){return e.top||0}),(function(e){return e.left||0})),Uu.div.withConfig({displayName:"Wrapper",componentId:"sc-1eva1zc-0"})(["height:350px;width:100%;max-width:",";position:relative;"],(function(e){return e.maxWidth||"auto"})),HL.totalViews,dN(GL={},WL.websitesOverTime,{sortingColumn:VL.views,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.transformations,{sortingColumn:VL.use,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.viewsOverTime,{sortingColumn:UL.timestamp,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.presets,{sortingColumn:VL.views,isAscending:!1,dateFiltering:{interval:"months"}}),function(e){e.metricType="Metric Type",e.visualization="Visualization",e.metricsModal="Metrics Modal",e.statisticsTab="Statistics Tab"}(YL||(YL={})),function(e){e.selected="Selected",e.opened="Opened",e.closed="Closed"}(XL||(XL={})),dN(KL={},WL.viewsOverTime,{key:UL.timestamp,value:VL.views}),dN(KL,WL.websitesOverTime,{key:UL.website,value:VL.views}),dN(KL,WL.transformations,{key:UL.transformation,value:VL.use}),dN(KL,WL.presets,{key:UL.preset,value:VL.views}),dN(ZL={},UL.timestamp,"Month"),dN(ZL,UL.website,"Website"),dN(ZL,UL.transformation,"Transformation"),dN(ZL,UL.preset,"Preset"),dN(ZL,VL.views,"Views"),dN(ZL,VL.use,"Usage"),Uu.div.withConfig({displayName:"Container",componentId:"sc-12s3spg-0"})(["display:flex;flex:none;flex-grow:1;flex-direction:column;gap:",";align-items:flex-start;order:0;padding:"," 0;"],nd.spacing2,nd.spacing5),Uu.div.withConfig({displayName:"ItemsRow",componentId:"sc-12s3spg-1"})(["display:flex;flex:none;flex-grow:0;flex-direction:row;gap:",";align-items:flex-start;order:0;height:68px;padding:0 ",";border-radius:5px;"],nd.spacing2,nd.spacing5);var eR=Uu.div.withConfig({displayName:"ItemUnselected",componentId:"sc-12s3spg-2"})(["flex:none;flex-grow:1;order:0;width:",";height:68px;border-radius:5px;background:",";cursor:pointer;&:hover{background-color:",";color:",";}",""],(function(e){return 3===e.itemsPerRow?"165px":"123px"}),nd.gray25,nd.gray50,nd.gray800,(function(e){return e.isDotted?"\n\t\t::after {\n\t\t\tcontent: '.';\n\t\t\tposition: relative;\n\t\t\tbottom: ".concat(nd.spacing5,";\n\t\t\tdisplay: grid;\n\t\t\twidth: 4px;\n\t\t\theight: 4px;\n\t\t\tpadding: 0;\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #09f;\n\t\t\tcolor: #09f0;\n\t\t\tleft: ").concat(3===e.itemsPerRow?"80px":"60px",";\n\t\t}\n\t"):""}));Uu(eR).withConfig({displayName:"ItemSelected",componentId:"sc-12s3spg-3"})(["background:",";color:",";&:hover{background-color:",";color:",";}",""],nd.blue500,nd.white,nd.blue600,nd.white,(function(e){return e.isDotted?"\n\t::after {\n\t\tbackground: ".concat(nd.white,";\n\t}\n\t"):""})),Uu(eR).withConfig({displayName:"ItemInBetween",componentId:"sc-12s3spg-4"})(["background:",";color:",";&:hover{background-color:",";}"],nd.blue100,nd.gray800,nd.blue200),Uu.div.withConfig({displayName:"ItemText",componentId:"sc-12s3spg-5"})(["position:relative;display:flex;flex-direction:column;align-items:center;height:40px;padding-top:14px;padding-bottom:14px;"," letter-spacing:0.01em;text-align:center;"],If.uiTextM),Uu.div.withConfig({displayName:"StyledContainer",componentId:"sc-zdosa4-0"})(["min-width:500px;.rdp-months{display:flex;gap:16px;}"]),Uu(Tf).withConfig({displayName:"FooterContainer",componentId:"sc-zdosa4-1"})(["margin-top:",";"],nd.spacing4),Uu((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 8c0 1.1-.9 2-2 2a1.7 1.7 0 01-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56A1.7 1.7 0 0119 8c0-1.1.9-2 2-2s2 .9 2 2z"}}]})(e)})).withConfig({displayName:"GraphIcon",componentId:"sc-1a1xt2-0"})(["width:22px;"]),Uu((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-6V5h6v6zm-8-6v6H5V5h6zm-6 8h6v6H5v-6zm8 6v-6h6v6h-6z"}}]})(e)})).withConfig({displayName:"TableIcon",componentId:"sc-1a1xt2-1"})(["width:18px;height:18px;"]);var tR=Uu(Zd).withConfig({displayName:"ButtonGroupButton",componentId:"sc-1a1xt2-2"})(["display:flex;flex-direction:row;justify-content:center;width:46px;height:36px;border-radius:",";align-items:center;padding:0px 10px;"],nd.radiusMedium);Uu(tR).withConfig({displayName:"ActiveButtonGroupButton",componentId:"sc-1a1xt2-3"})(["background:",";box-shadow:",";"],nd.gray10,nd.elevationStatic),Uu.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1a1xt2-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";gap:",";width:98px;height:",";background:",";border-radius:",";"],nd.spacing1,nd.spacing1,nd.spacing8,nd.gray50a,nd.radiusLarge),Uu.div.withConfig({displayName:"Left",componentId:"sc-1a1xt2-5"})(["display:flex;flex-direction:row;align-items:center;padding:0;gap:",";height:",";"],nd.spacing3,nd.spacing8),Uu(Tf).withConfig({displayName:"Filters",componentId:"sc-1a1xt2-6"})(["padding:"," "," "," 0;height:56px;"],nd.spacing3,nd.spacing6,nd.spacing3),Uu.div.withConfig({displayName:"StyledDropdown",componentId:"sc-1a1xt2-7"})(["& > div{z-index:1;}"]),Wu(["#layers > div{z-index:1032;}"]),Uu.div.withConfig({displayName:"Wrapper",componentId:"sc-iweq3l-0"})(["padding:"," 0 0 0;"],nd.spacing6),nd.blue900,nd.blue100,nd.blue500,nd.teal500,nd.purple500,nd.magenta500,nd.yellow500,nd.teal700,nd.magenta300,nd.purple300,Uu.div.withConfig({displayName:"WebsiteContainer",componentId:"sc-lus667-0"})(["color:#99a7ad;"]),Uu.div.withConfig({displayName:"ViewsContainer",componentId:"sc-lus667-1"})(["color:#ffffff;"]),Uu.div.withConfig({displayName:"TooltipContainer",componentId:"sc-lus667-2"})(["flex-direction:column;align-items:flex-start;padding:8px 12px;gap:8px;background:rgba(0,34,51,0.9);box-shadow:0px 0px 1px rgba(0,34,51,0.1),0px 2px 4px -1px rgba(0,34,51,0.1);border-radius:5px;flex:none;order:1;flex-grow:0;z-index:1;"]),Uu.i.withConfig({displayName:"Icon",componentId:"sc-24wsyz-0"})(["padding:0;margin:0;display:inline-block;width:16px;height:16px;background:",";"],(function(e){return e.color})),Uu.div.withConfig({displayName:"Wrapper",componentId:"sc-24wsyz-1"})(["padding:",";min-width:240px;"],nd.spacing4),Uu.div.withConfig({displayName:"MinHeightDiv",componentId:"sc-gqtbev-0"})(["min-height:488px;"]),Uu.span.withConfig({displayName:"BoldVerticalNavTitle",componentId:"sc-16u0rfh-0"})(["font-weight:600;"]),Uu.div.withConfig({displayName:"DivWithBottomPadding",componentId:"sc-16u0rfh-1"})(["margin-bottom:",";"],nd.spacing6),JL(rE),JL((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z"}}]})(e)})),JL((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}}]})(e)})),JL((function(e){return Nf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}));function nR(e){var n,o=e.transformBaseUrl,i=e.assetName,s=e.extension,l=e.transformation,c=e.setTransformation,u=e.closeDat,d=nl(),p=r(),f=p[0],h=p[1],g=r(),v=g[0],y=g[1];a((function(){var e=d.querySelector(".cv-root");e&&h(e)}),[d]);var b=function(e,t){e&&l&&c({url:e,preset:t,asset:l.asset}),u()},x=function(e,t){E(t)&&l?y({url:e,preset:t,asset:l.asset}):b(e,t)},w=function(){return y(void 0)},E=function(e){return e.content.io.length>0};return f?m(t.createElement(iR,null,t.createElement(aR,{mediaInfo:{extension:s,baseURL:o,name:i,width:1,height:1},canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:b,onDone:x,onBack:x,initialTransformations:null===(n=null==l?void 0:l.preset)||void 0===n?void 0:n.content.io}),t.createElement(Tb,{isOpen:!!v,title:"Transformations not yet applied",container:f,onClose:w,actionPrimary:t.createElement(Zd,{variant:"primary",onClick:function(){b(null==v?void 0:v.url,null==v?void 0:v.preset),w()}},"Apply transformations"),actionSecondary:t.createElement(Zd,{variant:"secondary",onClick:w},"Cancel"),actionTertiary:t.createElement(Zd,{variant:"secondary",onClick:function(){c(void 0),w(),u()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),f):null}var rR,oR,iR=Uu.div(rR||(rR=Vs(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),nd.white,nd.radiusBase),aR=Uu((function(e){return t.createElement(HD,null,t.createElement(ML,sN({},e)))}))(oR||(oR=Vs(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),sR=n(null);function lR(e){var n=r(),i=n[0],a=n[1],s=r(""),l=s[0],c=s[1],u=r(""),d=u[0],p=u[1],f=r(""),h=f[0],m=f[1],g=function(e,t,n){c(e),m(n),p(t.extensions[0]||""),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},v=o((function(){return{transformation:i,setTransformation:a,openDat:g,closeDat:function(){return c("")}}}),[i]);return t.createElement(sR.Provider,{value:v},e.children,l&&t.createElement(nR,{transformBaseUrl:l,assetName:h,extension:d,transformation:i,setTransformation:a,closeDat:function(){return c("")}}))}function cR(){var e=i(sR);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function uR(e){var n,o,i,s,l=e.transformBaseUrl,c=e.asset,u=e.toggleDropdown,d=cR(),p=d.transformation,f=d.openDat,h=r(),m=h[0],g=h[1],v=null!==(s=null===(i=null===(o=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===o?void 0:o.io)||void 0===i?void 0:i.length)&&void 0!==s?s:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(zv.Divider,null),t.createElement(pR,{thumbnail:p&&0!==v?t.createElement(bg,{variant:"content",imageUrl:m,"data-testid":"thumbnail-image"}):t.createElement(bg,{icon:t.createElement(Kw,null),"data-testid":"crop-icon"}),rightElements:t.createElement(vE,null),onClick:function(){u(),f(l,c,c.name)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var dR,pR=Uu(zv.Item)(dR||(dR=Vs(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),fR=n(null);function hR(e){var n=r([]),i=n[0],s=n[1],l=r(),c=l[0],u=l[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],s=FE(),l=s.selectionMode,c=s.language,u=JC(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Hs(t,void 0,void 0,(function(){var e,t,n;return $s(this,(function(o){switch(o.label){case 0:return r.length?[4,ak(r,u,c)]:[3,2];case 1:e=o.sent(),d||WE(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),o}(c),p=RE(),f=cR().transformation;function h(){s([])}function m(e){s((function(t){var n=e.filter((function(e){return!mR(t,e)}));return Us(Us([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],i.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!mR(t,e)})),r=e.filter((function(e){return mR(t,e)}));return Us(Us([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){s((function(t){return mR(t,e)?t.filter((function(t){return t.value.id!==e.id})):Us(Us([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){m(d)}),[d]),a((function(){f&&(h(),m([null==f?void 0:f.asset]))}),[f]);var y=o((function(){return{selection:i,preselectedAssetIds:c,clear:h,selectAssets:m,toggleAssets:g,toggleCollection:v}}),[i]);return t.createElement(fR.Provider,{value:y},e.children)}function mR(e,t){return e.some((function(e){return e.value.id===t.id}))}function gR(){var e=i(fR);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function vR(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,l=RE(),c=Gs()[1],u=gR(),d=FE().hideExternalAccess;return t.createElement("div",{id:r.id,style:s,className:wE("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Mh,{contextAction:!d&&t.createElement(Mh.ContextActionButton,{"aria-label":Kx("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(kw,null)),selectButtonAriaLabel:Kx(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return c({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(Mh.Frame,null,t.createElement(Mh.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Mh.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Mh.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},zE(r.assetCount,Kx("{} asset"),Kx("{} assets")))))}function yR(e){var t=r(void 0),n=t[0],o=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var r=n.getBoundingClientRect();o({width:r.width,height:r.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function bR(e){var n=Ux(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(FC,{className:wE(!o&&"hidden")})))}function xR(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function wR(e){return t.createElement(TR,null,t.createElement(OR,null,t.createElement(xR,null),t.createElement(jR,null)),t.createElement(zR,null,Kx("No results found")),t.createElement(BR,null,Kx("Try adjusting the filter to find assets.")),t.createElement(PR,null,t.createElement(Zd,{variant:"primary",title:Kx("Reset filters"),onClick:e.onReset},Kx("Reset filters"))))}var ER,CR,kR,SR,_R,IR,TR=Uu.div(ER||(ER=Vs(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),OR=Uu.div(CR||(CR=Vs(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),nd.gray25),jR=Uu(_w)(kR||(kR=Vs(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),nd.spacing2,nd.gray300),zR=Uu.h1(SR||(SR=Vs(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),nd.spacing6,nd.fontSize400),BR=Uu.span(_R||(_R=Vs(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),nd.spacing5,nd.colorTextDisabled),PR=Uu.div(IR||(IR=Vs(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),nd.spacing7);function AR(e){var n,o,i=r(null),a=i[0],s=i[1],l=yR(a).dimensions,c=gR().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Zs().setSearch,d=e.connection,p=d.data,f=d.isLoading,h=d.loadMore,m=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(AE,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"},BE)}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(wR,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(bR,{hasNextPage:m,isLoading:f,loadMore:h},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement(vR,{key:e.id,isSelected:c.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}var NR="\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";function DR(){var e=Js("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=JC(),i=r({tag:"Loading",value:null}),s=i[0],l=i[1],c=!1,u=function(t){return Hs(n,void 0,void 0,(function(){var n,r,i;return $s(this,(function(a){switch(a.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=Ls(Ls({},e),{searchTerm:null!==(i=e.searchTerm)&&void 0!==i?i:null,after:null!=t?t:null}),[4,JE(NR,n,o)];case 1:return r=a.sent(),c||(WE(r)?l({tag:"Failure",value:r.error}):d(r,t)),[2]}}))}))},d=function(e,t){p()&&t?l((function(t){var n,r,o=null!==(r=null===(n=p(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:Ls(Ls({},e.value.collections),{nodes:Us(Us([],o,!0),e.value.collections.nodes,!0)})}}})):l({tag:"Loaded",value:e.value})},p=function(e){var t,n=null!=e?e:s;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return u(),function(){c=!0}}),[e.searchTerm,e.orderBy]),{data:s,executeQuery:function(){return u()},isLoading:!s||"Loading"===s.tag,loadMore:function(){var e;return u(null===(e=p())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(t=p())||void 0===t?void 0:t.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:Ms("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(hw,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},zE(i.data.value.collections.totalCount,Kx("{} collection"),Kx("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(TE,{options:["CREATED_AT","NAME"]}),t.createElement(yE,null)),t.createElement(AR,{connection:i}))}var MR=n(null);function FR(e){var n=e.children,i=e.hideLimitedUse,s=void 0!==i&&i,l=e.predefinedFilter,c=r((null==l?void 0:l.assetType_in)?Us([],null==l?void 0:l.assetType_in,!0):[]),u=c[0],d=c[1],p=r([]),f=p[0],h=p[1],m=r((null==l?void 0:l.tagNames_in)?Us([],l.tagNames_in,!0):[]),g=m[0],v=m[1],y=r(),b=y[0],x=y[1],w=r({}),E=w[0],C=w[1];function k(e){d((function(t){return LR(t,e)}))}function S(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.assetType_in)||void 0===t?void 0:t.includes(e))||d((function(t){return RR(t,e)}))}function _(e){h((function(t){return LR(t,e.id)})),C((function(t){var n;return Ls(Ls({},t),((n={})[e.id]=e,n))}))}function I(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.metapropertyOptionId_in)||void 0===t?void 0:t.includes(e.id))||(h((function(t){return RR(t,e.id)})),C((function(t){var n=t,r=e.id;return Rs(n,["symbol"==typeof r?r:r+""])})))}function T(e){(null==l?void 0:l.metapropertyOptionId_in)&&(h(l.metapropertyOptionId_in),C(e))}function O(e){v((function(t){return LR(t,e)}))}function j(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.tagNames_in)||void 0===t?void 0:t.includes(e))||v((function(t){return RR(t,e)}))}function z(){d((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.assetType_in)?Us([],l.assetType_in,!0):[]),h((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?Us([],l.metapropertyOptionId_in,!0):[]),C((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}(E,l.metapropertyOptionId_in):{}),v((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.tagNames_in)?Us([],l.tagNames_in,!0):[])}a((function(){x(!s&&void 0)}),[s]);var B=f.map((function(e){return E[e]})),P=o((function(){return{assetTypes:u,metaproperties:B,metapropertyIds:f,tags:g,isLimited:b,addAssetType:k,removeAssetType:S,addMetaproperty:_,removeMetaproperty:I,setPredefinedMetaproperties:T,addTag:O,removeTag:j,clear:z}}),[u,B,g,b,f]);return t.createElement(MR.Provider,{value:P},n)}function LR(e,t){return e.includes(t)?e:Us(Us([],e,!0),[t],!1)}function RR(e,t){return e.filter((function(e){return e!==t}))}function HR(){var e=i(MR);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function $R(e){return Kx({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function UR(e){switch(e){case"AUDIO":return jw;case"DOCUMENT":return Lw;case"IMAGE":return tE;case"VIDEO":return Ow;case"ARCHIVE":return Bw}}function VR(e){return t.createElement(qR,{$isVisible:e.isVisible},t.createElement(Zd,{icon:t.createElement(uE,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var WR,qR=Uu.div(WR||(WR=Vs(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function GR(e){return t.createElement(XR,{$isVisible:e.isVisible},t.createElement(Zd,{icon:t.createElement(cE,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var YR,XR=Uu.div(YR||(YR=Vs(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function KR(e){var n=r(0),o=n[0],i=n[1],s=l(null),c=yR(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=o>0,m=p>5&&o!==p;return t.createElement("div",{className:wE("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(GR,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-o,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(VR,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function ZR(e){var n=wE("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function JR(e){return t.createElement(ZR,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(e.title)},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(dE,{onClick:e.onClick,title:Kx("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function QR(){var e=HR(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(tH,null,t.createElement(Zd,{variant:"clean",isSmall:!0,onClick:e.clear},Kx("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(KR,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=UR(n);return t.createElement(JR,{key:n,onClick:function(){return e.removeAssetType(n)},title:$R(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(JR,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(JR,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var eH,tH=Uu.div(eH||(eH=Vs(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),nH=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function rH(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return nH.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function oH(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function iH(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=FE(),a=i.hideExternalAccess,s="SingleSelectFile"===i.selectionMode&&n;return!s&&a?null:s||a?s&&a?t.createElement(Mh.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(Kw,null)):t.createElement(Mv,{trigger:function(e){var n=e.isOpen,r=Rs(e,["isOpen"]);return t.createElement(Mh.ContextActionButton,Ls({"aria-label":"Menu",isPressed:n},r),t.createElement(hE,null))},isClosedOnScroll:!0},t.createElement(Mv.Item,{icon:t.createElement(kw,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Mv.Divider,null),t.createElement(Mv.Item,{icon:t.createElement(Kw,null),onClick:o},"New transformation")):t.createElement(Mh.ContextActionButton,{"aria-label":Kx("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(kw,null))}var aH,sH,lH,cH,uH=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},dH=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?new Intl.DateTimeFormat("en-GB",XE).format(new Date(Date.parse(n)+60*new Date(n).getTimezoneOffset()*1e3)):n,zIndex:o}}));return Us(Us([],n,!0),r,!0).sort(uH)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Mh.AdditionalInfo,null,t.createElement(pH,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(fH,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(hH,null,n,":"),t.createElement(mH,{title:r},o))})))):null},pH=Uu.dl(aH||(aH=Vs(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),nd.fontSize75),fH=Uu.div(sH||(sH=Vs(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),hH=Uu.dt(lH||(lH=Vs(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),mH=Uu.dd(cH||(cH=Vs(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function gH(e){var n,o,i=e.className,s=e.fadeIn,l=void 0===s||s,c=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,h=void 0===f?null:f,m=r(),g=m[0],v=m[1],y=r(),b=y[0],x=y[1],w=cR(),E=w.openDat,C=w.setTransformation,k=FE().theme,S=function(e){return[e.isArchived&&Kx("archived"),e.isWatermarked&&Kx("watermarked"),e.isLimitedUse&&Kx("limited")].filter((function(e){return e})).join(", ")}(c),_=oH(c);a((function(){var e,t=null===(e=c.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[c.metaproperties]),a((function(){var e,t=null===(e=c.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));x(t)}),[c.textMetaproperties]);var I=function(e){void 0!==p&&(e.stopPropagation(),C(),p(c,e))};return t.createElement(xH,{id:c.id,$theme:k,$isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),$fadeIn:l,className:wE("group",i),"data-drag-select-id":c.id},t.createElement(Mh,{contextAction:t.createElement(iH,{transformBaseUrl:null===(o=null===(n=c.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===o?void 0:o.url,portalUrl:c.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,c,c.name)}}),selectButtonAriaLabel:Kx(u?"Deselect":"Select"),onSelect:I,onClick:I,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Mh.Frame,{icon:S?t.createElement(wH,{$limitWidth:!!_},t.createElement(rd,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(yh,null,S))):void 0,"data-testid":"asset-type",badge:_},t.createElement(Mh.Images,null,rH(c)&&t.createElement(Mh.Img,{src:rH(c),alt:c.name,contentResize:"fit"}))),h,t.createElement(EH,{"data-testid":"asset-name"},c.name),t.createElement(dH,{metaproperties:g,textMetaproperties:b})))}var vH,yH,bH,xH=Uu.div(vH||(vH=Vs(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),nd.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryActive})),wH=Uu.div(yH||(yH=Vs(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),EH=Uu.p(bH||(bH=Vs(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"]))),CH={x:null,y:null},kH="drag-select-container",SH=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=r(CH),f=p[0],h=p[1],g=r(CH),v=g[0],y=g[1],b=yI(v,10,{leading:!0,maxWait:10})[0],x=r(),w=x[0],E=x[1],C=nl(),k=t.useMemo((function(){return IH(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=yI(k,50,{leading:!1,maxWait:50})[0],_=r([]),I=_[0],T=_[1],O=BH(I),j=l(f),z=l(v),B=l(null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y),P=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",A,!1),document.addEventListener("keyup",A,!1),function(){document.removeEventListener("keydown",A,!1),document.removeEventListener("keyup",A,!1)}}),[]);var A=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},B.current&&r!==w&&E(r)};a((function(){var e;return"function"==typeof u&&B.current?(A(P.current),u(null!=w?w:"select")):"function"!=typeof d||B.current||(e=setTimeout((function(){return d(null!=w?w:"select")}),10)),function(){return clearTimeout(e)}}),[B.current,w]);var N=function(e){j.current=e,h(e),M()},D=function(e){z.current=e,y(e),M()},M=function(){B.current=null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y},F=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&D({x:o,y:r})}),[]),L=c((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),N(CH),D(CH)}),[F,C]),R=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),N({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(jH(C),e.addEventListener("mousedown",R)),function(){e&&(e.removeEventListener("mousedown",R),zH(C))}}),[n,R,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=OH(t);return t instanceof HTMLElement&&TH(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);T(t)}),[S,C]),a((function(){if(O&&O!==I&&B.current){var e=I.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[I,O,i,s,B]);var H=C.querySelector("#".concat(kH));return B.current&&H?m(t.createElement("div",Ls({},o,{style:o.style?Ls(Ls(Ls({},_H),o.style),k):Ls(Ls({},_H),k),"data-testid":"drag-selection"})),H):null},_H={position:"absolute",zIndex:100},IH=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},TH=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},OH=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},jH=function(e){var t=document.createElement("div");t.id=kH,e.appendChild(t)},zH=function(e){var t=e.querySelector("#".concat(kH));t&&t.remove()},BH=function(e){var t=l();return a((function(){t.current=e})),t.current};function PH(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,x=void 0===b?[]:b,w=e.selectionMode,E=void 0===w?"MultiSelect":w,C=e.theme,k=e.children,S=void 0===k?null:k,_=l(null),I=yR(_.current).dimensions,T=r([]),O=T[0],j=T[1],z=r("inactive"),B=z[0],P=z[1],A=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),N=A[0],D=A[1];function M(e){return("inverse"!==B||!x.includes(e.id)||!O.includes(e.id))&&(x.includes(e.id)||O.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(AE,{rows:N,columns:D}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(SH,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){j((function(t){return Us(Us([],t,!0),e,!0)}))},onDeselect:function(e){j((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),O.length){var t=[];O.forEach((function(e){var n=function(e){var t;if("Loading"!==o.tag||o.value)return null===(t=o.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),j([])}}}),t.createElement(bR,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(gH,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=N*D,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=o.value)||void 0===n?void 0:n.length)){var a=o.value.findIndex((function(t){return t.id===e.id})),s=null===(r=o.value)||void 0===r?void 0:r.findIndex((function(e){return e.id===x[x.length-1]}));-1===s&&(s=0),h(s<a?null===(i=o.value)||void 0===i?void 0:i.slice(s,a+1):o.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function AH(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=Zs().setIsLoading,h=FE(),m=gR().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=gR(),v=g.selectAssets,y=g.toggleAssets,b=Zs().setSearch,x=HR();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(hw,{error:new Error(l.value),onRetry:p});var w=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(PH,{assets:NH(l),count:w,isLoading:c,loadMore:u,hasNextPage:d,theme:h.theme,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(wR,{onReset:function(){x.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==w&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down","data-testid":"assets-amount",key:w},zE(w,Kx("{} asset"),Kx("{} assets"))),e.showActiveFilters&&t.createElement(QR,null),t.createElement(TE,null),t.createElement(yE,null)))}function NH(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function DH(e){var n=Js("collection").value,r=Gs()[1],o=Ms("collection")[0],i=FE().language,a=HR(),s=a.assetTypes,l=a.metaproperties,c=a.tags,u=a.isLimited,d=rk({collection:e.collection,filter:{assetTypes:s,metaproperties:l,tags:c,isLimited:u},searchTerm:n,orderBy:o,language:i});return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},Kx("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(AH,{connection:d,totalCount:e.collection.assetCount,showActiveFilters:!0}))}var MH="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";var FH,LH,RH,HH,$H=Uu.div(FH||(FH=Vs(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),nd.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),UH=Uu.li(LH||(LH=Vs(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),nd.spacing2,nd.spacing5,nd.gray25),VH=Uu.div(RH||(RH=Vs(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.$isChecked?"inherit":nd.gray500})),WH=Uu.span(HH||(HH=Vs(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),nd.spacing4);function qH(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(UH,null,t.createElement($H,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(Vh,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(VH,{$isChecked:n},t.createElement(WH,{title:e.metapropertyOption.label},t.createElement(yh,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function GH(e){return t.createElement(KH,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(ZH,null,e.metaproperty.options.map((function(n){return t.createElement(qH,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var YH,XH,KH=Uu.div(YH||(YH=Vs(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),nd.spacing5),ZH=Uu.ul(XH||(XH=Vs(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function JH(e){return t.createElement(e$,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(GH,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var QH,e$=Uu.div(QH||(QH=Vs(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),nd.spacing4);function t$(e){var n,r=HR(),o=r.metaproperties.map((function(e){return e.id})),i=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),a=(n=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},Us([],i,!0).sort((function(e,t){return n(e)-n(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(kE,{key:n.id,title:t.createElement(n$,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(GH,{metaproperty:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}):t.createElement(JH,{smartfilter:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}))}))})))}function n$(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:wE("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function r$(e){var n=HR(),r=n.tags.includes(e.tag.name),o=wE("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(ZR,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function o$(e){var n=Us([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(kE,{title:t.createElement(i$,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",Kx("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(r$,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function i$(){return t.createElement(t.Fragment,null,t.createElement(bw,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},Kx("Tags")))}function a$(e){var n=HR(),r=n.assetTypes.includes(e.type),o=UR(e.type);return t.createElement(UH,{"data-testid":"advanced-options"},t.createElement($H,{$isChecked:r,$isLoading:e.isLoading},t.createElement(Vh,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat($R(e.type),"-filter")},t.createElement(VH,{$isChecked:r},t.createElement(o,null),t.createElement(l$,null,$R(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var s$,l$=Uu.div(s$||(s$=Vs(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),nd.spacing3);function c$(e){var n=FE().assetTypes,r=n.filter((function(t){return d$(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(kE,{title:t.createElement(u$,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},Kx("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(a$,{key:n,type:n,count:d$(e.count,n),isLoading:e.isLoading})}))))}))}function u$(){return t.createElement(t.Fragment,null,t.createElement(aE,{className:"mr-2 inline w-6 h-6"}),Kx("Advanced"))}function d$(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function p$(){var e=HR(),n=Gs()[0],o=Js("assets").value,i=FE(),s=i.assetTypes,l=i.language,c=i.assetFilter,u=r(n.page),d=u[0],p=u[1];Jx(l);var f=function(e){var t=this,n=JC(),o=r({tag:"Loading",value:null}),i=o[0],s=o[1],l=!1;return a((function(){return Hs(t,void 0,void 0,(function(){var t,r,o,i,a,c,u,d,p,f;return $s(this,(function(h){switch(h.label){case 0:return s((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),t=e.filter,r=e.searchTerm,o=e.allAssetTypes,i=e.language,a=e.predefinedFilter,c=QC({filters:null==t?void 0:t.assetTypes,predefinedFilters:null==a?void 0:a.assetType_in,showToolbar:null==a?void 0:a.showToolbar}),u=QC({filters:ek(null==t?void 0:t.metaproperties),predefinedFilters:null==a?void 0:a.metapropertyOptionId_in,showToolbar:null==a?void 0:a.showToolbar}),d=QC({filters:null==t?void 0:t.tags,predefinedFilters:null==a?void 0:a.tagNames_in,showToolbar:null==a?void 0:a.showToolbar}),p={filter:{assetType_in:null!=c?c:o,collectionId:e.collectionId,metapropertyOptionId_in:u,searchTerm:r,tagNames_in:d,isLimitedUse:t.isLimited},language:i},[4,JE(MH,p,n)];case 1:return f=h.sent(),l||(WE(f)?s({tag:"Failure",value:f.error}):s({tag:"Loaded",value:f.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:o||null,allAssetTypes:s,language:l,predefinedFilter:c,collectionId:"collection"===n.page?n.collection.id:null}),h=f.data,m=f.isLoading;if(a((function(){return n.page!==d&&(p(n.page),e.clear()),function(){e.clear()}}),[d,n.page]),a((function(){var t;if("Loading"!==h.tag&&"Failure"!==h.tag&&h.value){var n=h.value.searchAssets.metapropertyFilters;if((null==c?void 0:c.metapropertyOptionId_in)&&(null===(t=null==n?void 0:n.nodes)||void 0===t?void 0:t.length)&&!e.metaproperties.length){var r=n.nodes.reduce((function(t,n){return("Metaproperty"===n.__typename?n.options:n.metaproperties.reduce((function(e,t){return Us(Us([],e,!0),t.options,!0)}),[])).forEach((function(n){var r,o;(null===(r=null==c?void 0:c.metapropertyOptionId_in)||void 0===r?void 0:r.includes(n.id))&&((null===(o=e.metapropertyIds)||void 0===o?void 0:o.includes(n.id))||(t[n.id]=n))})),t}),{});Object.keys(r).length&&e.setPredefinedMetaproperties(r)}}}),[h]),"Failure"===h.tag||!h.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(f$,null));var g=h.value.searchAssets,v=g.metapropertyFilters,y=g.tags,b=g.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(KR,{className:"h-8"},v&&v.nodes.length>0&&t.createElement(t$,{metapropertyFilters:v.nodes,isLoading:m}),y&&y.nodes.length>0&&t.createElement(o$,{tags:y.nodes,isLoading:m}),t.createElement(c$,{isLoading:m,count:b.assetType})))}function f$(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(PE,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(PE,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(PE,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var h$,m$,g$=Wu(m$||(m$=Vs(["",""],["",""])),Ru(h$||(h$=Vs(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function v$(){var e=Gs()[0],n=HE(),o=Js(e.page),i=o.value,s=o.isLoading,l=mI(o.setSearch,500),c=r(i),u=c[0],d=c[1];a((function(){d(i)}),[e,i]),a((function(){return function(){l.flush()}}),[e,l]);var p="collections"===e.page?Kx("Search for collections"):Kx("Search for assets");return t.createElement(b$,{$hideSwitch:n},t.createElement(ag,{value:u,placeholder:p,"aria-label":p,onChange:function(e){return d(t=e),void l(t);var t},"data-testid":"search-input",icon:t.createElement(_w,null),iconRight:s?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(FC,{className:"relative right-0"})):void 0,hasClearButton:!s&&!!i}))}var y$,b$=Uu.div(y$||(y$=Vs(["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"])),(function(e){return e.$hideSwitch?"auto":"none"}));function x$(){var e=Gs(),n=e[0],r=e[1];return t.createElement(E$,null,t.createElement(Zd,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},Kx("Assets")),t.createElement(Zd,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},Kx("Collections")))}var w$,E$=Uu.div(w$||(w$=Vs(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),nd.spacing2);function C$(){var e=ZC(),n=kC(),r=JC(),o=LE(),i=HE(),a=void 0!==o&&!o.showToolbar;return e||n||!a?t.createElement(_$,null,!a&&t.createElement(t.Fragment,null,!i&&t.createElement(x$,null),t.createElement(v$,null)),t.createElement(I$,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(Zd,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(vw,null)},Kx("Log out")),n&&t.createElement(Zd,{variant:"clean",onClick:function(){return n.onClose()},title:Kx("Close"),icon:t.createElement(dE,null)}))):null}var k$,S$,_$=Uu.nav(k$||(k$=Vs(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),nd.gray10,nd.spacing5,nd.spacing4),I$=Uu.div(S$||(S$=Vs(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function T$(){var e=HR(),n=e.assetTypes,r=e.metaproperties,i=e.tags,a=e.isLimited,s=Js("assets").value,l=Ms("assets")[0],c=FE(),u=c.assetFilter,d=c.assetTypes,p=c.language,f=rk(o((function(){return void 0===u?{filter:{assetTypes:n,metaproperties:r,tags:i,isLimited:a},searchTerm:s,orderBy:l,allAssetTypes:d,language:p}:u&&u.showToolbar?{filter:{assetTypes:n,metaproperties:r,tags:i,isLimited:a},searchTerm:s,orderBy:l,predefinedFilter:u,allAssetTypes:d,language:p}:{predefinedFilter:u,orderBy:l,language:p}}),[n,r,i,a,s,l,u,d,p]));return t.createElement(AH,{connection:f,showActiveFilters:void 0===u||u&&u.showToolbar})}var O$="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function j$(e,t,n){return void 0===n&&(n=O$),Hs(this,void 0,void 0,(function(){var r;return $s(this,(function(o){switch(o.label){case 0:return[4,JE("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return WE(r=o.sent())?[2,r]:[2,$E(r.value.node)]}}))}))}function z$(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var B$="Custom transformation";function P$(e){var n=e.asset,o=e.onChange,i=r({status:"Loading"}),s=i[0],l=i[1],c=JC(),u=FE(),d=u.assetFieldSelection,p=u.__shouldAddOriginal__,f=cR().transformation;function h(e){l((function(t){return"Data"!==t.status?t:(e===B$&&f?setTimeout((function(){return o({url:null==f?void 0:f.url})})):setTimeout((function(){return o(t.files[e])})),Ls(Ls({},t),{key:e}))}))}return a((function(){var e,t;(null==f?void 0:f.url)&&"Data"===s.status&&h(f.url!==(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?B$:"transformBaseUrl")}),[f]),a((function(){l({status:"Loading"}),o(void 0),function(e,t,n){return Hs(this,void 0,void 0,(function(){var r;return $s(this,(function(o){switch(o.label){case 0:return[4,j$(e.id,t,n)];case 1:return VE(r=o.sent())&&r.value.files?[2,$E({files:KE(r.value.files),databaseId:r.value.databaseId||""})]:[2,UE("Error retrieving asset files")]}}))}))}(n,c,d).then((function(e){if(WE(e))return Qs.error(e.error),void l({status:"Failure"});var t=Ls({},e.value.files);p&&!("original"in t)&&(t.original={url:e.value.databaseId,isFakeOriginal:!0});var n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),o(t[n])}))}),[n.id,c,d]),t.createElement(M$,null,t.createElement(kE,{title:t.createElement(A$,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){var r,o;return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(IE,{key:o,className:"px-3 py-2",selected:s.key===o,onClick:function(){h(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(mw,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(Rw,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},z$(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(uR,{transformBaseUrl:null===(o=null===(r=s.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function A$(e){var n=e.state;return"Loading"===n.status?t.createElement(PE,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(F$,null,n.key===B$&&t.createElement(Kw,null),z$(n.key)):t.createElement(t.Fragment,null,"Error")}var N$,D$,M$=Uu.div(N$||(N$=Vs(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),nd.spacing5),F$=Uu.div(D$||(D$=Vs(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),nd.spacing4),L$="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function R$(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(lE,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,Kx("Retry")):t.createElement(t.Fragment,null,zE(r,Kx("Add asset"),Kx("Add assets")))}function H$(e){var n,o=FE(),i=o.assetFieldSelection,s=o.onSuccess,c=o.selectionMode,u=gR().preselectedAssetIds,d=JC(),p=l(!0),f=r("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),h=f[0],m=f[1];function g(e,t){if(WE(e))m({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),s(n,{selectedFile:t})}catch(e){Qs.error(e)}p.current&&(m({status:"Done"}),setTimeout((function(){p.current&&m((function(){return t?{status:"ReadyWithFile",file:t}:{status:"Ready"}}))}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(P$,{asset:e.selection[0].value,onChange:function(e){m(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Zd,{variant:"primary",isDisabled:"Loading"===h.status||"WaitingForFileSelection"===h.status,onClick:function(){var t,n="ReadyWithFile"===h.status?h.file:void 0;m({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?j$(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n=L$),Hs(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h,m,g;return $s(this,(function(v){switch(v.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o=e.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),i=o.reduce((function(e,t){return e+t}),0),a={ids:e.map((function(e){return e.value.id})),collectionCount:i},[4,JE(r,a,t)];case 1:if(WE(s=v.sent()))return[2,s];for(l=[],c=0,u=s.value.nodes;c<u.length;c++)"Collection"===(d=u[c]).__typename?l.push.apply(l,d.assets.nodes):l.push(d);for(p=new Set,f=[],h=0,m=l;h<m.length;h++)g=m[h],p.has(g.id)||(f.push(g),p.add(g.id));return[2,$E(f)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===h.status},t.createElement(R$,{status:h.status,numberOfSelectedItems:e.selection.length})))}function $$(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement($H,{$isChecked:!0,$isFlex:!0},t.createElement(Vh,{"aria-label":Kx("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(V$,{htmlFor:"deselect-".concat(n)},o)))}var U$,V$=Uu.label(U$||(U$=Vs(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),nd.fontSize100,nd.spacing3);function W$(e){var n=e.asset,r=gR();return t.createElement($$,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(G$,null,t.createElement(bg,{variant:"preview",imageUrl:rH(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),oH(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},oH(n)))}var q$,G$=Uu.div(q$||(q$=Vs(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),nd.spacing4);function Y$(e){var n=e.collection,r=gR();return t.createElement($$,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(K$,null,t.createElement(bg,{variant:"clean",icon:t.createElement(nE,null)})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},zE(n.assetCount,Kx("{} asset"),Kx("{} assets"))))}var X$,K$=Uu.div(X$||(X$=Vs(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),nd.spacing4);function Z$(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(W$,{key:e.value.id,asset:e.value}):t.createElement(Y$,{key:e.value.id,collection:e.value})})))}function J$(){var e=gR(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(nU,{"data-testid":"selection-footer"},t.createElement(rU,null,t.createElement(kE,{buttonKind:"secondary",direction:"Up",title:Kx("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(Z$,{selection:n})})),t.createElement(Zd,{variant:"clean",onClick:r},Kx("Clear selection"))),t.createElement(H$,{selection:n}))}var Q$,eU,tU,nU=Uu.div(Q$||(Q$=Vs(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),nd.layoutSpacing5,nd.spacing6),rU=Uu.span(eU||(eU=Vs(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),nd.spacing2);function oU(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,s=e.language,l=void 0===s?"en_US":s,c=e.mode,u=void 0===c?"MultiSelect":c,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,h=e.hideExternalAccess,m=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v,b=e.__shouldAddOriginal__,x=e.hideSwitch,w=void 0!==x&&x;Jx(l);var E={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:h,__shouldAddOriginal__:b,hideSwitch:w};return t.createElement(qC,{sentryClient:tU},t.createElement(qs,null,t.createElement(EC,{isContainerMode:y},t.createElement(lR,null,t.createElement(Ds,null,t.createElement(FR,{hideLimitedUse:g,predefinedFilter:r},t.createElement(Ks,{defaultValue:a},t.createElement(ME,{value:E},t.createElement(hR,{preselectedAssetIds:null!=m?m:[]},t.createElement(g$,{theme:E.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(C$,null),t.createElement(iU,null),t.createElement(J$,null)))))))))))}function iU(){var e=Gs()[0],n=FE().assetFilter;return t.createElement(t.Fragment,null,"collections"!==e.page&&(void 0===n||n&&n.showToolbar)&&t.createElement(p$,null),"assets"===e.page&&t.createElement(T$,null),"collections"===e.page&&t.createElement(DR,null),"collection"===e.page&&t.createElement(DH,{collection:e.collection}))}tU=new class extends ss{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Xa}))),version:Xa}),e._metadata=o}(e,"browser",["browser"],ps.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ps.document&&ps.document.addEventListener("visibilitychange",(()=>{"hidden"===ps.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=function(e,t,n,r,o){let i;if(Ii(t)&&t.error)return ms(e,t.error);if(Ti(t)||_i(t,"DOMException")){const o=t;if("stack"in t)i=ms(e,t);else{const t=o.name||(Ti(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=bs(e,a,n,r),ia(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Si(t)?ms(e,t):ji(t)||zi(t)?(i=function(e,t,n,r){const o=La(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:zi(t)?t.constructor.name:"Error",value:xs(t,{isUnhandledRejection:r})}]},extra:{__serialized__:ca(t,i)}};if(n){const t=gs(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,void 0),aa(i,{synthetic:!0}),i):(i=bs(e,t,n,r),ia(i,`${t}`,void 0),aa(i,{synthetic:!0}),i)}(e,t,n&&n.syntheticException||void 0,r);return aa(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),pa(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=bs(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),pa(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(fs&&Wi.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Gi(r)}},i=function(e){return[{type:"user_report"},e]}(e);return ya(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(fs&&Wi.log("No outcomes to send"));if(!this._dsn)return void(fs&&Wi.log("No dsn provided, will not send outcomes"));fs&&Wi.log("Sending outcomes:",e);const t=(n=e,ya((r=this._options.tunnel&&Gi(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ga(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,integrations:[],stackParser:Bs,transport:function(e,t=function(){if(ws)return ws;if((e=ps.fetch)&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()))return ws=ps.fetch.bind(ps);var e;const t=ps.document;let n=ps.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(e){fs&&Wi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return ws=n.bind(ps)}()){let n=0,r=0;return us(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return ws=void 0,n-=i,r--,fa(e)}}))}}),new Ja(tU);var aU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opazität","datepicker.clear-date":"Datum löschen","datepicker.next-month":"Nächsten Monat","datepicker.open-calendar":"Kalender öffnen","datepicker.previous-month":"Vorheriger Monat","input.clear":"Eingabe löschen","input.hide-password":"Passwort verbergen","input.show-password":"Passwort anzeigen","modal.close":"Schließen","multiselectchips.add-value":"Füge ‘{value}’ hinzu","multiselectchips.remove-all":"Alle entfernen","pagination.next-page":"Nächste Seite","pagination.previous-page":"Vorherige Seite"}}),sU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Quitar todos","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),lU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Eliminar todo","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),cU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacité","datepicker.clear-date":"Effacer une date","datepicker.next-month":"Le mois prochain","datepicker.open-calendar":"Ouvrir le calendrier","datepicker.previous-month":"Le mois précédent","input.clear":"Effacer l'entrée","input.hide-password":"Masquer le mot de passe","input.show-password":"Montrer le mot de passe","modal.close":"Fermer","multiselectchips.add-value":"Ajouter ‘{value}’","multiselectchips.remove-all":"Supprimer tout","pagination.next-page":"Page suivante","pagination.previous-page":"Page précédente"}}),uU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacità","datepicker.clear-date":"Annulla data","datepicker.next-month":"Il prossimo mese","datepicker.open-calendar":"Calendario aperto","datepicker.previous-month":"Il mese scorso","input.clear":"Ingresso chiaro","input.hide-password":"Nascondi password","input.show-password":"Mostra password","modal.close":"Chiudi","multiselectchips.add-value":"Aggiungi ‘{value}’","multiselectchips.remove-all":"Rimuovi tutti","pagination.next-page":"Pagina seguente","pagination.previous-page":"Pagina precedente"}}),dU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"日付を消去する","datepicker.next-month":"来月","datepicker.open-calendar":"カレンダーを開く","datepicker.previous-month":"前月","input.clear":"入力をクリア","input.hide-password":"パスワードを隠す","input.show-password":"パスワードを表示","modal.close":"閉じる","multiselectchips.add-value":"「 {value} 」を追加","multiselectchips.remove-all":"すべてを削除する","pagination.next-page":"次のページ","pagination.previous-page":"前のページ"}}),pU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"불투명","datepicker.clear-date":"완료일","datepicker.next-month":"다음 달","datepicker.open-calendar":"캘린더 열기","datepicker.previous-month":"지난달","input.clear":"입력 지우기","input.hide-password":"비밀번호 숨기기","input.show-password":"비밀번호 표시","modal.close":"닫기","multiselectchips.add-value":"' {value} ' 추가","multiselectchips.remove-all":"모두 제거","pagination.next-page":"다음 페이지","pagination.previous-page":"이전 페이지"}}),fU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Ondoorzichtigheid","datepicker.clear-date":"Datum legen","datepicker.next-month":"Volgende maand","datepicker.open-calendar":"Kalender openen","datepicker.previous-month":"Vorige maand","input.clear":"Invoer wissen","input.hide-password":"Verberg wachtwoord","input.show-password":"Laat wachtwoord zien","modal.close":"Sluiten","multiselectchips.add-value":"Voeg ‘{value}’ toe","multiselectchips.remove-all":"Verwijder alles","pagination.next-page":"Volgende pagina","pagination.previous-page":"Vorige pagina"}}),hU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Nieprzezroczystość","datepicker.clear-date":"Wyczyść datę","datepicker.next-month":"Następny miesiąc","datepicker.open-calendar":"Otwórz kalendarz","datepicker.previous-month":"Poprzedni miesiąc","input.clear":"Wyczyść pole wprowadzania","input.hide-password":"Ukryj hasło","input.show-password":"Pokaż hasło","modal.close":"Zamknij","multiselectchips.add-value":"Dodaj „{value}”","multiselectchips.remove-all":"Usuń wszystko","pagination.next-page":"Następna strona","pagination.previous-page":"Poprzednia strona"}}),mU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidade","datepicker.clear-date":"Limpar data","datepicker.next-month":"Próximo mês","datepicker.open-calendar":"Calendário aberto","datepicker.previous-month":"Mês anterior","input.clear":"Limpar entrada","input.hide-password":"Esconder a senha","input.show-password":"Mostrar senha","modal.close":"Fechar","multiselectchips.add-value":"Adicionar ‘{value}’","multiselectchips.remove-all":"Remover tudo","pagination.next-page":"Próxima página","pagination.previous-page":"Página anterior"}}),gU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Непрозрачность","datepicker.clear-date":"Очистить дату","datepicker.next-month":"Следующий месяц","datepicker.open-calendar":"Открыть календарь","datepicker.previous-month":"Предыдущий месяц","input.clear":"Очистить поле ввода","input.hide-password":"Скрыть пароль","input.show-password":"Показать пароль","modal.close":"Закрыть","multiselectchips.add-value":"Добавить «{value}»","multiselectchips.remove-all":"Удалить всё","pagination.next-page":"Следующая страница","pagination.previous-page":"Предыдущая страница"}}),vU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opaklık","datepicker.clear-date":"Tarihi sil","datepicker.next-month":"Gelecek ay","datepicker.open-calendar":"Takvimi aç","datepicker.previous-month":"Geçtiğimiz ay","input.clear":"Girişi temizle","input.hide-password":"Şifreyi gizle","input.show-password":"Şifreyi göster","modal.close":"Kapat","multiselectchips.add-value":"‘{value}’ ekleyin","multiselectchips.remove-all":"Tümünü kaldır","pagination.next-page":"Sonraki sayfa","pagination.previous-page":"Önceki sayfa"}}),yU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下个月","datepicker.open-calendar":"打开日历","datepicker.previous-month":"前一个月","input.clear":"清除输入","input.hide-password":"隐藏密码","input.show-password":"显示密码","modal.close":"关闭","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一页","pagination.previous-page":"前一页"}}),bU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下個月","datepicker.open-calendar":"打開日曆","datepicker.previous-month":"前一個月","input.clear":"清除輸入","input.hide-password":"隱藏密碼","input.show-password":"顯示密碼","modal.close":"關閉","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一頁","pagination.previous-page":"前一頁"}});export{oU as CompactView,KC as Login,SC as Modal};
|
|
216
|
+
`;const gx=Xu.div.withConfig({displayName:"BaloonStyled",componentId:"sc-1yjr5hd-0"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],pd,ld.spacing5,ld.radiusLarge,ld.white,ld.elevationStatic,ld.elevation2),vx=Xu.div.withConfig({displayName:"ThumbnailWrapper",componentId:"sc-1yjr5hd-1"})(["flex:none;margin-right:",";"],ld.spacing5),yx=Xu.div.withConfig({displayName:"Text",componentId:"sc-1yjr5hd-2"})(["flex:1;align-self:center;"]),bx=Xu.h2.withConfig({displayName:"Title",componentId:"sc-1yjr5hd-3"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),xx=Xu.p.withConfig({displayName:"Description",componentId:"sc-1yjr5hd-4"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],ld.spacing2,ld.colorTextMuted,ld.fontSize75),wx=Xu.div.withConfig({displayName:"Action",componentId:"sc-1yjr5hd-5"})(["flex:none;"]),Ex=Xu.div.withConfig({displayName:"Progress",componentId:"sc-1yjr5hd-6"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],ld.brandPrimary500),Cx=8e3,kx=288e5;function Sx({isPersistent:e,button:t,id:n=Fh(),variant:r,thumbnail:o,...i}){return sx((e=>Qu.exports.jsx(mx,{thumbnail:_x(o,r),...i,button:t?f(t,{variant:"clean",onClick(){var n,r;null==(r=(n=t.props).onClick)||r.call(n),sx.dismiss(e.id)}}):Qu.exports.jsx(rp,{variant:"clean",onClick:()=>{sx.dismiss(e.id)},icon:Qu.exports.jsx(dp,{}),title:"Close"})})),{id:n,duration:e?kx:Cx})}function _x(e,t){return e||(t?{loading:Qu.exports.jsx(Sg,{shape:"circle",backgroundColor:"transparent",icon:Qu.exports.jsx(Yd,{})}),success:Qu.exports.jsx(Sg,{shape:"circle",backgroundColor:"green500",icon:Qu.exports.jsx(fp,{}),iconColor:"white"}),error:Qu.exports.jsx(Sg,{shape:"circle",backgroundColor:"red500",icon:Qu.exports.jsx(dp,{}),iconColor:"white"})}[t]:void 0)}Sx.dismiss=function(e){sx.dismiss(e)},Sx.remove=function(e){sx.remove(e)};const Ix=n({value:"",onChange:()=>{}});function Tx({children:e,isDisabled:t,onChange:n,value:r,label:o,icon:a,"aria-labelledby":s,"aria-label":l,...c}){const u=i((()=>({value:r,onChange:n})),[n,r]);return Qu.exports.jsx(Ix.Provider,{value:u,children:Qu.exports.jsx(Uv,{trigger:({isOpen:e,...n})=>Qu.exports.jsx(rp,{icon:a,isPressed:e,rightIcon:Qu.exports.jsx(Uv.Arrow,{}),isFullWidth:!0,isDisabled:t,role:"combobox","aria-label":l,"aria-labelledby":s,...n,"aria-haspopup":"listbox",children:Qu.exports.jsx(Uv.SelectButtonText,{children:o})}),position:"bottom",role:"listbox",...c,children:e})})}function Ox(e,t,n){return 100*(n-e)/(t-e)+"%"}Tx.Item=function({icon:e,children:t,isDisabled:n,value:o}){const i=r(Ix);return Qu.exports.jsx(Uv.Item,{isChecked:o===i.value,role:"option",icon:e,isDisabled:n,onClick:()=>{i.onChange(o)},children:t})},Tx.SectionTitle=Uv.SectionTitle,Tx.Divider=Uv.Divider,Tx.SearchInput=Uv.SearchInput,Tx.Text=Uv.Text;const jx=Xu.div.withConfig({displayName:"Container",componentId:"sc-1b6hxsw-0"})(["position:relative;display:flex;gap:",";align-items:center;"],ld.spacing3),zx=Xu.div.withConfig({displayName:"SliderContainer",componentId:"sc-1b6hxsw-1"})(["position:relative;display:flex;flex:1;align-items:center;height:24px;"]),Bx=Xu.div.withConfig({displayName:"IconStyled",componentId:"sc-1b6hxsw-2"})(["display:grid;color:",";"],(e=>e.$isDisabled?ld.colorTextDisabled:ld.colorTextMuted)),Px=qu(["position:relative;box-sizing:border-box;height:24px;padding:0;border:10px solid transparent;border-radius:2px / 50%;background-image:var(--track-background);background-clip:padding-box;border-inline:none;appearance:none;"]),Ax=qu(["position:relative;top:50%;bottom:0;width:20px;height:20px;padding:0;opacity:0;pointer-events:",";transform:translateY(-50%);-webkit-appearance:none;appearance:none;"],(e=>e.$isDisabled?"none":"auto"));function Nx(e){const t=Ox(e.min,e.max,e.value);let n,r;Array.isArray(e.$values)?(n=Ox(e.min,e.max,e.$values[0]),r=Ox(e.min,e.max,e.$values[1])):e.$isFromCenter?(n=`min(${t}, 50%)`,r=`max(50%, ${t})`):(n="0",r=t);const o=e.$isDisabled?ld.gray400:ld.brandPrimary500;return`linear-gradient(\n\t\t90deg,\n\t\t${ld.gray100a} ${n},\n\t\t${o} ${n},\n\t\t${o} ${r},\n\t\t${ld.gray100a} ${r}\n\t)`}const Dx=Xu.input.attrs((e=>({style:{"--track-background":Nx(e)}}))).withConfig({displayName:"SliderInput",componentId:"sc-1b6hxsw-3"})(["position:absolute;left:0;width:100%;margin:0;padding:0;border:none;background:transparent;cursor:",";pointer-events:",";-webkit-appearance:none;appearance:none;&:focus{outline:none;}&::-webkit-slider-thumb{","}&::-moz-range-thumb{"," transform:none;}&::-webkit-slider-runnable-track{","}&::-moz-range-track{","}"],(e=>e.$isDisabled?"default":"pointer"),(e=>e.$isRange||e.$isDisabled?"none":"auto"),Ax,Ax,Px,Px),Mx=Xu.div.withConfig({displayName:"ThumbContainer",componentId:"sc-1b6hxsw-4"})(["position:absolute;top:50%;z-index:1;box-sizing:border-box;width:16px;height:16px;opacity:var(--thumb-opacity,",");pointer-events:none;transition:opacity 120ms ease-in-out;"," ",":hover + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";}",":focus-visible + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:0 0 0 3px ",";}",":active + &{--thumb-opacity:1;--thumb-inner-circle-visibility:visible;--thumb-border:0 0 0 1px ",";--thumb-shadow:",",",";--thumb-size:20px;}"],(e=>e.$isInactive?0:1),(e=>e.$isInactive&&qu(["",":hover &{--thumb-opacity:",";}"],zx,e.$isDisabled?0:1)),Dx,ld.gray100a,ld.elevationStatic,ld.elevation1,Dx,ld.gray100a,ld.gray100a,Dx,ld.gray100a,ld.elevationStatic,ld.elevation2),Fx=Xu.div.withConfig({displayName:"ThumbCircle",componentId:"sc-1b6hxsw-5"})(["position:absolute;top:50%;left:50%;width:var(--thumb-size,16px);height:var(--thumb-size,16px);border-radius:",";background:",";"," transform:translate(-50%,-50%);&::before{content:'';position:absolute;top:50%;left:50%;display:block;width:8px;height:8px;border-radius:",";background-color:",";visibility:var(--thumb-inner-circle-visibility,hidden);transform:translate(-50%,-50%);}"],ld.radiusCircle,(e=>e.$isDisabled?ld.gray400:ld.gray10),(e=>!e.$isDisabled&&qu(["box-shadow:var(--thumb-shadow,",",","),var(--thumb-border,0 0 0 1px ",");"],ld.elevationStatic,ld.elevation1,ld.gray75a)),ld.radiusCircle,(e=>e.$isDisabled?ld.gray400:ld.gray25)),Lx=Xu.div.withConfig({displayName:"InputContainer",componentId:"sc-1b6hxsw-6"})(["width:",";input{text-align:center;}"],(function(e){return 40+8*Math.max(e.$min.toString().length,e.$max.toString().length)+"px"}));function Rx({min:e,max:t,value:n,isTooltipOpen:r,inputPosition:o,isInactive:i,isDisabled:a}){const s=Ox(e,t,n);return Qu.exports.jsxs(Mx,{$isInactive:i,$isDisabled:a,style:Hx(s),"data-testid":"ds-slider-thumb",children:[Qu.exports.jsx(Fx,{$isDisabled:a}),"none"===o&&Qu.exports.jsx(vh,{isOpen:r,content:n,position:"top-center",children:e=>Qu.exports.jsx("div",{...e})})]})}function Hx(e){return{left:e,transform:`translateY(-50%) translateX(calc(${e} * -1))`}}function $x({min:e,max:t,value:n,onChange:r,inputPosition:i,isFromCenter:a=!1,isInactive:s,isTooltipHidden:l,isDisabled:c}){const[u,d]=o(!1),p=Array.isArray(n);return Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(Dx,{min:e,max:t,value:p?n[0]:n,$values:n,type:"range",onChange:r,name:"min-input",onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},$isFromCenter:a,$isRange:p,$isDisabled:c,role:"slider",disabled:c}),Qu.exports.jsx(Rx,{isTooltipOpen:u&&!l,min:e,max:t,value:p?n[0]:n,inputPosition:i,isInactive:s,isDisabled:c}),p&&Qu.exports.jsxs(Qu.exports.Fragment,{children:[Qu.exports.jsx(Dx,{min:e,max:t,value:n[1],type:"range",onChange:r,name:"max-input",$values:n,onMouseDown:()=>{d(!0)},onMouseUp:()=>{d(!1)},$isRange:p,$isDisabled:c,disabled:c}),Qu.exports.jsx(Rx,{isTooltipOpen:u&&!l,min:e,max:t,value:n[1],inputPosition:i,isInactive:s,isDisabled:c})]})]})}function Ux({min:e,max:t,inputPosition:n="none",value:r,onChange:i,iconLeft:a,iconRight:s,isFromCenter:l=!1,isInactive:c=!1,isTooltipHidden:u=!1,isDisabled:d=!1,...p}){const[f,h]=o(""),[m,g]=o("none");function v(n){g("none");const o=Number(n.target.value);o<e||t<o||(Array.isArray(r)?("min-input"===n.target.name&&o<r[1]&&i([o,r[1]]),"max-input"===n.target.name&&r[0]<o&&i([r[0],o])):i(o))}function y(e){"Enter"===e.key&&e.target.blur()}const b=String(Array.isArray(r)?r[0]:r),x=String(Array.isArray(r)?r[1]:r);return Qu.exports.jsxs(jx,{...p,children:[("left"===n||"both"===n)&&Qu.exports.jsx(Lx,{$min:e,$max:t,"data-testid":"ds-slider-input-left",children:Qu.exports.jsx(pg,{onChange:h,value:"left"===m?f:b,type:"number",onFocus:()=>{h(b),g("left")},onBlur:()=>{v({target:{name:"min-input",value:f}})},onKeyDown:y,isDisabled:d})}),a&&Qu.exports.jsx(Bx,{$isDisabled:d,children:a}),Qu.exports.jsx(zx,{children:Qu.exports.jsx($x,{min:e,max:t,value:r,inputPosition:n,onChange:v,isFromCenter:l,isInactive:c,isTooltipHidden:u,isDisabled:d})}),s&&Qu.exports.jsx(Bx,{$isDisabled:d,children:s}),("right"===n||"both"===n)&&Qu.exports.jsx(Lx,{$min:e,$max:t,"data-testid":"ds-slider-input-right",children:Qu.exports.jsx(pg,{onChange:h,value:"right"===m?f:x,type:"number",onFocus:()=>{h(x),g("right")},onBlur:()=>{v({target:{name:"max-input",value:f}})},onKeyDown:y,isDisabled:d})})]})}var Vx=new Map,Wx=new WeakMap,qx=0,Gx=void 0;function Yx(e,t,n={},r=Gx){if(void 0===window.IntersectionObserver&&void 0!==r){const o=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:a}=function(e){let t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(Wx.has(n)||(qx+=1,Wx.set(n,qx.toString())),Wx.get(n)):"0"):e[t]}`;var n})).toString()}(e),n=Vx.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var n;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=r.get(t.target))||n.forEach((e=>{e(i,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},Vx.set(t,n)}return n}(n);let s=a.get(e)||[];return a.has(e)||a.set(e,s),s.push(t),i.observe(e),function(){s.splice(s.indexOf(t),1),0===s.length&&(a.delete(e),i.unobserve(e)),0===a.size&&(i.disconnect(),Vx.delete(o))}}function Xx({threshold:t,delay:n,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var d;const[p,f]=e.useState(null),h=e.useRef(),[m,g]=e.useState({inView:!!l,entry:void 0});h.current=u,e.useEffect((()=>{if(s||!p)return;let e;return e=Yx(p,((t,n)=>{g({inView:t,entry:n}),h.current&&h.current(t,n),n.isIntersecting&&a&&e&&(e(),e=void 0)}),{root:i,rootMargin:o,threshold:t,trackVisibility:r,delay:n},c),()=>{e&&e()}}),[Array.isArray(t)?t.toString():t,p,i,o,a,s,r,c,n]);const v=null==(d=m.entry)?void 0:d.target,y=e.useRef();p||!v||a||s||y.current===v||(y.current=v,g({inView:!!l,entry:void 0}));const b=[f,m.inView,m.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}const Kx={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"};function Zx(e){Object.keys(Kx).forEach((t=>{e.style.setProperty(t,Kx[t],"important")}))}let Jx=null;const Qx=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"];const ew=u((({id:e,isDisabled:t=!1,isReadOnly:n=!1,isInvalid:r=!1,onBlur:o,onChange:i,onFocus:a,placeholder:s,value:c,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,minRows:h=2,maxRows:m=8,maxLength:g,autoFocus:v=!1,...y},b)=>{const x=l(null);return function(e,t,n){const r=l(0),[o,i]=function(e,t){let n=e||2,r=t||8;return n>r&&(n=r),n<2&&(n=2),r>8&&(r=8),[n,r]}(t,n);d((()=>{const t=e.current;if(!t)return;const n=function(e){const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Qx.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;return""===n.boxSizing?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom||"0")+parseFloat(n.paddingTop||"0"),borderSize:parseFloat(n.borderBottomWidth||"0")+parseFloat(n.borderTopWidth||"0")}}(t);if(!n)return;const a=function({sizingData:e,value:t,minRows:n,maxRows:r}){Jx||(Jx=document.createElement("textarea"),Jx.setAttribute("tabindex","-1"),Jx.setAttribute("aria-hidden","true"),Zx(Jx)),null===Jx.parentNode&&document.body.appendChild(Jx);const{paddingSize:o,borderSize:i,sizingStyle:a}=e;Object.keys(a).forEach((e=>{if(!Jx)return;const t=e;Jx.style[t]=a[t]})),Zx(Jx),Jx.value=t;let s=function(e,t){const n=Jx.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize}(0,e);Jx.value="x";const l=Jx.scrollHeight-o;let c=l*n;"border-box"===a.boxSizing&&(c=c+o+i),s=Math.max(c,s);let u=l*r;return"border-box"===a.boxSizing&&(u=u+o+i),s=Math.min(u,s),s}({sizingData:n,value:t.value||t.placeholder||"x",minRows:o,maxRows:i});r.current!==a&&(r.current=a,t.style.setProperty("height",`${a}px`,"important"))}))}(x,h,m),Qu.exports.jsx(tw,{value:c,onChange:function(e){if(i){const t=e.currentTarget.value;i(t)}},id:e,disabled:t,readOnly:n,$isInvalid:r,"aria-label":u,"aria-labelledby":p,"aria-describedby":f,onBlur:o,onFocus:a,placeholder:s,autoComplete:"off",autoCorrect:"off",autoFocus:v,ref:sg(b,x),maxLength:g,...y})})),tw=Xu.textarea.withConfig({displayName:"TextareaStyled",componentId:"sc-11tsgxs-0"})(["&&{display:block;box-sizing:border-box;width:100%;margin:0;padding:"," ",";border:1px solid ",";border-radius:",";background:",";color:",";outline:none;font-family:",";resize:none;transition:none;"," &::placeholder{color:",";}&:hover{border-color:",";box-shadow:",";}&:focus{border-color:",";box-shadow:0 0 0 3px ",";}&:disabled{border-color:",";background:",";color:",";box-shadow:none;}",";}"],ld.spacing3,ld.spacing5,ld.gray100,ld.radiusBase,ld.white,ld.colorText,ld.brandFontStackBase,Pf.paragraphM,ld.gray400,ld.gray200,ld.elevation1,ld.gray300,ld.gray100a,ld.gray100,ld.gray25,ld.gray600,(e=>e.$isInvalid&&qu(["border-color:",";&:hover{border-color:",";}&:focus{border-color:",";}"],ld.red500,ld.red600,ld.red500)));function nw(e){var t;return null!==(t=rw[e])&&void 0!==t?t:e}var rw={};function ow(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){rw=e}))}),[e])}function iw(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function aw(e){return t.createElement(t.Fragment,null,t.createElement(iw,null),t.createElement(uw,null,nw("Oops! Something went wrong")),t.createElement(dw,null,nw("Please try again or get in contact with our customer support.")),t.createElement(pw,null,t.createElement(rp,{variant:"secondary",title:nw("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?nw("Report sent"):nw("Send report...")),t.createElement(rp,{variant:"primary",title:nw("Try again"),onClick:e.onClickRetry},nw("Try again"))))}var sw,lw,cw,uw=Xu.h1(sw||(sw=Ks(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),ld.spacing8,ld.fontSize400),dw=Xu.span(lw||(lw=Ks(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),ld.spacing5,ld.colorTextDisabled),pw=Xu.div(cw||(cw=Ks(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),ld.spacing7,ld.spacing3);function fw(e){var n;return t.createElement(Nb,{title:nw("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(rp,{variant:"primary",title:nw("Send report"),onClick:e.onDone},nw("Send report")),actionSecondary:t.createElement(rp,{variant:"secondary",title:nw("Cancel"),onClick:e.onCancel},nw("Cancel")),container:e.container},t.createElement(vw,null,nw("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(yw,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(bw,null,nw("We will treat this report as confidential and anonymous.")))}var hw,mw,gw,vw=Xu.div(hw||(hw=Ks(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),ld.lineHeightText),yw=Xu.div(mw||(mw=Ks(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),ld.spacing5,ld.gray25,ld.radiusMedium,ld.gray200,ld.lineHeightText,ld.spacing5,ld.spacing4),bw=Xu.span(gw||(gw=Ks(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),ld.colorTextDisabled,ld.lineHeightBase,ld.fontSize75);function xw(e){var n=e.error,r=e.onRetry,i=e.sentryClient,s=ll(),l=o(!1),c=l[0],u=l[1],d=o(!1),p=d[0],f=d[1];return a((function(){il.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(aw,{isReportSent:p,onClickSend:function(){u(!0)},onClickRetry:r}),t.createElement(fw,{isOpen:c,error:n,container:s,onDone:function(){null==i||i.captureException(n),u(!1),f(!0)},onCancel:function(){u(!1)}}))}function ww(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"}}]})(e)}function Ew(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function Cw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 00-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 002 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)}function kw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14L12 4.81M6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2 6.35 7.56z"}}]})(e)}function Sw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"}}]})(e)}function _w(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function Iw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10z"}}]})(e)}function Tw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6zM18 20H6V10h12v10z"}}]})(e)}function Ow(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z"}},{tag:"path",attr:{d:"M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14H6z"}}]})(e)}function jw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 19H5V5h7V3H5a2 2 0 00-2 2v14a2 2 0 002 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)}function zw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"}}]})(e)}function Bw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}}]})(e)}function Pw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function Aw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12a5.99 5.99 0 014-5.65V4.26C3.55 5.15 1 8.27 1 12s2.55 6.85 6 7.74v-2.09A5.99 5.99 0 013 12z"}}]})(e)}function Nw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}}]})(e)}function Dw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0014 7.97v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"}}]})(e)}function Mw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}}]})(e)}function Fw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z"}}]})(e)}function Lw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function Rw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"6",cy:"18",r:"2",fill:"none"}},{tag:"circle",attr:{cx:"12",cy:"12",r:".5",fill:"none"}},{tag:"circle",attr:{cx:"6",cy:"6",r:"2",fill:"none"}},{tag:"path",attr:{d:"M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.36-1.64L12 14l7 7h3v-1L9.64 7.64zM6 8c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm0 12c-1.1 0-2-.89-2-2s.9-2 2-2 2 .89 2 2-.9 2-2 2zm6-7.5c-.28 0-.5-.22-.5-.5s.22-.5.5-.5.5.22.5.5-.22.5-.5.5zM19 3l-6 6 2 2 7-7V3z"}}]})(e)}function Hw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}}]})(e)}function $w(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6z"}}]})(e)}function Uw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"}}]})(e)}function Vw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15a1.49 1.49 0 000 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H5.21zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5zM2 20h20v4H2v-4z"}}]})(e)}function Ww(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}}]})(e)}function qw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"}}]})(e)}function Gw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5a2.5 2.5 0 000 5c1.03 0 1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5s1.9-.62 2.29-1.5h2.92c.39.88 1.26 1.5 2.29 1.5a2.5 2.5 0 000-5z"}}]})(e)}function Yw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}}]})(e)}function Xw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function Kw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}}]})(e)}function Zw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}}]})(e)}function Jw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"10"}}]})(e)}function Qw(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}}]})(e)}function eE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.71 5.63l-2.34-2.34a.996.996 0 00-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"}}]})(e)}function tE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"}}]})(e)}function nE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}function rE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69A7.941 7.941 0 0111 4.07zm7.32.19A9.949 9.949 0 0013 2.05v2.02c1.46.18 2.79.76 3.9 1.62l1.42-1.43zM19.93 11h2.02c-.2-2.01-1-3.84-2.21-5.32L18.31 7.1a7.941 7.941 0 011.62 3.9zM5.69 7.1L4.26 5.68A9.949 9.949 0 002.05 11h2.02c.18-1.46.76-2.79 1.62-3.9zM4.07 13H2.05c.2 2.01 1 3.84 2.21 5.32l1.43-1.43A7.868 7.868 0 014.07 13zM15 12c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm3.31 4.9l1.43 1.43a9.981 9.981 0 002.21-5.32h-2.02a7.945 7.945 0 01-1.62 3.89zM13 19.93v2.02c2.01-.2 3.84-1 5.32-2.21l-1.43-1.43c-1.1.86-2.43 1.44-3.89 1.62zm-7.32-.19A9.981 9.981 0 0011 21.95v-2.02a7.941 7.941 0 01-3.9-1.62l-1.42 1.43z"}}]})(e)}function oE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zm2.83 7.24l2.12 2.12 1.41-1.41-2.12-2.12-1.41 1.41zm-9.19.71l1.41 1.41 2.12-2.12-1.41-1.41-2.12 2.12zM11 23h2v-6h-2v6z"}}]})(e)}function iE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2z"}}]})(e)}function aE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function sE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"12",r:"3.2"}},{tag:"path",attr:{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}}]})(e)}function lE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"}}]})(e)}function cE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function uE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7.34 6.41L.86 12.9l6.49 6.48 6.49-6.48-6.5-6.49zM3.69 12.9l3.66-3.66L11 12.9l-3.66 3.66-3.65-3.66zm15.67-6.26A8.95 8.95 0 0013 4V.76L8.76 5 13 9.24V6c1.79 0 3.58.68 4.95 2.05a7.007 7.007 0 010 9.9 6.973 6.973 0 01-7.79 1.44l-1.49 1.49C10.02 21.62 11.51 22 13 22c2.3 0 4.61-.88 6.36-2.64a8.98 8.98 0 000-12.72z"}}]})(e)}function dE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.65.68 1H13V7zm0 3h6.74c.08.33.15.66.19 1H13v-1zm0 9.93V19h2.87c-.87.48-1.84.8-2.87.93zM18.24 17H13v-1h5.92c-.2.35-.43.69-.68 1zm1.5-3H13v-1h6.93c-.04.34-.11.67-.19 1z"}}]})(e)}function pE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)}function fE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function hE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)}function mE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)}function gE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)}function vE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function yE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function bE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}function xE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function wE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"}}]})(e)}function EE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 6.99h3L12 3 8 6.99h3v10.02H8L12 21l4-3.99h-3z"}}]})(e)}function CE(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}}]})(e)}function kE(){var e=Us(Qs()[0].page),n=e[0],r=e[1],o={ASC:nw("Ascending"),DESC:nw("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(rp,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(_E,{$isAscending:"ASC"===n.direction})})}var SE,_E=Xu((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)}))(SE||(SE=Ks(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),ld.spacing6,ld.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function IE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var TE=300;function OE(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=ll();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=ll(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),x=b.width-(null!=h?h:0)-(null!=g?g:0),w=b.height-(null!=y?y:0)-(null!=v?v:0);h&&x<TE&&(h=p+u.width-TE);var E={left:h,right:g,top:v,bottom:y,maxWidth:x,maxHeight:w,minWidth:TE,overflowY:"scroll"},C=IE("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function jE(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=qs(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(BE,{$fadeIn:Boolean(u)},t.createElement(rp,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(fE,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(OE,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var zE,BE=Xu.div(zE||(zE=Ks(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function PE(e){var n=e.selected,r=void 0!==n&&n,o=qs(e,["selected"]),i=IE("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(hE,{className:"w-6 h-6 ml-3 fade-in"})))}function AE(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=Us(Qs()[0].page),i=o[0],a=o[1],s={CREATED_AT:nw("Date added"),NAME:nw("Name"),PUBLISHED_AT:nw("Date published"),UPDATED_AT:nw("Date modified")};return t.createElement(DE,null,t.createElement(jE,{className:"py-2",title:s[i.field],alt:nw("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(PE,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var NE,DE=Xu.div(NE||(NE=Ks(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function ME(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var FE=" ";function LE(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:IE("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function RE(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Uh,null,t.createElement(Uh.Frame,null),t.createElement(Uh.AdditionalInfo,null,t.createElement(LE,{width:70+HE(100,r),className:"h-4"})),e.title))})))}function HE(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}function $E(e){return{tag:"ok",value:e}}function UE(e){return{tag:"error",error:e}}function VE(e){return"ok"===e.tag}function WE(e){return"error"===e.tag}function qE(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var GE="transformBaseURL",YE="transformBaseUrl",XE={year:"numeric",month:"long",day:"2-digit"};function KE(e){var t;if(e[GE]){var n=e,r=GE,o=n[r],i=qs(n,["symbol"==typeof r?r:r+""]);return Ws(Ws({},i),((t={})[YE]=Ws({},o),t))}return e}var ZE=new Map;function JE(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p;return Ys(this,(function(f){switch(f.label){case 0:if(t=e.query,n=e.variables,r=e.auth,o=e.noCache,!r)return[2,UE("No authentication provided")];if(i=r.getAccessToken&&r.getAccessToken(),"/"===(a=void 0!==r.accountDomain?qE(r.accountDomain.trim()):"https://".concat(window.location.host)).charAt(a.length-1)&&(a=a.slice(0,-1)),s="".concat(a,":").concat(t,":").concat(JSON.stringify(n),":").concat(i),ZE.has(s)&&!o)return[2,$E(ZE.get(s))];l={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("4.2.3")},c=void 0===i?l:Ws(Ws({},l),{Authorization:"Bearer ".concat(i)}),u={method:"post",headers:c,body:JSON.stringify({query:t,variables:n})},f.label=1;case 1:return f.trys.push([1,4,,5]),[4,fetch("".concat(a,"/graphql"),u)];case 2:return[4,f.sent().json()];case 3:return d=f.sent(),p=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?Ws(Ws({},e),{searchAssets:Ws(Ws({},e.searchAssets),{assets:Ws(Ws({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=KE(e.files);return Ws(Ws({},e),{files:Ws({},t)})}return e}))})})}):e}(d.data),[3,5];case 4:return[2,UE(f.sent())];case 5:return void 0!==d.errors?[2,UE(d.errors.map((function(e){return e.message})).join(","))]:(o||(ZE.set(s,p),ZE.size>50&&ZE.delete(ZE.keys().next().value)),[2,$E(p)])}}))}))}function QE(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function eC(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e),n=Array.from(t).map((function(e){return"0".concat(e.toString(16)).substr(-2)}));return n.join("")}var tC="42b1eefa-d754-4802-b9c4-bf80d6ab6052",nC="v6/authentication/oauth2/",rC="".concat("https://d8ejoa1fys2rk.cloudfront.net"),oC=rC+"/5.0.5/modules/compactview/loginCompleted.html",iC="".concat("https://apiv2.webdamdb.com","/"),aC="oauth2/",sC=["offline","asset:read","collection:read","meta.assetbank:read"];function lC(e,t,n){return Gs(this,void 0,void 0,(function(){var r,o,i,a;return Ys(this,(function(s){switch(s.label){case 0:r=cC(n)+"token",o=new URLSearchParams({client_id:tC,code_verifier:t,code:e,redirect_uri:oC,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,UE("Failed to fetch access token: ".concat(i.status))];case 3:return[2,$E({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,UE(s.sent().toString())];case 5:return[2]}}))}))}function cC(e){return"webdam"===uC()?iC+aC:qE(e)+nC}function uC(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function dC(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Ys(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,UE("Error opening login window")]:(o.document.head.innerHTML=pC,o.document.body.innerHTML=fC,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===rC&&e($E(t))}))})),new Promise((function(e){setTimeout((function(){return e(UE("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(UE("Login window closed")))}),1e3)})))])]);case 1:return WE(i=s.sent())?[2,i]:[2,$E({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var pC='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',fC='<div class="cv-spinner"></div>';var hC='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}h1,h3,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1,h3{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select,textarea{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.border-ui-600{border-color:rgba(0,34,51,.1)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mt-2{margin-top:8px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mt-1{margin-top:-4px}.-mr-1{margin-right:-4px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-3{padding-bottom:12px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.shadow-border{-webkit-box-shadow:0 1px 6px -2px rgba(0,34,51,.1);box-shadow:0 1px 6px -2px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.text-body-500{color:rgba(0,34,51,.8)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}';function mC(e){var n=ll();return t.createElement(zu,{target:n},t.createElement(sh,{zIndexBase:1e6},e.children))}function gC(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+hC,vC(null!=e?e:document.head,t),n&&vC(document.head,bC),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(sl,{value:c},t.createElement(mC,null,m(t.createElement(xC,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function vC(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var yC,bC="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),xC=Xu.div(yC||(yC=Ks(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),wC=n("parent");function EC(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(wC)?t.createElement(wC.Provider,{value:"child"},t.createElement(gC,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var CC=n(null),kC=function(){return r(CC)};function SC(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(CC.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(EC,null,t.createElement(TC,{className:"z-a-lot"},t.createElement(OC,{style:l,"data-testid":"modal"},n))),p))):null}var _C,IC,TC=Xu.div(_C||(_C=Ks(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),ld.spacing5,ld.gray100a),OC=Xu.div(IC||(IC=Ks(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),ld.radiusBase);function jC(e){var n=kC();return t.createElement(AC,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement(NC,null,t.createElement(rp,{variant:"clean",onClick:n.onClose,title:nw("Close"),icon:t.createElement(vE,null)})),t.createElement(DC,null,e.children))}var zC,BC,PC,AC=Xu.div(zC||(zC=Ks(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),ld.gray10),NC=Xu.div(BC||(BC=Ks(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),ld.spacing4,ld.spacing5),DC=Xu.div(PC||(PC=Ks(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),ld.fontSize300);function MC(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},nw("Connect your brand portal")))}function FC(e){var n=IE("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function LC(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement($C,null,t.createElement(Hy,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:nw("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&13===e.keyCode&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&nw("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(UC,{role:"alert","aria-live":"polite"},t.createElement(FC,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var RC,HC,$C=Xu.div(RC||(RC=Ks(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),ld.spacing4),UC=Xu.div(HC||(HC=Ks(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function VC(e){return t.createElement(rp,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},nw("Connect"))}function WC(e){return t.createElement(jC,null,t.createElement(MC,null),t.createElement(LC,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(VC,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var qC=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(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}Vs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(xw,{error:this.state.error,sentryClient:this.props.sentryClient,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function GC(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(FC,null)," ")}var YC=n(null);function XC(e){var n,r,i,s,c,u,d,p,f;ow(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(x()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(x(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function x(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return Gs(this,void 0,void 0,(function(){var n,r,o,i;return Ys(this,(function(a){switch(a.label){case 0:n=cC(t)+"token",r=new URLSearchParams({client_id:tC,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,UE("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,$E({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,UE(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){VE(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(il.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return Gs(this,void 0,void 0,(function(){var t,n,r;return Ys(this,(function(o){switch(o.label){case 0:t=qE(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],x=y[1],w=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&il.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return Ys(this,(function(p){switch(p.label){case 0:t=eC(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,QE(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,UE(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=eC(),i=function(e,t,n){var r={client_id:tC,code_challenge:e,code_challenge_method:"S256",redirect_uri:oC,response_type:"code",scope:sC.join(" "),domain:"",state:t},o="auth?";"webdam"===uC()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return cC(n)+o+i}(r,o,e),[4,dC(i)];case 5:return WE(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,UE("Error logging in")]:[4,lC(a.value.code,t,e)];case 6:return WE(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,$E({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(VE(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else il.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=Ws(Ws({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(YC.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(EC,{isContainerMode:!0},t.createElement(WC,{domainValue:b,domainStatus:w,onChangeDomain:x,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(GC,null)}}var KC=function(e){return t.createElement(qC,null,t.createElement(XC,Ws({},e)))},ZC=function(){var e;return"authenticated"===(null===(e=r(YC))||void 0===e?void 0:e.status)||!1},JC=function(){return r(YC)},QC=function(e){var t=e.filters,n=e.predefinedFilters;return e.showToolbar?(null==t?void 0:t.length)?Array.from(new Set(Xs(Xs([],n||[],!0),t,!0))):n:(null==t?void 0:t.length)?t:n},ek=function(e){if(e)return e.map((function(e){return e.id}))},tk="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",nk="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(tk,"\n");function rk(e,t){var n,r,i,s,l,c=this;void 0===t&&(t=!1);var u=JC(),d=o({tag:"Loading",value:null}),p=d[0],f=d[1],h=!1,m=function(n){return Gs(c,void 0,void 0,(function(){var r,o;return Ys(this,(function(i){switch(i.label){case 0:return f((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=ok(e,null!=n?n:null),[4,JE({query:nk,variables:r,auth:u,noCache:t})];case 1:return o=i.sent(),h||(WE(o)?f({tag:"Failure",value:o.error}):g(o,n)),[2]}}))}))},g=function(e,t){ik(p)&&t?f((function(t){var n,r,o=null!==(r=null===(n=ik(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:Ws(Ws({},e.value.searchAssets.assets),{nodes:Xs(Xs([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):f({tag:"Loaded",value:e.value})};return a((function(){return m(),function(){h=!0}}),[null===(n=e.filter)||void 0===n?void 0:n.assetTypes,null===(r=e.filter)||void 0===r?void 0:r.metaproperties,null===(i=e.filter)||void 0===i?void 0:i.tags,null===(s=e.filter)||void 0===s?void 0:s.isLimited,e.collection,e.orderBy,e.searchTerm,e.language]),{data:p,executeQuery:function(){return m()},isLoading:!p||"Loading"===p.tag,loadMore:function(){var e;return m(null===(e=ik(p))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(l=ik(p))||void 0===l?void 0:l.pageInfo.hasNextPage)}}var ok=function(e,t){var n,r,o=e.filter,i=e.predefinedFilter,a=e.collection,s=e.orderBy,l=e.allAssetTypes,c=e.searchTerm,u=e.language,d=QC({filters:null==o?void 0:o.assetTypes,predefinedFilters:null==i?void 0:i.assetType_in,showToolbar:null==i?void 0:i.showToolbar}),p=QC({filters:ek(null==o?void 0:o.metaproperties),predefinedFilters:null==i?void 0:i.metapropertyOptionId_in,showToolbar:null==i?void 0:i.showToolbar}),f=QC({filters:null==o?void 0:o.tags,predefinedFilters:null==i?void 0:i.tagNames_in,showToolbar:null==i?void 0:i.showToolbar});return{orderBy:s,filter:{collectionId:null!==(n=null==a?void 0:a.id)&&void 0!==n?n:null==i?void 0:i.collectionId,assetType_in:null!=d?d:l,metapropertyOptionId_in:p,searchTerm:null!==(r=null!=c?c:null==i?void 0:i.searchTerm)&&void 0!==r?r:null,tagNames_in:f,isLimitedUse:null==o?void 0:o.isLimited},after:t,language:u}},ik=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets};function ak(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i;return Ys(this,(function(a){switch(a.label){case 0:return t=e.ids,n=e.auth,r=e.language,o=e.noCache,[4,JE({query:"\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(tk),variables:{ids:t,language:r},auth:n,noCache:o})];case 1:return WE(i=a.sent())?[2,i]:[2,$E(i.value.nodes)]}}))}))}var sk="object"==typeof g&&g&&g.Object===Object&&g,lk=sk,ck="object"==typeof self&&self&&self.Object===Object&&self,uk=lk||ck||Function("return this")(),dk=uk.Symbol,pk=dk,fk=Object.prototype,hk=fk.hasOwnProperty,mk=fk.toString,gk=pk?pk.toStringTag:void 0,vk=Object.prototype.toString,yk=function(e){var t=hk.call(e,gk),n=e[gk];try{e[gk]=void 0;var r=!0}catch(e){}var o=mk.call(e);return r&&(t?e[gk]=n:delete e[gk]),o},bk=dk?dk.toStringTag:void 0,xk=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bk&&bk in Object(e)?yk(e):function(e){return vk.call(e)}(e)},wk=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ek=xk,Ck=wk,kk=uk["__core-js_shared__"],Sk=function(){var e=/[^.]+$/.exec(kk&&kk.keys&&kk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_k=Function.prototype.toString,Ik=function(e){if(null!=e){try{return _k.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Tk=function(e){if(!Ck(e))return!1;var t=Ek(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ok=function(e){return!!Sk&&Sk in e},jk=wk,zk=Ik,Bk=/^\[object .+?Constructor\]$/,Pk=Function.prototype,Ak=Object.prototype,Nk=Pk.toString,Dk=Ak.hasOwnProperty,Mk=RegExp("^"+Nk.call(Dk).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fk=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!jk(e)||Ok(e))&&(Tk(e)?Mk:Bk).test(zk(e))}(n)?n:void 0},Lk=Fk(uk,"DataView"),Rk=Fk(uk,"Map"),Hk=Fk(uk,"Promise"),$k=Fk(uk,"Set"),Uk=Fk(uk,"WeakMap"),Vk=xk,Wk=Ik,qk="[object Map]",Gk="[object Promise]",Yk="[object Set]",Xk="[object WeakMap]",Kk="[object DataView]",Zk=Wk(Lk),Jk=Wk(Rk),Qk=Wk(Hk),eS=Wk($k),tS=Wk(Uk),nS=Vk;(Lk&&nS(new Lk(new ArrayBuffer(1)))!=Kk||Rk&&nS(new Rk)!=qk||Hk&&nS(Hk.resolve())!=Gk||$k&&nS(new $k)!=Yk||Uk&&nS(new Uk)!=Xk)&&(nS=function(e){var t=Vk(e),n="[object Object]"==t?e.constructor:void 0,r=n?Wk(n):"";if(r)switch(r){case Zk:return Kk;case Jk:return qk;case Qk:return Gk;case eS:return Yk;case tS:return Xk}return t});var rS,oS=xk,iS=function(e){return null!=e&&"object"==typeof e},aS=Object.prototype;aS.hasOwnProperty,aS.propertyIsEnumerable,rS=function(){return arguments}(),iS(rS)&&oS(rS);var sS={exports:{}},lS=function(){return!1};!function(e,t){var n=uk,r=lS,o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(sS,sS.exports);var cS={exports:{}};function uS(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var x=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},x=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?a(Date.now()):p.current},x}),[g,y,t,b,v,m]);return x}!function(e,t){var n=sk,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r&&n.process,a=function(){try{return o&&o.require&&o.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(cS,cS.exports);var dS={},pS={"text/plain":"Text","text/html":"Url",default:"Text"};function fS(e){return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fS(e)}Object.defineProperty(dS,"__esModule",{value:!0}),dS.CopyToClipboard=void 0;var hS=vS(t),mS=vS((function(e,t){var n,r,o,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{if(o=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}(),i=document.createRange(),a=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=pS[t.format]||pS.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(s),i.selectNodeContents(s),a.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(o){n&&console.error("unable to copy using execCommand: ",o),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(o){n&&console.error("unable to copy using clipboardData: ",o),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{a&&("function"==typeof a.removeRange?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l})),gS=["text","onCopy","options","children"];function vS(e){return e&&e.__esModule?e:{default:e}}function yS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yS(Object(n),!0).forEach((function(t){kS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wS(e,t){return wS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wS(e,t)}function ES(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CS(e){return CS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},CS(e)}function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wS(e,t)}(a,hS.default.PureComponent);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=CS(r);if(o){var n=CS(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===fS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ES(e)}(this,e)});function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kS(ES(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,o=n.onCopy,i=n.children,a=n.options,s=hS.default.Children.only(i),l=(0,mS.default)(r,a);o&&o(r,l),s&&s.props&&"function"==typeof s.props.onClick&&s.props.onClick(t)})),e}return t=a,(n=[{key:"render",value:function(){var e=this.props,t=e.children,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,gS),r=hS.default.Children.only(t);return hS.default.cloneElement(r,bS(bS({},n),{},{onClick:this.onClick}))}}])&&xS(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}();dS.CopyToClipboard=SS,kS(SS,"defaultProps",{onCopy:void 0,options:void 0});var _S=dS.CopyToClipboard;_S.CopyToClipboard=_S;var IS=_S;let TS=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function OS(e,t){return function(){return e.apply(t,arguments)}}const{toString:jS}=Object.prototype,{getPrototypeOf:zS}=Object,BS=(e=>t=>{const n=jS.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),PS=e=>(e=e.toLowerCase(),t=>BS(t)===e),AS=e=>t=>typeof t===e,{isArray:NS}=Array,DS=AS("undefined"),MS=PS("ArrayBuffer"),FS=AS("string"),LS=AS("function"),RS=AS("number"),HS=e=>null!==e&&"object"==typeof e,$S=e=>{if("object"!==BS(e))return!1;const t=zS(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},US=PS("Date"),VS=PS("File"),WS=PS("Blob"),qS=PS("FileList"),GS=PS("URLSearchParams");function YS(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),NS(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function XS(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const KS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ZS=e=>!DS(e)&&e!==KS,JS=(QS="undefined"!=typeof Uint8Array&&zS(Uint8Array),e=>QS&&e instanceof QS);var QS;const e_=PS("HTMLFormElement"),t_=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),n_=PS("RegExp"),r_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};YS(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},o_="abcdefghijklmnopqrstuvwxyz",i_="0123456789",a_={DIGIT:i_,ALPHA:o_,ALPHA_DIGIT:o_+o_.toUpperCase()+i_},s_=PS("AsyncFunction");var l_={isArray:NS,isArrayBuffer:MS,isBuffer:function(e){return null!==e&&!DS(e)&&null!==e.constructor&&!DS(e.constructor)&&LS(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LS(e.append)&&("formdata"===(t=BS(e))||"object"===t&&LS(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&MS(e.buffer),t},isString:FS,isNumber:RS,isBoolean:e=>!0===e||!1===e,isObject:HS,isPlainObject:$S,isUndefined:DS,isDate:US,isFile:VS,isBlob:WS,isRegExp:n_,isFunction:LS,isStream:e=>HS(e)&&LS(e.pipe),isURLSearchParams:GS,isTypedArray:JS,isFileList:qS,forEach:YS,merge:function e(){const{caseless:t}=ZS(this)&&this||{},n={},r=(r,o)=>{const i=t&&XS(n,o)||o;$S(n[i])&&$S(r)?n[i]=e(n[i],r):$S(r)?n[i]=e({},r):NS(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&YS(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(YS(t,((t,r)=>{n&&LS(t)?e[r]=OS(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&zS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:BS,kindOfTest:PS,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(NS(e))return e;let t=e.length;if(!RS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:e_,hasOwnProperty:t_,hasOwnProp:t_,reduceDescriptors:r_,freezeMethods:e=>{r_(e,((t,n)=>{if(LS(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];LS(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return NS(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:XS,global:KS,isContextDefined:ZS,ALPHABET:a_,generateString:(e=16,t=a_.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&LS(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(HS(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=NS(e)?[]:{};return YS(e,((e,t)=>{const i=n(e,r+1);!DS(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:s_,isThenable:e=>e&&(HS(e)||LS(e))&&LS(e.then)&&LS(e.catch)};function c_(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}l_.inherits(c_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const u_=c_.prototype,d_={};function p_(e){return l_.isPlainObject(e)||l_.isArray(e)}function f_(e){return l_.endsWith(e,"[]")?e.slice(0,-2):e}function h_(e,t,n){return e?e.concat(t).map((function(e,t){return e=f_(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{d_[e]={value:e}})),Object.defineProperties(c_,d_),Object.defineProperty(u_,"isAxiosError",{value:!0}),c_.from=(e,t,n,r,o,i)=>{const a=Object.create(u_);return l_.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),c_.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const m_=l_.toFlatObject(l_,{},null,(function(e){return/^is[A-Z]/.test(e)}));function g_(e,t,n){if(!l_.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=l_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!l_.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&l_.isSpecCompliantForm(t);if(!l_.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(l_.isDate(e))return e.toISOString();if(!s&&l_.isBlob(e))throw new c_("Blob is not supported. Use a Buffer instead.");return l_.isArrayBuffer(e)||l_.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(l_.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(l_.isArray(e)&&function(e){return l_.isArray(e)&&!e.some(p_)}(e)||(l_.isFileList(e)||l_.endsWith(n,"[]"))&&(s=l_.toArray(e)))return n=f_(n),s.forEach((function(e,r){!l_.isUndefined(e)&&null!==e&&t.append(!0===a?h_([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!p_(e)||(t.append(h_(o,n,i),l(e)),!1)}const u=[],d=Object.assign(m_,{defaultVisitor:c,convertValue:l,isVisitable:p_});if(!l_.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!l_.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),l_.forEach(n,(function(n,i){!0===(!(l_.isUndefined(n)||null===n)&&o.call(t,n,l_.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function v_(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function y_(e,t){this._pairs=[],e&&g_(e,this,t)}const b_=y_.prototype;function x_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function w_(e,t,n){if(!t)return e;const r=n&&n.encode||x_,o=n&&n.serialize;let i;if(i=o?o(t,n):l_.isURLSearchParams(t)?t.toString():new y_(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}b_.append=function(e,t){this._pairs.push([e,t])},b_.toString=function(e){const t=e?function(t){return e.call(this,t,v_)}:v_;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var E_=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l_.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},C_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},k_={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:y_,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const S_="undefined"!=typeof window&&"undefined"!=typeof document,__=(I_="undefined"!=typeof navigator&&navigator.product,S_&&["ReactNative","NativeScript","NS"].indexOf(I_)<0);var I_;const T_="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var O_={...Object.freeze({__proto__:null,hasBrowserEnv:S_,hasStandardBrowserWebWorkerEnv:T_,hasStandardBrowserEnv:__}),...k_};function j_(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&l_.isArray(r)?r.length:i,s?(l_.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&l_.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&l_.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(l_.isFormData(e)&&l_.isFunction(e.entries)){const n={};return l_.forEachEntry(e,((e,r)=>{t(function(e){return l_.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const z_={transitional:C_,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=l_.isObject(e);if(o&&l_.isHTMLForm(e)&&(e=new FormData(e)),l_.isFormData(e))return r?JSON.stringify(j_(e)):e;if(l_.isArrayBuffer(e)||l_.isBuffer(e)||l_.isStream(e)||l_.isFile(e)||l_.isBlob(e))return e;if(l_.isArrayBufferView(e))return e.buffer;if(l_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return g_(e,new O_.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return O_.isNode&&l_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=l_.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return g_(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(l_.isString(e))try{return(0,JSON.parse)(e),l_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||z_.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&l_.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw c_.from(e,c_.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O_.classes.FormData,Blob:O_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l_.forEach(["delete","get","head","post","put","patch"],(e=>{z_.headers[e]={}}));var B_=z_;const P_=l_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),A_=Symbol("internals");function N_(e){return e&&String(e).trim().toLowerCase()}function D_(e){return!1===e||null==e?e:l_.isArray(e)?e.map(D_):String(e)}function M_(e,t,n,r,o){return l_.isFunction(r)?r.call(this,t,n):(o&&(t=n),l_.isString(t)?l_.isString(r)?-1!==t.indexOf(r):l_.isRegExp(r)?r.test(t):void 0:void 0)}class F_{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=N_(t);if(!o)throw new Error("header name must be a non-empty string");const i=l_.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=D_(e))}const i=(e,t)=>l_.forEach(e,((e,n)=>o(e,n,t)));return l_.isPlainObject(e)||e instanceof this.constructor?i(e,t):l_.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&P_[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=N_(e)){const n=l_.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(l_.isFunction(t))return t.call(this,e,n);if(l_.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=N_(e)){const n=l_.findKey(this,e);return!(!n||void 0===this[n]||t&&!M_(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=N_(e)){const o=l_.findKey(n,e);!o||t&&!M_(0,n[o],o,t)||(delete n[o],r=!0)}}return l_.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!M_(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return l_.forEach(this,((r,o)=>{const i=l_.findKey(n,o);if(i)return t[i]=D_(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=D_(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l_.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&l_.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[A_]=this[A_]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=N_(e);t[r]||(function(e,t){const n=l_.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return l_.isArray(e)?e.forEach(r):r(e),this}}F_.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l_.reduceDescriptors(F_.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),l_.freezeMethods(F_);var L_=F_;function R_(e,t){const n=this||B_,r=t||n,o=L_.from(r.headers);let i=r.data;return l_.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function H_(e){return!(!e||!e.__CANCEL__)}function $_(e,t,n){c_.call(this,null==e?"canceled":e,c_.ERR_CANCELED,t,n),this.name="CanceledError"}l_.inherits($_,c_,{__CANCEL__:!0});var U_=O_.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];l_.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),l_.isString(r)&&a.push("path="+r),l_.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function V_(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var W_=O_.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=l_.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function q_(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var G_="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=L_.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(l_.isFormData(r))if(O_.hasStandardBrowserEnv||O_.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=V_(e.baseURL,e.url);function p(){if(!u)return;const r=L_.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new c_("Request failed with status code "+n.status,[c_.ERR_BAD_REQUEST,c_.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),w_(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new c_("Request aborted",c_.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new c_("Network Error",c_.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||C_;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new c_(t,r.clarifyTimeoutError?c_.ETIMEDOUT:c_.ECONNABORTED,e,u)),u=null},O_.hasStandardBrowserEnv&&(l&&l_.isFunction(l)&&(l=l(e)),l||!1!==l&&W_(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&U_.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&l_.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),l_.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",q_(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",q_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new $_(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===O_.protocols.indexOf(f)?n(new c_("Unsupported protocol "+f+":",c_.ERR_BAD_REQUEST,e)):u.send(r||null)}))};const Y_={http:null,xhr:G_};l_.forEach(Y_,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const X_=e=>`- ${e}`,K_=e=>l_.isFunction(e)||null===e||!1===e;var Z_=e=>{e=l_.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!K_(n)&&(r=Y_[(t=String(n)).toLowerCase()],void 0===r))throw new c_(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new c_("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(X_).join("\n"):" "+X_(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function J_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $_(null,e)}function Q_(e){return J_(e),e.headers=L_.from(e.headers),e.data=R_.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Z_(e.adapter||B_.adapter)(e).then((function(t){return J_(e),t.data=R_.call(e,e.transformResponse,t),t.headers=L_.from(t.headers),t}),(function(t){return H_(t)||(J_(e),t&&t.response&&(t.response.data=R_.call(e,e.transformResponse,t.response),t.response.headers=L_.from(t.response.headers))),Promise.reject(t)}))}const eI=e=>e instanceof L_?e.toJSON():e;function tI(e,t){t=t||{};const n={};function r(e,t,n){return l_.isPlainObject(e)&&l_.isPlainObject(t)?l_.merge.call({caseless:n},e,t):l_.isPlainObject(t)?l_.merge({},t):l_.isArray(t)?t.slice():t}function o(e,t,n){return l_.isUndefined(t)?l_.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!l_.isUndefined(t))return r(void 0,t)}function a(e,t){return l_.isUndefined(t)?l_.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(eI(e),eI(t),!0)};return l_.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);l_.isUndefined(a)&&i!==s||(n[r]=a)})),n}const nI={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nI[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rI={};nI.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new c_(r(o," has been removed"+(t?" in "+t:"")),c_.ERR_DEPRECATED);return t&&!rI[o]&&(rI[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var oI={assertOptions:function(e,t,n){if("object"!=typeof e)throw new c_("options must be an object",c_.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new c_("option "+i+" must be "+n,c_.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new c_("Unknown option "+i,c_.ERR_BAD_OPTION)}},validators:nI};const iI=oI.validators;class aI{constructor(e){this.defaults=e,this.interceptors={request:new E_,response:new E_}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tI(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&oI.assertOptions(n,{silentJSONParsing:iI.transitional(iI.boolean),forcedJSONParsing:iI.transitional(iI.boolean),clarifyTimeoutError:iI.transitional(iI.boolean)},!1),null!=r&&(l_.isFunction(r)?t.paramsSerializer={serialize:r}:oI.assertOptions(r,{encode:iI.function,serialize:iI.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&l_.merge(o.common,o[t.method]);o&&l_.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=L_.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Q_.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Q_.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return w_(V_((e=tI(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}l_.forEach(["delete","get","head","options"],(function(e){aI.prototype[e]=function(t,n){return this.request(tI(n||{},{method:e,url:t,data:(n||{}).data}))}})),l_.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(tI(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}aI.prototype[e]=t(),aI.prototype[e+"Form"]=t(!0)}));var sI=aI;class lI{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new $_(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new lI((function(t){e=t}));return{token:t,cancel:e}}}var cI=lI;const uI={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uI).forEach((([e,t])=>{uI[t]=e}));var dI=uI;const pI=function e(t){const n=new sI(t),r=OS(sI.prototype.request,n);return l_.extend(r,sI.prototype,n,{allOwnKeys:!0}),l_.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tI(t,n))},r}(B_);pI.Axios=sI,pI.CanceledError=$_,pI.CancelToken=cI,pI.isCancel=H_,pI.VERSION="1.6.7",pI.toFormData=g_,pI.AxiosError=c_,pI.Cancel=pI.CanceledError,pI.all=function(e){return Promise.all(e)},pI.spread=function(e){return function(t){return e.apply(null,t)}},pI.isAxiosError=function(e){return l_.isObject(e)&&!0===e.isAxiosError},pI.mergeConfig=tI,pI.AxiosHeaders=L_,pI.formToJSON=e=>j_(l_.isHTMLForm(e)?new FormData(e):e),pI.getAdapter=Z_,pI.HttpStatusCode=dI,pI.default=pI;var fI=pI;function hI(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22L8 18H16L12 22ZM12 2L16 6H8L12 2ZM12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14ZM2 12L6 8V16L2 12ZM22 12L18 16V8L22 12Z"}}]})(e)}function mI(e,t,n){var r=this,o=l(null),s=l(0),c=l(null),u=l([]),d=l(),p=l(),f=l(e),h=l(!0);a((function(){f.current=e}),[e]);var m=!t&&0!==t&&"undefined"!=typeof window;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var g=!!(n=n||{}).leading,v=!("trailing"in n)||!!n.trailing,y="maxWait"in n,b=y?Math.max(+n.maxWait||0,t):null;a((function(){return h.current=!0,function(){h.current=!1}}),[]);var x=i((function(){var e=function(e){var t=u.current,n=d.current;return u.current=d.current=null,s.current=e,p.current=f.current.apply(n,t)},n=function(e,t){m&&cancelAnimationFrame(c.current),c.current=m?requestAnimationFrame(e):setTimeout(e,t)},i=function(e){if(!h.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||y&&e-s.current>=b},a=function(t){return c.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},l=function e(){var r=Date.now();if(i(r))return a(r);if(h.current){var l=t-(r-o.current),c=y?Math.min(l,b-(r-s.current)):l;n(e,c)}},x=function(){var a=Date.now(),f=i(a);if(u.current=[].slice.call(arguments),d.current=r,o.current=a,f){if(!c.current&&h.current)return s.current=o.current,n(l,t),g?e(o.current):p.current;if(y)return n(l,t),e(o.current)}return c.current||n(l,t),p.current};return x.cancel=function(){c.current&&(m?cancelAnimationFrame(c.current):clearTimeout(c.current)),s.current=0,u.current=o.current=d.current=c.current=null},x.isPending=function(){return!!c.current},x.flush=function(){return c.current?a(Date.now()):p.current},x}),[g,y,t,b,v,m]);return x}function gI(e,t){return e===t}function vI(e){return"function"==typeof e?function(){return e}:e}function yI(e,t,n){var r,i,a=n&&n.equalityFn||gI,s=(r=o(vI(e)),i=r[1],[r[0],c((function(e){return i(vI(e))}),[])]),u=s[0],d=s[1],p=mI(c((function(e){return d(e)}),[d]),t,n),f=l(e);return a(f.current,e)||(p(e),f.current=e),[u,p]}var bI=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),xI=bI.Provider,wI=function(){return r(bI)},EI=function(){return wI().assetFilter},CI=function(){return wI().selectionMode},kI=function(e,t){return kI=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])},kI(e,t)},SI=function(){return SI=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},SI.apply(this,arguments)};function _I(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function II(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function TI(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function OI(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function jI(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var zI=n(null);function BI(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=o([]),c=l[0],u=l[1],d=o([]),p=d[0],f=d[1],h=o([]),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],x=o({}),w=x[0],E=x[1];function C(e){u((function(t){return PI(t,e)}))}function k(e){u((function(t){return AI(t,e)}))}function S(e){f((function(t){return PI(t,e.id)})),E((function(t){var n;return SI(SI({},t),((n={})[e.id]=e,n))}))}function _(e){f((function(t){return AI(t,e.id)})),E((function(t){var n=t,r=e.id;return _I(n,["symbol"==typeof r?r:r+""])}))}function I(e){g((function(t){return PI(t,e)}))}function T(e){g((function(t){return AI(t,e)}))}function O(){u([]),f([]),E({}),g([])}a((function(){b(!s&&void 0)}),[s]);var j=p.map((function(e){return w[e]})),z=i((function(){return{assetTypes:c,metaproperties:j,tags:m,isLimited:y,addAssetType:C,removeAssetType:k,addMetaproperty:S,removeMetaproperty:_,addTag:I,removeTag:T,clear:O}}),[c,j,m,y]);return t.createElement(zI.Provider,{value:z},n)}function PI(e,t){return e.includes(t)?e:OI(OI([],e,!0),[t],!1)}function AI(e,t){return e.filter((function(e){return e!==t}))}function NI(){var e=r(zI);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function DI(e){var t;return null!==(t=MI[e])&&void 0!==t?t:e}var MI={};function FI(e){a((function(){var t=e.slice(0,2).toLowerCase(),n="".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/modules/compactview/i18n/").concat(t,".json");fetch(n).then((function(e){return e.json()})).then((function(e){MI=e}))}),[e])}var LI=n(null),RI={assets:"",isLoading:!1};function HI(e){var n=o(RI),r=n[0],s=n[1];function l(e,t){var n=""!==t;s((function(r){var o;return SI(SI({},r),((o={})[e]=t,o.isLoading=n,o))}))}function c(e){s((function(t){return SI(SI({},t),{isLoading:e})}))}function u(){s(RI)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]);var d=i((function(){return SI(SI({},r),{setSearch:l,setIsLoading:c,clear:u})}),[r]);return t.createElement(LI.Provider,{value:d},e.children)}function $I(){var e=r(LI);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function UI(e){var t=$I();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function VI(e){return{tag:"ok",value:e}}function WI(e){return{tag:"error",error:e}}function qI(e){return"ok"===e.tag}function GI(e){return"error"===e.tag}function YI(e){var t=e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"");return"https://".concat(t,"/")}var XI="transformBaseURL",KI="transformBaseUrl";function ZI(e){var t;if(e[XI]){var n=e,r=XI,o=n[r],i=_I(n,["symbol"==typeof r?r:r+""]);return SI(SI({},i),((t={})[KI]=SI({},o),t))}return e}var JI=new Map;function QI(e,t,n){return II(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u;return TI(this,(function(d){switch(d.label){case 0:if(!n)return[2,WI("No authentication provided")];if(r=n.getAccessToken&&n.getAccessToken(),"/"===(o=void 0!==n.accountDomain?YI(n.accountDomain.trim()):"https://".concat(window.location.host)).charAt(o.length-1)&&(o=o.slice(0,-1)),i="".concat(o,":").concat(e,":").concat(JSON.stringify(t),":").concat(r),JI.has(i))return[2,VI(JI.get(i))];a={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v".concat("2.0.3")},s=void 0===r?a:SI(SI({},a),{Authorization:"Bearer ".concat(r)}),l={method:"post",headers:s,body:JSON.stringify({query:e,variables:t})},d.label=1;case 1:return d.trys.push([1,4,,5]),[4,fetch("".concat(o,"/graphql"),l)];case 2:return[4,d.sent().json()];case 3:return c=d.sent(),u=function(e){var t,n,r,o;return(null===(n=null===(t=null==e?void 0:e.searchAssets)||void 0===t?void 0:t.assets)||void 0===n?void 0:n.nodes.length)?SI(SI({},e),{searchAssets:SI(SI({},e.searchAssets),{assets:SI(SI({},e.searchAssets.assets),{nodes:null===(o=null===(r=e.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.nodes.map((function(e){if(e.files){var t=ZI(e.files);return SI(SI({},e),{files:SI({},t)})}return e}))})})}):e}(c.data),[3,5];case 4:return[2,WI(d.sent())];case 5:return void 0!==c.errors?[2,WI(c.errors.map((function(e){return e.message})).join(","))]:(JI.set(i,u),JI.size>50&&JI.delete(JI.keys().next().value),[2,VI(u)])}}))}))}function eT(e){var t;if(!(null===(t=window.crypto)||void 0===t?void 0:t.subtle))return Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).");var n=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",n)}function tT(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){var t="0".concat(e.toString(16));return t.substring(t.length-2)})).join("")}var nT="42b1eefa-d754-4802-b9c4-bf80d6ab6052",rT="v6/authentication/oauth2/",oT="".concat("https://d8ejoa1fys2rk.cloudfront.net"),iT=oT+"/5.0.5/modules/compactview/loginCompleted.html",aT="".concat("https://apiv2.webdamdb.com","/"),sT="oauth2/",lT=["offline","asset:read","collection:read","meta.assetbank:read"];function cT(e,t,n){return II(this,void 0,void 0,(function(){var r,o,i,a;return TI(this,(function(s){switch(s.label){case 0:r=uT(n)+"token",o=new URLSearchParams({client_id:nT,code_verifier:t,code:e,redirect_uri:iT,grant_type:"authorization_code"}),s.label=1;case 1:return s.trys.push([1,4,,5]),[4,fetch(r,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:o})];case 2:return(i=s.sent()).ok?[4,i.json()]:[2,WI("Failed to fetch access token: ".concat(i.status))];case 3:return[2,VI({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,WI(s.sent().toString())];case 5:return[2]}}))}))}function uT(e){return"webdam"===dT()?aT+sT:YI(e)+rT}function dT(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function pT(e){return II(this,void 0,void 0,(function(){var t,n,r,o,i,a;return TI(this,(function(s){switch(s.label){case 0:return t=window.screen,n=t.width/2-285+window.screenX,r=t.height/2-350+window.screenY,null===(o=window.open("","Bynder Brand Portal","height=".concat(700,",width=").concat(570,",left=").concat(n,",top=").concat(r)))?[2,WI("Error opening login window")]:(o.document.head.innerHTML=fT,o.document.body.innerHTML=hT,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){t.origin===oT&&e(VI(t))}))})),new Promise((function(e){setTimeout((function(){return e(WI("Timeout"))}),6e5)})),(l=o,new Promise((function(e){var t=setInterval((function(){l.closed&&(clearInterval(t),e(WI("Login window closed")))}),1e3)})))])]);case 1:return GI(i=s.sent())?[2,i]:[2,VI({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var l}))}))}var fT='\n<title>Redirecting...</title>\n<style>\n @keyframes cv-spinner-animation {\n to {\n transform:rotate(1turn)\n }\n }\n\n .cv-spinner {\n position: relative;\n display: inline-block;\n padding: 175px 0 100px;\n width: 100%;\n height: auto;\n background: #fff;\n box-sizing: border-box;\n }\n \n .cv-spinner:before {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 40px;\n height: 40px;\n margin-top: -20px;\n margin-left: -20px;\n box-sizing: border-box;\n border-top: 3px solid #7e8890;\n border-right: 3px solid transparent;\n border-radius: 50%;\n content: "";\n animation: cv-spinner-animation .8s linear infinite;\n z-index: 3;\n }\n</style>',hT='<div class="cv-spinner"></div>',mT={error:console.error},gT=n(null),vT=gT.Provider,yT=function(){var e=r(gT);if(!e)throw new Error("useRootElement must be used with a RootElementProvider");return e},bT='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}b{font-weight:bolder}code{font-family:monospace,monospace;font-size:1em}button,input,select{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}progress{vertical-align:baseline}[type=checkbox]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}[hidden]{display:none}dd,h1,p{margin:0}button{background-color:transparent;background-image:none}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}*,:after,:before{-webkit-box-sizing:border-box;box-sizing:border-box;border:0 solid rgba(0,34,51,.1)}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,select{padding:0;line-height:inherit;color:inherit}code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,object,svg,video{display:block;vertical-align:middle}video{max-width:100%;height:auto}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-500{background-color:rgba(0,34,51,.05)}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.border-brand-500{--border-opacity:1;border-color:#0af;border-color:rgba(0,170,255,var(--border-opacity))}.rounded{border-radius:5px}.border-2{border-width:2px}.border{border-width:1px}.border-b{border-bottom-width:1px}.last\\:border-b-0:last-child{border-bottom-width:0}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:-webkit-box;display:-ms-flexbox;display:flex}.inline-flex{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.grid{display:grid}.contents{display:contents}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;flex-wrap:wrap}.items-center{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.self-start{-ms-flex-item-align:start;align-self:flex-start}.justify-center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;flex:1 1 0%}.flex-grow{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.flex-shrink-0{-ms-flex-negative:0;flex-shrink:0}.flex-shrink{-ms-flex-negative:1;flex-shrink:1}.font-sans{font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.font-semibold{font-weight:600}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-8{height:32px}.h-10{height:40px}.h-12{height:48px}.h-20{height:80px}.h-32{height:128px}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.mr-1{margin-right:4px}.ml-1{margin-left:4px}.mr-2{margin-right:8px}.mb-2{margin-bottom:8px}.ml-2{margin-left:8px}.mt-3{margin-top:12px}.mr-3{margin-right:12px}.ml-3{margin-left:12px}.mb-4{margin-bottom:16px}.mb-8{margin-bottom:32px}.-mr-2{margin-right:-8px}.max-w-24{max-width:96px}.max-w-32{max-width:128px}.min-w-24{min-width:96px}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.py-px{padding-top:1px;padding-bottom:1px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-5{padding-right:20px}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.right-0{right:0}.resize{resize:both}.shadow{-webkit-box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1);box-shadow:0 1px 6px 0 rgba(0,34,51,.1),0 0 0 1px rgba(0,34,51,.1)}.text-left{text-align:left}.text-right{text-align:right}.text-body-300{color:rgba(0,34,51,.3)}.text-body-400{color:rgba(0,34,51,.5)}.hover\\:text-body-500:hover,.text-body-500{color:rgba(0,34,51,.8)}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.break-all{word-break:break-all}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.w-5{width:20px}.w-6{width:24px}.w-10{width:40px}.w-40{width:160px}.w-48{width:192px}.w-56{width:224px}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.transform{--transform-translate-x:0;--transform-translate-y:0;--transform-rotate:0;--transform-skew-x:0;--transform-skew-y:0;--transform-scale-x:1;--transform-scale-y:1;-webkit-transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y));transform:translateX(var(--transform-translate-x)) translateY(var(--transform-translate-y)) rotate(var(--transform-rotate)) skewX(var(--transform-skew-x)) skewY(var(--transform-skew-y)) scaleX(var(--transform-scale-x)) scaleY(var(--transform-scale-y))}.transition{-webkit-transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,-webkit-box-shadow,-webkit-transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,-webkit-box-shadow,-webkit-transform}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@-webkit-keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes ping{75%,to{-webkit-transform:scale(2);transform:scale(2);opacity:0}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{-webkit-transform:translateY(-25%);transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{-webkit-transform:none;transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-in-down{0%{opacity:0;-webkit-transform:translateY(-2px);transform:translateY(-2px)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes border-rotate{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes border-dash{0%{stroke-dasharray:1,100;stroke-dashoffset:0}50%{stroke-dasharray:80,100;stroke-dashoffset:-20}to{stroke-dasharray:80,100;stroke-dashoffset:-48}}.transition-color{-webkit-transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear;transition:color .05s linear,background-color .05s linear,border-color .05s linear,opacity .05s linear}.transition-transform{-webkit-transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15);transition:transform .6s cubic-bezier(.175,.885,.32,1.15),-webkit-transform .6s cubic-bezier(.175,.885,.32,1.15)}.cv-root{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));font-family:SourceSansPro,Source Sans Pro,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:16px;color:rgba(0,34,51,.8);-webkit-box-sizing:border-box;box-sizing:border-box;position:relative}.cv-root *,.cv-root :after,.cv-root :before{-webkit-box-sizing:inherit;box-sizing:inherit}.cv-container{overflow:hidden;width:100%;height:100%}.cv-container nav:last-of-type{-webkit-box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1);box-shadow:0 1px 0 0 rgba(0,34,51,.1),0 1px 6px 0 rgba(0,34,51,.1)}.cv-dropdown{position:fixed;border-width:1px;border-color:rgba(0,34,51,.1);-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out;margin-top:4px;margin-bottom:4px;overflow-y:auto;border-radius:5px;-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1);z-index:9999999;overflow-y:hidden;-webkit-transition:left .1s ease-out;transition:left .1s ease-out}.card-list{padding-left:8px;padding-right:8px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.max-h-400{max-height:400px}.max-w-600{max-width:600px}.spinner{-webkit-animation:border-rotate 1s linear infinite;animation:border-rotate 1s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-10px 0 0 -10px;width:20px;height:20px}.spinner circle{stroke:currentColor;stroke-linecap:round;-webkit-animation:border-dash 1.5s ease-in-out infinite;animation:border-dash 1.5s ease-in-out infinite}.fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.fade-in-down{-webkit-animation:fade-in-down .15s ease-out;animation:fade-in-down .15s ease-out}.cv-skeleton{overflow:hidden;display:inline-block;position:relative;border-radius:4px;background-color:rgba(0,34,51,.05)}.cv-skeleton:before{position:absolute;height:100%;top:0;-webkit-animation:cv-skeleton-progress 1.5s ease-in-out infinite;animation:cv-skeleton-progress 1.5s ease-in-out infinite;content:"";width:500px;left:-500px;background-image:-webkit-gradient(linear,left top,right top,from(hsla(0,0%,100%,0)),color-stop(hsla(0,0%,100%,.6)),to(hsla(0,0%,100%,0)));background-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.6),hsla(0,0%,100%,0))}@keyframes cv-skeleton-progress{0%{left:-500px}to{left:100%}}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}button:focus{outline:revert}',xT=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,wT=function(e){var t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=function(e){return xT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}(e)),t[e]}}();function ET(e){var n=yT();return t.createElement(zu,{shouldForwardProp:wT,target:n},t.createElement(sh,{zIndexBase:1e6},e.children))}function CT(e){var n=e.children,r=e.isContainerMode,i=void 0!==r&&r,s=t.useRef(null),l=o(null),c=l[0],u=l[1];return a((function(){if(null!==s.current){var e,t,n=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(s.current);e=n,t="@import url(".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/css/vendor/font-awesome.min.css);")+bT,kT(null!=e?e:document.head,t),n&&kT(document.head,_T),u(null!=n?n:s.current)}}),[]),t.createElement("div",{ref:s,style:{display:"flex",height:"100%"},"data-testid":"root"},c&&t.createElement(vT,{value:c},t.createElement(ET,null,m(t.createElement(IT,{$isContainerMode:i,"data-testid":"ShadowRootInternalContainer"},n),c))))}function kT(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var ST,_T="\n@font-face {\n font-family: 'Source Sans Pro';\n font-style: normal;\n font-weight: 400;\n src: local('Source Sans Pro Regular'),\n local('SourceSansPro-Regular'),\n url('".concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('").concat("https://d8ejoa1fys2rk.cloudfront.net","/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff') format('woff');\n }\n \n @font-face {\n font-family: \"FontAwesome\";\n src: url(\"").concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),\n url("').concat("https://d8ejoa1fys2rk.cloudfront.net",'/5.0.5/includes/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");\n font-weight: 400;\n font-style: normal;\n }\n'),IT=Xu.div(ST||(ST=jI(["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"],["\n\twidth: ",";\n\tfont-family: 'Source Sans Pro';\n"])),(function(e){return e.$isContainerMode?"100%":"auto"})),TT=n("parent");function OT(e){var n=e.children,o=e.isContainerMode,i=void 0!==o&&o;return"parent"===r(TT)?t.createElement(TT.Provider,{value:"child"},t.createElement(CT,{isContainerMode:i},n)):t.createElement(t.Fragment,null,n)}var jT=n(null),zT=function(){return r(jT)};function BT(e){var n=e.children,r=e.isOpen,s=void 0===r||r,l=e.style,c=e.onClose,u=void 0===c?function(){}:c,d=o(null),p=d[0],f=d[1],h=i((function(){return{onClose:u}}),[u]);return a((function(){var e=document.createElement("div");return e.dataset.testId="CompactViewContainer",document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(jT.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(OT,null,t.createElement(NT,{className:"z-a-lot"},t.createElement(DT,{style:l,"data-testid":"modal"},n))),p))):null}var PT,AT,NT=Xu.div(PT||(PT=jI(["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"],["\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n\tdisplay: flex;\n\talign-items: center;\n\tpadding: ",";\n\tposition: fixed;\n\tanimation: var(--fade-in-down);\n\tbackground: ",";\n"])),ld.spacing5,ld.gray100a),DT=Xu.div(AT||(AT=jI(["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"],["\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\theight: 100%;\n\twidth: 100%;\n\toverflow: hidden;\n\tborder-radius: ",";\n"])),ld.radiusBase);function MT(e){var n=zT();return t.createElement(HT,{className:"cv-root",style:{minHeight:320}},null!==n&&t.createElement($T,null,t.createElement(rp,{variant:"clean",onClick:n.onClose,title:DI("Close"),icon:t.createElement(dp,null)})),t.createElement(UT,null,e.children))}var FT,LT,RT,HT=Xu.div(FT||(FT=jI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tposition: relative;\n\tbackground-color: ",";\n"])),ld.gray10),$T=Xu.div(LT||(LT=jI(["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"],["\n\tposition: absolute;\n\ttop: ",";\n\tright: ",";\n"])),ld.spacing4,ld.spacing5),UT=Xu.div(RT||(RT=jI(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"],["\n\tdisplay: flex;\n\tflex-direction: column;\n\tfont-size: ",";\n"])),ld.fontSize300);function VT(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8",style:{width:40,marginBottom:32}},t.createElement("path",{d:"\n\t\t\t\t\t\tM365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18\n\t\t\t\t\t\t0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42\n\t\t\t\t\t\t11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43\n\t\t\t\t\t\t144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09\n\t\t\t\t\t\t75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0\n\t\t\t\t\t\t0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0\n\t\t\t\t\t\t01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88\n\t\t\t\t\t\t9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0\n\t\t\t\t\t\t0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"})),t.createElement("h1",{className:"text-xl mb-2",style:{fontSize:20,margin:0,marginBottom:8,fontWeight:400}},DI("Connect your brand portal")))}function WT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function qT(e){var n=WT("w-6 h-6 text-body-300",e.className);return t.createElement("div",{"data-testid":"spinner",className:n},t.createElement("svg",{className:"spinner",viewBox:"0 0 20 20"},t.createElement("circle",{cx:"10",cy:"10",r:"8",fill:"none",strokeWidth:"3"})))}function GT(e){var n=e.status,r=e.isReadOnly,o=e.value,i=e.onChange,a=e.onSubmit;return t.createElement(KT,null,t.createElement(Hy,{type:"url",value:o,placeholder:"yourdomain.bynder.com",label:DI("Enter the portal domain"),onChange:i,onKeyDown:function(e){"valid"===n&&"Enter"===e.key&&a()},isInvalid:"invalid"===n,helperText:"invalid"===n&&DI("This portal domain does not exist"),hasClearButton:"validating"!==n&&!r,iconRight:"validating"===n?t.createElement(ZT,{role:"alert","aria-live":"polite"},t.createElement(qT,{className:"relative right-0"})):void 0,isDisabled:r,"data-testid":"login-input"}))}var YT,XT,KT=Xu.div(YT||(YT=jI(["\n\tmargin: "," 0;\n\twidth: 320px;\n"],["\n\tmargin: "," 0;\n\twidth: 320px;\n"])),ld.spacing4),ZT=Xu.div(XT||(XT=jI(["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"],["\n\theight: 100%;\n\tdisplay: flex;\n\talign-items: center;\n"])));function JT(e){return t.createElement(rp,{variant:"primary",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,isLoading:e.isSubmitting,"data-testid":"login-button"},DI("Connect"))}function QT(e){return t.createElement(MT,null,t.createElement(VT,null),t.createElement(GT,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(JT,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}function eO(){return t.createElement("svg",{width:"190",height:"130"},t.createElement("defs",null,t.createElement("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t.createElement("stop",{offset:"0%",stopColor:"#F8FAFC"}),t.createElement("stop",{offset:"100%",stopColor:"#EFF2F4"})),t.createElement("rect",{id:"prefix__a",width:"190",height:"130",rx:"3"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("mask",{id:"prefix__c",fill:"#fff"},t.createElement("use",{xlinkHref:"#prefix__a"})),t.createElement("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t.createElement("g",{mask:"url(#prefix__c)"},t.createElement("path",{fill:"#F5A623",d:"M100.296 45.951l23.01 43.23A6 6 0 01118.009 98H71.991a6 6 0 01-5.297-8.82l23.01-43.229a6 6 0 0110.592 0z"}),t.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M93.21 60h3.58a2 2 0 011.99 2.199l-1.6 16A2 2 0 0195.19 80h-.38a2 2 0 01-1.99-1.801l-1.6-16A2 2 0 0193.21 60zM95 84a3 3 0 110 6 3 3 0 010-6z"})),t.createElement("path",{fill:"#EEF1F3",d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"11",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"20",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"}),t.createElement("circle",{cx:"29",cy:"8",r:"3",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)"})))}function tO(e){return t.createElement(t.Fragment,null,t.createElement(eO,null),t.createElement(iO,null,DI("Oops! Something went wrong")),t.createElement(aO,null,DI("Please try again or get in contact with our customer support.")),t.createElement(sO,null,t.createElement(rp,{variant:"secondary",title:DI("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?DI("Report sent"):DI("Send report...")),t.createElement(rp,{variant:"primary",title:DI("Try again"),onClick:e.onClickRetry},DI("Try again"))))}var nO,rO,oO,iO=Xu.h1(nO||(nO=jI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),ld.spacing8,ld.fontSize400),aO=Xu.span(rO||(rO=jI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),ld.spacing5,ld.colorTextDisabled),sO=Xu.div(oO||(oO=jI(["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"],["\n\tmargin-top: ",";\n\tdisplay: flex;\n\tgap: ",";\n"])),ld.spacing7,ld.spacing3);function lO(e){var n;return t.createElement(Nb,{title:DI("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(rp,{variant:"primary",title:DI("Send report"),onClick:e.onDone},DI("Send report")),actionSecondary:t.createElement(rp,{variant:"secondary",title:DI("Cancel"),onClick:e.onCancel},DI("Cancel")),container:e.container},t.createElement(pO,null,DI("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement(fO,{"data-testid":"error-stack"},null===(n=e.error.stack)||void 0===n?void 0:n.split("\n").map((function(e){return t.createElement(t.Fragment,{key:e},e,t.createElement("br",null))}))),t.createElement(hO,null,DI("We will treat this report as confidential and anonymous.")))}var cO,uO,dO,pO=Xu.div(cO||(cO=jI(["\n\tline-height: ",";\n"],["\n\tline-height: ",";\n"])),ld.lineHeightText),fO=Xu.div(uO||(uO=jI(["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"],["\n\tmargin: "," 0;\n\tflex-grow: 1;\n\talign-self: stretch;\n\tbackground-color: ",";\n\tborder-radius: ",";\n\tborder: 1px solid ",";\n\tline-height: ",";\n\toverflow: scroll;\n\tpadding: "," ",";\n\tmax-height: 200px;\n"])),ld.spacing5,ld.gray25,ld.radiusMedium,ld.gray200,ld.lineHeightText,ld.spacing5,ld.spacing4),hO=Xu.span(dO||(dO=jI(["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"],["\n\tcolor: ",";\n\tline-height: ",";\n\tfont-size: ",";\n"])),ld.colorTextDisabled,ld.lineHeightBase,ld.fontSize75);function mO(e){var n=e.error,r=e.onRetry,i=yT(),s=o(!1),l=s[0],c=s[1],u=o(!1),d=u[0],p=u[1];return a((function(){mT.error(n)}),[n]),t.createElement("div",{className:"w-full h-full flex flex-col items-center justify-center bg-ui-0 font-sans\n text-base text-body-500"},t.createElement(tO,{isReportSent:d,onClickSend:function(){c(!0)},onClickRetry:r}),t.createElement(lO,{isOpen:l,error:n,container:i,onDone:function(){c(!1),p(!0)},onCancel:function(){c(!1)}}))}var gO=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return function(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}kI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(mO,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function vO(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(qT,null)," ")}var yO=n(null);function bO(e){var n,r,i,s,c,u,d,p,f;FI(null!==(n=e.language)&&void 0!==n?n:"en_US");var h=function(){var e,t,n=o(void 0),r=n[0],i=n[1],s=o(null!==(e=localStorage.getItem("cvrt"))&&void 0!==e?e:void 0),c=s[0],u=s[1],d=o(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],h=o(x()),m=h[0],g=h[1],v=l();function y(e){i((function(){return e.getAccessToken})),u(e.refreshToken),f(e.accountDomain),g(x(e.getAccessToken,e.refreshToken)),e.accountDomain&&localStorage.setItem("cvad",e.accountDomain),e.refreshToken&&localStorage.setItem("cvrt",e.refreshToken),v.current&&clearTimeout(v.current),e.expiresIn&&(v.current=setTimeout((function(){i(void 0)}),1e3*e.expiresIn))}function b(){var e;i(void 0),u(void 0),f(null!==(e=localStorage.getItem("cvad"))&&void 0!==e?e:void 0),g("not-authenticated"),localStorage.removeItem("cvrt"),v.current&&clearTimeout(v.current)}function x(e,t){return void 0===e&&(e=r),void 0===t&&(t=c),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){r&&r()||!c||!p||(g("refreshing"),function(e,t){return II(this,void 0,void 0,(function(){var n,r,o,i;return TI(this,(function(a){switch(a.label){case 0:n=uT(t)+"token",r=new URLSearchParams({client_id:nT,refresh_token:e,grant_type:"refresh_token"}),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,fetch(n,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:r})];case 2:return(o=a.sent()).ok?[4,o.json()]:[2,WI("Failed to fetch refresh token: ".concat(o.status))];case 3:return[2,VI({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,WI(a.sent().toString())];case 5:return[2]}}))}))}(c,p).then((function(e){qI(e)?y({getAccessToken:function(){return e.value.accessToken},expiresIn:e.value.expiresIn,refreshToken:c,accountDomain:p}):(mT.error(e.error),b())})))}),[r,c,p]),[{getAccessToken:r,accountDomain:p,status:m},y,b]}(),m=h[0],g=h[1],v=h[2],y=function(e){var t=o(null!=e?e:""),n=t[0],r=t[1],i=o(e?"validating":"empty"),s=i[0],c=i[1],u=l();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return II(this,void 0,void 0,(function(){var t,n,r;return TI(this,(function(o){switch(o.label){case 0:t=YI(e.trim())+"feeds/media/is-bynder-portal/",o.label=1;case 1:return o.trys.push([1,4,,5]),[4,fetch(t)];case 2:return[4,(n=o.sent()).json()];case 3:return r=o.sent(),200===n.status&&"application/json;charset=UTF-8"===n.headers.get("Content-Type")?[2,r.webdam?"webdam":"bynder"]:[2,"invalid"];case 4:return o.sent(),[2,"invalid"];case 5:return[2]}}))}))})(n).then((function(t){e||(c("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),r(e),c(""===e?"empty":"validating")},s]}(null!==(i=null===(r=e.portal)||void 0===r?void 0:r.url)&&void 0!==i?i:m.accountDomain),b=y[0],x=y[1],w=y[2],E=o(!1),C=E[0],k=E[1];a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.hideLogout)&&!(null===(n=e.authentication)||void 0===n?void 0:n.getAccessToken)&&mT.error("The hideLogout property can only be used in combination with getAccessToken property")}),[null===(s=e.authentication)||void 0===s?void 0:s.hideLogout,null===(c=e.authentication)||void 0===c?void 0:c.getAccessToken]),a((function(){var t,n;(null===(t=e.authentication)||void 0===t?void 0:t.getAccessToken)&&g({getAccessToken:e.authentication.getAccessToken,accountDomain:null===(n=e.portal)||void 0===n?void 0:n.url})}),[null===(u=e.authentication)||void 0===u?void 0:u.getAccessToken]),a((function(){var e=!0;return!0===C&&function(e){return II(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d;return TI(this,(function(p){switch(p.label){case 0:t=tT(),p.label=1;case 1:return p.trys.push([1,3,,4]),[4,eT(t)];case 2:return n=p.sent(),[3,4];case 3:return[2,WI(p.sent().toString())];case 4:return f=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(f)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=tT(),i=function(e,t,n){var r={client_id:nT,code_challenge:e,code_challenge_method:"S256",redirect_uri:iT,response_type:"code",scope:lT.join(" "),domain:"",state:t},o="auth?";"webdam"===dT()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return uT(n)+o+i}(r,o,e),[4,pT(i)];case 5:return GI(a=p.sent())?[2,a]:a.value.state!==o||null===a.value.code?[2,WI("Error logging in")]:[4,cT(a.value.code,t,e)];case 6:return GI(s=p.sent())?[2,s]:(l=s.value,c=l.refreshToken,u=l.accessToken,d=l.expiresIn,[2,VI({accessToken:u,expiresIn:parseFloat(d),refreshToken:c})])}var f}))}))}(b).then((function(t){e&&(function(e){if(qI(e)){var t=e.value,n=t.accessToken,r=t.refreshToken,o=t.expiresIn;g({getAccessToken:function(){return n},refreshToken:r,expiresIn:o,accountDomain:b})}else mT.error(e.error)}(t),k(!1))})),function(){e=!1}}),[C,b]);var S=SI(SI({},m),{logout:function(){var t;v(),null===(t=e.onLogout)||void 0===t||t.call(e)},hideLogout:!!(null===(d=e.authentication)||void 0===d?void 0:d.getAccessToken)&&e.authentication.hideLogout});switch(m.status){case"authenticated":return t.createElement(yO.Provider,{value:S},e.children);case"not-authenticated":return t.createElement(OT,{isContainerMode:!0},t.createElement(QT,{domainValue:b,domainStatus:w,onChangeDomain:x,isSubmitting:C,isEditable:null===(f=null===(p=e.portal)||void 0===p?void 0:p.editable)||void 0===f||f,onSubmit:function(){k(!0)}}));case"refreshing":return t.createElement(vO,null)}}var xO=function(e){return t.createElement(gO,null,t.createElement(bO,SI({},e)))},wO=function(){var e;return"authenticated"===(null===(e=r(yO))||void 0===e?void 0:e.status)||!1},EO=function(){return r(yO)},CO="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";function kO(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:WT("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function SO(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function _O(e){return t.createElement(TO,{$isVisible:e.isVisible},t.createElement(rp,{icon:t.createElement(lp,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var IO,TO=Xu.div(IO||(IO=jI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function OO(e){return t.createElement(zO,{$isVisible:e.isVisible},t.createElement(rp,{icon:t.createElement(sp,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var jO,zO=Xu.div(jO||(jO=jI(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function BO(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=SO(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:WT("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(OO,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(_O,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}var PO,AO,NO,DO,MO=Xu.div(PO||(PO=jI(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),ld.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),FO=Xu.li(AO||(AO=jI(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),ld.spacing2,ld.spacing5,ld.gray25),LO=Xu.div(NO||(NO=jI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tcolor: ",";\n"])),ld.fontSize75,(function(e){return e.$isChecked?"inherit":ld.gray500})),RO=Xu.span(DO||(DO=jI(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),ld.spacing4);function HO(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(FO,null,t.createElement(MO,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(Kh,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(LO,{$isChecked:n},t.createElement(RO,{title:e.metapropertyOption.label},t.createElement(kh,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function $O(e){return t.createElement(WO,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(qO,null,e.metaproperty.options.map((function(n){return t.createElement(HO,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var UO,VO,WO=Xu.div(UO||(UO=jI(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),ld.spacing5),qO=Xu.ul(VO||(VO=jI(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"]))),GO=300;function YO(e){var n,r=l(null),i=o(0)[1];!function(e,t){var n=yT();a((function(){function r(n){var r=n.target;e.map((function(e){return null==e?void 0:e.current})).some((function(e){return e&&e.contains(r)}))||t()}return null==n||n.addEventListener("mousedown",r),function(){return null==n?void 0:n.removeEventListener("mousedown",r)}}),[e,t,n])}([e.target,r],e.onClickOutside),d((function(){i(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var s=yT(),c=null!==(n=s.querySelector(".cv-root"))&&void 0!==n?n:s;if(null===s||null===e.target.current)return null;var u=e.target.current.getBoundingClientRect(),p=u.x,f=window.innerWidth,h=p+300>f?void 0:p,g=p+300>f?f-u.width-p:void 0,v="Down"===e.direction?u.top+u.height:void 0,y="Up"===e.direction?window.innerHeight-u.top:void 0,b=c.getBoundingClientRect(),x=b.width-(null!=h?h:0)-(null!=g?g:0),w=b.height-(null!=y?y:0)-(null!=v?v:0);h&&x<GO&&(h=p+u.width-GO);var E={left:h,right:g,top:v,bottom:y,maxWidth:x,maxHeight:w,minWidth:GO},C=WT("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:C,ref:r,style:E},e.children),s)}function XO(e){var n=e.buttonKind,r=void 0===n?"clean":n,a=e.direction,s=void 0===a?"Down":a,c=e.isSmall,u=e.fadeIn,d=_I(e,["buttonKind","direction","isSmall","fadeIn"]),p=i((function(){return"dropdownmenu-".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2))}),[]),f=o(!1),h=f[0],m=f[1],g=l(null),v=function(){return m((function(e){return!e}))};return t.createElement(t.Fragment,null,t.createElement(ZO,{$fadeIn:Boolean(u)},t.createElement(rp,{variant:r,isSmall:c,onClick:v,ref:g,isDisabled:d.disabled,isPressed:h,"aria-haspopup":!0,"aria-expanded":h,"aria-controls":p,"data-testid":"button"},t.createElement("span",{className:"inline-flex items-center",title:d.alt},d.title),t.createElement(pp,{className:"w-6 h-6 ml-1 -mr-2"}))),h&&t.createElement(YO,{className:d.className,onClickOutside:v,direction:s,target:g,id:p},d.children(v)))}var KO,ZO=Xu.div(KO||(KO=jI(["\n\ttext-transform: inherit;\n\t","\n"],["\n\ttext-transform: inherit;\n\t","\n"])),(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}));function JO(e){return t.createElement(ej,null,e.smartfilter.metaproperties.map((function(n){return t.createElement($O,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var QO,ej=Xu.div(QO||(QO=jI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),ld.spacing4);function tj(e){var n,r,o=NI(),i=o.metaproperties.map((function(e){return e.id})),a=(n=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),r=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},OI([],n,!0).sort((function(e,t){return r(e)-r(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(XO,{key:n.id,title:t.createElement(nj,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement($O,{metaproperty:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}):t.createElement(JO,{smartfilter:n,selectedOptionIds:i,isLoading:e.isLoading,onAddOption:o.addMetaproperty,onRemoveOption:o.removeMetaproperty}))}))})))}function nj(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:WT("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function rj(e){var n=NI(),r=n.tags.includes(e.tag.name);return t.createElement(ij,{key:e.tag.id,size:"s",onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item",$active:r},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}var oj,ij=Xu(om)(oj||(oj=jI(["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"],["\n\tbackground-color: ",";\n\tborder: 1px solid var(--gray50);\n\ttransition: color 0.05s linear, background-color 0.05s linear, border-color 0.05s linear,\n\t\topacity 0.05s linear;\n\tmargin-right: ",";\n\tmargin-bottom: ",";\n"])),(function(e){return e.$active?ld.gray50:"transparent"}),ld.spacing3,ld.spacing3);function aj(e){var n=OI([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(XO,{title:t.createElement(sj,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",DI("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(rj,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function sj(){return t.createElement(t.Fragment,null,t.createElement(kp,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},DI("Tags")))}function lj(e){return DI({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function cj(e){switch(e){case"AUDIO":return _p;case"DOCUMENT":return vp;case"IMAGE":return up;case"VIDEO":return Sp;case"ARCHIVE":return ip}}function uj(e){var n=NI(),r=n.assetTypes.includes(e.type),o=cj(e.type);return t.createElement(FO,{"data-testid":"advanced-options"},t.createElement(MO,{$isChecked:r,$isLoading:e.isLoading},t.createElement(Kh,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat(lj(e.type),"-filter")},t.createElement(LO,{$isChecked:r},t.createElement(o,null),t.createElement(pj,null,lj(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var dj,pj=Xu.div(dj||(dj=jI(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),ld.spacing3);function fj(e){var n=wI().assetTypes,r=n.filter((function(t){return mj(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(XO,{title:t.createElement(hj,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(qT,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},DI("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(uj,{key:n,type:n,count:mj(e.count,n),isLoading:e.isLoading})}))))}))}function hj(){return t.createElement(t.Fragment,null,t.createElement(op,{className:"mr-2 inline w-6 h-6"}),DI("Advanced"))}function mj(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function gj(){var e=NI(),n=UI("assets").value,r=wI(),i=r.assetTypes,s=r.language;FI(s);var l=function(e){var t=this,n=EO(),r=o({tag:"Loading",value:null}),i=r[0],s=r[1],l=!1;return a((function(){return II(t,void 0,void 0,(function(){var t,r,o,i,a,c,u;return TI(this,(function(d){switch(d.label){case 0:return s((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=e.searchTerm,o=e.allAssetTypes,i=e.language,a={filter:{assetType_in:null!==(u=(t=e.filter).assetTypes)&&void 0!==u?u:o,collectionId:null,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags,isLimitedUse:t.isLimited},language:i},[4,QI(CO,a,n)];case 1:return c=d.sent(),l||(GI(c)?s({tag:"Failure",value:c.error}):s({tag:"Loaded",value:c.value})),[2]}}))})),function(){l=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:i,isLoading:"Loading"===i.tag}}({filter:e,searchTerm:n||null,allAssetTypes:i,language:s}),c=l.data,u=l.isLoading;if("Failure"===c.tag||!c.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(vj,null));var d=c.value.searchAssets,p=d.metapropertyFilters,f=d.tags,h=d.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(BO,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(tj,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(aj,{tags:f.nodes,isLoading:u}),t.createElement(fj,{isLoading:u,count:h.assetType})))}function vj(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(kO,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var yj=n(null),bj={field:"CREATED_AT",direction:"DESC"};function xj(e){var n=o(bj),r=n[0],a=n[1];function s(e){a(e)}function l(){a(bj)}var c=i((function(){return{assets:r,setOrdering:s,reset:l}}),[r]);return t.createElement(yj.Provider,{value:c},e.children)}function wj(e){var t=function(){var e=r(yj);if(null===e)throw new Error("useOrdering must be used with a OrderingProvider");return e}();return[t[e],function(e){return t.setOrdering(e)}]}var Ej="\nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\n\tisLimitedUse\n\tfiles\n\tmetaproperties {\n\t\tnodes {\n\t\t id\n\t\t label(language: $language)\n\t\t showInGridView\n\t\t showInListView\n\t\t zIndex\n\t\t options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n\ttextMetaproperties {\n name\n value\n type\n label\n zIndex\n showInGridView\n showInListView\n }\n}",Cj="\n query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $language: String) {\n searchAssets(filter: $filter) {\n assets(after: $after, first: 50, orderBy: $orderBy) {\n nodes {\n __typename\n ...DisplayAsset\n }\n\t\t\t\ttotalCount\n\t\t\t\tpageInfo {\n\t\t\t\t\tendCursor\n\t\t\t\t\thasNextPage\n }\n }\n }\n }\n ".concat(Ej,"\n"),kj=function(e,t){var n,r,o,i,a=e.filter,s=e.predefinedFilter,l=e.orderBy,c=e.allAssetTypes,u=e.searchTerm,d=e.language,p=(null===(n=null==a?void 0:a.assetTypes)||void 0===n?void 0:n.length)?a.assetTypes:null==s?void 0:s.assetType_in;return{orderBy:l,filter:{assetType_in:null!=p?p:c,metapropertyOptionId_in:null!==(r=_j(null==a?void 0:a.metaproperties))&&void 0!==r?r:null==s?void 0:s.metapropertyOptionId_in,searchTerm:null!==(o=null!=u?u:null==s?void 0:s.searchTerm)&&void 0!==o?o:null,tagNames_in:null!==(i=null==a?void 0:a.tags)&&void 0!==i?i:null==s?void 0:s.tagNames_in,isLimitedUse:null==a?void 0:a.isLimited},after:t,language:d}},Sj=function(e,t){var n,r=null!=t?t:e;if("Failure"!==r.tag)return null===(n=r.value)||void 0===n?void 0:n.searchAssets.assets},_j=function(e){return e?e.map((function(e){return e.id})):null};function Ij(e,t,n){return II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,QI("\n query getAssetsById($ids: [ID!]!, $language: String) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...DisplayAsset\n files\n }\n }\n }\n ".concat(Ej),{ids:e,language:n},t)];case 1:return GI(r=o.sent())?[2,r]:[2,VI(r.value.nodes)]}}))}))}var Tj=n(null);function Oj(e){var n=o([]),r=n[0],s=n[1],l=o(),c=l[0],u=l[1],d=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=wI(),l=s.selectionMode,c=s.language,u=EO(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,II(t,void 0,void 0,(function(){var e,t,n;return TI(this,(function(o){switch(o.label){case 0:return r.length?[4,Ij(r,u,c)]:[3,2];case 1:e=o.sent(),d||GI(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){d=!0}}),[e]),r}(c),p=CI();function f(){s([])}function h(e){s((function(t){var n=e.filter((function(e){return!jj(t,e)}));return OI(OI([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function m(e){var t;"MultiSelect"!==p?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!jj(t,e)})),r=e.filter((function(e){return jj(t,e)}));return OI(OI([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){h(d)}),[d]);var g=i((function(){return{selection:r,preselectedAssetIds:c,clear:f,selectAssets:h,toggleAssets:m}}),[r]);return t.createElement(Tj.Provider,{value:g},e.children)}function jj(e,t){return e.some((function(e){return e.value.id===t.id}))}function zj(){var e=r(Tj);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function Bj(){var e=UI("assets"),n=e.value,r=e.isLoading,i=mI(e.setSearch,500),s=o(n),l=s[0],c=s[1];a((function(){c(n)}),[n]),a((function(){return function(){i.flush()}}),[i]);var u=DI("Search for assets");return t.createElement(Aj,null,t.createElement(pg,{value:l,placeholder:u,"aria-label":u,onChange:function(e){return c(t=e),void i(t);var t},"data-testid":"search-input",icon:t.createElement(Ep,null),iconRight:r?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(qT,{className:"relative right-0"})):void 0,hasClearButton:!r&&!!n}))}var Pj,Aj=Xu.div(Pj||(Pj=jI(["\n\twidth: 100%;\n\tmax-width: 440px;\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n"])));function Nj(){var e=wO(),n=zT(),r=EO(),o=EI();return e||n||void 0===o?t.createElement(Rj,null,t.createElement(Lj,null),t.createElement(Bj,null),t.createElement(Hj,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(rp,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(gp,null)},DI("Log out")),n&&t.createElement(rp,{variant:"clean",onClick:function(){return n.onClose()},title:DI("Close"),icon:t.createElement(dp,null)}))):null}var Dj,Mj,Fj,Lj=Xu.div(Dj||(Dj=jI(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n"]))),Rj=Xu.nav(Mj||(Mj=jI(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),ld.gray10,ld.spacing5,ld.spacing4),Hj=Xu.div(Fj||(Fj=jI(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function $j(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function Uj(e){return t.createElement(Kj,null,t.createElement(Zj,null,t.createElement($j,null),t.createElement(Jj,null)),t.createElement(Qj,null,DI("No results found")),t.createElement(ez,null,DI("Try adjusting the filter to find assets.")),t.createElement(tz,null,t.createElement(rp,{variant:"primary",title:DI("Reset filters"),onClick:e.onReset},DI("Reset filters"))))}var Vj,Wj,qj,Gj,Yj,Xj,Kj=Xu.div(Vj||(Vj=jI(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),Zj=Xu.div(Wj||(Wj=jI(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),ld.gray25),Jj=Xu(Ep)(qj||(qj=jI(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),ld.spacing2,ld.gray300),Qj=Xu.h1(Gj||(Gj=jI(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),ld.spacing6,ld.fontSize400),ez=Xu.span(Yj||(Yj=jI(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),ld.spacing5,ld.colorTextDisabled),tz=Xu.div(Xj||(Xj=jI(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),ld.spacing7);function nz(e){return t.createElement(oz,{icon:e.icon,size:"s",onDelete:e.onClick,"data-testid":"selected-filter:".concat(e.title)},e.title)}var rz,oz=Xu(om)(rz||(rz=jI(["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"],["\n\tbackground-color: transparent;\n\tmargin-right: ",";\n\tborder: 1px solid var(--gray50);\n\tbox-shadow: 0 1px 6px -2px rgba(0, 34, 51, 0.1);\n"])),ld.spacing3);function iz(){var e=NI(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(sz,null,t.createElement(rp,{variant:"clean",isSmall:!0,onClick:e.clear},DI("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(BO,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=cj(n);return t.createElement(nz,{key:n,onClick:function(){return e.removeAssetType(n)},title:lj(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(nz,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(nz,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var az,sz=Xu.div(az||(az=jI(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"])));function lz(e,t,n){return(1===e?t:n).replace("{}",e.toString())}var cz=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function uz(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return cz.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function dz(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}var pz,fz,hz,mz,gz=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},vz=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?Ty(new Date(n),"dd MMMM yyyy"):n,zIndex:o}}));return OI(OI([],n,!0),r,!0).sort(gz)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Uh.AdditionalInfo,null,t.createElement(yz,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(bz,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(xz,null,n,":"),t.createElement(wz,{title:r},o))})))):null},yz=Xu.dl(pz||(pz=jI(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),ld.fontSize75),bz=Xu.div(fz||(fz=jI(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),xz=Xu.dt(hz||(hz=jI(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),wz=Xu.dd(mz||(mz=jI(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function Ez(e){var n=e.className,r=e.fadeIn,i=void 0===r||r,s=e.asset,l=e.isSelected,c=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=wI().hideExternalAccess,h=o(),m=h[0],g=h[1],v=o(),y=v[0],b=v[1],x=function(e){return[e.isArchived&&DI("archived"),e.isWatermarked&&DI("watermarked"),e.isLimitedUse&&DI("limited")].filter((function(e){return e})).join(", ")}(s),w=dz(s);a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));g(t)}),[s.metaproperties]),a((function(){var e,t=null===(e=s.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));b(t)}),[s.textMetaproperties]);var E=function(e){void 0!==u&&(e.stopPropagation(),u(s,e))};return t.createElement(_z,{id:s.id,$isOutlined:l||c,$fadeIn:i,className:WT("group",n),"data-drag-select-id":s.id},t.createElement(Uh,{selectButtonAriaLabel:DI(l?"Deselect":"Select"),onSelect:E,onClick:E,isSelected:l,"aria-selected":l,"data-testid":"asset-card",contextAction:!f&&t.createElement(Uh.ContextActionButton,{"aria-label":DI("Open in new tab"),onClick:function(){window.open(s.url,"_blank")}},t.createElement(wp,null))},t.createElement(Uh.Frame,{icon:x?t.createElement(Iz,{$limitWidth:!!w},t.createElement(cd,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(kh,null,x))):void 0,"data-testid":"asset-type",badge:w},t.createElement(Uh.Images,null,uz(s)&&t.createElement(Uh.Img,{src:uz(s),alt:s.name,contentResize:"fit"}))),p,t.createElement(Tz,{"data-testid":"asset-name"},s.name),t.createElement(vz,{metaproperties:m,textMetaproperties:y})))}var Cz,kz,Sz,_z=Xu.div(Cz||(Cz=jI(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n"])),ld.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""})),Iz=Xu.div(kz||(kz=jI(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),Tz=Xu.p(Sz||(Sz=jI(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"])));function Oz(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement("div",{key:r,className:"m-2 w-56 self-start group relative","data-testid":"asset-card"},t.createElement(Uh,null,t.createElement(Uh.Frame,null),t.createElement(Uh.AdditionalInfo,null,t.createElement(kO,{width:70+(o=r,16807*((o+20)%2147483647+2147483646)%2147483647%100),className:"h-4"})),e.title));var o})))}var jz={x:null,y:null},zz="drag-select-container",Bz=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(jz),f=p[0],h=p[1],g=o(jz),v=g[0],y=g[1],b=yI(v,10,{leading:!0,maxWait:10})[0],x=o(),w=x[0],E=x[1],C=yT(),k=t.useMemo((function(){return Az(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=yI(k,50,{leading:!1,maxWait:50})[0],_=o([]),I=_[0],T=_[1],O=Lz(I),j=l(f),z=l(v),B=l(null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y),P=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",A,!1),document.addEventListener("keyup",A,!1),function(){document.removeEventListener("keydown",A,!1),document.removeEventListener("keyup",A,!1)}}),[]);var A=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},B.current&&r!==w&&E(r)};a((function(){var e;return"function"==typeof u&&B.current?(A(P.current),u(null!=w?w:"select")):"function"!=typeof d||B.current||(e=setTimeout((function(){return d(null!=w?w:"select")}),10)),function(){return clearTimeout(e)}}),[B.current,w]);var N=function(e){j.current=e,h(e),M()},D=function(e){z.current=e,y(e),M()},M=function(){B.current=null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y},F=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&D({x:o,y:r})}),[]),L=c((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),N(jz),D(jz)}),[F,C]),R=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),N({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(Mz(C),e.addEventListener("mousedown",R)),function(){e&&(e.removeEventListener("mousedown",R),Fz(C))}}),[n,R,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=Dz(t);return t instanceof HTMLElement&&Nz(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);T(t)}),[S,C]),a((function(){if(O&&O!==I&&B.current){var e=I.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[I,O,i,s,B]);var H=C.querySelector("#".concat(zz));return B.current&&H?m(t.createElement("div",SI({},r,{style:r.style?SI(SI(SI({},Pz),r.style),k):SI(SI({},Pz),k),"data-testid":"drag-selection"})),H):null},Pz={position:"absolute",zIndex:100},Az=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},Nz=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},Dz=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},Mz=function(e){var t=document.createElement("div");t.id=zz,e.appendChild(t)},Fz=function(e){var t=e.querySelector("#".concat(zz));t&&t.remove()},Lz=function(e){var t=l();return a((function(){t.current=e})),t.current};function Rz(e){var n=Xx(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(qT,{className:WT(!o&&"hidden")})))}function Hz(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,x=void 0===b?[]:b,w=e.selectionMode,E=void 0===w?"MultiSelect":w,C=e.children,k=void 0===C?null:C,S=l(null),_=SO(S.current).dimensions,I=o([]),T=I[0],O=I[1],j=o("inactive"),z=j[0],B=j[1],P=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,_),A=P[0],N=P[1];function D(e){return("inverse"!==z||!x.includes(e.id)||!T.includes(e.id))&&(x.includes(e.id)||T.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:S,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(Oz,{rows:A,columns:N}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(Bz,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6}},onSelect:function(e){O((function(t){return OI(OI([],t,!0),e,!0)}))},onDeselect:function(e){O((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),T.length){var t=[];T.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),O([])}}}),t.createElement(Rz,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(Ez,{key:e.id,isSelected:D(e),isOutlined:D(e),asset:e,fadeIn:n>=A*N,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===x[x.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function $z(){var e=wj("assets"),n=e[0],r=e[1],o={ASC:DI("Ascending"),DESC:DI("Descending")},i={ASC:"DESC",DESC:"ASC"};return t.createElement(rp,{variant:"clean",isSmall:!0,title:o[n.direction],onClick:function(){r({field:n.field,direction:i[n.direction]})},icon:t.createElement(Vz,{$isAscending:"ASC"===n.direction})})}var Uz,Vz=Xu((function({size:e="24px",style:t={},...n}){const r={verticalAlign:"middle",...t};return Qu.exports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24",width:e,height:e,style:r,"aria-hidden":"true",...n,children:Qu.exports.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 6v2h18V6H3Zm0 12h6v-2H3v2Zm12-5H3v-2h12v2Z",clipRule:"evenodd"})})}))(Uz||(Uz=jI(["\n\twidth: ",";\n\theight: ",";\n\t","\n"],["\n\twidth: ",";\n\theight: ",";\n\t","\n"])),ld.spacing6,ld.spacing6,(function(e){return e.$isAscending&&"transform: scaleY(-1)"}));function Wz(e){var n=e.selected,r=void 0!==n&&n,o=_I(e,["selected"]),i=WT("text-left w-full cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",r?"text-body-500":"text-body-400",o.className);return t.createElement("li",null,t.createElement("button",{type:"button",className:i,onClick:o.onClick,role:"menuitemradio","aria-checked":r,tabIndex:-1},o.children,r&&t.createElement(fp,{className:"w-6 h-6 ml-3 fade-in"})))}function qz(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=wj("assets"),i=o[0],a=o[1],s={CREATED_AT:DI("Date added"),NAME:DI("Name"),PUBLISHED_AT:DI("Date published"),UPDATED_AT:DI("Date modified")};return t.createElement(Yz,null,t.createElement(XO,{className:"py-2",title:s[i.field],alt:DI("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Wz,{className:"px-4 py-px text-sm",selected:i.field===n,key:s[n],onClick:function(){a({field:n,direction:i.direction}),e()}},t.createElement("span",{className:"flex-grow min-w-24 py-2"},s[n]))})))})))}var Gz,Yz=Xu.div(Gz||(Gz=jI(["\n\tmargin-left: auto;\n"],["\n\tmargin-left: auto;\n"])));function Xz(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=$I().setIsLoading,h=wI(),m=zj().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=zj(),v=g.selectAssets,y=g.toggleAssets,b=$I().setSearch,x=NI();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(mO,{error:new Error(l.value),onRetry:p});var w=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(Hz,{assets:Kz(l),count:w,isLoading:c,loadMore:u,hasNextPage:d,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(Uj,{onReset:function(){x.clear(),b("assets","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==w&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:w},lz(w,DI("{} asset"),DI("{} assets"))),e.showActiveFilters&&t.createElement(iz,null),t.createElement(qz,null),t.createElement($z,null)))}function Kz(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function Zz(){var e=NI(),n=e.assetTypes,r=e.metaproperties,i=e.tags,s=e.isLimited,l=UI("assets").value,c=wj("assets")[0],u=wI(),d=u.assetFilter,p=u.assetTypes,f=u.language,h=function(e){var t,n,r,i,s,l=this,c=EO(),u=o({tag:"Loading",value:null}),d=u[0],p=u[1],f=!1,h=function(t){return II(l,void 0,void 0,(function(){var n,r;return TI(this,(function(o){switch(o.label){case 0:return p((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=kj(e,null!=t?t:null),[4,QI(Cj,n,c)];case 1:return r=o.sent(),f||(GI(r)?p({tag:"Failure",value:r.error}):m(r,t)),[2]}}))}))},m=function(e,t){Sj(d)&&t?p((function(t){var n,r,o=null!==(r=null===(n=Sj(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:SI(SI({},e.value.searchAssets.assets),{nodes:OI(OI([],o,!0),e.value.searchAssets.assets.nodes,!0)})}}}})):p({tag:"Loaded",value:e.value})};return a((function(){return h(),function(){f=!0}}),[null===(t=e.filter)||void 0===t?void 0:t.assetTypes,null===(n=e.filter)||void 0===n?void 0:n.metaproperties,null===(r=e.filter)||void 0===r?void 0:r.tags,null===(i=e.filter)||void 0===i?void 0:i.isLimited,e.orderBy,e.searchTerm,e.language]),{data:d,executeQuery:function(){return h()},isLoading:!d||"Loading"===d.tag,loadMore:function(){var e;return h(null===(e=Sj(d))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(s=Sj(d))||void 0===s?void 0:s.pageInfo.hasNextPage)}}(void 0===d?{filter:{assetTypes:n,metaproperties:r,tags:i,isLimited:s},searchTerm:l,orderBy:c,allAssetTypes:p,language:f}:{predefinedFilter:d,orderBy:c,language:f});return t.createElement(Xz,{connection:h,showActiveFilters:void 0===d})}var Jz="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function Qz(e,t,n){return void 0===n&&(n=Jz),II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,QI("\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),{id:e},t)];case 1:return GI(r=o.sent())?[2,r]:[2,VI(r.value.node)]}}))}))}function eB(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var tB="Custom transformation";function nB(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=EO(),u=wI().assetFieldSelection;return a((function(){l({status:"Loading"}),r(void 0),function(e,t,n){return II(this,void 0,void 0,(function(){var r;return TI(this,(function(o){switch(o.label){case 0:return[4,Qz(e.id,t,n)];case 1:return qI(r=o.sent())&&r.value.files?[2,VI(ZI(r.value.files))]:[2,WI("Error retrieving asset files")]}}))}))}(n,c,u).then((function(e){if(GI(e))return mT.error(e.error),void l({status:"Failure"});var t=e.value,n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,u]),t.createElement(aB,null,t.createElement(XO,{title:t.createElement(rB,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var o,i=n[0],a=n[1];return t.createElement(Wz,{key:i,className:"px-3 py-2",selected:s.key===i,onClick:function(){!function(e){l((function(t){return"Data"!==t.status?t:(setTimeout((function(){return r(t.files[e])})),SI(SI({},t),{key:e}))}))}(i),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===i?t.createElement(cp,{className:"w-6 h-6"}):null!==(o=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(a.url))&&void 0!==o?o:t.createElement(xp,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},eB(i)),t.createElement("div",{className:"text-sm"},a.width&&a.height&&"".concat(a.width," x ").concat(a.height," px"),a.width&&a.height&&a.fileSize&&t.createElement("span",{className:"mx-2"},"•"),a.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(a.fileSize))))})))})))}function rB(e){var n=e.state;return"Loading"===n.status?t.createElement(kO,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(sB,null,n.key===tB&&t.createElement(mp,null),eB(n.key)):t.createElement(t.Fragment,null,"Error")}var oB,iB,aB=Xu.div(oB||(oB=jI(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),ld.spacing5),sB=Xu.div(iB||(iB=jI(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),ld.spacing4),lB="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function cB(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(fp,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,DI("Retry")):t.createElement(t.Fragment,null,lz(r,DI("Add asset"),DI("Add assets")))}function uB(e){var n,r=wI(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=zj().preselectedAssetIds,d=EO(),p=l(!0),f=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),h=f[0],m=f[1];function g(e,t){if(GI(e))m({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,u)})),s(n,{selectedFile:t})}catch(e){mT.error(e)}p.current&&(m({status:"Done"}),setTimeout((function(){p.current&&m({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(nB,{asset:e.selection[0].value,onChange:function(e){m(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(rp,{variant:"primary",isDisabled:"Loading"===h.status||"WaitingForFileSelection"===h.status,onClick:function(){var t,n="ReadyWithFile"===h.status?h.file:void 0;m({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?Qz(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n=lB),II(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h;return TI(this,(function(m){switch(m.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n ".concat(n,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),o={ids:e.map((function(e){return e.value.id}))},[4,QI(r,o,t)];case 1:if(GI(i=m.sent()))return[2,i];for(a=[],s=0,l=i.value.nodes;s<l.length;s++)"Collection"===(c=l[s]).__typename?a.push.apply(a,c.assets.nodes):a.push(c);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)h=f[p],u.has(h.id)||(d.push(h),u.add(h.id));return[2,VI(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===h.status},t.createElement(cB,{status:h.status,numberOfSelectedItems:e.selection.length})))}function dB(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement(MO,{$isChecked:!0,$isFlex:!0},t.createElement(Kh,{"aria-label":DI("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(fB,{htmlFor:"deselect-".concat(n)},o)))}var pB,fB=Xu.label(pB||(pB=jI(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),ld.fontSize100,ld.spacing3);function hB(e){var n=e.asset,r=zj();return t.createElement(dB,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(gB,null,t.createElement(Sg,{variant:"preview",imageUrl:uz(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),dz(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},dz(n)))}var mB,gB=Xu.div(mB||(mB=jI(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),ld.spacing4);function vB(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return t.createElement(hB,{key:e.value.id,asset:e.value})})))}function yB(){var e=zj(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(wB,{"data-testid":"selection-footer"},t.createElement(EB,null,t.createElement(XO,{buttonKind:"secondary",direction:"Up",title:DI("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(vB,{selection:n})})),t.createElement(rp,{variant:"clean",onClick:r},DI("Clear selection"))),t.createElement(uB,{selection:n}))}var bB,xB,wB=Xu.div(bB||(bB=jI(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),ld.layoutSpacing5,ld.spacing6),EB=Xu.span(xB||(xB=jI(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),ld.spacing2);function CB(e){var n=e.assetFieldSelection,r=e.assetTypes,o=void 0===r?["IMAGE","DOCUMENT","VIDEO","AUDIO","ARCHIVE"]:r,i=e.defaultSearchTerm,a=e.language,s=void 0===a?"en_US":a,l=e.mode,c=void 0===l?"SingleSelectFile":l,u=e.onSuccess,d=void 0===u?function(e,t){var n=t.selectedFile;return console.log(e,n)}:u,p=e.hideExternalAccess,f=e.selectedAssets,h=e.hideLimitedUse,m=e.isContainerMode,g=void 0!==m&&m;FI(s);var v={assetFieldSelection:n,assetTypes:o,language:s,onSuccess:d,selectionMode:c,hideExternalAccess:p};return t.createElement(gO,null,t.createElement(OT,{isContainerMode:g},t.createElement(xj,null,t.createElement(BI,{hideLimitedUse:h},t.createElement(HI,{defaultValue:i},t.createElement(xI,{value:v},t.createElement(Oj,{preselectedAssetIds:null!=f?f:[]},t.createElement("div",{className:"cv-root cv-container"},t.createElement(Nj,null),t.createElement(gj,null),t.createElement(Zz,null),t.createElement(yB,null)))))))))}var kB={};function SB(e,t){return function(){return e.apply(t,arguments)}}const{toString:_B}=Object.prototype,{getPrototypeOf:IB}=Object,TB=(e=>t=>{const n=_B.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),OB=e=>(e=e.toLowerCase(),t=>TB(t)===e),jB=e=>t=>typeof t===e,{isArray:zB}=Array,BB=jB("undefined"),PB=OB("ArrayBuffer"),AB=jB("string"),NB=jB("function"),DB=jB("number"),MB=e=>null!==e&&"object"==typeof e,FB=e=>{if("object"!==TB(e))return!1;const t=IB(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},LB=OB("Date"),RB=OB("File"),HB=OB("Blob"),$B=OB("FileList"),UB=OB("URLSearchParams");function VB(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),zB(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function WB(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const qB="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:g,GB=e=>!BB(e)&&e!==qB,YB=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&IB(Uint8Array)),XB=OB("HTMLFormElement"),KB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZB=OB("RegExp"),JB=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};VB(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},QB="abcdefghijklmnopqrstuvwxyz",eP="0123456789",tP={DIGIT:eP,ALPHA:QB,ALPHA_DIGIT:QB+QB.toUpperCase()+eP},nP=OB("AsyncFunction");var rP={isArray:zB,isArrayBuffer:PB,isBuffer:function(e){return null!==e&&!BB(e)&&null!==e.constructor&&!BB(e.constructor)&&NB(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||NB(e.append)&&("formdata"===(t=TB(e))||"object"===t&&NB(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&PB(e.buffer),t},isString:AB,isNumber:DB,isBoolean:e=>!0===e||!1===e,isObject:MB,isPlainObject:FB,isUndefined:BB,isDate:LB,isFile:RB,isBlob:HB,isRegExp:ZB,isFunction:NB,isStream:e=>MB(e)&&NB(e.pipe),isURLSearchParams:UB,isTypedArray:YB,isFileList:$B,forEach:VB,merge:function e(){const{caseless:t}=GB(this)&&this||{},n={},r=(r,o)=>{const i=t&&WB(n,o)||o;FB(n[i])&&FB(r)?n[i]=e(n[i],r):FB(r)?n[i]=e({},r):zB(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&VB(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(VB(t,((t,r)=>{n&&NB(t)?e[r]=SB(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&IB(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:TB,kindOfTest:OB,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(zB(e))return e;let t=e.length;if(!DB(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:XB,hasOwnProperty:KB,hasOwnProp:KB,reduceDescriptors:JB,freezeMethods:e=>{JB(e,((t,n)=>{if(NB(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];NB(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return zB(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:WB,global:qB,isContextDefined:GB,ALPHABET:tP,generateString:(e=16,t=tP.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&NB(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(MB(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=zB(e)?[]:{};return VB(e,((e,t)=>{const i=n(e,r+1);!BB(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:nP,isThenable:e=>e&&(MB(e)||NB(e))&&NB(e.then)&&NB(e.catch)};function oP(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}rP.inherits(oP,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rP.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const iP=oP.prototype,aP={};function sP(e){return rP.isPlainObject(e)||rP.isArray(e)}function lP(e){return rP.endsWith(e,"[]")?e.slice(0,-2):e}function cP(e,t,n){return e?e.concat(t).map((function(e,t){return e=lP(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{aP[e]={value:e}})),Object.defineProperties(oP,aP),Object.defineProperty(iP,"isAxiosError",{value:!0}),oP.from=(e,t,n,r,o,i)=>{const a=Object.create(iP);return rP.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),oP.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const uP=rP.toFlatObject(rP,{},null,(function(e){return/^is[A-Z]/.test(e)}));function dP(e,t,n){if(!rP.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=rP.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!rP.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&rP.isSpecCompliantForm(t);if(!rP.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(rP.isDate(e))return e.toISOString();if(!s&&rP.isBlob(e))throw new oP("Blob is not supported. Use a Buffer instead.");return rP.isArrayBuffer(e)||rP.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(rP.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(rP.isArray(e)&&function(e){return rP.isArray(e)&&!e.some(sP)}(e)||(rP.isFileList(e)||rP.endsWith(n,"[]"))&&(s=rP.toArray(e)))return n=lP(n),s.forEach((function(e,r){!rP.isUndefined(e)&&null!==e&&t.append(!0===a?cP([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!sP(e)||(t.append(cP(o,n,i),l(e)),!1)}const u=[],d=Object.assign(uP,{defaultVisitor:c,convertValue:l,isVisitable:sP});if(!rP.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!rP.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),rP.forEach(n,(function(n,i){!0===(!(rP.isUndefined(n)||null===n)&&o.call(t,n,rP.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function pP(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function fP(e,t){this._pairs=[],e&&dP(e,this,t)}const hP=fP.prototype;function mP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gP(e,t,n){if(!t)return e;const r=n&&n.encode||mP,o=n&&n.serialize;let i;if(i=o?o(t,n):rP.isURLSearchParams(t)?t.toString():new fP(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}hP.append=function(e,t){this._pairs.push([e,t])},hP.toString=function(e){const t=e?function(t){return e.call(this,t,pP)}:pP;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var vP=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rP.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},yP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bP={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:fP,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const xP="undefined"!=typeof window&&"undefined"!=typeof document,wP=(e=>xP&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!=typeof navigator&&navigator.product),EP="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var CP={...Object.freeze({__proto__:null,hasBrowserEnv:xP,hasStandardBrowserWebWorkerEnv:EP,hasStandardBrowserEnv:wP}),...bP};function kP(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&rP.isArray(r)?r.length:i,s?(rP.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&rP.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&rP.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(rP.isFormData(e)&&rP.isFunction(e.entries)){const n={};return rP.forEachEntry(e,((e,r)=>{t(function(e){return rP.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const SP={transitional:yP,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=rP.isObject(e);if(o&&rP.isHTMLForm(e)&&(e=new FormData(e)),rP.isFormData(e))return r?JSON.stringify(kP(e)):e;if(rP.isArrayBuffer(e)||rP.isBuffer(e)||rP.isStream(e)||rP.isFile(e)||rP.isBlob(e))return e;if(rP.isArrayBufferView(e))return e.buffer;if(rP.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return dP(e,new CP.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return CP.isNode&&rP.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=rP.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return dP(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(rP.isString(e))try{return(0,JSON.parse)(e),rP.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||SP.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&rP.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw oP.from(e,oP.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:CP.classes.FormData,Blob:CP.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rP.forEach(["delete","get","head","post","put","patch"],(e=>{SP.headers[e]={}}));var _P=SP;const IP=rP.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TP=Symbol("internals");function OP(e){return e&&String(e).trim().toLowerCase()}function jP(e){return!1===e||null==e?e:rP.isArray(e)?e.map(jP):String(e)}function zP(e,t,n,r,o){return rP.isFunction(r)?r.call(this,t,n):(o&&(t=n),rP.isString(t)?rP.isString(r)?-1!==t.indexOf(r):rP.isRegExp(r)?r.test(t):void 0:void 0)}class BP{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=OP(t);if(!o)throw new Error("header name must be a non-empty string");const i=rP.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=jP(e))}const i=(e,t)=>rP.forEach(e,((e,n)=>o(e,n,t)));return rP.isPlainObject(e)||e instanceof this.constructor?i(e,t):rP.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&IP[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=OP(e)){const n=rP.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(rP.isFunction(t))return t.call(this,e,n);if(rP.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=OP(e)){const n=rP.findKey(this,e);return!(!n||void 0===this[n]||t&&!zP(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=OP(e)){const o=rP.findKey(n,e);!o||t&&!zP(0,n[o],o,t)||(delete n[o],r=!0)}}return rP.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!zP(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return rP.forEach(this,((r,o)=>{const i=rP.findKey(n,o);if(i)return t[i]=jP(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=jP(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return rP.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&rP.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[TP]=this[TP]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=OP(e);t[r]||(function(e,t){const n=rP.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return rP.isArray(e)?e.forEach(r):r(e),this}}BP.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rP.reduceDescriptors(BP.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),rP.freezeMethods(BP);var PP=BP;function AP(e,t){const n=this||_P,r=t||n,o=PP.from(r.headers);let i=r.data;return rP.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function NP(e){return!(!e||!e.__CANCEL__)}function DP(e,t,n){oP.call(this,null==e?"canceled":e,oP.ERR_CANCELED,t,n),this.name="CanceledError"}rP.inherits(DP,oP,{__CANCEL__:!0});var MP=CP.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];rP.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),rP.isString(r)&&a.push("path="+r),rP.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function FP(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var LP=CP.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=rP.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function RP(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}var HP="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=PP.from(e.headers).normalize();let i,a,{responseType:s,withXSRFToken:l}=e;function c(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(rP.isFormData(r))if(CP.hasStandardBrowserEnv||CP.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if(!1!==(a=o.getContentType())){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}let u=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const d=FP(e.baseURL,e.url);function p(){if(!u)return;const r=PP.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new oP("Request failed with status code "+n.status,[oP.ERR_BAD_REQUEST,oP.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),c()}),(function(e){n(e),c()}),{data:s&&"text"!==s&&"json"!==s?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}if(u.open(e.method.toUpperCase(),gP(d,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(n(new oP("Request aborted",oP.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new oP("Network Error",oP.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||yP;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new oP(t,r.clarifyTimeoutError?oP.ETIMEDOUT:oP.ECONNABORTED,e,u)),u=null},CP.hasStandardBrowserEnv&&(l&&rP.isFunction(l)&&(l=l(e)),l||!1!==l&&LP(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&MP.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in u&&rP.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),rP.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&"json"!==s&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",RP(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",RP(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{u&&(n(!t||t.type?new DP(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(d);f&&-1===CP.protocols.indexOf(f)?n(new oP("Unsupported protocol "+f+":",oP.ERR_BAD_REQUEST,e)):u.send(r||null)}))};const $P={http:null,xhr:HP};rP.forEach($P,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const UP=e=>`- ${e}`,VP=e=>rP.isFunction(e)||null===e||!1===e;var WP=e=>{e=rP.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!VP(n)&&(r=$P[(t=String(n)).toLowerCase()],void 0===r))throw new oP(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new oP("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(UP).join("\n"):" "+UP(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function qP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new DP(null,e)}function GP(e){return qP(e),e.headers=PP.from(e.headers),e.data=AP.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WP(e.adapter||_P.adapter)(e).then((function(t){return qP(e),t.data=AP.call(e,e.transformResponse,t),t.headers=PP.from(t.headers),t}),(function(t){return NP(t)||(qP(e),t&&t.response&&(t.response.data=AP.call(e,e.transformResponse,t.response),t.response.headers=PP.from(t.response.headers))),Promise.reject(t)}))}const YP=e=>e instanceof PP?e.toJSON():e;function XP(e,t){t=t||{};const n={};function r(e,t,n){return rP.isPlainObject(e)&&rP.isPlainObject(t)?rP.merge.call({caseless:n},e,t):rP.isPlainObject(t)?rP.merge({},t):rP.isArray(t)?t.slice():t}function o(e,t,n){return rP.isUndefined(t)?rP.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!rP.isUndefined(t))return r(void 0,t)}function a(e,t){return rP.isUndefined(t)?rP.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(YP(e),YP(t),!0)};return rP.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);rP.isUndefined(a)&&i!==s||(n[r]=a)})),n}const KP={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{KP[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ZP={};KP.transitional=function(e,t,n){function r(e,t){return"[Axios v1.6.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new oP(r(o," has been removed"+(t?" in "+t:"")),oP.ERR_DEPRECATED);return t&&!ZP[o]&&(ZP[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};var JP={assertOptions:function(e,t,n){if("object"!=typeof e)throw new oP("options must be an object",oP.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new oP("option "+i+" must be "+n,oP.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new oP("Unknown option "+i,oP.ERR_BAD_OPTION)}},validators:KP};const QP=JP.validators;class eA{constructor(e){this.defaults=e,this.interceptors={request:new vP,response:new vP}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=XP(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&JP.assertOptions(n,{silentJSONParsing:QP.transitional(QP.boolean),forcedJSONParsing:QP.transitional(QP.boolean),clarifyTimeoutError:QP.transitional(QP.boolean)},!1),null!=r&&(rP.isFunction(r)?t.paramsSerializer={serialize:r}:JP.assertOptions(r,{encode:QP.function,serialize:QP.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&rP.merge(o.common,o[t.method]);o&&rP.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=PP.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[GP.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=GP.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return gP(FP((e=XP(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}rP.forEach(["delete","get","head","options"],(function(e){eA.prototype[e]=function(t,n){return this.request(XP(n||{},{method:e,url:t,data:(n||{}).data}))}})),rP.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(XP(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}eA.prototype[e]=t(),eA.prototype[e+"Form"]=t(!0)}));var tA=eA;class nA{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new DP(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new nA((function(t){e=t}));return{token:t,cancel:e}}}var rA=nA;const oA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(oA).forEach((([e,t])=>{oA[t]=e}));var iA=oA;const aA=function e(t){const n=new tA(t),r=SB(tA.prototype.request,n);return rP.extend(r,tA.prototype,n,{allOwnKeys:!0}),rP.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(XP(t,n))},r}(_P);aA.Axios=tA,aA.CanceledError=DP,aA.CancelToken=rA,aA.isCancel=NP,aA.VERSION="1.6.7",aA.toFormData=dP,aA.AxiosError=oP,aA.Cancel=aA.CanceledError,aA.all=function(e){return Promise.all(e)},aA.spread=function(e){return function(t){return e.apply(null,t)}},aA.isAxiosError=function(e){return rP.isObject(e)&&!0===e.isAxiosError},aA.mergeConfig=XP,aA.AxiosHeaders=PP,aA.formToJSON=e=>kP(rP.isHTMLForm(e)?new FormData(e):e),aA.getAdapter=WP,aA.HttpStatusCode=iA,aA.default=aA;var sA=aA,lA={exports:{}};function cA(e){this.message=e}cA.prototype=new Error,cA.prototype.name="InvalidCharacterError";var uA="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new cA("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function dA(e){this.message=e}dA.prototype=new Error,dA.prototype.name="InvalidTokenError",lA.exports=function(e,t){if("string"!=typeof e)throw new dA("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(uA(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return uA(t)}}(e.split(".")[n]))}catch(e){throw new dA("Invalid token specified: "+e.message)}},lA.exports.InvalidTokenError=dA;var pA={};Object.defineProperty(pA,"__esModule",{value:!0}),pA.MAX_UNIX_TIME=pA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=pA.PUBLIC_ACCESS_TOKEN_PAYLOAD=pA.DEFAULT_MOCKING_VALUES=pA.IDP_ACCESS_TOKEN_ENDPOINT=pA.LOCAL_STORAGE_JWT_EXPIRY=pA.LOCAL_STORAGE_JWT=pA.LOCAL_STORAGE_JWT_TOKEN=pA.SIGN_OPTIONS=void 0,pA.SIGN_OPTIONS={issuer:"Bynder",subject:"someone@bynder.com",audience:"bynder.com",expiresIn:"12h",algorithm:"RS256"},pA.LOCAL_STORAGE_JWT_TOKEN="jwt_access_token",pA.LOCAL_STORAGE_JWT="jwt",pA.LOCAL_STORAGE_JWT_EXPIRY="jwt_expiry",pA.IDP_ACCESS_TOKEN_ENDPOINT="/v7/idp/access-tokens/by-session",pA.DEFAULT_MOCKING_VALUES={ACCOUNT_ID:"b05f9df8-cd3b-4b30-b57b-5b45ffaac62f",PROFILE_ID:"03cedc27-8755-4849-8b26-3e41e2709a21",USER_ID:"ab851f80-916b-4e12-a49c-b70e6ab1f817"},pA.PUBLIC_ACCESS_TOKEN_PAYLOAD={accountId:"",userId:"",profileId:"",groupIds:[],modulePermissions:[]},pA.MS_REFRESH_TOKEN_BEFORE_EXPIRY=3e5,pA.MAX_UNIX_TIME=9999999999999;var fA={};Object.defineProperty(fA,"__esModule",{value:!0}),fA.removeAccessToken=fA.loadAccessToken=fA.storeAccessToken=void 0;var hA=pA;fA.storeAccessToken=function(e){localStorage.setItem(hA.LOCAL_STORAGE_JWT,e.jwt),localStorage.setItem(hA.LOCAL_STORAGE_JWT_EXPIRY,e.expiryTimestamp.toString())},fA.loadAccessToken=function(){return{jwt:localStorage.getItem(hA.LOCAL_STORAGE_JWT),expiryTimestamp:parseInt(localStorage.getItem(hA.LOCAL_STORAGE_JWT_EXPIRY),10)}},fA.removeAccessToken=function(){localStorage.removeItem(hA.LOCAL_STORAGE_JWT),localStorage.removeItem(hA.LOCAL_STORAGE_JWT_EXPIRY)},function(e){var t=g&&g.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=g&&g.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=g&&g.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(r,e,o);return n(r,e),r},o=g&&g.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))},i=g&&g.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=g&&g.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getJWT=e.invalidateAccessToken=e.mockAccessTokenResponse=e.buildAccessToken=void 0;var s=r(sA),l=a(lA.exports),c=pA,u=r(fA),d=function(t){return o(void 0,void 0,void 0,(function(){var n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),n=void 0,t?[3,2]:(r=c.IDP_ACCESS_TOKEN_ENDPOINT,[4,s.default.get(r,{withCredentials:!0})]);case 1:return n=i.sent(),[3,3];case 2:n=e.mockAccessTokenResponse(t),i.label=3;case 3:if(!n.data)throw new Error("Could not retrieve access token");return[2,e.buildAccessToken(n)];case 4:if(401===(l=o=i.sent()).response.status&&"true"===l.response.headers.is_public)return a=e.mockAccessTokenResponse(c.PUBLIC_ACCESS_TOKEN_PAYLOAD),[2,e.buildAccessToken(a)];throw o;case 5:return[2]}var l}))}))};e.buildAccessToken=function(e){return{jwt:e.data.access_token,expiryTimestamp:e.data.expires_in}},e.mockAccessTokenResponse=function(e){return{data:{access_token:"JWT generation deprecated in this js-access-token-lib version",expires_in:c.MAX_UNIX_TIME,token_type:"bearer"},status:200,statusText:"OK",headers:{},config:{headers:new s.AxiosHeaders}}},e.invalidateAccessToken=function(){u.removeAccessToken()},e.getJWT=function(t){return o(void 0,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return[4,u.loadAccessToken()];case 1:return(n=r.sent()).jwt&&!function(e){return 1e3*l.default(e.jwt).exp-c.MS_REFRESH_TOKEN_BEFORE_EXPIRY<Date.now()}(n)?[3,3]:[4,d(t)];case 2:n=r.sent(),u.storeAccessToken(n),function(t){var n=1e3*t.expiryTimestamp;setTimeout(e.invalidateAccessToken,n)}(n),r.label=3;case 3:return[2,n.jwt]}}))}))},window.addEventListener("beforeunload",e.invalidateAccessToken)}(kB);var mA={exports:{}},gA={},vA={exports:{}};function yA(){}function bA(){}function xA(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=xA(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wA(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=xA(e))&&(r&&(r+=" "),r+=t);return r}bA.resetWarningCache=yA,vA.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}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:bA,resetWarningCache:yA};return n.PropTypes=n,n}();var EA=v(Object.freeze({__proto__:null,clsx:wA,default:wA})),CA={},kA={};Object.defineProperty(kA,"__esModule",{value:!0}),kA.dontSetMe=function(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))},kA.findInArray=function(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},kA.int=function(e){return parseInt(e,10)},kA.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},kA.isNum=function(e){return"number"==typeof e&&!isNaN(e)};var SA={};Object.defineProperty(SA,"__esModule",{value:!0}),SA.browserPrefixToKey=TA,SA.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},SA.default=void 0,SA.getPrefix=IA;const _A=["Moz","Webkit","O","ms"];function IA(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const n=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!n)return"";if(t in n)return"";for(let e=0;e<_A.length;e++)if(TA(t,_A[e])in n)return _A[e];return""}function TA(e,t){return t?"".concat(t).concat(function(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}SA.default=IA(),Object.defineProperty(CA,"__esModule",{value:!0}),CA.addClassName=NA,CA.addEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},CA.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&NA(e.body,"react-draggable-transparent-selection")},CA.createCSSTransform=function(e,t){const n=AA(e,t,"px");return{[(0,jA.browserPrefixToKey)("transform",jA.default)]:n}},CA.createSVGTransform=function(e,t){return AA(e,t,"")},CA.getTouch=function(e,t){return e.targetTouches&&(0,OA.findInArray)(e.targetTouches,(e=>t===e.identifier))||e.changedTouches&&(0,OA.findInArray)(e.changedTouches,(e=>t===e.identifier))},CA.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},CA.getTranslation=AA,CA.innerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,OA.int)(n.paddingTop),t-=(0,OA.int)(n.paddingBottom),t},CA.innerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,OA.int)(n.paddingLeft),t-=(0,OA.int)(n.paddingRight),t},CA.matchesSelector=PA,CA.matchesSelectorAndParentsTo=function(e,t,n){let r=e;do{if(PA(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},CA.offsetXYFromParent=function(e,t,n){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},CA.outerHeight=function(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,OA.int)(n.borderTopWidth),t+=(0,OA.int)(n.borderBottomWidth),t},CA.outerWidth=function(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,OA.int)(n.borderLeftWidth),t+=(0,OA.int)(n.borderRightWidth),t},CA.removeClassName=DA,CA.removeEvent=function(e,t,n,r){if(!e)return;const o={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null},CA.removeUserSelectStyles=function(e){if(e)try{if(e.body&&DA(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}};var OA=kA,jA=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=zA(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(SA);function zA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(zA=function(e){return e?n:t})(e)}let BA="";function PA(e,t){return BA||(BA=(0,OA.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(t){return(0,OA.isFunction)(e[t])}))),!!(0,OA.isFunction)(e[BA])&&e[BA](t)}function AA(e,t,n){let{x:r,y:o}=e,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){const e="".concat("string"==typeof t.x?t.x:t.x+n),r="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(e,", ").concat(r,")")+i}return i}function NA(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function DA(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var MA={};Object.defineProperty(MA,"__esModule",{value:!0}),MA.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},MA.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},MA.createCoreData=function(e,t,n){const r=!(0,FA.isNum)(e.lastX),o=RA(e);return r?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}},MA.createDraggableData=function(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}},MA.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r="string"==typeof r?r:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(r);const o=RA(e);if("string"==typeof r){const{ownerDocument:e}=o,t=e.defaultView;let n;if(n="parent"===r?o.parentNode:e.querySelector(r),!(n instanceof t.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const i=n,a=t.getComputedStyle(o),s=t.getComputedStyle(i);r={left:-o.offsetLeft+(0,FA.int)(s.paddingLeft)+(0,FA.int)(a.marginLeft),top:-o.offsetTop+(0,FA.int)(s.paddingTop)+(0,FA.int)(a.marginTop),right:(0,LA.innerWidth)(i)-(0,LA.outerWidth)(o)-o.offsetLeft+(0,FA.int)(s.paddingRight)-(0,FA.int)(a.marginRight),bottom:(0,LA.innerHeight)(i)-(0,LA.outerHeight)(o)-o.offsetTop+(0,FA.int)(s.paddingBottom)-(0,FA.int)(a.marginBottom)}}return(0,FA.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,FA.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,FA.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,FA.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]},MA.getControlPosition=function(e,t,n){const r="number"==typeof t?(0,LA.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const o=RA(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,LA.offsetXYFromParent)(r||e,i,n.props.scale)},MA.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]};var FA=kA,LA=CA;function RA(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var HA={},$A={};Object.defineProperty($A,"__esModule",{value:!0}),$A.default=function(){},Object.defineProperty(HA,"__esModule",{value:!0}),HA.default=void 0;var UA=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=ZA(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),VA=KA(vA.exports),WA=KA(h),qA=CA,GA=MA,YA=kA,XA=KA($A);function KA(e){return e&&e.__esModule?e:{default:e}}function ZA(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(ZA=function(e){return e?n:t})(e)}function JA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const QA={start:"touchstart",move:"touchmove",stop:"touchend"},eN={start:"mousedown",move:"mousemove",stop:"mouseup"};let tN=eN;class nN extends UA.Component{constructor(){super(...arguments),JA(this,"dragging",!1),JA(this,"lastX",NaN),JA(this,"lastY",NaN),JA(this,"touchIdentifier",null),JA(this,"mounted",!1),JA(this,"handleDragStart",(e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,qA.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,qA.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"===e.type&&e.preventDefault();const r=(0,qA.getTouchIdentifier)(e);this.touchIdentifier=r;const o=(0,GA.getControlPosition)(e,r,this);if(null==o)return;const{x:i,y:a}=o,s=(0,GA.createCoreData)(this,i,a);(0,XA.default)("DraggableCore: handleDragStart: %j",s),(0,XA.default)("calling",this.props.onStart),!1!==this.props.onStart(e,s)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,qA.addUserSelectStyles)(n),this.dragging=!0,this.lastX=i,this.lastY=a,(0,qA.addEvent)(n,tN.move,this.handleDrag),(0,qA.addEvent)(n,tN.stop,this.handleDragStop))})),JA(this,"handleDrag",(e=>{const t=(0,GA.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,GA.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}const o=(0,GA.createCoreData)(this,n,r);if((0,XA.default)("DraggableCore: handleDrag: %j",o),!1!==this.props.onDrag(e,o)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}})),JA(this,"handleDragStop",(e=>{if(!this.dragging)return;const t=(0,GA.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,GA.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}const o=(0,GA.createCoreData)(this,n,r);if(!1===this.props.onStop(e,o)||!1===this.mounted)return!1;const i=this.findDOMNode();i&&this.props.enableUserSelectHack&&(0,qA.removeUserSelectStyles)(i.ownerDocument),(0,XA.default)("DraggableCore: handleDragStop: %j",o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,i&&((0,XA.default)("DraggableCore: Removing handlers"),(0,qA.removeEvent)(i.ownerDocument,tN.move,this.handleDrag),(0,qA.removeEvent)(i.ownerDocument,tN.stop,this.handleDragStop))})),JA(this,"onMouseDown",(e=>(tN=eN,this.handleDragStart(e)))),JA(this,"onMouseUp",(e=>(tN=eN,this.handleDragStop(e)))),JA(this,"onTouchStart",(e=>(tN=QA,this.handleDragStart(e)))),JA(this,"onTouchEnd",(e=>(tN=QA,this.handleDragStop(e))))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,qA.addEvent)(e,QA.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,qA.removeEvent)(t,eN.move,this.handleDrag),(0,qA.removeEvent)(t,QA.move,this.handleDrag),(0,qA.removeEvent)(t,eN.stop,this.handleDragStop),(0,qA.removeEvent)(t,QA.stop,this.handleDragStop),(0,qA.removeEvent)(e,QA.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,qA.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return null!==(e=this.props)&&void 0!==e&&e.nodeRef?null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current:WA.default.findDOMNode(this)}render(){return UA.cloneElement(UA.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}HA.default=nN,JA(nN,"displayName","DraggableCore"),JA(nN,"propTypes",{allowAnyClick:VA.default.bool,children:VA.default.node.isRequired,disabled:VA.default.bool,enableUserSelectHack:VA.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:VA.default.arrayOf(VA.default.number),handle:VA.default.string,cancel:VA.default.string,nodeRef:VA.default.object,onStart:VA.default.func,onDrag:VA.default.func,onStop:VA.default.func,onMouseDown:VA.default.func,scale:VA.default.number,className:YA.dontSetMe,style:YA.dontSetMe,transform:YA.dontSetMe}),JA(nN,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(t),r=d(vA.exports),o=d(h),i=d(EA),a=CA,s=MA,l=kA,c=d(HA),u=d($A);function d(e){return e&&e.__esModule?e:{default:e}}function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function f(){return f=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},f.apply(this,arguments)}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends n.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(e){super(e),m(this,"onDragStart",((e,t)=>{if((0,u.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,s.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})})),m(this,"onDrag",((e,t)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",t);const n=(0,s.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[o,i]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=o,r.y=i,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,n))return!1;this.setState(r)})),m(this,"onDragStop",((e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,s.createDraggableData)(this,t)))return!1;(0,u.default)("Draggable: onDragStop: %j",t);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var e,t;return null!==(e=null===(t=this.props)||void 0===t||null===(t=t.nodeRef)||void 0===t?void 0:t.current)&&void 0!==e?e:o.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:r,defaultPosition:o,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:h,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(p)||this.state.dragging,x=p||o,w={x:(0,s.canDragX)(this)&&b?this.state.x:x.x,y:(0,s.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(w,h):v=(0,a.createCSSTransform)(w,h);const E=(0,i.default)(r.props.className||"",l,{[u]:this.state.dragging,[d]:this.state.dragged});return n.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:E,style:{...r.props.style,...v},transform:y}))}}e.default=g,m(g,"displayName","Draggable"),m(g,"propTypes",{...c.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),m(g,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(gA);const{default:rN,DraggableCore:oN}=gA;mA.exports=rN,mA.exports.default=rN,mA.exports.DraggableCore=oN;var iN=mA.exports;function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aN(Object(n),!0).forEach((function(t){dN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lN(){lN=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new j(r||[]);return o(a,"_invoke",{value:_(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(z([])));E&&E!==n&&r.call(E,a)&&(x=E);var C=b.prototype=v.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=I(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function I(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function z(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(S.prototype),c(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new S(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=z,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:z(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function cN(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function uN(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){cN(i,r,o,a,s,"next",e)}function s(e){cN(i,r,o,a,s,"throw",e)}a(void 0)}))}}function dN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pN(){return pN=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},pN.apply(this,arguments)}function fN(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function hN(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||vN(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gN(e){return function(e){if(Array.isArray(e))return yN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||vN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vN(e,t){if(e){if("string"==typeof e)return yN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yN(e,t):void 0}}function yN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bN=["theme"];Xu.button.withConfig({displayName:"ButtonStyled",componentId:"sc-1kgkg60-0"})(["button&,a&{display:flex;flex-wrap:nowrap;flex:0 0 auto;white-space:nowrap;position:relative;min-width:40px;text-align:center;background-position:center;fill:currentColor;text-decoration:none;&:focus{display:flex;}}align-items:center !important;box-sizing:border-box !important;text-shadow:none !important;text-transform:none !important;font-family:"," !important;font-size:"," !important;font-weight:400 !important;line-height:"," !important;border-radius:",";outline:none !important;border:1px solid transparent !important;cursor:pointer !important;vertical-align:middle;justify-content:center;font-style:normal;transition-duration:0.1s;transition-property:background-color,border-color,box-shadow,color;&:disabled{cursor:default !important;pointer-events:none;}"," ",";",""],ld.fontStackBase,ld.fontSizeBase,ld.lineHeightBase,ld.brandRadiusBase,(function(e){return e.isFullWidth&&"width: 100%;"}),(function(e){return e.isSmall?qu(["height:32px !important;padding:0 "," !important;font-size:"," !important;line-height:20px !important;"],ld.spacing4,ld.fontSize75):qu(["height:40px !important;padding:0 "," !important;"],ld.spacing5)}),(function(e){var t=e.theme,n=hN(e,bN);if("primary-dark"===n.variant){var r=qu(["border-color:",";background-color:",";color:",";box-shadow:none !important;"],ld.componentButtonPrimaryBorderActive,ld.componentButtonPrimaryFillActive,ld.componentButtonPrimaryColorActive);return qu(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:"," !important;}&:focus{background-color:",";color:",";border-color:",";box-shadow:"," !important;}&:active{","}&:disabled{border-color:",";background-color:",";color:",";box-shadow:none !important;}"],ld.componentButtonPrimaryFill,ld.componentButtonPrimaryColor,n.isPressed&&r,ld.componentButtonPrimaryBorderHover,ld.componentButtonPrimaryFillHover,ld.componentButtonPrimaryColorHover,ld.elevation1,ld.componentButtonPrimaryFillFocus,ld.componentButtonPrimaryColorFocus,ld.componentButtonPrimaryBorderFocus,ld.componentButtonPrimaryFocusRing,r,ld.componentButtonPrimaryBorderDisabled,ld.componentButtonPrimaryFillDisabled,ld.componentButtonPrimaryColorDisabled)}if("secondary-dark"===n.variant){var o=qu(["border-color:transparent !important;background-color:rgba(255,255,255,0.1) !important;color:"," !important;"],t.legacy.colorTextDark);return qu(["color:rgba(255,255,255,0.8) !important;background-color:rgba(255,255,255,0.1) !important;"," &:hover{color:"," !important;background-color:rgba(255,255,255,0.15) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.3) !important;background-color:rgba(255,255,255,0.05) !important;border-color:transparent !important;box-shadow:none !important;}"],n.isPressed&&o,t.legacy.colorWhite,o)}if("clean-dark"===n.variant){var i=qu(["border-color:transparent !important;background-color:rgba(255,255,255,0.05) !important;color:"," !important;cursor:pointer !important;"],t.legacy.colorTextDark);return qu(["color:",";background-color:transparent !important;border-color:transparent !important;box-shadow:none !important;border-radius:"," !important;"," &:hover{color:#fff !important;background-color:rgba(255,255,255,0.05) !important;}&:focus{border-color:rgba(255,255,255,0.15) !important;}&:active{","}&:disabled{color:rgba(255,255,255,0.15) !important;background-color:transparent !important;}"],t.legacy.colorTextDarker,t.legacy.buttonBorderRadius,n.isPressed&&i,i)}return""}));var xN=Xu.div.withConfig({displayName:"Icon",componentId:"sc-1kgkg60-1"})(["height:100%;display:flex;align-items:center;"]);Xu(xN).withConfig({displayName:"LeftIcon",componentId:"sc-1kgkg60-2"})(["margin-right:",";margin-left:calc("," * -1);"],(function(e){return e.lastChild?"calc(".concat(ld.spacing2," * -1)"):ld.spacing3}),ld.spacing2),Xu(xN).withConfig({displayName:"RightIcon",componentId:"sc-1kgkg60-3"})(["margin-right:calc("," * -1);margin-left:",";"],ld.spacing2,ld.spacing3);var wN,EN=Ju(["100%{transform:rotate(360deg);}"]),CN=Ju(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]);Xu.svg.withConfig({displayName:"Svg",componentId:"sc-2khuyx-0"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],EN),Xu.circle.withConfig({displayName:"Circle",componentId:"sc-2khuyx-1"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],CN),function(e){e[e.Date=0]="Date",e[e.MultiSelect=1]="MultiSelect",e[e.Select=2]="Select",e[e.Search=3]="Search"}(wN||(wN={}));var kN,SN,_N,IN=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-16awveu-0"})(["height:0;position:absolute;bottom:32px;"]),TN=Xu(IN).withConfig({displayName:"IconRightContainer",componentId:"sc-16awveu-1"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Xu.input.withConfig({displayName:"StyledInput",componentId:"sc-16awveu-2"})(["box-sizing:border-box;width:100%;height:40px;font-family:",";font-size:",";line-height:",";color:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";"," &::placeholder{color:",";}&:focus,&:hover{& ","{fill:"," !important;}border:1px solid ",";}",";padding-left:","px;padding-right:","px;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.inputType===wN.Select&&"\n background: rgba(0, 34, 51, 0.03) !important;\n color: transparent !important;\n text-shadow: 0 0 0 ".concat(e.theme.legacy.colorText,";\n cursor: pointer;\n\n &:hover {\n background: rgba(0, 34, 51, 0.03) !important;\n }\n ")}),(function(e){return e.theme.legacy.colorTextDisabled}),TN,(function(e){return e.theme.legacy.colorIconActive}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?"\n border: none !important; /* overrides bynder-custom17 */\n &:focus, &:hover {\n border: none;\n }\n ":""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Xu.label.withConfig({displayName:"Label",componentId:"sc-16awveu-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Xu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-16awveu-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Xu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-16awveu-5"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Xu(IN).withConfig({displayName:"IconErrorContainer",componentId:"sc-16awveu-6"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Xu(IN).withConfig({displayName:"InputTypeContainer",componentId:"sc-16awveu-7"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Xu.svg.withConfig({displayName:"Svg",componentId:"sc-16awveu-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Xu.div.withConfig({displayName:"ListContainer",componentId:"sc-16awveu-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Zu(["textarea,input[type='text'],input[type='password'],input[type='datetime'],input[type='datetime-local'],input[type='date'],input[type='month'],input[type='time'],input[type='week'],input[type='number'],input[type='email'],input[type='url'],input[type='search'],input[type='tel'],input[type='color']{height:40px;line-height:",";margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:","px;padding-right:","px;font-size:",";"," &::placeholder{color:",";}&:focus,&:hover{&::placeholder{color:",";}}}"],(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError,";"):""}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled})),function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Backspace="Backspace",e.Escape="Escape",e.Tab="Tab"}(kN||(kN={})),function(e){e[e.COLOR=0]="COLOR",e[e.GREYSCALE=1]="GREYSCALE",e[e.WHITE=2]="WHITE"}(SN||(SN={})),function(e){e.USER="USER",e.PROFILE="PROFILE",e.GROUP="GROUP"}(_N||(_N={})),Xu.div.withConfig({displayName:"MainContainer",componentId:"sc-167ea0r-0"})(["background-color:",";border:",";box-shadow:",";border-radius:5px;padding:8px 0;"],(function(e){return e.dark?e.theme.legacy.colorBackgroundDark:e.theme.legacy.colorBackground}),(function(e){return e.borderless?"none":"1px solid ".concat(e.theme.legacy.colorBorder)}),(function(e){return e.borderless?"none":e.theme.legacy.boxShadow}));var ON=Xu.li.withConfig({displayName:"Li",componentId:"sc-167ea0r-1"})(["display:flex;font-size:",";align-items:center;height:36px;padding:0 16px !important;"],(function(e){return e.theme.legacy.fontSizeSmall})),jN=Xu(ON).withConfig({displayName:"Item",componentId:"sc-167ea0r-2"})(["cursor:pointer;&&&{&:active,&:focus,&:hover{color:",";background-color:",";outline:none;}}"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextLightActive}),(function(e){return e.dark?e.theme.legacy.colorBackgroundDarkHover:e.theme.legacy.colorBackgroundLight}));Xu(ON).withConfig({displayName:"GroupName",componentId:"sc-167ea0r-3"})(["cursor:default;color:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDarker:e.theme.legacy.colorText})),Xu(ON).withConfig({displayName:"EmptyState",componentId:"sc-167ea0r-4"})(["color:",";cursor:default;"],(function(e){return e.theme.legacy.colorText})),Xu.ul.withConfig({displayName:"Ul",componentId:"sc-167ea0r-5"})(["margin:0;padding:0;list-style-type:none;max-height:",";overflow-y:auto;","{color:",";}"],(function(e){return e.maxHeight||"350px"}),jN,(function(e){return e.dark?e.theme.legacy.colorTextDark:e.hasGroups?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-167ea0r-6"})(["display:flex;margin-right:8px;fill:",";"],(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorIcon})),Xu.div.withConfig({displayName:"Divider",componentId:"sc-167ea0r-7"})(["margin:8px 0;border-bottom:1px solid ",";width:100%;"],(function(e){return e.dark?e.theme.legacy.colorRichBlack30:e.theme.legacy.colorBorder})),Xu.svg.withConfig({displayName:"Svg",componentId:"sc-hfnr8h-0"})(["display:inline-block;stroke-width:0;stroke:current-color;fill:current-color;font-size:32px;"]);var zN=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-6ftogw-0"})(["height:0;position:absolute;bottom:32px;"]),BN=Xu(zN).withConfig({displayName:"IconRightContainer",componentId:"sc-6ftogw-1"})(["right:12px;cursor:",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorMutedIcon}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.disabled?e.theme.legacy.colorMutedIcon:e.theme.legacy.colorMutedIconActive}));Xu.input.withConfig({displayName:"StyledInput",componentId:"sc-6ftogw-2"})(["box-sizing:border-box;width:100%;height:40px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";cursor:",";background:",";border-radius:5px;outline:none !important;border:1px solid ",";&:focus,&:hover{& ","{fill:"," !important;}&::placeholder{color:"," !important;}","}&::placeholder{color:"," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.disabled?e.theme.legacy.colorTextDisabled:e.theme.legacy.colorText}),(function(e){return e.disabled?"not-allowed":"pointer"}),(function(e){return e.disabled?ld.gray25:e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),BN,(function(e){return e.theme.legacy.colorMutedIconActive}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.error?"border: 1px solid ".concat(e.theme.legacy.colorError," !important;"):e.dark?"":e.disabled?"border: 1px solid ".concat(e.theme.legacy.colorBorder," !important;"):"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus," !important;")}),(function(e){return e.dark?e.theme.legacy.colorTextDark:e.theme.legacy.colorTextDisabled}),(function(e){return e.borderless?qu(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""})),Xu.label.withConfig({displayName:"Label",componentId:"sc-6ftogw-3"})(["font-weight:normal;font-family:",";font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6})),Xu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-6ftogw-4"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Xu.div.withConfig({displayName:"LabelContainer",componentId:"sc-6ftogw-5"})(["width:100%;"]),Xu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-6ftogw-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Xu(zN).withConfig({displayName:"IconErrorContainer",componentId:"sc-6ftogw-7"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Xu(zN).withConfig({displayName:"IconLeftContainer",componentId:"sc-6ftogw-8"})(["left:10px;fill:",";"],(function(e){return e.theme.legacy.colorIcon})),Xu.div.withConfig({displayName:"ListContainer",componentId:"sc-6ftogw-9"})(["position:absolute;padding-top:4px;width:100%;z-index:10;"]),Xu.div.withConfig({displayName:"SpinnerBorder",componentId:"sc-1lat4jy-0"})(["display:flex;width:24px;height:24px;justify-content:center;align-items:center;svg{animation:borderRotate 1s linear infinite;width:20px;height:20px;circle{stroke:",";stroke-linecap:round;animation:borderDash 1.5s ease-in-out infinite;}}@keyframes borderRotate{100%{transform:rotate(360deg);}}@keyframes borderDash{0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}}"],(function(e){switch(e.colorMode){case SN.COLOR:return e.theme.legacy.colorPrimary;case SN.WHITE:return e.theme.legacy.colorWhite30;default:return e.theme.legacy.colorRichBlack30}}));var PN=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-hv8gko-0"})(["position:absolute;height:100%;display:flex;align-items:center;"]);Xu(PN).withConfig({displayName:"IconRightContainer",componentId:"sc-hv8gko-1"})(["top:0;right:12px;",";fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.onClick&&"cursor: pointer;"}),(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Xu.input.withConfig({displayName:"StyledInput",componentId:"sc-hv8gko-2"})(["box-sizing:border-box;width:100%;height:","px !important;font-family:",";font-size:"," !important;line-height:"," !important;color:",";background:",";border-radius:5px;outline:none !important;border:1px solid "," !important;&::placeholder{color:"," !important;}&:focus,&:hover:not([disabled]){&::placeholder{color:"," !important;}border:1px solid "," !important;}",";padding-left:","px !important;padding-right:","px !important;padding-top:0 !important;padding-bottom:0 !important;margin-bottom:0 !important;",";&&:disabled{background:",";border-color:"," !important;}"],(function(e){return e.small?32:40}),(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.theme.legacy.colorTextDisabled}),(function(e){return e.error?e.theme.legacy.colorError:e.theme.legacy.colorBorderFocus}),(function(e){return e.borderless?qu(["border:none !important;&:focus,&:hover{border:none;}"]):""}),(function(e){return e.hasLeftIcon?40:16}),(function(e){return e.hasRightIcon?40:0}),(function(e){return e.forceActive&&!e.error?"border: 1px solid ".concat(e.theme.legacy.colorBorderFocus):""}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundLight})),Xu.label.withConfig({displayName:"Label",componentId:"sc-hv8gko-3"})(["font-weight:normal;font-family:",";font-size:",";color:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontFamily}),(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.colorText})),Xu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-hv8gko-4"})(["margin:4px 0 0;font-size:",";line-height:",";color:",";"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.lineHeightSmall}),(function(e){return e.theme.legacy.colorError})),Xu.div.withConfig({displayName:"LabelContainer",componentId:"sc-hv8gko-5"})(["width:100%;"]),Xu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-hv8gko-6"})(["position:relative;margin-top:","px;"],(function(e){return e.isLabeled?8:0})),Xu(PN).withConfig({displayName:"IconLeftContainer",componentId:"sc-hv8gko-7"})(["top:0;left:10px;fill:",";color:",";"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIcon})),Xu.p.withConfig({displayName:"Counter",componentId:"sc-hv8gko-8"})(["position:absolute;right:0;font-size:",";color:",";margin:4px 0 0 0;text-align:right;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorTextDisabled})),Xu.div.withConfig({displayName:"FixedContainer",componentId:"sc-kc8vou-0"})(["position:fixed;z-index:2;"]),Xu.div.withConfig({displayName:"StyledItemStatus",componentId:"sc-uhd8g-0"})(["padding:0 ",";color:",";"],ld.spacing5,(function(e){return e.theme.legacy.colorRichBlack30})),Xu.div.withConfig({displayName:"StyledUserSearchContainer",componentId:"sc-uhd8g-1"})(["position:relative;"]),Xu.ul.withConfig({displayName:"StyledUserSearchDropdown",componentId:"sc-uhd8g-2"})(["display:block;box-sizing:border-box;overflow-y:auto;padding:"," 0;margin:0;border:none;border-radius:",";background-color:",";box-shadow:0 0 0 1px ",";z-index:1;&:empty{display:none;}> li{list-style:none;}"],ld.spacing3,(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack15}));var AN=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-uhd8g-3"})(["position:absolute;height:0;right:0;bottom:32px;"]);Xu(AN).withConfig({displayName:"IconRightContainer",componentId:"sc-uhd8g-4"})(["cursor:pointer;fill:",";&:focus,&:hover{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive})),Xu.div.withConfig({displayName:"Container",componentId:"sc-1ozn84q-0"})(["padding:8px 0;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;"]),Xu.div.withConfig({displayName:"InfoContainer",componentId:"sc-1ozn84q-1"})(["flex:1;margin-right:12px;color:",";min-width:0;"],(function(e){return e.isDisabled?e.theme.legacy.colorTextLight:e.theme.legacy.colorText})),Xu.div.withConfig({displayName:"NameContainer",componentId:"sc-1ozn84q-2"})(["display:flex;"]),Xu.div.withConfig({displayName:"Name",componentId:"sc-1ozn84q-3"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]),Xu.div.withConfig({displayName:"NameSmoked",componentId:"sc-1ozn84q-4"})(["color:",";margin-left:8px;"],(function(e){return e.theme.legacy.colorTextDisabled})),Xu.div.withConfig({displayName:"ExtraInfo",componentId:"sc-1ozn84q-5"})(["font-size:14px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"],(function(e){return e.theme.legacy.colorTextLight}));var NN=Xu.div.withConfig({displayName:"LoadingPlaceholder",componentId:"sc-1ozn84q-6"})(["&:after{content:'';display:flex;width:120px;height:6px;border-radius:4px;margin:3px 0;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20}));Xu(NN).withConfig({displayName:"LoadingName",componentId:"sc-1ozn84q-7"})(["&:after{width:120px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack20})),Xu(NN).withConfig({displayName:"LoadingExtraInfo",componentId:"sc-1ozn84q-8"})(["&:after{width:80px;background-color:",";}"],(function(e){return e.theme.legacy.colorRichBlack10})),Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1ozn84q-9"})(["min-width:40px;height:40px;margin-right:8px;display:flex;align-items:center;justify-content:center;border-radius:",";background-color:",";fill:",";"],(function(e){return e.square?"5px":"50%"}),(function(e){return e.theme.legacy.colorBackgroundLight}),(function(e){return e.theme.legacy.colorBackgroundActive})),Xu.div.withConfig({displayName:"EntityListContainer",componentId:"sc-1ozn84q-10"})(["flex:1;overflow-y:auto;overflow-x:hidden;margin-top:16px;max-height:256px;"]),Xu.div.withConfig({displayName:"StyledItemCheck",componentId:"sc-ri03d3-0"})(["display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;box-shadow:inset 0 0 0 2px ",";"," svg{","}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.checked&&"\n background-color: ".concat(e.theme.legacy.colorPrimary,";\n box-shadow: none;\n color: ").concat(e.theme.legacy.colorWhite,";\n ")}),(function(e){return e.checked?"\n opacity: 1;\n transform: scale(1);\n ":"\n opacity: 0;\n "})),Xu.div.withConfig({displayName:"StyledEntityListContainer",componentId:"sc-ri03d3-1"})(["",""],(function(e){return e.isDisabled&&"opacity: 0.6;"}));var DN=Xu.div.withConfig({displayName:"Section",componentId:"sc-ri03d3-2"})(["margin:0 0 12px 0;list-style:none;min-width:224px;"]);Xu.div.withConfig({displayName:"SubTitle",componentId:"sc-ri03d3-3"})(["margin:8px 0 8px 0;"]),Xu.div.withConfig({displayName:"ListContent",componentId:"sc-ri03d3-4"})(["padding:8px 0;margin:0;display:flex;flex-direction:row;align-items:center;position:relative;justify-content:flex-start;"]),Xu.div.withConfig({displayName:"ListInfo",componentId:"sc-ri03d3-5"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack80}));var MN=Xu.div.withConfig({displayName:"ListTitle",componentId:"sc-ri03d3-6"})(["width:100%;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"]);Xu(MN).withConfig({displayName:"ListSecondary",componentId:"sc-ri03d3-7"})(["font-size:14px;color:",";"],(function(e){return e.theme.legacy.colorRichBlack50})),Xu.div.withConfig({displayName:"ListActions",componentId:"sc-ri03d3-8"})(["margin-left:auto;display:flex;div + button{margin-left:8px;}"]),Xu.div.withConfig({displayName:"ListItem",componentId:"sc-ri03d3-9"})(["padding:0 16px;"," ",""],(function(e){return e.pointer&&"\n cursor: pointer;\n "}),(function(e){return e.isFocused&&"\n background-color: ".concat(e.theme.legacy.colorRichBlack03,";\n ")})),Xu.div.withConfig({displayName:"ListIcon",componentId:"sc-ri03d3-10"})(["width:48px;height:48px;margin:0 8px 0 0;border-radius:5px;position:relative;box-shadow:inset 0 0 0 1px ",";display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:",";fill:",";color:",";box-shadow:none;> svg{width:24px;height:24px;}"],(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50})),Xu.span.withConfig({displayName:"SpanSmoke",componentId:"sc-ri03d3-11"})(["color:",";"],(function(e){return e.theme.legacy.colorRichBlack30}));var FN,LN,RN=Xu.div.withConfig({displayName:"Icon",componentId:"sc-ri03d3-12"})(["background-color:",";width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;flex-shrink:0;img{width:24px;height:24px;margin:0 12px 0 0px;border-radius:5px;background-color:",";}"],(function(e){return!e.withImage&&(e.color||e.theme.legacy.colorRichBlack10)}),(function(e){return e.color||e.theme.legacy.colorRichBlack10})),HN=Xu.span.withConfig({displayName:"ComponentIcon",componentId:"sc-ri03d3-13"})(["display:flex;width:32px;height:32px;align-items:center;fill:",";margin-right:8px;justify-content:center;flex-shrink:0;border-radius:5px;","{margin:0;}> img{width:24px;height:24px;border-radius:5px;}"],(function(e){return e.theme.legacy.colorRichBlack30}),RN);Xu.div.withConfig({displayName:"TextEllipsis",componentId:"sc-ri03d3-14"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:initial;"]),Xu.div.withConfig({displayName:"MainContainer",componentId:"sc-ri03d3-15"})(["display:flex;flex-direction:column;max-height:100%;"]),Xu(DN).withConfig({displayName:"EntityListSection",componentId:"sc-ri03d3-16"})(["margin-right:calc("," * -1);padding-right:",";flex:1;overflow-y:auto;overflow-x:hidden;margin-top:4px;min-height:186px;max-height:256px;margin-bottom:12px;"],ld.spacing6,ld.spacing6),Xu.div.withConfig({displayName:"DropdownArrowIconContainer",componentId:"sc-ri03d3-17"})(["height:24px;margin:0 calc("," * -1);"],ld.spacing2),function(e){e.PRIVATE="PRIVATE",e.RESTRICTED="RESTRICTED",e.ALL_USERS="ALL_USERS",e.PUBLIC="PUBLIC"}(FN||(FN={})),function(e){e.LEFT="left",e.RIGHT="right",e.CENTER="center",e.TOP="top"}(LN||(LN={})),Xu.div.withConfig({displayName:"Dropdown",componentId:"sc-td9xdv-0"})(["position:relative;margin-left:0px;"]);var $N=Xu.div.withConfig({displayName:"DropdownContainer",componentId:"sc-td9xdv-1"})(["top:100%;left:0;border-radius:",";background-color:",";box-shadow:0 1px 6px 0 ",";border:1px solid ",";min-width:170px;overflow:auto;background-clip:padding-box;"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.colorRichBlack05}));Xu.div.withConfig({displayName:"DropdownContent",componentId:"sc-td9xdv-2"})(["position:absolute;min-width:",";"," overflow:auto;background-color:",";box-shadow:0 1px 8px 0 ",";border-radius:",";background-clip:padding-box;z-index:100;",""],(function(e){return e.small?"148px":"200px"}),(function(e){return e.fullWidth&&"width: 100%;"}),(function(e){return e.theme.legacy.colorWhite}),(function(e){return e.theme.legacy.colorRichBlack10}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:LN.LEFT){case LN.RIGHT:return qu(["top:110%;right:0;"]);case LN.CENTER:return qu(["top:110%;left:50%;transform:translateX(-50%);"]);case LN.TOP:return qu(["top:auto;bottom:110%;"]);case LN.LEFT:default:return qu(["top:110%;left:0;"])}}(e.position)})),Xu.div.withConfig({displayName:"Entry",componentId:"sc-td9xdv-3"})(["margin:0;display:flex;flex-direction:row;align-items:center;position:relative;text-decoration:none;white-space:nowrap;","{width:24px;}"],HN);var UN=Xu.span.withConfig({displayName:"IconContainer",componentId:"sc-td9xdv-4"})(["display:flex;margin:0 -8px 0 auto;fill:",";svg{margin-left:auto;}"],(function(e){return e.theme.legacy.colorRichBlack80}));Xu.li.withConfig({displayName:"DropdownListItem",componentId:"sc-td9xdv-5"})([""," margin:0;height:36px;display:flex;flex-direction:row;align-items:center;position:relative;color:",";font-size:14px;"," &:hover{background-color:",";cursor:pointer;color:",";}list-style:none;","{fill:",";color:",";}","{margin:0 -8px 0 auto;svg{color:rgba(0,34,51,0.8);}}"],(function(e){return e.woPaddingLeft?"padding: 0 16px 0 0;":"padding: 0 16px;"}),(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.enabled&&"color: ".concat(e.theme.legacy.colorRichBlack80,";")}),(function(e){return e.theme.legacy.colorRichBlack03}),(function(e){return e.theme.legacy.colorRichBlack80}),HN,(function(e){return e.theme.legacy.colorRichBlack50}),(function(e){return e.theme.legacy.colorRichBlack50}),UN);var VN=qu(["width:32px;height:32px;display:flex;align-items:center;justify-content:center;"]),WN=qu(["margin:0 4px 0 -8px;flex-shrink:0;border-radius:",";"],(function(e){return e.theme.legacy.buttonBorderRadius}));Xu.ul.withConfig({displayName:"DropdownList",componentId:"sc-td9xdv-6"})(["list-style:none;padding:8px 0;margin:0;hr{margin:8px 0;}",""],(function(e){return e.scrollable&&"\n max-height: 300px;\n overflow: scroll;\n "})),Xu($N).withConfig({displayName:"CardDropdownContainer",componentId:"sc-td9xdv-7"})(["top:110%;min-width:200px;background-clip:padding-box;align-self:flex-start;min-height:8px;z-index:1;"]),Xu.span.withConfig({displayName:"CardDropdownListIcon",componentId:"sc-td9xdv-8"})([""," "," color:",";"],VN,WN,(function(e){return e.theme.legacy.colorRichBlack50}));var qN=Xu.input.withConfig({displayName:"StyledInput",componentId:"sc-1jv4ai7-0"})(["flex-grow:2;box-sizing:border-box;height:40px;font-size:",";line-height:",";color:",";background:",";padding-left:16px;padding-right:40px;input&{\bwidth:156px;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled}));Xu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1jv4ai7-1"})(["position:relative;margin-top:","px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.isLabeled?8:0}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Xu.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1jv4ai7-2"})(["display:flex;align-items:center;flex-wrap:wrap;"]);var GN=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-1jv4ai7-3"})(["height:0;position:absolute;bottom:32px;"]);Xu(GN).withConfig({displayName:"IconErrorContainer",componentId:"sc-1jv4ai7-4"})(["fill:",";"],(function(e){return e.theme.legacy.colorError})),Xu(GN).withConfig({displayName:"IconRightContainer",componentId:"sc-1jv4ai7-5"})(["right:12px;cursor:pointer;fill:",";&:focus,&:hover{fill:",";}",":focus &{fill:",";}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}),qN,(function(e){return e.theme.legacy.colorIconActive})),Xu.label.withConfig({displayName:"Label",componentId:"sc-1jv4ai7-6"})(["font-weight:normal;font-size:",";width:100%;margin-bottom:0px;"],(function(e){return e.theme.legacy.fontSizeH6})),Xu.p.withConfig({displayName:"ErrorMessage",componentId:"sc-1jv4ai7-7"})(["font-size:",";color:",";margin-bottom:0;"],(function(e){return e.theme.legacy.fontSizeSmall}),(function(e){return e.theme.legacy.colorError})),Xu.svg.withConfig({displayName:"Svg",componentId:"sc-1jv4ai7-8"})(["display:inline-block,stroke-width:0,stroke:current-color,fill:current-color,font-size:32px,"]),Xu.div.withConfig({displayName:"ListContainer",componentId:"sc-1jv4ai7-9"})(["width:",";position:fixed;padding-top:4px;z-index:10;top:",";"],(function(e){return e.width}),(function(e){return e.top})),Xu.div.withConfig({displayName:"ListItem",componentId:"sc-4vrawh-0"})(["padding:0 16px;cursor:pointer;",""],(function(e){return e.isFocused&&qu(["background-color:",";"],e.theme.legacy.colorRichBlack03)}));var YN="44px";Xu.input.withConfig({displayName:"Input",componentId:"sc-1rwvhxx-0"})(["flex-grow:2;box-sizing:border-box;height:32px;font-size:",";line-height:",";color:",";background:",";padding-left:8px;padding-right:8px;input&{width:20%;outline:none;border:none;border-radius:",";&:focus,&:hover{border:none;box-shadow:none;}}&&::placeholder{color:",";}"],(function(e){return e.theme.legacy.fontSizeH6}),(function(e){return e.theme.legacy.lineHeightH6}),(function(e){return e.theme.legacy.colorText}),(function(e){return e.theme.legacy.colorBackground}),(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.theme.legacy.colorTextDisabled})),Xu.div.withConfig({displayName:"WrapperRelative",componentId:"sc-1rwvhxx-1"})(["position:relative;padding:2px;border-radius:",";border:1px solid ",";&:focus,&:hover{border:1px solid ",";}"],(function(e){return e.theme.legacy.buttonBorderRadius}),(function(e){return e.isFocused?e.theme.legacy.colorBorderFocus:e.theme.legacy.colorBorder}),(function(e){return e.theme.legacy.colorBorderFocus})),Xu.div.withConfig({displayName:"WrapperFlex",componentId:"sc-1rwvhxx-2"})(["display:flex;flex-wrap:wrap;align-items:center;"]),Xu.div.withConfig({displayName:"SelectedChip",componentId:"sc-1rwvhxx-3"})(["margin:2px;"]),Xu.div.withConfig({displayName:"AvailableChip",componentId:"sc-1rwvhxx-4"})(["margin:8px 2px 0;"]),Xu.div.withConfig({displayName:"AvailableChipContainer",componentId:"sc-1rwvhxx-5"})(["display:flex;align-items:flex-start;width:100%;height:",";scroll-behavior:smooth;overflow-x:scroll;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],YN),Xu.div.withConfig({displayName:"Footer",componentId:"sc-1rwvhxx-6"})(["position:relative;z-index:0;"]);var XN=Xu.div.withConfig({displayName:"Arrow",componentId:"sc-1rwvhxx-7"})(["z-index:2;position:absolute;top:8px;display:flex;align-items:center;justify-content:center;width:24px;height:32px;background-color:#fff;border-radius:5px;cursor:pointer;> svg{height:24px;width:24px;fill:",";}&:hover{background-color:#f2f4f5;> svg{fill:",";}}&:active{background-color:#e6e9eb;}"],(function(e){return e.theme.legacy.colorIcon}),(function(e){return e.theme.legacy.colorIconActive}));Xu(XN).withConfig({displayName:"RightArrow",componentId:"sc-1rwvhxx-8"})(["right:0;"]),Xu(XN).withConfig({displayName:"LeftArrow",componentId:"sc-1rwvhxx-9"})(["left:0;"]);var KN=Xu.div.withConfig({displayName:"Shadow",componentId:"sc-1rwvhxx-10"})(["z-index:1;position:absolute;top:0;width:32px;height:",";"],YN);Xu(KN).withConfig({displayName:"RightShadow",componentId:"sc-1rwvhxx-11"})(["background:linear-gradient(270deg,#ffffff 0%,rgba(255,255,255,0) 100%);right:24px;"]),Xu(KN).withConfig({displayName:"LeftShadow",componentId:"sc-1rwvhxx-12"})(["background:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,0) 100%);left:24px;"]);var ZN=Xu.div.withConfig({displayName:"ArrowBackground",componentId:"sc-1rwvhxx-13"})(["z-index:1;position:absolute;top:0;background-color:#fff;border-radius:5px 0 0 5px;height:",";width:26px;"],YN);Xu(ZN).withConfig({displayName:"ArrowBackgroundRight",componentId:"sc-1rwvhxx-14"})(["right:0;"]),Xu(ZN).withConfig({displayName:"ArrowBackgroundLeft",componentId:"sc-1rwvhxx-15"})(["left:-1px;"]);var JN=["isOpen"],QN="dat-menu-pointer-events-wrapper";function eD(e){var n=e.presetURL,r=e.alwaysVisible;return t.createElement(Uv,{position:"bottom-right",trigger:function(e){var n=e.isOpen,o=hN(e,JN);return t.createElement(tD,{isVisible:r||n},t.createElement(rp,sN(sN({},o),{},{variant:"clean",isPressed:n,icon:t.createElement(xE,null),"aria-label":"More options"})))}},t.createElement(IS.CopyToClipboard,{text:n,onCopy:function(){Sx({title:"Link copied to clipboard",variant:"success"})}},t.createElement(Uv.Item,{icon:t.createElement(Lw,null),onClick:function(){return!1}},"Copy Link")),t.createElement(Uv.Divider,null),t.createElement(Uv.Item,{icon:t.createElement(_w,null),onClick:function(){window.open(n,"_blank")}},"Open in new tab"),t.createElement(Uv.Divider,null),t.createElement(Uv.Item,{icon:t.createElement(Xw,null),onClick:function(){var e=function(e){var t,n,r,o,i,a,s,l,c,u="([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})",d="([^/]*)",p="(.*)/transform",f={preset:new RegExp("".concat(p,"/").concat("([a-zA-Z0-9_-]+)","/").concat(u,"/").concat("([a-zA-Z0-9_-]+)*","$").concat(d)),transform:new RegExp("".concat(p,"/").concat(u,"/").concat(d))},h="";if(f.preset.test(e)){var m=mN(e.match(f.preset),5);s=m[1],h=m[2],l=m[3],c=m[4]}else if(f.transform.test(e)){var g=mN(e.match(f.transform),4);s=g[1],l=g[2],c=g[3]}var v=(null!==(t=null===(n=h)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0,y=null!==(r=null===(o=c)||void 0===o?void 0:o.split("?")[0])&&void 0!==r?r:"",b=null!==(i=null===(a=c)||void 0===a?void 0:a.split("?")[1])&&void 0!==i?i:"",x=b.length>0?"&":"",w=v?"".concat(h,"-").concat(l):y,E=h.length?"".concat(h,"/"):"";return"".concat(s,"/transform/").concat(E).concat(l,"/").concat(w,"?").concat(b).concat(x,"download=true")}(n);window.location.replace(e)}},"Download"))}var tD=Xu.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-1xq1wim-0"})(["opacity:",";",":hover &,&:focus-within{opacity:1;}"],(function(e){return e.isVisible?"1":"0"}),"."+QN),nD=function(e){if(!e)return"";var t=new URL(e);return t.searchParams.set("".concat(Date.now()),""),t.toString()},rD=function(e){var t="",n=e.match(/(https:\/\/(.*))\/transform\/(.*)\/(.*)/);return n&&n[3]&&(t=n[3]),t},oD=Xu.div.withConfig({displayName:"ItemContainer",componentId:"sc-eq72z0-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";",""],ld.spacing3,ld.spacing4,ld.spacing3,(function(e){return e.isSelected&&ld.gray25}),(function(e){return e.isDisabled?"":"\n\t&:hover {\n\t\tbackground: ".concat(ld.gray25,";\n\t\tcursor: pointer;\n\t}")})),iD=Xu.div.withConfig({displayName:"ItemDetails",componentId:"sc-eq72z0-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),aD=Xu.p.withConfig({displayName:"Title",componentId:"sc-eq72z0-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],ld.fontSize100,ld.lineHeightText,ld.gray800,ld.spacing4),sD=Xu.p.withConfig({displayName:"Subtitle",componentId:"sc-eq72z0-3"})(["color:",";font-size:",";line-height:",";padding:0px ",";margin:0;"],ld.gray600,ld.fontSize100,ld.lineHeightText,ld.spacing4),lD=Xu.div.withConfig({displayName:"Container",componentId:"sc-eq72z0-4"})(["padding:0px ",";"],ld.spacing4),cD=function(e){var n=e.name,r=e.onSelect,o=e.subtitle,i=e.isMenuHidden,a=void 0!==i&&i,s=e.isSelected,l=e.baseURL,c=mN(l.split("/transform"),1)[0],u="Base"===n?"":"".concat(n,"/"),d=rD(l),p="/transform/".concat(u).concat(d,"/"),f=uD(c,p);return t.createElement(oD,{className:QN,onClick:r,isSelected:s},t.createElement(Sg,{variant:"content",imageUrl:f}),t.createElement(iD,null,t.createElement(aD,null,n),t.createElement(sD,null,o)),!a&&t.createElement(eD,{alwaysVisible:!1,presetURL:"".concat(c).concat(p)}))},uD=function(e,t){return"".concat(e).concat(t,"?io=transform:fit,width:80")},dD=t.memo(cD),pD=function(e){var n=e.name,r=e.id,i=e.baseURL,a=e.onPresetSelected,s=e.selectedPreset,l=e.presets,c=e.presetGroupingActive,u=mN(o(!1),2),d=u[0],p=u[1],f=d?t.createElement(ap,null):t.createElement(lp,null),h=l.filter((function(e){return e.groupId===r})),m=h.length>0;return c?t.createElement(t.Fragment,null,t.createElement(oD,{className:QN,onClick:m?function(){return p((function(e){return!e}))}:void 0,isSelected:!1,isDisabled:!m},t.createElement(Sg,{size:"m",icon:t.createElement(yp,null)}),t.createElement(iD,null,t.createElement(aD,null,n)),m&&f),t.createElement(lD,null,d&&h.map((function(e){return t.createElement(dD,{baseURL:i,key:e.id,onSelect:function(){return a(e.name)},name:e.name,subtitle:"",isSelected:s===e.name})})))):null},fD=t.memo(pD),hD=function(e){var n=e.onPresetSelected,r=e.presets,o=e.selectedPreset,i=e.baseURL,a=e.presetGroupingActive,s=r.filter((function(e){return"Preset"===e.type})).length;return t.createElement(lD,null,t.createElement(mD,null,"Base transformation"),t.createElement(dD,{baseURL:i,onSelect:function(){return n("")},name:"Base",isMenuHidden:!0,subtitle:"",isSelected:""===o}),s>0&&t.createElement(mD,null,s," Presets"),r.sort((function(e,t){return e.name.localeCompare(t.name)})).map((function(e){var s,l=e.name===o,c="Group"===e.type;return a&&(null==e||null===(s=e.groupId)||void 0===s?void 0:s.length)>0?null:c?t.createElement(fD,{key:e.id,name:e.name,id:e.id,baseURL:i,onPresetSelected:n,selectedPreset:o,presets:r,presetGroupingActive:a}):t.createElement(dD,{baseURL:i,key:e.id,onSelect:function(){return n(e.name)},name:e.name,subtitle:"",isSelected:l})})))},mD=Xu.p.withConfig({displayName:"ListGroupTitle",componentId:"sc-yqslcx-0"})(["color:",";font-size:",";margin-bottom:",";padding:0 ",";"],ld.gray800,ld.spacing5,ld.spacing5,ld.spacing4),gD=t.memo(hD);function vD(e){return e?e[0].toUpperCase()+e.split("").splice(1).join("").toLocaleLowerCase():""}function yD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M14.96 9.29L12.21 12.83L10.25 10.47L7.5 14H18.5L14.96 9.29ZM2 4H0V20C0 21.1 0.9 22 2 22H18V20H2V4ZM20 0H6C4.9 0 4 0.9 4 2V16C4 17.1 4.9 18 6 18H20C21.1 18 22 17.1 22 16V2C22 0.9 21.1 0 20 0ZM20 16H6V2H20V16Z"}))}function bD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M2 4H0V20C0 21.1 0.9 22 2 22H18V20H2V4ZM20 0H6C4.9 0 4 0.9 4 2V16C4 17.1 4.9 18 6 18H20C21.1 18 22 17.1 22 16V2C22 0.9 21.1 0 20 0ZM20 16H6V2H20V16Z"}),t.createElement("path",{d:"M11.7778 5.28257L13 4L14.2222 5.28257L14.2264 5.287L14.2341 5.29511L14.2594 5.32206C14.2805 5.3447 14.31 5.37657 14.3468 5.41681C14.4202 5.4972 14.5228 5.61148 14.6448 5.75269C14.8877 6.0336 15.2141 6.42837 15.5435 6.87997C15.8699 7.32739 16.218 7.85622 16.4894 8.4028C16.7491 8.9259 17 9.58504 17 10.2602C17 12.2016 15.3319 14 13 14C10.6681 14 9 12.2016 9 10.2602C9 9.58504 9.25088 8.9259 9.5106 8.4028C9.78196 7.85622 10.1301 7.32739 10.4565 6.87997C10.7859 6.42837 11.1123 6.0336 11.3552 5.75269C11.4772 5.61148 11.5798 5.4972 11.6532 5.41681C11.69 5.37657 11.7195 5.3447 11.7406 5.32206L11.7659 5.29511L11.7736 5.287L11.7778 5.28257Z"}))}var xD,wD,ED=function(e){switch(e.type){case"fill":case"crop":return t.createElement(nE,null);case"fit":return t.createElement(ww,null);case"extend":return t.createElement(zw,null);case"scale":return t.createElement(Gw,null);case"rotate":return t.createElement(uE,null);case"flip":case"mirror":return t.createElement(iE,null);case"border":return t.createElement(Uw,null);case"background":return t.createElement(Vw,null);case"trim":return t.createElement(Rw,null);case"opacity":return t.createElement(Ow,null);case"sepia":return t.createElement(eE,null);case"contrast":return t.createElement(kw,null);case"brightness":return t.createElement($w,null);case"grayscale":return t.createElement(dE,null);case"blur":return t.createElement(Zw,null);case"sharpness":return t.createElement(oE,null);case"saturation":return t.createElement(Jw,null);case"text":return t.createElement(Yw,null);case"image":return t.createElement(yD,null);case"box":return t.createElement(bD,null);case"advanced":return t.createElement(Pw,null);case"multiple":return t.createElement(Aw,null);case"removebg":return t.createElement(kD,null);default:return null}};function CD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M3 17V19H9V17H3ZM3 5V7H13V5H3ZM13 21V19H21V17H13V15H11V21H13ZM7 9V11H3V13H7V15H9V9H7ZM21 13V11H11V13H21ZM15 9H17V7H21V5H17V3H15V9Z"}))}function kD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2Zm0 8h2v-2H3v2Zm4 8h2v-2H7v2ZM3 9h2V7H3v2Zm10-6h-2v2h2V3Zm6 0v2h2c0-1.1-.9-2-2-2ZM5 21v-2H3c0 1.1.9 2 2 2Zm-2-4h2v-2H3v2ZM9 3H7v2h2V3Zm2 18h2v-2h-2v2Zm8-8h2v-2h-2v2Zm0 8c1.1 0 2-.9 2-2h-2v2Zm0-12h2V7h-2v2Zm0 8h2v-2h-2v2Zm-4 4h2v-2h-2v2Zm0-16h2V3h-2v2ZM7 17h10V7H7v10Zm2-8h6v6H9V9Z"}))}function SD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M19 15.18V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 1.1-.9 2-2 2s-2-.9-2-2V8.82C8.16 8.4 9 7.3 9 6c0-1.66-1.34-3-3-3S3 4.34 3 6c0 1.3.84 2.4 2 2.82V17c0 2.21 1.79 4 4 4s4-1.79 4-4V7c0-1.1.9-2 2-2s2 .9 2 2v8.18A2.996 2.996 0 0 0 18 21c1.66 0 3-1.34 3-3 0-1.3-.84-2.4-2-2.82ZM6 7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm12 12c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Z"}))}!function(e){e.fill="fill",e.crop="crop",e.fit="fit",e.extend="extend",e.scale="scale",e.rotate="rotate",e.flip="flip",e.mirror="mirror",e.border="border",e.background="background",e.removebg="removebg",e.trim="trim",e.empty=""}(xD||(xD={})),function(e){e[e.transformations=0]="transformations",e[e.presets=1]="presets"}(wD||(wD={}));var _D={name:"Open Sans",id:"opensans"};function ID(e){var n=e.children,r=e.label,o=e.helpText;return t.createElement(TD,null,t.createElement(Ly.Label,null,r),n,t.createElement(Ly.HelperText,null,o))}var TD=Xu(Ly.Group).withConfig({displayName:"FormGroup",componentId:"sc-uzgeip-0"})(["height:fit-content;"]),OD={transformation:null,group:null,label:"Select a transform"},jD=[{label:"Background",transformation:xD.background,group:"transform"},{label:"Border",transformation:xD.border,group:"transform"},{label:"Crop",transformation:xD.crop,group:"transform",description:"Extracts a region of the specified dimensions from the original image without first resizing it."},{label:"Remove Background",transformation:xD.removebg,group:"transform",description:"We will use the available clipping path information to mask the image, and remove the background."},{label:"Extend",transformation:xD.extend,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio, and extends the canvas if the resized image does not fill the whole area."},{label:"Fill",transformation:xD.fill,group:"transform",description:"Resizes the image to fill the specified dimensions without distortion. The image may be cropped as a result."},{label:"Fit",transformation:xD.fit,group:"transform",description:"Resizes the image to fit inside the bounding box specified by the dimensions, maintaining the aspect ratio."},{label:"Flip",transformation:xD.flip,secondaryTransformation:xD.mirror,group:"transform"},{label:"Rotate",transformation:xD.rotate,group:"transform"},{label:"Scale",transformation:xD.scale,group:"transform",description:"Resizes the image to the specified dimensions without necessarily retaining the original aspect ratio."},{label:"Trim",transformation:xD.trim,group:"transform",description:"Removes any transparent or white colored areas at the edges of an image."},{label:"Text overlay",transformation:"text",group:"overlay"},{label:"Image overlay",transformation:"image",group:"overlay"},{label:"Color overlay",transformation:"box",group:"overlay"},{label:"Opacity",transformation:"opacity",group:"filter"},{label:"Sepia",transformation:"sepia",group:"filter"},{label:"Contrast",transformation:"contrast",group:"filter"},{label:"Brightness",transformation:"brightness",group:"filter"},{label:"Grayscale",transformation:"grayscale",group:"filter"},{label:"Blur",transformation:"blur",group:"filter"},{label:"Sharpness",transformation:"sharpness",group:"filter"},{label:"Saturation",transformation:"saturation",group:"filter"}];function zD(e){var n,r=jD.find((function(t){return[t.transformation,t.secondaryTransformation].includes(e.transformation)}))||OD;return t.createElement(ID,{label:"Transformation",helpText:null!==(n=r.description)&&void 0!==n?n:""},t.createElement(Tx,{"aria-label":"Transformation",onChange:function(t){var n=jD.find((function(e){return[e.transformation,e.secondaryTransformation].includes(t)})).group;e.onChange({group:n,transformation:t})},label:r.label,value:r.transformation,icon:t.createElement(ED,{type:r.transformation})},t.createElement(Tx.SectionTitle,null,"Transforms"),jD.filter((function(e){return"transform"===e.group})).map((function(e){return t.createElement(Tx.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)})),t.createElement(Tx.Divider,null),t.createElement(Tx.SectionTitle,null,"Filters"),jD.filter((function(e){return"filter"===e.group})).map((function(e){return t.createElement(Tx.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)})),t.createElement(Tx.Divider,null),t.createElement(Tx.SectionTitle,null,"Overlay"),jD.filter((function(e){return"overlay"===e.group})).map((function(e){return t.createElement(Tx.Item,{value:e.transformation,key:e.transformation,icon:t.createElement(ED,{type:e.transformation})},e.label)}))))}var BD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(!function(e){return"number"==typeof e&&!isNaN(e)}(e))return 0;var n=Math.abs(e),r=Math.trunc(n);return r<=t?r:t},PD=function(e){return e&&e>0?e.toString():""},AD={type:"Preset",name:"",description:"",content:{format:"",quality:75,io:[]},isValid:!0,groupId:""},ND={id:"",transform:null,overlay:null,filter:null},DD={type:"Preset",groupId:"",name:"",content:{io:[]}},MD={id:"",transform:null,overlay:null,filter:null};function FD(e,t){var n,r=function(){return e.content.io.map((function(e){return sN({},e)}))};switch(t.type){case"init":return function(e){var t;if(e){var n=sN({},e);return null==n||null===(t=n.content)||void 0===t||null===(t=t.io)||void 0===t||t.forEach((function(e){e.id||(e.id=TS())})),n}}(t.payload)||AD;case"edit":return sN(sN({isValid:!0},t.payload),{},{content:sN(sN({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return sN(sN({},e),{},{id:TS()})}))})});case"addTransformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:[].concat(gN(r()),[sN(sN({},MD),{},{id:t.payload.id,transform:xD.fill})])})});case"deleteTransformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.filter((function(e){return e.id!==t.payload.id}))})});case"isValid":case"name":case"description":return sN(sN({},e),{},(dN(n={},t.type,t.payload),dN(n,"content",sN(sN({},e.content),{},{io:r()})),n));case"format":case"quality":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:r()},t.type,t.payload))});case"focuspoint":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:r()},t.type,t.payload.value))});case"transformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},function(e){switch(e){case"fill":case"fit":case"scale":return sN(sN({},MD),{},{height:1e3,width:1e3});case"extend":return sN(sN({},MD),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return sN(sN({},MD),{},{height:1e3,width:1e3,path:"square"});case"background":return sN(sN({},MD),{},{color:"FFFFFF"});case"border":return sN(sN({},MD),{},{color:"FFFFFF",width:1});case"rotate":return sN(sN({},MD),{},{angle:0});case"opacity":return sN(sN({},MD),{},{amount:100});case"blur":return sN(sN({},MD),{},{radius:0});case"text":return sN(sN({},MD),{},{content:"Add Text Here",font:_D.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return sN(sN({},MD),{},{opacity:50,angle:0,gravity:"center"});case"box":return sN(sN({},MD),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return sN(sN({},MD),{},{amount:0})}}(t.payload.value)),{},dN({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value))}))})});case"opacity":case"asset":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value.toString()))}))})});case"groupId":return sN(sN({},e),{},{groupId:t.payload});default:return e}}var LD=t.createContext({}),RD=function(){return r(LD)},HD=function(e){var n=e.children,r=mN(p(FD,DD),2),o=r[0],a=r[1],s=i((function(){return{transformationsState:o,transformationsDispatch:a}}),[o,a]);return t.createElement(LD.Provider,{value:s},n)},$D=9e3;function UD(e){var n=e.id,r=e.height,i=void 0===r?0:r,a=e.width,s=void 0===a?0:a,l=e.showLock,c=void 0!==l&&l,u=RD().transformationsDispatch,d=mN(o(!1),2),p=d[0],f=d[1],h=mN(o(1),2),m=h[0],g=h[1],v=t.createElement(WD,null,p?t.createElement(Tw,null):t.createElement(Iw,null)),y=PD(s),b=PD(i);return t.createElement(ID,{label:"Dimensions"},t.createElement(VD,null,t.createElement(qD,null,t.createElement(pg,{"aria-label":"Dimensions width",placeholder:"1000",icon:t.createElement(GD,null,"W"),value:y,onChange:function(e){var t=parseInt(e,10),r=BD(t,$D);u({type:"width",payload:{value:r,id:n}}),p?u({type:"height",payload:{value:r/m,id:n}}):g(i&&r?r/i:1)},iconRight:t.createElement("span",null,"px")})),c?t.createElement(rp,{variant:"clean",onClick:function(){f((function(e){return!e}))},icon:v,title:"Lock ratio"}):t.createElement(YD,null),t.createElement(qD,null,t.createElement(pg,{"aria-label":"Dimensions height",placeholder:"1000",icon:t.createElement(GD,null,"H"),value:b,onChange:function(e){var t=parseInt(e,10),r=BD(t,$D);u({type:"height",payload:{value:r,id:n}}),p?u({type:"width",payload:{value:r*m,id:n}}):g(s&&r?s/r:1)},iconRight:t.createElement("span",null,"px")}))))}var VD=Xu.div.withConfig({displayName:"SpaceBetween",componentId:"sc-zla2g2-0"})(["display:flex;align-items:center;justify-content:space-between;"]),WD=Xu.div.withConfig({displayName:"IconContainer",componentId:"sc-zla2g2-1"})(["color:",";"],ld.gray400a),qD=Xu.div.withConfig({displayName:"FlexInput",componentId:"sc-zla2g2-2"})(["min-width:0;"]),GD=Xu.div.withConfig({displayName:"IconText",componentId:"sc-zla2g2-3"})(["display:flex;justify-content:center;width:",";"],ld.spacing6),YD=Xu.div.withConfig({displayName:"Space",componentId:"sc-zla2g2-4"})(["width:",";"],ld.spacing4);function XD(e){var n=e.onChange,r=e.value,o=void 0===r?0:r,i=e.label,a=e.min,s=e.max;return t.createElement(ID,{label:i},t.createElement(Ux,{value:o,onChange:n,min:a,max:s,inputPosition:"right"}))}function KD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M3 3H5V19H21V21H3V3Z",fill:"#334E5C"}),t.createElement("path",{d:"M7 5C13.6274 5 19 10.3726 19 17H17C17 11.4772 12.5228 7 7 7V5Z",fill:"#334E5C"}))}function ZD(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(ID,{label:"Angle"},t.createElement(pg,{type:"number",placeholder:"0",onChange:function(e){return r({type:"angle",payload:{value:parseInt(e,10),id:n.id}})},value:n.angle?n.angle.toString():"",icon:t.createElement(KD,null),iconRight:t.createElement("span",null,"°")}))}function JD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M8 19L8 21H16V19H13L13 5L16 5V3L8 3L8 5H11L11 19H8Z"}))}function QD(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M5 8H3V16H5V13H19V16H21V8H19V11H5V8Z"}))}var eM=[{value:"top",label:"Top"},{value:"center",label:"Center"},{value:"bottom",label:"Bottom"}],tM=[{value:"left",label:"Left"},{value:"center",label:"Center"},{value:"right",label:"Right"}],nM=function(e){return["topleft","top","topright"].includes(e)?"top":["bottomleft","bottom","bottomright"].includes(e)?"bottom":"center"},rM=function(e){return["topleft","left","bottomleft"].includes(e)?"left":["topright","right","bottomright"].includes(e)?"right":"center"};function oM(e){var n=e.label,r=e.gravity,i=e.onChange,a=tM.findIndex((function(e){return e.value===rM(r)})),s=eM.findIndex((function(e){return e.value===nM(r)})),l=mN(o(tM[a]),2),c=l[0],u=l[1],d=mN(o(eM[s]),2),p=d[0],f=d[1],h=function(e){switch(i(e),e){case"topleft":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"top":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"topright":f(eM.find((function(e){return"top"===e.value}))),u(tM.find((function(e){return"right"===e.value})));break;case"left":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"center":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"right":f(eM.find((function(e){return"center"===e.value}))),u(tM.find((function(e){return"right"===e.value})));break;case"bottomleft":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"left"===e.value})));break;case"bottom":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"center"===e.value})));break;case"bottomright":f(eM.find((function(e){return"bottom"===e.value}))),u(tM.find((function(e){return"right"===e.value})))}};return t.createElement(ID,{label:n},t.createElement(Af,null,t.createElement(lM,null,t.createElement(uM,{alignItems:"center",justifyContent:"space-between",wrap:"wrap"},t.createElement(dM,{isSelected:"topleft"===r,onClick:function(){return h("topleft")}}),t.createElement(dM,{isSelected:"top"===r,onClick:function(){return h("top")}}),t.createElement(dM,{isSelected:"topright"===r,onClick:function(){return h("topright")}}),t.createElement(dM,{isSelected:"left"===r,onClick:function(){return h("left")}}),t.createElement(dM,{isSelected:"center"===r,onClick:function(){return h("center")}}),t.createElement(dM,{isSelected:"right"===r,onClick:function(){return h("right")}}),t.createElement(dM,{isSelected:"bottomleft"===r,onClick:function(){return h("bottomleft")}}),t.createElement(dM,{isSelected:"bottom"===r,onClick:function(){return h("bottom")}}),t.createElement(dM,{isSelected:"bottomright"===r,onClick:function(){return h("bottomright")}}))),t.createElement(cM,{direction:"column",justifyContent:"space-between"},t.createElement(Tx,{"aria-label":"Horizontal position",onChange:function(e){switch(u(tM.find((function(t){return t.value===e}))),e){case"left":"top"===p.value&&i("topleft"),"center"===p.value&&i("left"),"bottom"===p.value&&i("bottomleft");break;case"center":"top"===p.value&&i("top"),"center"===p.value&&i("center"),"bottom"===p.value&&i("bottom");break;case"right":"top"===p.value&&i("topright"),"center"===p.value&&i("right"),"bottom"===p.value&&i("bottomright")}},value:c.value,label:c.label,icon:t.createElement(QD,null)},tM.map((function(e){return t.createElement(Tx.Item,{value:e.value,key:e.value},e.label)}))),t.createElement(Tx,{"aria-label":"Vertical position",onChange:function(e){switch(f(eM.find((function(t){return t.value===e}))),e){case"top":"left"===c.value&&i("topleft"),"center"===c.value&&i("top"),"right"===c.value&&i("topright");break;case"center":"left"===c.value&&i("left"),"center"===c.value&&i("center"),"right"===c.value&&i("right");break;case"bottom":"left"===c.value&&i("bottomleft"),"center"===c.value&&i("bottom"),"right"===c.value&&i("bottomright")}},value:p.value,label:p.label,icon:t.createElement(JD,null)},eM.map((function(e){return t.createElement(Tx.Item,{value:e.value,key:e.value},e.label)}))))))}var iM,aM,sM,lM=Xu.div.withConfig({displayName:"SquareFlexContainer",componentId:"sc-ci11hg-0"})(["width:92px;margin-right:16px;"]),cM=Xu(Af).withConfig({displayName:"DropdownFlex",componentId:"sc-ci11hg-1"})(["height:92px;"]),uM=Xu(Af).withConfig({displayName:"SquareFlex",componentId:"sc-ci11hg-2"})(["width:92px;height:92px;padding:5px;margin-right:",";background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";"],ld.spacing5,ld.gray25,ld.gray100a,ld.radiusMedium),dM=Xu.div.withConfig({displayName:"Spot",componentId:"sc-ci11hg-3"})(["width:24px;height:24px;background:",";border:1px solid ",";box-sizing:border-box;border-radius:",";&:hover{background-color:",";cursor:pointer;}",""],ld.gray10,ld.gray100a,ld.radiusSmall,ld.gray25a,(function(e){return e.isSelected&&qu(["border:2px solid ",";background:",";"],ld.blue500,ld.blue100)}));function pM(e){if(2===e.length){var t=parseInt(e,16);return Math.floor(Math.round(t/255*100))}}function fM(e){var n,r=e.io,o=e.ioColorProp,i=void 0===o?"color":o,a=e.label,s=void 0===a?"Color":a,l=e.dispatchType,c=void 0===l?"color":l,u=RD().transformationsDispatch;function d(){var e;return null!==(e=r[i].toString())&&void 0!==e?e:""}return t.createElement(ID,{label:s},t.createElement(Af,null,t.createElement(Ug,{onChange:function(e){var t,n,o=e.color,i=e.opacity,a=Math.min(100,i),s="#"===o[0]?o.substring(1):o,l=(t=a.toString(),(n=Math.round(255*parseInt(t,10)/100).toString(16).toUpperCase()).length<2?"0".concat(n):n);u({type:c,payload:{value:"".concat(s).concat(l).toUpperCase(),id:r.id}})},value:{color:"#".concat(d().substring(0,6).toUpperCase()),opacity:null!==(n=pM(d().substring(6)))&&void 0!==n?n:100},trigger:function(e){var n,o=pN({},(fN(e),e));return t.createElement(pg,{maxLength:8,value:null===(n=d())||void 0===n?void 0:n.toUpperCase(),prefix:"#",isInvalid:!new RegExp("^[a-fA-F0-9]{8}$|^[a-fA-F0-9]{6}$|^[a-fA-F0-9]{3}$").test(r[i].toString()),icon:t.createElement(lg,sN(sN({label:"Color Thumbnail"},o),{},{onClick:function(e){e.stopPropagation(),o.onClick()},icon:t.createElement(Sg,{variant:"content",backgroundColor:"#".concat(d()),shape:"circle",size:"xs"})})),onChange:function(e){u({type:c,payload:{value:e,id:r.id}})}})}})))}var hM=function(e){return e.data},mM=function(e){if(e.response){var t=e.response.data;if(null!=t&&t.error)throw t.error;throw t}if(e.request)throw new Error("Server is not responding, please try again");throw e.message},gM=null===(iM=document.querySelector('meta[name="x-csrf-token"]'))||void 0===iM?void 0:iM.getAttribute("content"),vM={"cache-control":"no-cache",pragma:"no-cache","x-csrf-token":(null===(aM=window)||void 0===aM?void 0:aM.csrf)||(null===(sM=window)||void 0===sM||null===(sM=sM.Bynder)||void 0===sM?void 0:sM.csrf_token)||gM},yM=fI.create({headers:vM});function bM(e,t){return yM.get(e,t).then(hM).catch(mM)}function xM(e,t,n){return yM.post(e,t,n).then(hM).catch(mM)}function wM(e,t,n){return yM.put(e,t,n).then(hM).catch(mM)}function EM(e,t){return yM.delete(e,t).then(hM).catch(mM)}var CM={getUploadedFonts:function(){return bM("/v7/fonts/portal/")},getFonts:function(e,t,n){return bM("/v7/fonts/",{params:sN(sN({},e?{pageSize:e}:null),n?{searchTerm:n}:null)})}},kM=function(e){var n=e.fontFamilyLabel,r=e.defaultFontFamilyLabel,s=e.fontFamily,l=e.setFontFamily,c=e.availableFonts,u=e.availableUploadedFonts,d=e.defaultFont,p=e.isDisabled,f=e.actionButton,h=void 0===f?null:f,m=mN(o(""),2),g=m[0],v=m[1],y=function(e){var t=e.searchFont,n=e.availableFonts,r=e.availableUploadedFonts,i=e.defaultFont,s=mN(o(n),2),l=s[0],c=s[1],u=mN(o(r),2),d=u[0],p=u[1],f=mN(o(!1),2),h=f[0],m=f[1],g=mN(o(!1),2),v=g[0],y=g[1];a((function(){c(n),p(r)}),[n,r]);var b=uS((function(e){m(!0),CM.getFonts(20,"",e).then((function(t){var n=t.fonts;if(e){var o=d.filter((function(t){return t.searchable_font_family_name.includes(e)}));p(o)}else p(r);c(e?n:[i].concat(gN(n)))})).catch((function(e){Sx({title:e.toString(),variant:"error"}),console.error("error=",e)})).finally((function(){m(!1)}))}),500);return a((function(){t.length>0&&b(t),v&&(b(t),y(!1))}),[v,t,b]),{fontResults:l,fontUploadedResults:d,isLoading:h,setClearFont:y}}({searchFont:g,availableFonts:c,availableUploadedFonts:u,defaultFont:d}),b=y.fontResults,x=y.fontUploadedResults,w=y.isLoading,E=y.setClearFont,C=i((function(){return TS()}),[]);function k(){v(""),E(!0)}var S=function(e){return e.length>0?e.map((function(e){return t.createElement(Tx.Item,{key:e.font_id,value:e.font_id},e.font_family_name)})):t.createElement(Tx.Text,null,"No Results")},_=function(){return t.createElement(Tx.Text,null,"Loading")};return t.createElement(Ly.Group,null,t.createElement(Ly.Label,{id:C},n),t.createElement(SM,{condition:!!h},t.createElement(Tx,{"aria-labelledby":C,value:s.font_id,onChange:function(e){var t=x.find((function(t){return t.font_id===e}));if(t)l(t);else{var n=b.find((function(t){return t.font_id===e}));n&&l(n)}},label:s.font_family_name||r,isDisabled:p},t.createElement(Tx.SearchInput,{value:g,onChange:v,onBlur:k,onKeyDown:function(e){"Backspace"===e.key&&g.length<=1&&k()},placeholder:"Search","aria-label":"Search Options"}),t.createElement(Tx.SectionTitle,null,"Uploaded Fonts"),w?_():S(x),t.createElement(Tx.Divider,null),t.createElement(Tx.SectionTitle,null,"Available Fonts"),w?_():S(b)),h))},SM=function(e){var n=e.condition,r=e.children;return n?t.createElement(_M,null,r):r},_M=Xu.div.withConfig({displayName:"Wrapper",componentId:"sc-swectq-0"})(["display:flex;gap:",";> div{flex:1 1 auto;}"],ld.spacing3),IM=["Regular"];function TM(e){var n,r,i,s,l,c=e.io,u=RD().transformationsDispatch,d=mN(o(),2),p=d[0],f=d[1],h=mN(o([]),2),m=h[0],g=h[1],v=mN(o([]),2),y=v[0],b=v[1];a((function(){Promise.all([CM.getFonts(20),CM.getUploadedFonts()]).then((function(e){var t=mN(e,2),n=t[0],r=t[1];b(n.fonts),g(r)}))}),[]);var x={font_id:null!==(n=c.font)&&void 0!==n?n:_D.id,font_family_name:null!==(r=c.font)&&void 0!==r?r:_D.name,variants:[],searchable_font_family_name:null!==(i=c.font)&&void 0!==i?i:_D.id};return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Text"},t.createElement(ew,{value:c.content,onChange:function(e){return u({type:"content",payload:{value:e,id:c.id}})}})),t.createElement(ID,{label:"Font"},t.createElement(kM,{fontFamilyLabel:"",defaultFontFamilyLabel:"",fontFamily:null!=p?p:x,setFontFamily:function(e){f(e),u({type:"font",payload:{value:e.font_family_name,id:c.id}})},availableFonts:y,availableUploadedFonts:m,defaultFont:x})),t.createElement(ID,{label:""},t.createElement(Af,null,t.createElement(OM,null,t.createElement(Tx,{"aria-label":"Font style",value:c.fontType,label:c.fontType,onChange:function(e){return u({type:"fontType",payload:{value:e,id:c.id}})},isDisabled:!0},IM.map((function(e){return t.createElement(Tx.Item,{value:e,key:e},e)})))),t.createElement(jM,null,t.createElement(pg,{type:"number",value:null===(s=c.size)||void 0===s?void 0:s.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"size",payload:{value:parseInt(e,10),id:c.id}})}})))),t.createElement(fM,{label:"Text color",io:c}),t.createElement(oM,{label:"Position",gravity:c.gravity,onChange:function(e){return u({type:"gravity",payload:{value:e,id:c.id}})}}),t.createElement(ID,{label:"Padding"},t.createElement(pg,{type:"number",value:null===(l=c.padding)||void 0===l?void 0:l.toString(),iconRight:t.createElement("span",null,"px"),onChange:function(e){return u({type:"padding",payload:{value:parseInt(e,10),id:c.id}})}})),t.createElement(ZD,{io:c}))}var OM=Xu.div.withConfig({displayName:"FontTypeContainer",componentId:"sc-1w95sy3-0"})(["width:210px;margin-right:",";"],ld.spacing4),jM=Xu.div.withConfig({displayName:"FontSizeContainer",componentId:"sc-1w95sy3-1"})(["width:76px;"]);function zM(e){var n=e.io;return t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(fM,{io:n,label:"Background",dispatchType:"background",ioColorProp:"background"}))}var BM=[{label:"Rectangle",path:"square",icon:t.createElement(tE,null)},{label:"Ellipse",path:"circle",icon:t.createElement(aE,null)}],PM=[{label:"Clipping Path",path:"clippingpath",icon:t.createElement(SD,null)}];function AM(e){var n,r=e.onChange,o=e.shape,i=null!==(n=BM.find((function(e){return e.path===o})))&&void 0!==n?n:PM.find((function(e){return e.path===o}));return t.createElement(ID,{label:"Path"},t.createElement(Tx,sN({"aria-label":"Path",onChange:r,value:o},i),BM.map((function(e){return t.createElement(Tx.Item,{value:e.path,key:e.path,icon:e.icon},e.label)})),t.createElement(Tx.Divider,null),PM.map((function(e){return t.createElement(Tx.Item,{value:e.path,key:e.path,icon:e.icon},e.label)}))))}function NM(e){var n=e.onChange,r=mN(e.focusPoint||[],2),o=r[0],i=r[1],a=function(e,t){var r="string"==typeof e?parseFloat(e):e,a=r>=100?100:r;n(["x"===t?a:o,"y"===t?a:i])};return t.createElement(FM,{justifyContent:"space-between",gap:"3",alignItems:"center"},t.createElement(MM,null,t.createElement(pg,{"aria-label":"Focus point position X",placeholder:"50",type:"number",value:(null==o?void 0:o.toString())||"",icon:t.createElement(DM,null,"X"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"x")}})),t.createElement(DM,null,"×"),t.createElement(MM,null,t.createElement(pg,{"aria-label":"Focus point position Y",placeholder:"50",type:"number",value:(null==i?void 0:i.toString())||"",icon:t.createElement(DM,null,"Y"),iconRight:t.createElement("span",null,"%"),onChange:function(e){return a(e,"y")}})))}var DM=Xu.div.withConfig({displayName:"IconText",componentId:"sc-19e3sbn-0"})(["display:flex;justify-content:center;width:24px;"]),MM=Xu.div.withConfig({displayName:"FlexInput",componentId:"sc-19e3sbn-1"})(["min-width:0;"]),FM=Xu(Af).withConfig({displayName:"StyledFlex",componentId:"sc-19e3sbn-2"})(["margin-bottom:",";"],ld.spacing2),LM=[{label:"Focus point",focus:"point",icon:t.createElement(Qw,null)},{label:"Override focus point",focus:"override",icon:t.createElement(rE,null)},{label:"Gravity",focus:"gravity",icon:t.createElement(hI,null)}];function RM(e){var n=e.type,r=e.gravity,i=e.onChangeGravity,s=e.onChangeFocus,l=e.focusPoint,c=e.showEditor,u=e.setShowEditor,d=mN(o(!1),2),p=d[0],f=d[1],h=mN(o(!1),2),m=h[0],g=h[1],v=mN(o(null),2),y=v[0],b=v[1];a((function(){var e,t,n;y||(l?(n=LM.find((function(e){return"override"===e.focus})),b(n),g(!0)):r?(t=LM.find((function(e){return"gravity"===e.focus})),b(t)):(e=LM.find((function(e){return"point"===e.focus})),b(e)))}),[l,r,y]);var x={gravity:"Select the direction from where the transformation is being applied.",override:"Select a new focus point by editing the percentages below or directly clicking on the asset with the editor.",point:"Uses the predefined focus point of the asset."};return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Focus",helpText:x[null==y?void 0:y.focus]||x.point},t.createElement(Tx,sN(sN({"aria-label":"Focus",onChange:function(e){var t="gravity"===e,n="override"===e,r="point"===e;u&&u({show:!1});var o=LM.find((function(t){return t.focus===e}));b(o),f(t),g(n),!n&&u&&u({show:!1}),r&&s(void 0),t?(i("center"),s(void 0)):i(null)}},y),{},{value:null==y?void 0:y.focus}),LM.map((function(e){return t.createElement(t.Fragment,{key:e.focus},"gravity"===e.focus?t.createElement(Tx.Divider,null):null,t.createElement(Tx.Item,{value:e.focus,icon:e.icon},e.label))})))),p&&t.createElement(oM,{label:"Gravity",gravity:r,onChange:i}),m&&t.createElement(t.Fragment,null,t.createElement(NM,{onChange:s,focusPoint:l}),u&&t.createElement(HM,{isChecked:c.type===n&&c.show,isDisabled:c.type&&c.type!==n,onChange:function(){c.type&&c.type!==n||u({type:c.show?void 0:n,show:!c.show})}},t.createElement(Af,{gap:"4",direction:"row",alignItems:"center"},t.createElement(cE,null),t.createElement("span",null,"Show real time editor")))))}var HM=Xu(Qg).withConfig({displayName:"StyledSwitch",componentId:"sc-18kzar2-0"})(["margin-top:",";"],ld.spacing5);function $M(e){var n=e.io,r=e.focuspoint,o=e.setShowEditor,i=e.showEditor,a=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(AM,{shape:n.path,onChange:function(e){return a({type:"path",payload:{value:e,id:n.id}})}}),"clippingpath"!==n.path&&t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(RM,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,showEditor:i,setShowEditor:o,type:"crop"})),"circle"===n.path&&t.createElement(XD,{label:"Blur",value:n.blur,min:0,max:100,onChange:function(e){return a({type:"blur",payload:{value:e,id:n.id}})}}))}function UM(e){return t.createElement(Ry,sN({},e),t.createElement("path",{d:"M4 5H20V7H4V5Z",fill:"#334E5C"}),t.createElement("path",{d:"M4 9H20V12H4V9Z",fill:"#334E5C"}),t.createElement("path",{d:"M20 14H4V19H20V14Z",fill:"#334E5C"}))}var VM=500;function WM(e){var n=e.io,r=RD().transformationsDispatch,o=PD(n.width);return t.createElement(t.Fragment,null,t.createElement(fM,{io:n}),t.createElement(ID,{label:"Border"},t.createElement(pg,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=BD(t,VM);r({type:"width",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(UM,null),iconRight:t.createElement("span",null,"px")})))}function qM(e){var n=e.io,r=e.focusPoint,o=e.setShowEditor,i=e.showEditor,a=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(UD,{width:n.width,height:n.height,id:n.id}),t.createElement(RM,{onChangeGravity:function(e){a({type:"gravity",payload:{value:e,id:n.id}})},onChangeFocus:function(e){a({type:"focuspoint",payload:{value:e,id:n.id}})},gravity:n.gravity,focusPoint:r,setShowEditor:o,showEditor:i,type:"fill"}))}function GM(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(XD,{label:vD(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return r({type:"amount",payload:{value:e,id:n.id}})}})}function YM(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(XD,{label:"Blur",min:0,max:100,value:n.radius,onChange:function(e){return r({type:"radius",payload:{value:e,id:n.id}})}})}function XM(e){var n=e.io;return t.createElement(fM,{io:n})}var KM=3e3;function ZM(e){var n=e.io,r=RD().transformationsDispatch,o=PD(n.padding);return t.createElement(ID,{label:"Padding"},t.createElement(Af,null,t.createElement(QM,null,t.createElement(pg,{placeholder:"1",onChange:function(e){var t=parseInt(e,10),o=BD(t,KM);r({type:"padding",payload:{value:o,id:n.id}})},value:o,icon:t.createElement(UM,null),iconRight:t.createElement("span",null,"px")}))))}var JM,QM=Xu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-13pc6c3-0"})(["min-width:0;margin-right:",";"],ld.spacing4);function eF(e){var n=e.io,r=RD().transformationsDispatch,o=null==rF?void 0:rF[n.transform];return t.createElement(ID,{label:"Flip"},t.createElement(tF,null,t.createElement(Tx,{"aria-label":"Flip",value:n.transform,onChange:function(e){r({type:"transformation",payload:{group:"transform",value:e,id:n.id}})},label:o.label,icon:o.icon},[xD.mirror,xD.flip].map((function(e){return t.createElement(Tx.Item,{value:e,key:e,icon:rF[e].icon},rF[e].label)})))))}var tF=Xu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-keyng0-0"})(["min-width:88px;margin-right:",";"],ld.spacing4),nF=Xu(EE).withConfig({displayName:"IconHorizontal",componentId:"sc-keyng0-1"})(["transform:rotate(90deg);"]),rF=(dN(JM={},xD.flip,{label:"Flip vertically",value:xD.flip,icon:t.createElement(EE,null)}),dN(JM,xD.mirror,{label:"Flip horizontally",value:xD.mirror,icon:t.createElement(nF,null)}),JM),oF=function(){var e=mN(o(""),2),t=e[0],n=e[1],r=function(){var e=uN(lN().mark((function e(){var t;return lN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,kB.getJWT();case 2:t=e.sent,n(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return a((function(){r()}),[]),function(){return t}},iF=function(e){if(!lF(e))throw new Error("The value is not a UUID: ".concat(e));return"".concat(e.substring(0,23)).concat(e.substring(24)).toUpperCase()},aF=function(e){var t=e.toLowerCase().split("-");return t.splice(3,1,t[3].substring(0,4),t[3].substring(4)),t.join("-")},sF=function(e){var t=e.match(/(.*)\?mediaId=(.*)/);return t?t[2]:""},lF=function(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)},cF=["format","io","focuspoint"],uF=["id"];function dF(e){var t,n,r=e.content,o=r.format,i=r.io,a=r.focuspoint,s=hN(r,cF),l=function(){return i.map((function(e){var t=hN(e,uF);return sN({},Object.entries(sN({},t)).reduce((function(e,t){var n=mN(t,2),r=n[0],o=n[1];return o||""===o?sN(sN({},e),{},dN({},r,o)):e}),{}))}))};return sN(sN({},Object.entries(e).reduce((function(e,t){var n=mN(t,2),r=n[0],o=n[1];return["description","groupId"].includes(r)||o&&""!==o?sN(sN({},e),{},dN({},r,o)):e}),{})),{},{content:JSON.stringify((t=a&&("string"==typeof a?a:"".concat(a[0]/100,",").concat(a[1]/100)),n=t?sN(sN({},s),{},{focuspoint:t}):s,sN(sN({},n),{},""===o?{io:l()}:{format:o,io:l()})))})}var pF={getImageInfo:function(e){return bM("/api/v4/media/"+e)},addPreset:function(e){return xM("/v7/dat/presets/add",dF(e))},addGroup:function(e){return xM("/v7/dat/presets/groups/add",{name:e.name})},getAllPresets:function(){return bM("/v7/dat/presets/")},updatePreset:function(e){return wM("/v7/dat/presets/update",dF(e))},updateGroup:function(e){return wM("/v7/dat/presets/groups/update",e)},deletePreset:function(e){return EM("/v7/dat/presets/delete",{data:{id:e}})},deletePresetGroup:function(e,t){return EM("/v7/dat/presets/groups/delete",{data:{id:e,includePresets:t}})}},fF="\n databaseId\n name\n url\n derivatives {\n thumbnail\n }";function hF(e){var n=e.io,r=RD().transformationsDispatch,i=mN(o(!1),2),s=i[0],l=i[1],c=mN(o(!1),2),u=c[0],d=c[1],p=mN(o({name:"",thumbnail:"",coldfusionUUID:""}),2),f=p[0],h=p[1],m=mN(o(void 0),2),g=m[0],v=m[1],y=n.asset&&n.asset.length&&""===f.thumbnail,b=oF();return a((function(){var e,t;y&&(e=n.asset,t=iF(e),d(!0),pF.getImageInfo(t).then((function(e){var n=e.name,r=e.thumbnails.mini;h({name:n,thumbnail:r,coldfusionUUID:t})})).finally((function(){d(!1)})))}),[y,n.asset]),a((function(){b()&&v({getAccessToken:b,hideLogout:!0})}),[b()]),t.createElement(ID,{label:"Image"},t.createElement(t.Fragment,null,t.createElement(mF,{className:QN,onClick:function(){return l(!0)},isSelected:!f.thumbnail.length},f.thumbnail.length||y?t.createElement(Sg,{variant:"content",imageUrl:f.thumbnail,backgroundColor:"rgb(255 255 255 / 0%)"},t.createElement(Sg.Overlay,{isLoading:u})):t.createElement(rp,{title:"Edit",icon:t.createElement(Mw,null)}),t.createElement(gF,null,t.createElement(vF,null,u?"Loading":f.name.length?f.name:"Choose asset"))),t.createElement(BT,{isOpen:s,onClose:function(){return l(!1)}},t.createElement(xO,{authentication:g},t.createElement(CB,{mode:"SingleSelectFile",language:document.querySelector("html").getAttribute("lang")||"en",assetTypes:["IMAGE"],selectedAssets:f.coldfusionUUID.length?[f.coldfusionUUID]:[],onSuccess:function(e){var t=e[0],o=t.url,i=t.derivatives.thumbnail,a=t.name,s=o||"",c=sF(s),u=i||s;l(!1),h({name:a,thumbnail:u,coldfusionUUID:c}),r({type:"asset",payload:{value:aF(c),id:n.id}})},assetFieldSelection:fF})))))}var mF=Xu.div.withConfig({displayName:"ItemContainer",componentId:"sc-bmwf6h-0"})(["padding:"," ",";display:flex;border-radius:",";align-items:center;background:",";&:hover{background:",";cursor:pointer;}"],ld.spacing3,ld.spacing4,ld.spacing3,(function(e){return e.isSelected&&ld.gray25}),ld.gray25),gF=Xu.div.withConfig({displayName:"ItemDetails",componentId:"sc-bmwf6h-1"})(["display:flex;flex-direction:column;flex:1;min-width:0;"]),vF=Xu.p.withConfig({displayName:"Title",componentId:"sc-bmwf6h-2"})(["font-size:",";line-height:",";color:",";padding:0px ",";margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"],ld.fontSize100,ld.lineHeightText,ld.gray800,ld.spacing4);function yF(e){var n,r=e.io,o=RD().transformationsDispatch;return t.createElement(ID,{label:"Opacity"},t.createElement(pg,{type:"number",placeholder:"100",onChange:function(e){var t=parseInt(e,10);o({type:"opacity",payload:{value:isNaN(t)?100:t,id:r.id}})},value:(null===(n=r.opacity)||void 0===n?void 0:n.toString())||"",iconRight:t.createElement("span",null,"%")}))}function bF(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(t.Fragment,null,t.createElement(hF,{io:n}),t.createElement(yF,{io:n}),t.createElement(oM,{label:"Position",gravity:n.gravity,onChange:function(e){return r({type:"gravity",payload:{value:e,id:n.id}})}}),t.createElement(ZD,{io:n}))}function xF(e){var n=e.color,r=e.onChange,i=e.onChangeValidation,a=mN(o(!0),2),s=a[0],l=a[1],c=function(e){var t=function(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,r){return t+t+n+n+r+r})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)return"";var r=parseInt(n[1],16).toString(),o=parseInt(n[2],16).toString(),i=parseInt(n[3],16).toString();return"(".concat(r,", ").concat(o,", ").concat(i,")")}(e);u(!!t),r(e)},u=function(e){l(e),i(e)};return t.createElement(Ug,{onChange:function(e){var t=e.substring(1);c(t.toUpperCase())},value:"#".concat(n),trigger:function(e){var r=pN({},(fN(e),e));return t.createElement(t.Fragment,null,t.createElement(pg,{isInvalid:!s,maxLength:6,value:null==n?void 0:n.toUpperCase(),prefix:"#",icon:t.createElement(lg,sN(sN({label:"Color Thumbnail"},r),{},{onClick:function(e){e.stopPropagation(),r.onClick()},icon:t.createElement(Sg,{variant:"content",backgroundColor:"#".concat(n),shape:"circle",size:"xs"})})),onChange:c}),!s&&t.createElement(Ly.HelperText,{isInvalid:!s},"Please type a valid hex value"))}})}function wF(e){var n=e.io,r=RD().transformationsDispatch;return t.createElement(ID,{label:"Color"},t.createElement(Af,null,t.createElement(EF,null,t.createElement(xF,{color:n.color,onChange:function(e){r({type:"color",payload:{value:e,id:n.id}})},onChangeValidation:function(e){r({type:"isValid",payload:e})}})),t.createElement(CF,null,t.createElement(pg,{type:"number",placeholder:"100",onChange:function(e){var t=isNaN(parseInt(e,10))?"0":e;r({type:"opacity",payload:{value:parseInt(t,10),id:n.id}})},value:n.opacity.toString(),iconRight:t.createElement("span",null,"%")}))))}var EF=Xu.div.withConfig({displayName:"FlexInputColor",componentId:"sc-lch2dr-0"})(["min-width:0;margin-right:",";"],ld.spacing4),CF=Xu.div.withConfig({displayName:"FlexInput",componentId:"sc-lch2dr-1"})(["min-width:0;"]);function kF(e){var n=e.io,r=e.focusPoint,o=e.showEditor,i=e.setShowEditor,a=RD().transformationsDispatch,s=["contrast","brightness","sharpness","saturation"].includes(n.filter),l=n.transform||n.overlay||n.filter;return t.createElement(t.Fragment,null,t.createElement(zD,{transformation:l,onChange:function(e){i&&i({show:!1}),a({type:"transformation",payload:{group:e.group,value:e.transformation,id:n.id}})}}),(n.transform===xD.flip||n.transform===xD.mirror)&&t.createElement(eF,{io:n}),(n.transform===xD.fit||n.transform===xD.scale)&&t.createElement(UD,{width:n.width,height:n.height,id:n.id}),n.transform===xD.fill&&t.createElement(qM,{io:n,focusPoint:r,setShowEditor:i,showEditor:o}),n.transform===xD.background&&t.createElement(XM,{io:n}),n.transform===xD.rotate&&t.createElement(ZD,{io:n}),n.transform===xD.border&&t.createElement(WM,{io:n}),n.transform===xD.extend&&t.createElement(zM,{io:n}),n.transform===xD.crop&&t.createElement($M,{io:n,focuspoint:r,setShowEditor:i,showEditor:o}),n.transform===xD.trim&&t.createElement(ZM,{io:n}),"text"===n.overlay&&t.createElement(TM,{io:n}),"image"===n.overlay&&t.createElement(bF,{io:n}),"box"===n.overlay&&t.createElement(wF,{io:n}),"blur"===n.filter&&t.createElement(YM,{io:n}),"opacity"===n.filter&&t.createElement(GM,{io:n}),s&&t.createElement(XD,{label:vD(n.filter),min:-100,max:100,value:n.amount,onChange:function(e){return a({type:"amount",payload:{value:e,id:n.id}})}}))}var SF=[{label:"Auto (recommended)",value:""},{label:"WebP",value:"webp"},{label:"JPG",value:"jpg"},{label:"PNG",value:"png"},{label:"AVIF",value:"avif"}],_F=[{label:"Very High",value:"95"},{label:"High",value:"85"},{label:"Medium (Auto)",value:"75"},{label:"Low",value:"65"}];function IF(e){var n,r,i=e.options,a=RD().transformationsDispatch,s="custom",l=mN(o(!1),2),c=l[0],u=l[1],d=(null===(n=SF.find((function(e){return e.value===i.format})))||void 0===n?void 0:n.label)||"Select Format",p=c?"Custom":(null===(r=_F.find((function(e){return e.value===String(i.quality)})))||void 0===r?void 0:r.label)||"Select Quality";return t.createElement(t.Fragment,null,t.createElement(ID,{label:"Format",helpText:"Set the output format"},t.createElement(Tx,{"aria-label":"Format",onChange:function(e){e===s?u(!0):a({type:"format",payload:e})},label:d,value:i.format},SF.map((function(e){return t.createElement(Tx.Item,{value:e.value,key:e.value},e.label)})))),t.createElement(ID,{label:"Quality"},t.createElement(Tx,{"aria-label":"Quality",onChange:function(e){var t=e===s;u(t);var n=t?100:Number(e);a({type:"quality",payload:n})},label:p,value:String(i.quality)},_F.map((function(e){return t.createElement(Tx.Item,{value:e.value,key:e.label},e.label)})),t.createElement(Tx.Divider,null),t.createElement(Tx.Item,{value:s,key:"Custom"},"Custom"))),c&&t.createElement(ID,{label:""},t.createElement(Ux,{value:i.quality,min:60,max:100,onChange:function(e){a({type:"quality",payload:Number(e)})},inputPosition:"right"})))}var TF=function(e){var n,r=e.showEditor,i=e.setShowEditor,a=mN(o([]),2),s=a[0],l=a[1],c=mN(o(!1),2),u=c[0],d=c[1],p=RD(),f=p.transformationsState,h=p.transformationsDispatch;return t.createElement(Mv,null,f.content.io.map((function(e,n){var o,a=s.includes(e.id),c=e.transform||e.overlay||e.filter,u=vD((o=c)===xD.mirror?xD.flip:o)||"New transformation",d=OF(e);return t.createElement(t.Fragment,{key:"".concat(e.id,"-").concat(n)},t.createElement(Mv.Item,{subtext:d,thumbnail:t.createElement(Sg,{variant:"clean",icon:t.createElement(ED,{type:c}),shape:"square"}),rightElements:t.createElement(jF,{isExpanded:a,onDeleteClick:function(t){i&&["fill","crop"].includes(c)&&i({show:!1}),function(e,t){e.stopPropagation(),h({type:"deleteTransformation",payload:{id:t}})}(t,e.id)}}),onClick:function(){return function(e){s.includes(e)?l((function(t){return t.filter((function(t){return t!==e}))})):l((function(t){return[].concat(gN(t),[e])}))}(e.id)}},u),a&&t.createElement(kF,{io:e,focusPoint:f.content.focuspoint,showEditor:r,setShowEditor:i,key:"".concat(e.id,"-transformation")}),t.createElement(Mv.Divider,{key:"".concat(e.id,"-divider")}))})),t.createElement(Mv.Item,{key:"add-button",onClick:function(){var e=TS();h({type:"addTransformation",payload:{id:e}}),l((function(t){return[].concat(gN(t),[e])})),i&&i({show:!1})},thumbnail:t.createElement(Sg,{icon:t.createElement(Mw,null),shape:"square"})},"Add transformation"),t.createElement(Mv.Divider,{key:"add-button-divider"}),t.createElement(Mv.Item,{key:"advanced-button",subtext:"Format: ".concat((null===(n=f.content)||void 0===n||null===(n=n.format)||void 0===n?void 0:n.toUpperCase())||"Auto"," • Quality: ").concat(f.content.quality),thumbnail:t.createElement(Sg,{variant:"clean",icon:t.createElement(ED,{type:"advanced"}),shape:"square"}),rightElements:u?t.createElement(yE,null):t.createElement(bE,null),onClick:function(){d(!u)}},"Output options"),u&&t.createElement(IF,{options:f.content,key:"advanced-options"}))},OF=function(e){var t="Focus Point";e.gravity&&(t=vD(e.gravity));var n=e.width&&e.height?"".concat(e.width," × ").concat(e.height," px "):"",r=t?"Focus: ".concat(t):"",o=e.color?"Color: #".concat(e.color):"",i=e.background?"Background: #".concat(e.background):"",a=e.path?"Shape: ".concat(e.path):"",s=e.blur?"Blur: ".concat(e.blur):"",l=e.amount?"Amount: ".concat(e.amount):"";switch(e.transform||e.filter){case"fill":return"".concat(n," ").concat(r&&n&&"• "+r);case"background":return o;case"border":return"".concat(o," • Width: ").concat(e.width,"px");case"crop":return"".concat(n," • ").concat(a," ").concat(i&&"• "+i," ").concat(s&&"• "+s);case"extend":return"".concat(n," ").concat(i&&"• "+i);case"fit":case"scale":return n;case"flip":return"Flip vertically";case"mirror":return"Flip horizontally";case"rotate":return"Angle: ".concat(e.angle||0,"°");case"opacity":case"contrast":case"brightness":case"blur":case"sharpness":case"saturation":return l;default:return""}},jF=function(e){var n=e.isExpanded,r=e.onDeleteClick;return t.createElement(Af,{alignItems:"center"},t.createElement(vh,{content:"Remove transformation"},t.createElement(rp,{variant:"clean",icon:t.createElement(Ew,{fill:ld.gray400a,onClick:r}),"aria-label":"Delete"})),n?t.createElement(yE,null):t.createElement(bE,null))};function zF(e){var n,r,o=e.showEditor,i=e.setShowEditor,a=null!==(n=null===(r=RD().transformationsState.content)||void 0===r||null===(r=r.io)||void 0===r?void 0:r.length)&&void 0!==n?n:0;return t.createElement(t.Fragment,null,t.createElement(BF,null,t.createElement(AF,null,"Transformations"),t.createElement(NF,null,1===a?"".concat(a," transformation applied"):a>1?"".concat(a," transformations applied"):"No transformations")),t.createElement(PF,null,t.createElement(TF,{showEditor:o,setShowEditor:i})))}var BF=Xu.div.withConfig({displayName:"TitleContainer",componentId:"sc-tlsynt-0"})(["padding-top:",";background-color:",";padding-bottom:",";position:absolute;width:100%;z-index:1;"],ld.spacing6,ld.white,ld.spacing4),PF=Xu.div.withConfig({displayName:"ListContainer",componentId:"sc-tlsynt-1"})(["margin-top:",";"],"76px"),AF=Xu.div.withConfig({displayName:"Title",componentId:"sc-tlsynt-2"})(["font-size:16px;line-height:20px;color:",";"],ld.gray800),NF=Xu.div.withConfig({displayName:"SubTitle",componentId:"sc-tlsynt-3"})(["font-size:14px;line-height:20px;color:",";"],ld.gray600),DF=function(){return t.createElement(FF,null,t.createElement(RF,null),t.createElement(HF,null,t.createElement($F,{large:!0}),t.createElement($F,null)))},MF=function(){return t.createElement(UF,null)},FF=Xu.div.withConfig({displayName:"LoaderContainer",componentId:"sc-1vpf7m8-0"})(["display:flex;align-items:center;padding:12px;"]),LF=Ju(["0%{background-color:","}100%{background-color:","}"],ld.gray50a,ld.gray100a),RF=Xu.div.withConfig({displayName:"ThumbnailLoader",componentId:"sc-1vpf7m8-1"})(["width:50px;height:50px;border-radius:4px;animation:"," 1s linear infinite alternate;"],LF),HF=Xu.div.withConfig({displayName:"ContentLoader",componentId:"sc-1vpf7m8-2"})(["display:flex;flex-direction:column;height:100%;margin-left:",";"],ld.spacing4),$F=Xu.div.withConfig({displayName:"Content",componentId:"sc-1vpf7m8-3"})(["height:10px;margin-bottom:",";width:",";border-radius:",";animation:"," 1s linear infinite alternate;"],ld.spacing3,(function(e){return e.large?"110px":"60px"}),ld.radiusSmall,LF),UF=Xu.div.withConfig({displayName:"LoadImageSkeleton",componentId:"sc-1vpf7m8-4"})(["width:240px;height:320px;animation:"," 1s linear infinite alternate;"],LF);function VF(e){var t=mN(o(),2),n=t[0],r=t[1];return a((function(){var t;(t=e,bM("/v7/featuretreatments/treatment/".concat(t))).then((function(e){r(e.treatment)})).catch((function(t){var n;r("control"),console.error("Something went wrong while fetching the ".concat(e," Split treatment"),t),n=t,ts().captureException(n,function(e){if(e)return function(e){return e instanceof Ga||"function"==typeof e}(e)||function(e){return Object.keys(e).some((e=>Fa.includes(e)))}(e)?{captureContext:e}:e}(undefined))}))}),[e]),n}var WF=function(e){var n=e.onPresetSelected,r=e.activeTab,o=e.presets,i=e.selectedPreset,s=e.isLoading,l=e.baseURL,c=e.canViewPresets,u=e.canViewTransformations,d=e.showEditor,p=e.setShowEditor,f=RD(),h=f.transformationsState,m=f.transformationsDispatch,g="on"===VF("dat_presets_grouping");return a((function(){var e,t,n,o=!(null!=h&&null!==(e=h.content)&&void 0!==e&&null!==(e=e.io)&&void 0!==e&&e.length)&&(null==h||null===(t=h.content)||void 0===t?void 0:t.quality)===AD.content.quality&&(null==h||null===(n=h.content)||void 0===n?void 0:n.format)===AD.content.format;r===wD.transformations&&o&&m({type:"init"})}),[r,m,h]),t.createElement(qF,{direction:"column"},r===wD.presets?c?s?t.createElement(t.Fragment,null,Array.from(Array(5).keys()).map((function(e){return t.createElement(DF,{key:"preset-skeleton-".concat(e)})}))):t.createElement(gD,{baseURL:l,presets:o,onPresetSelected:n,selectedPreset:i,presetGroupingActive:g}):null:u?t.createElement(GF,null,t.createElement(zF,{showEditor:d,setShowEditor:p})):null)},qF=Xu(Af).withConfig({displayName:"SidebarContainer",componentId:"sc-n1gktg-0"})(["width:336px;overflow-y:auto;overflow-x:hidden;background:",";flex:none;box-shadow:-1px 0px 0px rgba(0,34,51,0.1);height:100%;"],ld.white),GF=Xu.div.withConfig({displayName:"TransformationsContainer",componentId:"sc-n1gktg-1"})(["padding:0 ",";"],ld.spacing6);function YF(e){var n=e.url,r=l(null);return d((function(){r.current.scrollLeft=r.current.scrollWidth}),[n]),t.createElement(XF,null,t.createElement(KF,null,t.createElement(ZF,null,t.createElement(wE,null)),t.createElement(JF,{ref:r,onClick:function(){window.open(n,"_blank").focus()}},t.createElement(eL,null,n))),t.createElement(QF,null,t.createElement(vh,{content:"Copy URL"},t.createElement(IS.CopyToClipboard,{text:n,onCopy:function(){Sx({title:"Link copied to the clipboard",variant:"success"})}},t.createElement(rp,{variant:"clean",icon:t.createElement(Hw,null),"aria-label":"Copy to clipboard"}))),t.createElement(eD,{alwaysVisible:!0,presetURL:n})))}var XF=Xu.div.withConfig({displayName:"Container",componentId:"sc-ucc5ld-0"})(["height:50px;background-color:",";border-radius:",";display:flex;align-items:center;justify-content:space-between;box-shadow:",";min-width:0;min-height:0;"],ld.white,ld.radiusLarge,ld.elevationStatic),KF=Xu.div.withConfig({displayName:"SideContainer",componentId:"sc-ucc5ld-1"})(["display:flex;align-items:center;min-width:0;min-height:0;"]),ZF=Xu.div.withConfig({displayName:"PublicIconContainer",componentId:"sc-ucc5ld-2"})(["margin-left:",";margin-right:",";fill:",";"],ld.spacing5,ld.spacing4,ld.gray600),JF=Xu.div.withConfig({displayName:"LinkContainer",componentId:"sc-ucc5ld-3"})(["color:",";font-size:",";cursor:pointer;overflow:scroll;white-space:nowrap;width:100%;height:100%;display:flex;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;"],ld.gray800,ld.fontSize100),QF=Xu.div.withConfig({displayName:"ButtonsContainer",componentId:"sc-ucc5ld-4"})(["display:flex;width:100px;padding-right:",";"],ld.spacing2),eL=Xu.span.withConfig({displayName:"Link",componentId:"sc-ucc5ld-5"})(["display:flex;align-items:center;justify-content:center;height:100%;"]),tL=Xu.div.withConfig({displayName:"ImageWrapper",componentId:"sc-1w8edrw-0"})(["display:flex;justify-content:center;align-items:center;flex:1;min-height:0;position:relative;",";"],(function(e){return e.hideBottomBar&&qu(["margin-bottom:",";"],ld.spacing8)})),nL=Xu.img.withConfig({displayName:"Image",componentId:"sc-1w8edrw-1"})(["display:",";max-width:100%;max-height:100%;background:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(ld.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),rL=function(e,t){var n=mN(t,2),r=n[0],o=n[1],i=e.clientWidth*r/100,a=e.clientHeight*o/100;return[Math.ceil(i||0),Math.ceil(a||0)]},oL=function(e,t){var n=mN(t,2),r=n[0],o=n[1],i=r/e.clientWidth*100,a=o/e.clientHeight*100;return[Math.ceil(i||0),Math.ceil(a||0)]},iL=function(e){var t=e.point,n=e.renderedSize,r=e.background;if(n){var o=t-n/2,i=r-n;return o<0?0:o>i?i:o}},aL=Xu.div.withConfig({displayName:"DivStyled",componentId:"sc-1sqkkxm-0"})(["position:absolute;top:0;left:auto;right:auto;bottom:0;right:0;z-index:9;text-align:center;height:","px;width:","px;"],(function(e){return e.height||0}),(function(e){return e.width||0})),sL=Xu.img.withConfig({displayName:"StyledImage",componentId:"sc-1sqkkxm-1"})(["display:",";max-width:100%;max-height:100%;background:",";position:absolute;top:0;left:0;opacity:1;max-width:auto;max-height:auto;height:",";width:",";"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(ld.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px"),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),lL=Xu(aL).withConfig({displayName:"DraggableWrapper",componentId:"sc-1sqkkxm-2"})(["z-index:100;"]),cL=Xu(sL).withConfig({displayName:"PreviewImage",componentId:"sc-1sqkkxm-3"})(["visibility:",";top:","px;left:","px;"],(function(e){return e.displayNone?"hidden":"visible"}),(function(e){return e.top||0}),(function(e){return e.left||0})),uL=Xu.div.withConfig({displayName:"Wrapper",componentId:"sc-1sqkkxm-4"})(["display:flex;justify-content:center;text-align:center,position:relative;width:100%;background-color:#f1f1f1;"]),dL=Xu(iN).withConfig({displayName:"StyledDraggable",componentId:"sc-1sqkkxm-5"})(["position:absolute;top:0;bottom:0;left:0;right:0;"]),pL=Xu.img.withConfig({displayName:"StyledBackground",componentId:"sc-1sqkkxm-6"})(["display:",";max-width:100%;max-height:100%;background:",";opacity:0.5;display:block;"],(function(e){return e.isImageLoading?"none":"block"}),"repeating-conic-gradient(".concat(ld.gray100a," 0% 25%, transparent 0% 50%) 50% / 14px 14px")),fL=Xu.div.withConfig({displayName:"DivFocusPoint",componentId:"sc-1sqkkxm-7"})(["position:absolute;cursor:move;height:80px;width:80px;margin:-40px;user-select:none;"]),hL=Xu.div.withConfig({displayName:"StyledPreviewWrapper",componentId:"sc-1sqkkxm-8"})(["display:flex;justify-content:center;text-align:center;overflow:hidden;position:absolute;top:0;height:",";width:",";"],(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"})),mL=Xu(cL).withConfig({displayName:"FillPreview",componentId:"sc-1sqkkxm-9"})(["object-fit:cover;width:100%;height:100%;object-fit:contain;"]),gL=Xu(mL).withConfig({displayName:"FillPreviewInvisible",componentId:"sc-1sqkkxm-10"})(["visibility:hidden;opacity:0;"]),vL=Xu.div.withConfig({displayName:"FillPreviewWrapper",componentId:"sc-1sqkkxm-11"})(["position:absolute;background-image:url('","');background-size:cover;background-position:",";height:",";width:",";top:","px;left:","px;"],(function(e){return e.background}),(function(e){return e.backgroundPosition}),(function(e){var t=e.height;return t?t+"px":"auto"}),(function(e){var t=e.width;return t?t+"px":"auto"}),(function(e){return e.top||0}),(function(e){return e.left||0})),yL=Xu.div.withConfig({displayName:"EditorMainDiv",componentId:"sc-1sqkkxm-12"})(["position:relative;display:flex;justify-content:center;text-align:center;max-height:100%;width:100%;"]);function bL(){return t.createElement("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("circle",{cx:"40",cy:"40",r:"39.5",stroke:"white"}),t.createElement("circle",{cx:"1",cy:"1",r:"1",transform:"matrix(1 0 0 -1 39 41)",fill:"white"}))}function xL(e){var n=e.url,r=e.isLoading,i=e.backgroundSize,a=e.setIsLoading,s=e.trackPos,l=e.focuspoint,c=e.type,u=e.baseURL,d=mN(o({}),2),p=d[0],f=d[1],h=mN(o(!0),2),m=h[0],g=h[1],v=mN(l||[50,50],2),y=v[0],b=v[1],x=mN(rL(i,[y,b]),2),w=x[0],E=x[1],C=function(e){var t=e.backgroundSize,n=e.renderedImageSize,r=e.type,o=mN(e.focuspoint,2),i=o[0],a=o[1];if(!t.naturalHeight)return{top:0,left:0};if("crop"===r){var s=iL({point:i,renderedSize:n.clientWidth,background:t.clientWidth});return{top:iL({point:a,renderedSize:n.clientHeight,background:t.clientHeight}),left:s}}var l=t.naturalWidth/t.naturalHeight>n.naturalWidth/n.naturalHeight;return Math.ceil(n.naturalWidth/n.naturalHeight)===Math.ceil(t.naturalWidth/t.naturalHeight)?{top:0,left:0}:l?{top:0,left:i-n.clientWidth/2}:{top:a-n.clientHeight/2,left:0}}({type:c,backgroundSize:i,renderedImageSize:p,focuspoint:[w||0,E||0]}),k=C.top,S=C.left,_=function(e){a(!1),function(e){var t,n,r=e.backgroundSize,o=e.setRenderedImageSize,i=e.type,a=e.img.target,s=a.naturalHeight,l=a.naturalWidth,c=l/s;if("crop"===i)t=r.clientWidth*l/r.naturalWidth,n=r.clientHeight*s/r.naturalHeight;else{t=r.clientWidth;var u=l*(n=r.clientHeight)==s*t;n*l<t*s?t=Math.floor(n*c):u||(n=Math.floor(t/c))}o({clientWidth:t,clientHeight:n,naturalHeight:s,naturalWidth:l})}({img:e,setRenderedImageSize:f,backgroundSize:i,type:c})},I=void 0===y||void 0===b||void 0===k||void 0===S,T=function(e,t,n){return e<0?0:e<=t-n?e:t-n};return t.createElement(hL,{width:i.clientWidth,height:i.clientHeight},t.createElement(aL,{width:i.clientWidth,height:i.clientHeight},"crop"===c?t.createElement(cL,{isImageLoading:r||!m,displayNone:I,width:p.clientWidth,height:p.clientHeight,top:k,left:S,src:n,onLoad:_}):t.createElement(t.Fragment,null,t.createElement(gL,{isImageLoading:r&&!m,top:k,left:S,src:n,onLoad:_}),t.createElement(vL,{top:T(k,i.clientHeight,p.clientHeight),left:T(S,i.clientWidth,p.clientWidth),background:u,backgroundPosition:"-".concat(T(S,i.clientWidth,p.clientWidth),"px -").concat(T(k,i.clientHeight,p.clientHeight),"px"),height:p.clientHeight,width:p.clientWidth}))),t.createElement(lL,{width:i.clientWidth,height:i.clientHeight},t.createElement(dL,{bounds:"parent",position:{x:w,y:E},onStart:function(){a(!0),g(!1)},onStop:function(e,t){s(t),g(!0)}},t.createElement(fL,null,t.createElement(bL,null)))))}function wL(e,t){var n=[],r=e.content,o=r.io,i=r.format,a=r.quality,s=r.focuspoint;if(o.forEach((function(e){n.push(function(e){return{key:"io",value:Object.keys(e).filter((function(t){return"id"!==t&&null!==e[t]})).map((function(t){return"".concat(t,":").concat(e[t])})).join(",")}}(e))})),"string"==typeof s&&n.push({key:"focuspoint",value:s}),Array.isArray(s)){var l=mN(s,2),c=l[0],u=l[1];(c||u)&&n.push({key:"focuspoint",value:"".concat((c||50)/100,",").concat((u||50)/100)})}return i&&n.push({key:"format",value:i}),a&&a!==t.content.quality&&n.push({key:"quality",value:a.toString()}),n.map((function(e){var t=e.key,n=e.value;return"".concat(t,"=").concat(n)})).join("&")}function EL(e){var n=e.url,r=e.baseURL,s=e.isLoading,l=e.setIsLoading,c=e.type,u=e.defaultValues,d=RD(),p=d.transformationsState,f=d.transformationsDispatch,h=mN(o({}),2),m=h[0],g=h[1],v=mN(o(r),2),y=v[0],b=v[1],x=mN(o(!0),2),w=x[0],E=x[1],C=mN(o(!1),2),k=C[0],S=C[1],_=i((function(){return sN(sN({},p),{},{content:sN(sN({},p.content),{},{focuspoint:void 0,io:p.content.io.filter((function(e){var t=e.transform;return!["crop","fill"].includes(t)}))})})}),[p]);a((function(){var e=wL(_,u);b("".concat(r,"?").concat(e)),E(!1)}),[u,_,r]);var I=p.content.focuspoint;return t.createElement(yL,{className:"Editor Main"},t.createElement(uL,null,t.createElement(pL,{id:"backgroundImage",src:y||r,alt:"",isImageLoading:s||w,onLoad:function(e){var t=e.target,n=t.clientHeight,r=t.clientWidth,o=t.naturalHeight,i=t.naturalWidth;g({clientHeight:n,clientWidth:r,naturalHeight:o,naturalWidth:i}),k||S(!0)}}),k&&t.createElement(xL,{type:c,url:n,baseURL:y||r,isLoading:s,backgroundSize:m,setIsLoading:l,trackPos:function(e){var t=[e.x||0,e.y||0],n=mN(oL(m,t),2);!function(e){f({type:"focuspoint",payload:{value:e,id:p.content.io[0].id}})}([n[0]||0,n[1]||0])},focuspoint:I})))}function CL(e){var n=e.mediaInfo,r=e.url,s=e.canViewTransformations,c=e.hideBottomBar,u=e.activeTab,d=e.onBack,p=e.onDone,f=e.onApply,h=e.onShowTransformations,m=e.hasActiveChanges,g=e.showEditor,v=e.defaultValues,y=n.name,b=n.extension,x=n.baseURL,w=mN(o(!0),2),E=w[0],C=w[1],k=i((function(){return nD(r)}),[r]),S=l();return a((function(){var e;C(!0),null===(e=S.current)||void 0===e||e.blur()}),[r]),t.createElement(kL,null,t.createElement(SL,{justifyContent:"space-between",alignItems:"center"},t.createElement(_L,null,t.createElement(rp,{ref:S,variant:"clean",icon:t.createElement(Kw,null),"aria-label":"Go back",onClick:d})),t.createElement(TL,null,y,".",b),u===wD.presets&&s&&t.createElement(jL,{variant:"clean",onClick:h,icon:t.createElement(CD,null)},"Transform"),u===wD.transformations&&("function"==typeof f&&m?t.createElement(IL,null,t.createElement(jL,{variant:"primary",onClick:f},"Apply transformations")):t.createElement(jL,{variant:"primary",onClick:p},"Done"))),g.show?t.createElement(tL,{hideBottomBar:c},x&&t.createElement(EL,{type:g.type,baseURL:x,url:k,isLoading:E,setIsLoading:C,defaultValues:v})):t.createElement(tL,{hideBottomBar:c},r&&t.createElement(nL,{src:k,alt:"",isImageLoading:E,onLoad:function(){C(!1)}}),E&&t.createElement(MF,null)),!c&&t.createElement(OL,null,t.createElement(YF,{url:r})))}var kL=Xu.div.withConfig({displayName:"Container",componentId:"sc-dpw9jp-0"})(["display:flex;flex-direction:column;width:100%;height:100%;min-height:0;min-width:0;"]),SL=Xu(Af).withConfig({displayName:"TopbarContainer",componentId:"sc-dpw9jp-1"})(["height:90px;width:100%;"]),_L=Xu.div.withConfig({displayName:"ButtonBackContainer",componentId:"sc-dpw9jp-2"})(["margin-left:",";"],ld.layoutSpacing1),IL=Xu.div.withConfig({displayName:"TransformationButtonContainer",componentId:"sc-dpw9jp-3"})(["display:flex;gap:",";"],ld.spacing4),TL=Xu.span.withConfig({displayName:"ImageName",componentId:"sc-dpw9jp-4"})(["font-size:",";width:100%;line-height:24px;margin-left:",";"],ld.fontSize200,ld.spacing4),OL=Xu.div.withConfig({displayName:"BottomContainer",componentId:"sc-dpw9jp-5"})(["padding:",";"],ld.spacing5),jL=Xu(rp).withConfig({displayName:"TransformButton",componentId:"sc-dpw9jp-6"})(["float:right;margin-right:",";"],ld.layoutSpacing1),zL=["content"],BL=function(e){return e.content.io.map((function(e){return sN({},e)}))},PL=function(e){var t=e.preset,n=e.ioId;return sN(sN({},t),{},{content:sN(sN({},t.content),{},{io:[].concat(gN(BL(t)),[sN(sN({},ND),{},{id:n,transform:xD.fill})])})})},AL=function(e){var t=e.preset,n=e.ioId;return sN(sN({},t),{},{content:sN(sN({},t.content),{},{io:t.content.io.filter((function(e){return e.id!==n}))})})};function NL(e,t){var n;switch(t.type){case"init":return AD;case"edit":return sN(sN({isValid:!0},t.payload),{},{content:sN(sN({},t.payload.content),{},{io:t.payload.content.io.map((function(e){return sN(sN({},e),{},{id:TS()})}))})});case"addTransformation":return PL({preset:e,ioId:t.payload.id});case"deleteTransformation":return AL({preset:e,ioId:t.payload.id});case"isValid":case"name":case"description":return sN(sN({},e),{},(dN(n={},t.type,t.payload),dN(n,"content",sN(sN({},e.content),{},{io:BL(e)})),n));case"format":case"quality":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:BL(e)},t.type,t.payload))});case"focuspoint":return sN(sN({},e),{},{content:sN(sN({},e.content),{},dN({io:BL(e)},t.type,t.payload.value))});case"transformation":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},DL(t.payload.value)),{},dN({id:e.id},t.payload.group,t.payload.value))}))})});case"gravity":case"width":case"height":case"x":case"y":case"path":case"content":case"font":case"fontType":case"size":case"color":case"padding":case"angle":case"radius":case"amount":case"softness":case"background":case"blur":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value))}))})});case"opacity":case"asset":return sN(sN({},e),{},{content:sN(sN({},e.content),{},{io:e.content.io.map((function(e){return e.id!==t.payload.id?sN({},e):sN(sN({},e),{},dN({},t.type,t.payload.value.toString()))}))})});case"groupId":return sN(sN({},e),{},{groupId:t.payload});default:return e}}var DL=function(e){switch(e){case"fill":case"fit":case"scale":return sN(sN({},ND),{},{height:1e3,width:1e3});case"extend":return sN(sN({},ND),{},{height:1e3,width:1e3,background:"FFFFFF"});case"crop":return sN(sN({},ND),{},{height:1e3,width:1e3,path:"square"});case"background":return sN(sN({},ND),{},{color:"FFFFFF"});case"border":return sN(sN({},ND),{},{color:"FFFFFF",width:1});case"rotate":return sN(sN({},ND),{},{angle:0});case"opacity":return sN(sN({},ND),{},{amount:100});case"blur":return sN(sN({},ND),{},{radius:0});case"text":return sN(sN({},ND),{},{content:"Add Text Here",font:_D.name,size:64,color:"FFFFFFFF",gravity:"center",padding:20,angle:0});case"image":return sN(sN({},ND),{},{opacity:50,angle:0,gravity:"center"});case"box":return sN(sN({},ND),{},{color:"00AAFF",opacity:50});case"brightness":case"contrast":case"sharpness":case"saturation":return sN(sN({},ND),{},{amount:0})}};function ML(e){var n,r,i=e.mediaInfo,s=e.canViewPresets,c=e.canViewTransformations,u=e.hideBottomBar,d=void 0!==u&&u,f=e.initialTransformations,h=e.onDone,m=e.onApply,g=e.onBack,v=s?wD.presets:wD.transformations,y=mN(o(i.baseURL),2),b=y[0],x=y[1],w=mN(o(v),2),E=w[0],C=w[1],k=mN(o(""),2),S=k[0],_=k[1],I=mN(o({show:!1}),2),T=I[0],O=I[1],j=RD(),z=j.transformationsState,B=j.transformationsDispatch,P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=sN(sN({},AD),{},{content:sN(sN({},AD.content),{},{io:t})}),r=mN(o([]),2),i=r[0],s=r[1],c=mN(o({}),2),u=c[0],d=c[1],f=mN(o(!1),2),h=f[0],m=f[1],g=mN(p(NL,n),2),v=g[0],y=g[1],b=l(!0);a((function(){return e&&(m(!0),x()),function(){b.current=!1}}),[e]);var x=function(){pF.getAllPresets().then((function(e){b.current&&(s(function(e){var t,n,r=e.presets.map((function(e){var t=e.content;return sN(sN({},hN(e,zL)),{},{type:"Preset",content:t&&JSON.parse(t)})})),o=null!==(t=null==e||null===(n=e.groups)||void 0===n?void 0:n.map((function(e){return sN(sN({},pN({},(fN(e),e))),{},{type:"Group"})})))&&void 0!==t?t:[];return r.concat(o)}(e)),d(function(e){var t=e.groups.reduce((function(e,t){return sN(sN({},e),{},dN({},t.id,sN(sN({},t),{},{presetCount:0})))}),{});return e.presets.forEach((function(e){var n=e.groupId;if(n&&t[n]){var r=t[n].presetCount;t[n].presetCount=r+1}})),t}(e)),m(!1))})).catch((function(e){b.current&&(m(!1),Sx({title:e.toString(),variant:"error",isPersistent:!0}))}))};return{presetsOrGroups:i,setPresetsOrGroups:s,setGroups:d,groups:u,preset:v,dispatch:y,isLoading:h,defaultValues:n}}(s,f),A=P.presetsOrGroups,N=P.isLoading,D=P.defaultValues,M=i.baseURL.split("/"),F=M[M.length-1],L=z.content.io.length>0,R=uS((function(){var e=z.content.io.length>0,t=z.content.format!==AD.content.format||z.content.quality!==AD.content.quality;if(e||t){var n=wL(z,D);x("".concat(i.baseURL,"?").concat(n))}else x(i.baseURL)}),500);return a((function(){return R(),function(){return R.cancel()}}),[R,z,i.baseURL]),a((function(){var e,t;B({type:"focuspoint",payload:{value:[Math.floor(100*(null==i||null===(e=i.activeOriginalFocusPoint)||void 0===e?void 0:e.x)/i.width),Math.floor(100*(null==i||null===(t=i.activeOriginalFocusPoint)||void 0===t?void 0:t.y)/i.height)],id:void 0}})}),[null==i||null===(n=i.activeOriginalFocusPoint)||void 0===n?void 0:n.x,null==i||null===(r=i.activeOriginalFocusPoint)||void 0===r?void 0:r.y,i.height,i.width,B]),a((function(){s||c&&C(wD.transformations)}),[s,c]),t.createElement(FL,null,t.createElement(LL,{alignItems:"stretch"},t.createElement(CL,{mediaInfo:i,url:b,canViewTransformations:c,activeTab:E,onApply:m?function(){return m(b,z)}:void 0,onBack:function(){return g(b,z)},hasActiveChanges:L,onDone:function(){var e=!s&&!L;O&&O({show:!1}),e?h(b,z):s&&C(wD.presets)},onShowTransformations:function(){c&&C(wD.transformations)},hideBottomBar:d,showEditor:T,defaultValues:D}),t.createElement(WF,{onPresetSelected:function(e){""!==e?x(i.baseURL.split("/transform")[0]+"/transform/".concat(e,"/").concat(rD(i.baseURL),"/").concat(F)):(B({type:"init"}),x(i.baseURL)),_(e)},activeTab:E,presets:A,selectedPreset:S,isLoading:N,baseURL:i.baseURL,canViewPresets:s,canViewTransformations:c,setShowEditor:O,showEditor:T})))}var FL=Xu.div.withConfig({displayName:"MainWrapper",componentId:"sc-inplsu-0"})(["overflow:hidden;height:100%;width:100%;"]),LL=Xu(Af).withConfig({displayName:"StyledFlex",componentId:"sc-inplsu-1"})(["position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;"]);Xu(Kh).withConfig({displayName:"StyledCheckbox",componentId:"sc-bpy0n2-0"})(["padding-top:",";padding-bottom:",";"],ld.spacing3,ld.spacing3),Xu(Af).withConfig({displayName:"PresetNameIconContainer",componentId:"sc-1xqeu8r-0"})(["padding-left:",";"],(function(e){return e.belongsToAGroup?ld.spacing5:"0"})),Xu.div.withConfig({displayName:"DateContainer",componentId:"sc-1xqeu8r-1"})(["font-size:",";color:",";"],ld.fontSize75,ld.gray600),Xu.div.withConfig({displayName:"Name",componentId:"sc-1xqeu8r-2"})(["font-size:",";color:",";flex:1;"],ld.fontSize100,ld.gray800),Xu(Af).withConfig({displayName:"DescriptionContainer",componentId:"sc-1xqeu8r-3"})(["flex-direction:column;flex:1;padding:0 ",";"],ld.spacing4),Xu.div.withConfig({displayName:"Description",componentId:"sc-1xqeu8r-4"})(["font-size:",";color:",";"],ld.fontSize75,ld.gray600),Xu(Af).withConfig({displayName:"Actions",componentId:"sc-1xqeu8r-5"})(["margin-left:",";justify-content:end;"],ld.spacing4),Xu(Af).withConfig({displayName:"GroupNameIconContainer",componentId:"sc-1wo12bf-0"})([""]),Xu(Af).withConfig({displayName:"PresetGroupHeader",componentId:"sc-n34u1w-0"})(["z-index:1;position:sticky;z-index:1;top:var(--pageHeaderTopPosition);margin-bottom:",";padding:"," ",";background:",";"],ld.spacing7,ld.spacing5,ld.spacing6,ld.white),Xu(Af).withConfig({displayName:"PresetGroupHeaderTitle",componentId:"sc-n34u1w-1"})(["flex:1 0 0;align-self:stretch;height:40px;"]),Xu.label.withConfig({displayName:"HeaderText",componentId:"sc-n34u1w-2"})([""," min-width:200px;flex:1 0 0;"],Pf.uiTextL),Xu.header.withConfig({displayName:"Header",componentId:"sc-1ty8ai5-0"})(["position:sticky;z-index:1;top:var(--pageHeaderTopPosition);display:flex;gap:",";justify-content:space-between;align-items:center;margin-bottom:",";padding:"," ",";background:",";"],ld.spacing4,ld.spacing7,ld.spacing5,ld.spacing6,ld.white),Xu.h3.withConfig({displayName:"Title",componentId:"sc-1ty8ai5-1"})([""," margin:0;"],Pf.uiTextL);var RL=Xu.p.withConfig({displayName:"Text",componentId:"sc-17jdf49-0"})([""," color:",";margin:0;"],Pf.uiTextS,ld.gray800a);Xu(RL).withConfig({displayName:"SubTitle",componentId:"sc-17jdf49-1"})([""," font-weight:bold;margin:0;margin-bottom:0;"],Pf.uiTextS),Xu(RL).withConfig({displayName:"Title",componentId:"sc-17jdf49-2"})([""," font-weight:bold;margin:0;margin-bottom:",";"],Pf.uiTextS,ld.spacing3),Xu.p.withConfig({displayName:"TransparentText",componentId:"sc-17jdf49-3"})([""," color:",";margin-bottom:",";margin-top:",";height:20px;"],Pf.uiTextS,ld.gray400a,ld.spacing1,ld.spacing1),Xu.div.withConfig({displayName:"TitleIconWrapper",componentId:"sc-17jdf49-4"})(["display:flex;align-items:center;display:flex;padding:"," 0px;"],ld.spacing3);var HL,$L,UL,VL,WL,qL,GL,YL,XL,KL,ZL,JL=function(e){return Xu(e).withConfig({componentId:"sc-17jdf49-5"})(["margin-right:",";width:12px;height:12px;color:",";"],ld.spacing3,ld.gray800a)};function QL(){return(QL=uN(lN().mark((function e(t){var n;return lN().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=2;break;case 2:return e.prev=2,e.next=5,kB.getJWT();case 5:if(n=e.sent){e.next=8;break}return e.abrupt("return",t);case 8:return e.abrupt("return",sN(sN({},t),{},{headers:sN(sN({},t.headers),{},{Authorization:"Bearer ".concat(n)})}));case 11:return e.prev=11,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 14:case"end":return e.stop()}}),e,null,[[2,11]])})))).apply(this,arguments)}Xu(Af).attrs((function(){return{justifyContent:"space-between",alignItems:"center",gap:"1"}})).withConfig({displayName:"StyledFlex",componentId:"sc-17jdf49-6"})(["margin:0;padding:0;height:20px;margin-bottom:",";","{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;}"],ld.spacing1,RL),Xu.div.withConfig({displayName:"ButtonWrapper",componentId:"sc-17jdf49-7"})(["margin:"," 0 0 0;display:flex;justify-content:center;"],ld.spacing5),Xu.div.withConfig({displayName:"MainWrapper",componentId:"sc-17jdf49-8"})(["margin-bottom:",";"],ld.spacing7),function(e){e.totalViews="Total views",e.website="Website",e.datPresets="DAT Presets",e.transformations="Transformations",e.typeOfUrl="Type of URL"}(HL||(HL={})),function(e){e.table="table",e.graph="graph"}($L||($L={})),function(e){e.timestamp="timestamp",e.website="website",e.transformation="transformation",e.preset="preset"}(UL||(UL={})),function(e){e.views="views",e.use="use"}(VL||(VL={})),function(e){e.viewsOverTime="viewsOverTime",e.websitesOverTime="websitesOverTime",e.transformations="transformations",e.presets="presets"}(WL||(WL={})),yM.interceptors.request.use((function(e){return function(e){return QL.apply(this,arguments)}(e)}),(function(e){return Promise.reject(e)})),dN(qL={},WL.viewsOverTime,""),dN(qL,WL.websitesOverTime,"&aggregation=website"),dN(qL,WL.transformations,"&aggregation=transformations"),dN(qL,WL.presets,"&aggregation=presets"),Xu.div.withConfig({displayName:"TooltipGuide",componentId:"sc-ikpb3e-0"})(["width:10px;height:10px;postion:absolute;top:","px;left:","px;"],(function(e){return e.top||0}),(function(e){return e.left||0})),Xu.div.withConfig({displayName:"Wrapper",componentId:"sc-1eva1zc-0"})(["height:350px;width:100%;max-width:",";position:relative;"],(function(e){return e.maxWidth||"auto"})),HL.totalViews,dN(GL={},WL.websitesOverTime,{sortingColumn:VL.views,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.transformations,{sortingColumn:VL.use,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.viewsOverTime,{sortingColumn:UL.timestamp,isAscending:!1,dateFiltering:{interval:"months"}}),dN(GL,WL.presets,{sortingColumn:VL.views,isAscending:!1,dateFiltering:{interval:"months"}}),function(e){e.metricType="Metric Type",e.visualization="Visualization",e.metricsModal="Metrics Modal",e.statisticsTab="Statistics Tab"}(YL||(YL={})),function(e){e.selected="Selected",e.opened="Opened",e.closed="Closed"}(XL||(XL={})),dN(KL={},WL.viewsOverTime,{key:UL.timestamp,value:VL.views}),dN(KL,WL.websitesOverTime,{key:UL.website,value:VL.views}),dN(KL,WL.transformations,{key:UL.transformation,value:VL.use}),dN(KL,WL.presets,{key:UL.preset,value:VL.views}),dN(ZL={},UL.timestamp,"Month"),dN(ZL,UL.website,"Website"),dN(ZL,UL.transformation,"Transformation"),dN(ZL,UL.preset,"Preset"),dN(ZL,VL.views,"Views"),dN(ZL,VL.use,"Usage"),Xu.div.withConfig({displayName:"Container",componentId:"sc-12s3spg-0"})(["display:flex;flex:none;flex-grow:1;flex-direction:column;gap:",";align-items:flex-start;order:0;padding:"," 0;"],ld.spacing2,ld.spacing5),Xu.div.withConfig({displayName:"ItemsRow",componentId:"sc-12s3spg-1"})(["display:flex;flex:none;flex-grow:0;flex-direction:row;gap:",";align-items:flex-start;order:0;height:68px;padding:0 ",";border-radius:5px;"],ld.spacing2,ld.spacing5);var eR=Xu.div.withConfig({displayName:"ItemUnselected",componentId:"sc-12s3spg-2"})(["flex:none;flex-grow:1;order:0;width:",";height:68px;border-radius:5px;background:",";cursor:pointer;&:hover{background-color:",";color:",";}",""],(function(e){return 3===e.itemsPerRow?"165px":"123px"}),ld.gray25,ld.gray50,ld.gray800,(function(e){return e.isDotted?"\n\t\t::after {\n\t\t\tcontent: '.';\n\t\t\tposition: relative;\n\t\t\tbottom: ".concat(ld.spacing5,";\n\t\t\tdisplay: grid;\n\t\t\twidth: 4px;\n\t\t\theight: 4px;\n\t\t\tpadding: 0;\n\t\t\tborder-radius: 4px;\n\t\t\tbackground: #09f;\n\t\t\tcolor: #09f0;\n\t\t\tleft: ").concat(3===e.itemsPerRow?"80px":"60px",";\n\t\t}\n\t"):""}));Xu(eR).withConfig({displayName:"ItemSelected",componentId:"sc-12s3spg-3"})(["background:",";color:",";&:hover{background-color:",";color:",";}",""],ld.blue500,ld.white,ld.blue600,ld.white,(function(e){return e.isDotted?"\n\t::after {\n\t\tbackground: ".concat(ld.white,";\n\t}\n\t"):""})),Xu(eR).withConfig({displayName:"ItemInBetween",componentId:"sc-12s3spg-4"})(["background:",";color:",";&:hover{background-color:",";}"],ld.blue100,ld.gray800,ld.blue200),Xu.div.withConfig({displayName:"ItemText",componentId:"sc-12s3spg-5"})(["position:relative;display:flex;flex-direction:column;align-items:center;height:40px;padding-top:14px;padding-bottom:14px;"," letter-spacing:0.01em;text-align:center;"],Pf.uiTextM),Xu.div.withConfig({displayName:"StyledContainer",componentId:"sc-zdosa4-0"})(["min-width:500px;.rdp-months{display:flex;gap:16px;}"]),Xu(Af).withConfig({displayName:"FooterContainer",componentId:"sc-zdosa4-1"})(["margin-top:",";"],ld.spacing4),Xu((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 8c0 1.1-.9 2-2 2a1.7 1.7 0 01-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56A1.7 1.7 0 0119 8c0-1.1.9-2 2-2s2 .9 2 2z"}}]})(e)})).withConfig({displayName:"GraphIcon",componentId:"sc-1a1xt2-0"})(["width:22px;"]),Xu((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 8h-6V5h6v6zm-8-6v6H5V5h6zm-6 8h6v6H5v-6zm8 6v-6h6v6h-6z"}}]})(e)})).withConfig({displayName:"TableIcon",componentId:"sc-1a1xt2-1"})(["width:18px;height:18px;"]);var tR=Xu(rp).withConfig({displayName:"ButtonGroupButton",componentId:"sc-1a1xt2-2"})(["display:flex;flex-direction:row;justify-content:center;width:46px;height:36px;border-radius:",";align-items:center;padding:0px 10px;"],ld.radiusMedium);Xu(tR).withConfig({displayName:"ActiveButtonGroupButton",componentId:"sc-1a1xt2-3"})(["background:",";box-shadow:",";"],ld.gray10,ld.elevationStatic),Xu.div.withConfig({displayName:"ButtonGroup",componentId:"sc-1a1xt2-4"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";gap:",";width:98px;height:",";background:",";border-radius:",";"],ld.spacing1,ld.spacing1,ld.spacing8,ld.gray50a,ld.radiusLarge),Xu.div.withConfig({displayName:"Left",componentId:"sc-1a1xt2-5"})(["display:flex;flex-direction:row;align-items:center;padding:0;gap:",";height:",";"],ld.spacing3,ld.spacing8),Xu(Af).withConfig({displayName:"Filters",componentId:"sc-1a1xt2-6"})(["padding:"," "," "," 0;height:56px;"],ld.spacing3,ld.spacing6,ld.spacing3),Xu.div.withConfig({displayName:"StyledDropdown",componentId:"sc-1a1xt2-7"})(["& > div{z-index:1;}"]),Zu(["#layers > div{z-index:1032;}"]),Xu.div.withConfig({displayName:"Wrapper",componentId:"sc-iweq3l-0"})(["padding:"," 0 0 0;"],ld.spacing6),ld.blue900,ld.blue100,ld.blue500,ld.teal500,ld.purple500,ld.magenta500,ld.yellow500,ld.teal700,ld.magenta300,ld.purple300,Xu.div.withConfig({displayName:"WebsiteContainer",componentId:"sc-lus667-0"})(["color:#99a7ad;"]),Xu.div.withConfig({displayName:"ViewsContainer",componentId:"sc-lus667-1"})(["color:#ffffff;"]),Xu.div.withConfig({displayName:"TooltipContainer",componentId:"sc-lus667-2"})(["flex-direction:column;align-items:flex-start;padding:8px 12px;gap:8px;background:rgba(0,34,51,0.9);box-shadow:0px 0px 1px rgba(0,34,51,0.1),0px 2px 4px -1px rgba(0,34,51,0.1);border-radius:5px;flex:none;order:1;flex-grow:0;z-index:1;"]),Xu.i.withConfig({displayName:"Icon",componentId:"sc-24wsyz-0"})(["padding:0;margin:0;display:inline-block;width:16px;height:16px;background:",";"],(function(e){return e.color})),Xu.div.withConfig({displayName:"Wrapper",componentId:"sc-24wsyz-1"})(["padding:",";min-width:240px;"],ld.spacing4),Xu.div.withConfig({displayName:"MinHeightDiv",componentId:"sc-gqtbev-0"})(["min-height:488px;"]),Xu.span.withConfig({displayName:"BoldVerticalNavTitle",componentId:"sc-16u0rfh-0"})(["font-weight:600;"]),Xu.div.withConfig({displayName:"DivWithBottomPadding",componentId:"sc-16u0rfh-1"})(["margin-bottom:",";"],ld.spacing6),JL(cE),JL((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z"}}]})(e)})),JL((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"}}]})(e)})),JL((function(e){return Hf({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"}}]})(e)}));function nR(e){var n,r=e.transformBaseUrl,i=e.assetName,s=e.extension,l=e.transformation,c=e.setTransformation,u=e.closeDat,d=ll(),p=o(),f=p[0],h=p[1],g=o(),v=g[0],y=g[1];a((function(){var e=d.querySelector(".cv-root");e&&h(e)}),[d]);var b=function(e,t){e&&l&&c({url:e,preset:t,asset:l.asset}),u()},x=function(e,t){E(t)&&l?y({url:e,preset:t,asset:l.asset}):b(e,t)},w=function(){return y(void 0)},E=function(e){return e.content.io.length>0};return f?m(t.createElement(iR,null,t.createElement(aR,{mediaInfo:{extension:s,baseURL:r,name:i,width:1,height:1},canViewPresets:!1,canViewTransformations:!0,hideBottomBar:!0,onApply:b,onDone:x,onBack:x,initialTransformations:null===(n=null==l?void 0:l.preset)||void 0===n?void 0:n.content.io}),t.createElement(Ab,{isOpen:!!v,title:"Transformations not yet applied",container:f,onClose:w,actionPrimary:t.createElement(rp,{variant:"primary",onClick:function(){b(null==v?void 0:v.url,null==v?void 0:v.preset),w()}},"Apply transformations"),actionSecondary:t.createElement(rp,{variant:"secondary",onClick:w},"Cancel"),actionTertiary:t.createElement(rp,{variant:"secondary",onClick:function(){c(void 0),w(),u()}},"Discard changes")},"Transformations not yet applied. Do you want to apply transformations now, or discard changes?")),f):null}var rR,oR,iR=Xu.div(rR||(rR=Ks(["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"],["\n\tbackground-color: ",";\n\tz-index: 999999;\n\toverflow: hidden;\n\tborder-radius: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tbox-shadow: 0 2px 12px 0 rgba(0, 34, 51, 0.1);\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tleft: 0;\n\tright: 0;\n"])),ld.white,ld.radiusBase),aR=Xu((function(e){return t.createElement(HD,null,t.createElement(ML,sN({},e)))}))(oR||(oR=Ks(["\n\theight: 100%;\n\twidth: 100%;\n"],["\n\theight: 100%;\n\twidth: 100%;\n"]))),sR=n(null);function lR(e){var n=o(),r=n[0],a=n[1],s=o(""),l=s[0],c=s[1],u=o(""),d=u[0],p=u[1],f=o(""),h=f[0],m=f[1],g=function(e,t,n){c(e),m(n),p(t.extensions[0]||""),a((function(n){return{preset:(null==n?void 0:n.asset.id)===t.id?n.preset:void 0,url:e,asset:t}}))},v=i((function(){return{transformation:r,setTransformation:a,openDat:g,closeDat:function(){return c("")}}}),[r]);return t.createElement(sR.Provider,{value:v},e.children,l&&t.createElement(nR,{transformBaseUrl:l,assetName:h,extension:d,transformation:r,setTransformation:a,closeDat:function(){return c("")}}))}function cR(){var e=r(sR);if(null===e)throw new Error("useTransformations must be used with a DatProvider");return e}function uR(e){var n,r,i,s,l=e.transformBaseUrl,c=e.asset,u=e.toggleDropdown,d=cR(),p=d.transformation,f=d.openDat,h=o(),m=h[0],g=h[1],v=null!==(s=null===(i=null===(r=null===(n=null==p?void 0:p.preset)||void 0===n?void 0:n.content)||void 0===r?void 0:r.io)||void 0===i?void 0:i.length)&&void 0!==s?s:0;return a((function(){if(p){var e=p.url,t="io=transform:fill,width:40,height:40";e.includes("io=transform:fill")&&g(e.replace(/io=transform:fill,width:[0-9]+,height:[0-9]+/,t)),g("".concat(e,"&").concat(t))}}),[p]),l?t.createElement(t.Fragment,null,t.createElement(Mv.Divider,null),t.createElement(pR,{thumbnail:p&&0!==v?t.createElement(Sg,{variant:"content",imageUrl:m,"data-testid":"thumbnail-image"}):t.createElement(Sg,{icon:t.createElement(nE,null),"data-testid":"crop-icon"}),rightElements:t.createElement(CE,null),onClick:function(){u(),f(l,c,c.name)},subtext:p&&v>0?"".concat(v," transformation").concat(1===v?"":"s"):""},"New transformation")):null}var dR,pR=Xu(Mv.Item)(dR||(dR=Ks(["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"],["\n\tmax-width: 100%;\n\twidth: 340px;\n\tmargin-left: 0;\n"]))),fR=n(null);function hR(e){var n=o([]),r=n[0],s=n[1],l=o(),c=l[0],u=l[1],d=function(e){var t=this,n=o([]),r=n[0],i=n[1],s=Ds(),l=s.selectionMode,c=s.language,u=s.noCache,d=JC(),p=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==l&&(n=n[0]?[n[0]]:[]),r=n,Gs(t,void 0,void 0,(function(){var e,t,n;return Ys(this,(function(o){switch(o.label){case 0:return r.length?[4,ak({ids:r,auth:d,language:c,noCache:u})]:[3,2];case 1:e=o.sent(),p||WE(e)||(null===(t=e.value)||void 0===t||t.sort((function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)})),i(null!==(n=e.value)&&void 0!==n?n:[])),o.label=2;case 2:return[2]}}))}))}var r;return function(){p=!0}}),[e]),r}(c),p=Fs(),f=cR().transformation;function h(){s([])}function m(e){s((function(t){var n=e.filter((function(e){return!mR(t,e)}));return Xs(Xs([],t,!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function g(e){var t;"MultiSelect"!==p?(t=e[0],r.some((function(e){return e.value.id===t.id}))?s([]):s([{type:"asset",value:t}])):s((function(t){var n=e.filter((function(e){return!mR(t,e)})),r=e.filter((function(e){return mR(t,e)}));return Xs(Xs([],t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),!0),n.map((function(e){return{type:"asset",value:e}})),!0)}))}function v(e){s((function(t){return mR(t,e)?t.filter((function(t){return t.value.id!==e.id})):Xs(Xs([],t,!0),[{type:"collection",value:e}],!1)}))}a((function(){var t;u((null!==(t=e.preselectedAssetIds)&&void 0!==t?t:[]).filter((function(e){return!!e})).map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){m(d)}),[d]),a((function(){f&&(h(),m([null==f?void 0:f.asset]))}),[f]);var y=i((function(){return{selection:r,preselectedAssetIds:c,clear:h,selectAssets:m,toggleAssets:g,toggleCollection:v}}),[r]);return t.createElement(fR.Provider,{value:y},e.children)}function mR(e,t){return e.some((function(e){return e.value.id===t.id}))}function gR(){var e=r(fR);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function vR(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,l=Fs(),c=Qs()[1],u=gR(),d=Ds().hideExternalAccess;return t.createElement("div",{id:r.id,style:s,className:IE("m-2 w-56 self-start group relative",n,i&&"fade-in-down")},t.createElement(Uh,{contextAction:!d&&t.createElement(Uh.ContextActionButton,{"aria-label":nw("Open in new tab"),onClick:function(){window.open(r.url,"_blank")}},t.createElement(jw,null)),selectButtonAriaLabel:nw(a?"Deselect":"Select"),onSelect:"MultiSelect"===l?function(e){e.stopPropagation(),u.toggleCollection(r)}:void 0,isSelected:a,onClick:function(){return c({page:"collection",collection:r})},"aria-selected":a,"data-testid":"asset-card"},t.createElement(Uh.Frame,null,t.createElement(Uh.Images,null,r.thumbnailUrls.slice(0,3).map((function(e){return t.createElement(Uh.Img,{key:e,src:e,alt:r.name})})))),t.createElement(Uh.Header,{title:r.name,"data-testid":"asset-name"}),t.createElement("div",{className:"pl-4 pb-3 -mt-1 text-sm text-body-400"},ME(r.assetCount,nw("{} asset"),nw("{} assets")))))}function yR(e){var t=o(void 0),n=t[0],r=t[1],i=l(void 0);function s(t){void 0!==i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame((function(){var n=null!=t?t:e;if(null!==n){var o=n.getBoundingClientRect();r({width:o.width,height:o.height,scrollWidth:n.scrollWidth})}}))}return a((function(){s();var e=function(){return s()};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e),i.current&&cancelAnimationFrame(i.current)}}),[e]),{dimensions:n,remeasure:s}}function bR(e){var n=Xx(),r=n[0],o=n[1];return a((function(){o&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[o]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:r,"data-testid":"loading-element"},t.createElement(FC,{className:IE(!o&&"hidden")})))}function xR(){return t.createElement("svg",{viewBox:"0 5 60 82",className:"h-20"},t.createElement("defs",null,t.createElement("filter",{x:"-1.7%",y:"-1.2%",width:"103.3%",height:"105%",filterUnits:"objectBoundingBox",id:"prefix__a"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("filter",{x:"-5%",y:"-5%",width:"110%",height:"120%",filterUnits:"objectBoundingBox",id:"prefix__c"},t.createElement("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0",in:"shadowOffsetOuter1"})),t.createElement("path",{d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z",id:"prefix__b"}),t.createElement("path",{d:"M40 5l20 20H45a5 5 0 01-5-5V5z",id:"prefix__d"})),t.createElement("g",{fill:"none",fillRule:"evenodd"},t.createElement("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t.createElement("g",{fillRule:"nonzero"},t.createElement("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t.createElement("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}function wR(e){return t.createElement(TR,null,t.createElement(OR,null,t.createElement(xR,null),t.createElement(jR,null)),t.createElement(zR,null,nw("No results found")),t.createElement(BR,null,nw("Try adjusting the filter to find assets.")),t.createElement(PR,null,t.createElement(rp,{variant:"primary",title:nw("Reset filters"),onClick:e.onReset},nw("Reset filters"))))}var ER,CR,kR,SR,_R,IR,TR=Xu.div(ER||(ER=Ks(["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\twidth: 100%;\n\theight: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n"]))),OR=Xu.div(CR||(CR=Ks(["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"],["\n\tbackground-color: ",";\n\tborder-radius: 50%;\n\twidth: 160px;\n\theight: 160px;\n\tdisplay: flex;\n\tjustify-content: center;\n\talign-items: center;\n"])),ld.gray25),jR=Xu(Bw)(kR||(kR=Ks(["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"],["\n\tposition: absolute;\n\tmargin: "," 0 0 1px;\n\tcolor: ",";\n\twidth: 36px;\n\theight: 36px;\n"])),ld.spacing2,ld.gray300),zR=Xu.h1(SR||(SR=Ks(["\n\tmargin-top: ",";\n\tfont-size: ",";\n"],["\n\tmargin-top: ",";\n\tfont-size: ",";\n"])),ld.spacing6,ld.fontSize400),BR=Xu.span(_R||(_R=Ks(["\n\tmargin-top: ",";\n\tcolor: ",";\n"],["\n\tmargin-top: ",";\n\tcolor: ",";\n"])),ld.spacing5,ld.colorTextDisabled),PR=Xu.div(IR||(IR=Ks(["\n\tmargin-top: ",";\n"],["\n\tmargin-top: ",";\n"])),ld.spacing7);function AR(e){var n,r,i=o(null),a=i[0],s=i[1],l=yR(a).dimensions,c=gR().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=rl().setSearch,d=e.connection,p=d.data,f=d.isLoading,h=d.loadMore,m=d.hasNextPage,g=void 0!==l?Math.ceil(l.height/184):0,v=void 0!==l?Math.round((l.width-32)/204):0;return t.createElement("div",{role:"listbox",className:"card-list",ref:function(e){s(e)}},("Failure"===p.tag||"Loading"===p.tag&&!p.value)&&t.createElement(RE,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"},FE)}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(wR,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(bR,{hasNextPage:m,isLoading:f,loadMore:h},null===(r=p.value)||void 0===r?void 0:r.collections.nodes.map((function(e,n){return t.createElement(vR,{key:e.id,isSelected:c.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}var NR="\nquery getCollections($searchTerm: String, $orderBy: CollectionOrder!, $after: Cursor) {\n collections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\n nodes {\n id\n name\n assetCount\n thumbnailUrls\n url\n }\n totalCount\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";function DR(){var e=ol("collections"),n=e.value,r=e.setIsLoading,i=function(e,t){var n,r=this;void 0===t&&(t=!1);var i=JC(),s=o({tag:"Loading",value:null}),l=s[0],c=s[1],u=!1,d=function(n){return Gs(r,void 0,void 0,(function(){var r,o,a;return Ys(this,(function(s){switch(s.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),r=Ws(Ws({},e),{searchTerm:null!==(a=e.searchTerm)&&void 0!==a?a:null,after:null!=n?n:null}),[4,JE({query:NR,variables:r,auth:i,noCache:t})];case 1:return o=s.sent(),u||(WE(o)?c({tag:"Failure",value:o.error}):p(o,n)),[2]}}))}))},p=function(e,t){f()&&t?c((function(t){var n,r,o=null!==(r=null===(n=f(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{collections:Ws(Ws({},e.value.collections),{nodes:Xs(Xs([],o,!0),e.value.collections.nodes,!0)})}}})):c({tag:"Loaded",value:e.value})},f=function(e){var t,n=null!=e?e:l;if("Failure"!==n.tag)return null===(t=n.value)||void 0===t?void 0:t.collections};return a((function(){return d(),function(){u=!0}}),[e.searchTerm,e.orderBy]),{data:l,executeQuery:function(){return d()},isLoading:!l||"Loading"===l.tag,loadMore:function(){var e;return d(null===(e=f())||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(n=f())||void 0===n?void 0:n.pageInfo.hasNextPage)}}({searchTerm:n,orderBy:Us("collections")[0]},Ds().noCache);return a((function(){i.isLoading||r(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(xw,{error:new Error(i.data.value),onRetry:i.executeQuery}):t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto"},t.createElement("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},i.data.value&&t.createElement("span",{className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},ME(i.data.value.collections.totalCount,nw("{} collection"),nw("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(AE,{options:["CREATED_AT","NAME"]}),t.createElement(kE,null)),t.createElement(AR,{connection:i}))}var MR=n(null);function FR(e){var n=e.children,r=e.hideLimitedUse,s=void 0!==r&&r,l=e.predefinedFilter,c=o((null==l?void 0:l.assetType_in)?Xs([],null==l?void 0:l.assetType_in,!0):[]),u=c[0],d=c[1],p=o([]),f=p[0],h=p[1],m=o((null==l?void 0:l.tagNames_in)?Xs([],l.tagNames_in,!0):[]),g=m[0],v=m[1],y=o(),b=y[0],x=y[1],w=o({}),E=w[0],C=w[1];function k(e){d((function(t){return LR(t,e)}))}function S(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.assetType_in)||void 0===t?void 0:t.includes(e))||d((function(t){return RR(t,e)}))}function _(e){h((function(t){return LR(t,e.id)})),C((function(t){var n;return Ws(Ws({},t),((n={})[e.id]=e,n))}))}function I(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.metapropertyOptionId_in)||void 0===t?void 0:t.includes(e.id))||(h((function(t){return RR(t,e.id)})),C((function(t){var n=t,r=e.id;return qs(n,["symbol"==typeof r?r:r+""])})))}function T(e){(null==l?void 0:l.metapropertyOptionId_in)&&(h(l.metapropertyOptionId_in),C(e))}function O(e){v((function(t){return LR(t,e)}))}function j(e){var t;(null==l?void 0:l.showToolbar)&&(null===(t=l.tagNames_in)||void 0===t?void 0:t.includes(e))||v((function(t){return RR(t,e)}))}function z(){d((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.assetType_in)?Xs([],l.assetType_in,!0):[]),h((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?Xs([],l.metapropertyOptionId_in,!0):[]),C((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.metapropertyOptionId_in)?function(e,t){return t.reduce((function(t,n){return e[n]&&(t[n]=e[n]),t}),{})}(E,l.metapropertyOptionId_in):{}),v((null==l?void 0:l.showToolbar)&&(null==l?void 0:l.tagNames_in)?Xs([],l.tagNames_in,!0):[])}a((function(){x(!s&&void 0)}),[s]);var B=f.map((function(e){return E[e]})),P=i((function(){return{assetTypes:u,metaproperties:B,metapropertyIds:f,tags:g,isLimited:b,addAssetType:k,removeAssetType:S,addMetaproperty:_,removeMetaproperty:I,setPredefinedMetaproperties:T,addTag:O,removeTag:j,clear:z}}),[u,B,g,b,f]);return t.createElement(MR.Provider,{value:P},n)}function LR(e,t){return e.includes(t)?e:Xs(Xs([],e,!0),[t],!1)}function RR(e,t){return e.filter((function(e){return e!==t}))}function HR(){var e=r(MR);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function $R(e){return nw({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video",ARCHIVE:"Archive"}[e])}function UR(e){switch(e){case"AUDIO":return Dw;case"DOCUMENT":return Ww;case"IMAGE":return sE;case"VIDEO":return Nw;case"ARCHIVE":return Fw}}function VR(e){return t.createElement(qR,{$isVisible:e.isVisible},t.createElement(rp,{icon:t.createElement(gE,null),"aria-label":"Next",title:"Next",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-right"}))}var WR,qR=Xu.div(WR||(WR=Ks(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t&:hover {\n\t\tbox-shadow: -16px 0px 10px 0px #ffffff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function GR(e){return t.createElement(XR,{$isVisible:e.isVisible},t.createElement(rp,{icon:t.createElement(mE,null),"aria-label":"Previous",title:"Previous",variant:"clean",isSmall:!0,onClick:e.onClick,"data-testid":"arrow-left"}))}var YR,XR=Xu.div(YR||(YR=Ks(["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"],["\n\tz-index: 20;\n\tpadding: 0;\n\tbox-shadow: 4px 0 13px 13px #fff;\n\t&:hover {\n\t\tbox-shadow: 4px 0 13px 13px #fff;\n\t}\n\t","\n"])),(function(e){return!e.$isVisible&&"display: none;\n\t"}));function KR(e){var n=o(0),r=n[0],i=n[1],s=l(null),c=yR(s.current),u=c.dimensions,d=c.remeasure,p=null!==s.current?s.current.scrollWidth-s.current.clientWidth:0,f=void 0!==u&&u.width<u.scrollWidth;a((function(){d(s.current)}),[e.children,s.current]),a((function(){f||i(0)}),[f]);var h=r>0,m=p>5&&r!==p;return t.createElement("div",{className:IE("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(GR,{isVisible:h,onClick:function(){i((function(e){var t=Math.max(e-250,0);return t>=100?t:0}))}}),t.createElement("div",{className:"overflow-hidden",ref:s},t.createElement("div",{className:"transition-transform inline-flex",style:{transform:"translateX(".concat(-r,"px)")},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(VR,{isVisible:m,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function ZR(e){var n=IE("bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex\n\t\t items-center justify-center px-3 rounded-full select-none shadow-border\n\t\t text-sm text-white transition-color",e.className);return t.createElement("div",{className:n,onClick:e.onClick,onKeyDown:function(t){return function(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function JR(e){return t.createElement(ZR,{className:"mr-2 fade-in-down","data-testid":"selected-filter:".concat(e.title)},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(vE,{onClick:e.onClick,title:nw("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function QR(){var e=HR(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(tH,null,t.createElement(rp,{variant:"clean",isSmall:!0,onClick:e.clear},nw("Clear filters")));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(KR,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=UR(n);return t.createElement(JR,{key:n,onClick:function(){return e.removeAssetType(n)},title:$R(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(JR,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(JR,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}var eH,tH=Xu.div(eH||(eH=Ks(["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"],["\n\tflex-shrink: 0;\n\tanimation: var(--fade-in-down);\n"]))),nH=["xls","xlsx","ppt","pdf","pptx","indd","mp4","wav","docx","doc","numbers","pages","otf","txt","ttf","mov","avi","mpeg","webm","fla","aiff","mp3","m4r","zip","rar"];function rH(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return nH.includes(t)?"".concat("https://d8ejoa1fys2rk.cloudfront.net","/includes/img/placeholder/medium/").concat(t,".jpg"):"".concat("https://d8ejoa1fys2rk.cloudfront.net","aif"===t?"/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"/includes/img/placeholder/medium/m4r.jpg":"/includes/img/common/no-image.png")}function oH(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function iH(e){var n=e.transformBaseUrl,r=e.portalUrl,o=e.onOpenDAT,i=Ds(),a=i.hideExternalAccess,s="SingleSelectFile"===i.selectionMode&&n;return!s&&a?null:s||a?s&&a?t.createElement(Uh.ContextActionButton,{"aria-label":"New transformation",onClick:o},t.createElement(nE,null)):t.createElement(Uv,{trigger:function(e){var n=e.isOpen,r=qs(e,["isOpen"]);return t.createElement(Uh.ContextActionButton,Ws({"aria-label":"Menu",isPressed:n},r),t.createElement(xE,null))},isClosedOnScroll:!0},t.createElement(Uv.Item,{icon:t.createElement(jw,null),onClick:function(){window.open(r,"_blank")}},"Open asset"),t.createElement(Uv.Divider,null),t.createElement(Uv.Item,{icon:t.createElement(nE,null),onClick:o},"New transformation")):t.createElement(Uh.ContextActionButton,{"aria-label":nw("Open in new tab"),onClick:function(){window.open(r,"_blank")}},t.createElement(jw,null))}var aH,sH,lH,cH,uH=function(e,t){return e.zIndex&&!t.zIndex?-1:!e.zIndex&&t.zIndex?1:e.zIndex||t.zIndex?e.zIndex-t.zIndex:0},dH=function(e){var n=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]);var n=e.map((function(e){var t=e.label,n=e.options,r=e.zIndex;return{label:t,value:n.map((function(e){return e.label})).join(", "),zIndex:r}})),r=t.map((function(e){var t=e.label,n=e.value,r=e.type,o=e.zIndex;return{label:t,value:"date"===r?new Intl.DateTimeFormat("en-GB",XE).format(new Date(Date.parse(n)+60*new Date(n).getTimezoneOffset()*1e3)):n,zIndex:o}}));return Xs(Xs([],n,!0),r,!0).sort(uH)}(e.metaproperties,e.textMetaproperties);return(null==n?void 0:n.length)?t.createElement(Uh.AdditionalInfo,null,t.createElement(pH,null,n.map((function(e){var n=e.label,r=e.value,o=function(e){return e.length<=100?e:e.slice(0,100)+"..."}(r);return t.createElement(fH,{key:n,"data-testid":"asset-card-metaproperty"},t.createElement(hH,null,n,":"),t.createElement(mH,{title:r},o))})))):null},pH=Xu.dl(aH||(aH=Ks(["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.5);\n\tfont-size: ",";\n\tdisplay: flex;\n\tflex-direction: column;\n\tgrid-row-gap: 1px;\n\trow-gap: 1px;\n\tmargin: 0;\n"])),ld.fontSize75),fH=Xu.div(sH||(sH=Ks(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n"]))),hH=Xu.dt(lH||(lH=Ks(["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"],["\n\tcolor: rgba(0, 34, 51, 0.3);\n\tpadding-right: 4px;\n\tmargin: 0;\n"]))),mH=Xu.dd(cH||(cH=Ks(["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"],["\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0;\n"])));function gH(e){var n,r,i=e.className,s=e.fadeIn,l=void 0===s||s,c=e.asset,u=e.isSelected,d=e.isOutlined,p=e.onClick,f=e.children,h=void 0===f?null:f,m=o(),g=m[0],v=m[1],y=o(),b=y[0],x=y[1],w=cR(),E=w.openDat,C=w.setTransformation,k=Ds().theme,S=function(e){return[e.isArchived&&nw("archived"),e.isWatermarked&&nw("watermarked"),e.isLimitedUse&&nw("limited")].filter((function(e){return e})).join(", ")}(c),_=oH(c);a((function(){var e,t=null===(e=c.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));v(t)}),[c.metaproperties]),a((function(){var e,t=null===(e=c.textMetaproperties)||void 0===e?void 0:e.filter((function(e){return e.showInGridView||e.showInListView}));x(t)}),[c.textMetaproperties]);var I=function(e){void 0!==p&&(e.stopPropagation(),C(),p(c,e))};return t.createElement(xH,{id:c.id,$theme:k,$isOutlined:(u||d)&&void 0!==(null==k?void 0:k.colorPrimary),$fadeIn:l,className:IE("group",i),"data-drag-select-id":c.id},t.createElement(Uh,{contextAction:t.createElement(iH,{transformBaseUrl:null===(r=null===(n=c.files)||void 0===n?void 0:n.transformBaseUrl)||void 0===r?void 0:r.url,portalUrl:c.url,onOpenDAT:function(){var e,t;return E(null===(t=null===(e=c.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url,c,c.name)}}),selectButtonAriaLabel:nw(u?"Deselect":"Select"),onSelect:I,onClick:I,isSelected:u,"aria-selected":u,"data-testid":"asset-card"},t.createElement(Uh.Frame,{icon:S?t.createElement(wH,{$limitWidth:!!_},t.createElement(cd,{color:"black-alpha","data-testid":"asset-tag"},t.createElement(kh,null,S))):void 0,"data-testid":"asset-type",badge:_},t.createElement(Uh.Images,null,rH(c)&&t.createElement(Uh.Img,{src:rH(c),alt:c.name,contentResize:"fit"}))),h,t.createElement(EH,{"data-testid":"asset-name"},c.name),t.createElement(dH,{metaproperties:g,textMetaproperties:b})))}var vH,yH,bH,xH=Xu.div(vH||(vH=Ks(["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"],["\n\tmargin: ",";\n\twidth: 224px;\n\talign-self: flex-start;\n\tposition: relative;\n\t","\n\n\t--userComponentCardSelectedColor: ",";\n\t--userComponentCardSelectedColorHover: ",";\n\t--userComponentCardSelectedColorActive: ",";\n"])),ld.spacing3,(function(e){return e.$fadeIn?"animation: var(--fade-in-down);":""}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimary}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryHover}),(function(e){var t=e.$theme;return null==t?void 0:t.colorButtonPrimaryActive})),wH=Xu.div(yH||(yH=Ks(["\n\t","\n"],["\n\t","\n"])),(function(e){return e.$limitWidth&&"max-width: 142px;"})),EH=Xu.p(bH||(bH=Ks(["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"],["\n\twidth: auto;\n\tmax-width: 100%;\n\theight: auto;\n\tline-height: 20px;\n\tmin-height: 20px;\n\tmax-height: 20px;\n\tpadding: var(--card-content-padding);\n\ttransition: all 200ms ease;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n\tbox-sizing: content-box;\n\n\t&:hover {\n\t\tmax-height: 80px;\n\t\tword-break: break-all;\n\t\twhite-space: normal;\n\t}\n"]))),CH={x:null,y:null},kH="drag-select-container",SH=function(e){var n=e.dragContainer,r=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,u=e.onDragStart,d=e.onDragEnd,p=o(CH),f=p[0],h=p[1],g=o(CH),v=g[0],y=g[1],b=yI(v,10,{leading:!0,maxWait:10})[0],x=o(),w=x[0],E=x[1],C=ll(),k=t.useMemo((function(){return IH(f,b,C.querySelector(".cv-root"))}),[f,b,C]),S=yI(k,50,{leading:!1,maxWait:50})[0],_=o([]),I=_[0],T=_[1],O=BH(I),j=l(f),z=l(v),B=l(null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y),P=l({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",A,!1),document.addEventListener("keyup",A,!1),function(){document.removeEventListener("keydown",A,!1),document.removeEventListener("keyup",A,!1)}}),[]);var A=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";P.current={shiftKey:t,metaKey:n},B.current&&r!==w&&E(r)};a((function(){var e;return"function"==typeof u&&B.current?(A(P.current),u(null!=w?w:"select")):"function"!=typeof d||B.current||(e=setTimeout((function(){return d(null!=w?w:"select")}),10)),function(){return clearTimeout(e)}}),[B.current,w]);var N=function(e){j.current=e,h(e),M()},D=function(e){z.current=e,y(e),M()},M=function(){B.current=null!==j.current.x&&null!==j.current.y&&null!==z.current.x&&null!==z.current.y},F=c((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==j.current.x,a=Math.abs(null!==(t=j.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=j.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&D({x:o,y:r})}),[]),L=c((function(){C.removeEventListener("mousemove",F),C.removeEventListener("mouseup",L),N(CH),D(CH)}),[F,C]),R=c((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(C.addEventListener("mousemove",F),C.addEventListener("mouseup",L),N({x:n,y:t}))}),[F,L,C]);a((function(){var e=C.querySelector(n);return e&&(jH(C),e.addEventListener("mousedown",R)),function(){e&&(e.removeEventListener("mousedown",R),zH(C))}}),[n,R,F,L,C]),a((function(){var e=C.querySelectorAll("[".concat("data-drag-select-id","]")),t=Array.from(e).reduce((function(e,t){var n=OH(t);return t instanceof HTMLElement&&TH(n,S)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);T(t)}),[S,C]),a((function(){if(O&&O!==I&&B.current){var e=I.filter((function(e){return!O.includes(e)})),t=O.filter((function(e){return!I.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[I,O,i,s,B]);var H=C.querySelector("#".concat(kH));return B.current&&H?m(t.createElement("div",Ws({},r,{style:r.style?Ws(Ws(Ws({},_H),r.style),k):Ws(Ws({},_H),k),"data-testid":"drag-selection"})),H):null},_H={position:"absolute",zIndex:100},IH=function(e,t,n){if(!(e.x&&e.y&&t.x&&t.y&&n))return{left:0,top:0,height:0,width:0};var r=n.getBoundingClientRect(),o=Math.max(t.x,0),i=Math.min(e.x,o);i=Math.max(i,r.left+4);var a=Math.min(e.y,t.y),s=Math.abs(t.y-e.y),l=Math.abs(o-e.x),c=r.width+r.left-i-4;return{left:i,top:a,height:s,width:l=Math.min(l,c)}},TH=function(e,t){return e.left<=t.left+t.width&&e.left+e.width>=t.left&&e.top<=t.top+t.height&&e.top+e.height>=t.top},OH=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},jH=function(e){var t=document.createElement("div");t.id=kH,e.appendChild(t)},zH=function(e){var t=e.querySelector("#".concat(kH));t&&t.remove()},BH=function(e){var t=l();return a((function(){t.current=e})),t.current};function PH(e){var n,r=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,c=e.isLoading,u=void 0!==c&&c,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,h=void 0===f?function(){}:f,m=e.onToggle,g=void 0===m?function(){}:m,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,x=void 0===b?[]:b,w=e.selectionMode,E=void 0===w?"MultiSelect":w,C=e.theme,k=e.children,S=void 0===k?null:k,_=l(null),I=yR(_.current).dimensions,T=o([]),O=T[0],j=T[1],z=o("inactive"),B=z[0],P=z[1],A=function(e,t){if(void 0!==e)return[1,e];if(!t)return[0,0];return[Math.ceil(t.height/188),Math.round((t.width-16)/208)]}(i,I),N=A[0],D=A[1];function M(e){return("inverse"!==B||!x.includes(e.id)||!O.includes(e.id))&&(x.includes(e.id)||O.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:_,"data-drag-select-container":!0},S,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===r.tag&&!r.value&&t.createElement(RE,{rows:N,columns:D}),"Loaded"===r.tag&&0===r.value.length&&y,("Loading"===r.tag&&r.value||"Loaded"===r.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===E&&t.createElement(SH,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==C?void 0:C.colorPrimary}},onSelect:function(e){j((function(t){return Xs(Xs([],t,!0),e,!0)}))},onDeselect:function(e){j((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){P(e)},onDragEnd:function(e){if(P("inactive"),O.length){var t=[];O.forEach((function(e){var n=function(e){var t;if("Loading"!==r.tag||r.value)return null===(t=r.value)||void 0===t?void 0:t.find((function(t){return e===t.id}))}(e);n&&t.push(n)})),"inverse"===e?g(t):h(t),j([])}}}),t.createElement(bR,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=r.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(gH,{key:e.id,isSelected:M(e),isOutlined:M(e),asset:e,fadeIn:n>=N*D,onClick:function(e,t){return function(e,t){var n,o,i;if(t.shiftKey&&"MultiSelect"===E&&(null===(n=r.value)||void 0===n?void 0:n.length)){var a=r.value.findIndex((function(t){return t.id===e.id})),s=null===(o=r.value)||void 0===o?void 0:o.findIndex((function(e){return e.id===x[x.length-1]}));-1===s&&(s=0),h(s<a?null===(i=r.value)||void 0===i?void 0:i.slice(s,a+1):r.value.slice(a,s+1))}else g([e])}(e,t)}})}))))))}function AH(e){var n,r,o,i,s=e.connection,l=s.data,c=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=rl().setIsLoading,h=Ds(),m=gR().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=gR(),v=g.selectAssets,y=g.toggleAssets,b=rl().setSearch,x=HR();if(a((function(){c||f(!1)}),[c]),"Failure"===l.tag)return t.createElement(xw,{error:new Error(l.value),onRetry:p});var w=null!==(i=null===(o=null===(r=null===(n=l.value)||void 0===n?void 0:n.searchAssets)||void 0===r?void 0:r.assets)||void 0===o?void 0:o.totalCount)&&void 0!==i?i:e.totalCount;return t.createElement(PH,{assets:NH(l),count:w,isLoading:c,loadMore:u,hasNextPage:d,theme:h.theme,selectionMode:h.selectionMode,selectedAssetIds:m,onSelect:v,onToggle:y,emptyStateElement:t.createElement(wR,{onReset:function(){x.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==w&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down","data-testid":"assets-amount",key:w},ME(w,nw("{} asset"),nw("{} assets"))),e.showActiveFilters&&t.createElement(QR,null),t.createElement(AE,null),t.createElement(kE,null)))}function NH(e){var t;return"Loading"!==e.tag||e.value?"Loading"===e.tag?{tag:e.tag,value:null===(t=e.value)||void 0===t?void 0:t.searchAssets.assets.nodes}:{tag:e.tag,value:e.value.searchAssets.assets.nodes}:{tag:"Loading",value:void 0}}function DH(e){var n=ol("collection").value,r=Qs()[1],o=Us("collection")[0],i=Ds(),a=i.language,s=i.noCache,l=HR(),c=l.assetTypes,u=l.metaproperties,d=l.tags,p=l.isLimited,f=rk({collection:e.collection,filter:{assetTypes:c,metaproperties:u,tags:d,isLimited:p},searchTerm:n,orderBy:o,language:a},s);return t.createElement(t.Fragment,null,t.createElement("nav",{className:"px-4 py-4","data-testid":"collection-toolbar"},t.createElement("button",{className:"text-body-400 select-none cursor-pointer",onClick:function(){return r({page:"collections"})},type:"button"},nw("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(AH,{connection:f,totalCount:e.collection.assetCount,showActiveFilters:!0}))}var MH="\nquery searchAssets($filter: AssetFilter!, $language: String!) {\n searchAssets(filter: $filter) {\n tags {\n nodes {\n id\n name\n assetCount\n }\n }\n metapropertyFilters {\n nodes {\n __typename\n ... on Smartfilter {\n id\n label(language: $language)\n metaproperties {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n icon\n zIndex\n }\n ... on Metaproperty {\n id\n label(language: $language)\n options {\n id\n label(language: $language)\n assetCount\n }\n }\n }\n }\n count {\n assetType {\n image\n video\n audio\n document\n archive\n }\n }\n }\n }";var FH,LH,RH,HH,$H=Xu.div(FH||(FH=Ks(["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"],["\n\twidth: 100%;\n\tfont-size: ",";\n\talign-items: center;\n\tcursor: ",";\n\tdisplay: ",";\n\n\tdiv:last-of-type {\n\t\tflex-grow: 1;\n\t}\n"])),ld.fontSize75,(function(e){return e.$isLoading&&!e.$isChecked?"wait":"pointer"}),(function(e){return e.$isFlex?"flex":"block"})),UH=Xu.li(LH||(LH=Ks(["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"],["\n\tpadding: "," ",";\n\n\t&:hover {\n\t\tbackground-color: ",";\n\t}\n"])),ld.spacing2,ld.spacing5,ld.gray25),VH=Xu.div(RH||(RH=Ks(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tcolor: ",";\n"])),(function(e){return e.$isChecked?"inherit":ld.gray500})),WH=Xu.span(HH||(HH=Ks(["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"],["\n\tmargin: 1px "," 1px 0;\n\tflex-grow: 1;\n\tmax-width: 124px;\n"])),ld.spacing4);function qH(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id);return t.createElement(UH,null,t.createElement($H,{$isChecked:n,$isLoading:Boolean(e.isLoading)},t.createElement(Kh,{isChecked:n,onChange:function(){n?e.onRemoveOption():e.isLoading||e.onAddOption()},"data-testid":"metaproperty-option"},t.createElement(VH,{$isChecked:n},t.createElement(WH,{title:e.metapropertyOption.label},t.createElement(kh,null,e.metapropertyOption.label)),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))))}function GH(e){return t.createElement(KH,{"data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement(ZH,null,e.metaproperty.options.map((function(n){return t.createElement(qH,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}var YH,XH,KH=Xu.div(YH||(YH=Ks(["\n\tpadding-top: ",";\n\twidth: 224px;\n"],["\n\tpadding-top: ",";\n\twidth: 224px;\n"])),ld.spacing5),ZH=Xu.ul(XH||(XH=Ks(["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"],["\n\tmax-height: 400px;\n\toverflow-y: auto;\n\tpadding-bottom: 4px;\n\twidth: 100%;\n"])));function JH(e){return t.createElement(e$,null,e.smartfilter.metaproperties.map((function(n){return t.createElement(GH,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}var QH,e$=Xu.div(QH||(QH=Ks(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"],["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: ",";\n\toverflow: auto;\n"])),ld.spacing4);function t$(e){var n,r=HR(),o=r.metaproperties.map((function(e){return e.id})),i=e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})),a=(n=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex},Xs([],i,!0).sort((function(e,t){return n(e)-n(t)})));return t.createElement(t.Fragment,null,a.map((function(n){return t.createElement(jE,{key:n.id,title:t.createElement(n$,{filter:n}),alt:n.label,isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===n.__typename?t.createElement(GH,{metaproperty:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}):t.createElement(JH,{smartfilter:n,selectedOptionIds:o,isLoading:e.isLoading,onAddOption:r.addMetaproperty,onRemoveOption:r.removeMetaproperty}))}))})))}function n$(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:IE("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function r$(e){var n=HR(),r=n.tags.includes(e.tag.name),o=IE("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(ZR,{key:e.tag.id,className:o,onClick:function(){r?n.removeTag(e.tag.name):e.isLoading||n.addTag(e.tag.name)},"data-testid":"tag-item"},t.createElement("span",{className:"max-w-32 truncate"},e.tag.name),t.createElement("span",{className:"text-body-400 ml-2"},e.tag.assetCount))}function o$(e){var n=Xs([],e.tags,!0).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(jE,{title:t.createElement(i$,null),className:"pt-4 pb-1 overflow-hidden max-w-600",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",nw("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(r$,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function i$(){return t.createElement(t.Fragment,null,t.createElement(Sw,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},nw("Tags")))}function a$(e){var n=HR(),r=n.assetTypes.includes(e.type),o=UR(e.type);return t.createElement(UH,{"data-testid":"advanced-options"},t.createElement($H,{$isChecked:r,$isLoading:e.isLoading},t.createElement(Kh,{isChecked:r,onChange:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":"".concat($R(e.type),"-filter")},t.createElement(VH,{$isChecked:r},t.createElement(o,null),t.createElement(l$,null,$R(e.type)),t.createElement("span",{className:"fade-in-down"},e.count)))))}var s$,l$=Xu.div(s$||(s$=Ks(["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"],["\n\tmargin: 1px ",";\n\tflex-grow: 1;\n"])),ld.spacing3);function c$(e){var n=Ds().assetTypes,r=n.filter((function(t){return d$(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(jE,{title:t.createElement(u$,null),className:"pt-4 pb-1",isSmall:!0,fadeIn:!0},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(FC,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},nw("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(a$,{key:n,type:n,count:d$(e.count,n),isLoading:e.isLoading})}))))}))}function u$(){return t.createElement(t.Fragment,null,t.createElement(pE,{className:"mr-2 inline w-6 h-6"}),nw("Advanced"))}function d$(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video;case"ARCHIVE":return e.archive}}function p$(){var e=HR(),n=Qs()[0],r=ol("assets").value,i=Ds(),s=i.assetTypes,l=i.language,c=i.assetFilter,u=i.noCache,d=o(n.page),p=d[0],f=d[1];ow(l);var h=function(e,t){var n=this;void 0===t&&(t=!1);var r=JC(),i=o({tag:"Loading",value:null}),s=i[0],l=i[1],c=!1;return a((function(){return Gs(n,void 0,void 0,(function(){var n,o,i,a,s,u,d,p,f,h;return Ys(this,(function(m){switch(m.label){case 0:return l((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),n=e.filter,o=e.searchTerm,i=e.allAssetTypes,a=e.language,s=e.predefinedFilter,u=QC({filters:null==n?void 0:n.assetTypes,predefinedFilters:null==s?void 0:s.assetType_in,showToolbar:null==s?void 0:s.showToolbar}),d=QC({filters:ek(null==n?void 0:n.metaproperties),predefinedFilters:null==s?void 0:s.metapropertyOptionId_in,showToolbar:null==s?void 0:s.showToolbar}),p=QC({filters:null==n?void 0:n.tags,predefinedFilters:null==s?void 0:s.tagNames_in,showToolbar:null==s?void 0:s.showToolbar}),f={filter:{assetType_in:null!=u?u:i,collectionId:e.collectionId,metapropertyOptionId_in:d,searchTerm:o,tagNames_in:p,isLimitedUse:n.isLimited},language:a},[4,JE({query:MH,variables:f,auth:r,noCache:t})];case 1:return h=m.sent(),c||(WE(h)?l({tag:"Failure",value:h.error}):l({tag:"Loaded",value:h.value})),[2]}}))})),function(){c=!0}}),[e.filter.assetTypes,e.filter.metaproperties,e.filter.tags,e.searchTerm]),{data:s,isLoading:"Loading"===s.tag}}({filter:e,searchTerm:r||null,allAssetTypes:s,language:l,predefinedFilter:c,collectionId:"collection"===n.page?n.collection.id:null},u),m=h.data,g=h.isLoading;if(a((function(){return n.page!==p&&(f(n.page),e.clear()),function(){e.clear()}}),[p,n.page]),a((function(){var t;if("Loading"!==m.tag&&"Failure"!==m.tag&&m.value){var n=m.value.searchAssets.metapropertyFilters;if((null==c?void 0:c.metapropertyOptionId_in)&&(null===(t=null==n?void 0:n.nodes)||void 0===t?void 0:t.length)&&!e.metaproperties.length){var r=n.nodes.reduce((function(t,n){return("Metaproperty"===n.__typename?n.options:n.metaproperties.reduce((function(e,t){return Xs(Xs([],e,!0),t.options,!0)}),[])).forEach((function(n){var r,o;(null===(r=null==c?void 0:c.metapropertyOptionId_in)||void 0===r?void 0:r.includes(n.id))&&((null===(o=e.metapropertyIds)||void 0===o?void 0:o.includes(n.id))||(t[n.id]=n))})),t}),{});Object.keys(r).length&&e.setPredefinedMetaproperties(r)}}}),[m]),"Failure"===m.tag||!m.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(f$,null));var v=m.value.searchAssets,y=v.metapropertyFilters,b=v.tags,x=v.count;return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20","data-testid":"filter-nav"},t.createElement(KR,{className:"h-8"},y&&y.nodes.length>0&&t.createElement(t$,{metapropertyFilters:y.nodes,isLoading:g}),b&&b.nodes.length>0&&t.createElement(o$,{tags:b.nodes,isLoading:g}),t.createElement(c$,{isLoading:g,count:x.assetType})))}function f$(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(LE,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(LE,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(LE,{className:"h-4 ml-2 mr-2 my-2",width:110}))}var h$,m$,g$=Zu(m$||(m$=Ks(["",""],["",""])),qu(h$||(h$=Ks(["\n\t.cv-root {\n\t\t","\n\t}:\n"],["\n\t.cv-root {\n\t\t","\n\t}:\n"])),(function(e){return function(e){var t=function(e){var t,n;return{"--componentButtonPrimaryBorderHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderActive":null!==(t=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==t?t:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryBorderFocus":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryColor":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorHover":null==e?void 0:e.colorButtonPrimaryHoverLabel,"--componentButtonPrimaryColorActive":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorFocus":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryColorDisabled":null==e?void 0:e.colorButtonPrimaryLabel,"--componentButtonPrimaryFill":null==e?void 0:e.colorButtonPrimary,"--componentButtonPrimaryFillHover":null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillActive":null!==(n=null==e?void 0:e.colorButtonPrimaryActive)&&void 0!==n?n:null==e?void 0:e.colorButtonPrimaryHover,"--componentButtonPrimaryFillFocus":null==e?void 0:e.colorButtonPrimary}}(e),n=Object.entries(t).map((function(e){return e.join(":")}));return n.join(";")+";"}(e.theme)})));function v$(){var e=Qs()[0],n=Ls(),r=ol(e.page),i=r.value,s=r.isLoading,l=mI(r.setSearch,500),c=o(i),u=c[0],d=c[1];a((function(){d(i)}),[e,i]),a((function(){return function(){l.flush()}}),[e,l]);var p="collections"===e.page?nw("Search for collections"):nw("Search for assets");return t.createElement(b$,{$hideSwitch:n},t.createElement(pg,{value:u,placeholder:p,"aria-label":p,onChange:function(e){return d(t=e),void l(t);var t},"data-testid":"search-input",icon:t.createElement(Bw,null),iconRight:s?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(FC,{className:"relative right-0"})):void 0,hasClearButton:!s&&!!i}))}var y$,b$=Xu.div(y$||(y$=Ks(["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"],["\n\twidth: 100%;\n\tmax-width: 440px;\n\tmargin-left: ",";\n"])),(function(e){return e.$hideSwitch?"auto":"none"}));function x$(){var e=Qs(),n=e[0],r=e[1];return t.createElement(E$,null,t.createElement(rp,{isPressed:"assets"===n.page,variant:"clean",onClick:function(){return r({page:"assets"})}},nw("Assets")),t.createElement(rp,{isPressed:"collections"===n.page,variant:"clean",onClick:function(){return r({page:"collections"})}},nw("Collections")))}var w$,E$=Xu.div(w$||(w$=Ks(["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"],["\n\tdisplay: inline-flex;\n\tmargin-right: auto;\n\tgap: ",";\n"])),ld.spacing2);function C$(){var e=ZC(),n=kC(),r=JC(),o=Ms(),i=Ls(),a=void 0!==o&&!o.showToolbar;return e||n||!a?t.createElement(_$,null,!a&&t.createElement(t.Fragment,null,!i&&t.createElement(x$,null),t.createElement(v$,null)),t.createElement(I$,null,e&&!(null==r?void 0:r.hideLogout)&&t.createElement(rp,{variant:"clean",onClick:function(){return null==r?void 0:r.logout()},rightIcon:t.createElement(Cw,null)},nw("Log out")),n&&t.createElement(rp,{variant:"clean",onClick:function(){return n.onClose()},title:nw("Close"),icon:t.createElement(vE,null)}))):null}var k$,S$,_$=Xu.nav(k$||(k$=Ks(["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"],["\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tbackground: ",";\n\tpadding: "," ",";\n\tz-index: 30;\n"])),ld.gray10,ld.spacing5,ld.spacing4),I$=Xu.div(S$||(S$=Ks(["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"],["\n\tdisplay: inline-flex;\n\tmargin-left: auto;\n"])));function T$(){var e=HR(),n=e.assetTypes,r=e.metaproperties,o=e.tags,a=e.isLimited,s=ol("assets").value,l=Us("assets")[0],c=Ds(),u=c.assetFilter,d=c.assetTypes,p=c.language,f=c.noCache,h=rk(i((function(){return void 0===u?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,allAssetTypes:d,language:p}:u&&u.showToolbar?{filter:{assetTypes:n,metaproperties:r,tags:o,isLimited:a},searchTerm:s,orderBy:l,predefinedFilter:u,allAssetTypes:d,language:p}:{predefinedFilter:u,orderBy:l,language:p}}),[n,r,o,a,s,l,u,d,p]),f);return t.createElement(AH,{connection:h,showActiveFilters:void 0===u||u&&u.showToolbar})}var O$="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function j$(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Ys(this,(function(s){switch(s.label){case 0:return t=e.assetId,n=e.auth,r=e.assetFieldSelection,o=void 0===r?O$:r,i=e.noCache,[4,JE({query:"\n fragment AddMediaAsset on Asset {\n ".concat(o,"\n }\n\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }"),variables:{id:t},auth:n,noCache:i})];case 1:return WE(a=s.sent())?[2,a]:[2,$E(a.value.node)]}}))}))}function z$(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return"".concat(t," ").concat(n)}))}var B$="Custom transformation";function P$(e){var n=e.asset,r=e.onChange,i=o({status:"Loading"}),s=i[0],l=i[1],c=JC(),u=Ds(),d=u.assetFieldSelection,p=u.noCache,f=u.__shouldAddOriginal__,h=cR().transformation;function m(e){l((function(t){return"Data"!==t.status?t:(e===B$&&h?setTimeout((function(){return r({url:null==h?void 0:h.url})})):setTimeout((function(){return r(t.files[e])})),Ws(Ws({},t),{key:e}))}))}return a((function(){var e,t;(null==h?void 0:h.url)&&"Data"===s.status&&m(h.url!==(null===(t=null===(e=s.files)||void 0===e?void 0:e.transformBaseUrl)||void 0===t?void 0:t.url)?B$:"transformBaseUrl")}),[h]),a((function(){l({status:"Loading"}),r(void 0),function(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o;return Ys(this,(function(i){switch(i.label){case 0:return t=e.auth,n=e.assetFieldSelection,r=e.noCache,[4,j$({assetId:e.asset.id,auth:t,assetFieldSelection:n,noCache:r})];case 1:return VE(o=i.sent())&&o.value.files?[2,$E({files:KE(o.value.files),databaseId:o.value.databaseId||""})]:[2,UE("Error retrieving asset files")]}}))}))}({asset:n,auth:c,assetFieldSelection:d,noCache:p}).then((function(e){if(WE(e))return il.error(e.error),void l({status:"Failure"});var t=Ws({},e.value.files);f&&!("original"in t)&&(t.original={url:e.value.databaseId,isFakeOriginal:!0});var n=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(t);l({status:"Data",files:t,key:n}),r(t[n])}))}),[n.id,c,d]),t.createElement(M$,null,t.createElement(jE,{title:t.createElement(A$,{state:s}),buttonKind:"secondary",className:"py-2",direction:"Up",disabled:"Loading"===s.status},(function(e){var r,o;return"Data"===s.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(s.files).map((function(n){var r,o=n[0],i=n[1];return t.createElement(PE,{key:o,className:"px-3 py-2",selected:s.key===o,onClick:function(){m(o),e()}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center\n\t\t\t\t\t\t\t\t\t\t\t\t\tjustify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t\t\t\t\tuppercase","data-testid":"file-extension"},"transformBaseUrl"===o?t.createElement(ww,{className:"w-6 h-6"}):null!==(r=function(e){if(e){var t=function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e);return t||function(e){var t=e.split("/"),n=t[t.length-1].split(".");if(!(n.length<=1)){var r=n[n.length-1],o=r.indexOf("?");return-1!==o?r.substring(0,o):r}}(e)}}(i.url))&&void 0!==r?r:t.createElement(qw,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},z$(o)),t.createElement("div",{className:"text-sm"},i.width&&i.height&&"".concat(i.width," x ").concat(i.height," px"),i.width&&i.height&&i.fileSize&&t.createElement("span",{className:"mx-2"},"•"),i.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024)),n=(e/Math.pow(1024,t)).toFixed(1),r={0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t];return"".concat(n," ").concat(r)}(i.fileSize))))})),t.createElement(uR,{transformBaseUrl:null===(o=null===(r=s.files)||void 0===r?void 0:r.transformBaseUrl)||void 0===o?void 0:o.url,toggleDropdown:e,asset:n}))})))}function A$(e){var n=e.state;return"Loading"===n.status?t.createElement(LE,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(F$,null,n.key===B$&&t.createElement(nE,null),z$(n.key)):t.createElement(t.Fragment,null,"Error")}var N$,D$,M$=Xu.div(N$||(N$=Ks(["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"],["\n\tmargin-right: ",";\n\ttext-transform: capitalize;\n"])),ld.spacing5),F$=Xu.div(D$||(D$=Ks(["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"],["\n\tdisplay: flex;\n\tgap: ",";\n\talign-items: center;\n"])),ld.spacing4),L$="\n id\n name\n description\n databaseId\n createdAt\n originalUrl\n publishedAt\n tags\n type\n updatedAt\n url\n extensions\n metaproperties {\n nodes {\n name\n type\n options {\n name\n displayLabel\n }\n }\n }\n textMetaproperties {\n name\n value\n label\n }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n";function R$(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(hE,{"data-testid":"check"}):"Error"===n?t.createElement(t.Fragment,null,nw("Retry")):t.createElement(t.Fragment,null,ME(r,nw("Add asset"),nw("Add assets")))}function H$(e){var n,r=Ds(),i=r.assetFieldSelection,s=r.onSuccess,c=r.selectionMode,u=r.noCache,d=gR().preselectedAssetIds,p=JC(),f=l(!0),h=o("SingleSelectFile"===c?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=h[0],g=h[1];function v(e,t){if(WE(e))g({status:"Error"});else{try{var n=Array.isArray(e.value)?e.value:[e.value];n.sort((function(e,t){return function(e,t,n){return n?!n.includes(e.id)&&n.includes(t.id)?1:n.includes(e.id)&&!n.includes(t.id)?-1:n.indexOf(e.id)-n.indexOf(t.id):0}(e,t,d)})),s(n,{selectedFile:t})}catch(e){il.error(e)}f.current&&(g({status:"Done"}),setTimeout((function(){f.current&&g((function(){return t?{status:"ReadyWithFile",file:t}:{status:"Ready"}}))}),2e3))}}return a((function(){return function(){f.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===c&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(P$,{asset:e.selection[0].value,onChange:function(e){g(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(rp,{variant:"primary",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;g({status:"Loading"}),"MultiSelect"!==c&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?j$({assetId:e.selection[0].value.id,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)})):function(e){return Gs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,v,y;return Ys(this,(function(b){switch(b.label){case 0:return t=e.selectedItems,n=e.auth,o=e.noCache,i="\n fragment AddMediaAsset on Asset {\n ".concat(void 0===(r=e.assetFieldSelection)?L$:r,"\n }\n\n query getAssetsById($ids: [ID!]!, $collectionCount: Int) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets(first: $collectionCount) {\n nodes {\n __typename\n id\n ...AddMediaAsset\n files\n }\n }\n }\n }\n }"),a=t.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.assetCount})),s=a.reduce((function(e,t){return e+t}),0),l={ids:t.map((function(e){return e.value.id})),collectionCount:s},[4,JE({query:i,variables:l,auth:n,noCache:o})];case 1:if(WE(c=b.sent()))return[2,c];for(u=[],d=0,p=c.value.nodes;d<p.length;d++)"Collection"===(f=p[d]).__typename?u.push.apply(u,f.assets.nodes):u.push(f);for(h=new Set,m=[],g=0,v=u;g<v.length;g++)y=v[g],h.has(y.id)||(m.push(y),h.add(y.id));return[2,$E(m)]}}))}))}({selectedItems:e.selection,auth:p,assetFieldSelection:i,noCache:u}).then((function(e){v(e,n)}))},"data-testid":"add-button",isLoading:"Loading"===m.status},t.createElement(R$,{status:m.status,numberOfSelectedItems:e.selection.length})))}function $$(e){var n=e.title,r=e.onRemove,o=e.children;return t.createElement("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative",title:n},t.createElement($H,{$isChecked:!0,$isFlex:!0},t.createElement(Kh,{"aria-label":nw("Deselect"),id:"deselect-".concat(n),isChecked:!0,onChange:r,"data-testid":"metaproperty-option"}),t.createElement(V$,{htmlFor:"deselect-".concat(n)},o)))}var U$,V$=Xu.label(U$||(U$=Ks(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"],["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tfont-size: ",";\n\tmargin-left: ",";\n\tcursor: pointer;\n"])),ld.fontSize100,ld.spacing3);function W$(e){var n=e.asset,r=gR();return t.createElement($$,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement(G$,null,t.createElement(Sg,{variant:"preview",imageUrl:rH(n),size:"m"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),oH(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},oH(n)))}var q$,G$=Xu.div(q$||(q$=Ks(["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"],["\n\tmargin-right: ",";\n\tmax-width: 40px;\n"])),ld.spacing4);function Y$(e){var n=e.collection,r=gR();return t.createElement($$,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement(K$,null,t.createElement(Sg,{variant:"clean",icon:t.createElement(lE,null)})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},ME(n.assetCount,nw("{} asset"),nw("{} assets"))))}var X$,K$=Xu.div(X$||(X$=Ks(["\n\tmargin-right: ",";\n"],["\n\tmargin-right: ",";\n"])),ld.spacing4);function Z$(e){var n=e.selection;return t.createElement("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400","data-testid":"selected-items-list"},n.map((function(e){return"asset"===e.type?t.createElement(W$,{key:e.value.id,asset:e.value}):t.createElement(Y$,{key:e.value.id,collection:e.value})})))}function J$(){var e=gR(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement(nU,{"data-testid":"selection-footer"},t.createElement(rU,null,t.createElement(jE,{buttonKind:"secondary",direction:"Up",title:nw("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(Z$,{selection:n})})),t.createElement(rp,{variant:"clean",onClick:r},nw("Clear selection"))),t.createElement(H$,{selection:n}))}var Q$,eU,tU,nU=Xu.div(Q$||(Q$=Ks(["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"],["\n\tdisplay: flex;\n\tflex-shrink: 0;\n\tz-index: 10;\n\theight: ",";\n\tpadding: ",";\n\talign-items: center;\n\tbox-shadow: 0 -1px 0 0 rgba(0, 34, 51, 0.1), 0 -1px 6px 0 rgba(0, 34, 51, 0.1);\n\tanimation: var(--fade-in-down);\n"])),ld.layoutSpacing5,ld.spacing6),rU=Xu.span(eU||(eU=Ks(["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"],["\n\tdisplay: flex;\n\tflex-grow: 1;\n\talign-items: center;\n\tgap: ",";\n"])),ld.spacing2);function oU(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT","ARCHIVE"]:o,a=e.defaultSearchTerm,s=e.language,l=void 0===s?"en_US":s,c=e.mode,u=void 0===c?"MultiSelect":c,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,h=e.hideExternalAccess,m=e.selectedAssets,g=e.hideLimitedUse,v=e.isContainerMode,y=void 0!==v&&v,b=e.__shouldAddOriginal__,x=e.hideSwitch,w=void 0!==x&&x,E=e.noCache,C=void 0!==E&&E;ow(l);var k={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:l,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:h,__shouldAddOriginal__:b,hideSwitch:w,noCache:C};return t.createElement(qC,{sentryClient:tU},t.createElement(Js,null,t.createElement(EC,{isContainerMode:y},t.createElement(lR,null,t.createElement($s,null,t.createElement(FR,{hideLimitedUse:g,predefinedFilter:r},t.createElement(nl,{defaultValue:a},t.createElement(Ns,{value:k},t.createElement(hR,{preselectedAssetIds:null!=m?m:[]},t.createElement(g$,{theme:k.theme}),t.createElement("div",{className:"cv-root cv-container"},t.createElement(C$,null),t.createElement(iU,null),t.createElement(J$,null)))))))))))}function iU(){var e=Qs()[0],n=Ds().assetFilter;return t.createElement(t.Fragment,null,"collections"!==e.page&&(void 0===n||n&&n.showToolbar)&&t.createElement(p$,null),"assets"===e.page&&t.createElement(T$,null),"collections"===e.page&&t.createElement(DR,null),"collection"===e.page&&t.createElement(DH,{collection:e.collection}))}tU=new class extends ss{constructor(e){!function(e,t,n=[t],r="npm"){const o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map((e=>({name:`${r}:@sentry/${e}`,version:Xa}))),version:Xa}),e._metadata=o}(e,"browser",["browser"],ps.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&ps.document&&ps.document.addEventListener("visibilitychange",(()=>{"hidden"===ps.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=function(e,t,n,r,o){let i;if(Ii(t)&&t.error)return ms(e,t.error);if(Ti(t)||_i(t,"DOMException")){const o=t;if("stack"in t)i=ms(e,t);else{const t=o.name||(Ti(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=bs(e,a,n,r),ia(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Si(t)?ms(e,t):ji(t)||zi(t)?(i=function(e,t,n,r){const o=La(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:zi(t)?t.constructor.name:"Error",value:xs(t,{isUnhandledRejection:r})}]},extra:{__serialized__:ca(t,i)}};if(n){const t=gs(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,void 0),aa(i,{synthetic:!0}),i):(i=bs(e,t,n,r),ia(i,`${t}`,void 0),aa(i,{synthetic:!0}),i)}(e,t,n&&n.syntheticException||void 0,r);return aa(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),pa(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=bs(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),pa(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(fs&&Wi.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Gi(r)}},i=function(e){return[{type:"user_report"},e]}(e);return ya(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(fs&&Wi.log("No outcomes to send"));if(!this._dsn)return void(fs&&Wi.log("No dsn provided, will not send outcomes"));fs&&Wi.log("Sending outcomes:",e);const t=(n=e,ya((r=this._options.tunnel&&Gi(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:ga(),discarded_events:n}]]));var n,r;this._sendEnvelope(t)}}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,tracesSampleRate:1,integrations:[],stackParser:Bs,transport:function(e,t=function(){if(ws)return ws;if((e=ps.fetch)&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString()))return ws=ps.fetch.bind(ps);var e;const t=ps.document;let n=ps.fetch;if(t&&"function"==typeof t.createElement)try{const e=t.createElement("iframe");e.hidden=!0,t.head.appendChild(e);const r=e.contentWindow;r&&r.fetch&&(n=r.fetch),t.head.removeChild(e)}catch(e){fs&&Wi.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return ws=n.bind(ps)}()){let n=0,r=0;return us(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(e){return ws=void 0,n-=i,r--,fa(e)}}))}}),new Ja(tU);var aU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opazität","datepicker.clear-date":"Datum löschen","datepicker.next-month":"Nächsten Monat","datepicker.open-calendar":"Kalender öffnen","datepicker.previous-month":"Vorheriger Monat","input.clear":"Eingabe löschen","input.hide-password":"Passwort verbergen","input.show-password":"Passwort anzeigen","modal.close":"Schließen","multiselectchips.add-value":"Füge ‘{value}’ hinzu","multiselectchips.remove-all":"Alle entfernen","pagination.next-page":"Nächste Seite","pagination.previous-page":"Vorherige Seite"}}),sU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Quitar todos","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),lU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidad","datepicker.clear-date":"Borrar fecha","datepicker.next-month":"Próximo mes","datepicker.open-calendar":"Abrir calendario","datepicker.previous-month":"Mes anterior","input.clear":"Borrar entrada","input.hide-password":"Ocultar contraseña","input.show-password":"Mostrar contraseña","modal.close":"Cerrar","multiselectchips.add-value":"Agregar ‘{value}’","multiselectchips.remove-all":"Eliminar todo","pagination.next-page":"Siguiente página","pagination.previous-page":"Página anterior"}}),cU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacité","datepicker.clear-date":"Effacer une date","datepicker.next-month":"Le mois prochain","datepicker.open-calendar":"Ouvrir le calendrier","datepicker.previous-month":"Le mois précédent","input.clear":"Effacer l'entrée","input.hide-password":"Masquer le mot de passe","input.show-password":"Montrer le mot de passe","modal.close":"Fermer","multiselectchips.add-value":"Ajouter ‘{value}’","multiselectchips.remove-all":"Supprimer tout","pagination.next-page":"Page suivante","pagination.previous-page":"Page précédente"}}),uU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacità","datepicker.clear-date":"Annulla data","datepicker.next-month":"Il prossimo mese","datepicker.open-calendar":"Calendario aperto","datepicker.previous-month":"Il mese scorso","input.clear":"Ingresso chiaro","input.hide-password":"Nascondi password","input.show-password":"Mostra password","modal.close":"Chiudi","multiselectchips.add-value":"Aggiungi ‘{value}’","multiselectchips.remove-all":"Rimuovi tutti","pagination.next-page":"Pagina seguente","pagination.previous-page":"Pagina precedente"}}),dU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"日付を消去する","datepicker.next-month":"来月","datepicker.open-calendar":"カレンダーを開く","datepicker.previous-month":"前月","input.clear":"入力をクリア","input.hide-password":"パスワードを隠す","input.show-password":"パスワードを表示","modal.close":"閉じる","multiselectchips.add-value":"「 {value} 」を追加","multiselectchips.remove-all":"すべてを削除する","pagination.next-page":"次のページ","pagination.previous-page":"前のページ"}}),pU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"불투명","datepicker.clear-date":"완료일","datepicker.next-month":"다음 달","datepicker.open-calendar":"캘린더 열기","datepicker.previous-month":"지난달","input.clear":"입력 지우기","input.hide-password":"비밀번호 숨기기","input.show-password":"비밀번호 표시","modal.close":"닫기","multiselectchips.add-value":"' {value} ' 추가","multiselectchips.remove-all":"모두 제거","pagination.next-page":"다음 페이지","pagination.previous-page":"이전 페이지"}}),fU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Ondoorzichtigheid","datepicker.clear-date":"Datum legen","datepicker.next-month":"Volgende maand","datepicker.open-calendar":"Kalender openen","datepicker.previous-month":"Vorige maand","input.clear":"Invoer wissen","input.hide-password":"Verberg wachtwoord","input.show-password":"Laat wachtwoord zien","modal.close":"Sluiten","multiselectchips.add-value":"Voeg ‘{value}’ toe","multiselectchips.remove-all":"Verwijder alles","pagination.next-page":"Volgende pagina","pagination.previous-page":"Vorige pagina"}}),hU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Nieprzezroczystość","datepicker.clear-date":"Wyczyść datę","datepicker.next-month":"Następny miesiąc","datepicker.open-calendar":"Otwórz kalendarz","datepicker.previous-month":"Poprzedni miesiąc","input.clear":"Wyczyść pole wprowadzania","input.hide-password":"Ukryj hasło","input.show-password":"Pokaż hasło","modal.close":"Zamknij","multiselectchips.add-value":"Dodaj „{value}”","multiselectchips.remove-all":"Usuń wszystko","pagination.next-page":"Następna strona","pagination.previous-page":"Poprzednia strona"}}),mU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opacidade","datepicker.clear-date":"Limpar data","datepicker.next-month":"Próximo mês","datepicker.open-calendar":"Calendário aberto","datepicker.previous-month":"Mês anterior","input.clear":"Limpar entrada","input.hide-password":"Esconder a senha","input.show-password":"Mostrar senha","modal.close":"Fechar","multiselectchips.add-value":"Adicionar ‘{value}’","multiselectchips.remove-all":"Remover tudo","pagination.next-page":"Próxima página","pagination.previous-page":"Página anterior"}}),gU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Непрозрачность","datepicker.clear-date":"Очистить дату","datepicker.next-month":"Следующий месяц","datepicker.open-calendar":"Открыть календарь","datepicker.previous-month":"Предыдущий месяц","input.clear":"Очистить поле ввода","input.hide-password":"Скрыть пароль","input.show-password":"Показать пароль","modal.close":"Закрыть","multiselectchips.add-value":"Добавить «{value}»","multiselectchips.remove-all":"Удалить всё","pagination.next-page":"Следующая страница","pagination.previous-page":"Предыдущая страница"}}),vU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"Opaklık","datepicker.clear-date":"Tarihi sil","datepicker.next-month":"Gelecek ay","datepicker.open-calendar":"Takvimi aç","datepicker.previous-month":"Geçtiğimiz ay","input.clear":"Girişi temizle","input.hide-password":"Şifreyi gizle","input.show-password":"Şifreyi göster","modal.close":"Kapat","multiselectchips.add-value":"‘{value}’ ekleyin","multiselectchips.remove-all":"Tümünü kaldır","pagination.next-page":"Sonraki sayfa","pagination.previous-page":"Önceki sayfa"}}),yU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下个月","datepicker.open-calendar":"打开日历","datepicker.previous-month":"前一个月","input.clear":"清除输入","input.hide-password":"隐藏密码","input.show-password":"显示密码","modal.close":"关闭","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一页","pagination.previous-page":"前一页"}}),bU=Object.freeze({__proto__:null,default:{"colorpicker.opacity-input":"不透明度","datepicker.clear-date":"清除日期","datepicker.next-month":"下個月","datepicker.open-calendar":"打開日曆","datepicker.previous-month":"前一個月","input.clear":"清除輸入","input.hide-password":"隱藏密碼","input.show-password":"顯示密碼","modal.close":"關閉","multiselectchips.add-value":"添加“ {value} ”","multiselectchips.remove-all":"全部移除","pagination.next-page":"下一頁","pagination.previous-page":"前一頁"}});export{oU as CompactView,KC as Login,SC as Modal};
|