@bynder/compact-view 2.4.3 → 2.6.1
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/README.md +27 -37
- package/components.d.ts +225 -237
- package/components.js +22 -3
- package/index.d.ts +64 -104
- package/index.js +22 -3
- package/package.json +20 -20
package/index.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* bynder-compactview v2.
|
|
4
|
-
* (c)
|
|
3
|
+
* bynder-compactview v2.6.1
|
|
4
|
+
* (c) 2022 Bynder
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{createContext as e,createElement as t,useState as r,useLayoutEffect as n,useRef as o,useEffect as i,useContext as a,forwardRef as s,useMemo as u,Component as c,useCallback as l,Fragment as d,memo as f}from"react";import{createPortal as v}from"react-dom";var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var m=function(e){return e&&e.Math==Math&&e},g=m("object"==typeof globalThis&&globalThis)||m("object"==typeof window&&window)||m("object"==typeof self&&self)||m("object"==typeof p&&p)||Function("return this")(),b=function(e){try{return!!e()}catch(e){return!0}},x=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={}.propertyIsEnumerable,w=Object.getOwnPropertyDescriptor,k={f:w&&!y.call({1:2},1)?function(e){var t=w(this,e);return!!t&&t.enumerable}:y},N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L={}.toString,C=function(e){return L.call(e).slice(8,-1)},S="".split,U=b((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==C(e)?S.call(e,""):Object(e)}:Object,A=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},_=function(e){return U(A(e))},T=function(e){return"object"==typeof e?null!==e:"function"==typeof e},q=function(e,t){if(!T(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!T(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!T(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!T(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},G={}.hasOwnProperty,Q=function(e,t){return G.call(e,t)},O=g.document,I=T(O)&&T(O.createElement),M=function(e){return I?O.createElement(e):{}},E=!x&&!b((function(){return 7!=Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a})),j=Object.getOwnPropertyDescriptor,z={f:x?j:function(e,t){if(e=_(e),t=q(t,!0),E)try{return j(e,t)}catch(e){}if(Q(e,t))return N(!k.f.call(e,t),e[t])}},P=function(e){if(!T(e))throw TypeError(String(e)+" is not an object");return e},R=Object.defineProperty,F={f:x?R:function(e,t,r){if(P(e),t=q(t,!0),P(r),E)try{return R(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},B=x?function(e,t,r){return F.f(e,t,N(1,r))}:function(e,t,r){return e[t]=r,e},V=function(e,t){try{B(g,e,t)}catch(r){g[e]=t}return t},D=g["__core-js_shared__"]||V("__core-js_shared__",{}),H=Function.toString;"function"!=typeof D.inspectSource&&(D.inspectSource=function(e){return H.call(e)});var W,$,Y,J=D.inspectSource,X=g.WeakMap,K="function"==typeof X&&/native code/.test(J(X)),Z=h((function(e){(e.exports=function(e,t){return D[e]||(D[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ee=0,te=Math.random(),re=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++ee+te).toString(36)},ne=Z("keys"),oe=function(e){return ne[e]||(ne[e]=re(e))},ie={},ae=g.WeakMap;if(K){var se=new ae,ue=se.get,ce=se.has,le=se.set;W=function(e,t){return le.call(se,e,t),t},$=function(e){return ue.call(se,e)||{}},Y=function(e){return ce.call(se,e)}}else{var de=oe("state");ie[de]=!0,W=function(e,t){return B(e,de,t),t},$=function(e){return Q(e,de)?e[de]:{}},Y=function(e){return Q(e,de)}}var fe,ve={set:W,get:$,has:Y,enforce:function(e){return Y(e)?$(e):W(e,{})},getterFor:function(e){return function(t){var r;if(!T(t)||(r=$(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},pe=h((function(e){var t=ve.get,r=ve.enforce,n=String(String).split("String");(e.exports=function(e,t,o,i){var a=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||Q(o,"name")||B(o,"name",t),r(o).source=n.join("string"==typeof t?t:"")),e!==g?(a?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=o:B(e,t,o)):s?e[t]=o:V(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||J(this)}))})),he=g,me=function(e){return"function"==typeof e?e:void 0},ge=function(e,t){return arguments.length<2?me(he[e])||me(g[e]):he[e]&&he[e][t]||g[e]&&g[e][t]},be=Math.ceil,xe=Math.floor,ye=function(e){return isNaN(e=+e)?0:(e>0?xe:be)(e)},we=Math.min,ke=function(e){return e>0?we(ye(e),9007199254740991):0},Ne=Math.max,Le=Math.min,Ce=function(e){return function(t,r,n){var o,i=_(t),a=ke(i.length),s=function(e,t){var r=ye(e);return r<0?Ne(r+t,0):Le(r,t)}(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},Se=(Ce(!0),Ce(!1)),Ue=function(e,t){var r,n=_(e),o=0,i=[];for(r in n)!Q(ie,r)&&Q(n,r)&&i.push(r);for(;t.length>o;)Q(n,r=t[o++])&&(~Se(i,r)||i.push(r));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_e=Ae.concat("length","prototype"),Te={f:Object.getOwnPropertyNames||function(e){return Ue(e,_e)}},qe={f:Object.getOwnPropertySymbols},Ge=ge("Reflect","ownKeys")||function(e){var t=Te.f(P(e)),r=qe.f;return r?t.concat(r(e)):t},Qe=function(e,t){for(var r=Ge(t),n=F.f,o=z.f,i=0;i<r.length;i++){var a=r[i];Q(e,a)||n(e,a,o(t,a))}},Oe=/#|\.prototype\./,Ie=function(e,t){var r=Ee[Me(e)];return r==ze||r!=je&&("function"==typeof t?b(t):!!t)},Me=Ie.normalize=function(e){return String(e).replace(Oe,".").toLowerCase()},Ee=Ie.data={},je=Ie.NATIVE="N",ze=Ie.POLYFILL="P",Pe=Ie,Re=z.f,Fe=function(e,t,r){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},Be=Array.isArray||function(e){return"Array"==C(e)},Ve=!!Object.getOwnPropertySymbols&&!b((function(){return!String(Symbol())})),De=Ve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,He=Z("wks"),We=g.Symbol,$e=De?We:We&&We.withoutSetter||re,Ye=function(e){return Q(He,e)||(Ve&&Q(We,e)?He[e]=We[e]:He[e]=$e("Symbol."+e)),He[e]},Je=Ye("species"),Xe=function(e,t){var r;return Be(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!Be(r.prototype)?T(r)&&null===(r=r[Je])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)},Ke=[].push,Ze=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=5==e||i;return function(s,u,c,l){for(var d,f,v=Object(A(s)),p=U(v),h=Fe(u,c,3),m=ke(p.length),g=0,b=l||Xe,x=t?b(s,m):r?b(s,0):void 0;m>g;g++)if((a||g in p)&&(f=h(d=p[g],g,v),e))if(t)x[g]=f;else if(f)switch(e){case 3:return!0;case 5:return d;case 6:return g;case 2:Ke.call(x,d)}else if(o)return!1;return i?-1:n||o?o:x}},et={forEach:Ze(0),map:Ze(1),filter:Ze(2),some:Ze(3),every:Ze(4),find:Ze(5),findIndex:Ze(6)},tt=Object.keys||function(e){return Ue(e,Ae)},rt=x?Object.defineProperties:function(e,t){P(e);for(var r,n=tt(t),o=n.length,i=0;o>i;)F.f(e,r=n[i++],t[r]);return e},nt=ge("document","documentElement"),ot=oe("IE_PROTO"),it=function(){},at=function(e){return"<script>"+e+"<\/script>"},st=function(){try{fe=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;st=fe?function(e){e.write(at("")),e.close();var t=e.parentWindow.Object;return e=null,t}(fe):((t=M("iframe")).style.display="none",nt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(at("document.F=Object")),e.close(),e.F);for(var r=Ae.length;r--;)delete st.prototype[Ae[r]];return st()};ie[ot]=!0;var ut=Object.create||function(e,t){var r;return null!==e?(it.prototype=P(e),r=new it,it.prototype=null,r[ot]=e):r=st(),void 0===t?r:rt(r,t)},ct=Ye("unscopables"),lt=Array.prototype;null==lt[ct]&&F.f(lt,ct,{configurable:!0,value:ut(null)});var dt=Object.defineProperty,ft={},vt=function(e){throw e},pt=et.find,ht=!0,mt=function(e,t){if(Q(ft,"find"))return ft.find;t||(t={});var r=[].find,n=!!Q(t,"ACCESSORS")&&t.ACCESSORS,o=Q(t,0)?t[0]:vt,i=Q(t,1)?t[1]:void 0;return ft.find=!!r&&!b((function(){if(n&&!x)return!0;var e={length:-1};n?dt(e,1,{enumerable:!0,get:vt}):e[1]=1,r.call(e,o,i)}))}();"find"in[]&&Array(1).find((function(){ht=!1})),function(e,t){var r,n,o,i,a,s=e.target,u=e.global,c=e.stat;if(r=u?g:c?g[s]||V(s,{}):(g[s]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Re(r,n))&&a.value:r[n],!Pe(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Qe(i,o)}(e.sham||o&&o.sham)&&B(i,"sham",!0),pe(r,n,i,e)}}({target:"Array",proto:!0,forced:ht||!mt},{find:function(e){return pt(this,e,arguments.length>1?arguments[1]:void 0)}}),lt[ct].find=!0;var gt=Function.call;function bt(e,t){return t.tag=e,t}Fe(gt,g.Array.prototype.find,void 0),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=window.document;r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.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(),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,r){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!==r[t-1]}))},r.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},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(n(window,"resize",this._checkForIntersections,!0),n(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),r=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var o=n.element,a=i(o),s=this._rootContainsTarget(o),u=n.entry,c=e&&s&&this._computeTargetAndRootIntersection(o,r),l=n.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:r,intersectionRect:c});u?e&&s?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(t,r){if("none"!=window.getComputedStyle(t).display){for(var n,o,a,u,c,l,d,f,v=i(t),p=s(t),h=!1;!h;){var m=null,g=1==p.nodeType?window.getComputedStyle(p):{};if("none"==g.display)return;if(p==this.root||p==e?(h=!0,m=r):p!=e.body&&p!=e.documentElement&&"visible"!=g.overflow&&(m=i(p)),m&&(n=m,o=v,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(n.top,o.top),u=Math.min(n.bottom,o.bottom),c=Math.max(n.left,o.left),f=u-a,!(v=(d=(l=Math.min(n.right,o.right))-c)>=0&&f>=0&&{top:a,bottom:u,left:c,right:l,width:d,height:f})))break;p=s(p)}return v}},r.prototype._getRootRect=function(){var t;if(this.root)t=i(this.root);else{var r=e.documentElement,n=e.body;t={top:0,left:0,right:r.clientWidth||n.clientWidth,width:r.clientWidth||n.clientWidth,bottom:r.clientHeight||n.clientHeight,height:r.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100})),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},r.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==n)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==r||i==n||i<r!=i<n)return!0}},r.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},r.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},r.prototype._registerInstance=function(){},r.prototype._unregisterInstance=function(){},window.IntersectionObserver=r,window.IntersectionObserverEntry=t}function t(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=r?Number((o/r).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=function(e,t){var r=null;return function(){r||(r=setTimeout((function(){e(),r=null}),t))}}(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function n(e,t,r,n){"function"==typeof e.addEventListener?e.addEventListener(t,r,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function o(e,t,r,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,r)}function i(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 a(e,t){for(var r=t;r;){if(r==e)return!0;r=s(r)}return!1}function s(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var xt=["Invalid_argument",-3],yt=["Division_by_zero",-5];function wt(e,t,r){for(var n=new Array(r),o=0,i=t;o<r;)n[o]=e[i],o=o+1|0,i=i+1|0;return n}function kt(e,t){if(t<0||t>=e.length)throw[xt,"index out of bounds"];return e[t]}function Nt(e,t){for(;;){var r=t,n=e,o=n.length,i=0===o?1:o,a=i-r.length|0;if(0===a)return n.apply(null,r);if(!(a<0))return function(e,t){return function(r){return Nt(e,t.concat([r]))}}(n,r);t=wt(r,i,0|-a),e=n.apply(null,wt(r,0,i))}}function Lt(e,t){var r=e.length;return 1===r?e(t):function(e,t,r){switch(r){case 1:return e(t);case 2:return function(r){return e(t,r)};case 3:return function(r,n){return e(t,r,n)};case 4:return function(r,n,o){return e(t,r,n,o)};case 5:return function(r,n,o,i){return e(t,r,n,o,i)};case 6:return function(r,n,o,i,a){return e(t,r,n,o,i,a)};case 7:return function(r,n,o,i,a,s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t])}}(e,t,r)}function Ct(e){return 1===e.length?e:function(t){return Lt(e,t)}}function St(e,t,r){var n=e.length;return 2===n?e(t,r):function(e,t,r,n){switch(n){case 1:return Nt(e(t),[r]);case 2:return e(t,r);case 3:return function(n){return e(t,r,n)};case 4:return function(n,o){return e(t,r,n,o)};case 5:return function(n,o,i){return e(t,r,n,o,i)};case 6:return function(n,o,i,a){return e(t,r,n,o,i,a)};case 7:return function(n,o,i,a,s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t,r])}}(e,t,r,n)}function Ut(e){return 2===e.length?e:function(t,r){return St(e,t,r)}}function At(e,t,r,n){var o=e.length;return 3===o?e(t,r,n):function(e,t,r,n,o){switch(o){case 1:return Nt(e(t),[r,n]);case 2:return Nt(e(t,r),[n]);case 3:return e(t,r,n);case 4:return function(o){return e(t,r,n,o)};case 5:return function(o,i){return e(t,r,n,o,i)};case 6:return function(o,i,a){return e(t,r,n,o,i,a)};case 7:return function(o,i,a,s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t,r,n])}}(e,t,r,n,o)}function _t(e,t,r,n,o){var i=e.length;return 4===i?e(t,r,n,o):function(e,t,r,n,o,i){switch(i){case 1:return Nt(e(t),[r,n,o]);case 2:return Nt(e(t,r),[n,o]);case 3:return Nt(e(t,r,n),[o]);case 4:return e(t,r,n,o);case 5:return function(i){return e(t,r,n,o,i)};case 6:return function(i,a){return e(t,r,n,o,i,a)};case 7:return function(i,a,s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t,r,n,o])}}(e,t,r,n,o,i)}function Tt(e,t,r,n,o,i){var a=e.length;return 5===a?e(t,r,n,o,i):function(e,t,r,n,o,i,a){switch(a){case 1:return Nt(e(t),[r,n,o,i]);case 2:return Nt(e(t,r),[n,o,i]);case 3:return Nt(e(t,r,n),[o,i]);case 4:return Nt(e(t,r,n,o),[i]);case 5:return e(t,r,n,o,i);case 6:return function(a){return e(t,r,n,o,i,a)};case 7:return function(a,s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t,r,n,o,i])}}(e,t,r,n,o,i,a)}function qt(e,t,r,n,o,i,a){var s=e.length;return 6===s?e(t,r,n,o,i,a):function(e,t,r,n,o,i,a,s){switch(s){case 1:return Nt(e(t),[r,n,o,i,a]);case 2:return Nt(e(t,r),[n,o,i,a]);case 3:return Nt(e(t,r,n),[o,i,a]);case 4:return Nt(e(t,r,n,o),[i,a]);case 5:return Nt(e(t,r,n,o,i),[a]);case 6:return e(t,r,n,o,i,a);case 7:return function(s){return e(t,r,n,o,i,a,s)};default:return Nt(e,[t,r,n,o,i,a])}}(e,t,r,n,o,i,a,s)}xt.tag=248,yt.tag=248;var Gt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Qt=e&&e(Gt),Ot=function(){return(Ot=Object.assign||function(e){for(var t,r=arguments,n=1,o=arguments.length;n<o;n++)for(var i in t=r[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function It(e){return function(r){return t(Mt,Ot({attr:Ot({},e.attr)},r),function e(r){return r&&r.map((function(r,n){return t(r.tag,Ot({key:n},r.attr),e(r.child))}))}(e.child))}}function Mt(e){var r=function(r){var n,o=e.size||r.size||"1em";r.className&&(n=r.className),e.className&&(n=(n?n+" ":"")+e.className);var i=e.attr,a=e.title,s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&(r[n[o]]=e[n[o]])}return r}(e,["attr","title"]);return t("svg",Ot({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,s,{className:n,style:Ot({color:e.color||r.color},r.style,e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&t("title",null,a),e.children)};return void 0!==Qt?t(Qt.Consumer,null,(function(e){return r(e)})):r(Gt)}var Et=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Et.displayName="MdAspectRatio";var jt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)};jt.displayName="MdExitToApp";var zt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};zt.displayName="MdLabel";var Pt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)};Pt.displayName="MdOpenInNew";var Rt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 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"}}]})(e)};Rt.displayName="MdSearch";var Ft=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Ft.displayName="MdVideocam";var Bt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.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)};Bt.displayName="MdVolumeUp";var Vt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)};Vt.displayName="MdSort";var Dt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Dt.displayName="MdInsertDriveFile";var Ht=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Ht.displayName="MdInsertPhoto";var Wt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};Wt.displayName="MdPhotoCamera";var $t=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};$t.displayName="MdPhotoLibrary";var Yt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)};Yt.displayName="MdTune";var Jt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)};Jt.displayName="MdArrowDropDown";var Xt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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 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"}}]})(e)};Xt.displayName="MdCancel";var Kt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)};Kt.displayName="MdCheck";var Zt=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)};Zt.displayName="MdChevronLeft";var er=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)};er.displayName="MdChevronRight";var tr=function(e){return It({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};tr.displayName="MdClose";var rr=[];function nr(e){if(void 0===e){var t=[rr,0];return t.tag=256,t}if(null!==e&&e[0]===rr){var r=e[1]+1|0,n=[rr,r];return n.tag=256,n}return e}function or(e){return null==e?void 0:nr(e)}function ir(e){return null===e?void 0:nr(e)}function ar(e){if(null!==e&&e[0]===rr){var t=e[1];return 0===t?void 0:[rr,t-1|0]}return e}function sr(e,t){if(t in e)return nr(e[t])}function ur(e){for(var t=Object.keys(e),r=t.length,n=new Array(r),o=0,i=r-1|0;o<=i;++o){var a=t[o];n[o]=[a,e[a]]}return n}function cr(e){for(var t=Object.keys(e),r=t.length,n=new Array(r),o=0,i=r-1|0;o<=i;++o)n[o]=e[t[o]];return n}function lr(e){for(var t={},r=0,n=e.length-1|0;r<=n;++r){var o=e[r];t[o[0]]=o[1]}return t}var dr={contents:void 0};function fr(e){var t=dr.contents;if(void 0!==t){var r=sr(ar(t),e);return void 0!==r?""===r?e:r:e}return e}var vr={contents:0};function pr(e){var t=[e,(vr.contents=vr.contents+1,vr.contents)];return t.tag=248,t}var hr=pr("Caml_js_exceptions.Error");function mr(e){return function(e){if(void 0===e)return!1;if(248===e.tag)return!0;var t=e[0];return void 0!==t&&248===t.tag}(e)?e:[hr,e]}function gr(e){throw new Error(e)}function br(e){switch(e){case 0:return"beforebegin";case 1:return"afterbegin";case 2:return"beforeend";case 3:return"afterend"}}function xr(e){var t=e-1|0;return t>11||t<0?12:t}function yr(e){return{nodeType:function(e){return xr(e.nodeType)}}}function wr(e){if(0===function(e){return xr(e.nodeType)}(e))return nr(e)}function kr(e){return{asHtmlElement:function(e){return ir(void 0!==(t=e).contentEditable?t:null);var t},ofNode:wr,insertAdjacentElement:function(e,t,r){return r.insertAdjacentElement(br(e),t),0},insertAdjacentHTML:function(e,t,r){return r.insertAdjacentHTML(br(e),t),0},insertAdjacentText:function(e,t,r){return r.insertAdjacentText(br(e),t),0}}}var Nr=yr().nodeType,Lr=Object.freeze({__proto__:null,Impl:kr,nodeType:Nr,asHtmlElement:function(e){return ir(void 0!==(t=e).contentEditable?t:null);var t},ofNode:wr,insertAdjacentElement:function(e,t,r){return r.insertAdjacentElement(br(e),t),0},insertAdjacentHTML:function(e,t,r){return r.insertAdjacentHTML(br(e),t),0},insertAdjacentText:function(e,t,r){return r.insertAdjacentText(br(e),t),0}}),Cr=yr(),Sr=kr(),Ur=(Cr.nodeType,Sr.asHtmlElement,Sr.ofNode,Sr.insertAdjacentElement,Sr.insertAdjacentHTML,Sr.insertAdjacentText,Lr),Ar=function(e){return Array.prototype.slice.call(e.children)},_r=function(e,t,r){return e.style.setProperty(t,r,""),e},Tr=function(e){return ir(localStorage.getItem(e))},qr=function(e,t){return void 0!==t?(localStorage.setItem(e,t),0):(localStorage.removeItem(e),0)},Gr=window,Qr=window.location,Or=Gr.document,Ir=function(e){return e>2147483647?2147483647:e<-2147483648?-2147483648:Math.ceil(e)};function Mr(e,t){return e<t?-1:e===t?0:1}function Er(e,t){return e===t?0:e<t?-1:1}function jr(e,t,r,n,o){if(n<=t){for(var i=0,a=o-1|0;i<=a;++i)r[i+n|0]=e[i+t|0];return 0}for(var s=o-1|0;s>=0;--s)r[s+n|0]=e[s+t|0];return 0}function zr(e,t){for(var r=e.length,n=new Array(r),o=0,i=r-1|0;o<=i;++o)n[o]=t(e[o]);return n}function Pr(e,t){return zr(e,Ct(t))}function Rr(e,t){return function(e,t){for(var r=e.length,n=new Array(r),o=0,i=r-1|0;o<=i;++o)n[o]=t(o,e[o]);return n}(e,Ut(t))}function Fr(e,t){return function(e,t){for(var r=e.length,n=new Array(r),o=0,i=0,a=r-1|0;i<=a;++i){var s=e[i];t(s)&&(n[o]=s,o=o+1|0)}return n.length=o,n}(e,Ct(t))}function Br(e,t){return function(e,t){for(var r=0,n=e.length-1|0;r<=n;++r)t(e[r]);return 0}(e,Ct(t))}function Vr(e,t){return function(e,t){for(var r=e,n=0,o=t,i=e.length;;){var a=n;if(a===i)return!1;if(o(r[a]))return!0;n=a+1|0}}(e,Ct(t))}function Dr(e,t){return function(e,t){for(var r=e.length,n=new Array(r),o=0,i=0,a=r-1|0;i<=a;++i){var s=t(e[i]);void 0!==s&&(n[o]=ar(s),o=o+1|0)}return n.length=o,n}(e,Ct(t))}function Hr(e,t){return t.push(e),0}function Wr(e){return 0===e.length}var $r=function(e,t){if(t>=0&&t<e.length)return nr(e[t])};function Yr(e,t){if(void 0!==e)return nr(t(ar(e)))}function Jr(e,t){return void 0!==e?ar(e):t}function Xr(e){return void 0!==e}function Kr(e,t,r){return function(e,t,r){return void 0!==e?void 0!==t&&r(ar(e),ar(t)):void 0===t}(e,t,Ut(r))}function Zr(e,t){return Yr(e,Ct(t))}function en(e,t){return function(e,t){if(void 0!==e)return t(ar(e))}(e,Ct(t))}function tn(e,t){return Yr(e,Ct(t)),0}var rn=Jr,nn=Kr;function on(e,t){return void 0!==e?bt(0,[ar(e)]):bt(1,[t])}function an(e,t){return void 0!==e?e:t}var sn=Jr,un=Xr,cn=function(e){return void 0===e},ln=Kr,dn=function(e){return e.target.value},fn=function(e){if(void 0!==e){var t=e;switch(t){case"aif":return"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/aiff.jpg";case"m4a":return"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/m4r.jpg";case"aiff":case"avi":case"doc":case"docx":case"fla":case"indd":case"m4r":case"mov":case"mp3":case"mp4":case"mpeg":case"numbers":case"otf":case"pages":case"pdf":case"ppt":case"pptx":case"rar":case"ttf":case"txt":case"wav":case"webm":case"xls":case"xlsx":case"zip":break;default:return"https://d8ejoa1fys2rk.cloudfront.net/includes/img/common/no-image.png"}return"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/"+t+".jpg"}return"https://d8ejoa1fys2rk.cloudfront.net/includes/img/common/no-image.png"};function vn(e){return"https://"+e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"")+"/"}var pn={ensureValidUrl:vn,getQueryParameter:function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var r=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))},extension:function(e){var t=function(e,t){var r=t.lastIndexOf(e);if(-1!==r)return t.slice(r+1|0)},r=sn(t("/",e),e);return t(".",r)},isBynderPortal:function(e){var t=vn(e)+"feeds/media/is-bynder-portal/";return fetch(t).then((function(e){var r=e.status,n=e.headers.get("Content-Type");return 200!==r||null===n||"application/json;charset=UTF-8"!==n?Promise.reject([xt,t]):Promise.resolve(!0)})).catch((function(e){return Promise.resolve(!1)}))}},hn=function(e,t,r){return(1!==e?t:r).replace("{}",String(e))},mn=" ",gn=function(e){return e.join(" ")},bn=function(e,t){return e?t:""},xn=function(e){return void 0!==e?e:""},yn=function(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e},wn=function(e){for(var t=e.length,r=0,n=5381;;){var o=r;if(!(o<t))return n;n=((n<<5)+n|0)^e.charCodeAt(o),r=o+1|0}},kn=function(e){if(e<1)return"0 Bytes";var t,r=Math.floor(Math.log(e)/Math.log(1024)),n=Number((e/Math.pow(1024,r)).toFixed(1));switch(0|r){case 0:t="Bytes";break;case 1:t="kB";break;case 2:t="MB";break;case 3:t="GB";break;case 4:t="TB";break;case 5:t="PB";break;case 6:t="EB";break;case 7:t="ZB";break;case 8:t="YB";break;default:t=function(e){throw new RangeError("O_O")}()}return String(n)+" "+String(t)},Nn=function(e){return new Promise((function(e,t){return Gr.addEventListener("message",(function(t){return e(t)})),0}))};function Ln(e){var t=function(e,t){var i={contents:e},a={contents:[]},s=function(e,t,r){var n=void 0!==t?t:function(e,t){return Object.is(e,t)},o={contents:i.contents},s=function(t){var r=i.contents;return St(n,r,o.contents)||(Lt(e,r),o.contents=r),0};return a.contents=a.contents.concat([s]),function(e){return a.contents=a.contents.filter((function(e){return e!==s})),0}},u=function(e,t,r,n){var o=void 0!==r?r:function(e,t){return Object.is(e,t)},s={contents:Lt(e,i.contents)},u=function(r){var n=Lt(e,i.contents);return St(o,n,s.contents)||(Lt(t,n),s.contents=n),0};return a.contents=a.contents.concat([u]),function(e){return a.contents=a.contents.filter((function(e){return e!==u})),0}};return{getState:function(e){return i.contents},subscribe:s,subscribeWithSelector:u,dispatch:function(e){return i.contents=St(t,i.contents,e),a.contents.forEach((function(e){return Lt(e,0)})),0},useStore:function(e,t){var o=r((function(){return 1}))[1];return n((function(){var t=s((function(e){return Lt(o,(function(e){return e+1|0}))}),e);return Lt(o,(function(e){return e+1|0})),function(e){return Lt(t,0)}}),[]),i.contents},useStoreWithSelector:function(e,t,a){var s=o(void 0),c=o(e),l=s.current,d=c.current,f=e===d&&void 0!==l?ar(l):Lt(e,i.contents);n((function(){s.current=nr(f)}),[f]),n((function(){c.current=e}),[e]);var v=r((function(){return 1}))[1];return n((function(){var r=u((function(e){return Lt(c.current,e)}),(function(e){return s.current=nr(e),Lt(v,(function(e){return e+1|0}))}),t);return s.current=nr(Lt(e,i.contents)),Lt(v,(function(e){return e+1|0})),function(e){return Lt(r,0)}}),[]),f}}}(e.initialState,e.reducer),i=t.getState,a=t.dispatch,s=function(e,t){return e===t};return{state:i,send:a,use:function(r){return St(t.useStore,e.equal,0)},useWith:function(e,r){return At(t.useStoreWithSelector,r,void 0!==e?e:s,0)},subscribe:function(r){return At(t.subscribe,r,e.equal,0),0},subscribeWith:function(e,r,n){return _t(t.subscribeWithSelector,r,n,void 0!==e?e:s,0),0}}}function Cn(e){if("number"!=typeof e)return e[0];switch(e){case 0:return"GET";case 1:return"HEAD";case 2:return"POST";case 3:return"PUT";case 4:return"DELETE";case 5:return"CONNECT";case 6:return"OPTIONS";case 7:return"TRACE";case 8:return"PATCH"}}function Sn(e){switch(e){case 0:return"navigate";case 1:return"same-origin";case 2:return"no-cors";case 3:return"cors"}}function Un(e){switch(e){case 0:return"omit";case 1:return"same-origin";case 2:return"include"}}function An(e){switch(e){case 0:return"default";case 1:return"no-store";case 2:return"reload";case 3:return"no-cache";case 4:return"force-cache";case 5:return"only-if-cached"}}function _n(e){switch(e){case 0:return"follow";case 1:return"error";case 2:return"manual"}}function Tn(e,t){if(void 0!==t)return nr(Lt(e,ar(t)))}var qn=function(e,t,r,n,o,i,a,s,u,c,l,d){var f=void 0!==o?o:0,v=void 0!==c?c:"",p=Tn(_n,u),h=Tn(An,s),m=Tn(Un,a),g=Tn(Sn,i),b=function(e){switch(e){case 0:return"";case 1:return"no-referrer";case 2:return"no-referrer-when-downgrade";case 3:return"same-origin";case 4:return"origin";case 5:return"strict-origin";case 6:return"origin-when-cross-origin";case 7:return"strict-origin-when-cross-origin";case 8:return"unsafe-url"}}(f),x=Tn(Cn,e);return function(e){var o={};return void 0!==x&&(o.method=ar(x)),void 0!==t&&(o.headers=ar(t)),void 0!==r&&(o.body=ar(r)),void 0!==n&&(o.referrer=ar(n)),void 0!==b&&(o.referrerPolicy=ar(b)),void 0!==g&&(o.mode=ar(g)),void 0!==m&&(o.credentials=ar(m)),void 0!==h&&(o.cache=ar(h)),void 0!==p&&(o.redirect=ar(p)),void 0!==v&&(o.integrity=ar(v)),void 0!==l&&(o.keepalive=ar(l)),void 0!==d&&(o.signal=ar(d)),o}};function Gn(e,t,r,n){if(r<0||n<0||r>(t.length-n|0))throw[xt,"input"];return function(e){var t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;if(void 0!==this)return this;throw new Error("Unable to locate global `this`")}();if(void 0===t[e])throw new Error(e+" not polyfilled by BuckleScript yet\n");return t[e]}("caml_ml_input")(e,t,r,n)}pr("Pervasives.Exit"),pr("Array.Bottom");var Qn=pr("Json_decode.DecodeError");function On(e){if("number"==typeof e)return e;throw[Qn,"Expected number, got "+JSON.stringify(e)]}function In(e){var t=On(e);if(function(e){return!!isFinite(e)&&Math.floor(e)===e}(t))return t;throw[Qn,"Expected integer, got "+JSON.stringify(e)]}function Mn(e){if("string"==typeof e)return e;throw[Qn,"Expected string, got "+JSON.stringify(e)]}function En(e,t,r){if("object"!=typeof r||Array.isArray(r)||null===r)throw[Qn,"Expected object, got "+JSON.stringify(r)];var n=sr(r,e);if(void 0===n)throw[Qn,"Expected field '"+String(e)+"'"];try{return Lt(t,ar(n))}catch(t){var o=mr(t);if(o[0]===Qn)throw[Qn,o[1]+"\n\tat field '"+e+"'"];throw o}}function jn(e,t){try{return nr(Lt(e,t))}catch(e){var r=mr(e);if(r[0]===Qn)return;throw r}}function zn(e,t){return t.then((function(t){return Lt(e,t),Promise.resolve(0)})),0}var Pn=function(e){return Promise.resolve(e)};function Rn(e){return Promise.resolve(bt(0,[e]))}function Fn(e,t){return t.then((function(t){return t.tag?Promise.resolve(t):Lt(e,t[0])}))}function Bn(e){return e.then((function(e){return Promise.resolve(bt(0,[e]))})).catch((function(e){return Promise.resolve(bt(1,[e.toString()]))}))}var Vn={$$return:Rn,fail:function(e){return Promise.resolve(bt(1,[e]))},resolve:function(e){return Promise.resolve(e)}},Dn="42b1eefa-d754-4802-b9c4-bf80d6ab6052",Hn="https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/loginCompleted.html",Wn=function(e){if(window.TextEncoder)return new TextEncoder("utf-8").encode(e);for(var t=unescape(encodeURIComponent(e)),r=new Uint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r},$n=function(e,t,r){return{client_id:Dn,code_challenge:e,code_challenge_method:"S256",redirect_uri:Hn,response_type:"code",scope:r.join(" "),state:t}};function Yn(e){var t;return(t=ur(e),Pr(t,(function(e){var t=encodeURIComponent(e[0]),r=encodeURIComponent(e[1]);return String(t)+"="+String(r)}))).join("&")}var Jn=function(e,t){return pn.ensureValidUrl(t)+"v6/authentication/oauth2/auth?"+Yn(e)},Xn=function(e,t){return{grant_type:"authorization_code",client_id:Dn,code_verifier:t,code:e,redirect_uri:Hn}},Kn=function(e){return{grant_type:"refresh_token",client_id:Dn,refresh_token:e}},Zn=function(e){return btoa(String.fromCharCode.apply(null,new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},eo=function(e){return function(e){var t=window.crypto&&(window.crypto.subtle||window.crypto.webkitSubtle),r=window.msCrypto&&window.msCrypto.subtle;return t?t.digest("SHA-256",e):r?new Promise((function(t,n){var o=r.digest("SHA-256",e);o.oncomplete=function(){t(o.result)},o.onerror=function(e){n(e)}})):Promise.reject("Access to the WebCrypto API is restricted to secure origins. Compact View requires HTTPS when used outside localhost (for development).")}(Lt(Wn,e))},to=function(e){var t;return Pr((t=new Uint32Array(new Array(28)),(window.crypto||window.msCrypto).getRandomValues(t)),(function(e){return("0"+e.toString(16)).substr(-2)})).join("")},ro=function(e,t){var r=pn.ensureValidUrl(t)+"v6/authentication/oauth2/token",n=Yn(e);return Bn(fetch(r,qn(2,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},nr(n),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then((function(e){return e.json().then((function(e){return Pn(function(e){return{refreshToken:En("refresh_token",Mn,e),accessToken:En("access_token",Mn,e),expiresIn:En("expires_in",On,e)}}(e))}))})))},no=function(e,t){var r=pn.ensureValidUrl(t)+"v6/authentication/oauth2/token",n=Yn(e);return Bn(fetch(r,qn(2,{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},nr(n),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then((function(e){return e.json().then((function(e){return Pn(function(e){return{accessToken:En("access_token",Mn,e),expiresIn:En("expires_in",On,e)}}(e))}))})))},oo=Ln({initialState:{accessToken:void 0,refreshToken:Tr("cvrt"),accountDomain:Tr("cvad")},reducer:function(e,t){if("number"==typeof t)return qr("cvrt",void 0),{accessToken:void 0,refreshToken:void 0,accountDomain:Tr("cvad")};if(t.tag)return{accessToken:t[0],refreshToken:e.refreshToken,accountDomain:e.accountDomain};var r=t[0];return qr("cvrt",r.refreshToken),qr("cvad",r.accountDomain),r},equal:function(e,t){var r=!1,n=t.accessToken,o=e.accessToken;if(void 0!==o?void 0!==n&&o===n:void 0===n){var i=t.refreshToken,a=e.refreshToken;r=void 0!==a?void 0!==i&&a===i:void 0===i}if(r){var s=t.accountDomain,u=e.accountDomain;return void 0!==u?void 0!==s&&u===s:void 0===s}return!1}}),io={contents:void 0};function ao(e){return tn(io.contents,(function(e){return clearTimeout(e),0})),io.contents=nr(setTimeout((function(e){return Lt(oo.send,bt(1,[void 0]))}),1e3*e)),0}function so(e){var t=Lt(oo.use,0),r=t.accountDomain,n=t.refreshToken,o=t.accessToken;return i((function(){var e;if(void 0!==o||void 0===n||void 0===r)e=Rn(0);else{var t=r,i=no;e=Fn((function(e){return ao(e.expiresIn),Lt(oo.send,bt(1,[e.accessToken])),Vn.$$return(0)}),function(e){return St(i,e,t)}(Kn(n)))}zn((function(e){return e.tag?(console.error(e[0]),Lt(oo.send,0)):0}),e)}),[o,n,r]),t}var uo={contents:void 0};function co(e){return t=function(e){return uo.contents=void 0,bt(1,["Login window closed"])},r=function(t){return function(e){try{return!e||e.closed}catch(e){return!0}}(e)},n={contents:0},new Promise((function(e,o){var i=function(o){return Lt(r,0)?e(Lt(t,0)):n.contents<6e5?(n.contents=n.contents+1e3|0,setTimeout(i,1e3),0):(Lt(t,0),e(bt(1,["Timeout"])))};return setTimeout(i,1e3),0}));var t,r,n}function lo(e){return Lt(oo.send,0)}function fo(e){var t=function(e,t){return e===t};return At(oo.subscribeWith,(function(e){return function(r){return nn(e,r,t)}}),(function(e){return e.refreshToken}),(function(t){return Lt(e,0)}))}function vo(e,t,r,n,o,i,a,s,u){for(var c=t+r|0,l=o+i|0,d=t,f=e[t],v=o,p=n[o],h=s;;){var m=h,g=p,b=v,x=f,y=d;if(u(x,g)<=0){a[m]=x;var w=y+1|0;if(w<c){h=m+1|0,f=e[w],d=w;continue}return jr(n,b,a,m+1|0,l-b|0)}a[m]=g;var k=b+1|0;if(!(k<l))return jr(e,y,a,m+1|0,c-y|0);h=m+1|0,p=n[k],v=k}}function po(e,t,r,n,o,i){for(var a=0,s=o-1|0;a<=s;++a){for(var u=e[t+a|0],c=(n+a|0)-1|0;c>=n&&i(r[c],u)>0;)r[c+1|0]=r[c],c=c-1|0;r[c+1|0]=u}return 0}function ho(e,t,r,n,o,i){if(o<=5)return po(e,t,r,n,o,i);var a=o/2|0,s=o-a|0;return ho(e,t+a|0,r,n+a|0,s,i),ho(e,t,e,t+s|0,a,i),vo(e,t+s|0,a,r,n+a|0,s,r,n,i)}function mo(e,t){return function(e,t){var r=e.slice(0);return function(e,t){var r=e.length;if(r<=5)return po(e,0,e,0,r,t);var n=r/2|0,o=r-n|0,i=new Array(o);ho(e,n,i,0,o,t),ho(e,0,e,o,n,t),vo(e,o,n,i,0,o,e,0,t)}(r,t),r}(e,Ut(t))}function go(e){return null!==e?e.height:0}function bo(e,t,r,n){var o=go(e),i=go(n);return{key:t,value:r,height:o>=i?o+1|0:i+1|0,left:e,right:n}}function xo(e,t){return{key:e,value:t,height:1,left:null,right:null}}function yo(e,t){return e.value===t?e:{key:e.key,value:t,height:e.height,left:e.left,right:e.right}}function wo(e,t,r,n){var o=null!==e?e.height:0,i=null!==n?n.height:0;if(o>(i+2|0)){var a=e.left,s=e.key,u=e.value,c=e.right;if(go(a)>=go(c))return bo(a,s,u,bo(c,t,r,n));var l=c.left,d=c.key,f=c.value,v=c.right;return bo(bo(a,s,u,l),d,f,bo(v,t,r,n))}if(i>(o+2|0)){var p=n.left,h=n.key,m=n.value,g=n.right;if(go(g)>=go(p))return bo(bo(e,t,r,p),h,m,g);var b=p.left,x=p.key,y=p.value,w=p.right;return bo(bo(e,t,r,b),x,y,bo(w,h,m,g))}return{key:t,value:r,height:o>=i?o+1|0:i+1|0,left:e,right:n}}function ko(e,t){for(;;){if(null===e)return t;t=[e,t],e=e.left}}function No(e){return null!==e?function e(t){var r=t.left,n=t.right;return(1+(null!==r?e(r):0)|0)+(null!==n?e(n):0)|0}(e):0}var Lo=function(e,t,r){return function(e,t,r){return No(e)===No(t)&&function(e,t,r){for(;;){var n=t,o=e;if(o&&n){var i=n[0],a=o[0];if(a.key===i.key&&r(a.value,i.value)){t=ko(i.right,n[1]),e=ko(a.right,o[1]);continue}return!1}return!0}}(ko(e,0),ko(t,0),r)}(e,t,Ut(r))};function Co(e,t){return e[0]===t[0]}var So=Ln({initialState:null,reducer:function(e,t){var r=t[0];return function e(t,r,n){if(null!==t){var o=t.key;if(r===o)return yo(t,n);var i=t.value;return r<o?wo(e(t.left,r,n),o,i,t.right):wo(t.left,o,i,e(t.right,r,n))}return xo(r,n)}(e,r,[r,t[1]])},equal:function(e,t){return Lo(e,t,Co)}});function Uo(e){var t=St(So.useWith,(function(e){return function(t){return nn(e,t,Co)}}),(function(t){return function(e,t){for(;;){var r=e;if(null===r)return;var n=r.key;if(t===n)return nr(r.value);e=t<n?r.left:r.right}}(t,e)}));return i((function(){void 0===t&&zn((function(t){var r=void 0!==t?nr(ar(t)):void 0;return Lt(So.send,[e,r]),dr.contents=r,0}),function(e){var t,r,n=e.slice(0,2).toLowerCase();return 2!==n.length?Promise.resolve(void 0):(t=Bn(fetch("https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/i18n/"+String(n)+".json").then((function(e){return e.json()}))),r=function(e){return e.tag?void 0:nr(e[0])},t.then((function(e){return Promise.resolve(Lt(r,e))})))}(e))}),[Zr(t,(function(e){return e[0]}))]),0}function Ao(e,t){return function(e,t){var r=void 0!==e?e:100,n={contents:void 0},o={contents:void 0},i={contents:void 0},a=function(e){var s=n.contents;void 0!==s&&clearTimeout(ar(s));var u=0|Date.now();if(function(e){var t=i.contents;if(void 0!==t){var n=e-t|0;return n>=r||n<0}return!0}(u)){var c=o.contents;return void 0!==c?(o.contents=void 0,n.contents=void 0,Lt(t,ar(c))):(n.contents=void 0,0)}return n.contents=nr(setTimeout(a,function(e){var t=i.contents;return void 0!==t?r-(e-t|0)|0:r}(u))),0},s=function(e){var t=n.contents;return void 0!==t?(clearTimeout(ar(t)),n.contents=void 0,o.contents=void 0,i.contents=void 0,0):0};return{invoke:function(e){return s(),Lt(t,e)},schedule:function(e){var t=0|Date.now();return o.contents=nr(e),i.contents=t,n.contents=nr(setTimeout(a,r)),0},scheduled:function(e){return Xr(n.contents)},cancel:s}}(e,t).schedule}var _o=e(void 0),To=_o.Provider;function qo(e){return a(_o)}function Go(e){var t=e.root,r=e.children;return void 0!==t?v(r,ar(t)):null}var Qo,Oo=e(0),Io=Oo.Provider,Mo='@import url("https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/css/vendor/font-awesome.min.css");\n\n/*! 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}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{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}[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,p{margin:0}button{background-color:transparent;background-image:none;padding:0}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}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder{color:#a0aec0}input::placeholder{color:#a0aec0}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,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}}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.bg-brand-500{background-color:#0af}.bg-ui-0{background-color:#fff}.bg-ui-400{background-color:rgba(0,34,51,.03)}.bg-ui-500{background-color:rgba(0,34,51,.05)}.bg-ui-600{background-color:rgba(0,34,51,.1)}.bg-ui-800{background-color:rgba(0,34,51,.2)}.bg-ui-900{background-color:rgba(0,34,51,.35)}.bg-ui-0-\\.8{background-color:hsla(0,0%,100%,.8)}.hover\\:bg-brand-600:hover{background-color:#008ed5}.hover\\:bg-ui-0:hover{background-color:#fff}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.focus\\:bg-ui-500:focus,.hover\\:bg-ui-500:hover{background-color:rgba(0,34,51,.05)}.active\\:bg-brand-700:active{background-color:#008dd5}.active\\:bg-ui-700:active{background-color:rgba(0,34,51,.15)}.disabled\\:bg-ui-500:disabled{background-color:rgba(0,34,51,.05)}.border-transparent{border-color:transparent}.border-error{border-color:#f4562b}.border-brand-500{border-color:#0af}.border-ui-600{border-color:rgba(0,34,51,.1)}.border-ui-700{border-color:rgba(0,34,51,.15)}.hover\\:border-ui-900:hover{border-color:rgba(0,34,51,.35)}.focus\\:border-ui-700:focus{border-color:rgba(0,34,51,.15)}.focus\\:border-ui-900:focus{border-color:rgba(0,34,51,.35)}.disabled\\:border-ui-500:disabled{border-color:rgba(0,34,51,.05)}.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}.cursor-wait{cursor:wait}.block{display: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}.hidden{display:none}.group:hover .group-hover\\:block{display:block}.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}.font-semibold{font-weight:600}.h-3{height:12px}.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-16{height:64px}.h-20{height:80px}.h-32{height:128px}.h-40{height:160px}.h-2\\/4{height:50%}.h-full{height:100%}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.my-px{margin-top:1px;margin-bottom:1px}.-mx-1{margin-left:-4px;margin-right:-4px}.-my-2{margin-top:-8px;margin-bottom:-8px}.mt-1{margin-top:4px}.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}.mt-4{margin-top:16px}.mr-4{margin-right:16px}.mb-4{margin-bottom:16px}.mr-5{margin-right:20px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mb-8{margin-bottom:32px}.mt-10{margin-top:40px}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.-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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.disabled\\:opacity-60:disabled{opacity:.6}.focus\\:outline-none:focus{outline:0}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.p-3{padding:12px}.p-4{padding:16px}.p-0\\.5{padding:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-px{padding-top:1px;padding-bottom:1px}.pr-0{padding-right:0}.pl-0{padding-left:0}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-4{padding-right:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.pr-10{padding-right:40px}.pl-10{padding-left:40px}.placeholder-body-300::-webkit-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-moz-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300:-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::placeholder{color:rgba(0,34,51,.3)}.disabled\\:pointer-events-none:disabled,.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.top-3{top:12px}.right-3{right:12px}.right-4{right:16px}.right-px{right:1px}.left-px{left:1px}.-bottom-0\\.75{bottom:-3px}.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-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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)}.shadow-fade-left{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.shadow-fade-right{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.shadow-footer{-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)}.shadow-overlay{-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1)}.shadow-modal{-webkit-box-shadow:0 2px 12px 0 rgba(0,34,51,.1);box-shadow:0 2px 12px 0 rgba(0,34,51,.1)}.active\\:shadow-inner:active{-webkit-box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1);box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1)}.active\\:shadow-fade-left:active{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.active\\:shadow-fade-right:active{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.fill-current{fill:currentColor}.text-center{text-align:center}.text-right{text-align:right}.text-error{color:#f4562b}.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)}.text-ui-0{color:#fff}.focus-within\\:text-body-400:focus-within{color:rgba(0,34,51,.5)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.active\\:text-body-500:active,.focus\\:text-body-500:focus,.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.disabled\\:text-body-300:disabled{color:rgba(0,34,51,.3)}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-xl{font-size:20px}.text-2xl{font-size:22px}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.invisible{visibility:hidden}.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-80{width:320px}.w-2\\/4{width:50%}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.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-shadow{-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow,-webkit-box-shadow}.transition-transform{-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform,-webkit-transform}@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-shadow{-webkit-transition:-webkit-box-shadow .1s linear;transition:-webkit-box-shadow .1s linear;transition:box-shadow .1s linear;transition:box-shadow .1s linear,-webkit-box-shadow .1s linear}.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;background-color:#fff;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}.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;-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}.flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.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}.group:hover .group-hover\\:fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.animation-duration-500{-webkit-animation-duration:.5s;animation-duration:.5s}.selected-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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%}}.cbx{border-radius:3px;background-color:#fff;-webkit-box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);position:relative;-ms-flex-negative:0;flex-shrink:0;height:13px;-webkit-transition:background-color .15s linear;transition:background-color .15s linear;width:13px}.cbx svg{position:absolute;top:2px;left:2px;height:8px;width:10px;fill:none;-webkit-filter:drop-shadow(0 1px .5px #296bb0);filter:drop-shadow(0 1px .5px #296bb0);stroke-dasharray:17;stroke-dashoffset:17;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2;stroke:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.cbx.cbx--checked{background-color:#0af}.cbx.cbx--checked svg{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset .15s linear;transition:stroke-dashoffset .15s linear}.overlay-pill{position:absolute;margin:12px;padding-left:4px;padding-right:4px;height:20px;border-radius:4px;background-color:rgba(0,34,51,.3);color:#fff;font-size:12px;font-weight:600;line-height:22px}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}';try{var Eo=new CSSStyleSheet;Eo.replaceSync(Mo),Qo=nr(Eo)}catch(e){Qo=void 0}var jo=[];function zo(e,t){var r=Or.head,n=rn(e,r);return Vr(jo,(function(e){return e[0]===n&&e[1]===t}))?0:(function(e,t){var r=Or.createElement("style"),n=Or.createTextNode(e);r.appendChild(n),t.appendChild(r)}(t,n),Hr([n,t],jo))}function Po(e){var n=e.topLevel,a=e.children,s=o(null),u=r((function(){})),c=u[1],l=u[0];i((function(){if(n){var e=Or.body;if(null==e)return;var t=Or.createElement("div");return e.appendChild(t),s.current=t,function(r){return e.removeChild(t),s.current=null,0}}}),[s,n]),i((function(){var e=s.current;if(null!=e){var t,r=function(e){var t;try{t=e.attachShadow({mode:"open"})}catch(e){return}return nr(t)}(e);return t=r,void 0!==Qo&&void 0!==t?ar(t).adoptedStyleSheets=[ar(Qo)]:zo(t,Mo),void 0!==r&&zo(void 0,"\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('https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('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(\"https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0\") format(\"woff2\"),\n url(\"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"),void Lt(c,(function(t){return nr(rn(r,e))}))}}),[s]);var d={style:{display:"flex",height:"100%"}},f=n?void 0:nr(s);return void 0!==f&&(d.ref=ar(f)),t("div",d,t(To,function(e,t,r){return{value:e,children:t}}(l,t(Go,{root:l,children:a}))))}var Ro=function(e){var r=e.topLevel,n=e.children,o=void 0!==r&&r;return a(Oo)?n:t(Io,function(e,t,r){return{value:1,children:t}}(0,t(Po,{topLevel:o,children:n})))},Fo=e(void 0);function Bo(e,t,r){return{value:e,children:t}}var Vo=Fo.Provider,Do=function(e){return a(Fo)};function Ho(e){return e.colorPrimary}function Wo(e,t,r){var n,o;if(void 0!==e){var i=e,a=i.colorButtonPrimary,s=0,u=i.colorButtonPrimaryActive,c=0;if(void 0!==u?-791844958!==t?749755612!==t||-891636250!==r?c=2:n=u:-891636250!==r?c=2:n=u:c=2,2===c){var l=i.colorButtonPrimaryHover;if(void 0!==l){var d=0;-791844958!==t&&749755612!==t?s=1:d=3,3===d&&(-891636250!==r&&1049777564!==r?s=1:n=l)}else s=1}if(1===s)if(void 0!==a){var f=0;-791844958!==t&&749755612!==t?n=void 0:f=2,2===f&&(n=-891636250!==r&&870530776!==r&&1049777564!==r?void 0:a)}else n=void 0}else n=void 0;if(void 0!==e){var v=e,p=v.colorButtonPrimaryLabel,h=0,m=v.colorButtonPrimaryHoverLabel;if(void 0!==m?-791844958!==t?749755612!==t||1049777564!==r?h=1:o=m:1049777564!==r?h=1:o=m:h=1,1===h)if(void 0!==p){var g=0;-791844958!==t&&749755612!==t?o=void 0:g=2,2===g&&(o=-891636250!==r&&870530776!==r&&1049777564!==r?void 0:p)}else o=void 0}else o=void 0;var b={};return void 0!==n&&(b.background=ar(n)),void 0!==o&&(b.color=ar(o)),b}var $o=e({assetFieldSelection:void 0,assetFilter:void 0,assetTypes:[],language:"en_US",onSuccess:function(e,t){return console.log(e,t),0},selectionMode:2,theme:void 0,hideExternalAccess:!1}),Yo=$o.Provider;function Jo(e){return a($o)}function Xo(e){return a($o).theme}function Ko(e){return a($o).assetFilter}function Zo(e){return a($o).selectionMode}function ei(e){return-323491629!==e?e>=749755612?e>=781662169?"text-body-400 active:bg-ui-700 active:text-body-500 focus:bg-ui-500 focus:text-body-500 hover:bg-ui-500 hover:text-body-500 disabled:text-body-300":"text-ui-0 bg-brand-500 hover:bg-brand-600 active:bg-brand-700 disabled:opacity-60":e>=-791844957?"text-body-500 bg-ui-400 hover:bg-ui-500 hover:text-body-500 active:bg-ui-700 focus:text-body-500 disabled:text-body-300 disabled:bg-ui-500":"text-ui-0 bg-brand-500 hover:bg-brand-600 active:bg-brand-700 disabled:opacity-60":"text-body-400 active:bg-ui-700 active:text-body-500 focus:bg-ui-500 focus:text-body-500 hover:bg-ui-500 hover:text-body-500 disabled:text-body-300"}function ti(e){return-323491629!==e?e>=749755612?e>=781662169?"focus:border-ui-700":"focus:border-ui-900":e>=-791844957?"border-ui-600 focus:border-ui-900 disabled:border-ui-500":"focus:border-ui-900":"focus:border-ui-700"}var ri=s((function(e,n){var o,i=e.className,a=e.title,s=e.disabled,u=e.onClick,c=e.kind,l=e.children,d=n,f=void 0!==c?c:781662169,v=r((function(){return!1})),p=v[1],h=r((function(){return!1})),m=h[1],g=h[0],b=Xo(),x=gn(["rounded inline-flex items-center flex-shrink-0 text-md border border-transparent select-none active:shadow-inner focus:outline-none disabled:pointer-events-none transition-color",(o=f,o>=87487758?o>=781662169?"h-10 px-4":"h-8 px-3":-323491629!==o?"h-10 px-4":"h-8 px-3"),ei(f),ti(f),xn(i)]),y=Wo(b,f,v[0]?g?-891636250:1049777564:g?-891636250:870530776),w=function(e){return e},k={className:x,style:y,onMouseDown:function(e){return Lt(m,(function(e){return!0}))},onMouseOut:function(e){return Lt(p,(function(e){return!1}))},onMouseOver:function(e){return Lt(p,(function(e){return!0}))},onMouseUp:function(e){return Lt(m,(function(e){return!1}))}},N=function(e){return Zr(e,w)}(null==d?void 0:nr(d));return void 0!==N&&(k.ref=ar(N)),void 0!==a&&(k.title=ar(a)),void 0!==s&&(k.disabled=ar(s)),void 0!==u&&(k.onClick=ar(u)),t("button",k,l)})),ni=function(e){var r=e.className,n=gn(["w-6 h-6 text-body-300",xn(r)]);return t("div",{className:n},t("svg",{className:"spinner",viewBox:"0 0 20 20"},t("circle",{cx:"10",cy:"10",fill:"none",r:"8",strokeWidth:"3"})))},oi=e(!1);function ii(e,t,r){return{value:e,children:t}}var ai=oi.Provider,si=function(e){return a(oi)};function ui(e){var r=e.className;return t("svg",{className:r,viewBox:"0 0 479.438 361.46"},t("path",{d:"M365.18 0a114 114 0 00-85.9 38.93l-153.18 153-43.82-43.84a45.18 45.18 0 01-11.54-30.75 46.06 46.06 0 0146.34-46.08 44.81 44.81 0 0130.42 11.49c2.73 2.42 10.48 10.43 10.48 10.43l48.5-48.51-14-14C172.19 11.43 144.48.03 114.3.03 51.24.03 0 51.03 0 114.1a115.08 115.08 0 0028.09 75.46l98.35 98.77 205.53-205.5a44.78 44.78 0 0130.58-11.57 46.07 46.07 0 0146.06 46.43 45.07 45.07 0 01-11.52 30.5l-136.6 136.57a28.73 28.73 0 01-20.83 8.58 28.29 28.29 0 01-20.51-8.92l-10.27-10.16-48.28 48.28 9.88 9.72a97.06 97.06 0 0069.38 29.2h.07a96 96 0 0069-29.13l142.35-142.67A114.47 114.47 0 00365.18 0z",fill:"#0af"}))}function ci(e){var n=e.portal,a=so(),s=r((function(){if(void 0!==n)return n.url.trim();var e=a.accountDomain;return void 0!==e?e.trim():""})),c=s[1],l=s[0],d=u((function(){return Ao(1e3,(function(e){return Lt(c,(function(t){return e}))}))}),[]),f=r((function(){return-709493348})),v=f[1],p=f[0],h=Do(0),m=o(null);i((function(){var e={contents:!1},t=m.current;return null!=t&&(t.value=l),""!==l&&(Lt(v,(function(e){return-660729997})),zn((function(t){return e.contents?0:Lt(v,(function(e){return t?-102231997:144245463}))}),pn.isBynderPortal(l))),function(t){return e.contents=!0,0}}),[l]);var g,b=function(e){return zn((function(e){return e.tag?(console.error(e[0]),Lt(v,(function(e){return-102231997}))):0}),(Lt(v,(function(e){return-312601306})),function(e){return Fn((function(t){var r=to(0);return Fn((function(n){var o=Zn(n),i=to(0),a=St(Jn,$n(o,i,["offline","asset:read","collection:read","meta.assetbank:read"]),e);return t.location=a,Fn((function(t){var n=t.data,o=pn.getQueryParameter(n,"state"),a=pn.getQueryParameter(n,"code");return Fn((function(t){var n=ro;return Fn((function(t){return ao(t.expiresIn),Lt(oo.send,bt(0,[{accessToken:t.accessToken,refreshToken:t.refreshToken,accountDomain:e}])),Vn.$$return(0)}),function(t){return St(n,t,e)}(Xn(a,r)))}),"https://d8ejoa1fys2rk.cloudfront.net"!==t.origin||o!==i||""===a?Vn.fail("Error logging in"):Vn.$$return(0))}),Promise.race([Bn(Nn(0)),co(t)]))}),Bn(eo(r)))}),Vn.resolve(on(function(e){var t=Gr.screen,r=((t.width/2|0)-285|0)+Gr.screenX|0,n=((t.height/2|0)-350|0)+Gr.screenY|0;!function(e){var t=uo.contents;void 0!==t&&(function(e){try{e&&!e.closed&&e.close()}catch(e){return}}(ar(t)),uo.contents=void 0)}();var o=Gr.open("","Bynder Brand Portal","height="+String(700)+",width="+String(570)+",left="+String(r)+",top="+String(n)),i=null==o?void 0:nr(o);if(null!=o){var a=o.document;a.head.innerHTML='<title>Redirecting...</title><style>@keyframes cv-spinner-animation{to{transform:rotate(1turn)}}.cv-spinner{position:relative;display:inline-block;padding:175px 0 100px;width:100%;height:auto;background:#fff;box-sizing:border-box}.cv-spinner:before{position:absolute;top:50%;left:50%;width:40px;height:40px;margin-top:-20px;margin-left:-20px;box-sizing:border-box;border-top:3px solid #7e8890;border-right:3px solid transparent;border-radius:50%;content:"";animation:cv-spinner-animation .8s linear infinite;z-index:3}</style>';var s=a.body;null==s||(s.innerHTML='<div class="cv-spinner"></div>')}return uo.contents=i,i}(),"Error opening login window")))}(l)))},x=gn(["appearance-none block h-10 w-80 border rounded text-body-500 placeholder-body-300 focus:outline-none transition-color",p>=144245463?"pl-4 pr-10 border-error":"px-4 border-ui-600 hover:border-ui-900 focus:border-ui-900"]),y=void 0!==n&&!n.editable||-312601306===p;if(void 0!==h){var w=h.onClose;g=t(ri,{className:"absolute top-3 right-4",title:fr("Close"),onClick:function(e){return Lt(w,0)},children:t(tr,{className:"w-6 h-6 -mx-1"})})}else g=null;return t("div",{className:"bg-ui-0 w-full h-full flex flex-col items-center justify-center cv-root relative"},g,t("div",{className:"flex flex-col"},t(ui,{className:"w-10 mb-8"}),t("h1",{className:"text-xl mb-2"},fr("Connect your brand portal")),t("div",{className:"text-body-400 mb-8"},fr("Enter the portal domain")),t("div",{className:"mb-4"},t("div",{className:"relative"},t("input",{ref:m,className:x,autoFocus:!0,placeholder:"yourdomain.bynder.com",readOnly:y,onKeyDown:function(e){var t=e.keyCode;return-102231997!==p||13!==t?0:b()},onChange:function(e){return Lt(v,(function(e){return-709493348})),Lt(d,dn(e).trim())}}),-660729997!==p?p>=144245463?t(tr,{className:"absolute top-0 right-3 w-6 h-full text-error fade-in cursor-pointer",onClick:function(e){var t=m.current;return null!=t&&(t.value=""),Lt(v,(function(e){return-709493348})),Lt(c,(function(e){return""}))}}):null:t(ni,{className:"absolute top-0 right-0 mr-3 h-full"})),144245463===p?t("div",{className:"text-error text-sm mt-1 fade-in"},fr("This portal domain does not exist")):null),t(ri,{className:"justify-center relative",disabled:-102231997!==p,onClick:function(e){return b()},kind:-791844958,children:-312601306!==p?fr("Connect"):t(ni,{className:"text-ui-0"})})))}function li(e){return{cmp:Ut(e.cmp)}}function di(e){var t=typeof e;return"string"===t?bt(0,[e]):"number"===t?bt(1,[e]):"boolean"===t?!0===e?1:0:null===e?2:Array.isArray(e)?bt(3,[e]):bt(2,[e])}function fi(e){if("string"==typeof e)return e}function vi(e){if("number"==typeof e)return e}function pi(e){if("object"==typeof e&&!Array.isArray(e)&&null!==e)return nr(e)}function hi(e){if(Array.isArray(e))return e}function mi(e){if("boolean"==typeof e)return e}function gi(e){if(null===e)return null}function bi(e){if(void 0!==e)return ar(e);throw new Error("getExn")}var xi=function(e,t){return Er(e.id,t.id)},yi=function(e,t){return e.id===t.id};function wi(e){return e>=757540433?"DESC":"ASC"}function ki(e){return e>=868235851?"NAME":"CREATED_AT"}function Ni(e){return lr([["direction",wi(e.direction)],["field",ki(e.field)]].filter((function(e){return!0})))}var Li={definition:[function(e){var t,r=sr(bi(pi(e)),"collections");if(void 0!==r){var n=pi(ar(r));if(void 0!==n){var o,i=ar(n),a=sr(i,"nodes"),s=void 0!==a?bi(hi(ar(a))).map((function(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"name");if(void 0!==s){var u=fi(ar(s));a=void 0!==u?u:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var c,l=sr(n,"assetCount");if(void 0!==l){var d=vi(ar(l));c=void 0!==d?0|d:gr("Unexpected GraphQL query response")}else c=gr("Unexpected GraphQL query response");var f=sr(n,"thumbnailUrls"),v=void 0!==f?bi(hi(ar(f))).map((function(e){return e})):gr("Unexpected GraphQL query response"),p=sr(n,"url");return{id:r,name:a,assetCount:c,thumbnailUrls:v,url:void 0!==p?ar(p):gr("Unexpected GraphQL query response")}}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),u=sr(i,"totalCount");if(void 0!==u){var c=vi(ar(u));o=void 0!==c?0|c:gr("Unexpected GraphQL query response")}else o=gr("Unexpected GraphQL query response");var l,d=sr(i,"pageInfo");if(void 0!==d){var f=pi(ar(d));if(void 0!==f){var v,p=ar(f),h=sr(p,"endCursor");if(void 0!==h){var m=ar(h);v=void 0!==gi(m)?void 0:nr(m)}else v=void 0;var g,b=sr(p,"hasNextPage");if(void 0!==b){var x=mi(ar(b));g=void 0!==x?x:gr("Unexpected GraphQL query response")}else g=gr("Unexpected GraphQL query response");l={endCursor:v,hasNextPage:g}}else l=gr("Unexpected GraphQL query response")}else l=gr("Unexpected GraphQL query response");t={nodes:s,totalCount:o,pageInfo:l}}else t=gr("Unexpected GraphQL query response")}else t=gr("Unexpected GraphQL query response");return{collections:t}},"query getCollections($after: Cursor, $searchTerm: String, $orderBy: CollectionOrder!) {\ncollections(after: $after, first: 50, filter: {name_contains: $searchTerm, assetCount_gte: 1}, orderBy: $orderBy) {\nnodes {\nid \nname \nassetCount \nthumbnailUrls \nurl \n}\n\ntotalCount \npageInfo {\nendCursor \nhasNextPage \n}\n\n}\n\n}\n",function(e,t,r,n,o){return Lt(e,lr([["after",void 0!==t?ar(t):null],["searchTerm",void 0!==r?r:null],["orderBy",Ni(n)]].filter((function(e){return!0}))))}],getPageInfo:function(e){return e.collections.pageInfo},concatNodes:function(e,t){var r=t.collections;return{collections:{nodes:e.collections.nodes.concat(t.collections.nodes),totalCount:r.totalCount,pageInfo:r.pageInfo}}}},Ci=li({cmp:function(e,t){if("number"==typeof e){if(0!==e){if("number"==typeof t&&0!==t)return 0}else if("number"==typeof t&&0===t)return 0}else if("number"!=typeof t)return xi(e[0],t[0]);var r=function(e){return"number"==typeof e?0!==e?1:0:2};return Mr(r(e),r(t))}}),Si=Ln({initialState:0,reducer:function(e,t){return t},equal:function(e,t){return"number"==typeof e?0!==e?"number"==typeof t&&0!==t:"number"==typeof t&&0===t:"number"!=typeof t&&yi(e[0],t[0])}}),Ui=Si.send;fo((function(e){return Lt(Ui,0)}));var Ai=Si.use,_i=Si.subscribe;function Ti(e){return t("svg",{height:"130",width:"190"},t("defs",void 0,t("linearGradient",{id:"prefix__b",x1:"100%",x2:"25.598%",y1:"11.782%",y2:"100%"},t("stop",{offset:"0%",stopColor:"#F8FAFC"}),t("stop",{offset:"100%",stopColor:"#EFF2F4"})),t("rect",{id:"prefix__a",height:"130",width:"190",rx:"3"})),t("g",{fill:"none",fillRule:"evenodd"},t("mask",{id:"prefix__c",fill:"#fff"},t("use",{xlinkHref:"#prefix__a"})),t("use",{fill:"url(#prefix__b)",xlinkHref:"#prefix__a"}),t("g",{mask:"url(#prefix__c)"},t("path",{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",fill:"#F5A623"}),t("path",{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",fill:"#FFF",fillRule:"nonzero"})),t("path",{d:"M3 0h184a3 3 0 013 3v13H0V3a3 3 0 013-3z",fill:"#EEF1F3",mask:"url(#prefix__c)"}),t("circle",{cx:"11",cy:"8",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)",r:"3"}),t("circle",{cx:"20",cy:"8",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)",r:"3"}),t("circle",{cx:"29",cy:"8",fill:"#023",fillOpacity:"0.1",mask:"url(#prefix__c)",r:"3"})))}var qi=function(e){var r=e.error,n=e.onRetry;return console.error(r),t("div",{className:" w-full h-full flex flex-col items-center justify-center"},t(Ti,{}),t("h1",{className:"mt-10 text-2xl"},fr("Oops! Something went wrong")),t("span",{className:"mt-4 text-body-400"},fr("Please try again or get in contact with our customer support.")),t(ri,{className:"mt-8",title:fr("Try again"),onClick:function(e){return Lt(n,0)},kind:-791844958,children:fr("Try again")}))},Gi=function(e){function r(t){e.call(this,t),this.state={error:null}}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.getDerivedStateFromError=function(e){return{error:e}},r.prototype.render=function(){var e=this;return this.state.error?t(qi,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},r}(c);function Qi(e,t){if(0===t)throw yt;return e/t|0}var Oi=Math.imul||function(e,t){return((e>>16)*(t|=0)<<16)+(65535&e)*t|0};function Ii(e,t){return e<<t|e>>>(32-t|0)}function Mi(e,t){var r=t;r=Ii(r=Oi(r,3432918353),15);var n=e^(r=Oi(r,461845907));return 3864292196+((n=Ii(n,13))+(n<<2)|0)|0}function Ei(e){var t=e^e>>>16;return t=Oi(t,2246822507),(t=Oi(t^=t>>>13,3266489909))^t>>>16}function ji(e,t,r){for(;;){var n=r;if(void 0===n)return 0;var o=Ei(Mi(0,n.key))&(e.length-1|0),i=t[o];void 0!==i?i.next=n:e[o]=n,t[o]=n,r=n.next}}var zi,Pi=(zi=function(e,t){for(;;){if(e>=10||e<<1<e)return e;e<<=1}}(16),{size:0,buckets:new Array(zi),hash:0,eq:0});function Ri(e,t,r,n,o){var i=void 0!==t&&t,a=JSON.stringify({query:n,variables:o}),s=Zr(r,(function(e){return"Bearer "+e})),u=e+(a+sn(r,"")),c=function(e,t){var r=e.buckets,n=r[Ei(Mi(0,t))&(r.length-1|0)];if(void 0!==n){if(t===n.key)return nr(n.value);var o=n.next;if(void 0===o)return;if(t===o.key)return nr(o.value);var i=o.next;if(void 0===i)return;if(t===i.key)return nr(i.value);for(var a=t,s=i.next;;){var u=s;if(void 0===u)return;if(a===u.key)return nr(u.value);s=u.next}}}(Pi,wn(u));if(i);else if(void 0!==c)return Rn(ar(c));return Fn((function(e){return void 0===e.errors&&function(e,t){(function(e,t,r){var n=e.buckets,o=n.length,i=Ei(Mi(0,t))&(o-1|0),a=n[i];if(void 0!==a?function(e,t,r){for(;;){var n=r;if(n.key===e)return n.value=t,!1;var o=n.next;if(void 0===o)return!0;r=o}}(t,r,a)&&(n[i]={key:t,value:r,next:a},e.size=e.size+1|0):(n[i]={key:t,value:r,next:void 0},e.size=e.size+1|0),e.size>o<<1){var s=e,u=s.buckets,c=u.length,l=c<<1;if(l>=c){var d=new Array(l),f=new Array(l);s.buckets=d;for(var v=0,p=c-1|0;v<=p;++v)ji(d,f,u[v]);for(var h=0,m=l-1|0;h<=m;++h){var g=f[h];void 0!==g&&(g.next=void 0)}return 0}return 0}})(Pi,wn(e),t)}(u,e),Vn.$$return(e)}),Bn(fetch(e,qn(2,{Accept:"application/json","Content-Type":"application/json",Authorization:s},nr(a),void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0)(0)).then((function(e){return e.json()}))))}function Fi(e,t,r,n,o){var i,a=void 0!==e&&e,s=o.accessToken,u=0;if(void 0!==s){var c=o.accountDomain;void 0!==c?i=[pn.ensureValidUrl(c.trim())+"graphql",s]:u=1}else u=1;return 1===u&&(i=["https://"+Qr.host+"/graphql",void 0]),Fn((function(e){var t,r=e.data,o=e.errors;if(null==r)return void 0!==o?Vn.fail(Pr(o,(function(e){return e.message})).join(",")):Vn.fail("Unreachable");try{t=Lt(n,r)}catch(e){var i=mr(e);return Vn.fail(function(e){return rn(e,"Error parsing response")}(en(function(e){if(e[0]===hr)return nr(e[1])}(i),(function(e){return e.message}))))}return Vn.$$return(t)}),Ri(i[0],a,i[1],t,r))}var Bi=Fi;function Vi(e){switch(0|e.tag){case 0:var t=e[0];return void 0!==t?bt(0,[nr(ar(t))]):e;case 1:return bt(0,[nr(e[0])]);case 2:return bt(0,[void 0])}}function Di(e,t,n){var o,a=so(),s=r((function(){return bt(0,[void 0])})),u=s[1],c=s[0],l={},d=function(r){return Lt(u,Vi),function(e){return Fi(!1,e,n,t,a)}(e).then((function(e){var t=l.didCancel;if(e.tag){var r=e[0];"Invalid or expired token"===r?(lo(),Lt(u,(function(e){return bt(2,[r])}))):t||Lt(u,(function(e){return bt(2,[r])}))}else if(!t){var n=e[0];Lt(u,(function(e){return bt(1,[n])}))}return Pn(0)})),0};switch(0|c.tag){case 0:o=!0;break;case 1:case 2:o=!1}return function(e,t){for(var r in t)e[r]=t[r]}(l,{data:c,executeQuery:d,isLoading:o,auth:a,parse:t,query:e,setData:u,variables:n,didCancel:!1}),i((function(){return d(),function(e){return l.didCancel=!0,0}}),[JSON.stringify(n)]),l}var Hi=function(e){switch(0|e.tag){case 0:return e[0];case 1:return nr(e[0]);case 2:return}},Wi=function(e){var t=e[1],r=e[0];return Lt(e[2],(function(e){return Di(t,r,e)}))};function $i(e,t,r,n){var o,i,a=e.variables,s=e.setData,u=e.parse,c=e.auth,l=e.data;switch(0|l.tag){case 1:o=nr(l[0]);break;case 0:case 2:o=void 0}if(void 0!==o){var d=Lt(t,ar(o));if(void 0!==d){var f=d;i=[f.hasNextPage,f.endCursor]}else i=void 0}else i=void 0;if(void 0!==i){var v=i;if(v[0]){var p=v[1];if(void 0!==p){Lt(s,(function(e){return bt(0,[o])}));var h=di(a);"number"!=typeof h&&2===h.tag&&(h[0].after=ar(p)),function(e){return Fi(!1,e,a,u,c)}(e.query).then((function(t){var n=e.didCancel;if(t.tag){if(!n){var i=t[0];Lt(s,(function(e){return bt(2,[i])}))}}else if(!n){var a=t[0],u=void 0!==o?St(r,ar(o),a):a;Lt(s,(function(e){return bt(1,[u])}))}return Promise.resolve(0)}))}}}return 0}var Yi=function(e){var t=e.concatNodes,r=e.getPageInfo,n=e.definition,o=n[1],i=n[0];return Lt(n[2],(function(e){var n,a,s=Di(o,i,e),u=s.data,c=0;switch(0|u.tag){case 0:var l=u[0];void 0!==l?(a=ar(l),c=1):n=!1;break;case 1:a=u[0],c=1;break;case 2:n=!1}if(1===c){var d=Lt(r,a);n=void 0!==d&&d.hasNextPage}return{data:u,isLoading:s.isLoading,hasNextPage:n,loadMore:function(e){return $i(s,r,t)},executeQuery:s.executeQuery}}))};function Ji(e,t,r,n){if(null!==e){var o=e.key,i=n(t,o);if(0===i)return yo(e,r);var a=e.left,s=e.right,u=e.value;return i<0?wo(Ji(a,t,r,n),o,u,s):wo(a,o,u,Ji(s,t,r,n))}return xo(t,r)}function Xi(e,t,r){return function(e,t,r){return function(e,t,r,n){if(No(e)!==No(t))return!1;for(var o=ko(e,0),i=ko(t,0),a=r,s=n;;){var u=i,c=o;if(c&&u){var l=u[0],d=c[0];if(0===a(d.key,l.key)&&s(d.value,l.value)){i=ko(l.right,u[1]),o=ko(d.right,c[1]);continue}return!1}return!0}}(e.data,t.data,e.cmp,r)}(e,t,Ut(r))}function Ki(e,t){return e.width===t.width&&e.height===t.height&&e.scrollWidth===t.scrollWidth}var Zi=function(e){var t=r((function(){})),o=t[1],i=r((function(){})),a=i[1],s=i[0],u=r((function(){return 0})),c=u[1],d=l((function(e){return Lt(a,(function(t){return null==e?void 0:nr(e)}))}),[]);return n((function(){var e={contents:0},t=function(t){return cancelAnimationFrame(e.contents),e.contents=requestAnimationFrame((function(e){if(void 0!==s){var t=ar(s),r=t.getBoundingClientRect();return Lt(o,(function(e){var n={width:r.width,height:r.height,scrollWidth:t.scrollWidth};return ln(e,n,Ki)?e:n}))}return 0})),0};return t(),Gr.addEventListener("resize",t),function(e){return Gr.removeEventListener("resize",t),0}}),[s,u[0]]),{dimensions:t[0],node:s,reMeasure:function(e){return Lt(c,(function(e){return e+1|0}))},nodeRef:d}},ea=function(e,t){var r=qo();return i((function(){var n=function(r){var n=r.target,o=function(e){return e.contains(n)};return function(e){return Vr(e,o)}(Dr(e,(function(e){return or(e.current)})))?0:Lt(t,r)};if(void 0!==r){var o=ar(r);return o.addEventListener("mousedown",n),function(e){return o.removeEventListener("mousedown",n),0}}}),[function(e){return{contents:e}},t,r]),0},ta=function(e){var r=e.className,n=e.onClick,o=e.selected,i=e.children,a=void 0!==o&&o,s={className:gn(["cursor-pointer flex hover:bg-ui-400 hover:text-body-500 items-center transition-color",a?"text-body-500":"text-body-400",xn(r)])};return void 0!==n&&(s.onClick=ar(n)),t("li",s,i,a?t(Kt,{className:gn(["w-6 h-6 ml-3 fade-in"])}):null)};function ra(e){var i=e.className,a=e.onClickOutside,s=e.direction,u=e.target,c=e.children,l=o(null),d=r((function(){return 0}))[1];ea([u,l],a);var f=u.current;n((function(){Lt(d,(function(e){return null==f?0:f.getBoundingClientRect().x}))}));var p=qo();if(void 0!==p&&null!=f){var h,m=f.getBoundingClientRect(),g=m.left,b=Gr.innerWidth;if(g+300>b){var x=b-m.width-g;h=[void 0,String(x)+"px"]}else h=[String(g)+"px",void 0];var y,w=h[1],k=h[0];if(s>=759637122){var N={top:String(m.top+m.height)+"px"};void 0!==k&&(N.left=ar(k)),void 0!==w&&(N.right=ar(w)),y=N}else{var L=Gr.innerHeight,C={bottom:String(L-m.top)+"px"};void 0!==k&&(C.left=ar(k)),void 0!==w&&(C.right=ar(w)),y=C}var S=gn(["cv-root cv-dropdown select-none",xn(i)]);return v(t("div",{ref:l,className:S,style:y},c),ar(p))}return null}var na=function(e){var n=e.className,i=e.buttonClassName,a=e.buttonKind,s=e.direction,u=e.title,c=e.alt,l=e.disabled,f=e.children,v=void 0!==a?a:-323491629,p=void 0!==s?s:759637122,h=r((function(){return!1})),m=h[1],g=h[0],b=o(null),x=function(e){return Lt(m,(function(e){return!e}))},y={className:gn([bn(g,"bg-ui-400 border-ui-700 text-body-500"),xn(i)]),onClick:x,kind:v,children:null,ref:b};void 0!==l&&(y.disabled=ar(l));var w,k={className:"inline-flex items-center"};if(void 0!==c&&(k.title=ar(c)),g){var N={onClickOutside:x,direction:p,target:b,children:Lt(f,x)};void 0!==n&&(N.className=ar(n)),w=t(ra,N)}else w=null;return t(d,void 0,t(ri,y,t("span",k,u),t(Jt,{className:"w-6 h-6 ml-1 -mr-2"})),w)};function oa(e,t){return e.field===t.field&&e.direction===t.direction}var ia={field:-600305078,direction:757540433},aa={cmp:Ci.cmp,data:null},sa=Ln({initialState:aa,reducer:function(e,t){if(t){var r=t[0];return function(e,t,r){var n=e.cmp;return{cmp:n,data:Ji(e.data,t,r,n)}}(e,r.page,r.ordering)}return aa},equal:function(e,t){return Xi(e,t,oa)}}),ua=sa.send,ca=sa.useWith;function la(e){var t=St(ca,void 0,(function(t){return function(e,t){return function(e,t,r){for(;;){var n=e;if(null===n)return;var o=r(t,n.key);if(0===o)return nr(n.value);e=o<0?n.left:n.right}}(e.data,t,e.cmp)}(t,e)}));return[void 0!==t?t:ia,function(t){return Lt(ua,[{page:e,ordering:t}])}]}fo((function(e){return Lt(ua,0)}));var da=sa.state,fa=sa.use,va=sa.subscribe,pa=sa.subscribeWith,ha={initialState:aa,state:da,send:ua,use:fa,useWith:ca,subscribe:va,subscribeWith:pa,usePage:la};function ma(e){return fr(e>=83152964?e>=868235851?"Name":"Date published":e>=39795671?"Date modified":"Date added")}var ga=[-600305078,83152964,39795671,868235851],ba=function(e){var r=e.options,n=void 0!==r?r:ga,o=la(Lt(Ai,0)),i=o[1],a=o[0],s=a.direction,u=a.field;return t(na,{className:"py-2",buttonClassName:"ml-auto",title:ma(u),alt:fr("Order by"),children:function(e){return t("ul",void 0,Pr(n,(function(r){var n=ma(r);return t(ta,{className:"px-4 py-px text-sm",onClick:function(t){return Lt(i,{field:r,direction:s}),Lt(e,0)},selected:u===r,children:t("span",{className:"flex-grow min-w-24 py-2"},n),key:n})})))}})};var xa=function(e){var r,n=la(Lt(Ai,0)),o=n[1],i=n[0],a=i.direction,s=i.field,u=gn(["w-6 h-6 -mx-1",bn(3250961===a,"flip-y")]);return t(ri,{title:(r=a,fr(r>=757540433?"Descending":"Ascending")),onClick:function(e){return Lt(o,{field:s,direction:a>=757540433?3250961:757540433})},kind:-323491629,children:t(Vt,{className:u})})};function ya(e){return null!==e?e.height:0}function wa(e,t,r){var n=null!==e?e.height:0,o=null!==r?r.height:0;return{value:t,height:n>=o?n+1|0:o+1|0,left:e,right:r}}function ka(e){return{value:e,height:1,left:null,right:null}}function Na(e,t){return null===t||null!==e&&e.height>=t.height}function La(e,t,r){var n=null!==e?e.height:0,o=null!==r?r.height:0;if(n>(o+2|0)){var i=e.left,a=e.value,s=e.right;if(Na(i,s))return wa(i,a,wa(s,t,r));var u=s.left,c=s.value,l=s.right;return wa(wa(i,a,u),c,wa(l,t,r))}if(o>(n+2|0)){var d=r.left,f=r.value,v=r.right;if(Na(v,d))return wa(wa(e,t,d),f,v);var p=d.left,h=d.value,m=d.right;return wa(wa(e,t,p),h,wa(m,f,v))}return{value:t,height:n>=o?n+1|0:o+1|0,left:e,right:r}}function Ca(e,t){var r=e.left,n=e.right,o=e.value;return null!==r?La(Ca(r,t),o,n):(t.contents=o,n)}function Sa(e){return null===e}function Ua(e,t){for(;;){if(null===e)return t;t=[e,t],e=e.left}}function Aa(e,t,r){if(null!==e){if(null!==r){var n=e.height,o=r.height;return n>(o+2|0)?La(e.left,e.value,Aa(e.right,t,r)):o>(n+2|0)?La(Aa(e,t,r.left),r.value,r.right):wa(e,t,r)}return function e(t,r){return null!==t?La(t.left,t.value,e(t.right,r)):ka(r)}(e,t)}return function e(t,r){return null!==t?La(e(t.left,r),t.value,t.right):ka(r)}(r,t)}function _a(e){var t=e.left,r=e.right;return(1+(null!==t?_a(t):0)|0)+(null!==r?_a(r):0)|0}function Ta(e){return null!==e?_a(e):0}function qa(e){if(null!==e){var t=_a(e),r=new Array(t);return function e(t,r,n){for(;;){var o=r,i=t,a=i.left,s=i.value,u=i.right,c=null!==a?e(a,o,n):o;n[c]=s;var l=c+1|0;if(null===u)return l;r=l,t=u}}(e,0,r),r}return[]}function Ga(e){var t=e.left;e.left=t.right,t.right=e;var r=ya(e.left),n=ya(e.right);e.height=(r>n?r:n)+1|0;var o=ya(t.left),i=e.height;return t.height=(o>i?o:i)+1|0,t}function Qa(e){var t=e.right;e.right=t.left,t.left=e;var r=ya(e.left),n=ya(e.right);e.height=(r>n?r:n)+1|0;var o=ya(t.right),i=e.height;return t.height=(o>i?o:i)+1|0,t}function Oa(e){var t=ya(e.left),r=ya(e.right);return e.height=(t>r?t:r)+1|0,e}function Ia(e,t,r){if(null!==t){var n=e(r,t.value);if(0===n)return t;var o=t.left,i=t.right;if(n<0){var a=Ia(e,o,r);t.left=a}else t.right=Ia(e,i,r);return function(e){var t,r,n=e.left,o=e.right,i=ya(n),a=ya(o);if(i>(2+a|0))return Na(n.left,n.right)?Oa(Ga(e)):Oa((r=Qa((t=e).left),t.left=r,Ga(t)));if(a>(2+i|0)){var s=o.left;return Na(o.right,s)?Oa(Qa(e)):Oa(function(e){var t=Ga(e.right);return e.right=t,Qa(e)}(e))}return e.height=(i>a?i:a)+1|0,e}(t)}return ka(r)}function Ma(e,t,r){if(null!==e&&null!==t){var n=e.left,o=e.value,i=e.right,a={contents:!1},s=function e(t,r,n,o){var i=r.left,a=r.value,s=r.right,u=t(n,a);if(0===u)return o.contents=!0,[i,s];if(u<0){if(null!==i){var c=e(t,i,n,o);return[c[0],Aa(c[1],a,s)]}return[null,r]}if(null!==s){var l=e(t,s,n,o);return[Aa(i,a,l[0]),l[1]]}return[r,null]}(r,t,o,a),u=Ma(n,s[0],r),c=Ma(i,s[1],r);return a.contents?Aa(u,o,c):function(e,t){if(null!==e){if(null!==t){var r={contents:t.value},n=Ca(t,r);return Aa(e,r.contents,n)}return e}return t}(u,c)}return null}var Ea=function(e,t){var r=e.length;if(0===r)return null;var n,o=function(e,t){var r=e.length;if(0===r||1===r)return r;var n=e[0],o=e[1];if(!t(n,o))return t(o,n)?0|-function(e,t,r,n,o){for(;;){var i=r,a=t;if(i>=n)return i;var s=e[i];if(!o(s,a))return i;r=i+1|0,t=s}}(e,o,2,r,t):1;for(var i=e,a=o,s=2,u=r,c=t;;){var l=s,d=a;if(l>=u)return l;var f=i[l];if(!c(d,f))return l;s=l+1|0,a=f}}(e,(function(e,r){return t(e,r)<0}));n=o>=0?function e(t,r,n){switch(n){case 0:return null;case 1:return ka(t[r]);case 2:var o=t[r];return{value:t[r+1|0],height:2,left:ka(o),right:null};case 3:var i=t[r],a=t[r+1|0],s=t[r+2|0];return{value:a,height:2,left:ka(i),right:ka(s)};default:var u=n/2|0;return wa(e(t,r,u),t[r+u|0],e(t,1+(r+u|0)|0,(n-u|0)-1|0))}}(e,0,o):function e(t,r,n){switch(n){case 0:return null;case 1:return ka(t[r]);case 2:var o=t[r];return{value:t[r-1|0],height:2,left:ka(o),right:null};case 3:var i=t[r],a=t[r-1|0],s=t[r-2|0];return{value:a,height:2,left:ka(i),right:ka(s)};default:var u=n/2|0;return wa(e(t,r,u),t[r-u|0],e(t,(r-u|0)-1|0,(n-u|0)-1|0))}}(e,(o=0|-o)-1|0,o);for(var i=o,a=r-1|0;i<=a;++i)n=Ia(t,n,e[i]);return n},ja=Sa,za=qa;function Pa(e,t){var r=e.cmp,n=e.data,o=function e(t,r,n){if(null!==t){var o=t.left,i=t.value,a=t.right,s=n(r,i);if(0===s){if(null!==o){if(null!==a){var u={contents:a.value},c=Ca(a,u);return La(o,u.contents,c)}return o}return a}if(s<0){var l=e(o,r,n);return l===o?t:La(l,i,a)}var d=e(a,r,n);return d===a?t:La(o,i,d)}return t}(n,t,r);return o===n?e:{cmp:r,data:o}}function Ra(e,t){var r=e.cmp,n=e.data,o=function e(t,r,n){if(null!==t){var o=t.value,i=n(r,o);if(0===i)return t;var a=t.left,s=t.right;if(i<0){var u=e(a,r,n);return u===a?t:La(u,o,s)}var c=e(s,r,n);return c===s?t:La(a,o,c)}return ka(r)}(n,t,r);return o===n?e:{cmp:r,data:o}}function Fa(e){return{cmp:e.cmp,data:null}}function Ba(e){return ja(e.data)}function Va(e,t){return r=e.data,n=t.data,o=e.cmp,0===function(e,t,r){var n=Ta(e),o=Ta(t);if(n!==o)return n<o?-1:1;for(var i=Ua(e,0),a=Ua(t,0),s=r;;){var u=a,c=i;if(c&&u){var l=u[0],d=c[0],f=s(d.value,l.value);if(0===f){a=Ua(l.right,u[1]),i=Ua(d.right,c[1]);continue}return f}return 0}}(r,n,o);var r,n,o}function Da(e){return za(e.data)}function Ha(e,t){if(null!==e){var r=e.value;if(t===r)return e;var n=e.left,o=e.right;if(t<r){var i=Ha(n,t);return i===n?e:La(i,r,o)}var a=Ha(o,t);return a===o?e:La(n,r,a)}return ka(t)}function Wa(e,t){if(null!==e){var r=e.left,n=e.value,o=e.right;if(t===n){if(null!==r){if(null!==o){var i={contents:o.value},a=Ca(o,i);return La(r,i.contents,a)}return r}return o}if(t<n){var s=Wa(r,t);return s===r?e:La(s,n,o)}var u=Wa(o,t);return u===o?e:La(r,n,u)}return e}var $a=Sa,Ya=function(e,t){return 0===function(e,t){var r=Ta(e),n=Ta(t);return r===n?function(e,t){for(;;){var r=t,n=e;if(n&&r){var o=r[0],i=n[0],a=i.value,s=o.value;if(a===s){t=Ua(o.right,r[1]),e=Ua(i.right,n[1]);continue}return a<s?-1:1}return 0}}(Ua(e,0),Ua(t,0)):r<n?-1:1}(e,t)},Ja=qa,Xa=function(e){var r=e.className,n=e.onClick,o=e.children,i={className:gn(["bg-ui-0 border border-ui-600 flex-shrink-0 h-8 inline-flex items-center justify-center px-3 rounded-full select-none shadow-border text-sm text-white transition-color",xn(r)])};return void 0!==n&&(i.onClick=ar(n)),t("div",i,o)},Ka=function(e){var r=e.className,n=e.name;return t("i",{className:gn(["fa fa-lg",n,xn(r)])})},Za=function(e){var r=e.className,n=e.onClick,o=e.checked,i={className:gn(["cbx",bn(void 0!==o&&o,"cbx--checked"),xn(r)])};return void 0!==n&&(i.onClick=ar(n)),t("div",i,t("svg",{viewBox:"0 0 12 11"},t("polyline",{points:"1 6.29411765 4.5 10 11 1"})))};function es(e){var r=e.mpo,n=e.selectedOptionIds,o=e.isLoading,i=e.onAddOption,a=e.onRemoveOption,s=void 0!==n?n:[],u=void 0!==o&&o,c=r.id,l=Vr(s,(function(e){return c===e})),d=gn(["flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",bn(!l,"text-body-400"),bn(!l&&u,"cursor-wait"),u&&!l?"cursor-default":"cursor-pointer"]);return t("li",{key:r.id,className:d,onClick:function(e){return l?Lt(a,r):u?0:Lt(i,r)}},t(Za,{className:"mr-2",checked:l}),t("span",{className:"flex-grow mr-4 my-px truncate fade-in-down",title:r.label},r.label),t("span",{key:String(r.assetCount),className:"fade-in-down"},String(r.assetCount)))}var ts=function(e){return e.id};function rs(e){var r=e.metaproperty,n=e.selectedOptionIds,o=e.isLoading,i=e.onAddOption,a=e.onRemoveOption,s=void 0!==o&&o;return t("div",{className:"pt-4 w-56"},t("h1",{className:"mb-2 px-4 truncate",title:r.label},r.label),t("ul",{className:"overflow-y-auto pb-1 max-h-400"},Pr(r.options,(function(e){return t(es,{mpo:e,selectedOptionIds:n,isLoading:s,onAddOption:i,onRemoveOption:a,key:e.id})}))))}var ns=rs,os=function(e){var r=e.smartfilter,n=e.selectedOptionIds,o=e.isLoading,i=e.onAddOption,a=e.onRemoveOption,s=void 0!==o&&o;return t("div",{className:"flex"},Pr(r.metaproperties,(function(e){return t(rs,{metaproperty:e,selectedOptionIds:n,isLoading:s,onAddOption:i,onRemoveOption:a,key:e.id})})))},is=function(e){var r=e.width,n=e.className,o=void 0!==r?r:100;return t("span",{className:gn(["cv-skeleton",xn(n)]),style:{width:String(o)+"px"}},"")},as=li({cmp:function(e,t){if(e>=887770203){if(e>=995579707){if(995579707===t)return 0}else if(887770203===t)return 0}else if(e>=628011190){if(628011190===t)return 0}else if(-191332581===t)return 0;var r=function(e){return e>=887770203?e>=995579707?2:3:e>=628011190?0:1};return Mr(r(e),r(t))}}),ss={empty:Fa(as),fromArray:function(e){return function(e,t){var r=as.cmp;return{cmp:r,data:Ea(e,r)}}(e)}};function us(e){return fr(e>=887770203?e>=995579707?"Image":"Video":e>=628011190?"Audio":"Document")}function cs(e){return e>=887770203?e>=995579707?{name:"Image",makeProps:function(e,t,r,n,o,i){var a={};return void 0!==e&&(a.className=ar(e)),void 0!==t&&(a.style=ar(t)),void 0!==r&&(a.title=ar(r)),void 0!==n&&(a.onClick=ar(n)),void 0!==o&&(a.key=ar(o)),a},make:Wt}:{name:"Video",makeProps:function(e,t,r,n,o,i){var a={};return void 0!==e&&(a.className=ar(e)),void 0!==t&&(a.style=ar(t)),void 0!==r&&(a.title=ar(r)),void 0!==n&&(a.onClick=ar(n)),void 0!==o&&(a.key=ar(o)),a},make:Ft}:e>=628011190?{name:"Audio",makeProps:function(e,t,r,n,o,i){var a={};return void 0!==e&&(a.className=ar(e)),void 0!==t&&(a.style=ar(t)),void 0!==r&&(a.title=ar(r)),void 0!==n&&(a.onClick=ar(n)),void 0!==o&&(a.key=ar(o)),a},make:Bt}:{name:"Document",makeProps:function(e,t,r,n,o,i){var a={};return void 0!==e&&(a.className=ar(e)),void 0!==t&&(a.style=ar(t)),void 0!==r&&(a.title=ar(r)),void 0!==n&&(a.onClick=ar(n)),void 0!==o&&(a.key=ar(o)),a},make:Dt}}function ls(e){return bt(0,[e])}function ds(e){return bt(1,[e])}function fs(e){return bt(2,[e])}var vs={assets:"",collection:"",collections:"",isLoading:!1,preselectedAssets:[]},ps=Ln({initialState:vs,reducer:function(e,t){if("number"==typeof t)return vs;switch(0|t.tag){case 0:var r=t[0],n=""!==r;return{assets:r,collection:e.collection,collections:e.collections,isLoading:n,preselectedAssets:e.preselectedAssets};case 1:var o=t[0],i=""!==o;return{assets:e.assets,collection:o,collections:e.collections,isLoading:i,preselectedAssets:e.preselectedAssets};case 2:var a=t[0],s=""!==a;return{assets:e.assets,collection:e.collection,collections:a,isLoading:s,preselectedAssets:e.preselectedAssets};case 3:return{assets:e.assets,collection:e.collection,collections:e.collections,isLoading:t[0],preselectedAssets:e.preselectedAssets};case 4:return{assets:e.assets,collection:e.collection,collections:e.collections,isLoading:e.isLoading,preselectedAssets:t[0]}}},equal:function(e,t){if(e.assets!==t.assets||e.collection!==t.collection||e.collections!==t.collections||e.isLoading!==t.isLoading)return!1;var r=t.preselectedAssets,n=e.preselectedAssets;if(n.length!==r.length)return!1;for(var o=0;;){var i=o;if(i===n.length)return!0;if(kt(n,i)!==kt(r,i))return!1;o=i+1|0}}}),hs=ps.send,ms=ps.useWith;function gs(e){return St(ms,void 0,(function(e){var t=e.assets.trim();return""===t?void 0:t}))}function bs(e){return e>=887770203?e>=995579707?"IMAGE":"VIDEO":e>=628011190?"AUDIO":"DOCUMENT"}function xs(e){var t,r=e.isLimitedUse,n=e.metapropertyOptionId_in;t=void 0!==n?n.map((function(e){return e})):null;var o,i=e.collectionId,a=e.assetType_in;o=void 0!==a?a.map(bs):null;var s,u=e.tagNames_in;s=void 0!==u?u.map((function(e){return e})):null;var c=e.searchTerm;return lr([["isLimitedUse",void 0!==r?r:null],["metapropertyOptionId_in",t],["collectionId",void 0!==i?i:null],["assetType_in",o],["tagNames_in",s],["searchTerm",void 0!==c?c:null]].filter((function(e){return!0})))}Lt(_i,(function(e){return"number"==typeof e?0:Lt(hs,bt(1,[""]))})),fo((function(e){return Lt(hs,0)}));var ys=[function(e){var t,r=sr(bi(pi(e)),"searchAssets");if(void 0!==r){var n,o=bi(pi(ar(r))),i=sr(o,"tags");if(void 0!==i){var a=ar(i);if(void 0!==gi(a))n=void 0;else{var s=sr(bi(pi(a)),"nodes");n={nodes:void 0!==s?bi(hi(ar(s))).map((function(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"name");if(void 0!==s){var u=fi(ar(s));a=void 0!==u?u:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var c,l=sr(n,"assetCount");if(void 0!==l){var d=vi(ar(l));c=void 0!==d?0|d:gr("Unexpected GraphQL query response")}else c=gr("Unexpected GraphQL query response");return{id:r,name:a,assetCount:c}}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response")}}}else n=void 0;var u,c=sr(o,"metapropertyFilters");if(void 0!==c){var l=ar(c);if(void 0!==gi(l))u=void 0;else{var d=sr(bi(pi(l)),"nodes");u={nodes:void 0!==d?bi(hi(ar(d))).map((function(e){var t=pi(e);if(void 0===t)return gr("Unexpected GraphQL query response");var r=sr(ar(t),"__typename");if(void 0===r)return gr("Unexpected GraphQL query response");var n=fi(ar(r));if(void 0===n)return gr("Unexpected GraphQL query response");switch(n){case"Metaproperty":var o,i=pi(e);if(void 0!==i){var a,s=ar(i),u=sr(s,"id");if(void 0!==u){var c=fi(ar(u));a=void 0!==c?c:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var l,d=sr(s,"label");if(void 0!==d){var f=fi(ar(d));l=void 0!==f?f:gr("Unexpected GraphQL query response")}else l=gr("Unexpected GraphQL query response");var v=sr(s,"options"),p=void 0!==v?bi(hi(ar(v))).map((function(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"label");if(void 0!==s){var u=fi(ar(s));a=void 0!==u?u:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var c,l=sr(n,"assetCount");if(void 0!==l){var d=vi(ar(l));c=void 0!==d?0|d:gr("Unexpected GraphQL query response")}else c=gr("Unexpected GraphQL query response");return{id:r,label:a,assetCount:c}}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response");o={id:a,label:l,options:p}}else o=gr("Unexpected GraphQL query response");return[-641487814,o];case"Smartfilter":var h,m=pi(e);if(void 0!==m){var g,b=ar(m),x=sr(b,"id");if(void 0!==x){var y=fi(ar(x));g=void 0!==y?y:gr("Unexpected GraphQL query response")}else g=gr("Unexpected GraphQL query response");var w,k=sr(b,"label");if(void 0!==k){var N=fi(ar(k));w=void 0!==N?N:gr("Unexpected GraphQL query response")}else w=gr("Unexpected GraphQL query response");var L,C=sr(b,"metaproperties"),S=void 0!==C?bi(hi(ar(C))).map((function(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"label");if(void 0!==s){var u=fi(ar(s));a=void 0!==u?u:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var c=sr(n,"options"),l=void 0!==c?bi(hi(ar(c))).map((function(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"label");if(void 0!==s){var u=fi(ar(s));a=void 0!==u?u:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var c,l=sr(n,"assetCount");if(void 0!==l){var d=vi(ar(l));c=void 0!==d?0|d:gr("Unexpected GraphQL query response")}else c=gr("Unexpected GraphQL query response");return{id:r,label:a,assetCount:c}}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response");return{id:r,label:a,options:l}}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),U=sr(b,"icon");if(void 0!==U){var A=ar(U);if(void 0!==gi(A))L=void 0;else{var _=fi(A);L=void 0!==_?_:gr("Unexpected GraphQL query response")}}else L=void 0;var T,q=sr(b,"zIndex");if(void 0!==q){var G=vi(ar(q));T=void 0!==G?0|G:gr("Unexpected GraphQL query response")}else T=gr("Unexpected GraphQL query response");h={id:g,label:w,metaproperties:S,icon:L,zIndex:T}}else h=gr("Unexpected GraphQL query response");return[-357541279,h];default:return gr("Unexpected GraphQL query response")}})):gr("Unexpected GraphQL query response")}}}else u=void 0;var f,v=sr(o,"count");if(void 0!==v){var p,h=sr(bi(pi(ar(v))),"assetType");if(void 0!==h){var m,g=bi(pi(ar(h))),b=sr(g,"image");if(void 0!==b){var x=vi(ar(b));m=void 0!==x?0|x:gr("Unexpected GraphQL query response")}else m=gr("Unexpected GraphQL query response");var y,w=sr(g,"video");if(void 0!==w){var k=vi(ar(w));y=void 0!==k?0|k:gr("Unexpected GraphQL query response")}else y=gr("Unexpected GraphQL query response");var N,L=sr(g,"audio");if(void 0!==L){var C=vi(ar(L));N=void 0!==C?0|C:gr("Unexpected GraphQL query response")}else N=gr("Unexpected GraphQL query response");var S,U=sr(g,"document");if(void 0!==U){var A=vi(ar(U));S=void 0!==A?0|A:gr("Unexpected GraphQL query response")}else S=gr("Unexpected GraphQL query response");p={image:m,video:y,audio:N,document:S}}else p=gr("Unexpected GraphQL query response");f={assetType:p}}else f=gr("Unexpected GraphQL query response");t={tags:n,metapropertyFilters:u,count:f}}else t=gr("Unexpected GraphQL query response");return{searchAssets:t}},"query searchAssets($filter: AssetFilter!, $language: String!) {\nsearchAssets(filter: $filter) {\ntags {\nnodes {\nid \nname \nassetCount \n}\n\n}\n\nmetapropertyFilters {\nnodes {\n__typename\n...on Smartfilter {\nid \nlabel(language: $language) \nmetaproperties {\nid \nlabel(language: $language) \noptions {\nid \nlabel(language: $language) \nassetCount \n}\n\n}\n\nicon \nzIndex \n}\n\n...on Metaproperty {\nid \nlabel(language: $language) \noptions {\nid \nlabel(language: $language) \nassetCount \n}\n\n}\n\n}\n\n}\n\ncount {\nassetType {\nimage \nvideo \naudio \ndocument \n}\n\n}\n\n}\n\n}\n",function(e,t,r,n){return Lt(e,lr([["filter",xs(t)],["language",r]].filter((function(e){return!0}))))}],ws=ts,ks=Fa(li({cmp:function(e,t){return Er(e.id,t.id)}}));function Ns(e,t,r){var n,o,i,a=e.tags,s=e.assetTypes,u=ss.fromArray(r),c=Ba(s)?Da(u):Da((o=u,{cmp:i=(n=s).cmp,data:Ma(n.data,o.data,i)})),l=Da(e.metaproperties);return{assetType_in:c,collectionId:void 0,metapropertyOptionId_in:0!==l.length?Pr(l,ws):void 0,searchTerm:t,tagNames_in:$a(a)?void 0:Ja(a),isLimitedUse:!1}}var Ls={assetTypes:ss.empty,metaproperties:ks,tags:null},Cs=Ln({initialState:Ls,reducer:function(e,t){if("number"==typeof t)return Ls;switch(0|t.tag){case 0:return{assetTypes:Ra(e.assetTypes,t[0]),metaproperties:e.metaproperties,tags:e.tags};case 1:return{assetTypes:Pa(e.assetTypes,t[0]),metaproperties:e.metaproperties,tags:e.tags};case 2:return{assetTypes:e.assetTypes,metaproperties:Ra(e.metaproperties,t[0]),tags:e.tags};case 3:return{assetTypes:e.assetTypes,metaproperties:Pa(e.metaproperties,t[0]),tags:e.tags};case 4:return{assetTypes:e.assetTypes,metaproperties:e.metaproperties,tags:Ha(e.tags,t[0])};case 5:return{assetTypes:e.assetTypes,metaproperties:e.metaproperties,tags:Wa(e.tags,t[0])}}},equal:function(e,t){return!(!Va(e.assetTypes,t.assetTypes)||!Va(e.metaproperties,t.metaproperties))&&Ya(e.tags,t.tags)}}),Ss=Cs.send;fo((function(e){return Lt(Ss,0)}));var Us=Cs.use,As=Cs.useWith,_s=function(e){var o,a,s=e.static,u=e.className,c=e.children,l=void 0!==s?ar(s):null,f=r((function(){return 0})),v=f[1],p=f[0],h=Zi(0),m=h.reMeasure,g=h.node,b=h.dimensions;if(void 0!==g){var x=ar(g);o=x.scrollWidth-x.clientWidth|0}else o=0;if(void 0!==b){var y=b;a=Ir(y.width)<y.scrollWidth}else a=!1;n((function(){Lt(m,0)}),[c]),i((function(){a||Lt(v,(function(e){return 0}))}),[a]);var w=String(-p)+"px";return t("div",{className:gn(["inline-flex flex-grow overflow-hidden",xn(u)])},a?t(d,void 0,t(ri,{className:gn(["pl-0 pr-0 z-20",bn(p>0,"shadow-fade-right active:shadow-fade-right"),bn(0===p,"hidden")]),onClick:function(e){return Lt(v,(function(e){var t=Math.max(0,e-250);return t<100?0:t}))},kind:-323491629,children:t(Zt,{className:"w-6 h-6"})})):null,t("div",{ref:h.nodeRef,className:"overflow-hidden"},t("div",{className:"transition-transform inline-flex",style:{transform:"translateX("+String(w)+")"}},c)),a?t(d,void 0,t(ri,{className:gn(["pl-0 pr-0 z-20",o<=5||p===o?"hidden":"shadow-fade-left active:shadow-fade-left"]),onClick:function(e){return Lt(v,(function(e){var t=Math.min(o,e+250);return t>o-100?o:t}))},kind:-323491629,children:t(er,{className:"w-6 h-6"})})):null,l)},Ts=t(ni,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"});function qs(e){return e[0]>=-357541279?e[1].zIndex:1e4}function Gs(e){return e.metaproperties}function Qs(e){var r=e.metapropertyFilters,n=e.isLoading,o=ts,i=Pr(Da(St(As,Va,Gs)),o),a=function(e){return Lt(Ss,bt(2,[e]))},s=function(e){return Lt(Ss,bt(3,[e]))};return Pr(mo(r,(function(e,t){return Mr(qs(e),qs(t))})),(function(e){var r;if(e[0]>=-357541279){var o,u=e[1],c=u.icon;if(0!==u.metaproperties.length)o=void 0!==c?""===c?null:t(Ka,{className:"mr-2",name:c}):null,r=[u.id,u.label,o,t(os,{smartfilter:u,selectedOptionIds:i,isLoading:n,onAddOption:a,onRemoveOption:s})];else r=void 0}else{var l=e[1];r=[l.id,l.label,null,t(ns,{metaproperty:l,selectedOptionIds:i,isLoading:n,onAddOption:a,onRemoveOption:s})]}if(void 0!==r){var f=r,v=f[3],p=f[1],h=t(d,void 0,f[2],t("span",{className:"max-w-24 truncate"},p));return t(na,{buttonClassName:"text-sm fade-in-down",title:h,alt:p,children:function(e){return t(d,void 0,n?Ts:null,v)},key:f[0]})}return null}))}function Os(e){return e.tags}function Is(e){var r=e.tags,n=e.isLoading,o=St(As,Ya,Os),i=t(d,void 0,t(zt,{className:"mr-2 inline w-6 h-6"}),fr("Tags"));return t(na,{className:"pt-4 pb-1 overflow-hidden max-w-600",buttonClassName:"text-sm fade-in-down",title:i,children:function(e){return t(d,void 0,n?Ts:null,t("h1",{className:"px-4 mb-4"},fr("Tags")),t("div",{className:"flex flex-wrap px-4 -mr-2"},Pr(mo(r,(function(e,t){return Mr(t.assetCount,e.assetCount)})),(function(e){var r=function(e,t){for(;;){var r=e;if(null===r)return!1;var n=r.value;if(t===n)return!0;e=t<n?r.left:r.right}}(o,e.name),i=gn(["mb-2 mr-2",bn(r,"bg-ui-500"),n&&!r?"cursor-default":"cursor-pointer"]);return t(Xa,{className:i,onClick:function(t){return r?Lt(Ss,bt(5,[e.name])):n?0:Lt(Ss,bt(4,[e.name]))},children:null,key:e.id},t("span",{className:"max-w-32 truncate"},e.name),t("span",{className:"text-body-400 ml-2"},String(e.assetCount)))}))))}})}function Ms(e){var r=e.isLoading,n=e.count,o=Jo().assetTypes,i=St(As,void 0,(function(e){return e.assetTypes}));if(Wr(o))return null;var a=t(d,void 0,t(Yt,{className:"mr-2 inline w-6 h-6"}),fr("Advanced")),s=Dr(o,(function(e){var o,a,s=function(e,t){return t>=887770203?t>=995579707?e.image:e.video:t>=628011190?e.audio:e.document}(n,e),u=0!==s?s:void 0;if(void 0!==u){var c=u,l=(a=e,function(e,t,r){for(;;){var n=e;if(null===n)return!1;var o=r(t,n.value);if(0===o)return!0;e=o<0?n.left:n.right}}((o=i).data,a,o.cmp)),d=gn(["flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",bn(!l,"text-body-400"),bn(!l&&r,"cursor-wait"),r&&!l?"cursor-default":"cursor-pointer"]),f=us(e),v=cs(e);return nr(t("li",{key:f,className:d,onClick:function(t){return Lt(Ss,bt(l?1:0,[e]))}},t(Za,{className:"mr-2",checked:l}),t(v.make,qt(v.makeProps,"w-6 h-6 mr-2 -my-2",void 0,void 0,void 0,void 0,0)),t("span",{className:"flex-grow mr-2 my-px"},f),t("span",{key:String(c),className:"fade-in-down"},String(c))))}}));return s.length>0?t(na,{className:"pt-4 pb-1",buttonClassName:"text-sm fade-in-down",title:a,children:function(e){return t(d,void 0,r?Ts:null,t("h1",{className:"px-4 mb-4"},fr("Type")),t("ul",void 0,s))}}):null}var Es=f((function(e){var r=Lt(Us,0),n=gs(),o=Jo(),i=o.language;Uo(i);var a,s=At(Wi(ys),Ns(r,n,o.assetTypes),i,0),u=s.isLoading,c=s.data,l=0;switch(0|c.tag){case 0:var d=c[0];void 0!==d?(a=ar(d),l=2):l=1;break;case 1:a=c[0],l=2;break;case 2:l=1}switch(l){case 1:return t("div",{className:"inline-flex items-center"},Pr([100,80,110],(function(e){return t(is,{width:e,className:"h-4 ml-2 mr-2 my-2",key:String(e)})})));case 2:var f,v=a.searchAssets.metapropertyFilters;if(void 0!==v){var p=ar(v).nodes;f=Wr(p)?null:t(Qs,{metapropertyFilters:p,isLoading:u})}else f=null;var h,m=a.searchAssets.tags;if(void 0!==m){var g=ar(m).nodes;h=Wr(g)?null:t(Is,{tags:g,isLoading:u})}else h=null;return t(_s,{className:"h-8",children:null},f,h,t(Ms,{isLoading:u,count:a.searchAssets.count.assetType}))}}));function js(e,t){switch(0|e.tag){case 0:var r=e[0];return void 0!==r?bt(0,[nr(Lt(t,ar(r)))]):e;case 1:return bt(1,[Lt(t,e[0])]);case 2:return e}}function zs(e){var t=pi(e);if(void 0!==t){var r,n=ar(t),o=sr(n,"id");if(void 0!==o){var i=fi(ar(o));r=void 0!==i?i:gr("Unexpected GraphQL query response")}else r=gr("Unexpected GraphQL query response");var a,s=sr(n,"derivatives");if(void 0!==s){var u,c=sr(bi(pi(ar(s))),"thumbnail");if(void 0!==c){var l=ar(c);u=void 0!==gi(l)?void 0:nr(l)}else u=gr("Unexpected GraphQL query response");a={thumbnail:u}}else a=gr("Unexpected GraphQL query response");var d,f=sr(n,"extensions"),v=void 0!==f?bi(hi(ar(f))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),p=sr(n,"name");if(void 0!==p){var h=fi(ar(p));d=void 0!==h?h:gr("Unexpected GraphQL query response")}else d=gr("Unexpected GraphQL query response");var m,g=sr(n,"url"),b=void 0!==g?ar(g):gr("Unexpected GraphQL query response"),x=sr(n,"isArchived");if(void 0!==x){var y=mi(ar(x));m=void 0!==y?y:gr("Unexpected GraphQL query response")}else m=gr("Unexpected GraphQL query response");var w,k=sr(n,"isWatermarked");if(void 0!==k){var N=mi(ar(k));w=void 0!==N?N:gr("Unexpected GraphQL query response")}else w=gr("Unexpected GraphQL query response");return{id:r,derivatives:a,extensions:v,name:d,url:b,isArchived:m,isWatermarked:w}}return gr("Unexpected GraphQL query response")}function Ps(e){return e>=887770203?e>=995579707?"IMAGE":"VIDEO":e>=628011190?"AUDIO":"DOCUMENT"}function Rs(e){var t,r=e.isLimitedUse,n=e.metapropertyOptionId_in;t=void 0!==n?n.map((function(e){return e})):null;var o,i=e.collectionId,a=e.assetType_in;o=void 0!==a?a.map(Ps):null;var s,u=e.tagNames_in;s=void 0!==u?u.map((function(e){return e})):null;var c=e.searchTerm;return lr([["isLimitedUse",void 0!==r?r:null],["metapropertyOptionId_in",t],["collectionId",void 0!==i?i:null],["assetType_in",o],["tagNames_in",s],["searchTerm",void 0!==c?c:null]].filter((function(e){return!0})))}function Fs(e){return e>=757540433?"DESC":"ASC"}function Bs(e){return e>=83152964?e>=868235851?"NAME":"PUBLISHED_AT":e>=39795671?"UPDATED_AT":"CREATED_AT"}function Vs(e){return lr([["direction",Fs(e.direction)],["field",Bs(e.field)]].filter((function(e){return!0})))}function Ds(e,t){if(void 0!==e){if(void 0!==t){var r=t;return{nodes:e.nodes.concat(r.nodes),totalCount:r.totalCount,pageInfo:r.pageInfo}}return e}return void 0!==t?t:void 0}function Hs(e){var t=e.searchAssets.assets;return rn(void 0!==t?Pr(t.nodes,(function(e){return e[1].node})):void 0,[])}function Ws(e){return js(e,Hs)}function $s(e){return Dr(e.preselectedNodes,(function(e){if("number"!=typeof e){var t=e[0];return t>=-188437701?963041744!==t&&984475830!==t&&t>=-188437700?void 0:e[1]:-903248805!==t&&-795439301!==t?void 0:e[1]}}))}var Ys={definition:[function(e){var t,r=bi(pi(e)),n=sr(r,"searchAssets");if(void 0!==n){var o,i=sr(bi(pi(ar(n))),"assets");if(void 0!==i){var a=ar(i);if(void 0!==gi(a))o=void 0;else{var s,u=pi(a);if(void 0!==u){var c,l=ar(u),d=sr(l,"nodes"),f=void 0!==d?bi(hi(ar(d))).map((function(e){var t=pi(e);if(void 0!==t){var r=sr(ar(t),"__typename");return void 0!==r&&void 0!==fi(ar(r))?[963041744,{node:zs(bi(pi(e)))}]:gr("Unexpected GraphQL query response")}return gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),v=sr(l,"totalCount");if(void 0!==v){var p=vi(ar(v));c=void 0!==p?0|p:gr("Unexpected GraphQL query response")}else c=gr("Unexpected GraphQL query response");var h,m=sr(l,"pageInfo");if(void 0!==m){var g=pi(ar(m));if(void 0!==g){var b,x=ar(g),y=sr(x,"endCursor");if(void 0!==y){var w=ar(y);b=void 0!==gi(w)?void 0:nr(w)}else b=void 0;var k,N=sr(x,"hasNextPage");if(void 0!==N){var L=mi(ar(N));k=void 0!==L?L:gr("Unexpected GraphQL query response")}else k=gr("Unexpected GraphQL query response");h={endCursor:b,hasNextPage:k}}else h=gr("Unexpected GraphQL query response")}else h=gr("Unexpected GraphQL query response");s={nodes:f,totalCount:c,pageInfo:h}}else s=gr("Unexpected GraphQL query response");o=s}}else o=void 0;t={assets:o}}else t=gr("Unexpected GraphQL query response");var C=sr(r,"preselectedNodes");return{searchAssets:t,preselectedNodes:void 0!==C?bi(hi(ar(C))).map((function(e){var t=pi(e);if(void 0===t)return gr("Unexpected GraphQL query response");var r=sr(ar(t),"__typename");if(void 0===r)return gr("Unexpected GraphQL query response");var n=fi(ar(r));if(void 0===n)return gr("Unexpected GraphQL query response");switch(n){case"Asset":var o,i=pi(e);if(void 0!==i){var a,s=ar(i),u=sr(s,"id");if(void 0!==u){var c=fi(ar(u));a=void 0!==c?c:gr("Unexpected GraphQL query response")}else a=gr("Unexpected GraphQL query response");var l,d=sr(s,"derivatives");if(void 0!==d){var f,v=sr(bi(pi(ar(d))),"thumbnail");if(void 0!==v){var p=ar(v);f=void 0!==gi(p)?void 0:nr(p)}else f=gr("Unexpected GraphQL query response");l={thumbnail:f}}else l=gr("Unexpected GraphQL query response");var h,m=sr(s,"extensions"),g=void 0!==m?bi(hi(ar(m))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),b=sr(s,"name");if(void 0!==b){var x=fi(ar(b));h=void 0!==x?x:gr("Unexpected GraphQL query response")}else h=gr("Unexpected GraphQL query response");var y,w=sr(s,"url"),k=void 0!==w?ar(w):gr("Unexpected GraphQL query response"),N=sr(s,"isArchived");if(void 0!==N){var L=mi(ar(N));y=void 0!==L?L:gr("Unexpected GraphQL query response")}else y=gr("Unexpected GraphQL query response");var C,S=sr(s,"isWatermarked");if(void 0!==S){var U=mi(ar(S));C=void 0!==U?U:gr("Unexpected GraphQL query response")}else C=gr("Unexpected GraphQL query response");o={id:a,derivatives:l,extensions:g,name:h,url:k,isArchived:y,isWatermarked:C}}else o=gr("Unexpected GraphQL query response");return[963041744,o];case"Audio":var A,_=pi(e);if(void 0!==_){var T,q=ar(_),G=sr(q,"id");if(void 0!==G){var Q=fi(ar(G));T=void 0!==Q?Q:gr("Unexpected GraphQL query response")}else T=gr("Unexpected GraphQL query response");var O,I=sr(q,"derivatives");if(void 0!==I){var M,E=sr(bi(pi(ar(I))),"thumbnail");if(void 0!==E){var j=ar(E);M=void 0!==gi(j)?void 0:nr(j)}else M=gr("Unexpected GraphQL query response");O={thumbnail:M}}else O=gr("Unexpected GraphQL query response");var z,P=sr(q,"extensions"),R=void 0!==P?bi(hi(ar(P))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),F=sr(q,"name");if(void 0!==F){var B=fi(ar(F));z=void 0!==B?B:gr("Unexpected GraphQL query response")}else z=gr("Unexpected GraphQL query response");var V,D=sr(q,"url"),H=void 0!==D?ar(D):gr("Unexpected GraphQL query response"),W=sr(q,"isArchived");if(void 0!==W){var $=mi(ar(W));V=void 0!==$?$:gr("Unexpected GraphQL query response")}else V=gr("Unexpected GraphQL query response");var Y,J=sr(q,"isWatermarked");if(void 0!==J){var X=mi(ar(J));Y=void 0!==X?X:gr("Unexpected GraphQL query response")}else Y=gr("Unexpected GraphQL query response");A={id:T,derivatives:O,extensions:R,name:z,url:H,isArchived:V,isWatermarked:Y}}else A=gr("Unexpected GraphQL query response");return[984475830,A];case"Document":var K,Z=pi(e);if(void 0!==Z){var ee,te=ar(Z),re=sr(te,"id");if(void 0!==re){var ne=fi(ar(re));ee=void 0!==ne?ne:gr("Unexpected GraphQL query response")}else ee=gr("Unexpected GraphQL query response");var oe,ie=sr(te,"derivatives");if(void 0!==ie){var ae,se=sr(bi(pi(ar(ie))),"thumbnail");if(void 0!==se){var ue=ar(se);ae=void 0!==gi(ue)?void 0:nr(ue)}else ae=gr("Unexpected GraphQL query response");oe={thumbnail:ae}}else oe=gr("Unexpected GraphQL query response");var ce,le=sr(te,"extensions"),de=void 0!==le?bi(hi(ar(le))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),fe=sr(te,"name");if(void 0!==fe){var ve=fi(ar(fe));ce=void 0!==ve?ve:gr("Unexpected GraphQL query response")}else ce=gr("Unexpected GraphQL query response");var pe,he=sr(te,"url"),me=void 0!==he?ar(he):gr("Unexpected GraphQL query response"),ge=sr(te,"isArchived");if(void 0!==ge){var be=mi(ar(ge));pe=void 0!==be?be:gr("Unexpected GraphQL query response")}else pe=gr("Unexpected GraphQL query response");var xe,ye=sr(te,"isWatermarked");if(void 0!==ye){var we=mi(ar(ye));xe=void 0!==we?we:gr("Unexpected GraphQL query response")}else xe=gr("Unexpected GraphQL query response");K={id:ee,derivatives:oe,extensions:de,name:ce,url:me,isArchived:pe,isWatermarked:xe}}else K=gr("Unexpected GraphQL query response");return[-188437701,K];case"Image":var ke,Ne=pi(e);if(void 0!==Ne){var Le,Ce=ar(Ne),Se=sr(Ce,"id");if(void 0!==Se){var Ue=fi(ar(Se));Le=void 0!==Ue?Ue:gr("Unexpected GraphQL query response")}else Le=gr("Unexpected GraphQL query response");var Ae,_e=sr(Ce,"derivatives");if(void 0!==_e){var Te,qe=sr(bi(pi(ar(_e))),"thumbnail");if(void 0!==qe){var Ge=ar(qe);Te=void 0!==gi(Ge)?void 0:nr(Ge)}else Te=gr("Unexpected GraphQL query response");Ae={thumbnail:Te}}else Ae=gr("Unexpected GraphQL query response");var Qe,Oe=sr(Ce,"extensions"),Ie=void 0!==Oe?bi(hi(ar(Oe))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),Me=sr(Ce,"name");if(void 0!==Me){var Ee=fi(ar(Me));Qe=void 0!==Ee?Ee:gr("Unexpected GraphQL query response")}else Qe=gr("Unexpected GraphQL query response");var je,ze=sr(Ce,"url"),Pe=void 0!==ze?ar(ze):gr("Unexpected GraphQL query response"),Re=sr(Ce,"isArchived");if(void 0!==Re){var Fe=mi(ar(Re));je=void 0!==Fe?Fe:gr("Unexpected GraphQL query response")}else je=gr("Unexpected GraphQL query response");var Be,Ve=sr(Ce,"isWatermarked");if(void 0!==Ve){var De=mi(ar(Ve));Be=void 0!==De?De:gr("Unexpected GraphQL query response")}else Be=gr("Unexpected GraphQL query response");ke={id:Le,derivatives:Ae,extensions:Ie,name:Qe,url:Pe,isArchived:je,isWatermarked:Be}}else ke=gr("Unexpected GraphQL query response");return[-795439301,ke];case"Video":var He,We=pi(e);if(void 0!==We){var $e,Ye=ar(We),Je=sr(Ye,"id");if(void 0!==Je){var Xe=fi(ar(Je));$e=void 0!==Xe?Xe:gr("Unexpected GraphQL query response")}else $e=gr("Unexpected GraphQL query response");var Ke,Ze=sr(Ye,"derivatives");if(void 0!==Ze){var et,tt=sr(bi(pi(ar(Ze))),"thumbnail");if(void 0!==tt){var rt=ar(tt);et=void 0!==gi(rt)?void 0:nr(rt)}else et=gr("Unexpected GraphQL query response");Ke={thumbnail:et}}else Ke=gr("Unexpected GraphQL query response");var nt,ot=sr(Ye,"extensions"),it=void 0!==ot?bi(hi(ar(ot))).map((function(e){var t=fi(e);return void 0!==t?t:gr("Unexpected GraphQL query response")})):gr("Unexpected GraphQL query response"),at=sr(Ye,"name");if(void 0!==at){var st=fi(ar(at));nt=void 0!==st?st:gr("Unexpected GraphQL query response")}else nt=gr("Unexpected GraphQL query response");var ut,ct=sr(Ye,"url"),lt=void 0!==ct?ar(ct):gr("Unexpected GraphQL query response"),dt=sr(Ye,"isArchived");if(void 0!==dt){var ft=mi(ar(dt));ut=void 0!==ft?ft:gr("Unexpected GraphQL query response")}else ut=gr("Unexpected GraphQL query response");var vt,pt=sr(Ye,"isWatermarked");if(void 0!==pt){var ht=mi(ar(pt));vt=void 0!==ht?ht:gr("Unexpected GraphQL query response")}else vt=gr("Unexpected GraphQL query response");He={id:$e,derivatives:Ke,extensions:it,name:nt,url:lt,isArchived:ut,isWatermarked:vt}}else He=gr("Unexpected GraphQL query response");return[-903248805,He];default:return 716602267}})):gr("Unexpected GraphQL query response")}},"query searchAssets($filter: AssetFilter!, $after: Cursor, $orderBy: AssetOrder!, $preselectedIds: [ID!]!) {\nsearchAssets(filter: $filter) {\nassets(after: $after, first: 50, orderBy: $orderBy) {\nnodes {\n__typename\n...DisplayAsset \n}\n\ntotalCount \npageInfo {\nendCursor \nhasNextPage \n}\n\n}\n\n}\n\npreselectedNodes: nodes(ids: $preselectedIds) {\n__typename\n...on Asset {\n__typename\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n\n...on Image {\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n\n...on Document {\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n\n...on Video {\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n\n...on Audio {\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n\n}\n\n}\nfragment DisplayAsset on Asset {\n__typename\nid \nderivatives {\nthumbnail \n}\n\nextensions \nname \nurl \nisArchived \nisWatermarked \n}\n",function(e,t,r,n,o,i){return Lt(e,lr([["filter",Rs(t)],["after",void 0!==r?ar(r):null],["orderBy",Vs(n)],["preselectedIds",o.map((function(e){return e}))]].filter((function(e){return!0}))))}],getPageInfo:function(e){var t=e.searchAssets.assets;if(void 0!==t)return t.pageInfo},concatNodes:function(e,t){return{searchAssets:{assets:Ds(e.searchAssets.assets,t.searchAssets.assets)},preselectedNodes:t.preselectedNodes}}};function Js(e){return!0}function Xs(e){var n=e.url,o=e.cover,i=void 0===o||o,a=r((function(){return!1})),s=a[1],u="select-none w-full h-full "+(i?"object-cover ":"object-contain ")+(a[0]?" fade-in animation-duration-500":" invisible");return t("img",{className:u,draggable:!1,src:void 0!==n?n:"data:,",onLoad:function(e){return Lt(s,Js)}})}var Ks=Xs,Zs=function(e){var r,n=e.urls,o=e.totalCount,i=(4,n.slice(0,4)),a=i.length;if(a>=5)r=null;else switch(a){case 0:r=t(Xs,{});break;case 1:var s=i[0];r=t(Xs,{url:s,cover:!1});break;case 2:var u=i[0],c=i[1];r=t(d,void 0,t("div",{className:"w-2/4 h-full"},t(Xs,{url:u})),t("div",{className:"w-2/4 h-full"},t(Xs,{url:c})));break;case 3:var l=i[0],f=i[1],v=i[2];r=t(d,void 0,t("div",{className:"w-2/4 h-full"},t(Xs,{url:l})),t("div",{className:"flex flex-col w-2/4"},t("div",{className:"h-2/4 bg-ui-500 fade-in"},t(Xs,{url:f})),t("div",{className:"h-2/4 bg-ui-600 fade-in"},t(Xs,{url:v}))));break;case 4:var p=i[0],h=i[1],m=i[2],g=i[3];r=t(d,void 0,t("div",{className:"flex flex-col w-2/4"},t("div",{className:"h-2/4"},t(Xs,{url:p})),t("div",{className:"h-2/4 bg-ui-400 fade-in"},t(Xs,{url:h}))),t("div",{className:"flex flex-col w-2/4"},t("div",{className:"h-2/4 bg-ui-500 fade-in"},t(Xs,{url:m})),t("div",{className:"h-2/4 bg-ui-600 fade-in"},t(Xs,{url:g}))))}var b=o>4?t("div",{className:"absolute text-ui-0 right-0 bottom-0 text-xl h-2/4 w-2/4 text-center flex items-center justify-center bg-ui-900"},"+"+String(o-4|0)):null;return t(d,void 0,r,b)},eu=function(e){var r=e.alt,n=e.className,o=e.fadeIn,i=e.id,a=e.style,s=e.stacked,u=e.title,c=e.onClick,l=e.children,d=void 0===o||o,f=void 0!==s&&s,v=void 0!==l?ar(l):null,p={className:gn(["m-2 w-48 self-start group relative rounded bg-ui-500 shadow transition-shadow cursor-pointer",bn(d,"fade-in-down"),xn(n)])};return void 0!==i&&(p.id=ar(i)),void 0!==a&&(p.style=ar(a)),void 0!==r&&(p.title=ar(r)),void 0!==c&&(p.onClick=ar(c)),t("div",p,t("div",{className:"overflow-hidden rounded"},t("div",{className:"flex h-32 relative"},v),t("header",{className:"p-3 truncate bg-ui-0"},u)),f?t("div",{className:"absolute border-b rounded left-px right-px h-3 -bottom-0.75"}):null)},tu=function(e){var n=e.className,o=e.active,i=e.onClick,a=e.title,s=e.children,u=void 0!==o&&o,c=r((function(){return 870530776})),l=c[1],d=c[0],f=Xo(),v=gn(["inline-flex p-0.5 items-center text-md text-body-400 select-none shadow shadow-overlay focus:outline-none transition-color",u?"bg-brand-500 hover:bg-brand-600 text-ui-0":"bg-ui-0-.8 hover:bg-ui-0 hover:text-body-500",xn(n)]),p=u||870530776!==d?nr(Wo(f,-791844958,d)):void 0,h={className:v,onMouseOut:function(e){return Lt(l,(function(e){return 870530776}))},onMouseOver:function(e){return Lt(l,(function(e){return 1049777564}))}};return void 0!==p&&(h.style=ar(p)),void 0!==a&&(h.title=ar(a)),void 0!==i&&(h.onClick=ar(i)),t("button",h,s)};function ru(e){return e.id}function nu(e){var t=e.derivatives.thumbnail;return void 0!==t?t:fn($r(e.extensions,0))}function ou(e){var t=$r(e.extensions,0);if(void 0!==t){var r=t.toUpperCase();return"JPG"===r?"JPEG":r}}var iu=f((function(e){var r,n=e.className,o=e.fadeIn,i=e.asset,a=e.isSelected,s=e.onClick,u=e.theme,c=e.children,l=void 0===o||o,f=void 0!==c?ar(c):null,v=gn([xn(n),bn(a,"shadow-outline")]);if(a&&void 0!==u){var p=u.colorPrimary;r=void 0!==p?{boxShadow:"0 0 0 2px "+String(p)}:void 0}else r=void 0;var h,m,g,b=Jo(),x=t(tu,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden group-hover:block group-hover:fade-in",onClick:function(e){var t;return e.stopPropagation(),(t=i.url,function(e){var r=t,n=e;return or(Gr.open(r,n,void 0))})("_blank"),0},title:fr("Open in new tab"),children:t(Pt,{className:"w-6 h-6"})}),y=!0===b.hideExternalAccess?null:x;if(void 0!==s){var w=s;h=function(e){return e.stopPropagation(),Lt(w,i)}}else h=void 0;if(i.isArchived||i.isWatermarked){var k=(g=[i.isArchived?fr("archived"):void 0,i.isWatermarked?fr("watermarked"):void 0],Dr(g,(function(e){return e}))).join(", ");m=t("span",{className:"overlay-pill left-0 bottom-0 max-w-32 truncate",title:k},k)}else m=null;var N=ou(i),L={alt:i.name,className:v,fadeIn:l,id:i.id,title:i.name,children:t(d,void 0,t(Ks,{url:nu(i),cover:!1}),a?t("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}):null,y,t(tu,{className:gn(["absolute right-0 top-0 mr-3 mt-3 rounded-full",bn(!a,"hidden group-hover:block group-hover:fade-in")]),active:a,title:fr(a?"Deselect":"Select"),children:t(Kt,{className:"w-6 h-6"})}),m,void 0!==N?t("span",{className:"overlay-pill right-0 bottom-0"},N.toUpperCase()):null,f)};return void 0!==r&&(L.style=ar(r)),void 0!==h&&(L.onClick=ar(h)),t(eu,L)})),au=function(e){var r=e.title,n=e.rows,o=e.columns,i=void 0!==r?ar(r):null;return function(e,t){if(e<=0)return[];for(var r=new Array(e),n=0,o=e-1|0;n<=o;++n)r[n]=t(n);return r}(Oi(n,o),Ct((function(e){return t(eu,{style:{animationDuration:String(Oi(Qi(e,o),200)+500|0)+"ms"},title:t(d,void 0,t(is,{width:70+yn(100,e)|0,className:"h-4"}),i),key:String(e)})})))};function su(e,t){if(!e)throw new Error("Invariant failed")}function uu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cu(){return(cu=Object.assign||function(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=t[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function lu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var du=new Map,fu=new Map,vu=new Map,pu=0;function hu(e,t,r){void 0===r&&(r={}),r.threshold||(r.threshold=0);var n=r,o=n.root,i=n.rootMargin,a=n.threshold;if(du.has(e)&&su(!1),e){var s=function(e){return e?vu.has(e)?vu.get(e):(pu+=1,vu.set(e,pu.toString()),vu.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),u=fu.get(s);u||(u=new IntersectionObserver(gu,r),s&&fu.set(s,u));var c={callback:t,element:e,inView:!1,observerId:s,observer:u,thresholds:u.thresholds||(Array.isArray(a)?a:[a])};return du.set(e,c),u.observe(e),c}}function mu(e){if(e){var t=du.get(e);if(t){var r=t.observerId,n=t.observer,o=n.root;n.unobserve(e);var i=!1,a=!1;r&&du.forEach((function(t,n){n!==e&&(t.observerId===r&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&vu.delete(o),n&&!i&&n.disconnect(),du.delete(e)}}}function gu(e){e.forEach((function(e){var t=e.isIntersecting,r=e.intersectionRatio,n=e.target,o=du.get(n);if(o&&r>=0){var i=o.thresholds.some((function(e){return o.inView?r>e:r>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var bu=function(e){var r,n;function o(){for(var t,r=arguments,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=r[i];return uu(lu(t=e.call.apply(e,[this].concat(o))||this),"state",{inView:!1,entry:void 0}),uu(lu(t),"node",null),uu(lu(t),"handleNode",(function(e){t.node&&(mu(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),uu(lu(t),"handleChange",(function(e,r){(e!==t.state.inView||e)&&t.setState({inView:e,entry:r}),t.props.onChange&&t.props.onChange(e,r)})),t}n=e,(r=o).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n;var i=o.prototype;return i.componentDidMount=function(){this.node||su(!1)},i.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(mu(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(mu(this.node),this.node=null)},i.componentWillUnmount=function(){this.node&&(mu(this.node),this.node=null)},i.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin;hu(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n})}},i.render=function(){var e=this.state,r=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:r,entry:n,ref:this.handleNode});var o=this.props,i=o.children,a=o.as,s=o.tag,u=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(o,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return t(a||s||"div",cu({ref:this.handleNode},u),i)},o}(c);uu(bu,"displayName","InView"),uu(bu,"defaultProps",{threshold:0,triggerOnce:!1});var xu={inView:!1,entry:void 0},yu=function(e){var n=e.isLoading,a=e.hasNextPage,s=e.loadMore,u=e.children,c=function(e){void 0===e&&(e={});var t=o(),n=r(xu),i=n[0],a=n[1];return[l((function(r){t.current&&(mu(t.current),e.triggerOnce||a(xu)),r&&hu(r,(function(t,n){a({inView:t,entry:n}),t&&e.triggerOnce&&mu(r)}),e),t.current=r}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),i.inView,i.entry]}({}),f=c[1];i((function(){f&&!n&&a&&Lt(s,0)}),[f]);var v=a?t("div",{ref:c[0],className:"relative h-32 w-full"},t(ni,{className:bn(!f,"hidden")})):null;return t(d,void 0,u,v)},wu=_r;function ku(e){return e.preventDefault(),0}function Nu(e,t){return Vr(e,(function(e){return t===e}))}function Lu(e){return{x:e.clientX,y:e.clientY,target:e.target}}function Cu(e,t,r,n,o,i){switch(0|e.tag){case 0:var a=e[0];return Br(a.added,(function(e){return""===e.id||e.classList.contains("shadow-outline")?0:(e.classList.add("selected-outline"),void 0!==n?(_r(e,"box-shadow","0 0 0 2px "+String(ar(n))),0):0)})),Br(a.removed,(function(e){return""!==e.id?(e.classList.remove("selected-outline"),un(n)&&!e.classList.contains("shadow-outline")?(_r(e,"box-shadow",""),0):0):0}))}if(void 0===r)return 0;var s;switch(Br(Array.prototype.slice.call(ar(r).querySelectorAll(".selected-outline")),(function(e){var t=Lt(Ur.ofNode,e);return void 0!==t?(ar(t).classList.remove("selected-outline"),0):0})),0|t.tag){case 0:var u=t[0];s=void 0!==u?u:void 0;break;case 1:var c=t[0];s=0!==c.length?c:void 0;break;case 2:s=void 0}if(void 0===s)return 0;var l=Dr(e[0].selected,(function(e){var t=e.id;return""===t?void 0:t})),d=Fr(s,(function(e){var t=e.id,r=function(e){return t===e};return function(e){return Vr(e,r)}(l)}));switch(0|e.tag){case 0:return 0;case 1:return Lt(o,d);case 2:return Lt(i,d)}}var Su=f((function(e){var r,n=e.assets,a=e.preselectedAssets,s=e.count,u=e.hasNextPage,c=e.isLoading,l=e.loadMore,d=e.onSelect,f=e.onToggle,v=e.renderAsset,p=e.renderEmptyState,h=e.selectedAssetIds,m=e.selectionMode,g=e.theme,b=e.children,x=void 0!==u&&u,y=void 0!==c&&c,w=void 0!==l?l:function(e){return 0},k=void 0!==d?d:function(e){return 0},N=void 0!==f?f:function(e){return 0},L=void 0!==p?p:function(e){return null},C=void 0!==h?h:[],S=void 0!==m?m:2,U=void 0!==b?ar(b):null,A=lr(Pr(C,(function(e){return[e,0]}))),_=Zi(0),T=_.nodeRef,q=_.node,G=_.dimensions,Q=an(qo(),q),O=o(void 0),I=en(g,Ho);if(i((function(){O.current=function(e){return Cu(e,n,Q,I,k,N)}}),[Q,n]),i((function(){if(void 0===q||void 0===Q);else if(void 0!==(S>=2?0:void 0)){var e=function(e){var t=function(t,r){var n=void 0===t||t,o=function(t){return e.rootElement.addEventListener(t,r,{passive:n,capture:!1,once:!1}),0};return function(e){return Br(e,o)}},r=function(t,r){var n=void 0===t||t,o=function(t){return e.rootElement.removeEventListener(t,r,{passive:n,capture:!1}),0};return function(e){return Br(e,o)}},n={added:[],removed:[],scrollAvailable:!0,scrollSpeed:0,selected:[],singleClick:!0},o={start:{x:0,y:0},end_:{x:0,y:0}},i=Or.createElement("div");i.className=e.rectangleClass;var a=e.rectangleColor;void 0!==a&&wu(i,"border-color",a);var s=wu(wu(wu(wu(i,"will-change","top, left, bottom, right, width, height"),"top","0"),"left","0"),"position","fixed"),u=function(t){var r,i=e.targetContainer,a=i.getBoundingClientRect(),u=o.end_.x,c=u<a.left?a.left:u>a.left+a.width?a.left+a.width:u,l=o.end_.y;if(l<a.top){var d=i.scrollTop;n.scrollSpeed=0!==d?-Math.abs(a.top-l):0,r=a.top}else if(l>a.top+a.height){var f=i.scrollHeight-i.scrollTop-i.clientHeight;n.scrollSpeed=0!==f?Math.abs(a.top+a.height-l):0,r=a.top+a.height}else n.scrollSpeed=0,r=l;var v=Math.min(o.start.x,c),p=Math.min(o.start.y,r),h=Math.max(o.start.x,c),m=Math.max(o.start.y,r);return wu(wu(wu(wu(s,"top",String(p)+"px"),"left",String(v)+"px"),"width",String(h-v)+"px"),"height",String(m-p)+"px"),0},c={position:o,el:s,redraw:u},l=Or.createElement("div");l.appendChild(s);var d=wu(wu(wu(wu(wu(l,"overflow","hidden"),"pointer-events","none"),"position","fixed"),"z-index","9999999"),"transform","translate3d(0, 0, 0)"),f=function(e){if(void 0!==e){var t=ar(e),r=t.top,n=t.left,o=t.width,i=t.height;return wu(wu(wu(wu(d,"top",String(r)+"px"),"left",String(n)+"px"),"width",String(o)+"px"),"height",String(i)+"px"),0}return wu(wu(wu(wu(d,"top","0"),"left","0"),"width","100%"),"height","100%"),0},v=function(e){return n.selected=[],n.added=[],n.removed=[],0},p=function(t){var r=e.targetContainer.querySelector(".card-list");if(null==r)return 0;var o=s.getBoundingClientRect(),i=[];n.added=[],n.removed=[];var a=function(e){return t=e.getBoundingClientRect(),r=o,t.right>=r.left&&t.left<=r.right&&t.bottom>=r.top&&t.top<=r.bottom?(Nu(n.selected,e)||Hr(e,n.added),Hr(e,i)):0;var t,r};return function(e){Br(e,a)}(Ar(r)),Br(n.selected,(function(e){return Nu(i,e)?0:Hr(e,n.removed)})),n.selected=i,0},h=function(t){t.preventDefault();var r=Lu(t);if(o.end_={x:r.x,y:r.y},n.scrollAvailable&&0!==n.scrollSpeed){var i=function(t){if(0!==n.scrollSpeed){if(0!==n.scrollSpeed){var r=e.targetContainer.scrollTop;e.targetContainer.scrollTop=Math.ceil(n.scrollSpeed/10)+r,o.start.y=o.start.y-(e.targetContainer.scrollTop-r)}return u(),p(),Lt(e.send,bt(0,[{added:n.added,removed:n.removed,selected:n.selected}])),requestAnimationFrame(i),0}return 0};return requestAnimationFrame(i),0}return u(),p(),Lt(e.send,bt(0,[{added:n.added,removed:n.removed,selected:n.selected}]))},m=function(e){var t=di(e.wheelDeltaY);return"number"==typeof t||1!==t.tag?0:(n.scrollSpeed=n.scrollSpeed+10*-t[0],h(e))},g=function(i){i.preventDefault();var a=Lu(i);if(Math.abs(a.x+a.y-(o.start.x+o.start.y))>=10){r(!1,g)(["mousemove","touchmove"]),t(!1,h)(["mousemove","touchmove"]),wu(s,"display","block"),e.rootElement.appendChild(d),n.singleClick=!1;var u=e.targetContainer,c=u.getBoundingClientRect();if(u.scrollHeight!==Math.round(c.height)){n.scrollAvailable=!0,t(!1,m)(["wheel"]),f(nr(c));var l=-c.top,v=-c.left;wu(wu(s,"margin-top",String(l)+"px"),"margin-left",String(v)+"px")}else n.scrollAvailable=!1,f(void 0),wu(wu(s,"margin-top","0"),"margin-left","0");return h(i)}return 0},b=function(t){r(void 0,g)(["mousemove","touchmove"]),r(void 0,h)(["touchmove","mousemove"]),r(void 0,b)(["mouseup","touchcancel","touchend"]),n.singleClick||(p(),t.ctrlKey||t.metaKey?Lt(e.send,bt(2,[{added:n.added,removed:n.removed,selected:n.selected}])):Lt(e.send,bt(1,[{added:n.added,removed:n.removed,selected:n.selected}]))),n.scrollSpeed=0,r(void 0,m)(["wheel"]);return tn(or(d.parentNode),(function(e){return e.removeChild(d)})),r(void 0,ku)(["selectstart"]),wu(s,"display","none"),0},x=function(r){if("mousedown"===r.type&&0!==r.button)return 0;var i=Lu(r);return function(e){for(var t=e,r=5;;){var n=r,o=t;if(0===n)return!1;if("BUTTON"===o.tagName)return!0;var i=o.parentElement;if(null==i)return!1;r=n-1|0,t=i}}(i.target)?0:Nu(function(e){var t=e.path||e.composedPath&&e.composedPath();if(t)return t;var r=e.target.parentElement;for(t=[e.target,r];r=r.parentElement;)t.push(r);return t.push(document,window),t}(r),e.targetContainer)?(o.start={x:i.x,y:i.y},o.end_={x:0,y:0},n.singleClick=!0,v(),t(void 0,ku)(["selectstart"]),t(!1,g)(["touchmove","mousemove"]),t(!1,b)(["mouseup","touchcancel","touchend"])):0},y=function(e){return r(void 0,x)(["mousedown"]),r(!1,x)(["touchstart"])};return{selectAll:function(t){var r=Pr(t,(function(t){return Array.prototype.slice.call(e.rootElement.querySelectorAll(t))}));return function(e){return function(e,t,r){var n,o;o=r.length;var i=[];for(n=0;n<o-1;++n)i.push(r[n]);var a=r[o-1];for(n=0;n<a.length;++n)i.push(a[n]);return e.concat.apply(e,i)}(e,0,[r])}},on:t,off:r,state:n,makePayload:function(e){return{added:n.added,removed:n.removed,selected:n.selected}},Area:c,Clipping:{el:d,redraw:f},clearSelection:v,removeFromSelection:function(e){return Hr(e,n.removed),t=e,-1!==(o=(r=n.selected).indexOf(t))?(r.splice(o,1),0):0;var t,r,o},updateCollidingElements:p,onTapMove:h,manualScroll:m,delayedTapMove:g,onTapStop:b,onTapStart:x,enable:function(e){return t(void 0,x)(["mousedown"]),t(!1,x)(["touchstart"])},disable:y,destroy:function(e){y();var t=function(e){return e.removeChild(d)};return function(e){return tn(e,t)}(or(d.parentNode))}}}({send:function(e){var t=O.current;return void 0!==t?Lt(t,e):0},rootElement:ar(Q),rectangleClass:"rounded border-2 border-brand-500",rectangleColor:I,targetContainer:ar(q)});return Lt(e.enable,0),function(t){return Lt(e.destroy,0)}}}),[Q,q,Cu,g]),i((function(){switch(0|a.tag){case 0:break;case 1:var e=a[0];0!==e.length&&(Lt(hs,bt(4,[[]])),Lt(k,e))}}),[a]),void 0!==s)r=[1,s];else if(void 0!==G){var M=G;r=[Ir(M.height/188),(M.width-16)/208|0]}else r=[0,0];var E,j,z=r[1],P=r[0],R=0;switch(0|n.tag){case 0:var F=n[0];void 0!==F?(j=F,R=2):R=1;break;case 1:var B=n[0];0!==B.length?(j=B,R=2):E=Lt(L,0);break;case 2:R=1}switch(R){case 1:E=t(au,{rows:P,columns:z});break;case 2:var V=function(e){return Lt(N,[e])};E=t(yu,{isLoading:y,hasNextPage:x,loadMore:w,children:Rr(j,(function(e,r){var n=un(sr(A,r.id)),o=e>=Oi(P,z);return void 0!==v?Tt(v,r,e,o,n,V):t(iu,{fadeIn:o,asset:r,isSelected:n,onClick:V,key:r.id})}))})}return t("div",{ref:T,className:"flex flex-col flex-grow overflow-y-auto"},U,t("div",{ref:T,className:"card-list"},E))}));function Uu(e){return t("svg",{className:"h-20",viewBox:"0 5 60 82"},t("defs",void 0,t("filter",{id:"prefix__a",height:"105%",width:"103.3%",filterUnits:"objectBoundingBox",x:"-1.7%",y:"-1.2%"},t("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t("feColorMatrix",{in:"shadowOffsetOuter1",values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0"})),t("filter",{id:"prefix__c",height:"120%",width:"110%",filterUnits:"objectBoundingBox",x:"-5%",y:"-5%"},t("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),t("feColorMatrix",{in:"shadowOffsetOuter1",values:"0 0 0 0 0 0 0 0 0 0.133333333 0 0 0 0 0.2 0 0 0 0.05 0"})),t("path",{id:"prefix__b",d:"M5 5h35l20 20v55a5 5 0 01-5 5H5a5 5 0 01-5-5V10a5 5 0 015-5z"}),t("path",{id:"prefix__d",d:"M40 5l20 20H45a5 5 0 01-5-5V5z"})),t("g",{fill:"none",fillRule:"evenodd"},t("use",{fill:"#000",filter:"url(#prefix__a)",xlinkHref:"#prefix__b"}),t("use",{fill:"#FFF",xlinkHref:"#prefix__b"}),t("g",{fillRule:"nonzero"},t("use",{fill:"#000",filter:"url(#prefix__c)",xlinkHref:"#prefix__d"}),t("use",{fill:"#FFF",xlinkHref:"#prefix__d"}))))}var Au=function(e){var r=e.onReset;return t("div",{className:" w-full h-full flex flex-col items-center justify-center"},t("div",{className:"bg-ui-400 rounded-full w-40 h-40 flex items-center justify-center"},t(Uu,{}),t(Rt,{className:"absolute mt-1 ml-px text-body-300",style:{height:"36px",width:"36px"}})),t("h1",{className:"mt-6 text-2xl"},fr("No results found")),t("span",{className:"mt-4 text-body-400"},fr("Try adjusting the filter to find assets.")),t(ri,{className:"mt-8",title:fr("Reset filters"),onClick:function(e){return Lt(r,0)},kind:-791844958,children:fr("Reset filters")}))};function _u(e){return bt(0,[e])}var Tu=Ln({initialState:[],reducer:function(e,t){if("number"==typeof t)return[];switch(0|t.tag){case 1:var r=t[0];return void 0!==e.find((function(e){return!e.tag&&r.id===e[0].id}))?[]:[bt(0,[r])];case 0:case 2:break;case 3:var n=t[0],o=Fr(e,(function(e){return!e.tag||e[0].id!==n.id}));return e.length===o.length&&Hr(bt(1,[n]),o),o}var i,a,s;if("number"==typeof t)i=gr("Unreachable");else switch(0|t.tag){case 0:case 2:i=lr((a=t[0],s=ru,zr(a,(function(e){var t=e;return[Lt(s,t),t]}))));break;default:i=gr("Unreachable")}return function(e,t){for(var r=e.length,n=t.length,o=new Array(r+n|0),i=0,a=r-1|0;i<=a;++i)o[i]=e[i];for(var s=0,u=n-1|0;s<=u;++s)o[r+s|0]=t[s];return o}(Fr(e,(function(e){if(e.tag)return!0;var r=e[0].id;if(void 0===sr(i,r))return!0;if(function(e,t){delete e[t]}(i,r),"number"==typeof t)return gr("Unreachable");switch(0|t.tag){case 0:return!0;case 2:return!1;default:return gr("Unreachable")}})),function(e){return Pr(e,_u)}(cr(i)))},equal:function(e,t){if(e.length!==t.length)return!1;for(var r=0;;){var n=r;if(n===e.length)return!0;if(!function(e){return function(t){return n=t,(r=e).tag?!!n.tag&&yi(r[0],n[0]):!n.tag&&(o=r[0],i=n[0],o.id===i.id);var r,n,o,i}}(kt(e,n))(kt(t,n)))return!1;r=n+1|0}}}),qu=Tu.send,Gu=Tu.use;function Qu(e){return Lt(qu,bt(0,[e]))}function Ou(e){var r,n=e.onClick,o=e.title,i=e.icon;if(void 0!==i){var a=i;r=t(a.make,qt(a.makeProps,"w-5 h-5 mr-1",void 0,void 0,void 0,void 0,0))}else r=null;var s={className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer",title:fr("Remove filter")};return void 0!==n&&(s.onClick=ar(n)),t(Xa,{className:"mr-2 fade-in-down",children:null},r,t("span",{className:"max-w-32 truncate",title:o},o),t(tr,s))}function Iu(e){var r=Lt(Us,0),n=r.tags,o=r.metaproperties,i=r.assetTypes,a=Ba(o)&&Ba(i)&&$a(n)?void 0:nr(t(ri,{className:"flex-shrink-0 fade-in-down",onClick:function(e){return Lt(Ss,0)},kind:-323491629,children:fr("Clear filters")})),s={className:"ml-2",children:null};void 0!==a&&(s.static=ar(a));var u=function(e){return t(Ou,{onClick:function(t){return Lt(Ss,bt(3,[e]))},title:e.label,key:e.id})},c=function(e){return t(Ou,{onClick:function(t){return Lt(Ss,bt(5,[e]))},title:e,key:e})};return t(_s,s,Pr(Da(i),(function(e){var r=us(e);return t(Ou,{onClick:function(t){return Lt(Ss,bt(1,[e]))},title:r,icon:cs(e),key:r})})),function(e){return Pr(e,u)}(Da(o)),function(e){return Pr(e,c)}(Ja(n)))}function Mu(e){return t(Au,{onReset:function(e){return Lt(Ss,0),Lt(hs,bt(0,[""])),Lt(hs,bt(1,[""]))}})}fo((function(e){return Lt(qu,0)}));var Eu=function(e){var r=e.connection,n=e.totalCount,o=e.showActiveFilters,a=void 0!==o&&o,s=r.isLoading,u=r.data,c=Jo(),l=Dr(Lt(Gu,0),(function(e){return e.tag?void 0:e[0].id}));switch(i((function(){s||Lt(hs,bt(3,[s]))}),[s]),0|u.tag){case 0:case 1:break;case 2:return t(qi,{error:u[0],onRetry:r.executeQuery})}var f,v=Hi(u);if(void 0!==v){var p=ar(v).searchAssets.assets;f=void 0!==p?p.totalCount:void 0}else f=void 0;var h,m=an(f,n);if(void 0!==m){var g=m;h=t("span",{key:String(g),className:"flex-shrink-0 text-body-400 fade-in-down"},hn(g,fr("{} assets"),fr("{} asset")))}else h=null;var b,x=c.selectionMode,y={assets:Ws(u),preselectedAssets:(b=u,js(b,$s)),hasNextPage:r.hasNextPage,isLoading:s,loadMore:r.loadMore,onSelect:Qu,onToggle:function(e){return function(e,t){if(t>=2)return Lt(qu,bt(2,[e]));return tn($r(e,0),(function(e){return Lt(qu,bt(1,[e]))}))}(e,x)},renderEmptyState:Mu,selectedAssetIds:l,selectionMode:c.selectionMode,children:t("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},h,a?t(Iu,{}):null,t(ba,{}),t(xa,{}))};return void 0!==m&&(y.count=ar(m)),void 0!==c.theme&&(y.theme=ar(c.theme)),t(d,void 0,t(Su,y))},ju=function(e){var r,n=Lt(Us,0),o=gs(),i=ha.usePage(0)[0],a=Jo(),s=Ko(),u=(r=Zo(),St(ms,void 0,(function(e){var t=e.preselectedAssets;if(r>=2)return t;var n=$r(t,0);return void 0!==n?[n]:[]}))),c=Tt(Yi(Ys),void 0!==s?ar(s):Ns(n,o,a.assetTypes),void 0,{field:i.field,direction:i.direction},Dr(u,(function(e){return""===e?void 0:function(e){if(e)return btoa("(Asset_id "+e+")")}(e)})),0);return t(d,void 0,cn(s)?t("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t(Es,{})):null,t(Eu,{connection:c,showActiveFilters:cn(s)}))},zu=function(e){var r=Lt(Ai,0);return t("div",{className:"inline-flex mr-auto"},t(ri,{className:"number"==typeof r&&0===r?"bg-ui-500 text-body-500":"",onClick:function(e){return Lt(Ui,0)},children:fr("Assets")}),t(ri,{className:"number"==typeof r&&0!==r?"bg-ui-500 text-body-500":"",onClick:function(e){return Lt(Ui,1)},children:fr("Collections")}))},Pu=function(e){var r=Lt(Ai,0),n=St(ms,void 0,(function(e){return"number"==typeof r?0!==r?[e.collections,fs,e.isLoading]:[e.assets,ls,e.isLoading]:[e.collection,ds,e.isLoading]})),a=n[1],s=n[0],c=o(null);i((function(){var e=c.current;null!=e&&""===s&&(e.value="")}),[s,Gn]);var l,d,f=u((function(){return Ao(500,(function(e){return Lt(hs,Lt(a,e))}))}),[a]),v=fr("number"==typeof r&&0!==r?"Search for collections":"Search for assets"),p=s.trim();return l=n[2]?t(ni,{className:"absolute right-0 mr-3 h-full"}):""===p?null:t("button",{className:"h-full absolute right-3 focus:outline-none text-body-300 hover:text-body-400 fade-in",onClick:function(e){var t=c.current;return null!=t&&(t.value=""),Lt(hs,Lt(a,""))}},t(Xt,{className:"w-6 h-6"})),t("div",{className:"w-full inline-flex relative text-body-300 focus-within:text-body-400 transition-color",style:{maxWidth:"440px"}},t("div",{className:"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center"},t(Rt,{className:"fill-current pointer-events-none w-6 h-6"})),t("input",{key:(d=r,"number"==typeof d?0!==d?"Collections":"Assets":"Collection("+String(d[0].id)+")"),ref:c,defaultValue:s,className:"appearance-none block w-full border border-ui-600 rounded py-2 pr-4 pl-10 text-body-500 placeholder-body-300 focus:outline-none hover:border-ui-900 focus:border-ui-900 transition-color",placeholder:v,onChange:function(e){return Lt(f,dn(e))}}),l)},Ru=function(e){var r=e.collection,n=St(ms,void 0,(function(e){var t=e.collection.trim();return""===t?void 0:t})),o=ha.usePage([r])[0],i=Jo(),a=Tt(Yi(Ys),{collectionId:r.id,assetType_in:i.assetTypes,metapropertyOptionId_in:void 0,searchTerm:n,tagNames_in:void 0,isLimitedUse:!1},void 0,{field:o.field,direction:o.direction},[],0);return t(d,void 0,t("nav",{className:"px-4 py-4"},t("span",{className:"text-body-400 select-none cursor-pointer",onClick:function(e){return Lt(Ui,1)}},fr("Collections")," / "),t("span",void 0,r.name)),t(Eu,{connection:a,totalCount:r.assetCount}))},Fu=f((function(e){var r=e.className,n=e.collection,o=e.fadeIn,i=e.isSelected,a=e.style,s=void 0===o||o,u=Zo(),c=gn([xn(r),bn(i,"shadow-outline")]),l=t(d,void 0,t("div",{className:"truncate"},n.name),t("div",{className:"mt-2 text-sm text-body-400"},hn(n.assetCount,fr("{} assets"),fr("{} asset")))),f=Jo(),v=t(tu,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden group-hover:block group-hover:fade-in",onClick:function(e){var t;return e.stopPropagation(),(t=n.url,function(e){var r=t,n=e;return or(Gr.open(r,n,void 0))})("_blank"),0},title:fr("Open in new tab"),children:t(Pt,{className:"w-6 h-6"})}),p=!0===f.hideExternalAccess?null:v,h={alt:n.name,className:c,fadeIn:s,id:n.id,stacked:!0,title:l,onClick:function(e){return Lt(Ui,[n])},children:t(d,void 0,t(Zs,{urls:n.thumbnailUrls,totalCount:n.assetCount}),i?t("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}):null,p,2===u?t(tu,{className:gn(["absolute right-0 top-0 mr-3 mt-3 rounded-full",bn(!i,"hidden group-hover:block group-hover:fade-in")]),active:i,onClick:function(e){return e.stopPropagation(),Lt(qu,bt(3,[n]))},title:fr(i?"Deselect":"Select"),children:t(Kt,{className:"w-6 h-6"})}):null)};return void 0!==a&&(h.style=ar(a)),t(eu,h)})),Bu=f((function(e){var r,n=e.connection,o=n.data,i=Zi(0),a=i.dimensions,s=lr(Dr(Lt(Gu,0),(function(e){if(e.tag)return[e[0].id,0]})));if(void 0!==a){var u=a;r=[Ir(u.height/184),(u.width-32)/204|0]}else r=[0,0];var c,l,d=r[1],f=r[0],v=0;switch(0|o.tag){case 0:var p=o[0];void 0!==p?(l=ar(p),v=2):v=1;break;case 1:var h=o[0];Wr(h.collections.nodes)?c=t(Au,{onReset:function(e){return Lt(hs,bt(2,[""]))}}):(l=h,v=2);break;case 2:v=1}switch(v){case 1:c=t(au,{title:t("div",{className:"mt-2 text-sm"},mn),rows:f,columns:d});break;case 2:var m=l.collections.nodes;c=t(yu,{isLoading:n.isLoading,hasNextPage:n.hasNextPage,loadMore:n.loadMore,children:Rr(m,(function(e,r){var n=un(sr(s,r.id)),o=e>=Oi(f,d);return t(Fu,{collection:r,fadeIn:o,isSelected:n,key:r.id})}))})}return t("div",{ref:i.nodeRef,className:"card-list"},c)})),Vu=function(e){var r=St(ms,void 0,(function(e){var t=e.collections.trim();return""===t?void 0:t})),n=ha.usePage(1)[0],o=_t(Yi(Li),void 0,r,{field:n.field,direction:n.direction},0),a=o.isLoading,s=o.data;switch(i((function(){a||Lt(hs,bt(3,[a]))}),[a]),0|s.tag){case 0:case 1:break;case 2:return t(qi,{error:s[0],onRetry:o.executeQuery})}var u=Hi(s),c=void 0!==u?t("span",{key:"a",className:"flex-shrink-0 flex-grow text-body-400 fade-in-down"},hn(ar(u).collections.totalCount,fr("{} collections"),fr("{} collection"))):t("span",{key:"b",className:"flex-grow"});return t("div",{className:"flex flex-col flex-grow overflow-y-auto"},t("div",{className:"flex items-center px-4 pt-4 pb-2 z-10"},c,t(ba,{options:[-600305078,868235851]}),t(xa,{})),t(Bu,{connection:o}))},Du=/([a-z0-9])([A-Z])/g;function Hu(e){return e.replace(Du,"$1 $2")}var Wu="\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 }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n ";function $u(e){return"\n fragment AddMediaAsset on Asset { "+String(e)+" }\n "}function Yu(e,t,r){var n=Bi,o={ids:Pr(e,(function(e){return e[0].id}))};return Tt(n,!1,"\n query getAssetsById($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets {\n nodes {\n __typename\n id\n ...AddMediaAsset\n }\n }\n }\n }\n }\n "+$u(rn(t,Wu)),o,(function(e){return cr((t=function(e,t){return"Collection"===t.__typename?(Br(t.assets.nodes,(function(t){return e[t.id]=t,0})),e):(e[t.id]=t,e)},r={},function(e,t,r){return function(e,t,r){for(var n=t,o=0,i=e.length-1|0;o<=i;++o)n=r(n,e[o]);return n}(e,t,Ut(r))}(e.nodes,r,t)));var t,r}),r)}function Ju(e,t,r){var n={id:e};return Tt(Bi,!1,"\n query getAssetById($id: ID!) {\n node(id: $id) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n }\n }\n "+$u(rn(t,Wu)),n,(function(e){return e.node}),r)}function Xu(e){var n=e.asset,o=e.onChange,a=r((function(){return 1})),s=a[1],u=a[0],c=so(),l=Jo().assetFieldSelection;i((function(){Lt(s,(function(e){return 1})),Lt(o,void 0),function(e,t,r){return Fn((function(e){return Promise.resolve(on(function(e){return jn((function(e){return En("files",(function(e){return function(e,t){if("object"!=typeof t||Array.isArray(t)||null===t)throw[Qn,"Expected object, got "+JSON.stringify(t)];for(var r=Object.keys(t),n={},o=0,i=r.length-1|0;o<=i;++o){var a,s=r[o];try{a=Lt(e,t[s])}catch(e){var u=mr(e);if(u[0]===Qn)throw[Qn,u[1]+"\n\tin dict"];throw u}n[s]=a}return n}((function(e){return{url:En("url",Mn,e),width:jn((function(e){return En("width",In,e)}),e),height:jn((function(e){return En("height",In,e)}),e),fileSize:jn((function(e){return En("fileSize",In,e)}),e)}}),e)}),e)}),e)}(e),"Error retrieving asset files"))}),Ju(e.id,t,r))}(n,l,c).then((function(e){if(e.tag)console.error(e[0]),Lt(s,(function(e){return 0}));else{var t,r=e[0];if(void 0!==sr(r,"transformBaseUrl"))t="transformBaseUrl";else{var n=sr(r,"original");t=void 0!==n?"original":"webImage"}Lt(s,(function(e){return[r,t]})),Lt(o,sr(r,t))}return Pn(0)}))}),[n.id]);var f="number"==typeof u?0!==u?t(is,{width:50,className:"h-4"}):"Error":Hu(u[1]);return t(na,{className:"py-2",buttonClassName:"mr-4 capitalize",buttonKind:67972948,direction:19067,title:f,disabled:1===u,children:function(e){if("number"==typeof u)return null;var r=u[1];return t("ul",{className:"overflow-y-auto pb-1 max-h-400"},Pr(ur(u[0]),(function(n){var i,a=n[1],u=n[0];if("transformBaseUrl"===u)i=t(Et,{className:"w-6 h-6"});else{var c=pn.extension(a.url);i=void 0!==c?c:t(Ht,{className:"w-6 h-6"})}var l,f=a.width;if(void 0!==f){var v=a.height;l=void 0!==v?String(f)+" x "+String(v)+" px":null}else l=null;var p=a.fileSize,h=void 0!==p?kn(p):null,m=void 0!==a.width&&void 0!==a.height&&void 0!==a.fileSize?t("span",{className:"mx-2"},"•"):null;return t(ta,{className:"px-3 py-2",onClick:function(t){return function(e){Lt(s,(function(t){if("number"==typeof t)return t;var r=t[0];return Lt(o,sr(r,e)),[r,e]}))}(u),Lt(e,0)},selected:r===u,children:null,key:u},t("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center justify-center font-semibold text-body-400 text-xs uppercase"},i),t("div",{className:"flex-grow w-40"},t("div",{className:"capitalize text-body-500 truncate"},Hu(u)),t("div",{className:"text-sm"},t(d,void 0,l,m,h))))})))}})}var Ku=function(e){var n,o,i=e.selection,a=Jo(),s=a.selectionMode,u=a.onSuccess,c=a.assetFieldSelection,l=r((function(){return 1!==s?4:3})),f=l[1],v=l[0],p=so();if(1!==s||1!==i.length)n=null;else{var h=i[0];n=h.tag?null:t(Xu,{asset:h[0],onChange:function(e){if(void 0!==e){var t=e;return Lt(f,(function(e){return[t]}))}return Lt(f,(function(e){return 3}))}})}var m=0;if("number"==typeof v)switch(v){case 0:o=t(Kt,{className:"w-6 h-6"});break;case 1:o=fr("Retry");break;case 2:o=t(ni,{className:"text-ui-0"});break;case 3:case 4:m=1}else m=1;return 1===m&&(o=hn(i.length,fr("Add assets"),fr("Add asset"))),t(d,void 0,n,t(ri,{className:"relative",disabled:"number"==typeof v&&(3===v||2===v),onClick:function(e){var t,r="number"==typeof v?void 0:v[0];if(Lt(f,(function(e){return 2})),s>=2||1!==i.length)t=Yu(i,c,p);else{var n=i[0];t=n.tag?Yu(i,c,p):Fn((function(e){return Vn.$$return([e])}),Ju(n[0].id,c,p))}return t.then((function(e){if(e.tag)Lt(f,(function(e){return 1}));else{try{St(u,e[0],r)}catch(e){var t=mr(e);console.error(t)}Lt(f,(function(e){return 0})),setTimeout((function(e){return Lt(f,(function(e){return 4}))}),2e3)}return Pn(0)})),0},kind:-791844958,children:o}))};function Zu(e){var r=e.onRemove,n=e.children;return t("li",{className:"flex flex-1 h-12 border-b last:border-b-0 pl-3 pr-5 py-1 items-center group relative"},t(Za,{className:"ml-2 mr-5 cursor-pointer",onClick:r,checked:!0}),n)}function ec(e){var r=e.asset,n=ou(r);return t(Zu,{onRemove:function(e){return Lt(qu,bt(2,[[r]]))},children:null},t("img",{className:"w-10 h-10 mr-3 select-none object-cover bg-ui-500 rounded",draggable:!1,src:nu(r)}),t("span",{className:"w-40 mr-2 truncate",title:r.name},r.name),void 0!==n?t("span",{className:"flex-grow text-body-400 text-sm text-right"},n):null)}function tc(e){var r=e.collection;return t(Zu,{onRemove:function(e){return Lt(qu,bt(3,[r]))},children:null},t("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center justify-center"},t($t,{className:"w-6 h-6 text-body-500 opacity-75"})),t("span",{className:"w-40 mr-2 truncate",title:r.name},r.name),t("span",{className:"flex-grow text-body-400 text-sm text-right"},hn(r.assetCount,fr("{} assets"),fr("{} asset"))))}function rc(e){var r=Pr(e.selection,(function(e){if(e.tag){var r=e[0];return t(tc,{collection:r,key:r.id})}var n=e[0];return t(ec,{asset:n,key:n.id})}));return t("ul",{className:"flex flex-col py-2 overflow-y-auto max-h-400"},r)}var nc=function(e){var r=Lt(Gu,0),n=r.length;return n>0?t("div",{className:"flex flex-shrink-0 h-16 z-10 px-6 items-center shadow-footer fade-in-down"},t("span",{className:"flex-grow flex items-center"},t(na,{buttonKind:67972948,direction:19067,title:fr("View {} selected").replace("{}",String(n)),children:function(e){return t(rc,{selection:r})}}),t(ri,{className:"ml-1",onClick:function(e){return Lt(qu,0)},children:fr("Clear selection")})),t(Ku,{selection:r})):null};function oc(e){var r=si(0),n=Do(0),o=Ko();if(r||un(n)||cn(o)){var i;if(void 0!==n){var a=n.onClose;i=t(ri,{title:fr("Close"),onClick:function(e){return Lt(a,0)},children:t(tr,{className:"w-6 h-6 -mx-1"})})}else i=null;return t("nav",{className:"flex justify-between bg-ui-0 px-4 py-3 z-30"},cn(o)?t(d,void 0,t(zu,{}),t(Pu,{})):null,t("div",{className:"inline-flex ml-auto"},r?t(ri,{onClick:function(e){return lo()},children:null},t("span",{className:"mr-1"},fr("Log out")),t(jt,{className:"w-6 h-6 -mr-1"})):null,i))}return null}var ic=function(e){var r=e.assetFieldSelection,n=e.assetFilter,o=e.assetTypes,a=e.defaultSearchTerm,s=e.language,u=e.mode,c=e.onSuccess,l=e.theme,d=e.hideExternalAccess,f=e.selectedAssets,v=void 0!==o?o:[995579707,628011190,887770203,-191332581],p=void 0!==a?a:"",h=void 0!==s?s:"en_US",m=void 0!==u?u:2,g=void 0!==c?c:function(e,t){return console.log(e,t),0};i((function(){Lt(qu,0)}),[]),i((function(){var e;if(void 0!==f){var t=f;e=0!==t.length?t:[]}else e=[];Lt(hs,bt(4,[e]))}),[f]),i((function(){Lt(hs,bt(0,[p]))}),[p]);var b=Lt(Ai,0);Uo(h);var x={assetFieldSelection:r,assetFilter:n,assetTypes:v,language:h,onSuccess:g,selectionMode:m,theme:l,hideExternalAccess:d},y=t("div",{className:"cv-root cv-container"},t(oc,{}),t(Gi,"number"==typeof b?0!==b?{children:t(Vu,{})}:{children:t(ju,{})}:{children:t(Ru,{collection:b[0]})}),t(nc,{}));return t(Yo,function(e,t,r){return{value:e,children:t}}(x,t(Ro,{topLevel:!1,children:y})))},ac={AUDIO:628011190,DOCUMENT:-191332581,IMAGE:995579707,VIDEO:887770203},sc={SingleSelect:0,SingleSelectFile:1,MultiSelect:2},uc=function(e){var r={assetFieldSelection:e.assetFieldSelection,assetFilter:null==e.assetFilter?void 0:{assetType_in:null==e.assetFilter.assetType_in?void 0:e.assetFilter.assetType_in.map((function(e){return ac[e]})),collectionId:e.assetFilter.collectionId,metapropertyOptionId_in:e.assetFilter.metapropertyOptionId_in,searchTerm:e.assetFilter.searchTerm,tagNames_in:e.assetFilter.tagNames_in,isLimitedUse:e.assetFilter.isLimitedUse},assetTypes:null==e.assetTypes?void 0:e.assetTypes.map((function(e){return ac[e]})),defaultSearchTerm:e.defaultSearchTerm,hideExternalAccess:e.hideExternalAccess,language:e.language,mode:null==e.mode?void 0:sc[e.mode],onSuccess:null==e.onSuccess?void 0:function(t,r){return e.onSuccess(t,{selectedFile:r})},selectedAssets:e.selectedAssets,theme:e.theme};return t(ic,r)},cc=function(e){var r=e.portal,n=e.language,o=e.children,i=void 0!==n?n:"en_US",a=so();return Uo(i),void 0!==a.accessToken?t(ai,ii(!0,o)):void 0!==a.refreshToken?t("div",{className:"bg-ui-0 w-full h-full"},t(ni,{})):t(Ro,{topLevel:!1,children:t(ci,{portal:r})})},lc=function(e){var r=e.children,n=e.isOpen,o=e.style,i=e.onClose;if(void 0===n||n){var a={onClose:void 0!==i?i:function(e){return 0}},s={className:"shadow-modal h-full w-full overflow-hidden rounded"};return void 0!==o&&(s.style=ar(o)),t(Vo,Bo(a,t(Ro,{topLevel:!0,children:t("div",{className:"inset-0 flex items-center p-4 z-a-lot fixed bg-ui-600 fade-in-down"},t("div",s,r))})))}return null};export{uc as CompactView,cc as Login,lc as Modal};
|
|
7
|
+
import*as e from"react";import t,{createContext as n,useState as r,useMemo as o,useContext as i,useEffect as a,forwardRef as s,useRef as c,useLayoutEffect as l,createElement as u,useCallback as d,Component as p}from"react";import f,{createPortal as m}from"react-dom";var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g=function(e){return e&&e.Math==Math&&e},v=g("object"==typeof globalThis&&globalThis)||g("object"==typeof window&&window)||g("object"==typeof self&&self)||g("object"==typeof h&&h)||function(){return this}()||Function("return this")(),y={},b=function(e){try{return!!e()}catch(e){return!0}},w=!b((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x=!b((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),_=x,E=Function.prototype.call,S=_?E.bind(E):function(){return E.apply(E,arguments)},k={},C={}.propertyIsEnumerable,T=Object.getOwnPropertyDescriptor,N=T&&!C.call({1:2},1);k.f=N?function(e){var t=T(this,e);return!!t&&t.enumerable}:C;var I,P,O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},A=x,B=Function.prototype,F=B.bind,L=B.call,z=A&&F.bind(L,L),R=A?function(e){return e&&z(e)}:function(e){return e&&function(){return L.apply(e,arguments)}},M=R,D=M({}.toString),j=M("".slice),H=function(e){return j(D(e),8,-1)},U=R,V=b,K=H,$=v.Object,W=U("".split),q=V((function(){return!$("z").propertyIsEnumerable(0)}))?function(e){return"String"==K(e)?W(e,""):$(e)}:$,Y=v.TypeError,X=function(e){if(null==e)throw Y("Can't call method on "+e);return e},G=q,J=X,Z=function(e){return G(J(e))},Q=function(e){return"function"==typeof e},ee=Q,te=function(e){return"object"==typeof e?null!==e:ee(e)},ne=v,re=Q,oe=function(e){return re(e)?e:void 0},ie=function(e,t){return arguments.length<2?oe(ne[e]):ne[e]&&ne[e][t]},ae=R({}.isPrototypeOf),se=v,ce=ie("navigator","userAgent")||"",le=se.process,ue=se.Deno,de=le&&le.versions||ue&&ue.version,pe=de&&de.v8;pe&&(P=(I=pe.split("."))[0]>0&&I[0]<4?1:+(I[0]+I[1])),!P&&ce&&(!(I=ce.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=ce.match(/Chrome\/(\d+)/))&&(P=+I[1]);var fe=P,me=b,he=!!Object.getOwnPropertySymbols&&!me((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),ge=he&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ve=ie,ye=Q,be=ae,we=ge,xe=v.Object,_e=we?function(e){return"symbol"==typeof e}:function(e){var t=ve("Symbol");return ye(t)&&be(t.prototype,xe(e))},Ee=v.String,Se=Q,ke=v.TypeError,Ce=function(e){if(Se(e))return e;throw ke(function(e){try{return Ee(e)}catch(e){return"Object"}}(e)+" is not a function")},Te=Ce,Ne=S,Ie=Q,Pe=te,Oe=v.TypeError,Ae={exports:{}},Be=v,Fe=Object.defineProperty,Le=function(e,t){try{Fe(Be,e,{value:t,configurable:!0,writable:!0})}catch(n){Be[e]=t}return t},ze=Le,Re=v["__core-js_shared__"]||ze("__core-js_shared__",{}),Me=Re;(Ae.exports=function(e,t){return Me[e]||(Me[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var De=X,je=v.Object,He=function(e){return je(De(e))},Ue=He,Ve=R({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return Ve(Ue(e),t)},$e=R,We=0,qe=Math.random(),Ye=$e(1..toString),Xe=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Ye(++We+qe,36)},Ge=v,Je=Ae.exports,Ze=Ke,Qe=Xe,et=he,tt=ge,nt=Je("wks"),rt=Ge.Symbol,ot=rt&&rt.for,it=tt?rt:rt&&rt.withoutSetter||Qe,at=function(e){if(!Ze(nt,e)||!et&&"string"!=typeof nt[e]){var t="Symbol."+e;et&&Ze(rt,e)?nt[e]=rt[e]:nt[e]=tt&&ot?ot(t):it(t)}return nt[e]},st=S,ct=te,lt=_e,ut=at,dt=v.TypeError,pt=ut("toPrimitive"),ft=function(e,t){if(!ct(e)||lt(e))return e;var n,r=function(e,t){var n=e[t];return null==n?void 0:Te(n)}(e,pt);if(r){if(void 0===t&&(t="default"),n=st(r,e,t),!ct(n)||lt(n))return n;throw dt("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ie(n=e.toString)&&!Pe(r=Ne(n,e)))return r;if(Ie(n=e.valueOf)&&!Pe(r=Ne(n,e)))return r;if("string"!==t&&Ie(n=e.toString)&&!Pe(r=Ne(n,e)))return r;throw Oe("Can't convert object to primitive value")}(e,t)},mt=_e,ht=function(e){var t=ft(e,"string");return mt(t)?t:t+""},gt=te,vt=v.document,yt=gt(vt)&>(vt.createElement),bt=function(e){return yt?vt.createElement(e):{}},wt=bt,xt=!w&&!b((function(){return 7!=Object.defineProperty(wt("div"),"a",{get:function(){return 7}}).a})),_t=w,Et=S,St=k,kt=O,Ct=Z,Tt=ht,Nt=Ke,It=xt,Pt=Object.getOwnPropertyDescriptor;y.f=_t?Pt:function(e,t){if(e=Ct(e),t=Tt(t),It)try{return Pt(e,t)}catch(e){}if(Nt(e,t))return kt(!Et(St.f,e,t),e[t])};var Ot={},At=w&&b((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Bt=v,Ft=te,Lt=Bt.String,zt=Bt.TypeError,Rt=function(e){if(Ft(e))return e;throw zt(Lt(e)+" is not an object")},Mt=w,Dt=xt,jt=At,Ht=Rt,Ut=ht,Vt=v.TypeError,Kt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor;Ot.f=Mt?jt?function(e,t,n){if(Ht(e),t=Ut(t),Ht(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=$t(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Kt(e,t,n)}:Kt:function(e,t,n){if(Ht(e),t=Ut(t),Ht(n),Dt)try{return Kt(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Vt("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wt=Ot,qt=O,Yt=w?function(e,t,n){return Wt.f(e,t,qt(1,n))}:function(e,t,n){return e[t]=n,e},Xt={exports:{}},Gt=Q,Jt=Re,Zt=R(Function.toString);Gt(Jt.inspectSource)||(Jt.inspectSource=function(e){return Zt(e)});var Qt,en,tn,nn=Jt.inspectSource,rn=Q,on=nn,an=v.WeakMap,sn=rn(an)&&/native code/.test(on(an)),cn=Ae.exports,ln=Xe,un=cn("keys"),dn=function(e){return un[e]||(un[e]=ln(e))},pn={},fn=sn,mn=v,hn=R,gn=te,vn=Yt,yn=Ke,bn=Re,wn=dn,xn=pn,_n=mn.TypeError,En=mn.WeakMap;if(fn||bn.state){var Sn=bn.state||(bn.state=new En),kn=hn(Sn.get),Cn=hn(Sn.has),Tn=hn(Sn.set);Qt=function(e,t){if(Cn(Sn,e))throw new _n("Object already initialized");return t.facade=e,Tn(Sn,e,t),t},en=function(e){return kn(Sn,e)||{}},tn=function(e){return Cn(Sn,e)}}else{var Nn=wn("state");xn[Nn]=!0,Qt=function(e,t){if(yn(e,Nn))throw new _n("Object already initialized");return t.facade=e,vn(e,Nn,t),t},en=function(e){return yn(e,Nn)?e[Nn]:{}},tn=function(e){return yn(e,Nn)}}var In={set:Qt,get:en,has:tn,enforce:function(e){return tn(e)?en(e):Qt(e,{})},getterFor:function(e){return function(t){var n;if(!gn(t)||(n=en(t)).type!==e)throw _n("Incompatible receiver, "+e+" required");return n}}},Pn=w,On=Ke,An=Function.prototype,Bn=Pn&&Object.getOwnPropertyDescriptor,Fn=On(An,"name"),Ln=Fn&&(!Pn||Pn&&Bn(An,"name").configurable),zn=v,Rn=Q,Mn=Ke,Dn=Yt,jn=Le,Hn=nn,Un=Ln,Vn=In.get,Kn=In.enforce,$n=String(String).split("String");(Xt.exports=function(e,t,n,r){var o,i=!!r&&!!r.unsafe,a=!!r&&!!r.enumerable,s=!!r&&!!r.noTargetGet,c=r&&void 0!==r.name?r.name:t;Rn(n)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Mn(n,"name")||Un&&n.name!==c)&&Dn(n,"name",c),(o=Kn(n)).source||(o.source=$n.join("string"==typeof c?c:""))),e!==zn?(i?!s&&e[t]&&(a=!0):delete e[t],a?e[t]=n:Dn(e,t,n)):a?e[t]=n:jn(t,n)})(Function.prototype,"toString",(function(){return Rn(this)&&Vn(this).source||Hn(this)}));var Wn={},qn=Math.ceil,Yn=Math.floor,Xn=function(e){var t=+e;return t!=t||0===t?0:(t>0?Yn:qn)(t)},Gn=Xn,Jn=Math.max,Zn=Math.min,Qn=Xn,er=Math.min,tr=function(e){return(t=e.length)>0?er(Qn(t),9007199254740991):0;var t},nr=Z,rr=tr,or=function(e){return function(t,n,r){var o,i=nr(t),a=rr(i),s=function(e,t){var n=Gn(e);return n<0?Jn(n+t,0):Zn(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}},ir={includes:or(!0),indexOf:or(!1)},ar=Ke,sr=Z,cr=ir.indexOf,lr=pn,ur=R([].push),dr=function(e,t){var n,r=sr(e),o=0,i=[];for(n in r)!ar(lr,n)&&ar(r,n)&&ur(i,n);for(;t.length>o;)ar(r,n=t[o++])&&(~cr(i,n)||ur(i,n));return i},pr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fr=dr,mr=pr.concat("length","prototype");Wn.f=Object.getOwnPropertyNames||function(e){return fr(e,mr)};var hr={};hr.f=Object.getOwnPropertySymbols;var gr=ie,vr=Wn,yr=hr,br=Rt,wr=R([].concat),xr=gr("Reflect","ownKeys")||function(e){var t=vr.f(br(e)),n=yr.f;return n?wr(t,n(e)):t},_r=Ke,Er=xr,Sr=y,kr=Ot,Cr=b,Tr=Q,Nr=/#|\.prototype\./,Ir=function(e,t){var n=Or[Pr(e)];return n==Br||n!=Ar&&(Tr(t)?Cr(t):!!t)},Pr=Ir.normalize=function(e){return String(e).replace(Nr,".").toLowerCase()},Or=Ir.data={},Ar=Ir.NATIVE="N",Br=Ir.POLYFILL="P",Fr=Ir,Lr=v,zr=y.f,Rr=Yt,Mr=Xt.exports,Dr=Le,jr=function(e,t,n){for(var r=Er(t),o=kr.f,i=Sr.f,a=0;a<r.length;a++){var s=r[a];_r(e,s)||n&&_r(n,s)||o(e,s,i(t,s))}},Hr=Fr,Ur=Ce,Vr=x,Kr=R(R.bind),$r=H,Wr=Array.isArray||function(e){return"Array"==$r(e)},qr={};qr[at("toStringTag")]="z";var Yr=v,Xr="[object z]"===String(qr),Gr=Q,Jr=H,Zr=at("toStringTag"),Qr=Yr.Object,eo="Arguments"==Jr(function(){return arguments}()),to=R,no=b,ro=Q,oo=Xr?Jr: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=Qr(e),Zr))?n:eo?Jr(t):"Object"==(r=Jr(t))&&Gr(t.callee)?"Arguments":r},io=nn,ao=function(){},so=[],co=ie("Reflect","construct"),lo=/^\s*(?:class|function)\b/,uo=to(lo.exec),po=!lo.exec(ao),fo=function(e){if(!ro(e))return!1;try{return co(ao,so,e),!0}catch(e){return!1}},mo=function(e){if(!ro(e))return!1;switch(oo(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return po||!!uo(lo,io(e))}catch(e){return!0}};mo.sham=!0;var ho=!co||no((function(){var e;return fo(fo.call)||!fo(Object)||!fo((function(){e=!0}))||e}))?mo:fo,go=v,vo=Wr,yo=ho,bo=te,wo=at("species"),xo=go.Array,_o=q,Eo=He,So=tr,ko=function(e,t){return new(function(e){var t;return vo(e)&&(t=e.constructor,(yo(t)&&(t===xo||vo(t.prototype))||bo(t)&&null===(t=t[wo]))&&(t=void 0)),void 0===t?xo:t}(e))(0===t?0:t)},Co=R([].push),To=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(c,l,u,d){for(var p,f,m=Eo(c),h=_o(m),g=function(e,t){return Ur(e),void 0===t?e:Vr?Kr(e,t):function(){return e.apply(t,arguments)}}(l,u),v=So(h),y=0,b=d||ko,w=t?b(c,v):n||a?b(c,0):void 0;v>y;y++)if((s||y in h)&&(f=g(p=h[y],y,m),e))if(t)w[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:Co(w,p)}else switch(e){case 4:return!1;case 7:Co(w,p)}return i?-1:r||o?o:w}},No={forEach:To(0),map:To(1),filter:To(2),some:To(3),every:To(4),find:To(5),findIndex:To(6),filterReject:To(7)},Io={},Po=dr,Oo=pr,Ao=Object.keys||function(e){return Po(e,Oo)},Bo=w,Fo=At,Lo=Ot,zo=Rt,Ro=Z,Mo=Ao;Io.f=Bo&&!Fo?Object.defineProperties:function(e,t){zo(e);for(var n,r=Ro(t),o=Mo(t),i=o.length,a=0;i>a;)Lo.f(e,n=o[a++],r[n]);return e};var Do,jo=ie("document","documentElement"),Ho=Rt,Uo=Io,Vo=pr,Ko=pn,$o=jo,Wo=bt,qo=dn("IE_PROTO"),Yo=function(){},Xo=function(e){return"<script>"+e+"<\/script>"},Go=function(e){e.write(Xo("")),e.close();var t=e.parentWindow.Object;return e=null,t},Jo=function(){try{Do=new ActiveXObject("htmlfile")}catch(e){}var e,t;Jo="undefined"!=typeof document?document.domain&&Do?Go(Do):((t=Wo("iframe")).style.display="none",$o.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xo("document.F=Object")),e.close(),e.F):Go(Do);for(var n=Vo.length;n--;)delete Jo.prototype[Vo[n]];return Jo()};Ko[qo]=!0;var Zo=Object.create||function(e,t){var n;return null!==e?(Yo.prototype=Ho(e),n=new Yo,Yo.prototype=null,n[qo]=e):n=Jo(),void 0===t?n:Uo.f(n,t)},Qo=Ot,ei=at("unscopables"),ti=Array.prototype;null==ti[ei]&&Qo.f(ti,ei,{configurable:!0,value:Zo(null)});var ni,ri=No.find,oi=!0;"find"in[]&&Array(1).find((function(){oi=!1})),function(e,t){var n,r,o,i,a,s=e.target,c=e.global,l=e.stat;if(n=c?Lr:l?Lr[s]||Dr(s,{}):(Lr[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=zr(n,r))&&a.value:n[r],!Hr(c?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jr(i,o)}(e.sham||o&&o.sham)&&Rr(i,"sham",!0),Mr(n,r,i,e)}}({target:"Array",proto:!0,forced:oi},{find:function(e){return ri(this,e,arguments.length>1?arguments[1]:void 0)}}),ni="find",ti[ei][ni]=!0,R(v.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=window.document;n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.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(),this._checkForIntersections()}},n.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.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]}))},n.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},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(r(window,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=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=i(o),s=this._rootContainsTarget(o),c=r.entry,l=e&&s&&this._computeTargetAndRootIntersection(o,n),u=r.entry=new t({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:a,rootBounds:n,intersectionRect:l});c?e&&s?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var r,o,a,c,l,u,d,p,f=i(t),m=s(t),h=!1;!h;){var g=null,v=1==m.nodeType?window.getComputedStyle(m):{};if("none"==v.display)return;if(m==this.root||m==e?(h=!0,g=n):m!=e.body&&m!=e.documentElement&&"visible"!=v.overflow&&(g=i(m)),g&&(r=g,o=f,void 0,void 0,void 0,void 0,void 0,void 0,a=Math.max(r.top,o.top),c=Math.min(r.bottom,o.bottom),l=Math.max(r.left,o.left),p=c-a,!(f=(d=(u=Math.min(r.right,o.right))-l)>=0&&p>=0&&{top:a,bottom:c,left:l,right:u,width:d,height:p})))break;m=s(m)}return f}},n.prototype._getRootRect=function(){var t;if(this.root)t=i(this.root);else{var n=e.documentElement,r=e.body;t={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(t)},n.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},n.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}},n.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},n.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},n.prototype._registerInstance=function(){},n.prototype._unregisterInstance=function(){},window.IntersectionObserver=n,window.IntersectionObserverEntry=t}function t(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=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 n(e,t){var n,r,o,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),r))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function r(e,t,n,r){"function"==typeof e.addEventListener?e.addEventListener(t,n,r||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,r){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,r||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function i(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 a(e,t){for(var n=t;n;){if(n==e)return!0;n=s(n)}return!1}function s(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}();var ii=n(null),ai={field:"CREATED_AT",direction:"DESC"};function si(e){var n=r(ai),i=n[0],a=n[1],s=r(ai),c=s[0],l=s[1],u=r(ai),d=u[0],p=u[1];function f(e,t){"assets"===e?a(t):"collections"===e?l(t):p(t)}function m(){a(ai),l(ai),p(ai)}var h=o((function(){return{assets:i,collections:c,collection:d,setOrdering:f,reset:m}}),[i,d,c]);return t.createElement(ii.Provider,{value:h},e.children)}function ci(e){var t=function(){var e=i(ii);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)}]}
|
|
8
|
+
/*! *****************************************************************************
|
|
9
|
+
Copyright (c) Microsoft Corporation.
|
|
10
|
+
|
|
11
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
12
|
+
purpose with or without fee is hereby granted.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
15
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
16
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
17
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
18
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
19
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
20
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
21
|
+
***************************************************************************** */var li=function(e,t){return(li=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ui(e,t){function n(){this.constructor=e}li(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var di=function(){return(di=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}).apply(this,arguments)};function pi(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 fi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function mi(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])}}}function hi(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gi(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gi(arguments[t]));return e}function yi(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}var bi=n(null);function wi(e){var n=r({page:"assets"});return t.createElement(bi.Provider,{value:n},e.children)}function xi(){var e=i(bi);if(null===e)throw new Error("useRouter must be used with a RouterProvider");return e}var _i,Ei=n(null),Si={assets:"",collection:"",collections:"",isLoading:!1};function ki(e){var n=r(Si),i=n[0],s=n[1],c=xi()[0];function l(e,t){var n=""!==t;s((function(r){var o;return di(di({},r),((o={})[e]=t,o.isLoading=n,o))}))}function u(e){s((function(t){return di(di({},t),{isLoading:e})}))}function d(){s(Si)}a((function(){var t;l("assets",null!==(t=e.defaultValue)&&void 0!==t?t:"")}),[e.defaultValue]),a((function(){s((function(e){return di(di({},e),{collection:""})}))}),[c]);var p=o((function(){return di(di({},i),{setSearch:l,setIsLoading:u,clear:d})}),[i]);return t.createElement(Ei.Provider,{value:p},e.children)}function Ci(){var e=i(Ei);if(null===e)throw new Error("useSearchState must be used within a SearchStateContext");return e}function Ti(e){var t=Ci();return{value:t[e],isLoading:t.isLoading,setSearch:function(n){return t.setSearch(e,n)},setIsLoading:t.setIsLoading}}function Ni(){return"undefined"!=typeof __SENTRY_NO_DEBUG__&&!__SENTRY_BROWSER_BUNDLE__}function Ii(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function Pi(e,t){return e.require(t)}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(_i||(_i={}));var Oi={};function Ai(){return Ii()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:Oi}var Bi=Object.prototype.toString;function Fi(e){switch(Bi.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ki(e,Error)}}function Li(e,t){return Bi.call(e)==="[object "+t+"]"}function zi(e){return Li(e,"ErrorEvent")}function Ri(e){return Li(e,"DOMError")}function Mi(e){return Li(e,"String")}function Di(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function ji(e){return Li(e,"Object")}function Hi(e){return"undefined"!=typeof Event&&Ki(e,Event)}function Ui(e){return"undefined"!=typeof Element&&Ki(e,Element)}function Vi(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ki(e,t){try{return e instanceof t}catch(e){return!1}}function $i(e,t){try{for(var n=e,r=[],o=0,i=0,a=" > ".length,s=void 0;n&&o++<5&&!("html"===(s=Wi(n,t))||o>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function Wi(e,t){var n,r,o,i,a,s=e,c=[];if(!s||!s.tagName)return"";c.push(s.tagName.toLowerCase());var l=t&&t.length?t.filter((function(e){return s.getAttribute(e)})).map((function(e){return[e,s.getAttribute(e)]})):null;if(l&&l.length)l.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(s.id&&c.push("#"+s.id),(n=s.className)&&Mi(n))for(r=n.split(/\s+/),a=0;a<r.length;a++)c.push("."+r[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)o=u[a],(i=s.getAttribute(o))&&c.push("["+o+'="'+i+'"]');return c.join("")}var qi=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Yi=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,qi(r,n.prototype),r}return ui(t,e),t}(Error),Xi=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Gi(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,o=e.pass,i=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+a}function Ji(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Zi(e){var t="string"==typeof e?function(e){var t=Xi.exec(e);if(!t)throw new Yi("Invalid Sentry Dsn: "+e);var n=gi(t.slice(1),6),r=n[0],o=n[1],i=n[2],a=void 0===i?"":i,s=n[3],c=n[4],l=void 0===c?"":c,u="",d=n[5],p=d.split("/");if(p.length>1&&(u=p.slice(0,-1).join("/"),d=p.pop()),d){var f=d.match(/^\d+/);f&&(d=f[0])}return Ji({host:s,pass:a,path:u,projectId:d,port:l,protocol:r,publicKey:o})}(e):Ji(e);return function(e){if(Ni()){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Yi("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new Yi("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new Yi("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new Yi("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var Qi=["fatal","error","warning","log","info","debug","critical"],ea=Ai(),ta="Sentry Logger ";function na(e){var t=Ai();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var o=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),o}var ra=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.log(ta+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.warn(ta+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&na((function(){ea.console.error(ta+"[Error]: "+e.join(" "))}))},e}();ea.__SENTRY__=ea.__SENTRY__||{};var oa=ea.__SENTRY__.logger||(ea.__SENTRY__.logger=new ra);function ia(e){if(!e.length)return[];var t=e,n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return di(di({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}function aa(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}function sa(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function ca(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var o=e[r];try{n.push(String(o))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function la(e,t){return!!Mi(e)&&(Li(t,"RegExp")?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}function ua(e,t,n){if(t in e){var r=e[t],o=n(r);if("function"==typeof o)try{pa(o,r)}catch(e){}e[t]=o}}function da(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function pa(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,da(e,"__sentry_original__",t)}function fa(e){return e.__sentry_original__}function ma(e){if(Fi(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Hi(e)){var o=e,i={};i.type=o.type;try{i.target=Ui(o.target)?$i(o.target):Object.prototype.toString.call(o.target)}catch(e){i.target="<unknown>"}try{i.currentTarget=Ui(o.currentTarget)?$i(o.currentTarget):Object.prototype.toString.call(o.currentTarget)}catch(e){i.currentTarget="<unknown>"}for(var a in"undefined"!=typeof CustomEvent&&Ki(e,CustomEvent)&&(i.detail=o.detail),o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a]);return i}return e}function ha(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,o=va(e,t);return r=o,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?ha(e,t-1,n):o}function ga(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":ji(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+aa(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function va(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,r,o){var i,a;if(void 0===r&&(r=1/0),void 0===o&&(i="function"==typeof WeakSet,a=i?new WeakSet:[],o=[function(e){if(i)return!!a.has(e)||(a.add(e),!1);for(var t=0;t<a.length;t++)if(a[t]===e)return!0;return a.push(e),!1},function(e){if(i)a.delete(e);else for(var t=0;t<a.length;t++)if(a[t]===e){a.splice(t,1);break}}]),0===r)return function(e){if("string"==typeof e)return e;var t=Object.prototype.toString.call(e);if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=ga(e);return Di(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var s=ga(n,t);if(Di(s))return s;var c=ma(n),l=Array.isArray(n)?[]:{};if(o[0](n))return"[Circular ~]";for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(l[u]=e(u,c[u],r-1,o));return o[1](n),l}(e,n,t)})))}catch(e){return"**non-serializable**"}}function ya(e,t){void 0===t&&(t=40);var n=Object.keys(ma(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return sa(n[0],t);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:sa(o,t)}return""}function ba(e){var t,n;if(ji(e)){var r=e,o={};try{for(var i=hi(Object.keys(r)),a=i.next();!a.done;a=i.next()){var s=a.value;void 0!==r[s]&&(o[s]=ba(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}return Array.isArray(e)?e.map(ba):e}function wa(){if(!("fetch"in Ai()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function xa(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function _a(){if(!wa())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var Ea,Sa,ka,Ca=Ai(),Ta={},Na={};function Ia(e,t){Ta[e]=Ta[e]||[],Ta[e].push(t),function(e){if(!Na[e])switch(Na[e]=!0,e){case"console":"console"in Ca&&["debug","info","warn","error","log","assert"].forEach((function(e){e in Ca.console&&ua(Ca.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Pa("console",{args:n,level:e}),t&&t.apply(Ca.console,n)}}))}));break;case"dom":!function(){if("document"in Ca){var e=Pa.bind(null,"dom"),t=Ba(e,!0);Ca.document.addEventListener("click",t,!1),Ca.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Ca[t]&&Ca[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ua(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{var i=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){var s=Ba(e);a.handler=s,t.call(this,n,s,o)}a.refCount+=1}catch(e){}return t.call(this,n,r,o)}})),ua(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var o=this.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount-=1,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in Ca){var e=XMLHttpRequest.prototype;ua(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=t[1],i=r.__sentry_xhr__={method:Mi(t[0])?t[0].toUpperCase():t[0],url:t[1]};Mi(o)&&"POST"===i.method&&o.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{i.status_code=r.status}catch(e){}Pa("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?ua(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),ua(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),Pa("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!wa())return!1;var e=Ai();if(xa(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=xa(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){Ni()&&oa.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&ua(Ca,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Oa(t),url:Aa(t)},startTimestamp:Date.now()};return Pa("fetch",di({},r)),e.apply(Ca,t).then((function(e){return Pa("fetch",di(di({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Pa("fetch",di(di({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=Ai(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=Ca.onpopstate;Ca.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Ca.location.href,o=Ea;if(Ea=r,Pa("history",{from:o,to:r}),e)try{return e.apply(this,t)}catch(e){}},ua(Ca.history,"pushState",t),ua(Ca.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var o=Ea,i=String(r);Ea=i,Pa("history",{from:o,to:i})}return e.apply(this,t)}}}();break;case"error":Fa=Ca.onerror,Ca.onerror=function(e,t,n,r,o){return Pa("error",{column:r,error:o,line:n,msg:e,url:t}),!!Fa&&Fa.apply(this,arguments)};break;case"unhandledrejection":La=Ca.onunhandledrejection,Ca.onunhandledrejection=function(e){return Pa("unhandledrejection",e),!La||La.apply(this,arguments)};break;default:oa.warn("unknown instrumentation type:",e)}}(e)}function Pa(e,t){var n,r;if(e&&Ta[e])try{for(var o=hi(Ta[e]||[]),i=o.next();!i.done;i=o.next()){var a=i.value;try{a(t)}catch(t){Ni()&&oa.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+aa(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function Oa(e){return void 0===e&&(e=[]),"Request"in Ca&&Ki(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Aa(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ca&&Ki(e[0],Request)?e[0].url:String(e[0])}function Ba(e,t){return void 0===t&&(t=!1),function(n){if(n&&ka!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===Sa||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(ka,n))&&(e({event:n,name:r,global:t}),ka=n),clearTimeout(Sa),Sa=Ca.setTimeout((function(){Sa=void 0}),1e3)}}}var Fa=null,La=null;function za(){var e=Ai(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Ra(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function Ma(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Da(e){var t=e.message,n=e.event_id;if(t)return t;var r=Ma(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function ja(e,t,n){var 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 Ha(e,t){var n=Ma(e);if(n){var r=n.mechanism;if(n.mechanism=di(di(di({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var o=di(di({},r&&r.data),t.data);n.mechanism.data=o}}}function Ua(e){if(e&&e.__sentry_captured__)return!0;try{da(e,"__sentry_captured__",!0)}catch(e){}return!1}function Va(e){return new $a((function(t){t(e)}))}function Ka(e){return new $a((function(t,n){n(e)}))}var $a=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Vi(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,o){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){o(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){o(e)}else o(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var o,i;return n.then((function(e){i=!1,o=e,t&&t()}),(function(e){i=!0,o=e,t&&t()})).then((function(){i?r(o):e(o)}))}))},e}();var Wa={nowSeconds:function(){return Date.now()/1e3}},qa=Ii()?function(){try{return Pi(module,"perf_hooks").performance}catch(e){return}}():function(){var e=Ai().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),Ya=void 0===qa?Wa:{nowSeconds:function(){return(qa.timeOrigin+qa.now())/1e3}},Xa=Wa.nowSeconds.bind(Wa),Ga=Ya.nowSeconds.bind(Ya),Ja=Ga,Za=function(){var e=Ai().performance;if(e&&e.now){var t=e.now(),n=Date.now(),r=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=r<36e5,i=e.timing&&e.timing.navigationStart,a="number"==typeof i?Math.abs(i+t-n):36e5;return o||a<36e5?r<=a?e.timeOrigin:i:n}}(),Qa=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=vi(t._breadcrumbs),n._tags=di({},t._tags),n._extra=di({},t._extra),n._contexts=di({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=vi(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=di(di({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=di(di({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=di(di({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=di(di({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=di(di({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=di(di({},this._tags),t._tags),this._extra=di(di({},this._extra),t._extra),this._contexts=di(di({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):ji(t)&&(t=t,this._tags=di(di({},this._tags),t.tags),this._extra=di(di({},this._extra),t.extra),this._contexts=di(di({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){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},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=di({timestamp:Xa()},e);return this._breadcrumbs=vi(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=di(di({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=di(di({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=di(di({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=di(di({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=di({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=di({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=vi(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(vi(es(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=di(di({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var o=this;return void 0===r&&(r=0),new $a((function(i,a){var s=e[r];if(null===t||"function"!=typeof s)i(t);else{var c=s(di({},t),n);Vi(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(i).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function es(){var e=Ai();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function ts(e){es().push(e)}var ns=function(){function e(e){this.errors=0,this.sid=za(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=Ga();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Ga(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:za()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return ba({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),rs=function(){function e(e,t,n){void 0===t&&(t=new Qa),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=Qa.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=za(),r=t;if(!t){var o=void 0;try{throw new Error("Sentry syntheticException")}catch(e){o=e}r={originalException:e,syntheticException:o}}return this._invokeClient("captureException",e,di(di({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=za(),o=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}o={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,di(di({},o),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=za();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,di(di({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,o=n.client;if(r&&o){var i=o.getOptions&&o.getOptions()||{},a=i.beforeBreadcrumb,s=void 0===a?null:a,c=i.maxBreadcrumbs,l=void 0===c?100:c;if(!(l<=0)){var u=Xa(),d=di({timestamp:u},e),p=s?na((function(){return s(d,t)})):d;null!==p&&r.addBreadcrumb(p,l)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=is(this);try{e(this)}finally{is(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return oa.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,o=r&&r.getOptions()||{},i=o.release,a=o.environment,s=(Ai().navigator||{}).userAgent,c=new ns(di(di(di({release:i,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var l=n.getSession&&n.getSession();l&&"ok"===l.status&&l.update({status:"exited"}),this.endSession(),n.setSession(c)}return c},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.getStackTop(),i=o.scope,a=o.client;a&&a[e]&&(t=a)[e].apply(t,vi(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=os(),o=r.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);oa.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function os(){var e=Ai();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function is(e){var t=os(),n=cs(t);return ls(t,e),n}function as(){var e=os();return ss(e)&&!cs(e).isOlderThan(4)||ls(e,new rs),Ii()?function(e){try{var t=os().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return cs(e);if(!ss(n)||cs(n).isOlderThan(4)){var r=cs(e).getStackTop();ls(n,new rs(r.client,Qa.clone(r.scope)))}return cs(n)}catch(t){return cs(e)}}(e):cs(e)}function ss(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function cs(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new rs),e.__SENTRY__.hub}function ls(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}function us(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=as();if(r&&r[e])return r[e].apply(r,vi(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ds(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return us("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ps(e){us("withScope",e)}function fs(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function ms(e,t){return""+fs(e)+e.projectId+"/"+t+"/"}function hs(e){return t={sentry_key:e.publicKey,sentry_version:"7"},Object.keys(t).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])})).join("&");var t}function gs(e){return function(e){return ms(e,"store")}(e)+"?"+hs(e)}function vs(e,t){return t||function(e){return ms(e,"envelope")}(e)+"?"+hs(e)}var ys=[];function bs(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var ws="Not capturing exception because it's already been captured.",xs=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=Zi(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!Ua(e)){var o=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){o=e}))),o}oa.log(ws)},e.prototype.captureMessage=function(e,t,n,r){var o=this,i=n&&n.event_id,a=Di(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return o._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&Ua(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}oa.log(ws)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?Ni()&&oa.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):Ni()&&oa.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){var e,t;this._isEnabled()&&!this._integrations.initialized&&(this._integrations=(e=this._options,t={},function(e){var t=e.defaultIntegrations&&vi(e.defaultIntegrations)||[],n=e.integrations,r=vi(bs(t));Array.isArray(n)?r=vi(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),bs(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var o=r.map((function(e){return e.name}));return-1!==o.indexOf("Debug")&&r.push.apply(r,vi(r.splice(o.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===ys.indexOf(e.name)&&(e.setupOnce(ts,as),ys.push(e.name),oa.log("Integration installed: "+e.name))}(e)})),da(t,"initialized",!0),t))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return oa.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,o=!1,i=!1,a=t.exception&&t.exception.values;if(a){i=!0;try{for(var s=hi(a),c=s.next();!c.done;c=s.next()){var l=c.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var u="ok"===e.status;(u&&0===e.errors||u&&o)&&(e.update(di(di({},o&&{status:"crashed"}),{errors:e.errors||Number(i||o)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new $a((function(n){var r=0,o=setInterval((function(){0==t._numProcessing?(clearInterval(o),n(!0)):(r+=1,e&&r>=e&&(clearInterval(o),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,o=this.getOptions().normalizeDepth,i=void 0===o?3:o,a=di(di({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:za()),timestamp:e.timestamp||Xa()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=Qa.clone(s).update(n.captureContext));var c=Va(a);return s&&(c=s.applyToEvent(a,n)),c.then((function(e){return e&&(e.sdkProcessingMetadata=di(di({},e.sdkProcessingMetadata),{normalizeDepth:va(i)})),"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=di(di(di(di(di({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return di(di({},e),e.data&&{data:va(e.data,t)})}))}),e.user&&{user:va(e.user,t)}),e.contexts&&{contexts:va(e.contexts,t)}),e.extra&&{extra:va(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),e.sdkProcessingMetadata=di(di({},e.sdkProcessingMetadata),{baseClientNormalized:!0}),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,o=t.dist,i=t.maxValueLength,a=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==o&&(e.dist=o),e.message&&(e.message=sa(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=sa(s.value,a));var c=e.request;c&&c.url&&(c.url=sa(c.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=vi(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){oa.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,o=this.getOptions(),i=o.beforeSend,a=o.sampleRate,s=this.getTransport();function c(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return Ka(new Yi("SDK not enabled, will not capture event."));var l="transaction"===e.type;return!l&&"number"==typeof a&&Math.random()>a?(c("sample_rate","event"),Ka(new Yi("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw c("event_processor",e.type||"event"),new Yi("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||l||!i?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Vi(e))return e.then((function(e){if(!ji(e)&&null!==e)throw new Yi(t);return e}),(function(e){throw new Yi("beforeSend rejected with "+e)}));if(!ji(e)&&null!==e)throw new Yi(t);return e}(i(n,t))})).then((function(t){if(null===t)throw c("before_send",e.type||"event"),new Yi("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession&&n.getSession();return!l&&o&&r._updateSessionFromEvent(o,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof Yi)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Yi("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}(),_s=function(){function e(){}return e.prototype.sendEvent=function(e){return Va({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return Va(!0)},e}(),Es=function(){function e(e){this._options=e,this._options.dsn||oa.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Yi("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Yi("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Ni()&&oa.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){Ni()&&oa.error("Error while sending session: "+e)})):Ni()&&oa.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new _s},e}();function Ss(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}var ks,Cs=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ks=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fa(this)||this;return ks.apply(n,e)}},e.id="FunctionToString",e}(),Ts=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Ns=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){ts((function(t){var n=as();if(!n)return t;var r=n.getIntegration(e);if(r){var o=n.getClient(),i=o?o.getOptions():{},a="function"==typeof r._mergeOptions?r._mergeOptions(i):{};return"function"!=typeof r._shouldDropEvent?t:r._shouldDropEvent(t,a)?null:t}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Ni()&&oa.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Da(e)),!0):this._isIgnoredError(e,t)?(Ni()&&oa.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Da(e)),!0):this._isDeniedUrl(e,t)?(Ni()&&oa.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Da(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(Ni()&&oa.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Da(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return la(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return la(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return la(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:vi(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:vi(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:vi(this._options.ignoreErrors||[],e.ignoreErrors||[],Ts),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,o=t.value,i=void 0===o?"":o;return[""+i,r+": "+i]}catch(t){return Ni()&&oa.error("Cannot extract message for event "+Da(e)),[]}return[]},e.prototype._getLastValidUrl=function(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace)return this._getLastValidUrl(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?this._getLastValidUrl(t):null}catch(t){return Ni()&&oa.error("Cannot extract url for event "+Da(e)),null}},e.id="InboundFilters",e}();function Is(e,t,n,r){var o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var Ps=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Os=/\((\S*)(?::(\d+))(?::(\d+))\)/,As=function(e){var t=Ps.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=Os.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=gi(Us(t[1]||"?",t[2]),2),o=r[0];return Is(r[1],o,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Bs=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Fs=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ls=function(e){var t,n=Bs.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=Fs.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var o=n[3],i=n[1]||"?";return i=(t=gi(Us(i,o),2))[0],Is(o=t[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},zs=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Rs=function(e){var t=zs.exec(e);return t?Is(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0},Ms=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Ds=function(e){var t=Ms.exec(e);return t?Is(t[2],t[3]||"?",+t[1]):void 0},js=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Hs=function(e){var t=js.exec(e);return t?Is(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0},Us=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function Vs(e){var t=$s(e),n={type:e&&e.name,value:qs(e)};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Ks(e){return{exception:{values:[Vs(e)]}}}function $s(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(Ws.test(e.message))return 1}return 0}(e);try{return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){var r,o,i,a;void 0===n&&(n=0);var s=[];try{for(var c=hi(t.split("\n").slice(n)),l=c.next();!l.done;l=c.next()){var u=l.value;try{for(var d=(i=void 0,hi(e)),p=d.next();!p.done;p=d.next()){var f=(0,p.value)(u);if(f){s.push(f);break}}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}return ia(s)}}(Ds,Hs,As,Rs,Ls)(t,n)}catch(e){}return[]}var Ws=/Minified React error #\d+;/i;function qs(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ys(e,t,n){var r;if(void 0===n&&(n={}),zi(e)&&e.error)return Ks(e.error);if(Ri(e)||Li(e,"DOMException")){var o=e;if("stack"in e)r=Ks(e);else{var i=o.name||(Ri(o)?"DOMError":"DOMException"),a=o.message?i+": "+o.message:i;ja(r=Xs(a,t,n),a)}return"code"in o&&(r.tags=di(di({},r.tags),{"DOMException.code":""+o.code})),r}return Fi(e)?Ks(e):ji(e)||Hi(e)?(Ha(r=function(e,t,n){var r={exception:{values:[{type:Hi(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+ya(e)}]},extra:{__serialized__:ha(e)}};return t&&(r.stacktrace={frames:$s(t)}),r}(e,t,n.isRejection),{synthetic:!0}),r):(ja(r=Xs(e,t,n),""+e,void 0),Ha(r,{synthetic:!0}),r)}function Xs(e,t,n){void 0===n&&(n={});var r={message:e};return n.attachStacktrace&&t&&(r.stacktrace={frames:$s(t)}),r}var Gs,Js=Ai();function Zs(){if(Gs)return Gs;if(xa(Js.fetch))return Gs=Js.fetch.bind(Js);var e=Js.document,t=Js.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Ni()&&oa.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Gs=t.bind(Js)}function Qs(e){return"event"===e?"error":e}var ec=Ai(),tc=function(){function e(e){var t,n,r,o=this;this.options=e,this._buffer=function(e){var 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 Ka(new Yi("Not adding Promise due to buffer limit reached."));var o=r();return-1===t.indexOf(o)&&t.push(o),o.then((function(){return n(o)})).then(null,(function(){return n(o).then(null,(function(){}))})),o},drain:function(e){return new $a((function(n,r){var o=t.length;if(!o)return n(!0);var i=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){Va(e).then((function(){--o||(clearTimeout(i),n(!0))}),r)}))}))}}}(30),this._rateLimits={},this._outcomes={},this._api=(t=e.dsn,n=e._metadata,r=e.tunnel,{initDsn:t,metadata:n||{},dsn:Zi(t),tunnel:r}),this.url=gs(this._api.dsn),this.options.sendClientReports&&ec.document&&ec.document.addEventListener("visibilitychange",(function(){"hidden"===ec.document.visibilityState&&o._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=Ss(t),o=e.type||"event",i="transaction"===o||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,c=a.rate;!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=vi(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=vi(e.sdk.packages||[],t.packages||[]))}(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(va(e))}catch(e){var l=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:l.message,stack:l.stack}})}}var u={body:n,type:o,url:i?vs(t.dsn,t.tunnel):gs(t.dsn)};if(i){var d=JSON.stringify(di(di({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Gi(t.dsn)}))+"\n"+JSON.stringify({type:o,sample_rates:[{id:s,rate:c}]})+"\n"+u.body;u.body=d}return u}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=Ss(t),r="aggregates"in e?"sessions":"session";return{body:JSON.stringify(di(di({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Gi(t.dsn)}))+"\n"+JSON.stringify({type:r})+"\n"+JSON.stringify(e),type:r,url:vs(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=Qs(t)+":"+e;oa.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){oa.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t=vs(this._api.dsn,this._api.tunnel),n=JSON.stringify(di({},this._api.tunnel&&{dsn:Gi(this._api.dsn)}))+"\n"+JSON.stringify({type:"client_report"})+"\n"+JSON.stringify({timestamp:Xa(),discarded_events:Object.keys(e).map((function(t){var n=gi(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}}))});try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(Js&&Js.navigator)&&"function"==typeof Js.navigator.sendBeacon)return Js.navigator.sendBeacon.bind(Js.navigator)(e,t);wa()&&Zs()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(t,n)}catch(e){oa.error(e)}}else oa.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t,n=e.requestType,r=e.response,o=e.headers,i=e.resolve,a=e.reject,s=(t=r.status)>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown";this._handleRateLimit(o)&&Ni()&&oa.warn("Too many "+n+" requests, backing off until: "+this._disabledUntil(n)),"success"!==s?a(r):i({status:s})},e.prototype._disabledUntil=function(e){var t=Qs(e);return this._rateLimits[t]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,o,i=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var c=hi(a.trim().split(",")),l=c.next();!l.done;l=c.next()){var u=l.value.split(":",2),d=parseInt(u[0],10),p=1e3*(isNaN(d)?60:d);try{for(var f=(r=void 0,hi(u[1].split(";"))),m=f.next();!m.done;m=f.next()){var h=m.value;this._rateLimits[h||"all"]=new Date(i+p)}}catch(e){r={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(i+function(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(i,s)),!0)},e}(),nc=function(e){function t(t,n){void 0===n&&(n=Zs());var r=e.call(this,t)||this;return r._fetch=n,r}return ui(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:_a()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new $a((function(t,o){n._fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:o})})).catch(o)}))})).then(void 0,(function(t){throw t instanceof Yi?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(tc),rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new $a((function(t,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:o,headers:i,resolve:t,reject:r})}},o.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Yi?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(tc),oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=Ys(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Ha(r),r.level=_i.Error,n&&n.event_id&&(r.event_id=n.event_id),Va(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=_i.Info),function(e,t,n,r){void 0===n&&(n=_i.Info);var o=Xs(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Va(o)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=di(di({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(t):wa()?new nc(t):new rc(t)},t}(Es),ic=Ai(),ac=0;function sc(){return ac>0}function cc(){ac+=1,setTimeout((function(){ac-=1}))}function lc(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(fa(e))return e}catch(t){return e}var o=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var o=r.map((function(e){return lc(e,t)}));return e.apply(this,o)}catch(e){throw cc(),ps((function(n){n.addEventProcessor((function(e){return t.mechanism&&(ja(e,void 0,void 0),Ha(e,t.mechanism)),e.extra=di(di({},e.extra),{arguments:r}),e})),ds(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(o[i]=e[i])}catch(e){}pa(o,e),da(e,"__sentry_wrapped__",o);try{Object.getOwnPropertyDescriptor(o,"name").configurable&&Object.defineProperty(o,"name",{get:function(){return e.name}})}catch(e){}return o}var uc=function(){function e(t){this.name=e.id,this._installFunc={onerror:dc,onunhandledrejection:pc},this._options=di({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,Ni()&&oa.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}},e.id="GlobalHandlers",e}();function dc(){Ia("error",(function(e){var t=gi(hc(),2),n=t[0],r=t[1];if(n.getIntegration(uc)){var o=e.msg,i=e.url,a=e.line,s=e.column,c=e.error;if(!(sc()||c&&c.__sentry_own_request__)){var l=void 0===c&&Mi(o)?function(e,t,n,r){var o=zi(e)?e.message:e,i="Error",a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(i=a[1],o=a[2]),fc({exception:{values:[{type:i,value:o}]}},t,n,r)}(o,i,a,s):fc(Ys(c||o,void 0,{attachStacktrace:r,isRejection:!1}),i,a,s);l.level=_i.Error,mc(n,c,l,"onerror")}}}))}function pc(){Ia("unhandledrejection",(function(e){var t=gi(hc(),2),n=t[0],r=t[1];if(n.getIntegration(uc)){var o=e;try{"reason"in e?o=e.reason:"detail"in e&&"reason"in e.detail&&(o=e.detail.reason)}catch(e){}if(sc()||o&&o.__sentry_own_request__)return!0;var i=Di(o)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(o)}]}}:Ys(o,void 0,{attachStacktrace:r,isRejection:!0});i.level=_i.Error,mc(n,o,i,"onunhandledrejection")}}))}function fc(e,t,n,r){var o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],l=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=Mi(t)&&t.length>0?t:function(){var e=Ai();try{return e.document.location.href}catch(e){return""}}();return 0===c.length&&c.push({colno:l,filename:d,function:"?",in_app:!0,lineno:u}),e}function mc(e,t,n,r){Ha(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function hc(){var e=as(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var gc=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],vc=function(){function e(t){this.name=e.id,this._options=di({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Ai();this._options.setTimeout&&ua(e,"setTimeout",yc),this._options.setInterval&&ua(e,"setInterval",yc),this._options.requestAnimationFrame&&ua(e,"requestAnimationFrame",bc),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&ua(XMLHttpRequest.prototype,"send",wc);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:gc).forEach(xc)},e.id="TryCatch",e}();function yc(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=lc(r,{mechanism:{data:{function:aa(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function bc(e){return function(t){return e.call(this,lc(t,{mechanism:{data:{function:"requestAnimationFrame",handler:aa(e)},handled:!0,type:"instrument"}}))}}function wc(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,o=["onload","onerror","onprogress","onreadystatechange"];return o.forEach((function(e){e in r&&"function"==typeof r[e]&&ua(r,e,(function(t){var n={mechanism:{data:{function:e,handler:aa(t)},handled:!0,type:"instrument"}},r=fa(t);return r&&(n.mechanism.data.handler=aa(r)),lc(t,n)}))})),e.apply(this,t)}}function xc(e){var t=Ai(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ua(n,"addEventListener",(function(t){return function(n,r,o){try{"function"==typeof r.handleEvent&&(r.handleEvent=lc(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:aa(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,lc(r,{mechanism:{data:{function:"addEventListener",handler:aa(r),target:e},handled:!0,type:"instrument"}}),o)}})),ua(n,"removeEventListener",(function(e){return function(t,n,r){var o=n;try{var i=o&&o.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,o,r)}})))}var _c=function(){function e(t){this.name=e.id,this._options=di({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&as().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Da(e)},{event:e})},e.prototype.setupOnce=function(){var e;this._options.console&&Ia("console",Ec),this._options.dom&&Ia("dom",(e=this._options.dom,function(t){var n,r="object"==typeof e?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?$i(t.event.target,r):$i(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&as().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&Ia("xhr",Sc),this._options.fetch&&Ia("fetch",kc),this._options.history&&Ia("history",Cc)},e.id="Breadcrumbs",e}();function Ec(e){var t,n={category:"console",data:{arguments:e.args,logger:"console"},level:(t=e.level,"warn"===t?_i.Warning:function(e){return-1!==Qi.indexOf(e)}(t)?t:_i.Log),message:ca(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;n.message="Assertion failed: "+(ca(e.args.slice(1)," ")||"console.assert"),n.data.arguments=e.args.slice(1)}as().addBreadcrumb(n,{input:e.args,level:e.level})}function Sc(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,o=t.status_code,i=t.body;as().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:e.xhr,input:i})}}function kc(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?as().addBreadcrumb({category:"fetch",data:e.fetchData,level:_i.Error,type:"http"},{data:e.error,input:e.args}):as().addBreadcrumb({category:"fetch",data:di(di({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function Cc(e){var t=Ai(),n=e.from,r=e.to,o=Ra(t.location.href),i=Ra(n),a=Ra(r);i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),as().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var Tc=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){ts((function(t,n){var r=as().getIntegration(e);return r?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&Ki(r.originalException,Error)))return n;var o=function e(t,n,r,o){if(void 0===o&&(o=[]),!Ki(n[r],Error)||o.length+1>=t)return o;var i=Vs(n[r]);return e(t,n[r],r,vi([i],o))}(t,r.originalException,e);return n.exception.values=vi(o,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}(),Nc=Ai(),Ic=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){ts((function(t){if(as().getIntegration(e)){if(!Nc.navigator&&!Nc.location&&!Nc.document)return t;var n=t.request&&t.request.url||Nc.location&&Nc.location.href,r=(Nc.document||{}).referrer,o=(Nc.navigator||{}).userAgent,i=di(di(di({},t.request&&t.request.headers),r&&{Referer:r}),o&&{"User-Agent":o}),a=di(di({},n&&{url:n}),{headers:i});return di(di({},t),{request:a})}return t}))},e.id="UserAgent",e}(),Pc=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!Ac(e,t)&&!!Oc(e,t))))}(e,t)||!!function(e,t){var n=Bc(t),r=Bc(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!Ac(e,t)&&!!Oc(e,t)))}(e,t))}(t,r._previousEvent))return oa.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function Oc(e,t){var n=Fc(e),r=Fc(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var o=0;o<r.length;o++){var i=r[o],a=n[o];if(i.filename!==a.filename||i.lineno!==a.lineno||i.colno!==a.colno||i.function!==a.function)return!1}return!0}function Ac(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function Bc(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Fc(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames}var Lc=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.17.9"}],version:"6.17.9"},e.call(this,oc,t)||this}return ui(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Ai().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),ic.document)if(e.eventId)if(e.dsn){var t=ic.document.createElement("script");t.async=!0,t.src=function(e,t){var n=Zi(e),r=fs(n)+"embed/error-page/",o="dsn="+Gi(n);for(var i in t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&(o+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(o+="&email="+encodeURIComponent(t.user.email))}else o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(t[i]);return r+"?"+o}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=ic.document.head||ic.document.body;n&&n.appendChild(t)}else Ni()&&oa.error("Missing dsn option in showReportDialog call");else Ni()&&oa.error("Missing eventId option in showReportDialog call")}(di(di({},e),{dsn:e.dsn||this.getDsn()})):oa.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(_c);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(xs),zc=[new Ns,new Cs,new vc,new _c,new uc,new Tc,new Pc,new Ic];function Rc(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var Mc={error:console.error},Dc=n(null),jc=Dc.Provider,Hc=function(){var e=i(Dc);if(!e)throw new Error("useRootElement must be used withn a RootElementProvider");return e},Uc=n({assetTypes:[],language:"en_US",onSuccess:function(e,t){var n=t.selectedFile;return console.log(e,n)},selectionMode:"MultiSelect",hideExternalAccess:!1}),Vc=Uc.Provider,Kc=function(){return i(Uc)},$c=function(){return Kc().theme},Wc=function(){return Kc().selectionMode};function qc(e,t,n){return{background:Yc(e,t,n),color:Xc(e,t,n)}}function Yc(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryActive)&&"Active"===n?e.colorButtonPrimaryActive:void 0===(null==e?void 0:e.colorButtonPrimaryHover)||"Hover"!==n&&"Active"!==n?void 0!==(null==e?void 0:e.colorButtonPrimary)?e.colorButtonPrimary:void 0:e.colorButtonPrimaryHover}function Xc(e,t,n){if("Primary"===t||"PrimarySm"===t)return void 0!==(null==e?void 0:e.colorButtonPrimaryHoverLabel)&&"Hover"===n?e.colorButtonPrimaryHoverLabel:void 0!==(null==e?void 0:e.colorButtonPrimaryLabel)?e.colorButtonPrimaryLabel:void 0}function Gc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}var Jc=s((function(e,n){var o=e.title,i=e.isDisabled,a=e.onClick,s=e.testId,c=e.kind,l=void 0===c?"Flat":c,u=e.children,d=e.className,p=pi(e,["title","isDisabled","onClick","testId","kind","children","className"]),f=r(!1),m=f[0],h=f[1],g=r(!1),v=g[0],y=g[1],b=$c(),w=Gc("rounded inline-flex items-center flex-shrink-0 text-md border border-transparent\n\tselect-none active:shadow-inner focus:outline-none disabled:pointer-events-none\n\ttransition-color",function(e){switch(e){case"Flat":case"Primary":case"Secondary":return"h-10 px-4";case"FlatSm":case"PrimarySm":case"SecondarySm":return"h-8 px-3"}}(l),function(e){switch(e){case"Primary":case"PrimarySm":return"text-ui-0 bg-brand-500 hover:bg-brand-600 active:bg-brand-700\n\t\t\t\tdisabled:opacity-60";case"Secondary":case"SecondarySm":return"text-body-500 bg-ui-400 hover:bg-ui-500 hover:text-body-500 active:bg-ui-700\n\t\t\t\tfocus:text-body-500 disabled:text-body-300 disabled:bg-ui-500";case"Flat":case"FlatSm":return"text-body-400 active:bg-ui-700 active:text-body-500\n\t\t\t\tfocus:bg-ui-500 focus:text-body-500 hover:bg-ui-500 hover:text-body-500\n\t\t\t\tdisabled:text-body-300"}}(l),function(e){switch(e){case"Primary":case"PrimarySm":return"focus:border-ui-900";case"Secondary":case"SecondarySm":return"border-ui-600 focus:border-ui-900 disabled:border-ui-500";case"Flat":case"FlatSm":return"focus:border-ui-700"}}(l),d),x=qc(b,l,function(e,t){return t?"Active":e?"Hover":"None"}(m,v));return t.createElement("button",di({className:w,style:x,onMouseOver:function(){return h(!0)},onFocus:function(){return h(!0)},onMouseOut:function(){return h(!1)},onBlur:function(){return h(!1)},onMouseDown:function(){return y(!0)},onMouseUp:function(){return y(!1)},title:o,disabled:i,onClick:a,ref:n,"data-testid":null!=s?s:"button",type:"button"},p),u)}));function Zc(e){var t;return null!==(t=Qc[e])&&void 0!==t?t:e}var Qc={};function el(e){a((function(){var t=e.slice(0,2).toLowerCase();fetch("https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/i18n/"+t+".json").then((function(e){return e.json()})).then((function(e){Qc=e}))}),[e])}function tl(){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 nl(e){return t.createElement(t.Fragment,null,t.createElement(tl,null),t.createElement("h1",{className:"mt-10 text-2xl"},Zc("Oops! Something went wrong")),t.createElement("span",{className:"mt-4 text-body-400"},Zc("Please try again or get in contact with our customer support.")),t.createElement("div",{className:"mt-8"},t.createElement(Jc,{kind:"Secondary",title:Zc("Send report"),onClick:e.onClickSend,isDisabled:e.isReportSent},e.isReportSent?Zc("Report sent"):Zc("Send report...")),t.createElement(Jc,{kind:"Primary",title:Zc("Try again"),className:"ml-2",onClick:e.onClickRetry},Zc("Try again"))))}var rl={exports:{}},ol={},il="function"==typeof Symbol&&Symbol.for,al=il?Symbol.for("react.element"):60103,sl=il?Symbol.for("react.portal"):60106,cl=il?Symbol.for("react.fragment"):60107,ll=il?Symbol.for("react.strict_mode"):60108,ul=il?Symbol.for("react.profiler"):60114,dl=il?Symbol.for("react.provider"):60109,pl=il?Symbol.for("react.context"):60110,fl=il?Symbol.for("react.async_mode"):60111,ml=il?Symbol.for("react.concurrent_mode"):60111,hl=il?Symbol.for("react.forward_ref"):60112,gl=il?Symbol.for("react.suspense"):60113,vl=il?Symbol.for("react.suspense_list"):60120,yl=il?Symbol.for("react.memo"):60115,bl=il?Symbol.for("react.lazy"):60116,wl=il?Symbol.for("react.block"):60121,xl=il?Symbol.for("react.fundamental"):60117,_l=il?Symbol.for("react.responder"):60118,El=il?Symbol.for("react.scope"):60119;function Sl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case al:switch(e=e.type){case fl:case ml:case cl:case ul:case ll:case gl:return e;default:switch(e=e&&e.$$typeof){case pl:case hl:case bl:case yl:case dl:return e;default:return t}}case sl:return t}}}function kl(e){return Sl(e)===ml}function Cl(e){function t(e,t,r){var o=t.trim().split(m);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(h,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===I||2===I&&o(c,1)?"-webkit-"+c+c:c}if(0===I||2===I&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(b,"tb");break;case 232:c=a.replace(b,"tb-rl");break;case 220:c=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(_,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(_,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),B(2!==t?r:r.replace(E,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,u){for(var d,p=0,f=t;p<A;++p)switch(d=O[p].call(c,e,f,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:f=d}if(f!==t)return f}function s(e){return void 0!==(e=e.prefix)&&(B=null,e?"function"!=typeof e?I=1:(I=2,B=e):I=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<A){var c=a(-1,n,s,s,T,C,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var d=function e(n,s,c,d,p){for(var f,m,h,b,x,_=0,E=0,S=0,k=0,O=0,B=0,L=h=f=0,z=0,R=0,M=0,D=0,j=c.length,H=j-1,U="",V="",K="",$="";z<j;){if(m=c.charCodeAt(z),z===H&&0!==E+k+S+_&&(0!==E&&(m=47===E?10:47),k=S=_=0,j++,H++),0===E+k+S+_){if(z===H&&(0<R&&(U=U.replace(u,"")),0<U.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:U+=c.charAt(z)}m=59}switch(m){case 123:for(f=(U=U.trim()).charCodeAt(0),h=1,D=++z;z<j;){switch(m=c.charCodeAt(z)){case 123:h++;break;case 125:h--;break;case 47:switch(m=c.charCodeAt(z+1)){case 42:case 47:e:{for(L=z+1;L<H;++L)switch(c.charCodeAt(L)){case 47:if(42===m&&42===c.charCodeAt(L-1)&&z+2!==L){z=L+1;break e}break;case 10:if(47===m){z=L+1;break e}}z=L}}break;case 91:m++;case 40:m++;case 34:case 39:for(;z++<H&&c.charCodeAt(z)!==m;);}if(0===h)break;z++}switch(h=c.substring(D,z),0===f&&(f=(U=U.replace(l,"").trim()).charCodeAt(0)),f){case 64:switch(0<R&&(U=U.replace(u,"")),m=U.charCodeAt(1)){case 100:case 109:case 115:case 45:R=s;break;default:R=P}if(D=(h=e(s,R,h,m,p+1)).length,0<A&&(x=a(3,h,R=t(P,U,M),s,T,C,D,m,p,d),U=R.join(""),void 0!==x&&0===(D=(h=x.trim()).length)&&(m=0,h="")),0<D)switch(m){case 115:U=U.replace(w,i);case 100:case 109:case 45:h=U+"{"+h+"}";break;case 107:h=(U=U.replace(g,"$1 $2"))+"{"+h+"}",h=1===I||2===I&&o("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=U+h,112===d&&(V+=h,h="")}else h="";break;default:h=e(s,t(s,U,M),h,d,p+1)}K+=h,h=M=R=L=f=0,U="",m=c.charCodeAt(++z);break;case 125:case 59:if(1<(D=(U=(0<R?U.replace(u,""):U).trim()).length))switch(0===L&&(f=U.charCodeAt(0),45===f||96<f&&123>f)&&(D=(U=U.replace(" ",":")).length),0<A&&void 0!==(x=a(1,U,s,n,T,C,V.length,d,p,d))&&0===(D=(U=x.trim()).length)&&(U="\0\0"),f=U.charCodeAt(0),m=U.charCodeAt(1),f){case 0:break;case 64:if(105===m||99===m){$+=U+c.charAt(z);break}default:58!==U.charCodeAt(D-1)&&(V+=r(U,f,m,U.charCodeAt(2)))}M=R=L=f=0,U="",m=c.charCodeAt(++z)}}switch(m){case 13:case 10:47===E?E=0:0===1+f&&107!==d&&0<U.length&&(R=1,U+="\0"),0<A*F&&a(0,U,s,n,T,C,V.length,d,p,d),C=1,T++;break;case 59:case 125:if(0===E+k+S+_){C++;break}default:switch(C++,b=c.charAt(z),m){case 9:case 32:if(0===k+_+E)switch(O){case 44:case 58:case 9:case 32:b="";break;default:32!==m&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===k+E+_&&(R=M=1,b="\f"+b);break;case 108:if(0===k+E+_+N&&0<L)switch(z-L){case 2:112===O&&58===c.charCodeAt(z-3)&&(N=O);case 8:111===B&&(N=B)}break;case 58:0===k+E+_&&(L=z);break;case 44:0===E+S+k+_&&(R=1,b+="\r");break;case 34:case 39:0===E&&(k=k===m?0:0===k?m:k);break;case 91:0===k+E+S&&_++;break;case 93:0===k+E+S&&_--;break;case 41:0===k+E+_&&S--;break;case 40:if(0===k+E+_){if(0===f)switch(2*O+3*B){case 533:break;default:f=1}S++}break;case 64:0===E+S+k+_+L+h&&(h=1);break;case 42:case 47:if(!(0<k+_+S))switch(E){case 0:switch(2*m+3*c.charCodeAt(z+1)){case 235:E=47;break;case 220:D=z,E=42}break;case 42:47===m&&42===O&&D+2!==z&&(33===c.charCodeAt(D+2)&&(V+=c.substring(D,z+1)),b="",E=0)}}0===E&&(U+=b)}B=O,O=m,z++}if(0<(D=V.length)){if(R=s,0<A&&void 0!==(x=a(2,V,R,n,T,C,D,d,p,d))&&0===(V=x).length)return $+V+K;if(V=R.join(",")+"{"+V+"}",0!=I*N){switch(2!==I||o(V,2)||(N=0),N){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}N=0}}return $+V+K}(P,s,n,0,0);return 0<A&&void 0!==(c=a(-2,d,s,s,T,C,d.length,0,0,0))&&(d=c),N=0,C=T=1,d}var l=/^\0+/g,u=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,f=/([,: ])(transform)/g,m=/,\r+?/g,h=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,_=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,C=1,T=1,N=0,I=1,P=[],O=[],A=0,B=null,F=0;return c.use=function e(t){switch(t){case void 0:case null:A=O.length=0;break;default:if("function"==typeof t)O[A++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else F=0|!!t}return e},c.set=s,void 0!==e&&s(e),c}ol.AsyncMode=fl,ol.ConcurrentMode=ml,ol.ContextConsumer=pl,ol.ContextProvider=dl,ol.Element=al,ol.ForwardRef=hl,ol.Fragment=cl,ol.Lazy=bl,ol.Memo=yl,ol.Portal=sl,ol.Profiler=ul,ol.StrictMode=ll,ol.Suspense=gl,ol.isAsyncMode=function(e){return kl(e)||Sl(e)===fl},ol.isConcurrentMode=kl,ol.isContextConsumer=function(e){return Sl(e)===pl},ol.isContextProvider=function(e){return Sl(e)===dl},ol.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===al},ol.isForwardRef=function(e){return Sl(e)===hl},ol.isFragment=function(e){return Sl(e)===cl},ol.isLazy=function(e){return Sl(e)===bl},ol.isMemo=function(e){return Sl(e)===yl},ol.isPortal=function(e){return Sl(e)===sl},ol.isProfiler=function(e){return Sl(e)===ul},ol.isStrictMode=function(e){return Sl(e)===ll},ol.isSuspense=function(e){return Sl(e)===gl},ol.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===cl||e===ml||e===ul||e===ll||e===gl||e===vl||"object"==typeof e&&null!==e&&(e.$$typeof===bl||e.$$typeof===yl||e.$$typeof===dl||e.$$typeof===pl||e.$$typeof===hl||e.$$typeof===xl||e.$$typeof===_l||e.$$typeof===El||e.$$typeof===wl)},ol.typeOf=Sl,rl.exports=ol;var Tl={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},Nl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,Il=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=(n=e,Nl.test(n)||111===n.charCodeAt(0)&&110===n.charCodeAt(1)&&n.charCodeAt(2)<91)),t[e];var n}}(),Pl=rl.exports,Ol={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Al={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bl={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fl={};function Ll(e){return Pl.isMemo(e)?Bl:Fl[e.$$typeof]||Ol}Fl[Pl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fl[Pl.Memo]=Bl;var zl=Object.defineProperty,Rl=Object.getOwnPropertyNames,Ml=Object.getOwnPropertySymbols,Dl=Object.getOwnPropertyDescriptor,jl=Object.getPrototypeOf,Hl=Object.prototype;function Ul(){return(Ul=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)}var Vl=function(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},Kl=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!rl.exports.typeOf(e)},$l=Object.freeze([]),Wl=Object.freeze({});function ql(e){return"function"==typeof e}function Yl(e){return e.displayName||e.name||"Component"}function Xl(e){return e&&"string"==typeof e.styledComponentId}var Gl="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Jl="undefined"!=typeof window&&"HTMLElement"in window,Zl=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&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.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Ql={};function eu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var tu=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&eu(16,""+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=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.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)}},t.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+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),nu=new Map,ru=new Map,ou=1,iu=function(e){if(nu.has(e))return nu.get(e);for(;ru.has(ou);)ou++;var t=ou++;return nu.set(e,t),ru.set(t,e),t},au=function(e){return ru.get(e)},su=function(e,t){t>=ou&&(ou=t+1),nu.set(e,t),ru.set(t,e)},cu="style["+Gl+'][data-styled-version="5.3.3"]',lu=new RegExp("^"+Gl+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),uu=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)},du=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(lu);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(su(l,c),uu(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},pu=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Gl))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Gl,"active"),r.setAttribute("data-styled-version","5.3.3");var a="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},fu=function(){function e(e){var t=this.element=pu(e);t.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}eu(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),mu=function(){function e(e){var t=this.element=pu(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),hu=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),gu=Jl,vu={isServer:!Jl,useCSSOMInjection:!Zl},yu=function(){function e(e,t,n){void 0===e&&(e=Wl),void 0===t&&(t={}),this.options=Ul({},vu,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Jl&&gu&&(gu=!1,function(e){for(var t=document.querySelectorAll(cu),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(Gl)&&(du(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return iu(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Ul({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new hu(o):r?new fu(o):new mu(o),new tu(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(iu(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(iu(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(iu(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=au(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var c=Gl+".g"+o+'[id="'+i+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),bu=/(a)(d)/gi,wu=function(e){return String.fromCharCode(e+(e>25?39:97))};function xu(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=wu(t%52)+n;return(wu(t%52)+n).replace(bu,"$1-$2")}var _u=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Eu=function(e){return _u(5381,e)};function Su(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ql(n)&&!Xl(n))return!1}return!0}var ku=Eu("5.3.3"),Cu=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Su(e),this.componentId=t,this.baseHash=_u(ku,t),this.baseStyle=n,yu.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=Ku(this.rules,e,t,n).join(""),a=xu(_u(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=_u(this.baseHash,n.hash),u="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)u+=p;else if(p){var f=Ku(p,e,t,n),m=Array.isArray(f)?f.join(""):f;l=_u(l,m+d),u+=m}}if(u){var h=xu(l>>>0);if(!t.hasNameForId(r,h)){var g=n(u,"."+h,void 0,r);t.insertRules(r,h,g)}o.push(h)}}return o.join(" ")},e}(),Tu=/^\s*\/\/.*$/gm,Nu=[":","[",".","#"];function Iu(e){var t,n,r,o,i=void 0===e?Wl:e,a=i.options,s=void 0===a?Wl:a,c=i.plugins,l=void 0===c?$l:c,u=new Cl(s),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,c,l,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),f=function(e,r,i){return 0===r&&-1!==Nu.indexOf(i[n.length])||i.match(o)?e:"."+t};function m(e,i,a,s){void 0===s&&(s="&");var c=e.replace(Tu,""),l=i&&a?a+" "+i+" { "+c+" }":c;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),u(a||!i?"":i,l)}return u.use([].concat(l,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=l.length?l.reduce((function(e,t){return t.name||eu(15),_u(e,t.name)}),5381).toString():"",m}var Pu=t.createContext(),Ou=t.createContext(),Au=new yu,Bu=Iu();function Fu(){return i(Pu)||Au}function Lu(){return i(Ou)||Bu}function zu(e){var n=r(e.stylisPlugins),i=n[0],s=n[1],c=Fu(),l=o((function(){var t=c;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]),u=o((function(){return Iu({options:{prefix:!e.disableVendorPrefixes},plugins:i})}),[e.disableVendorPrefixes,i]);return a((function(){(function(e,t,n,r){var o=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),c=0;c<i.length;c++){var l=i[c];if(!s(l))return!1;var u=e[l],d=t[l];if(!1===(o=void 0)||void 0===o&&u!==d)return!1}return!0})(i,e.stylisPlugins)||s(e.stylisPlugins)}),[e.stylisPlugins]),t.createElement(Pu.Provider,{value:l},t.createElement(Ou.Provider,{value:u},e.children))}var Ru=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Bu);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return eu(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Bu),this.name+e.hash},e}(),Mu=/([A-Z])/,Du=/([A-Z])/g,ju=/^ms-/,Hu=function(e){return"-"+e.toLowerCase()};function Uu(e){return Mu.test(e)?e.replace(Du,Hu).replace(ju,"-ms-"):e}var Vu=function(e){return null==e||!1===e||""===e};function Ku(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=Ku(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return Vu(e)?"":Xl(e)?"."+e.styledComponentId:ql(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:Ku(e(t),t,n,r):e instanceof Ru?n?(e.inject(n,r),e.getName(r)):e:Kl(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!Vu(t[a])&&(Array.isArray(t[a])&&t[a].isCss||ql(t[a])?i.push(Uu(a)+":",t[a],";"):Kl(t[a])?i.push.apply(i,e(t[a],a)):i.push(Uu(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in Tl?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var c}var $u=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Wu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return ql(e)||Kl(e)?$u(Ku(Vl($l,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:$u(Ku(Vl(e,n)))}var qu=function(e,t,n){return void 0===n&&(n=Wl),e.theme!==n.theme&&e.theme||t||n.theme},Yu=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xu=/(^-|-$)/g;function Gu(e){return e.replace(Yu,"-").replace(Xu,"")}var Ju=function(e){return xu(Eu(e)>>>0)};function Zu(e){return"string"==typeof e&&!0}var Qu=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ed=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function td(e,t,n){var r=e[n];Qu(t)&&Qu(r)?nd(r,t):e[n]=t}function nd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Qu(a))for(var s in a)ed(s)&&td(e,a[s],s)}return e}var rd=t.createContext(),od={};function id(e,n,r){var o=Xl(e),a=!Zu(e),s=n.attrs,c=void 0===s?$l:s,l=n.componentId,d=void 0===l?function(e,t){var n="string"!=typeof e?"sc":Gu(e);od[n]=(od[n]||0)+1;var r=n+"-"+Ju("5.3.3"+n+od[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,p=n.displayName,f=void 0===p?function(e){return Zu(e)?"styled."+e:"Styled("+Yl(e)+")"}(e):p,m=n.displayName&&n.componentId?Gu(n.displayName)+"-"+n.componentId:n.componentId||d,h=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,g=n.shouldForwardProp;o&&e.shouldForwardProp&&(g=n.shouldForwardProp?function(t,r,o){return e.shouldForwardProp(t,r,o)&&n.shouldForwardProp(t,r,o)}:e.shouldForwardProp);var v,y=new Cu(r,m,o?e.componentStyle:void 0),b=y.isStatic&&0===c.length,w=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,d=e.styledComponentId,p=e.target,f=function(e,t,n){void 0===e&&(e=Wl);var r=Ul({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in ql(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(qu(t,i(rd),s)||Wl,t,o),m=f[0],h=f[1],g=function(e,t,n,r){var o=Fu(),i=Lu();return t?e.generateAndInjectStyles(Wl,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,m),v=n,y=h.$as||t.$as||h.as||t.as||p,b=Zu(y),w=h!==t?Ul({},t,{},h):t,x={};for(var _ in w)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?x.as=w[_]:(l?l(_,Il,y):!b||Il(_))&&(x[_]=w[_]));return t.style&&h.style!==t.style&&(x.style=Ul({},t.style,{},h.style)),x.className=Array.prototype.concat(c,d,g!==d?g:null,t.className,h.className).filter(Boolean).join(" "),x.ref=v,u(y,x)}(v,e,t,b)};return w.displayName=f,(v=t.forwardRef(w)).attrs=h,v.componentStyle=y,v.displayName=f,v.shouldForwardProp=g,v.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):$l,v.styledComponentId=m,v.target=o?e.target:e,v.withComponent=function(e){var t=n.componentId,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}(n,["componentId"]),i=t&&t+"-"+(Zu(e)?e:Gu(Yl(e)));return id(e,Ul({},o,{attrs:h,componentId:i}),r)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?nd({},e.defaultProps,t):t}}),v.toString=function(){return"."+v.styledComponentId},a&&function e(t,n,r){if("string"!=typeof n){if(Hl){var o=jl(n);o&&o!==Hl&&e(t,o,r)}var i=Rl(n);Ml&&(i=i.concat(Ml(n)));for(var a=Ll(t),s=Ll(n),c=0;c<i.length;++c){var l=i[c];if(!(Al[l]||r&&r[l]||s&&s[l]||a&&a[l])){var u=Dl(n,l);try{zl(t,l,u)}catch(e){}}}}return t}(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var ad=function(e){return function e(t,n,r){if(void 0===r&&(r=Wl),!rl.exports.isValidElementType(n))return eu(1,String(n));var o=function(){return t(n,r,Wu.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,Ul({},r,{},o))},o.attrs=function(o){return e(t,n,Ul({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(id,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){ad[e]=ad(e)}));var sd=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Su(e),yu.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(Ku(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&yu.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function cd(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=Wu.apply(void 0,[e].concat(r)),s="sc-global-"+Ju(JSON.stringify(a)),u=new sd(a,s);function d(e){var t=Fu(),n=Lu(),r=i(rd),o=c(t.allocateGSInstance(s)).current;return t.server&&p(o,e,t,r,n),l((function(){if(!t.server)return p(o,e,t,r,n),function(){return u.removeStyles(o,t)}}),[o,e,t,r,n]),null}function p(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,Ql,n,o);else{var i=Ul({},t,{theme:qu(t,r,d.defaultProps)});u.renderStyles(e,i,n,o)}}return t.memo(d)}function ld(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Wu.apply(void 0,[e].concat(n)).join(""),i=Ju(o);return new Ru(i,o)}var ud=ad;function dd(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var pd={};dd(pd,"SSRProvider",()=>hd),dd(pd,"useSSRSafeId",()=>vd),dd(pd,"useIsSSR",()=>yd);const fd={prefix:String(Math.round(1e10*Math.random())),current:0},md=t.createContext(fd);function hd(e){let n=i(md),r=o(()=>({prefix:n===fd?"":`${n.prefix}-${++n.current}`,current:0}),[n]);return t.createElement(md.Provider,{value:r},e.children)}let gd=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function vd(e){let t=i(md);return t!==fd||gd||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),o(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function yd(){let e=i(md)!==fd,[t,n]=r(e);return"undefined"!=typeof window&&e&&l(()=>{n(!1)},[]),t}function bd(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=bd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bd(e))&&(r&&(r+=" "),r+=t);return r}function xd(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function _d(e,t,n){let[o,i]=r(e||t),a=c(void 0!==e),s=a.current,l=void 0!==e,u=c(o);s!==l&&console.warn(`WARN: A component changed from ${s?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),a.current=l;let p=d((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(u.current,e)||n(e,...t)),l||(u.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((n,...o)=>{let i=e(l?u.current:n,...o);return r(i,...t),l?n:i})):(l||i(e),r(e,...t))},[l,n]);return l?u.current=e:e=o,[e,p]}xd({},"useControlledState",()=>_d);var Ed={};function Sd(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function kd(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r,i=2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let e=Math.pow(10,c);i=Math.round(i*e)/e}return i}function Cd(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function Td(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}xd(Ed,"clamp",()=>Sd),xd(Ed,"snapValueToStep",()=>kd),xd(Ed,"toFixedNumber",()=>Cd);var Nd={};Td(Nd,"useId",()=>Od),Td(Nd,"mergeIds",()=>Ad),Td(Nd,"useSlotId",()=>Bd),Td({},"useLayoutEffect",()=>Id);const Id="undefined"!=typeof window?t.useLayoutEffect:()=>{};let Pd=new Map;function Od(e){let t=c(!0);t.current=!0;let[n,o]=r(e),i=c(null),s=vd(n),l=e=>{t.current?i.current=e:o(e)};return Pd.set(s,l),Id(()=>{t.current=!1},[l]),Id(()=>{let e=s;return()=>{Pd.delete(e)}},[s]),a(()=>{let e=i.current;e&&(o(e),i.current=null)},[o,l]),s}function Ad(e,t){if(e===t)return e;let n=Pd.get(e);if(n)return n(t),t;let r=Pd.get(t);return r?(r(e),e):t}function Bd(e=[]){let t=Od(),[n,r]=_p(t),o=d(()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))},[t,r]);return Id(o,[t,o,...e]),n}function Fd(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ld(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Fd(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Ad(n,o):t[e]=void 0!==o?o:n:t[e]=wd(n,o)}}return t}Td({},"chain",()=>Fd),Td({},"mergeProps",()=>Ld),Td({},"filterDOMProps",()=>Dd);const zd=new Set(["id"]),Rd=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Md=/^(data-.*)$/;function Dd(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(zd.has(t)||n&&Rd.has(t)||(null==r?void 0:r.has(t))||Md.test(t))&&(o[t]=e[t]);return o}function jd(e){if(function(){if(null==Hd){Hd=!1;try{document.createElement("div").focus({get preventScroll(){return Hd=!0,!0}})}catch(e){}}return Hd}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}Td({},"focusWithoutScrolling",()=>jd);let Hd=null;function Ud(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}Td({},"getOffset",()=>Ud);var Vd={};Td(Vd,"clamp",()=>Sd),Td(Vd,"snapValueToStep",()=>kd),Td({},"runAfterTransition",()=>qd);let Kd=new Map,$d=new Set;function Wd(){if("undefined"==typeof window)return;let e=t=>{let n=Kd.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Kd.delete(t.target)),0===Kd.size)){for(let e of $d)e();$d.clear()}};document.body.addEventListener("transitionrun",t=>{let n=Kd.get(t.target);n||(n=new Set,Kd.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)}),document.body.addEventListener("transitionend",e)}function qd(e){requestAnimationFrame(()=>{0===Kd.size?e():$d.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?Wd():document.addEventListener("DOMContentLoaded",Wd)),Td({},"useDrag1D",()=>Xd);const Yd=[];function Xd(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:u,onDecrementToMin:d,onCollapseToggle:p}=e,f=e=>{let o=Ud(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},m=c(!1),h=c(0),g=c({onPositionChange:a,onDrag:i});g.current.onDrag=i,g.current.onPositionChange=a;let v=e=>{e.preventDefault();let t=f(e);m.current||(m.current=!0,g.current.onDrag&&g.current.onDrag(!0),g.current.onPositionChange&&g.current.onPositionChange(t)),h.current!==t&&(h.current=t,a&&a(t))},y=e=>{const t=e.target;m.current=!1;let n=f(e);g.current.onDrag&&g.current.onDrag(!1),g.current.onPositionChange&&g.current.onPositionChange(n),Yd.splice(Yd.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",v,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Yd.some(e=>t.contains(e))||(Yd.push(t),window.addEventListener("mousemove",v,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),d&&d();break;case"End":e.preventDefault(),u&&u();break;case"Enter":e.preventDefault(),p&&p()}}}}function Gd(){let e=c(new Map),t=d((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)},[]),n=d((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)},[]),r=d(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return a(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Jd(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Od(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Zd(e){const t=c();return Id(()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)},[e]),t}function Qd(e,t){const n=c(!0);a(()=>{n.current?n.current=!1:e()},t)}function ep(e){const{ref:t,onResize:n}=e;a(()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver(e=>{e.length&&n()});return t.observe(e),()=>{e&&t.unobserve(e)}}}},[n,t])}function tp(e,t){Id(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function np(e){for(;e&&!rp(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function rp(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Td({},"useGlobalListeners",()=>Gd),Td({},"useLabels",()=>Jd),Td({},"useObjectRef",()=>Zd),Td({},"useUpdateEffect",()=>Qd),Td({},"useResizeObserver",()=>ep),Td({},"useSyncRef",()=>tp),Td({},"getScrollParent",()=>np),Td({},"useViewportSize",()=>ip);let op="undefined"!=typeof window&&window.visualViewport;function ip(){let[e,t]=r(()=>ap());return a(()=>{let e=()=>{t(e=>{let t=ap();return t.width===e.width&&t.height===e.height?e:t})};return op?op.addEventListener("resize",e):window.addEventListener("resize",e),()=>{op?op.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),e}function ap(){return{width:(null==op?void 0:op.width)||window.innerWidth,height:(null==op?void 0:op.height)||window.innerHeight}}Td({},"useDescription",()=>lp);let sp=0;const cp=new Map;function lp(e){let[t,n]=r(null);return Id(()=>{if(!e)return;let t=cp.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+sp++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},cp.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),cp.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}var up={};function dp(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function pp(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function fp(){return pp(/^Mac/)}function mp(){return pp(/^iPhone/)}function hp(){return pp(/^iPad/)||fp()&&navigator.maxTouchPoints>1}function gp(){return mp()||hp()}function vp(){return fp()||gp()}function yp(){return dp(/AppleWebKit/)&&!bp()}function bp(){return dp(/Chrome/)}function wp(){return dp(/Android/)}function xp(e,t,n,r){let o=c(n);o.current=n;let i=null==n;a(()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}},[e,t,r,i])}function _p(e){let[t,n]=r(e),o=c(t),i=c(null);o.current=t;let a=c(null);a.current=()=>{let e=i.current.next();e.done?i.current=null:t===e.value?a.current():n(e.value)},Id(()=>{i.current&&a.current()});let s=d(e=>{i.current=e(o.current),a.current()},[i,a]);return[t,s]}function Ep(e,t){let n=Sp(e,t,"left"),r=Sp(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,c=a+e.offsetWidth,l=s+e.offsetHeight;n<=a?a=n:n+o>c&&(a+=n+o-c),r<=s?s=r:r+i>l&&(s+=r+i-l),e.scrollLeft=a,e.scrollTop=s}function Sp(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function kp(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Td(up,"isMac",()=>fp),Td(up,"isIPhone",()=>mp),Td(up,"isIPad",()=>hp),Td(up,"isIOS",()=>gp),Td(up,"isAppleDevice",()=>vp),Td(up,"isWebKit",()=>yp),Td(up,"isChrome",()=>bp),Td(up,"isAndroid",()=>wp),Td({},"useEvent",()=>xp),Td({},"useValueEffect",()=>_p),Td({},"scrollIntoView",()=>Ep),kp({},"Pressable",()=>Hp),kp({},"usePress",()=>Bp);let Cp="default",Tp="",Np=new WeakMap;function Ip(e){gp()?("default"===Cp&&(Tp=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Cp="disabled"):e&&(Np.set(e,e.style.userSelect),e.style.userSelect="none")}function Pp(e){if(gp()){if("disabled"!==Cp)return;Cp="restoring",setTimeout(()=>{qd(()=>{"restoring"===Cp&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Tp||""),Tp="",Cp="default")})},300)}else if(e&&Np.has(e)){let t=Np.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Np.delete(e)}}function Op(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ap=t.createContext(null);function Bp(e){let{onPress:t,onPressChange:n,onPressStart:s,onPressEnd:l,onPressUp:u,isDisabled:d,isPressed:p,preventFocusOnPress:f,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:h,ref:g,...v}=function(e){let t=i(Ap);if(t){let{register:n,...r}=t;e=Ld(r,e),n()}return tp(t,e.ref),e}(e),y=c(null);y.current={onPress:t,onPressChange:n,onPressStart:s,onPressEnd:l,onPressUp:u,isDisabled:d,shouldCancelOnPointerExit:m};let[b,w]=r(!1),x=c({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:_,removeAllGlobalListeners:E}=Gd(),S=o(()=>{let e=x.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=y.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,w(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:s}=y.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),w(!1),a&&r&&!s&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=y.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(Rp(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),h||Pp(e.target))},i={onKeyDown(n){Lp(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(jp(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),_(document,"keyup",a,!1)))},onKeyUp(t){Lp(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Rp(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),d&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Op(o.nativeEvent)||(d||f||jd(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},a=t=>{if(e.isPressed&&Lp(t)){jp(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(Rp(e.target,t),"keyboard",e.target.contains(r)),E(),(e.target.contains(r)&&Fp(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail?e.pointerType="virtual":(Dp(n.target)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,d||f||jd(n.currentTarget),h||Ip(e.target),t(n,e.pointerType),_(document,"pointermove",a,!1),_(document,"pointerup",s,!1),_(document,"pointercancel",c,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Dp(e.target)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&Mp(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let a=r=>{r.pointerId===e.activePointerId&&(Mp(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Rp(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Rp(e.target,r),e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(r)))},s=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(Mp(t,e.target)?n(Rp(e.target,t),e.pointerType):e.isOverTarget&&n(Rp(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),h||Pp(e.target))},c=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Dp(n.target)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Op(n.nativeEvent)?"virtual":"mouse",d||f||jd(n.currentTarget),t(n,e.pointerType),_(document,"mouseup",a,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let a=t=>{0===t.button&&(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(Mp(t,e.target)?n(Rp(e.target,t),e.pointerType):e.isOverTarget&&n(Rp(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",d||f||jd(n.currentTarget),h||Ip(e.target),t(n,e.pointerType),_(window,"scroll",s,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=zp(r.nativeEvent,e.activePointerId);i&&Mp(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),y.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=zp(t.nativeEvent,e.activePointerId);o&&Mp(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,h||Pp(e.target),E()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let s=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i},[_,d,f,E,h]);return a(()=>()=>{h||Pp(x.current.target)},[h]),{isPressed:p||b,pressProps:Ld(v,S)}}function Fp(e){return"A"===e.tagName&&e.hasAttribute("href")}function Lp(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||Fp(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function zp(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Rp(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Mp(e,t){return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(t.getBoundingClientRect(),function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e))}function Dp(e){return!e.closest('[draggable="true"]')}function jp(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ap.displayName="PressResponderContext";const Hp=t.forwardRef(({children:e,...n},r)=>{let o=c();r=null!=r?r:o;let{pressProps:i}=Bp({...n,ref:r}),a=t.Children.only(e);return t.cloneElement(a,{ref:r,...Ld(a.props,i)})});kp({},"PressResponder",()=>Up);const Up=t.forwardRef(({children:e,...n},r)=>{let o=c(!1),s=i(Ap),l=Ld(s||{},{...n,ref:r||(null==s?void 0:s.ref),register(){o.current=!0,s&&s.register()}});return tp(s,r),a(()=>{o.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")},[]),t.createElement(Ap.Provider,{value:l},e)});function Vp(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}kp({},"useFocus",()=>Vp);var Kp={};kp(Kp,"isFocusVisible",()=>of),kp(Kp,"getInteractionModality",()=>af),kp(Kp,"setInteractionModality",()=>sf),kp(Kp,"useInteractionModality",()=>cf),kp(Kp,"useFocusVisible",()=>lf),kp(Kp,"useFocusVisibleListener",()=>uf);let $p=null,Wp=new Set,qp=!1,Yp=!1,Xp=!1;const Gp={Tab:!0,Escape:!0};function Jp(e,t){for(let n of Wp)n(e,t)}function Zp(e){Yp=!0,function(e){return!(e.metaKey||!fp()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&($p="keyboard",Jp("keyboard",e))}function Qp(e){$p="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Yp=!0,Jp("pointer",e))}function ef(e){Op(e)&&(Yp=!0,$p="virtual")}function tf(e){e.target!==window&&e.target!==document&&(Yp||Xp||($p="virtual",Jp("virtual",e)),Yp=!1,Xp=!1)}function nf(){Yp=!1,Xp=!0}function rf(){if("undefined"==typeof window||qp)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Yp=!0,e.apply(this,arguments)},document.addEventListener("keydown",Zp,!0),document.addEventListener("keyup",Zp,!0),document.addEventListener("click",ef,!0),window.addEventListener("focus",tf,!0),window.addEventListener("blur",nf,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",Qp,!0),document.addEventListener("pointermove",Qp,!0),document.addEventListener("pointerup",Qp,!0)):(document.addEventListener("mousedown",Qp,!0),document.addEventListener("mousemove",Qp,!0),document.addEventListener("mouseup",Qp,!0)),qp=!0}function of(){return"pointer"!==$p}function af(){return $p}function sf(e){$p=e,Jp(e,null)}function cf(){rf();let[e,t]=r($p);return a(()=>{let e=()=>{t($p)};return Wp.add(e),()=>{Wp.delete(e)}},[]),e}function lf(e={}){let{isTextInput:t,autoFocus:n}=e,[o,i]=r(n||of());return uf(e=>{i(e)},[t],{isTextInput:t}),{isFocusVisible:o}}function uf(e,t,n){rf(),a(()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Gp[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(of())};return Wp.add(t),()=>{Wp.delete(t)}},t)}function df(e){let t=c({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?rf():document.addEventListener("DOMContentLoaded",rf)),kp({},"useFocusWithin",()=>df),kp({},"useHover",()=>vf);let pf=!1,ff=0;function mf(){pf=!0,setTimeout(()=>{pf=!1},50)}function hf(e){"touch"===e.pointerType&&mf()}function gf(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",hf):document.addEventListener("touchend",mf),ff++,()=>{ff--,ff>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",hf):document.removeEventListener("touchend",mf))}}function vf(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:s}=e,[l,u]=r(!1),d=c({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;a(gf,[]);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=>{pf&&"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||pf||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:l}}function yf(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=c({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,a(()=>{if(r)return;let e=e=>{bf(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&bf(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&bf(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&bf(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}},[t,i,r])}function bf(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function wf(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function xf(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:wf(e.onKeyDown),onKeyUp:wf(e.onKeyUp)}}}function _f(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=c({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:s}=Gd();return{moveProps:o(()=>{let e={},o=()=>{Ip(),i.current.didMove=!1},c=(e,r,o,a)=>{0===o&&0===a||(i.current.didMove||(i.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:o,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},l=(e,t)=>{Pp(),i.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(c(e,"mouse",e.pageX-i.current.lastPosition.pageX,e.pageY-i.current.lastPosition.pageY),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(l(e,"mouse"),s(window,"mousemove",t,!1),s(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex(({identifier:e})=>e===i.current.id);if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];c(e,"touch",n-i.current.lastPosition.pageX,r-i.current.lastPosition.pageY),i.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex(({identifier:e})=>e===i.current.id)>=0&&(l(e,"touch"),i.current.id=null,s(window,"touchmove",r),s(window,"touchend",u),s(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=i.current.id)return;let{pageX:t,pageY:n,identifier:s}=e.changedTouches[0];o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:t,pageY:n},i.current.id=s,a(window,"touchmove",r,!1),a(window,"touchend",u,!1),a(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===i.current.id){let t=e.pointerType||"mouse";c(e,t,e.pageX-i.current.lastPosition.pageX,e.pageY-i.current.lastPosition.pageY),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===i.current.id){let r=e.pointerType||"mouse";l(e,r),i.current.id=null,s(window,"pointermove",t,!1),s(window,"pointerup",n,!1),s(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==i.current.id&&(o(),e.stopPropagation(),e.preventDefault(),i.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i.current.id=e.pointerId,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{o(),c(e,"keyboard",t,n),l(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e},[i,t,n,r,a,s])}}function Ef(e,t){let{onScroll:n,isDisabled:r}=e,o=d(e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))},[n]);xp(t,"wheel",r?null:o)}kp({},"useInteractOutside",()=>yf),kp({},"useKeyboard",()=>xf),kp({},"useMove",()=>_f),kp({},"useScrollWheel",()=>Ef),kp({},"useLongPress",()=>kf);const Sf=500;function kf(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Sf,accessibilityDescription:a}=e;const s=c(null);let{addGlobalListener:l,removeGlobalListener:u}=Gd(),{pressProps:d}=Bp({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null},i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{u(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:Ld(d,lp(o&&!t?a:null))}}function Cf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Tf={};function Nf(e){if("virtual"===af()){let t=document.activeElement;qd(()=>{document.activeElement===t&&document.contains(e)&&jd(e)})}else jd(e)}Cf(Tf,"FocusScope",()=>Af),Cf(Tf,"useFocusManager",()=>Bf),Cf(Tf,"getFocusableTreeWalker",()=>Vf),Cf(Tf,"createFocusManager",()=>Kf),Cf({},"focusSafely",()=>Nf);const If=t.createContext(null);let Pf=null,Of=new Map;function Af(e){let{children:n,contain:r,restoreFocus:o,autoFocus:s}=e,l=c(),u=c(),d=c([]),p=i(If),f=null==p?void 0:p.scopeRef;Id(()=>{let e=l.current.nextSibling,t=[];for(;e&&e!==u.current;)t.push(e),e=e.nextSibling;d.current=t},[n,f]),Id(()=>(Of.set(d,f),()=>{d!==Pf&&!jf(d,Pf)||f&&!Of.has(f)||(Pf=f),Of.delete(d)}),[d,f]),function(e,t){let n=c(),r=c(null);Id(()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==Pf)return;let n=document.activeElement,r=e.current;if(!Mf(n,r))return;let o=Vf(Rf(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&Hf(i,!0)},a=t=>{!Pf||jf(Pf,e)?(Pf=e,n.current=t.target):e!==Pf||Df(t.target,e)?e===Pf&&(n.current=t.target):n.current?n.current.focus():Pf&&Uf(Pf.current)},s=t=>{r.current=requestAnimationFrame(()=>{e!==Pf||Df(document.activeElement,e)||(Pf=e,n.current=t.target,n.current.focus())})};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach(e=>e.addEventListener("focusin",a,!1)),o.forEach(e=>e.addEventListener("focusout",s,!1)),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach(e=>e.removeEventListener("focusin",a,!1)),o.forEach(e=>e.removeEventListener("focusout",s,!1))}},[e,t]),a(()=>()=>cancelAnimationFrame(r.current),[r])}(d,r),function(e,t,n){const r=c("undefined"!=typeof document?document.activeElement:null);Id(()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!Mf(n,e.current))return;let r=Vf(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!Mf(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(Mf(i,e.current));t.preventDefault(),t.stopPropagation(),i?Hf(i,!0):function(e){for(let t of Of.keys())if(Mf(e,t.current))return!0;return!1}(o)?Hf(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&Mf(document.activeElement,e.current)&&requestAnimationFrame(()=>{document.body.contains(o)&&Hf(o)})}},[e,t,n])}(d,o,r),function(e,n){const r=t.useRef(n);a(()=>{r.current&&(Pf=e,Mf(document.activeElement,Pf.current)||Uf(e.current)),r.current=!1},[])}(d,s);let m=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,c=Vf(Rf(n),{tabbable:o},n);c.currentNode=Mf(a,n)?a:s;let l=c.nextNode();return!l&&i&&(c.currentNode=s,l=c.nextNode()),l&&Hf(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,c=Vf(Rf(n),{tabbable:o},n);c.currentNode=Mf(a,n)?a:s;let l=c.previousNode();return!l&&i&&(c.currentNode=s,l=c.previousNode()),l&&Hf(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Vf(Rf(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&Hf(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Vf(Rf(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&Hf(i,!0),i}}}(d);return t.createElement(If.Provider,{value:{scopeRef:d,focusManager:m}},t.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:l}),n,t.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:u}))}function Bf(){var e;return null===(e=i(If))||void 0===e?void 0:e.focusManager}const Ff=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Lf=Ff.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ff.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const zf=Ff.join(':not([hidden]):not([tabindex="-1"]),');function Rf(e){return e[0].parentElement}function Mf(e,t){return t.some(t=>t.contains(e))}function Df(e,t){for(let n of Of.keys())if((n===t||jf(t,n))&&Mf(e,n.current))return!0;return!1}function jf(e,t){let n=Of.get(t);return!!n&&(n===e||jf(e,n))}function Hf(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{Nf(e)}catch(e){}}function Uf(e){let t=e[0].previousElementSibling,n=Vf(Rf(e),{tabbable:!0},e);n.currentNode=t,Hf(n.nextNode())}function Vf(e,t,n){let r=(null==t?void 0:t.tabbable)?zf:Lf,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&function e(t,n){return"#comment"!==t.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(t)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(t,n)&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!n||Mf(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function Kf(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Vf(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let c=s.nextNode();return!c&&i&&(s.currentNode=n,c=s.nextNode()),c&&Hf(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Vf(n,{tabbable:o});if(!n.contains(a)){let e=$f(s);return e&&Hf(e,!0),e}s.currentNode=a;let c=s.previousNode();return!c&&i&&(s.currentNode=n,c=$f(s)),c&&Hf(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Vf(n,{tabbable:r}).nextNode();return o&&Hf(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=$f(Vf(n,{tabbable:r}));return o&&Hf(o,!0),o}}}function $f(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Wf(e={}){let{autoFocus:t=!1,isTextInput:n,within:o}=e,i=c({isFocused:!1,isFocusVisible:t||of()}).current,[a,s]=r(!1),[l,u]=r(()=>i.isFocused&&i.isFocusVisible),d=()=>u(i.isFocused&&i.isFocusVisible),p=e=>{i.isFocused=e,s(e),d()};uf(e=>{i.isFocusVisible=e,d()},[],{isTextInput:n});let{focusProps:f}=Vp({isDisabled:o,onFocusChange:p}),{focusWithinProps:m}=df({isDisabled:!o,onFocusWithinChange:p});return{isFocused:a,isFocusVisible:i.isFocused&&l,focusProps:o?m:f}}function qf(e){let{children:n,focusClass:r,focusRingClass:o}=e,{isFocused:i,isFocusVisible:a,focusProps:s}=Wf(e),c=t.Children.only(n);return t.cloneElement(c,Ld(c.props,{...s,className:wd({[r||""]:i,[o||""]:a})}))}Cf({},"FocusRing",()=>qf),Cf({},"useFocusRing",()=>Wf);var Yf={};Cf(Yf,"FocusableProvider",()=>Jf),Cf(Yf,"useFocusable",()=>Zf);let Xf=t.createContext(null);function Gf(e,n){let{children:r,...o}=e,i={...o,ref:n};return t.createElement(Xf.Provider,{value:i},r)}let Jf=t.forwardRef(Gf);function Zf(e,t){let{focusProps:n}=Vp(e),{keyboardProps:r}=xf(e),o=Ld(n,r),s=function(e){let t=i(Xf)||{};tp(t,e);let{ref:n,...r}=t;return r}(t),l=e.isDisabled?{}:s,u=c(e.autoFocus);return a(()=>{u.current&&t.current&&t.current.focus(),u.current=!1},[]),{focusableProps:Ld({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}var Qf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},em=e.createContext&&e.createContext(Qf),tm=function(){return(tm=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}).apply(this,arguments)};function nm(t){return function(n){return e.createElement(rm,tm({attr:tm({},t.attr)},n),function t(n){return n&&n.map((function(n,r){return e.createElement(n.tag,tm({key:r},n.attr),t(n.child))}))}(t.child))}}function rm(t){var n=function(n){var r,o=t.size||n.size||"1em";n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className);var i=t.attr,a=t.title,s=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&&(n[r[o]]=e[r[o]])}return n}(t,["attr","title"]);return e.createElement("svg",tm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:tm({color:t.color||n.color},n.style,t.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==em?e.createElement(em.Consumer,null,(function(e){return n(e)})):n(Qf)}var om=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};om.displayName="MdAspectRatio";var im=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}}]})(e)};im.displayName="MdExitToApp";var am=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};am.displayName="MdLabel";var sm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}}]})(e)};sm.displayName="MdOpenInNew";var cm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 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"}}]})(e)};cm.displayName="MdSearch";var lm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};lm.displayName="MdVideocam";var um=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.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)};um.displayName="MdVolumeUp";var dm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}}]})(e)};dm.displayName="MdSort";var pm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};pm.displayName="MdInsertDriveFile";var fm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};fm.displayName="MdInsertPhoto";var mm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};mm.displayName="MdPhotoCamera";var hm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};hm.displayName="MdPhotoLibrary";var gm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}}]})(e)};gm.displayName="MdTune";var vm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)};vm.displayName="MdArrowDropDown";var ym=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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 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"}}]})(e)};ym.displayName="MdCancel";var bm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}}]})(e)};bm.displayName="MdCheck";var wm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}}]})(e)};wm.displayName="MdChevronLeft";var xm=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}}]})(e)};xm.displayName="MdChevronRight";var _m=function(e){return nm({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{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)};_m.displayName="MdClose";var Em={exports:{}};
|
|
22
|
+
/*!
|
|
23
|
+
Copyright (c) 2018 Jed Watson.
|
|
24
|
+
Licensed under the MIT License (MIT), see
|
|
25
|
+
http://jedwatson.github.io/classnames
|
|
26
|
+
*/!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Em);var Sm=Em.exports,km=!1;if("undefined"!=typeof window){var Cm={get passive(){km=!0}};window.addEventListener("testPassive",null,Cm),window.removeEventListener("testPassive",null,Cm)}var Tm="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),Nm=[],Im=!1,Pm=-1,Om=void 0,Am=void 0,Bm=function(e){return Nm.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},Fm=function(e){var t=e||window.event;return!!Bm(t.target)||t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1)};function Lm(){return(Lm=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)}var zm=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:Sm(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"})))},Rm="undefined"!=typeof window,Mm=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'];function Dm(e){return null===e.offsetParent||"hidden"===getComputedStyle(e).visibility}function jm(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 Hm(e){for(var t=document.activeElement,n=e.querySelectorAll(Mm.join(",")),r=[],o=0;o<n.length;o++){var i=n[o];(t===i||!i.disabled&&Um(i)>-1&&!Dm(i)&&jm(i))&&r.push(i)}return r}function Um(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:t}var Vm=function(e){var t=e.container,n=e.initialFocusRef,r=c();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=Hm(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(Rm&&document.addEventListener("keydown",e),Rm&&(null==t?void 0:t.current)){var o=function(){-1!==Mm.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=Hm(t.current);i[0]&&(o(),i[0].focus())}}return function(){var t;Rm&&(document.removeEventListener("keydown",e),null==(t=r.current)||t.focus())}}),[t,n]),null},Km=[],$m={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"},Wm=t.forwardRef((function(e,n){var o,i,s,l,u=e.open,d=e.center,p=e.blockScroll,m=void 0===p||p,h=e.closeOnEsc,g=void 0===h||h,v=e.closeOnOverlayClick,y=void 0===v||v,b=e.container,w=e.showCloseIcon,x=void 0===w||w,_=e.closeIconId,E=e.closeIcon,S=e.focusTrapped,k=void 0===S||S,C=e.initialFocusRef,T=void 0===C?void 0:C,N=e.animationDuration,I=void 0===N?300:N,P=e.classNames,O=e.styles,A=e.role,B=void 0===A?"dialog":A,F=e.ariaDescribedby,L=e.ariaLabelledby,z=e.modalId,R=e.onClose,M=e.onEscKeyDown,D=e.onOverlayClick,j=e.onAnimationEnd,H=e.children,U=e.reserveScrollBarGap,V=function(e){const n=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);return t.useEffect(()=>{e&&("function"==typeof e?e(n.current):e.current=n.current)}),n}(n),K=c(null),$=c(null),W=c(null);null===W.current&&Rm&&(W.current=document.createElement("div"));var q=r(!1),Y=q[0],X=q[1];!function(e,t){a((function(){return t&&(n=e,Km.push(n)),function(){var t;t=e,Km=Km.filter((function(e){return e!==t}))};var n}),[t,e])}(K,u),function(e,t,n,r,o){var i=c(null);a((function(){return t&&e.current&&r&&(i.current=e.current,function(e,t){if(e){if(!Nm.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};Nm=[].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)}(Nm),[n]),Tm?(e.ontouchstart=function(e){1===e.targetTouches.length&&(Pm=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-Pm;!Bm(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?Fm(e):e.stopPropagation())}(t,e)},Im||(document.addEventListener("touchmove",Fm,km?{passive:!1}:void 0),Im=!0)):function(e){if(void 0===Am){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(Am=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===Om&&(Om=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)?(Nm=Nm.filter((function(t){return t.targetElement!==e})),Tm?(e.ontouchstart=null,e.ontouchmove=null,Im&&0===Nm.length&&(document.removeEventListener("touchmove",Fm,km?{passive:!1}:void 0),Im=!1)):Nm.length||(void 0!==Am&&(document.body.style.paddingRight=Am,Am=void 0),void 0!==Om&&(document.body.style.overflow=Om,Om=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[t,n,e,r,o])}(K,u,Y,m,U);var G=function(e){var t;27===e.keyCode&&(t=K,Km.length&&Km[Km.length-1]===t)&&(null==M||M(e),g&&R())};a((function(){return function(){Y&&(W.current&&!b&&document.body.contains(W.current)&&document.body.removeChild(W.current),document.removeEventListener("keydown",G))}}),[Y]),a((function(){u&&!Y&&(X(!0),!W.current||b||document.body.contains(W.current)||document.body.appendChild(W.current),document.addEventListener("keydown",G))}),[u]);var J=function(){$.current=!1},Z=b||W.current,Q=u?null!=(o=null==P?void 0:P.overlayAnimationIn)?o:$m.overlayAnimationIn:null!=(i=null==P?void 0:P.overlayAnimationOut)?i:$m.overlayAnimationOut,ee=u?null!=(s=null==P?void 0:P.modalAnimationIn)?s:$m.modalAnimationIn:null!=(l=null==P?void 0:P.modalAnimationOut)?l:$m.modalAnimationOut;return Y&&Z?f.createPortal(t.createElement("div",{className:Sm($m.root,null==P?void 0:P.root),style:null==O?void 0:O.root,"data-testid":"root"},t.createElement("div",{className:Sm($m.overlay,null==P?void 0:P.overlay),"data-testid":"overlay","aria-hidden":!0,style:Lm({animation:Q+" "+I+"ms"},null==O?void 0:O.overlay)}),t.createElement("div",{ref:K,className:Sm($m.modalContainer,d&&$m.modalContainerCenter,null==P?void 0:P.modalContainer),style:null==O?void 0:O.modalContainer,"data-testid":"modal-container",onClick:function(e){null===$.current&&($.current=!0),$.current?(null==D||D(e),y&&R(),$.current=null):$.current=null}},t.createElement("div",{ref:V,className:Sm($m.modal,null==P?void 0:P.modal),style:Lm({animation:ee+" "+I+"ms"},null==O?void 0:O.modal),onMouseDown:J,onMouseUp:J,onClick:J,onAnimationEnd:function(){u||X(!1),null==j||j()},id:z,role:B,"aria-modal":"true","aria-labelledby":L,"aria-describedby":F,"data-testid":"modal",tabIndex:-1},k&&t.createElement(Vm,{container:V,initialFocusRef:T}),H,x&&t.createElement(zm,{classes:$m,classNames:P,styles:O,closeIcon:E,onClick:R,id:_})))),Z):null}));const qm={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)",blue400:"var(--blue400)",blue300:"var(--blue300)",blue200:"var(--blue200)",blue100:"var(--blue100)",red400:"var(--red400)",red500:"var(--red500)",red600:"var(--red600)",red700:"var(--red700)",yellow500:"var(--yellow500)",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)",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)",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)"},Ym=Wu(["color:",";font-size:",";font-family:",";line-height:",";"],qm.colorText,qm.fontSizeBase,qm.brandFontStackBase,qm.lineHeightBase);ud.div.withConfig({displayName:"BaseStyles",componentId:"zvdl8u-0"})(["",""],Ym),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"BadgeStyled",componentId:"zvdl8u-1"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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?qm.spacing2:"6px",e=>e.isPillShaped?qm.radiusPill:qm.radiusMedium,qm.white,qm.fontSize50,e=>{if(!e.isSecondary&&e.color){const t={brand:qm.brandPrimary500,gray:qm.gray400,black:qm.gray900,blue:qm.blue500,red:qm.red400};return e.hasBorder?Wu(["border-color:",";color:",";"],t[e.color],t[e.color]):Wu(["background-color:",";"],t[e.color])}if(e.isSecondary)return Wu(["border-color:",";background-color:",";color:",";"],e.hasBorder?qm.gray100:"transparent",e.hasBorder?qm.white:qm.gray100,qm.gray800)}),ud.div.withConfig({displayName:"IconHolder",componentId:"zvdl8u-2"})(["display:flex;align-items:center;height:100%;margin-right:",";margin-left:calc("," * -1);svg{width:18px;height:18px;}"],e=>e.isSmall?qm.spacing1:qm.spacing2,qm.spacing1),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Track1",componentId:"zvdl8u-3"})(["overflow:hidden;height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>"brand"===e.color?qm.brandPrimary500:`\n\t\t\t\tlinear-gradient(\n\t\t\t\t\t0deg,\n\t\t\t\t\trgb(${qm["white-rgb"]} / 30%),\n\t\t\t\t\trgb(${qm["white-rgb"]} / 30%)\n\t\t\t\t),\n\t\t\t\t${qm.gray100a}\n\t\t\t`);const Xm=ld(["to{transform:translateX(-40px);}"]),Gm=`rgb(${qm["white-rgb"]} / 0.15)`,Jm=`rgb(${qm["gray1000-rgb"]} / 0.15)`;ud.div.withConfig({displayName:"Fill2",componentId:"zvdl8u-4"})(["width:calc(100% + 60px);height:100%;background-image:linear-gradient( -45deg,"," 25%,"," 25%,"," 50%,"," 50%,"," 75%,"," 75%,"," );background-size:40px 40px;background-repeat:repeat-x;animation:"," 0.8s linear infinite;"],Gm,Jm,Jm,Gm,Gm,Jm,Jm,Xm);const Zm={paragraphS:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize75,qm.lineHeightText),paragraphM:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize100,qm.lineHeightText),paragraphL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize200,qm.lineHeightText),uiTextXS:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize50),uiTextS:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize75),uiTextM:Wu(["font-weight:normal;font-size:",";line-height:20px;"],qm.fontSize100),uiTextL:Wu(["font-weight:normal;font-size:",";line-height:24px;"],qm.fontSize200),headingXS:Wu(["font-weight:600;font-size:",";line-height:",";"],qm.fontSize100,qm.lineHeightHeading),headingS:Wu(["font-weight:600;font-size:",";line-height:",";"],qm.fontSize200,qm.lineHeightHeading),headingM:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize400,qm.lineHeightHeading),headingL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize600,qm.lineHeightHeading),headingXL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize800,qm.lineHeightHeading),headingXXL:Wu(["font-weight:normal;font-size:",";line-height:",";"],qm.fontSize1000,qm.lineHeightHeading)};ud.label.withConfig({displayName:"Container5",componentId:"zvdl8u-5"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;"],Zm.uiTextM,qm.spacing1,e=>!e.isDisabled&&"pointer"),ud.div.withConfig({displayName:"IndicatorPosition1",componentId:"zvdl8u-6"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]),ud.div.withConfig({displayName:"Indicator2",componentId:"zvdl8u-7"})(["position:relative;display:flex;align-items:center;justify-content: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:",";}"],qm.gray300,qm.radiusMedium,qm.focusRingWidth,qm.radiusMedium,e=>e.isFocusVisible&&Wu(["border-color:",";&::before{border-color:",";}"],qm.gray500,e.isChecked||e.isIndeterminate?qm.focusRingColorPrimary:qm.focusRingColorSecondary),e=>e.isChecked&&Wu(["border-color:transparent;background-color:",";fill:#fff;"],qm.blue500),e=>e.isIndeterminate&&Wu(["border-color:transparent;background-color:",";"],qm.blue500),e=>e.isDisabled&&Wu(["border-color:transparent;background-color:",";fill:",";"],qm.gray100,qm.gray500),".ds-checkbox__pointer-events-wrapper",".ds-checkbox__pointer-events-wrapper",e=>!e.isChecked&&!e.isIndeterminate&&!e.isDisabled&&`border-color: ${qm.gray500};`,e=>!e.isChecked&&!e.isIndeterminate||e.isDisabled?void 0:qm.blue600),ud.input.withConfig({displayName:"Input1",componentId:"zvdl8u-8"})(["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%);"]),ud.div.withConfig({displayName:"IndeterminateMark",componentId:"zvdl8u-9"})(["width:8px;height:2px;border-radius:",";background-color:",";"],qm.radiusPill,qm.white),ud.div.withConfig({displayName:"Label4",componentId:"zvdl8u-10"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?qm.gray400:qm.colorText),ud.div.withConfig({displayName:"GroupStyled",componentId:"zvdl8u-11"})(["margin:0;padding:"," 0;border:0;"],qm.spacing3),ud.div.withConfig({displayName:"HelperTextStyled",componentId:"zvdl8u-12"})([""," display:flex;align-items:center;margin-top:",";padding-top:",";color:",";"],Zm.uiTextS,qm.spacing2,e=>e.hasIcon?"2px":"0",e=>e.isInvalid?qm.red500:qm.gray600),ud.div.withConfig({displayName:"Icon2",componentId:"zvdl8u-13"})(["flex:none;align-self:flex-start;margin-top:-2px;margin-right:",";"],qm.spacing2),ud.label.withConfig({displayName:"LabelStyled",componentId:"zvdl8u-14"})([""," display:block;margin:0 0 ",";padding:0;border:none;color:",";"],Zm.uiTextM,qm.spacing3,qm.colorText),ud.span.withConfig({displayName:"SecondaryText",componentId:"zvdl8u-15"})(["color:",";"],qm.gray600),ud.span.withConfig({displayName:"Space",componentId:"zvdl8u-16"})(["display:inline-block;width:",";"],qm.spacing3),ud.div.withConfig({displayName:"RowStyled",componentId:"zvdl8u-17"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(10px,1fr));gap:",";"],qm.spacing4),ud.div.withConfig({displayName:"InputRowStyled",componentId:"zvdl8u-18"})(["display:flex;& > *{min-width:min-content;&:not(:first-child){margin-left:",";}}"],qm.spacing4),ud.ul.withConfig({displayName:"List",componentId:"zvdl8u-19"})(["margin:0;padding:0;list-style:none;"]),ud.li.withConfig({displayName:"Item2",componentId:"zvdl8u-20"})(["&:not(:last-child){margin-bottom:",";}"],qm.spacing2);const Qm=ud.span.withConfig({displayName:"DeleteButton",componentId:"zvdl8u-21"})(["display:flex;align-items:center;justify-content: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:",";}"],qm.spacing3,qm.spacing3,qm.radiusCircle,e=>e.isDisabled?qm.gray400:qm.gray600,qm.gray50a,qm.gray800,qm.gray100a);ud.button.withConfig({displayName:"ChipStyled",componentId:"zvdl8u-22"})(["display:inline-flex;align-items:center;border:0;border-radius:",";background-color:",";color:",";outline:none;font-family:",";white-space:nowrap;",";",";",";",";",";"],qm.radiusPill,qm.gray50,qm.gray800,qm.brandFontStackBase,e=>e.onClick&&Wu(["cursor:pointer;&:hover{background-color:",";","{color:",";}}&:active{background-color:",";}"],qm.gray75,Qm,qm.gray800,qm.gray100),e=>e.isFocusVisible&&Wu(["background:",";box-shadow:inset ",";outline:0;"],qm.gray25,qm.elevationStatic),e=>"m"===e.size&&nh,e=>"s"===e.size&&th,e=>e.isDisabled&&rh);const eh=ud.div.withConfig({displayName:"ThumbnailContainer1",componentId:"zvdl8u-23"})(["display:block;"]),th=Wu([""," height:32px;padding:0 12px;","{margin:0 "," 0 calc("," * -1);}"],Zm.uiTextS,eh,qm.spacing3,qm.spacing3),nh=Wu([""," height:40px;padding:0 16px;","{margin:0 "," 0 calc("," * -1);}"],Zm.uiTextM,eh,qm.spacing3,qm.spacing4),rh=Wu(["background-color:",";color:",";pointer-events:none;"],qm.gray25,qm.gray400);function oh(e){if(!function(e){return/^#([\da-f]{3}){1,2}$/i.test(e)}(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)}`}ud.div.withConfig({displayName:"IconContainer1",componentId:"zvdl8u-24"})(["width:24px;height:24px;margin-left:calc("," * -1);padding:0 "," 0 0;"],qm.spacing2,qm.spacing3);const ih={"--white":"#ffffff","--white-rgb":oh("#ffffff"),"--gray1000":"#002233","--gray1000-rgb":oh("#002233"),"--gray900":"#1a3847","--gray800":"#334e5c","--gray700":"#4d6470","--gray600":"#667a85","--gray500":"#809199","--gray400":"#99a7ad","--gray300":"#b3bdc2","--gray200":"#ccd3d6","--gray100":"#e6e9eb","--gray75":"#ebedef","--gray50":"#f2f4f5","--gray25":"#f7f8f9","--gray10":"#ffffff","--blue1000":"#001f33","--blue900":"#003d66","--blue800":"#005c99","--blue700":"#007acc","--blue600":"#008ae6","--blue500":"#0099ff","--blue400":"#1aa3ff","--blue300":"#33adff","--blue200":"#80ccff","--blue100":"#ccebff","--red400":"#f45225","--red500":"#f23e0d","--red600":"#da380b","--red700":"#c2320a","--yellow500":"#fea900","--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","--teal400":"#64dbc3","--teal300":"#a6eadd","--teal200":"#d2f4ee","--teal100":"#f3fcfa","--brandPrimary700":"#0087e0","--brandPrimary600":"#0095eb","--brandPrimary500":"var(--userBrandPrimary500, #00aaff)","--brandPrimary500-rgb":oh("#00aaff"),"--brandPrimary300":"#b3e6ff","--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 Pro, SourceSansPro, system-ui, sans-serif","--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)","--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(--gray25)","--componentButtonCleanFillActive":"var(--gray75)","--componentButtonCleanFillFocus":"transparent","--componentButtonCleanFillDisabled":"transparent","--componentButtonCleanFocusRing":"0 0 0 3px var(--gray50a)"},ah={"--gray1000":"#ffffff","--gray1000-rgb":oh("#ffffff"),"--gray900":"#e6e9eb","--gray800":"#ccd3d6","--gray700":"#b3bdc2","--gray600":"#99a7ad","--gray500":"#809199","--gray400":"#667a85","--gray300":"#4d6470","--gray200":"#334e5c","--gray100":"#1a3847","--gray75":"#123141","--gray50":"#0d2d3d","--gray25":"#082939","--gray10":"#002233"},sh=cd`${Wu([":root,:host,.",",.","{","}.","{","}"],"ds-light-theme","ds-dark-theme",ch(ih),"ds-dark-theme",ch(ah))}`;function ch(e){return Object.entries(e).map(e=>e.join(":")).join(";")+";"}const lh={size:"24px",attr:{"aria-hidden":"true"},style:{verticalAlign:"middle"}};function uh({children:e,noTheme:n}){return t.createElement(em.Provider,{value:lh},!n&&t.createElement(sh,null),e)}ud.div.withConfig({displayName:"ArrowStyled",componentId:"zvdl8u-25"})(["margin-right:calc("," * -1);margin-left:calc("," * -1);"],qm.spacing2,qm.spacing2);const dh=s(({children:e,...n},r)=>t.createElement(ph,Object.assign({role:"menu",ref:r},n),e)),ph=ud.div.withConfig({displayName:"ContainerStyled",componentId:"zvdl8u-26"})(["z-index:1032;overflow-y:auto;box-sizing:border-box;min-width:224px;max-width:336px;max-height:calc(36px * 9.5 + ",");padding:"," 0;border-radius:",";background:",";box-shadow:",",",";"],qm.spacing3,qm.spacing3,qm.radiusBase,qm.gray10,qm.elevationStatic,qm.elevation2);ud.hr.withConfig({displayName:"DividerStyled",componentId:"zvdl8u-27"})(["box-sizing:content-box;height:1px;margin:0;padding:"," 0;border:none;background:",";background-clip:content-box;"],qm.spacing3,qm.gray50),ud.label.withConfig({displayName:"SwitchStyled",componentId:"zvdl8u-28"})([""," display:flex;align-items:baseline;margin:0;padding:"," 0;color:",";cursor:",";user-select:none;"],Zm.uiTextM,qm.spacing1,qm.gray800,e=>!e.isDisabled&&"pointer"),ud.span.withConfig({displayName:"Label2",componentId:"zvdl8u-29"})(["align-self:center;margin-right:",";"],qm.spacing4),ud.span.withConfig({displayName:"ToggleAlignment",componentId:"zvdl8u-30"})(["margin-left:auto;&::before{content:'\\200B';display:inline-block;vertical-align:middle;}"]);const fh=ud.span.withConfig({displayName:"Toggle",componentId:"zvdl8u-31"})(["position:relative;display:inline-block;vertical-align:middle;width:36px;height:22px;input{position:absolute;opacity:0;}"]);ud.span.withConfig({displayName:"Indicator1",componentId:"zvdl8u-32"})(["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:",";}",""],qm.radiusPill,e=>e.isDisabled?qm.gray100:qm.gray75,e=>!e.isDisabled&&"pointer",e=>e.isDisabled?qm.gray50:qm.gray10,qm.elevation2,fh,e=>e.isDisabled?qm.gray400:qm.blue500,e=>e.isDisabled?"0.5":"1",e=>e.isDisabled?qm.gray100:qm.gray10,e=>!e.isDisabled&&Wu(["",":active input + &::before{right:calc(100% - 24px);left:2px;border-radius:9px;}",":active input:checked + &::before{right:2px;left:calc(100% - 24px);}"],".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper"),".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",qm.gray100,".ds-switch__pointer-events-wrapper",".ds-switch__pointer-events-wrapper",e=>e.isDisabled?qm.gray400:qm.blue600,e=>e.isFocusVisible&&Wu([""," 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:",";}"],fh,qm.gray100,qm.gray200,fh,qm.blue500)),ud.div.withConfig({displayName:"ItemWrapper",componentId:"zvdl8u-33"})(["position:relative;"]);const mh=ud.button.withConfig({displayName:"ItemStyled",componentId:"zvdl8u-34"})([""," 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;}"],Zm.uiTextS,qm.spacing5,e=>e.isChecked?qm.gray800:qm.gray600,qm.brandFontStackBase,e=>e.isSubmenuOpen&&Wu(["background:",";color:",";"],qm.gray25,qm.gray800),e=>e.isFocusVisible&&Wu(["background:",";color:",";"],qm.gray50,qm.gray800),qm.gray25,qm.gray800,qm.gray50,qm.gray800,qm.gray400);function hh({children:e,direction:n="row",wrap:r="nowrap",justifyContent:o="flex-start",alignItems:i="stretch",gap:a,...s}){return t.createElement(gh,Object.assign({},s),t.createElement(vh,{direction:n,wrap:r,justifyContent:o,alignItems:i,gap:a},e))}ud.span.withConfig({displayName:"CheckboxContainer",componentId:"zvdl8u-35"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],qm.spacing3),ud.span.withConfig({displayName:"Icon1",componentId:"zvdl8u-36"})(["display:flex;flex:none;align-items:center;justify-content:center;width:24px;height:24px;margin-right:",";"],qm.spacing3),ud.span.withConfig({displayName:"Label1",componentId:"zvdl8u-37"})(["flex:1;overflow:hidden;min-width:0;text-align:left;text-overflow:ellipsis;white-space:nowrap;"]),ud.span.withConfig({displayName:"RightContainer",componentId:"zvdl8u-38"})(["flex:none;margin:0 ",";&:last-child{margin-right:calc("," * -1);}"],qm.spacing3,qm.spacing2),ud.span.withConfig({displayName:"SubmenuIconContainer",componentId:"zvdl8u-39"})(["flex:none;margin-right:calc("," * -1);margin-left:",";color:",";",":hover,",":active{color:",";}"],qm.spacing3,qm.spacing3,e=>e.isActive?qm.gray400:qm.gray200,mh,mh,qm.gray400),ud(dh).withConfig({displayName:"SubMenuContainer",componentId:"zvdl8u-40"})(["margin-top:calc("," * -1);"],qm.spacing3),ud.div.withConfig({displayName:"SectionTitleStyled",componentId:"zvdl8u-41"})([""," overflow:hidden;padding:"," "," ",";color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextS,qm.spacing4,qm.spacing5,qm.spacing3,qm.gray800),ud.span.withConfig({displayName:"Text1",componentId:"zvdl8u-42"})(["width:100%;text-align:left;"]);const gh=ud.div.withConfig({displayName:"Wrapper",componentId:"zvdl8u-43"})(["display:flex;"]),vh=ud.div.withConfig({shouldForwardProp:(e,t)=>!["direction","wrap"].includes(e)&&t(e)}).withConfig({displayName:"Container3",componentId:"zvdl8u-44"})(["display:flex;flex-direction:",";flex-wrap:",";align-items:",";justify-content:",";box-sizing:border-box;width:100%;height:100%;",""],e=>e.direction,e=>e.wrap,e=>e.alignItems,e=>e.justifyContent,e=>{if(!e.gap)return null;const t=qm["spacing"+e.gap];return Wu(["width:calc(100% + calc("," + 1px));height:calc(100% + ",");margin-bottom:calc("," * -1);margin-left:calc("," * -1);&& > *{margin-bottom:",";margin-left:",";}"],t,t,t,t,t,t)}),yh=ud.button.withConfig({displayName:"ButtonStyled",componentId:"zvdl8u-45"})(["display:inline-flex;vertical-align:middle;flex-wrap:nowrap;align-items:center;justify-content: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;}"," ",";",""],qm.brandRadiusBase,qm.fontSizeBase,qm.brandFontStackBase,qm.lineHeightBase,e=>e.isFullWidth&&"width: 100%;",e=>e.isSmall?Wu(["height:32px;padding:0 ",";font-size:",";line-height:20px;"],qm.spacing4,qm.fontSize75):Wu(["height:40px;padding:0 ",";"],qm.spacing5),e=>{if("primary"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonPrimaryBorderActive,qm.componentButtonPrimaryFillActive,qm.componentButtonPrimaryColorActive);return Wu(["border-color:transparent;background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],qm.componentButtonPrimaryFill,qm.componentButtonPrimaryColor,e.isPressed&&t,qm.componentButtonPrimaryBorderHover,qm.componentButtonPrimaryFillHover,qm.componentButtonPrimaryColorHover,qm.elevation1,t,e.isFocusVisible&&Wu(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonPrimaryFillFocus,qm.componentButtonPrimaryColorFocus,qm.componentButtonPrimaryBorderFocus,qm.componentButtonPrimaryFocusRing),qm.componentButtonPrimaryBorderDisabled,qm.componentButtonPrimaryFillDisabled,qm.componentButtonPrimaryColorDisabled)}if("secondary"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonSecondaryBorderActive,qm.componentButtonSecondaryFillActive,qm.componentButtonSecondaryColorActive);return Wu(["border-color:",";background-color:",";color:",";"," &:hover{border-color:",";background-color:",";color:",";box-shadow:",";}&:active{","}"," &:disabled{border-color:",";background-color:",";color:",";box-shadow:none;}"],qm.componentButtonSecondaryBorder,qm.componentButtonSecondaryFill,qm.componentButtonSecondaryColor,e.isPressed&&t,qm.componentButtonSecondaryBorderHover,qm.componentButtonSecondaryFillHover,qm.componentButtonSecondaryColorHover,qm.elevation1,t,e.isFocusVisible&&Wu(["background-color:",";color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonSecondaryFillFocus,qm.componentButtonSecondaryColorFocus,qm.componentButtonSecondaryBorderFocus,qm.componentButtonSecondaryFocusRing),qm.componentButtonSecondaryBorderDisabled,qm.componentButtonSecondaryFillDisabled,qm.componentButtonSecondaryColorDisabled)}if("clean"===e.variant){const t=Wu(["border-color:",";background-color:",";color:",";box-shadow:none;"],qm.componentButtonCleanBorderActive,qm.componentButtonCleanFillActive,qm.componentButtonCleanColorActive);return Wu(["background-color:",";color:",";"," &:hover{background-color:",";color:",";box-shadow:none;}&:active{","}"," &:disabled{background-color:",";color:",";}"],qm.componentButtonCleanFill,qm.componentButtonCleanColor,e.isPressed&&t,qm.componentButtonCleanFillHover,qm.componentButtonCleanColorHover,t,e.isFocusVisible&&Wu(["color:",";&,&:hover{border-color:",";box-shadow:",";}"],qm.componentButtonCleanColorFocus,qm.componentButtonCleanBorderFocus,qm.componentButtonCleanFocusRing),qm.componentButtonCleanFillDisabled,qm.componentButtonCleanColorDisabled)}return""}),bh=ud.div.withConfig({displayName:"Icon",componentId:"zvdl8u-46"})(["display:flex;align-items:center;height:100%;"]),wh=ud(bh).withConfig({displayName:"LeftIcon",componentId:"zvdl8u-47"})(["margin-right:",";margin-left:calc("," * -1);"],e=>e.lastChild?`calc(${qm.spacing2} * -1) `:qm.spacing3,qm.spacing2),xh=ud(bh).withConfig({displayName:"RightIcon",componentId:"zvdl8u-48"})(["margin-right:calc("," * -1);margin-left:",";"],qm.spacing2,qm.spacing3);function _h(){return t.createElement(kh,{viewBox:"0 0 24 24","aria-hidden":"true"},t.createElement(Ch,{cx:"12",cy:"12",r:"8",fill:"none",strokeWidth:"3"}))}const Eh=ld(["100%{transform:rotate(360deg);}"]),Sh=ld(["0%{stroke-dasharray:1,100;stroke-dashoffset:0;}50%{stroke-dasharray:80,100;stroke-dashoffset:-20;}100%{stroke-dasharray:80,100;stroke-dashoffset:-48;}"]),kh=ud.svg.withConfig({displayName:"Svg",componentId:"zvdl8u-49"})(["width:24px;height:24px;animation:"," 1s linear infinite;"],Eh),Ch=ud.circle.withConfig({displayName:"Circle",componentId:"zvdl8u-50"})(["stroke:currentColor;animation:"," 1.5s ease-in-out infinite;stroke-linecap:round;"],Sh),Th=s(({children:e,variant:n="secondary",isSmall:r=!1,icon:o,rightIcon:i,isDisabled:a=!1,isLoading:s=!1,type:c="button",...l},u)=>{const{isFocusVisible:d,focusProps:p}=Wf();return t.createElement(yh,Object.assign({variant:n,isSmall:r,disabled:s||a,type:c,as:l.href?"a":"button",isFocusVisible:d,ref:u},p,l),s?t.createElement(t.Fragment,null,t.createElement(wh,{"data-testid":"ds-button-loading-icon"},t.createElement(_h,null)),e):t.createElement(t.Fragment,null,o&&t.createElement(wh,{lastChild:!e},o),e,i&&t.createElement(xh,null,i)))}),Nh=cd`${Wu(["@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.5;transform:scale(0.95);}}.",",.","{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1031;}.","{background:",";}.","{display:flex;align-items:flex-start;overflow-x:hidden;overflow-y:auto;padding:",";}.","{position:relative;display:flex;flex-direction:column;align-items:stretch;box-sizing:border-box;width:520px;margin:auto;border-radius:",";background:",";box-shadow:",";",";}.","{width:100%;height:100%;min-height:0;}"],"b-modal-overlay-in","b-modal-overlay-out","b-modal-container-in","b-modal-container-out","b-modal__overlay","b-modal__container","b-modal__overlay",qm.gray200a,"b-modal__container",qm.spacing6,"b-modal__modal",qm.radiusBase,qm.gray10,qm.elevation8,Ym,"b-modal__modal--full-screen")}`,Ih=ud.div.withConfig({displayName:"HeaderStyled",componentId:"zvdl8u-51"})(["display:flex;flex:none;align-items:center;box-sizing:border-box;height:72px;padding:"," ",";",""],qm.spacing4,qm.spacing6,e=>!e.hideCloseIcon&&Wu(["padding-right:calc( "," + 50px + "," );"],qm.spacing4,qm.spacing6)),Ph=ud.div.withConfig({displayName:"BackButton",componentId:"zvdl8u-52"})(["margin-right:",";margin-left:calc("," * -1);"],qm.spacing4,qm.spacing4),Oh=ud.div.withConfig({displayName:"ModalThumbnail",componentId:"zvdl8u-53"})(["margin-right:",";"],qm.spacing4),Ah=ud.div.withConfig({displayName:"Headings",componentId:"zvdl8u-54"})(["flex:1;min-width:0;"]),Bh=ud.h2.withConfig({displayName:"Title2",componentId:"zvdl8u-55"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextL,qm.colorText),Fh=ud.h3.withConfig({displayName:"SecondaryInformation",componentId:"zvdl8u-56"})([""," overflow:hidden;margin:0;color:",";text-overflow:ellipsis;white-space:nowrap;"],Zm.uiTextS,qm.gray500),Lh=ud.div.withConfig({displayName:"ContentStyled",componentId:"zvdl8u-57"})(["flex:1 1 auto;min-height:0;",""],e=>e.scrollable&&Wu(["position:relative;&::before,&::after{content:'';position:absolute;left:0;display:block;width:100%;height:6px;}&::before{top:0;z-index:1;background:linear-gradient(to bottom,",",transparent);}&::after{bottom:0;background:linear-gradient(to top,",",transparent);}"],qm.colorShadow,qm.colorShadow)),zh=ud.div.withConfig({displayName:"ContentInner",componentId:"zvdl8u-58"})(["box-sizing:border-box;padding:"," ",";"," ",""],qm.spacing5,qm.spacing6,Ym,e=>e.scrollable&&Wu(["position:relative;overflow-x:hidden;overflow-y:auto;height:100%;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);background:linear-gradient( to top,",","," 50%,rgb(255 255 255 / 0) );}"],qm.spacing5,qm.spacing5,qm.spacing6,qm.gray10,qm.gray10,qm.spacing6,qm.spacing5,qm.gray10,qm.gray10)),Rh=ud.div.withConfig({displayName:"ContentExpander",componentId:"zvdl8u-59"})(["min-height:100%;"]),Mh=ud.div.withConfig({displayName:"FooterStyled",componentId:"zvdl8u-60"})(["display:flex;flex:none;padding:",";"],qm.spacing6),Dh=ud.div.withConfig({displayName:"ActionsRight",componentId:"zvdl8u-61"})(["margin-left:auto;"]),jh=ud.div.withConfig({displayName:"CloseButton",componentId:"zvdl8u-62"})(["position:absolute;top:",";right:",";"],qm.spacing5,qm.spacing4),Hh=t.createContext({fullScreen:!1,hideCloseIcon:!1});function Uh({isOpen:e,onClose:n,isFullScreen:r=!1,isCloseButtonHidden:o=!1,closeButtonTitle:i="Close",isClosedOnOverlayClick:a=!1,children:s,container:c}){const l={root:"b-modal",overlay:"b-modal__overlay",modalContainer:"b-modal__container",modal:"b-modal__modal "+(r?"b-modal__modal--full-screen":""),modalAnimationIn:"b-modal-container-in",modalAnimationOut:"b-modal-container-out",overlayAnimationIn:"b-modal-overlay-in",overlayAnimationOut:"b-modal-overlay-out"},u=!o;return t.createElement(Hh.Provider,{value:{fullScreen:r,hideCloseIcon:o}},t.createElement(Wm,{open:e,onClose:n,classNames:l,animationDuration:200,showCloseIcon:!1,closeOnEsc:u,closeOnOverlayClick:a,container:c},s,u&&t.createElement(jh,null,t.createElement(Th,{variant:"clean",icon:t.createElement(_m,null),"aria-label":i,title:i,onClick:n}))),t.createElement(Nh,null))}function Vh({isOpen:e,onClose:n,isFullScreen:r,isCloseButtonHidden:o,isClosedOnOverlayClick:i,closeButtonTitle:a,title:s,secondaryInfo:c,thumbnail:l,children:u,actionPrimary:d,actionSecondary:p,container:f}){return t.createElement(Uh,{isOpen:e,onClose:n,isClosedOnOverlayClick:i,isCloseButtonHidden:o,isFullScreen:r,closeButtonTitle:a,container:f},t.createElement(Uh.Header,{title:s,secondaryInfo:c,thumbnail:l}),t.createElement(Uh.Content,null,u),d&&t.createElement(Uh.Footer,{actionPrimary:d,actionSecondary:p}))}function Kh(e){return t.createElement(Vh,Object.assign({},e))}Uh.Header=function({title:e,secondaryInfo:n,thumbnail:r,backButton:o}){const{hideCloseIcon:a}=i(Hh);return t.createElement(Ih,{hideCloseIcon:a},o&&t.createElement(Ph,null,t.createElement(Th,Object.assign({variant:"clean",icon:t.createElement(wm,null),"aria-label":o.title},o))),r&&t.createElement(Oh,null,r),t.createElement(Ah,null,t.createElement(Bh,null,e),n&&t.createElement(Fh,null,n)))},Uh.Content=function({children:e}){const{fullScreen:n}=i(Hh);return t.createElement(Lh,{scrollable:n},t.createElement(zh,{scrollable:n},n?t.createElement(Rh,null,e):e))},Uh.Footer=function({actionPrimary:e,actionSecondary:n,actionTertiary:r}){return t.createElement(Mh,null,r,t.createElement(Dh,null,t.createElement(hh,{gap:"5"},n,e)))},ud.div.withConfig({displayName:"NotificationPositionStyled",componentId:"zvdl8u-63"})(["position:absolute;bottom:0;left:0;z-index:",";opacity:",";transition:all 0.2s ease-out;transform:translateY(","px) translate3d(0,",",0) translateX(",");will-change:transform,opacity;"],e=>e.isVisible?"9999":void 0,e=>e.isExists?"1":"0",e=>-1*e.offset,e=>e.isItJustAdded?"calc(100% + 16px)":"0",e=>e.isDismissed?"-100%":"0"),ud.div.withConfig({displayName:"NotificationsStyled",componentId:"zvdl8u-64"})(["position:fixed;bottom:",";left:",";z-index:9999;"],qm.spacing6,qm.spacing6),ud.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"ThumbnailContainer",componentId:"zvdl8u-65"})(["position:relative;overflow:hidden;border-radius:",";"," ",""],e=>"circle"===e.shape?qm.radiusCircle:qm.brandRadiusBase,e=>e.hasCheckers&&Wu(["background: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\");"]),e=>{const t={xs:"24px",s:"32px",m:"40px",l:"64px"}[e.size];return Wu(["width:",";height:",";"],t,t)}),ud.div.withConfig({displayName:"Fill1",componentId:"zvdl8u-66"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:50% 50% no-repeat;background-color:",";background-image:",";background-size:cover;color:",";"],e=>e.backgroundColor,e=>e.imageUrl?`url(${e.imageUrl}) `:void 0,e=>e.iconColor),ud.div.withConfig({shouldForwardProp:(e,t)=>!["shape"].includes(e)&&t(e)}).withConfig({displayName:"InnerShadow",componentId:"zvdl8u-67"})(["position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border:1px solid ",";border-radius:",";"],qm.gray100a,e=>"circle"===e.shape?qm.radiusCircle:qm.brandRadiusBase),ud.div.withConfig({displayName:"NoImage",componentId:"zvdl8u-68"})(["width:80%;height:2px;border-radius:2px;background:",";transform:rotate(-45deg);"],qm.red500),ud.div.withConfig({displayName:"BaloonStyled",componentId:"zvdl8u-69"})(["",";position:relative;display:flex;align-items:flex-start;overflow:hidden;box-sizing:border-box;width:480px;padding:",";border-radius:",";background:",";box-shadow:",",",";"],Ym,qm.spacing5,qm.radiusLarge,qm.white,qm.elevationStatic,qm.elevation2),ud.div.withConfig({displayName:"ThumbnailWrapper",componentId:"zvdl8u-70"})(["flex:none;margin-right:",";"],qm.spacing5),ud.div.withConfig({displayName:"Text",componentId:"zvdl8u-71"})(["flex:1;align-self:center;"]),ud.h2.withConfig({displayName:"Title1",componentId:"zvdl8u-72"})(["display:-webkit-box;overflow:hidden;margin:0;font:inherit;-webkit-line-clamp:3;-webkit-box-orient:vertical;"]),ud.p.withConfig({displayName:"Description",componentId:"zvdl8u-73"})(["display:-webkit-box;overflow:hidden;margin:"," 0 0;color:",";font-size:",";line-height:20px;-webkit-line-clamp:4;-webkit-box-orient:vertical;"],qm.spacing2,qm.gray500,qm.fontSize75),ud.div.withConfig({displayName:"Action",componentId:"zvdl8u-74"})(["flex:none;"]),ud.div.withConfig({displayName:"Progress1",componentId:"zvdl8u-75"})(["position:absolute;bottom:0;left:0;height:4px;background-color:",";transition:width 0.2s;"],qm.brandPrimary500),ud.div.withConfig({displayName:"Track",componentId:"zvdl8u-76"})(["height:4px;border-radius:",";background:",";"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>e.noBackground?"none":qm.gray100a),ud.div.withConfig({shouldForwardProp:(e,t)=>!["color"].includes(e)&&t(e)}).withConfig({displayName:"Fill",componentId:"zvdl8u-77"})(["max-width:100%;height:100%;border-radius:",";background:",";transition:width 0.2s ease-out;"],e=>e.noCornerRadius?"0":qm.radiusPill,e=>"brand"===e.color?qm.brandPrimary500:qm.gray600),ud.div.withConfig({displayName:"IndicatorPosition",componentId:"zvdl8u-78"})(["display:flex;flex:none;align-items:center;&::before{content:'';}"]);const $h=ud.div.withConfig({displayName:"Indicator",componentId:"zvdl8u-79"})(["position:relative;display:flex;align-items:center;justify-content: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-color:",";border-radius:",";}"," ",""],qm.gray300,qm.radiusCircle,qm.focusRingWidth,e=>e.isFocusVisible&&qm.focusRingColorPrimary,qm.radiusCircle,e=>e.isChecked&&Wu(["border-color:transparent;background-color:",";color:#fff;"],qm.blue500),e=>e.isDisabled&&Wu(["border-color:transparent;background-color:",";color:",";"],qm.gray100,qm.gray500));ud.div.withConfig({displayName:"IndicatorMark",componentId:"zvdl8u-80"})(["width:6px;height:6px;border-radius:",";background:currentColor;"],qm.radiusCircle),ud.input.withConfig({displayName:"Input",componentId:"zvdl8u-81"})(["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%);"]),ud.label.withConfig({displayName:"Container2",componentId:"zvdl8u-82"})([""," display:flex;align-items:flex-start;margin:0;padding:"," 0;cursor:",";user-select:none;&:hover ","{","}"],Zm.uiTextM,qm.spacing1,e=>!e.isDisabled&&"pointer",$h,e=>{if(!e.isDisabled)return e.isChecked?Wu(["background-color:",";"],qm.blue600):Wu(["border-color:",";"],qm.gray500)}),ud.div.withConfig({displayName:"Label",componentId:"zvdl8u-83"})(["display:block;margin-left:8px;color:",";"],e=>e.isDisabled?qm.gray400:qm.colorText),ud.aside.withConfig({displayName:"Container1",componentId:"zvdl8u-84"})(["overflow-y:auto;box-sizing:border-box;width:272px;height:100%;padding:"," 0;border-right:1px solid ",";background:",";"],qm.spacing5,qm.gray100,qm.white),ud.div.withConfig({displayName:"TooltipContainer",componentId:"zvdl8u-85"})([""," display:flex;max-width:240px;padding:calc("," / 2) ",";border-radius:",";background:",";color:",";"],Zm.uiTextS,qm.spacing4,qm.spacing4,qm.radiusBase,qm.gray900a,qm.gray10),ud.span.withConfig({displayName:"IconContainer",componentId:"zvdl8u-86"})(["display:flex;align-items:center;width:24px;height:24px;margin:-"," "," -"," -",";color:",";"],qm.spacing1,qm.spacing2,qm.spacing1,qm.spacing2,qm.gray400),ud.span.withConfig({displayName:"LabelContainer",componentId:"zvdl8u-87"})(["margin-right:",";color:",";"],qm.spacing2,qm.gray400),ud.div.withConfig({displayName:"VerticalLabelContainer",componentId:"zvdl8u-88"})(["color:",";"],qm.gray400),ud.div.withConfig({displayName:"LeftIconContainer",componentId:"zvdl8u-89"})(["margin-right:",";*{max-width:24px;max-height:24px;}"],qm.spacing4),ud.div.withConfig({displayName:"RightElementIcon",componentId:"zvdl8u-90"})(["margin-left:",";&:last-child{margin-right:calc("," * -1);}"],qm.spacing3,qm.spacing2);const Wh=ud.div.withConfig({displayName:"RightElementText",componentId:"zvdl8u-91"})(["display:flex;align-items:center;justify-content:flex-end;margin-left:",";color:",";text-align:right;"],qm.spacing4,qm.gray400);ud.div.withConfig({displayName:"RightElementsContainer",componentId:"zvdl8u-92"})(["display:flex;align-items:center;margin-left:auto;"]);const qh=Wu(["background-color:",";color:",";","{color:",";}"],qm.gray50,qm.gray800,Wh,qm.gray600);function Yh(e){var n;return t.createElement(Kh,{title:Zc("Send error report"),isOpen:e.isOpen,onClose:e.onCancel,actionPrimary:t.createElement(Jc,{kind:"Primary",title:Zc("Send report"),className:"ml-2",onClick:e.onDone},Zc("Send report")),actionSecondary:t.createElement(Jc,{"data-testid":"bla",kind:"Secondary",title:Zc("Cancel"),onClick:e.onCancel},Zc("Cancel")),container:e.container},t.createElement("div",{className:"leading-6"},Zc("We have created a report that you can send us to help us prevent this from happening in the future.")),t.createElement("div",{className:"my-4 flex-grow self-stretch bg-ui-400 rounded border border-ui-600 px-4 py-3 leading-6 overflow-scroll",style:{maxHeight:200},"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("span",{className:"text-body-400 text-sm leading-5"},Zc("We will treat this report as confidential and anonymous.")))}function Xh(e){var n=e.error,o=e.onRetry,i=Hc(),s=r(!1),c=s[0],l=s[1],u=r(!1),d=u[0],p=u[1];return a((function(){Mc.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(nl,{isReportSent:d,onClickSend:function(){l(!0)},onClickRetry:o}),t.createElement(Yh,{isOpen:c,error:n,container:i,onDone:function(){ds(n),l(!1),p(!0)},onCancel:function(){l(!1)}}))}function Gh(){var e=ci(xi()[0].page),n=e[0],r=e[1],o=Gc("w-6 h-6 -mx-1","ASC"===n.direction&&"flip-y"),i={ASC:Zc("Ascending"),DESC:Zc("Descending")},a={ASC:"DESC",DESC:"ASC"};return t.createElement(Jc,{kind:"FlatSm",title:i[n.direction],onClick:function(){r({field:n.field,direction:a[n.direction]})}},t.createElement(dm,{className:o}))}function Jh(e){var n=c(null),o=r(0)[1];!function(e,t){var n=Hc();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,n],e.onClickOutside),l((function(){o(null!==e.target.current?e.target.current.getBoundingClientRect().x:0)}),[e.target]);var i=Hc();if(null===i||null===e.target.current)return null;var s=e.target.current.getBoundingClientRect(),u=s.x,d=window.innerWidth,p={left:u+300>d?void 0:u,right:u+300>d?d-s.width-u:void 0,top:"Down"===e.direction?s.top+s.height:void 0,bottom:"Up"===e.direction?window.innerHeight-s.top:void 0},f=Gc("cv-root cv-dropdown select-none",e.className);return m(t.createElement("div",{role:"menu",id:e.id,className:f,style:p,ref:n},e.children),i)}function Zh(e){var n=e.buttonKind,i=void 0===n?"FlatSm":n,a=e.direction,s=void 0===a?"Down":a,l=pi(e,["buttonKind","direction"]),u=o((function(){return"dropdownmenu-"+Date.now()+"-"+Math.random().toString(36).substring(2)}),[]),d=r(!1),p=d[0],f=d[1],m=c(null),h=function(){return f((function(e){return!e}))},g=Gc(p&&"bg-ui-400 border-ui-700 text-body-500",l.buttonClassName);return t.createElement(t.Fragment,null,t.createElement(Jc,{kind:i,onClick:h,className:g,ref:m,isDisabled:l.disabled,"aria-haspopup":!0,"aria-expanded":p,"aria-controls":u},t.createElement("span",{className:"inline-flex items-center",title:l.alt},l.title),t.createElement(vm,{className:"w-6 h-6 ml-1 -mr-2"})),p&&t.createElement(Jh,{className:l.className,onClickOutside:h,direction:s,target:m,id:u},l.children(h)))}function Qh(e){var n=e.selected,r=void 0!==n&&n,o=pi(e,["selected"]),i=Gc("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(bm,{className:"w-6 h-6 ml-3 fade-in"})))}function eg(e){var n=e.options,r=void 0===n?["CREATED_AT","PUBLISHED_AT","UPDATED_AT","NAME"]:n,o=ci(xi()[0].page),i=o[0],a=o[1],s={CREATED_AT:Zc("Date added"),NAME:Zc("Name"),PUBLISHED_AT:Zc("Date published"),UPDATED_AT:Zc("Date modified")};return t.createElement(Zh,{className:"py-2",buttonClassName:"ml-auto",title:s[i.field],alt:Zc("Order by")},(function(e){return t.createElement("ul",null,r.map((function(n){return t.createElement(Qh,{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]))})))}))}function tg(e,t,n){return(1===e?t:n).replace("{}",e.toString())}function ng(e,t){t&&"Enter"===e.key&&(e.preventDefault(),t(e))}function rg(e){var n=e.alt,r=e.className,o=e.fadeIn,i=void 0===o||o,a=e.id,s=e.style,c=e.stacked,l=void 0!==c&&c,u=e.title,d=e.onClick,p=e.children,f=void 0===p?null:p,m=e.metaproperties,h=pi(e,["alt","className","fadeIn","id","style","stacked","title","onClick","children","metaproperties"]);return t.createElement("div",{className:Gc("m-2 w-56 self-start group relative rounded bg-ui-500 shadow transition-shadow\n\t\t\t\t cursor-pointer",i&&"fade-in-down",r),id:a,style:s,title:n,onClick:d,onKeyDown:function(e){return ng(e,d)},tabIndex:0,role:"option","aria-label":n,"aria-selected":h["aria-selected"],"data-testid":"asset-card"},t.createElement("div",{className:"overflow-hidden rounded"},t.createElement("div",{className:"flex h-32 relative"},f),t.createElement("div",{className:"p-3 bg-ui-0"},t.createElement("header",{className:"truncate"},u),!!(null==m?void 0:m.length)&&t.createElement("dl",{className:"pt-2 mt-2 border-t border-ui-600 text-body-400 text-sm"},m&&m.map((function(e){var n=e.label,r=e.options.map((function(e){return e.label})).join(", ");return t.createElement("div",{className:"flex flex-wrap pb-1",key:n},t.createElement("dt",{className:"text-body-300 pr-1"},n,":"),t.createElement("dd",{className:""},r))}))))),l&&t.createElement("div",{className:"absolute border-b rounded left-px right-px h-3 -bottom-0.75","data-testid":"stacked"}))}function og(e){var n=e.width,r=void 0===n?100:n,o=e.className;return t.createElement("span",{className:Gc("cv-skeleton",o),style:{width:r},"data-testid":"skeleton"},"")}function ig(e){return t.createElement(t.Fragment,null,Array(e.rows*e.columns).fill(void 0).map((function(n,r){return t.createElement(rg,{key:r,style:{animationDuration:Math.round(r/e.columns*200+500)+"ms"},title:t.createElement(t.Fragment,null,t.createElement(og,{width:70+ag(100,r),className:"h-4"}),e.title)})})))}function ag(e,t){return 16807*((t+20)%2147483647+2147483646)%2147483647%e}function sg(e){var n=e.title,o=e.onClick,i=e.active,a=e.className,s=e.children,c=pi(e,["title","onClick","active","className","children"]),l=r("None"),u=l[0],d=l[1],p=$c(),f=Gc("inline-flex p-0.5 items-center text-md text-body-400 select-none shadow shadow-overlay\n\t\t transition-color",i?"bg-brand-500 hover:bg-brand-600 text-ui-0":"bg-ui-0-.8 hover:bg-ui-0 hover:text-body-500",a),m=i||"None"!==u?qc(p,"Primary",u):void 0;return t.createElement("button",di({className:f,style:m,title:n,onClick:o,onMouseOver:function(){return d("Hover")},onFocus:function(){return d("Hover")},onMouseOut:function(){return d("None")},onBlur:function(){return d("None")},type:"button"},c),s)}function cg(e){return{tag:"ok",value:e}}function lg(e){return{tag:"error",error:e}}function ug(e){return"ok"===e.tag}function dg(e){return"error"===e.tag}function pg(e){return"https://"+e.replace(/^https?:\/\//i,"").replace(/\/+$/i,"")+"/"}ud.a.withConfig({displayName:"StyledNavItem",componentId:"zvdl8u-93"})(["&&{"," display:flex;align-items:center;box-sizing:border-box;width:100%;height:40px;margin:0;padding:"," ",";border:0;border-radius:",";background:none;color:",";outline:none;font-family:",";text-decoration:none;cursor:",";&:hover{background-color:",";color:",";","{color:",";}}&:active{","}"," "," ",";}"],Zm.uiTextM,qm.spacing3,qm.spacing4,qm.brandRadiusBase,qm.gray600,qm.brandFontStackBase,e=>e.disabled?"default":"pointer",qm.gray25,qm.gray800,Wh,qm.gray600,qh,e=>e.isSelected&&qh,e=>e.isFocusVisible&&Wu(["background-color:",";color:",";","{color:",";}"],qm.gray25,qm.gray800,Wh,qm.gray600),e=>e.disabled&&Wu(["background-color:inherit;color:",";pointer-events:none;","{color:",";}"],qm.gray400,Wh,qm.gray400)),ud.div.withConfig({displayName:"ItemTitle",componentId:"zvdl8u-94"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),ud.hr.withConfig({displayName:"Divider",componentId:"zvdl8u-95"})(["height:1px;margin:",";border:0;background-color:",";"],qm.spacing4,qm.gray50),ud.div.withConfig({displayName:"StyledTitleContainer",componentId:"zvdl8u-96"})(["",";display:flex;align-items:center;box-sizing:border-box;height:32px;padding:0 ",";color:",";"],Zm.uiTextS,qm.spacing4,qm.gray800),ud.div.withConfig({displayName:"StyledTitle",componentId:"zvdl8u-97"})(["overflow:hidden;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;"]),ud.div.withConfig({displayName:"Container",componentId:"zvdl8u-98"})(["margin:0 ",";"],qm.spacing5);var fg=new Map;function mg(e,t,n){return fi(this,void 0,void 0,(function(){var r,o,i,a,s,c;return mi(this,(function(l){switch(l.label){case 0:if(!n)return[2,lg("No authentication provided")];if("/"===(r=void 0!==n.accountDomain?pg(n.accountDomain.trim()):"https://"+window.location.host).charAt(r.length-1)&&(r=r.slice(0,-1)),o=r+":"+e+":"+JSON.stringify(t)+":"+n.accessToken,fg.has(o))return[2,cg(fg.get(o))];i={Accept:"application/json","Content-Type":"application/json","X-Bynder-Integration":"UCV/v2.6.1"},a=void 0===(null==n?void 0:n.accessToken)?i:di(di({},i),{Authorization:"Bearer "+n.accessToken}),s={method:"post",headers:a,body:JSON.stringify({query:e,variables:t})},l.label=1;case 1:return l.trys.push([1,4,,5]),[4,fetch(r+"/graphql",s)];case 2:return[4,l.sent().json()];case 3:return c=l.sent(),[3,5];case 4:return[2,lg(l.sent())];case 5:return void 0!==c.errors?[2,lg(c.errors.map((function(e){return e.message})).join(","))]:(fg.set(o,c.data),fg.size>50&&fg.delete(fg.keys().next().value),[2,cg(c.data)])}}))}))}function hg(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 gg(){var e=new Uint32Array(28),t=window.crypto.getRandomValues(e);return Array.from(t).map((function(e){return("0"+e.toString(16)).substr(-2)})).join("")}var vg="42b1eefa-d754-4802-b9c4-bf80d6ab6052",yg="https://d8ejoa1fys2rk.cloudfront.net/5.0.5/modules/compactview/loginCompleted.html",bg=["offline","asset:read","collection:read","meta.assetbank:read"];function wg(e,t,n){return fi(this,void 0,void 0,(function(){var r,o,i,a;return mi(this,(function(s){switch(s.label){case 0:r=xg(n)+"token",o=new URLSearchParams({client_id:vg,code_verifier:t,code:e,redirect_uri:yg,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,lg("Failed to fetch access token: "+i.status)];case 3:return[2,cg({refreshToken:(a=s.sent()).refresh_token,accessToken:a.access_token,expiresIn:a.expires_in})];case 4:return[2,lg(s.sent().toString())];case 5:return[2]}}))}))}function xg(e){return"webdam"===_g()?"https://apiv2.webdamdb.com/oauth2/":pg(e)+"v6/authentication/oauth2/"}function _g(){var e;return null!==(e=localStorage.getItem("cvp"))&&void 0!==e?e:void 0}function Eg(e){return fi(this,void 0,void 0,(function(){var t,n,r,o,i,a;return mi(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=700,width=570,left="+n+",top="+r))?[2,lg("Error opening login window")]:(o.document.head.innerHTML=Sg,o.document.body.innerHTML=kg,o.location.href=e,[4,Promise.race([new Promise((function(e){window.addEventListener("message",(function(t){"https://d8ejoa1fys2rk.cloudfront.net"===t.origin&&e(cg(t))}))})),new Promise((function(e){setTimeout((function(){return e(lg("Timeout"))}),6e5)})),(c=o,new Promise((function(e){var t=setInterval((function(){c.closed&&(clearInterval(t),e(lg("Login window closed")))}),1e3)})))])]);case 1:return dg(i=s.sent())?[2,i]:[2,cg({state:(a=new URLSearchParams(i.value.data)).get("state"),code:a.get("code")})]}var c}))}))}var Sg='\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>',kg='<div class="cv-spinner"></div>';function Cg(e){var n=Hc();return t.createElement(zu,{target:n,disableVendorPrefixes:!0},t.createElement(uh,null,e.children))}function Tg(e){var n=e.children,o=t.useRef(null),i=r(null),s=i[0],c=i[1];return a((function(){if(null!==o.current){var e,t=function(e){try{return e.attachShadow({mode:"open"})}catch(e){return null}}(o.current);Ng(null!=(e=t)?e:document.head,'@import url(https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/css/vendor/font-awesome.min.css);/*! 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}small{font-size:80%}img{border-style:none}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,dl,h1{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}input::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder{color:#a0aec0}input:-ms-input-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,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}}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.bg-brand-500{--bg-opacity:1;background-color:#0af;background-color:rgba(0,170,255,var(--bg-opacity))}.bg-ui-0{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.bg-ui-400{background-color:rgba(0,34,51,.03)}.bg-ui-500{background-color:rgba(0,34,51,.05)}.bg-ui-600{background-color:rgba(0,34,51,.1)}.bg-ui-800{background-color:rgba(0,34,51,.2)}.bg-ui-900{background-color:rgba(0,34,51,.35)}.bg-ui-0-\\.8{background-color:hsla(0,0%,100%,.8)}.focus-within\\:bg-ui-400:focus-within{background-color:rgba(0,34,51,.03)}.hover\\:bg-brand-600:hover{--bg-opacity:1;background-color:#008ed5;background-color:rgba(0,142,213,var(--bg-opacity))}.hover\\:bg-ui-0:hover{--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity))}.hover\\:bg-ui-400:hover{background-color:rgba(0,34,51,.03)}.focus\\:bg-ui-500:focus,.hover\\:bg-ui-500:hover{background-color:rgba(0,34,51,.05)}.active\\:bg-brand-700:active{--bg-opacity:1;background-color:#008dd5;background-color:rgba(0,141,213,var(--bg-opacity))}.active\\:bg-ui-700:active{background-color:rgba(0,34,51,.15)}.disabled\\:bg-ui-500:disabled{background-color:rgba(0,34,51,.05)}.border-transparent{border-color:transparent}.border-error{--border-opacity:1;border-color:#f4562b;border-color:rgba(244,86,43,var(--border-opacity))}.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)}.border-ui-700{border-color:rgba(0,34,51,.15)}.hover\\:border-ui-900:hover{border-color:rgba(0,34,51,.35)}.focus\\:border-ui-700:focus{border-color:rgba(0,34,51,.15)}.focus\\:border-ui-900:focus{border-color:rgba(0,34,51,.35)}.disabled\\:border-ui-500:disabled{border-color:rgba(0,34,51,.05)}.rounded{border-radius:5px}.rounded-full{border-radius:9999px}.border-2{border-width:2px}.border{border-width:1px}.border-t{border-top-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}.cursor-wait{cursor:wait}.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}.group:hover .group-hover\\:block{display:block}.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}.self-stretch{-ms-flex-item-align:stretch;align-self:stretch}.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}.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-3{height:12px}.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-16{height:64px}.h-20{height:80px}.h-32{height:128px}.h-40{height:160px}.h-2\\/4{height:50%}.h-full{height:100%}.text-xs{font-size:12px}.text-sm{font-size:14px}.text-base{font-size:16px}.text-xl{font-size:20px}.text-2xl{font-size:22px}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.m-2{margin:8px}.my-2{margin-top:8px;margin-bottom:8px}.mx-2{margin-left:8px;margin-right:8px}.my-4{margin-top:16px;margin-bottom:16px}.my-px{margin-top:1px;margin-bottom:1px}.-mx-1{margin-left:-4px;margin-right:-4px}.-my-2{margin-top:-8px;margin-bottom:-8px}.mt-1{margin-top:4px}.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}.mt-4{margin-top:16px}.mr-4{margin-right:16px}.mb-4{margin-bottom:16px}.mr-5{margin-right:20px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mb-8{margin-bottom:32px}.mt-10{margin-top:40px}.mr-auto{margin-right:auto}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.-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}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.disabled\\:opacity-60:disabled{opacity:.6}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.p-3{padding:12px}.p-4{padding:16px}.p-0\\.5{padding:2px}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.px-2{padding-left:8px;padding-right:8px}.py-3{padding-top:12px;padding-bottom:12px}.px-3{padding-left:12px;padding-right:12px}.py-4{padding-top:16px;padding-bottom:16px}.px-4{padding-left:16px;padding-right:16px}.px-6{padding-left:24px;padding-right:24px}.py-px{padding-top:1px;padding-bottom:1px}.pr-0{padding-right:0}.pl-0{padding-left:0}.pr-1{padding-right:4px}.pb-1{padding-bottom:4px}.pt-2{padding-top:8px}.pb-2{padding-bottom:8px}.pl-3{padding-left:12px}.pt-4{padding-top:16px}.pr-4{padding-right:16px}.pl-4{padding-left:16px}.pr-5{padding-right:20px}.pr-10{padding-right:40px}.pl-10{padding-left:40px}.placeholder-body-300::-webkit-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-moz-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300:-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::-ms-input-placeholder{color:rgba(0,34,51,.3)}.placeholder-body-300::placeholder{color:rgba(0,34,51,.3)}.disabled\\:pointer-events-none:disabled,.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{right:0;left:0}.inset-0,.inset-y-0{top:0;bottom:0}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.top-3{top:12px}.right-3{right:12px}.right-4{right:16px}.right-px{right:1px}.left-px{left:1px}.-bottom-0\\.75{bottom:-3px}.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-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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)}.shadow-fade-left{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.shadow-fade-right{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.shadow-footer{-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)}.shadow-overlay{-webkit-box-shadow:0 4px 10px 0 rgba(0,34,51,.1);box-shadow:0 4px 10px 0 rgba(0,34,51,.1)}.shadow-modal{-webkit-box-shadow:0 2px 12px 0 rgba(0,34,51,.1);box-shadow:0 2px 12px 0 rgba(0,34,51,.1)}.active\\:shadow-inner:active{-webkit-box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1);box-shadow:inset 0 1px 3px 0 rgba(0,34,51,.1)}.active\\:shadow-fade-left:active{-webkit-box-shadow:-16px 0 10px 0 #fff;box-shadow:-16px 0 10px 0 #fff}.active\\:shadow-fade-right:active{-webkit-box-shadow:4px 0 13px 13px #fff;box-shadow:4px 0 13px 13px #fff}.fill-current{fill:currentColor}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-error{--text-opacity:1;color:#f4562b;color:rgba(244,86,43,var(--text-opacity))}.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)}.text-ui-0{--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity))}.focus-within\\:text-body-400:focus-within{color:rgba(0,34,51,.5)}.hover\\:text-body-400:hover{color:rgba(0,34,51,.5)}.active\\:text-body-500:active,.focus\\:text-body-500:focus,.hover\\:text-body-500:hover{color:rgba(0,34,51,.8)}.disabled\\:text-body-300:disabled{color:rgba(0,34,51,.3)}.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}.invisible{visibility:hidden}.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-80{width:320px}.w-2\\/4{width:50%}.w-full{width:100%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.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-shadow{-webkit-transition-property:-webkit-box-shadow;transition-property:-webkit-box-shadow;transition-property:box-shadow;transition-property:box-shadow,-webkit-box-shadow}.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-shadow{-webkit-transition:-webkit-box-shadow .1s linear;transition:-webkit-box-shadow .1s linear;transition:box-shadow .1s linear;transition:box-shadow .1s linear,-webkit-box-shadow .1s linear}.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}.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;-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}.flip-y{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.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}.group:hover .group-hover\\:fade-in{-webkit-animation:fade-in .15s ease-out;animation:fade-in .15s ease-out}.animation-duration-500{-webkit-animation-duration:.5s;animation-duration:.5s}.selected-outline{-webkit-box-shadow:0 0 0 2px #0af;box-shadow:0 0 0 2px #0af}.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%}}.cbx{border-radius:3px;--bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--bg-opacity));-webkit-box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);box-shadow:inset 0 0 0 1px rgba(0,34,51,.1),inset 0 1px 2px 0 rgba(0,34,51,.15);position:relative;-ms-flex-negative:0;flex-shrink:0;height:13px;-webkit-transition:background-color .15s linear;transition:background-color .15s linear;width:13px}.cbx svg{position:absolute;top:2px;left:2px;height:8px;width:10px;fill:none;-webkit-filter:drop-shadow(0 1px .5px #296bb0);filter:drop-shadow(0 1px .5px #296bb0);stroke-dasharray:17;stroke-dashoffset:17;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.2;stroke:#fff;-webkit-transform:translateZ(0);transform:translateZ(0)}.cbx.cbx--checked{--bg-opacity:1;background-color:#0af;background-color:rgba(0,170,255,var(--bg-opacity))}.cbx.cbx--checked svg{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset .15s linear;transition:stroke-dashoffset .15s linear}.overlay-pill{position:absolute;margin:12px;padding-left:4px;padding-right:4px;height:20px;border-radius:4px;background-color:rgba(0,34,51,.3);--text-opacity:1;color:#fff;color:rgba(255,255,255,var(--text-opacity));font-size:12px;font-weight:600;line-height:22px}.fa-lg{line-height:1.05em}.z-a-lot{z-index:999999}'),t&&Ng(document.head,Ig),c(null!=t?t:o.current)}}),[]),t.createElement("div",{ref:o,style:{display:"flex",height:"100%"},"data-testid":"root"},s&&t.createElement(jc,{value:s},t.createElement(Cg,null,m(n,s))))}function Ng(e,t){var n=document.createElement("style"),r=document.createTextNode(t);n.appendChild(r),e.appendChild(n)}var Ig="\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('https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/SourceSans/sourcesanspro-regular.woff2') format('woff2'),\n url('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(\"https://d8ejoa1fys2rk.cloudfront.net/5.0.5/includes/fonts/fontawesome-webfont.woff2?v=4.7.0\") format(\"woff2\"),\n url(\"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",Pg=n("parent");function Og(e){return"parent"===i(Pg)?t.createElement(Pg.Provider,{value:"child"},t.createElement(Tg,null,e.children)):t.createElement(t.Fragment,null,e.children)}var Ag=n(null),Bg=function(){return i(Ag)};function Fg(e){var n=e.children,i=e.isOpen,s=void 0===i||i,c=e.style,l=e.onClose,u=void 0===l?function(){}:l,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 document.body.appendChild(e),f(e),function(){e.remove()}}),[]),s?t.createElement(Ag.Provider,{value:h},p&&t.createElement(t.Fragment,null,m(t.createElement(Og,null,t.createElement("div",{className:"inset-0 flex items-center p-4 z-a-lot fixed bg-ui-600 fade-in-down"},t.createElement("div",{className:"shadow-modal h-full w-full overflow-hidden rounded",style:c,"data-testid":"modal"},n))),p))):null}function Lg(e){var n=Bg();return t.createElement("div",{className:"bg-ui-0 w-full h-full flex flex-col items-center justify-center cv-root relative"},null!==n&&t.createElement(Jc,{onClick:n.onClose,title:Zc("Close"),className:"absolute top-3 right-4"},t.createElement(_m,{className:"w-6 h-6 -mx-1"})),t.createElement("div",{className:"flex flex-col"},e.children))}function zg(){return t.createElement("label",{htmlFor:"account-domain-input",className:"text-body-400 mb-8"},Zc("Enter the portal domain"))}function Rg(){return t.createElement(t.Fragment,null,t.createElement("svg",{viewBox:"0 0 479.438 361.46",className:"w-10 mb-8"},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"},Zc("Connect your brand portal")))}function Mg(e){var n=Gc("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 Dg(e){var n=Gc("appearance-none block h-10 w-80 border rounded text-body-500 placeholder-body-300\n\t\t focus:outline-none transition-color","invalid"===e.status?"pl-4 pr-10 border-error":"px-4 border-ui-600 hover:border-ui-900 focus:border-ui-900");return t.createElement("div",{className:"mb-4"},t.createElement("div",{className:"relative"},t.createElement("input",{id:"account-domain-input",value:e.value,className:n,placeholder:"yourdomain.bynder.com",readOnly:e.isReadOnly,autoFocus:!0,onChange:function(t){e.onChange(t.target.value)},onKeyDown:function(t){"valid"===e.status&&13===t.keyCode&&e.onSubmit()}}),"validating"===e.status&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"absolute top-0 right-0 mr-3 h-full"})),"invalid"===e.status&&t.createElement(_m,{className:"absolute top-0 right-3 w-6 h-full text-error fade-in cursor-pointer",onClick:function(){e.onChange("")}})),"invalid"===e.status&&t.createElement("div",{className:"text-error text-sm mt-1 fade-in"},Zc("This portal domain does not exist")))}function jg(e){return t.createElement(Jc,{kind:"Primary",className:"justify-center relative",isDisabled:!e.isValidDomain||e.isSubmitting,onClick:e.onClick,testId:"login-button"},e.isSubmitting?t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"text-ui-0"})):Zc("Connect"))}function Hg(e){return t.createElement(Lg,null,t.createElement(Rg,null),t.createElement(zg,null),t.createElement(Dg,{value:e.domainValue,isReadOnly:!1===e.isEditable||e.isSubmitting,onChange:e.onChangeDomain,onSubmit:e.onSubmit,status:e.domainStatus}),t.createElement(jg,{isValidDomain:"valid"===e.domainStatus,isSubmitting:e.isSubmitting,onClick:e.onSubmit}))}var Ug=function(e){function n(t){var n=e.call(this,t)||this;return n.state={error:null},n}return ui(n,e),n.getDerivedStateFromError=function(e){return{error:e}},n.prototype.render=function(){var e=this;return this.state.error?t.createElement(Xh,{error:this.state.error,onRetry:function(){return e.setState({error:null})}}):this.props.children},n}(t.Component);function Vg(){return t.createElement("div",{role:"alert","aria-live":"polite",className:"bg-ui-0 w-full h-full"}," ",t.createElement(Mg,null)," ")}var Kg=n(null);function $g(e){var n,o,i,s,l;el(null!==(n=e.language)&&void 0!==n?n:"en_US");var u=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),l=s[0],u=s[1],d=r(null!==(t=localStorage.getItem("cvad"))&&void 0!==t?t:void 0),p=d[0],f=d[1],m=r(w()),h=m[0],g=m[1],v=c();function y(e){i(e.accessToken),u(e.refreshToken),f(e.accountDomain),g(w(e.accessToken,e.refreshToken)),localStorage.setItem("cvrt",e.refreshToken),localStorage.setItem("cvad",e.accountDomain),v.current&&clearTimeout(v.current),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 w(e,t){return void 0===e&&(e=o),void 0===t&&(t=l),void 0!==e?"authenticated":void 0!==t?"refreshing":"not-authenticated"}return a((function(){return function(){v.current&&clearTimeout(v.current)}}),[]),a((function(){void 0===o&&l&&p&&(g("refreshing"),function(e,t){return fi(this,void 0,void 0,(function(){var n,r,o,i;return mi(this,(function(a){switch(a.label){case 0:n=xg(t)+"token",r=new URLSearchParams({client_id:vg,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,lg("Failed to fetch refresh token: "+o.status)];case 3:return[2,cg({accessToken:(i=a.sent()).access_token,expiresIn:i.expires_in})];case 4:return[2,lg(a.sent().toString())];case 5:return[2]}}))}))}(l,p).then((function(e){ug(e)?y({accessToken:e.value.accessToken,expiresIn:e.value.expiresIn,refreshToken:l,accountDomain:p}):(Mc.error(e.error),b())})))}),[o,l,p]),[{accessToken:o,accountDomain:p,status:h},y,b]}(),d=u[0],p=u[1],f=u[2],m=function(e){var t=r(null!=e?e:""),n=t[0],o=t[1],i=r(e?"validating":"empty"),s=i[0],l=i[1],u=c();return a((function(){if(n){var e=!1;return u.current=setTimeout((function(){(function(e){return fi(this,void 0,void 0,(function(){var t,n,r;return mi(this,(function(o){switch(o.label){case 0:t=pg(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||(l("invalid"!==t?"valid":"invalid"),localStorage.setItem("cvp",t))}))}),1e3),function(){e=!0}}}),[n]),[n,function(e){u.current&&clearTimeout(u.current),o(e),l(""===e?"empty":"validating")},s]}(null!==(i=null===(o=e.portal)||void 0===o?void 0:o.url)&&void 0!==i?i:d.accountDomain),h=m[0],g=m[1],v=m[2],y=r(!1),b=y[0],w=y[1];a((function(){var e=!0;return!0===b&&function(e){return fi(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,c,l,u;return mi(this,(function(d){switch(d.label){case 0:t=gg(),d.label=1;case 1:return d.trys.push([1,3,,4]),[4,hg(t)];case 2:return n=d.sent(),[3,4];case 3:return[2,lg(d.sent().toString())];case 4:return p=n,r=btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(p)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/[=]+$/,""),o=gg(),[4,Eg(function(e,t,n){var r={client_id:vg,code_challenge:e,code_challenge_method:"S256",redirect_uri:yg,response_type:"code",scope:bg.join(" "),domain:"",state:t},o="auth?";"webdam"===_g()&&(o="authorize?",delete r.scope,r.domain=n);var i=new URLSearchParams(r);return xg(n)+o+i}(r,o,e))];case 5:return dg(i=d.sent())?[2,i]:i.value.state!==o||null===i.value.code?[2,lg("Error logging in")]:[4,wg(i.value.code,t,e)];case 6:return dg(a=d.sent())?[2,a]:(s=a.value,c=s.refreshToken,l=s.accessToken,u=s.expiresIn,[2,cg({accessToken:l,expiresIn:parseFloat(u),refreshToken:c})])}var p}))}))}(h).then((function(t){e&&(function(e){ug(e)?p(di(di({},e.value),{accountDomain:h})):Mc.error(e.error)}(t),w(!1))})),function(){e=!1}}),[b,h]);var x=di(di({},d),{logout:function(){f()}});switch(d.status){case"authenticated":return t.createElement(Kg.Provider,{value:x},e.children);case"not-authenticated":return t.createElement(Og,null,t.createElement(Hg,{domainValue:h,domainStatus:v,onChangeDomain:g,isSubmitting:b,isEditable:null===(l=null===(s=e.portal)||void 0===s?void 0:s.editable)||void 0===l||l,onSubmit:function(){w(!0)}}));case"refreshing":return t.createElement(Vg,null)}}var Wg=function(e){return t.createElement(Ug,null,t.createElement($g,di({},e)))},qg=function(){return i(Kg)};function Yg(e){var t,n,o,i,s=this,c=qg(),l=r({tag:"Loading",value:null}),u=l[0],d=l[1],p=!1,f=function(t){return fi(s,void 0,void 0,(function(){var n;return mi(this,(function(r){switch(r.label){case 0:return d((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,mg("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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 options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n}\n",Xg(e,null!=t?t:null),c)];case 1:return n=r.sent(),p||(dg(n)?d({tag:"Failure",value:n.error}):m(n,t)),[2]}}))}))},m=function(e,t){Gg(u)&&t?d((function(t){var n,r,o=null!==(r=null===(n=Gg(t))||void 0===n?void 0:n.nodes)&&void 0!==r?r:[];return{tag:"Loaded",value:{searchAssets:{assets:di(di({},e.value.searchAssets.assets),{nodes:yi(o,e.value.searchAssets.assets.nodes)})}}}})):d({tag:"Loaded",value:e.value})};return a((function(){return f(),function(){p=!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,e.collection,e.orderBy,e.searchTerm,e.language]),{data:u,executeQuery:function(){return f()},isLoading:!u||"Loading"===u.tag,loadMore:function(){var e;return f(null===(e=Gg(u))||void 0===e?void 0:e.pageInfo.endCursor)},hasNextPage:!!(null===(i=Gg(u))||void 0===i?void 0:i.pageInfo.hasNextPage)}}var Xg=function(e,t){var n,r,o,i,a,s=e.filter,c=e.predefinedFilter,l=e.collection,u=e.orderBy,d=e.allAssetTypes,p=e.searchTerm,f=e.language,m=(null===(n=null==s?void 0:s.assetTypes)||void 0===n?void 0:n.length)?s.assetTypes:null==c?void 0:c.assetType_in;return{orderBy:u,filter:{collectionId:null!==(r=null==l?void 0:l.id)&&void 0!==r?r:null==c?void 0:c.collectionId,assetType_in:null!=m?m:d,metapropertyOptionId_in:null!==(o=Jg(null==s?void 0:s.metaproperties))&&void 0!==o?o:null==c?void 0:c.metapropertyOptionId_in,searchTerm:null!==(i=null!=p?p:null==c?void 0:c.searchTerm)&&void 0!==i?i:null,tagNames_in:null!==(a=null==s?void 0:s.tags)&&void 0!==a?a:null==c?void 0:c.tagNames_in,isLimitedUse:!1},after:t,language:f}},Gg=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},Jg=function(e){return e?e.map((function(e){return e.id})):null};function Zg(e,t,n){return fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,mg("\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 \nfragment DisplayAsset on Asset {\n __typename\n id\n derivatives {\n thumbnail\n }\n extensions\n name\n url\n isArchived\n isWatermarked\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 options {\n\t\t\tid\n\t\t\tlabel(language: $language)\n\t\t\tassetCount\n\t\t }\n\t\t}\n\t}\n}",{ids:e,language:n},t)];case 1:return dg(r=o.sent())?[2,r]:[2,cg(r.value.nodes)]}}))}))}var Qg=n(null);function ev(e){var n=r([]),i=n[0],s=n[1],c=r(),l=c[0],u=c[1],d=function(e){var t=this,n=r([]),o=n[0],i=n[1],s=Kc(),c=s.selectionMode,l=s.language,u=qg(),d=!1;return a((function(){if(e){var n=null!=e?e:[];"MultiSelect"!==c&&(n=n[0]?[n[0]]:[]),r=n,fi(t,void 0,void 0,(function(){var e,t,n;return mi(this,(function(o){switch(o.label){case 0:return r.length?[4,Zg(r,u,l)]:[3,2];case 1:e=o.sent(),d||dg(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}(l),p=Wc();function f(){s([])}function m(e){s((function(t){var n=e.filter((function(e){return!tv(t,e)}));return yi(t,n.map((function(e){return{type:"asset",value:e}})))}))}function h(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!tv(t,e)})),r=e.filter((function(e){return tv(t,e)}));return yi(t.filter((function(e){return!r.some((function(t){return t.id===e.value.id}))})),n.map((function(e){return{type:"asset",value:e}})))}))}function g(e){s((function(t){return tv(t,e)?t.filter((function(t){return t.value.id!==e.id})):yi(t,[{type:"collection",value:e}])}))}a((function(){var t;u(null===(t=e.preselectedAssetIds)||void 0===t?void 0:t.map((function(e){return window.btoa("(Asset_id "+e+")")})))}),[e.preselectedAssetIds]),a((function(){m(d)}),[d]);var v=o((function(){return{selection:i,preselectedAssetIds:l,clear:f,selectAssets:m,toggleAssets:h,toggleCollection:g}}),[i]);return t.createElement(Qg.Provider,{value:v},e.children)}function tv(e,t){return e.some((function(e){return e.value.id===t.id}))}function nv(){var e=i(Qg);if(null===e)throw new Error("useSelection must be used with a SelectionProvider");return e}function rv(e){var n=e.url,o=e.cover,i=void 0===o||o,a=e.alt,s=r(!1),c=s[0],l=s[1],u=Gc("select-none w-full h-full",i?"object-cover":"object-contain",c?"fade-in animation-duration-500":"invisible"),d=null!=n?n:"data:,";return t.createElement("img",{className:u,src:d,draggable:!1,onLoad:function(){return l(!0)},alt:a,"data-testid":"card-image"})}function ov(e){var n=e.urls,r=e.totalCount,o=e.alt;return t.createElement(t.Fragment,null,0===n.length&&t.createElement(rv,{alt:o}),1===n.length&&t.createElement(rv,{url:n[0],cover:!1,alt:o}),2===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[1],alt:o})," ")),3===n.length&&t.createElement(t.Fragment,null,t.createElement("div",{className:"w-2/4 h-full"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(rv,{url:n[1],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(rv,{url:n[2],alt:o})," "))),n.length>=4&&t.createElement(t.Fragment,null,t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4"}," ",t.createElement(rv,{url:n[0],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-400 fade-in"}," ",t.createElement(rv,{url:n[1],alt:o})," ")),t.createElement("div",{className:"flex flex-col w-2/4"},t.createElement("div",{className:"h-2/4 bg-ui-500 fade-in"}," ",t.createElement(rv,{url:n[2],alt:o})," "),t.createElement("div",{className:"h-2/4 bg-ui-600 fade-in"}," ",t.createElement(rv,{url:n[3],alt:o})," "))),r>4&&t.createElement("div",{className:"absolute text-ui-0 right-0 bottom-0 text-xl h-2/4 w-2/4 text-center\n\t\t\t\t\t flex items-center justify-center bg-ui-900"},"+",r-4))}function iv(e){var n=e.className,r=e.collection,o=e.fadeIn,i=void 0===o||o,a=e.isSelected,s=e.style,c=Wc(),l=xi()[1],u=nv(),d=Kc().hideExternalAccess,p=t.createElement(t.Fragment,null,t.createElement("div",{className:"truncate"}," ",r.name," "),t.createElement("div",{className:"mt-2 text-sm text-body-400"},tg(r.assetCount,Zc("{} asset"),Zc("{} assets"))));return t.createElement(rg,{id:r.id,style:s,title:p,alt:r.name,className:Gc(n,a&&"shadow-outline"),fadeIn:i,stacked:!0,onClick:function(){return l({page:"collection",collection:r})},"aria-selected":a},t.createElement(t.Fragment,null,t.createElement(ov,{urls:r.thumbnailUrls,totalCount:r.assetCount,alt:r.name}),a&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!d&&t.createElement(sg,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden\n\t\t\t\t\t\t group-hover:block group-hover:fade-in",title:Zc("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(r.url,"_blank")}},t.createElement(sm,{className:"w-6 h-6"})),"MultiSelect"===c&&t.createElement(sg,{active:a,title:Zc(a?"Deselect":"Select"),className:Gc("absolute right-0 top-0 mr-3 mt-3 rounded-full",!a&&"hidden group-hover:block group-hover:fade-in"),onClick:function(e){e.stopPropagation(),u.toggleCollection(r)}},t.createElement(bm,{className:"w-6 h-6"}))))}function av(e){var t=r(void 0),n=t[0],o=t[1],i=c(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 sv(e,t){if(!e)throw new Error("Invariant failed")}function cv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lv(){return(lv=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 uv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var dv=new Map,pv=new Map,fv=new Map,mv=0;function hv(e,t,n){void 0===n&&(n={}),n.threshold||(n.threshold=0);var r=n,o=r.root,i=r.rootMargin,a=r.threshold;if(dv.has(e)&&sv(!1),e){var s=function(e){return e?fv.has(e)?fv.get(e):(mv+=1,fv.set(e,mv.toString()),fv.get(e)+"_"):""}(o)+(i?a.toString()+"_"+i:a.toString()),c=pv.get(s);c||(c=new IntersectionObserver(vv,n),s&&pv.set(s,c));var l={callback:t,element:e,inView:!1,observerId:s,observer:c,thresholds:c.thresholds||(Array.isArray(a)?a:[a])};return dv.set(e,l),c.observe(e),l}}function gv(e){if(e){var t=dv.get(e);if(t){var n=t.observerId,r=t.observer,o=r.root;r.unobserve(e);var i=!1,a=!1;n&&dv.forEach((function(t,r){r!==e&&(t.observerId===n&&(i=!0,a=!0),t.observer.root===o&&(a=!0))})),!a&&o&&fv.delete(o),r&&!i&&r.disconnect(),dv.delete(e)}}}function vv(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,r=e.target,o=dv.get(r);if(o&&n>=0){var i=o.thresholds.some((function(e){return o.inView?n>e:n>=e}));void 0!==t&&(i=i&&t),o.inView=i,o.callback(i,e)}}))}var yv=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cv(uv(t=e.call.apply(e,[this].concat(r))||this),"state",{inView:!1,entry:void 0}),cv(uv(t),"node",null),cv(uv(t),"handleNode",(function(e){t.node&&(gv(t.node),e||t.props.triggerOnce||t.setState({inView:!1,entry:void 0})),t.node=e||null,t.observeNode()})),cv(uv(t),"handleChange",(function(e,n){(e!==t.state.inView||e)&&t.setState({inView:e,entry:n}),t.props.onChange&&t.props.onChange(e,n)})),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.componentDidMount=function(){this.node||sv(!1)},o.componentDidUpdate=function(e,t){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold||(gv(this.node),this.observeNode()),t.inView!==this.state.inView&&this.state.inView&&this.props.triggerOnce&&(gv(this.node),this.node=null)},o.componentWillUnmount=function(){this.node&&(gv(this.node),this.node=null)},o.observeNode=function(){if(this.node){var e=this.props,t=e.threshold,n=e.root,r=e.rootMargin;hv(this.node,this.handleChange,{threshold:t,root:n,rootMargin:r})}},o.render=function(){var e=this.state,t=e.inView,n=e.entry;if(!function(e){return"function"!=typeof e.children}(this.props))return this.props.children({inView:t,entry:n,ref:this.handleNode});var r=this.props,o=r.children,i=r.as,a=r.tag,s=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}(r,["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange"]);return u(i||a||"div",lv({ref:this.handleNode},s),o)},r}(p);cv(yv,"displayName","InView"),cv(yv,"defaultProps",{threshold:0,triggerOnce:!1});var bv={inView:!1,entry:void 0};function wv(e){var n=function(e){void 0===e&&(e={});var t=c(),n=r(bv),o=n[0],i=n[1];return[d((function(n){t.current&&(gv(t.current),e.triggerOnce||i(bv)),n&&hv(n,(function(t,r){i({inView:t,entry:r}),t&&e.triggerOnce&&gv(n)}),e),t.current=n}),[e.threshold,e.root,e.rootMargin,e.triggerOnce]),o.inView,o.entry]}(),o=n[0],i=n[1];return a((function(){i&&!e.isLoading&&e.hasNextPage&&e.loadMore()}),[i]),t.createElement(t.Fragment,null,e.children,e.hasNextPage&&t.createElement("div",{className:"relative h-32 w-full",ref:o,"data-testid":"loading-element"},t.createElement(Mg,{className:Gc(!i&&"hidden")})))}function xv(){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 _v(e){return t.createElement("div",{className:" w-full h-full flex flex-col items-center justify-center"},t.createElement("div",{className:"bg-ui-400 rounded-full w-40 h-40 flex items-center justify-center"},t.createElement(xv,null),t.createElement(cm,{className:"absolute mt-1 ml-px text-body-300",style:{width:36,height:36}})),t.createElement("h1",{className:"mt-6 text-2xl"},Zc("No results found")),t.createElement("span",{className:"mt-4 text-body-400"},Zc("Try adjusting the filter to find assets.")),t.createElement(Jc,{kind:"Primary",title:Zc("Reset filters"),className:"mt-8",onClick:e.onReset},Zc("Reset filters")))}function Ev(e){var n,o,i=r(null),a=i[0],s=i[1],c=av(a).dimensions,l=nv().selection.filter((function(e){return"collection"===e.type})).map((function(e){return e.value.id})),u=Ci().setSearch,d=e.connection,p=d.data,f=d.isLoading,m=d.loadMore,h=d.hasNextPage,g=void 0!==c?Math.ceil(c.height/184):0,v=void 0!==c?Math.round((c.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(ig,{rows:g,columns:v,title:t.createElement("div",{className:"mt-2 text-sm"}," ")}),"Loaded"===p.tag&&0===(null===(n=p.value)||void 0===n?void 0:n.collections.nodes.length)&&t.createElement(_v,{onReset:function(){return u("collections","")}}),("Loading"===p.tag&&!!p.value||"Loaded"===p.tag&&p.value.collections.nodes.length>0)&&t.createElement(wv,{hasNextPage:h,isLoading:f,loadMore:m},null===(o=p.value)||void 0===o?void 0:o.collections.nodes.map((function(e,n){return t.createElement(iv,{key:e.id,isSelected:l.includes(e.id),collection:e,fadeIn:n>=g*v})}))))}function Sv(){var e=Ti("collections"),n=e.value,o=e.setIsLoading,i=function(e){var t,n=this,o=qg(),i=r({tag:"Loading",value:null}),s=i[0],c=i[1],l=!1,u=function(t){return fi(n,void 0,void 0,(function(){var n,r;return mi(this,(function(i){switch(i.label){case 0:return c((function(e){return{tag:"Loading",value:"Failure"===e.tag?null:e.value}})),[4,mg("\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}",di(di({},e),{searchTerm:null!==(r=e.searchTerm)&&void 0!==r?r:null,after:null!=t?t:null}),o)];case 1:return n=i.sent(),l||(dg(n)?c({tag:"Failure",value:n.error}):d(n,t)),[2]}}))}))},d=function(e,t){p()&&t?c((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:di(di({},e.value.collections),{nodes:yi(o,e.value.collections.nodes)})}}})):c({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(){l=!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:ci("collections")[0]});return a((function(){i.isLoading||o(!1)}),[i.isLoading]),"Failure"===i.data.tag?t.createElement(Xh,{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"},tg(i.data.value.collections.totalCount,Zc("{} collection"),Zc("{} collections"))),!i.data.value&&t.createElement("span",{className:"flex-grow"}),t.createElement(eg,{options:["CREATED_AT","NAME"]}),t.createElement(Gh,null)),t.createElement(Ev,{connection:i}))}var kv=n(null);function Cv(e){var n=r([]),i=n[0],a=n[1],s=r([]),c=s[0],l=s[1],u=r([]),d=u[0],p=u[1],f=r({}),m=f[0],h=f[1];function g(e){a((function(t){return Tv(t,e)}))}function v(e){a((function(t){return Nv(t,e)}))}function y(e){l((function(t){return Tv(t,e.id)})),h((function(t){var n;return di(di({},t),((n={})[e.id]=e,n))}))}function b(e){l((function(t){return Nv(t,e.id)})),h((function(t){var n=t,r=e.id;return pi(n,["symbol"==typeof r?r:r+""])}))}function w(e){p((function(t){return Tv(t,e)}))}function x(e){p((function(t){return Nv(t,e)}))}function _(){a([]),l([]),h({}),p([])}var E=c.map((function(e){return m[e]})),S=o((function(){return{assetTypes:i,metaproperties:E,tags:d,addAssetType:g,removeAssetType:v,addMetaproperty:y,removeMetaproperty:b,addTag:w,removeTag:x,clear:_}}),[i,E,d]);return t.createElement(kv.Provider,{value:S},e.children)}function Tv(e,t){return e.includes(t)?e:yi(e,[t])}function Nv(e,t){return e.filter((function(e){return e!==t}))}function Iv(){var e=i(kv);if(null===e)throw new Error("useAssetFilter must be used with a AssetFilterProvider");return e}function Pv(e){return Zc({AUDIO:"Audio",DOCUMENT:"Document",IMAGE:"Image",VIDEO:"Video"}[e])}function Ov(e){switch(e){case"AUDIO":return um;case"DOCUMENT":return pm;case"IMAGE":return mm;case"VIDEO":return lm}}function Av(e){return t.createElement(Jc,{kind:"FlatSm",className:Gc("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-left active:shadow-fade-left":"hidden"),onClick:e.onClick,testId:"arrow-right"},t.createElement(xm,{className:"w-6 h-6"}))}function Bv(e){return t.createElement(Jc,{kind:"FlatSm",className:Gc("pl-0 pr-0 z-20",e.isVisible?"shadow-fade-right active:shadow-fade-right":"hidden"),onClick:e.onClick,testId:"arrow-left"},t.createElement(wm,{className:"w-6 h-6"}))}function Fv(e){var n=r(0),o=n[0],i=n[1],s=c(null),l=av(s.current),u=l.dimensions,d=l.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 m=o>0,h=p>5&&o!==p;return t.createElement("div",{className:Gc("inline-flex flex-grow overflow-hidden",e.className)},f&&t.createElement(Bv,{isVisible:m,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("+-o+"px)"},"data-testid":"horizontal-scrollable-el"},e.children)),f&&t.createElement(Av,{isVisible:h,onClick:function(){i((function(e){var t=Math.min(e+250,p);return t<=p-100?t:p}))}}),e.static)}function Lv(e){var n=Gc("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 ng(t,e.onClick)},role:"button",tabIndex:0,"data-testid":e["data-testid"]},e.children)}function zv(e){return t.createElement(Lv,{className:"mr-2 fade-in-down","data-testid":"selected-filter:"+e.title},e.icon,t.createElement("span",{className:"max-w-32 truncate",title:e.title},e.title),t.createElement(_m,{onClick:e.onClick,title:Zc("Remove filter"),className:"w-5 h-5 ml-1 -mr-1 text-body-300 hover:text-body-400 cursor-pointer"}))}function Rv(){var e=Iv(),n=0===e.metaproperties.length&&0===e.assetTypes.length&&0===e.tags.length?void 0:t.createElement(Jc,{kind:"FlatSm",className:"flex-shrink-0 fade-in-down",onClick:e.clear},Zc("Clear filters"));return t.createElement("div",{"data-testid":"selected-filter-list"},t.createElement(Fv,{className:"ml-2",static:n},e.assetTypes.map((function(n){var r=Ov(n);return t.createElement(zv,{key:n,onClick:function(){return e.removeAssetType(n)},title:Pv(n),icon:t.createElement(r,{className:"w-5 h-5 mr-1"})})})),e.metaproperties.map((function(n){return t.createElement(zv,{key:n.id,onClick:function(){return e.removeMetaproperty(n)},title:n.label})})),e.tags.map((function(n){return t.createElement(zv,{key:n,onClick:function(){return e.removeTag(n)},title:n})}))))}function Mv(e){var n=e.isSelected;return t.createElement(sg,{active:n,title:Zc(n?"Deselect":"Select"),className:Gc("absolute right-0 top-0 mr-3 mt-3 rounded-full",!n&&"hidden group-hover:block group-hover:fade-in"),tabIndex:-1},t.createElement(bm,{className:"w-6 h-6"}))}function Dv(e){var n=e.asset;return t.createElement(sg,{className:"absolute left-0 top-0 ml-3 mt-3 rounded hidden group-hover:block\n\t\t\t group-hover:fade-in",title:Zc("Open in new tab"),onClick:function(e){e.stopPropagation(),window.open(n.url,"_blank")}},t.createElement(sm,{className:"w-6 h-6"}))}var jv=["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 Hv(e){if(e.derivatives.thumbnail)return e.derivatives.thumbnail;var t=e.extensions[0];return jv.includes(t)?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/"+t+".jpg":"aif"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/aiff.jpg":"m4a"===t?"https://d8ejoa1fys2rk.cloudfront.net/includes/img/placeholder/medium/m4r.jpg":"https://d8ejoa1fys2rk.cloudfront.net/includes/img/common/no-image.png"}function Uv(e){var t=e.extensions[0];return"JPG"===(null==t?void 0:t.toUpperCase())?"JPEG":null==t?void 0:t.toUpperCase()}function Vv(e){var n=e.className,o=e.fadeIn,i=void 0===o||o,s=e.asset,c=e.isSelected,l=e.isOutlined,u=e.onClick,d=e.children,p=void 0===d?null:d,f=r(),m=f[0],h=f[1],g=Kc().theme,v=(c||l)&&void 0!==(null==g?void 0:g.colorPrimary)?{boxShadow:"0 0 0 2px "+g.colorPrimary}:void 0,y=Kc().hideExternalAccess,b=function(e){return e.isArchived&&e.isWatermarked?Zc("archived")+", "+Zc("watermarked"):e.isArchived?Zc("archived"):e.isWatermarked?Zc("watermarked"):void 0}(s),w=Uv(s);return a((function(){var e,t=null===(e=s.metaproperties)||void 0===e?void 0:e.nodes.filter((function(e){return e.showInGridView||e.showInListView}));h(t)}),[s.metaproperties]),t.createElement("div",{"data-drag-select-id":s.id},t.createElement(rg,{id:s.id,style:v,title:s.name,alt:s.name,metaproperties:m,className:Gc(n,c&&"shadow-outline",l&&"selected-outline"),fadeIn:i,onClick:function(e){void 0!==u&&(e.stopPropagation(),u(s,e))},"aria-selected":c},t.createElement(rv,{url:Hv(s),cover:!1,alt:s.name}),c&&t.createElement("div",{className:"absolute h-full w-full bg-ui-800 fade-in"}),!y&&t.createElement(Dv,{asset:s}),t.createElement(Mv,{isSelected:c}),b&&t.createElement("span",{className:"overlay-pill left-0 bottom-0 max-w-32 truncate",title:b},b),w&&t.createElement("span",{className:"overlay-pill right-0 bottom-0"},w),p))}function Kv(e,t,n){var r=this,i=c(null),s=c(0),l=c(null),u=c([]),d=c(),p=c(),f=c(e),m=c(!0);f.current=e;var h=!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;return a((function(){return m.current=!0,function(){m.current=!1}}),[]),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){h&&cancelAnimationFrame(l.current),l.current=h?requestAnimationFrame(e):setTimeout(e,t)},o=function(e){if(!m.current)return!1;var n=e-i.current,r=e-s.current;return!i.current||n>=t||n<0||y&&r>=b},a=function(t){return l.current=null,v&&u.current?e(t):(u.current=d.current=null,p.current)},c=function(){var e=Date.now();if(o(e))return a(e);if(m.current){var r=e-i.current,l=e-s.current,u=t-r,d=y?Math.min(u,b-l):u;n(c,d)}},w=function(){for(var a=[],f=0;f<arguments.length;f++)a[f]=arguments[f];var h=Date.now(),v=o(h);if(u.current=a,d.current=r,i.current=h,v){if(!l.current&&m.current)return s.current=i.current,n(c,t),g?e(i.current):p.current;if(y)return n(c,t),e(i.current)}return l.current||n(c,t),p.current};return w.cancel=function(){l.current&&(h?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,u.current=i.current=d.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?a(Date.now()):p.current},w}),[g,y,t,b,v,h])}function $v(e,t){return e===t}function Wv(e){return"function"==typeof e?function(){return e}:e}function qv(e,t,n){var o=n&&n.equalityFn||$v,i=function(e){var t=r(Wv(e)),n=t[0],o=t[1];return[n,d((function(e){return o(Wv(e))}),[])]}(e),s=i[0],l=i[1],u=Kv(d((function(e){return l(e)}),[l]),t,n),p=c(e);return a((function(){o(p.current,e)||(u(e),p.current=e)}),[e,u,o]),[s,{cancel:u.cancel,isPending:u.isPending,flush:u.flush}]}var Yv={x:null,y:null},Xv=function(e){var n=e.dragContainer,o=e.selectionBoxCustomAttr,i=e.onSelect,s=e.onDeselect,l=e.onDragStart,u=e.onDragEnd,p=r(Yv),m=p[0],h=p[1],g=r(Yv),v=g[0],y=g[1],b=qv(v,10,{leading:!0,maxWait:10})[0],w=r(),x=w[0],_=w[1],E=Hc(),S=t.useMemo((function(){return Jv(m,b,E.querySelector(".cv-root"))}),[m,b,E]),k=qv(S,50,{leading:!1,maxWait:50})[0],C=r([]),T=C[0],N=C[1],I=ny(T),P=c(m),O=c(v),A=c(null!==P.current.x&&null!==P.current.y&&null!==O.current.x&&null!==O.current.y),B=c({shiftKey:!1,metaKey:!1});a((function(){return document.addEventListener("keydown",F,!1),document.addEventListener("keyup",F,!1),function(){document.removeEventListener("keydown",F,!1),document.removeEventListener("keyup",F,!1)}}),[]);var F=function(e){var t=e.shiftKey,n=e.metaKey,r=t||n?"inverse":"select";B.current={shiftKey:t,metaKey:n},A.current&&r!==x&&_(r)};a((function(){var e;return"function"==typeof l&&A.current?(F(B.current),l(null!=x?x:"select")):"function"!=typeof u||A.current||(e=setTimeout((function(){return u(null!=x?x:"select")}),10)),function(){return clearTimeout(e)}}),[A.current,x]);var L=function(e){P.current=e,h(e),R()},z=function(e){O.current=e,y(e),R()},R=function(){A.current=null!==P.current.x&&null!==P.current.y&&null!==O.current.x&&null!==O.current.y},M=d((function(e){var t,n,r=e.clientY,o=e.clientX,i=null!==P.current.x,a=Math.abs(null!==(t=P.current.x)&&void 0!==t?t:0-o)>=1||Math.abs(null!==(n=P.current.y)&&void 0!==n?n:0-r)>=1;i&&a&&z({x:o,y:r})}),[]),D=d((function(){E.removeEventListener("mousemove",M),E.removeEventListener("mouseup",D),L(Yv),z(Yv)}),[M,E]),j=d((function(e){var t=e.clientY,n=e.clientX;0===e.button&&(E.addEventListener("mousemove",M),E.addEventListener("mouseup",D),L({x:n,y:t}))}),[M,D,E]);a((function(){var e=E.querySelector(n);return e&&(ey(E),e.addEventListener("mousedown",j)),function(){e&&(e.removeEventListener("mousedown",j),ty(E))}}),[n,j,M,D,E]),a((function(){var e=E.querySelectorAll("[data-drag-select-id]"),t=Array.from(e).reduce((function(e,t){var n=Qv(t);return t instanceof HTMLElement&&Zv(n,k)&&t.dataset.dragSelectId&&e.push(t.dataset.dragSelectId),e}),[]);N(t)}),[k,E]),a((function(){if(I&&I!==T&&A.current){var e=T.filter((function(e){return!I.includes(e)})),t=I.filter((function(e){return!T.includes(e)}));e.length&&i(e),t.length&&s(t)}}),[T,I,i,s,A]);var H=E.querySelector("#drag-select-container");return A.current&&H?f.createPortal(t.createElement("div",di({},o,{style:o.style?di(di(di({},Gv),o.style),S):di(di({},Gv),S),"data-testid":"drag-selection"})),H):null},Gv={position:"absolute",zIndex:100},Jv=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),c=Math.abs(o-e.x),l=r.width+r.left-i-4;return{left:i,top:a,height:s,width:c=Math.min(c,l)}},Zv=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},Qv=function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top+window.scrollY,height:t.height,width:t.width}},ey=function(e){var t=document.createElement("div");t.id="drag-select-container",e.appendChild(t)},ty=function(e){var t=e.querySelector("#drag-select-container");t&&t.remove()},ny=function(e){var t=c();return a((function(){t.current=e})),t.current};function ry(e){var n,o=e.assets,i=e.count,a=e.hasNextPage,s=void 0!==a&&a,l=e.isLoading,u=void 0!==l&&l,d=e.loadMore,p=void 0===d?function(){}:d,f=e.onSelect,m=void 0===f?function(){}:f,h=e.onToggle,g=void 0===h?function(){}:h,v=e.emptyStateElement,y=void 0===v?null:v,b=e.selectedAssetIds,w=void 0===b?[]:b,x=e.selectionMode,_=void 0===x?"MultiSelect":x,E=e.theme,S=e.children,k=void 0===S?null:S,C=c(null),T=av(C.current).dimensions,N=r([]),I=N[0],P=N[1],O=r("inactive"),A=O[0],B=O[1],F=function(e,t){return void 0!==e?[1,e]:t?[Math.ceil(t.height/188),Math.round((t.width-16)/208)]:[0,0]}(i,T),L=F[0],z=F[1];function R(e){return("inverse"!==A||!w.includes(e.id)||!I.includes(e.id))&&(w.includes(e.id)||I.includes(e.id))}return t.createElement("div",{className:"flex flex-col flex-grow overflow-y-auto",ref:C,"data-drag-select-container":!0},k,t.createElement("div",{className:"card-list",role:"listbox"},"Loading"===o.tag&&!o.value&&t.createElement(ig,{rows:L,columns:z}),"Loaded"===o.tag&&0===o.value.length&&y,("Loading"===o.tag&&o.value||"Loaded"===o.tag)&&t.createElement(t.Fragment,null,"MultiSelect"===_&&t.createElement(Xv,{dragContainer:"[data-drag-select-container]",selectionBoxCustomAttr:{className:"rounded border-2 border-brand-500",style:{zIndex:1e6,borderColor:null==E?void 0:E.colorPrimary}},onSelect:function(e){P((function(t){return yi(t,e)}))},onDeselect:function(e){P((function(t){return t.filter((function(t){return!e.includes(t)}))}))},onDragStart:function(e){B(e)},onDragEnd:function(e){if(B("inactive"),I.length){var t=[];I.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):m(t),P([])}}}),t.createElement(wv,{hasNextPage:s,isLoading:u,loadMore:p},null===(n=o.value)||void 0===n?void 0:n.map((function(e,n){return t.createElement(Vv,{key:e.id,isSelected:R(e),isOutlined:R(e),asset:e,fadeIn:n>=L*z,onClick:function(e,t){return function(e,t){var n,r,i;if(t.shiftKey&&"MultiSelect"===_&&(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===w[w.length-1]}));m(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 oy(e){var n,r,o,i,s=e.connection,c=s.data,l=s.isLoading,u=s.loadMore,d=s.hasNextPage,p=s.executeQuery,f=Ci().setIsLoading,m=Kc(),h=nv().selection.filter((function(e){return"asset"===e.type})).map((function(e){return e.value.id})),g=nv(),v=g.selectAssets,y=g.toggleAssets,b=Ci().setSearch,w=Iv();if(a((function(){l||f(!1)}),[l]),"Failure"===c.tag)return t.createElement(Xh,{error:new Error(c.value),onRetry:p});var x=null!==(i=null===(o=null===(r=null===(n=c.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(ry,{assets:iy(c),count:x,isLoading:l,loadMore:u,hasNextPage:d,theme:m.theme,selectionMode:m.selectionMode,selectedAssetIds:h,onSelect:v,onToggle:y,emptyStateElement:t.createElement(_v,{onReset:function(){w.clear(),b("assets",""),b("collection","")}})},t.createElement("div",{className:"flex justify-between items-center px-4 pt-4 pb-2 z-10"},void 0!==x&&t.createElement("span",{className:"flex-shrink-0 text-body-400 fade-in-down",key:x},tg(x,Zc("{} asset"),Zc("{} assets"))),e.showActiveFilters&&t.createElement(Rv,null),t.createElement(eg,null),t.createElement(Gh,null)))}function iy(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 ay(e){var n=Ti("collection").value,r=xi()[1],o=ci("collection")[0],i=Kc(),a=i.assetTypes,s=i.language,c=Yg({collection:e.collection,allAssetTypes:a,searchTerm:n,orderBy:o,language: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"},Zc("Collections")," / "),t.createElement("span",null," ",e.collection.name," ")),t.createElement(oy,{connection:c,totalCount:e.collection.assetCount}))}function sy(e){var n=e.className,r=e.onClick,o=e.isChecked,i=void 0!==o&&o,a=e.title;return t.createElement("div",{className:Gc("cbx",i&&"cbx--checked",n),title:a,role:"checkbox","aria-checked":i,tabIndex:0,onClick:r,onKeyDown:function(e){return function(e,t){t&&" "===e.key&&(e.preventDefault(),t(e))}(e,r)}},t.createElement("svg",{viewBox:"0 0 12 11"},t.createElement("polyline",{points:"1 6.29411765 4.5 10 11 1"})))}function cy(e){var n=void 0!==e.selectedOptionIds&&e.selectedOptionIds.includes(e.metapropertyOption.id),r=Gc("w-full text-left flex items-center py-2 px-4 text-sm hover:bg-ui-400 focus-within:bg-ui-400 transition-color",!n&&"text-body-400",!n&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer");function o(){n?e.onRemoveOption():e.isLoading||e.onAddOption()}return t.createElement("li",null,t.createElement("button",{type:"button",className:r,onClick:o,role:"menuitemradio","aria-checked":n,tabIndex:-1,"data-testid":"metaproperty-option"},t.createElement(sy,{isChecked:n,onClick:o,className:"mr-2"}),t.createElement("span",{className:"flex-grow mr-4 my-px truncate fade-in-down",title:e.metapropertyOption.label},e.metapropertyOption.label),t.createElement("span",{className:"fade-in-down"},e.metapropertyOption.assetCount)))}function ly(e){return t.createElement("div",{className:"pt-4 w-56","data-testid":"metaproperty-filter-content"},t.createElement("h1",{className:"mb-2 px-4 truncate",title:e.metaproperty.label},e.metaproperty.label),t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},e.metaproperty.options.map((function(n){return t.createElement(cy,{key:n.id,metapropertyOption:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:function(){return e.onAddOption(n)},onRemoveOption:function(){return e.onRemoveOption(n)}})}))))}function uy(e){return t.createElement("div",{className:"flex"},e.smartfilter.metaproperties.map((function(n){return t.createElement(ly,{key:n.id,metaproperty:n,selectedOptionIds:e.selectedOptionIds,isLoading:e.isLoading,onAddOption:e.onAddOption,onRemoveOption:e.onRemoveOption})})))}function dy(e){var n=Iv(),r=n.metaproperties.map((function(e){return e.id})),o=function(e){var t=function(e){return"Metaproperty"===e.__typename?1e4:e.zIndex};return yi(e).sort((function(e,n){return t(e)-t(n)}))}(e.metapropertyFilters.filter((function(e){return"Metaproperty"===e.__typename||0!==e.metaproperties.length})));return t.createElement(t.Fragment,null,o.map((function(o){return t.createElement(Zh,{key:o.id,title:t.createElement(py,{filter:o}),alt:o.label,buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),"Metaproperty"===o.__typename?t.createElement(ly,{metaproperty:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}):t.createElement(uy,{smartfilter:o,selectedOptionIds:r,isLoading:e.isLoading,onAddOption:n.addMetaproperty,onRemoveOption:n.removeMetaproperty}))}))})))}function py(e){var n=e.filter;return t.createElement(t.Fragment,null,"Smartfilter"===n.__typename&&n.icon&&t.createElement("i",{className:Gc("fa fa-lg mr-2",n.icon)}),t.createElement("span",{className:"max-w-24 truncate","data-testid":"metaproperty-filter"},n.label))}function fy(e){var n=Iv(),r=n.tags.includes(e.tag.name),o=Gc("mb-2 mr-2",r&&"bg-ui-500",e.isLoading&&!r?"cursor-default":"cursor-pointer");return t.createElement(Lv,{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 my(e){var n=yi(e.tags).sort((function(e,t){return t.assetCount-e.assetCount}));return t.createElement(Zh,{title:t.createElement(hy,null),className:"pt-4 pb-1 overflow-hidden max-w-600",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"}," ",Zc("Tags")," "),t.createElement("div",{className:"flex flex-wrap px-4 -mr-2"},n.map((function(n){return t.createElement(fy,{key:n.id,tag:n,isLoading:e.isLoading})}))))}))}function hy(){return t.createElement(t.Fragment,null,t.createElement(am,{className:"mr-2 inline w-6 h-6"}),t.createElement("span",{"data-testid":"tags-filter"},Zc("Tags")))}function gy(e){var n=Iv(),r=n.assetTypes.includes(e.type),o=Gc("flex items-center py-2 px-4 text-sm hover:bg-ui-400 transition-color",!r&&"text-body-400",!r&&e.isLoading?"cursor-wait cursor-default":"cursor-pointer"),i=Ov(e.type);return t.createElement("li",{className:o,onClick:function(){r?n.removeAssetType(e.type):n.addAssetType(e.type)},"data-testid":Pv(e.type)+"-filter"},t.createElement(sy,{isChecked:r,className:"mr-2"}),t.createElement(i,{className:"w-6 h-6 mr-2 -my-2"}),t.createElement("span",{className:"flex-grow mr-2 my-px"},Pv(e.type)),t.createElement("span",{className:"fade-in-down"},e.count))}function vy(e){var n=Kc().assetTypes,r=n.filter((function(t){return by(e.count,t)>0}));return 0===n.length||0===r.length?null:t.createElement(Zh,{title:t.createElement(yy,null),className:"pt-4 pb-1",buttonClassName:"text-sm fade-in-down"},(function(){return t.createElement(t.Fragment,null,e.isLoading&&t.createElement(Mg,{className:"absolute top-0 right-0 mr-2 mt-3 bg-ui-0"}),t.createElement("h1",{className:"px-4 mb-4"},Zc("Type")),t.createElement("ul",null,r.map((function(n){return t.createElement(gy,{key:n,type:n,count:by(e.count,n),isLoading:e.isLoading})}))))}))}function yy(){return t.createElement(t.Fragment,null,t.createElement(gm,{className:"mr-2 inline w-6 h-6"}),Zc("Advanced"))}function by(e,t){switch(t){case"AUDIO":return e.audio;case"DOCUMENT":return e.document;case"IMAGE":return e.image;case"VIDEO":return e.video}}function wy(){var e=Iv(),n=Ti("assets").value,o=Kc(),i=o.assetTypes,s=o.language;el(s);var c=function(e){var t=this,n=qg(),o=r({tag:"Loading",value:null}),i=o[0],s=o[1],c=!1;return a((function(){return fi(t,void 0,void 0,(function(){var t,r,o,i,a,l;return mi(this,(function(u){switch(u.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,[4,mg("\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 }\n }\n }\n }",{filter:{assetType_in:null!==(l=t.assetTypes)&&void 0!==l?l:o,collectionId:null,isLimitedUse:!1,metapropertyOptionId_in:t.metaproperties.map((function(e){return e.id})),searchTerm:r,tagNames_in:t.tags},language:i},n)];case 1:return a=u.sent(),c||(dg(a)?s({tag:"Failure",value:a.error}):s({tag:"Loaded",value:a.value})),[2]}}))})),function(){c=!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}),l=c.data,u=c.isLoading;if("Failure"===l.tag||!l.value)return t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-2 z-20"},t.createElement(xy,null));var d=l.value.searchAssets,p=d.metapropertyFilters,f=d.tags,m=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(Fv,{className:"h-8"},p&&p.nodes.length>0&&t.createElement(dy,{metapropertyFilters:p.nodes,isLoading:u}),f&&f.nodes.length>0&&t.createElement(my,{tags:f.nodes,isLoading:u}),t.createElement(vy,{isLoading:u,count:m.assetType})))}function xy(){return t.createElement("div",{className:"inline-flex items-center"},t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:100}),t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:80}),t.createElement(og,{className:"h-4 ml-2 mr-2 my-2",width:110}))}function _y(){var e=xi()[0],n=Ti(e.page),o=n.value,i=n.isLoading,s=n.setSearch,c=Kv(s,500),l=r(o),u=l[0],d=l[1];a((function(){d(o)}),[e,o]),a((function(){return function(){c.flush()}}),[e,c]);var p="collections"===e.page?Zc("Search for collections"):Zc("Search for assets"),f=!i&&""!==o;return t.createElement("div",{className:"w-full inline-flex relative text-body-300 focus-within:text-body-400\n\t\t\t transition-color",style:{maxWidth:"440px"}},t.createElement("div",{className:"pointer-events-none absolute inset-y-0 left-0 pl-3 flex items-center"},t.createElement(cm,{className:"fill-current pointer-events-none w-6 h-6"})),t.createElement("input",{value:u,className:"appearance-none block w-full border border-ui-600 rounded py-2 pr-4\n\t\t\t\t pl-10 text-body-500 placeholder-body-300 focus:outline-none\n\t\t\t\t hover:border-ui-900 focus:border-ui-900 transition-color",placeholder:p,onChange:function(e){return t=e.target.value,d(t),void c(t);var t},"data-testid":"search-input"}),i&&t.createElement("div",{role:"alert","aria-live":"polite"},t.createElement(Mg,{className:"absolute right-0 mr-3 h-full"})),f&&t.createElement("button",{"data-testid":"clear-search-input",className:"h-full absolute right-3 focus:outline-none text-body-300\n\t\t\t\t\t hover:text-body-400 fade-in",onClick:function(){d(""),s("")},type:"button"},t.createElement(ym,{className:"w-6 h-6"})))}function Ey(){var e=xi(),n=e[0],r=e[1];return t.createElement("div",{className:"inline-flex mr-auto"},t.createElement(Jc,{className:"assets"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"assets"})}},Zc("Assets")),t.createElement(Jc,{className:"collections"===n.page?"bg-ui-500 text-body-500":void 0,onClick:function(){return r({page:"collections"})}},Zc("Collections")))}function Sy(){var e,n="authenticated"===(null===(e=i(Kg))||void 0===e?void 0:e.status)||!1,r=Bg(),o=qg(),a=void 0!==Kc().assetFilter;return n||r||!a?t.createElement("nav",{className:"flex justify-between bg-ui-0 px-4 py-3 z-30"},!a&&t.createElement(t.Fragment,null,t.createElement(Ey,null),t.createElement(_y,null)),t.createElement("div",{className:"inline-flex ml-auto"},n&&t.createElement(Jc,{onClick:function(){return null==o?void 0:o.logout()}},t.createElement("span",{className:"mr-1"}," ",Zc("Log out")," "),t.createElement(im,{className:"w-6 h-6 -mr-1"})),r&&t.createElement(Jc,{onClick:function(){return r.onClose()},title:Zc("Close")},t.createElement(_m,{className:"w-6 h-6 -mx-1"})))):null}function ky(){var e=Iv(),n=e.assetTypes,r=e.metaproperties,o=e.tags,i=Ti("assets").value,a=ci("assets")[0],s=Kc(),c=s.assetFilter,l=s.assetTypes,u=s.language,d=Yg(void 0===c?{filter:{assetTypes:n,metaproperties:r,tags:o},searchTerm:i,orderBy:a,allAssetTypes:l,language:u}:{predefinedFilter:c,orderBy:a,language:u});return t.createElement(oy,{connection:d,showActiveFilters:void 0===c})}function Cy(e,t,n){return void 0===n&&(n="\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 }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,mg("\n fragment AddMediaAsset on Asset {\n "+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 dg(r=o.sent())?[2,r]:[2,cg(r.value.node)]}}))}))}function Ty(e){return e.replace(/([a-z0-9])([A-Z])/g,(function(e,t,n){return t+" "+n}))}function Ny(e){var n=r({status:"Loading"}),o=n[0],i=n[1],s=qg(),c=Kc().assetFieldSelection;return a((function(){i({status:"Loading"}),e.onChange(void 0),function(e,t,n){return fi(this,void 0,void 0,(function(){var r;return mi(this,(function(o){switch(o.label){case 0:return[4,Cy(e.id,t,n)];case 1:return[2,ug(r=o.sent())&&r.value.files?cg(r.value.files):lg("Error retrieving asset files")]}}))}))}(e.asset,s,c).then((function(t){if(dg(t))return Mc.error(t.error),void i({status:"Failure"});var n=t.value,r=function(e){return"transformBaseUrl"in e?"transformBaseUrl":"original"in e?"original":"webImage"}(n);i({status:"Data",files:n,key:r}),e.onChange(n[r])}))}),[e.asset.id,s,c]),t.createElement(Zh,{title:t.createElement(Iy,{state:o}),buttonKind:"Secondary",className:"py-2",buttonClassName:"mr-4 capitalize",direction:"Up",disabled:"Loading"===o.status},(function(n){return"Data"===o.status&&t.createElement("ul",{className:"overflow-y-auto pb-1 max-h-400"},Object.entries(o.files).map((function(r){var a,s=r[0],c=r[1];return t.createElement(Qh,{key:s,className:"px-3 py-2",selected:o.key===s,onClick:function(){!function(t){i((function(n){return"Data"!==n.status?n:(e.onChange(n.files[t]),di(di({},n),{key:t}))}))}(s),n()}},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 justify-center font-semibold text-body-400 text-xs\n\t\t\t\t\t\t\t\t\t uppercase","data-testid":"file-extension"},"transformBaseUrl"===s?t.createElement(om,{className:"w-6 h-6"}):null!==(a=function(e){if(e)return function(e){var t=e.match(/filename=(.*?)&/);if(t){var n=/(?:\.([^.]+))?$/.exec(t[1]);if(n&&n[1])return n[1]}}(e)||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)}(c.url))&&void 0!==a?a:t.createElement(fm,{className:"w-6 h-6"})),t.createElement("div",{className:"flex-grow w-40"},t.createElement("div",{className:"capitalize text-body-500 truncate"},Ty(s)),t.createElement("div",{className:"text-sm"},c.width&&c.height&&c.width+" x "+c.height+" px",c.width&&c.height&&c.fileSize&&t.createElement("span",{className:"mx-2"},"•"),c.fileSize&&function(e){if(e<1)return"0 Bytes";var t=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,t)).toFixed(1)+" "+{0:"Bytes",1:"kB",2:"MB",3:"GB",4:"TB",5:"PB",6:"EB",7:"ZB",8:"YB"}[t]}(c.fileSize))))})))}))}function Iy(e){var n=e.state;return"Loading"===n.status?t.createElement(og,{width:50,className:"h-4"}):"Data"===n.status?t.createElement(t.Fragment,null,Ty(n.key)):t.createElement(t.Fragment,null,"Error")}function Py(e){var n=e.status,r=e.numberOfSelectedItems;return"Done"===n?t.createElement(bm,{"data-testid":"check",className:"w-6 h-6"}):"Error"===n?t.createElement(t.Fragment,null,Zc("Retry")):"Loading"===n?t.createElement(Mg,{className:"text-ui-0"}):t.createElement(t.Fragment,null,tg(r,Zc("Add asset"),Zc("Add assets")))}function Oy(e){var n,o=Kc(),i=o.assetFieldSelection,s=o.onSuccess,l=o.selectionMode,u=nv().preselectedAssetIds,d=qg(),p=c(!0),f=r("SingleSelectFile"===l?{status:"WaitingForFileSelection"}:{status:"Ready"}),m=f[0],h=f[1];function g(e,t){if(dg(e))h({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){Mc.error(e)}p.current&&(h({status:"Done"}),setTimeout((function(){p.current&&h({status:"Ready"})}),2e3))}}return a((function(){return function(){p.current=!1}}),[]),t.createElement(t.Fragment,null,"SingleSelectFile"===l&&"asset"===(null===(n=e.selection[0])||void 0===n?void 0:n.type)&&t.createElement(Ny,{asset:e.selection[0].value,onChange:function(e){h(void 0===e?{status:"WaitingForFileSelection"}:{status:"ReadyWithFile",file:e})}}),t.createElement(Jc,{kind:"Primary",className:"relative",isDisabled:"Loading"===m.status||"WaitingForFileSelection"===m.status,onClick:function(){var t,n="ReadyWithFile"===m.status?m.file:void 0;h({status:"Loading"}),"MultiSelect"!==l&&"asset"===(null===(t=e.selection[0])||void 0===t?void 0:t.type)?Cy(e.selection[0].value.id,d,i).then((function(e){g(e,n)})):function(e,t,n){return void 0===n&&(n="\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 }\n derivatives {\n thumbnail\n webImage\n }\n ... on Video {\n previewUrls\n }\n"),fi(this,void 0,void 0,(function(){var r,o,i,a,s,c,l,u,d,p,f,m;return mi(this,(function(h){switch(h.label){case 0:return r="\n fragment AddMediaAsset on Asset {\n "+n+"\n }\n\n query getAssetsById($ids: [ID!]!) {\n nodes(ids: $ids) {\n __typename\n id\n ...on Asset {\n ...AddMediaAsset\n files\n }\n ...on Collection {\n assets {\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,mg(r,o,t)];case 1:if(dg(i=h.sent()))return[2,i];for(a=[],s=0,c=i.value.nodes;s<c.length;s++)"Collection"===(l=c[s]).__typename?a.push.apply(a,l.assets.nodes):a.push(l);for(u=new Set,d=[],p=0,f=a;p<f.length;p++)m=f[p],u.has(m.id)||(d.push(m),u.add(m.id));return[2,cg(d)]}}))}))}(e.selection,d,i).then((function(e){g(e,n)}))},testId:"add-button"},t.createElement(Py,{status:m.status,numberOfSelectedItems:e.selection.length})))}function Ay(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(sy,{isChecked:!0,className:"ml-2 mr-5 cursor-pointer",onClick:r,title:Zc("Deselect")}),o)}function By(e){var n=e.asset,r=nv();return t.createElement(Ay,{title:n.name,onRemove:function(){return r.toggleAssets([n])}},t.createElement("img",{alt:n.name,className:"w-10 h-10 mr-3 select-none object-cover bg-ui-500 rounded",src:Hv(n),draggable:!1}),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),Uv(n)&&t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},Uv(n)))}function Fy(e){var n=e.collection,r=nv();return t.createElement(Ay,{title:n.name,onRemove:function(){return r.toggleCollection(n)}},t.createElement("div",{className:"w-10 h-10 mr-3 bg-ui-500 rounded flex items-center justify-center"},t.createElement(hm,{className:"w-6 h-6 text-body-500 opacity-75"})),t.createElement("span",{className:"w-40 mr-2 truncate"},n.name),t.createElement("span",{className:"flex-grow text-body-400 text-sm text-right"},tg(n.assetCount,Zc("{} asset"),Zc("{} assets"))))}function Ly(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(By,{key:e.value.id,asset:e.value}):t.createElement(Fy,{key:e.value.id,collection:e.value})})))}function zy(){var e=nv(),n=e.selection,r=e.clear,o=n.length;return 0===o?null:t.createElement("div",{className:"flex flex-shrink-0 h-16 z-10 px-6 items-center shadow-footer fade-in-down","data-testid":"selection-footer"},t.createElement("span",{className:"flex-grow flex items-center"},t.createElement(Zh,{buttonKind:"Secondary",direction:"Up",title:Zc("View {} selected").replace("{}",o.toString())},(function(){return t.createElement(Ly,{selection:n})})),t.createElement(Jc,{className:"ml-1",onClick:r},Zc("Clear selection"))),t.createElement(Oy,{selection:n}))}var Ry=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function My(e){var t=as().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function Dy(e){var t=(e||as()).getScope();return t&&t.getTransaction()}function jy(e){return e/1e3}function Hy(){var e=Dy();e&&(oa.log("[Tracing] Transaction: internal_error -> Global error occured"),e.setStatus("internal_error"))}var Uy=["heartbeatFailed","idleTimeout","documentHidden"],Vy=function(){function e(e){void 0===e&&(e=1e3),this.spans=[],this._maxlen=e}return e.prototype.add=function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)},e}(),Ky=function(e){function t(t,n){var r=e.call(this,t)||this;return r._measurements={},r._hub=as(),Ki(n,rs)&&(r._hub=n),r.name=t.name||"",r.metadata=t.metadata||{},r._trimEnd=t.trimEnd,r.transaction=r,r}return ui(t,e),t.prototype.setName=function(e){this.name=e},t.prototype.initSpanRecorder=function(e){void 0===e&&(e=1e3),this.spanRecorder||(this.spanRecorder=new Vy(e)),this.spanRecorder.add(this)},t.prototype.setMeasurements=function(e){this._measurements=di({},e)},t.prototype.setMetadata=function(e){this.metadata=di(di({},this.metadata),e)},t.prototype.finish=function(t){var n=this;if(void 0===this.endTimestamp){if(this.name||(oa.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),e.prototype.finish.call(this,t),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==n&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var o={contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:this.metadata};return Object.keys(this._measurements).length>0&&(oa.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),o.measurements=this._measurements),oa.log("[Tracing] Finishing "+this.op+" transaction: "+this.name+"."),this._hub.captureEvent(o)}oa.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var i=this._hub.getClient(),a=i&&i.getTransport&&i.getTransport();a&&a.recordLostEvent&&a.recordLostEvent("sample_rate","transaction")}},t.prototype.toContext=function(){var t=e.prototype.toContext.call(this);return ba(di(di({},t),{name:this.name,trimEnd:this._trimEnd}))},t.prototype.updateWithContext=function(t){var n;return e.prototype.updateWithContext.call(this,t),this.name=null!=(n=t.name)?n:"",this._trimEnd=t.trimEnd,this},t}(function(){function e(e){if(this.traceId=za(),this.spanId=za().substring(16),this.startTimestamp=Ja(),this.tags={},this.data={},!e)return this;e.traceId&&(this.traceId=e.traceId),e.spanId&&(this.spanId=e.spanId),e.parentSpanId&&(this.parentSpanId=e.parentSpanId),"sampled"in e&&(this.sampled=e.sampled),e.op&&(this.op=e.op),e.description&&(this.description=e.description),e.data&&(this.data=e.data),e.tags&&(this.tags=e.tags),e.status&&(this.status=e.status),e.startTimestamp&&(this.startTimestamp=e.startTimestamp),e.endTimestamp&&(this.endTimestamp=e.endTimestamp)}return e.prototype.child=function(e){return this.startChild(e)},e.prototype.startChild=function(t){var n=new e(di(di({},t),{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));return n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,n},e.prototype.setTag=function(e,t){var n;return this.tags=di(di({},this.tags),((n={})[e]=t,n)),this},e.prototype.setData=function(e,t){var n;return this.data=di(di({},this.data),((n={})[e]=t,n)),this},e.prototype.setStatus=function(e){return this.status=e,this},e.prototype.setHttpStatus=function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this},e.prototype.isSuccess=function(){return"ok"===this.status},e.prototype.finish=function(e){this.endTimestamp="number"==typeof e?e:Ja()},e.prototype.toTraceparent=function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),this.traceId+"-"+this.spanId+e},e.prototype.toContext=function(){return ba({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})},e.prototype.updateWithContext=function(e){var t,n,r,o,i;return this.data=null!=(t=e.data)?t:{},this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=null!=(n=e.spanId)?n:this.spanId,this.startTimestamp=null!=(r=e.startTimestamp)?r:this.startTimestamp,this.status=e.status,this.tags=null!=(o=e.tags)?o:{},this.traceId=null!=(i=e.traceId)?i:this.traceId,this},e.prototype.getTraceContext=function(){return ba({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})},e.prototype.toJSON=function(){return ba({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})},e}()),$y=function(e){function t(t,n,r,o){void 0===r&&(r="");var i=e.call(this,o)||this;return i._pushActivity=t,i._popActivity=n,i.transactionSpanId=r,i}return ui(t,e),t.prototype.add=function(t){var n=this;t.spanId!==this.transactionSpanId&&(t.finish=function(e){t.endTimestamp="number"==typeof e?e:Ja(),n._popActivity(t.spanId)},void 0===t.endTimestamp&&this._pushActivity(t.spanId)),e.prototype.add.call(this,t)},t}(Vy),Wy=function(e){function t(t,n,r,o){void 0===r&&(r=1e3),void 0===o&&(o=!1);var i=e.call(this,t,n)||this;return i._idleHub=n,i._idleTimeout=r,i._onScope=o,i.activities={},i._heartbeatCounter=0,i._finished=!1,i._beforeFinishCallbacks=[],n&&o&&(qy(n),oa.log("Setting idle transaction on scope. Span ID: "+i.spanId),n.configureScope((function(e){return e.setSpan(i)}))),i._initTimeout=setTimeout((function(){i._finished||i.finish()}),i._idleTimeout),i}return ui(t,e),t.prototype.finish=function(t){var n,r,o=this;if(void 0===t&&(t=Ja()),this._finished=!0,this.activities={},this.spanRecorder){oa.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);try{for(var i=hi(this._beforeFinishCallbacks),a=i.next();!a.done;a=i.next())(0,a.value)(this,t)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(e){if(e.spanId===o.spanId)return!0;e.endTimestamp||(e.endTimestamp=t,e.setStatus("cancelled"),oa.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));var n=e.startTimestamp<t;return n||oa.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(e,void 0,2)),n})),oa.log("[Tracing] flushing IdleTransaction")}else oa.log("[Tracing] No active IdleTransaction");return this._onScope&&qy(this._idleHub),e.prototype.finish.call(this,t)},t.prototype.registerBeforeFinishCallback=function(e){this._beforeFinishCallbacks.push(e)},t.prototype.initSpanRecorder=function(e){var t=this;this.spanRecorder||(this.spanRecorder=new $y((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),oa.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)},t.prototype._pushActivity=function(e){this._initTimeout&&(clearTimeout(this._initTimeout),this._initTimeout=void 0),oa.log("[Tracing] pushActivity: "+e),this.activities[e]=!0,oa.log("[Tracing] new activities count",Object.keys(this.activities).length)},t.prototype._popActivity=function(e){var t=this;if(this.activities[e]&&(oa.log("[Tracing] popActivity "+e),delete this.activities[e],oa.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var n=this._idleTimeout,r=Ja()+n/1e3;setTimeout((function(){t._finished||(t.setTag("finishReason",Uy[1]),t.finish(r))}),n)}},t.prototype._beat=function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(oa.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.setTag("finishReason",Uy[0]),this.finish()):this._pingHeartbeat()}},t.prototype._pingHeartbeat=function(){var e=this;oa.log("pinging Heartbeat -> current counter: "+this._heartbeatCounter),setTimeout((function(){e._beat()}),5e3)},t}(Ky);function qy(e){if(e){var t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}}function Yy(e,t,n){return My(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"==typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(o)}})),r=o,(isNaN(r)||"number"!=typeof r&&"boolean"!=typeof r?(oa.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got "+JSON.stringify(r)+" of type "+JSON.stringify(typeof r)+"."),0):!(r<0||r>1)||(oa.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got "+r+"."),0))?o?(e.sampled=Math.random()<o,e.sampled?(oa.log("[Tracing] starting "+e.op+" transaction - "+e.name),e):(oa.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = "+Number(o)+")"),e)):(oa.log("[Tracing] Discarding transaction because "+("function"==typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(oa.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var r,o}var Xy=Ai(),Gy=function(e,t,n){var r;return function(o){t.value>=0&&(o||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},Jy=function(e,t){return{name:e,value:null!=t?t:-1,delta:0,entries:[],id:"v2-"+Date.now()+"-"+(Math.floor(8999999999999*Math.random())+1e12)}},Zy=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},Qy=function(e,t){var n=function(r){"pagehide"!==r.type&&"hidden"!==Ai().document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},eb=-1,tb=function(){return eb<0&&(eb="hidden"===Ai().document.visibilityState?0:1/0,Qy((function(e){var t=e.timeStamp;eb=t}),!0)),{get firstHiddenTime(){return eb}}},nb={},rb=Ai(),ob=function(){function e(e){void 0===e&&(e=!1),this._reportAllChanges=e,this._measurements={},this._performanceCursor=0,!Ii()&&rb&&rb.performance&&rb.document&&(rb.performance.mark&&rb.performance.mark("sentry-tracing-init"),this._trackCLS(),this._trackLCP(),this._trackFID())}return e.prototype.addPerformanceEntries=function(e){var t=this;if(rb&&rb.performance&&rb.performance.getEntries&&Za){oa.log("[Tracing] Adding & adjusting spans using Performance API");var n,r,o=jy(Za);if(rb.performance.getEntries().slice(this._performanceCursor).forEach((function(i){var a=jy(i.startTime),s=jy(i.duration);if(!("navigation"===e.op&&o+a<e.startTimestamp))switch(i.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(r){ib(e,t,r,n)})),ib(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),ib(e,t,"fetch",n,"cache","domainLookupStart"),ib(e,t,"domainLookup",n,"DNS"),function(e,t,n){ab(e,{op:"browser",description:"request",startTimestamp:n+jy(t.requestStart),endTimestamp:n+jy(t.responseEnd)}),ab(e,{op:"browser",description:"response",startTimestamp:n+jy(t.responseStart),endTimestamp:n+jy(t.responseEnd)})}(e,t,n)}(e,i,o),n=o+jy(i.responseStart),r=o+jy(i.requestStart);break;case"mark":case"paint":case"measure":var c=function(e,t,n,r,o){var i=o+n,a=i+r;return ab(e,{description:t.name,endTimestamp:a,op:t.entryType,startTimestamp:i}),i}(e,i,a,s,o),l=tb(),u=i.startTime<l.firstHiddenTime;"first-paint"===i.name&&u&&(oa.log("[Measurements] Adding FP"),t._measurements.fp={value:i.startTime},t._measurements["mark.fp"]={value:c}),"first-contentful-paint"===i.name&&u&&(oa.log("[Measurements] Adding FCP"),t._measurements.fcp={value:i.startTime},t._measurements["mark.fcp"]={value:c});break;case"resource":var d=i.name.replace(rb.location.origin,"");!function(e,t,n,r,o,i){if("xmlhttprequest"!==t.initiatorType&&"fetch"!==t.initiatorType){var a={};"transferSize"in t&&(a["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(a["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(a["Decoded Body Size"]=t.decodedBodySize);var s=i+r;ab(e,{description:n,endTimestamp:s+o,op:t.initiatorType?"resource."+t.initiatorType:"resource",startTimestamp:s,data:a})}}(e,i,d,a,s,o)}})),this._performanceCursor=Math.max(performance.getEntries().length-1,0),this._trackNavigator(e),"pageload"===e.op){var i=jy(Za);"number"==typeof n&&(oa.log("[Measurements] Adding TTFB"),this._measurements.ttfb={value:1e3*(n-e.startTimestamp)},"number"==typeof r&&r<=n&&(this._measurements["ttfb.requestTime"]={value:1e3*(n-r)})),["fcp","fp","lcp"].forEach((function(n){if(t._measurements[n]&&!(i>=e.startTimestamp)){var r=t._measurements[n].value,o=i+jy(r),a=Math.abs(1e3*(o-e.startTimestamp)),s=a-r;oa.log("[Measurements] Normalized "+n+" from "+r+" to "+a+" ("+s+")"),t._measurements[n].value=a}})),this._measurements["mark.fid"]&&this._measurements.fid&&ab(e,{description:"first input delay",endTimestamp:this._measurements["mark.fid"].value+jy(this._measurements.fid.value),op:"web.vitals",startTimestamp:this._measurements["mark.fid"].value}),"fcp"in this._measurements||delete this._measurements.cls,e.setMeasurements(this._measurements),function(e,t,n){t&&(oa.log("[Measurements] Adding LCP Data"),t.element&&e.setTag("lcp.element",$i(t.element)),t.id&&e.setTag("lcp.id",t.id),t.url&&e.setTag("lcp.url",t.url.trim().slice(0,200)),e.setTag("lcp.size",t.size)),n&&n.sources&&(oa.log("[Measurements] Adding CLS Data"),n.sources.forEach((function(t,n){return e.setTag("cls.source."+(n+1),$i(t.node))})))}(e,this._lcpEntry,this._clsEntry),e.setTag("sentry_reportAllChanges",this._reportAllChanges)}}},e.prototype._trackNavigator=function(e){var t=rb.navigator;if(t){var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),sb(n.rtt)&&(this._measurements["connection.rtt"]={value:n.rtt}),sb(n.downlink)&&(this._measurements["connection.downlink"]={value:n.downlink})),sb(t.deviceMemory)&&e.setTag("deviceMemory",String(t.deviceMemory)),sb(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}},e.prototype._trackCLS=function(){var e,t,n,r,o,i,a=this;t=Jy("CLS",0),n=0,r=[],(i=Zy("layout-shift",o=function(o){if(o&&!o.hadRecentInput){var i=r[0],a=r[r.length-1];n&&0!==r.length&&o.startTime-a.startTime<1e3&&o.startTime-i.startTime<5e3?(n+=o.value,r.push(o)):(n=o.value,r=[o]),n>t.value&&(t.value=n,t.entries=r,e&&e())}}))&&(e=Gy((function(e){var t=e.entries.pop();t&&(oa.log("[Measurements] Adding CLS"),a._measurements.cls={value:e.value},a._clsEntry=t)}),t,void 0),Qy((function(){i.takeRecords().map(o),e(!0)})))},e.prototype._trackLCP=function(){var e=this;!function(t,n){var r,o=tb(),i=Jy("LCP"),a=function(e){var t=e.startTime;t<o.firstHiddenTime&&(i.value=t,i.entries.push(e)),r&&r()},s=Zy("largest-contentful-paint",a);if(s){r=Gy((function(t){var n=t.entries.pop();if(n){var r=jy(Za),o=jy(n.startTime);oa.log("[Measurements] Adding LCP"),e._measurements.lcp={value:t.value},e._measurements["mark.lcp"]={value:r+o},e._lcpEntry=n}}),i,n);var c=function(){nb[i.id]||(s.takeRecords().map(a),s.disconnect(),nb[i.id]=!0,r(!0))};["keydown","click"].forEach((function(e){addEventListener(e,c,{once:!0,capture:!0})})),Qy(c,!0)}}(0,this._reportAllChanges)},e.prototype._trackFID=function(){var e,t,n,r,o,i=this;t=tb(),n=Jy("FID"),(o=Zy("first-input",r=function(r){e&&r.startTime<t.firstHiddenTime&&(n.value=r.processingStart-r.startTime,n.entries.push(r),e(!0))}))&&(e=Gy((function(e){var t=e.entries.pop();if(t){var n=jy(Za),r=jy(t.startTime);oa.log("[Measurements] Adding FID"),i._measurements.fid={value:e.value},i._measurements["mark.fid"]={value:n+r}}}),n,void 0),Qy((function(){o.takeRecords().map(r),o.disconnect()}),!0))},e}();function ib(e,t,n,r,o,i){var a=i?t[i]:t[n+"End"],s=t[n+"Start"];s&&a&&ab(e,{op:"browser",description:null!=o?o:n,startTimestamp:r+jy(s),endTimestamp:r+jy(a)})}function ab(e,t){var n=t.startTimestamp,r=pi(t,["startTimestamp"]);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild(di({startTimestamp:n},r))}function sb(e){return"number"==typeof e&&isFinite(e)}var cb={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};var lb,ub=Ai(),db=di({idleTimeout:1e3,markBackgroundTransactions:!0,maxTransactionDuration:600,routingInstrumentation:function(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=!0),ub&&ub.location){var r,o=ub.location.href;t&&(r=e({name:ub.location.pathname,op:"pageload"})),n&&Ia("history",(function(t){var n=t.to,i=t.from;void 0===i&&o&&-1!==o.indexOf(n)?o=void 0:i!==n&&(o=void 0,r&&(oa.log("[Tracing] Finishing current transaction with op: "+r.op),r.finish()),r=e({name:ub.location.pathname,op:"navigation"}))}))}else oa.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},cb),pb=function(){function e(t){this.name=e.id,this._emitOptionsWarning=!1,this._configuredIdleTimeout=void 0;var n=cb.tracingOrigins;t&&(this._configuredIdleTimeout=t.idleTimeout,t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:this._emitOptionsWarning=!0),this.options=di(di(di({},db),t),{tracingOrigins:n});var r=this.options._metricOptions;this._metrics=new ob(r&&r._reportAllChanges)}return e.prototype.setupOnce=function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(oa.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),oa.warn("[Tracing] We added a reasonable default for you: "+cb.tracingOrigins));var r=this.options,o=r.routingInstrumentation,i=r.startTransactionOnLocationChange,a=r.startTransactionOnPageLoad,s=r.markBackgroundTransactions,c=r.traceFetch,l=r.traceXHR,u=r.tracingOrigins,d=r.shouldCreateSpanForRequest;o((function(e){return n._createRouteTransaction(e)}),a,i),s&&(Xy&&Xy.document?Xy.document.addEventListener("visibilitychange",(function(){var e=Dy();Xy.document.hidden&&e&&(oa.log("[Tracing] Transaction: cancelled -> since tab moved to the background, op: "+e.op),e.status||e.setStatus("cancelled"),e.setTag("visibilitychange","document.hidden"),e.setTag("finishReason",Uy[2]),e.finish())})):oa.warn("[Tracing] Could not set up background tab detection due to lack of global document")),function(e){var t=di(di({},cb),e),n=t.traceFetch,r=t.traceXHR,o=t.tracingOrigins,i=t.shouldCreateSpanForRequest,a={},s=function(e){if(a[e])return a[e];var t=o;return a[e]=t.some((function(t){return la(e,t)}))&&!la(e,"sentry_key"),a[e]},c=s;"function"==typeof i&&(c=function(e){return s(e)&&i(e)});var l={};n&&Ia("fetch",(function(e){!function(e,t,n){if(My()&&e.fetchData&&t(e.fetchData.url))if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;(i=n[r])&&(e.response?i.setHttpStatus(e.response.status):e.error&&i.setStatus("internal_error"),i.finish(),delete n[r])}else{var o=Dy();if(o){var i=o.startChild({data:di(di({},e.fetchData),{type:"fetch"}),description:e.fetchData.method+" "+e.fetchData.url,op:"http.client"});e.fetchData.__span=i.spanId,n[i.spanId]=i;var a=e.args[0]=e.args[0],s=e.args[1]=e.args[1]||{},c=s.headers;Ki(a,Request)&&(c=a.headers),c?"function"==typeof c.append?c.append("sentry-trace",i.toTraceparent()):c=Array.isArray(c)?vi(c,[["sentry-trace",i.toTraceparent()]]):di(di({},c),{"sentry-trace":i.toTraceparent()}):c={"sentry-trace":i.toTraceparent()},s.headers=c}}}(e,c,l)})),r&&Ia("xhr",(function(e){!function(e,t,n){if(!(!My()||e.xhr&&e.xhr.__sentry_own_request__)&&e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)){var r=e.xhr.__sentry_xhr__;if(e.endTimestamp){var o=e.xhr.__sentry_xhr_span_id__;if(!o)return;(a=n[o])&&(a.setHttpStatus(r.status_code),a.finish(),delete n[o])}else{var i=Dy();if(i){var a=i.startChild({data:di(di({},r.data),{type:"xhr",method:r.method,url:r.url}),description:r.method+" "+r.url,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=a.spanId,n[e.xhr.__sentry_xhr_span_id__]=a,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",a.toTraceparent())}catch(e){}}}}}(e,c,l)}))}({traceFetch:c,traceXHR:l,tracingOrigins:u,shouldCreateSpanForRequest:d})},e.prototype._createRouteTransaction=function(e){var t=this;if(this._getCurrentHub){var n=this.options,r=n.beforeNavigate,o=n.idleTimeout,i=n.maxTransactionDuration,a="pageload"===e.op?function(){var e,t=("sentry-trace",(e=Ai().document.querySelector("meta[name=sentry-trace]"))?e.getAttribute("content"):null);if(t)return function(e){var t=e.match(Ry);if(t){var n=void 0;return"1"===t[3]?n=!0:"0"===t[3]&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}}(t)}():void 0,s=di(di(di({},e),a),{trimEnd:!0}),c="function"==typeof r?r(s):s,l=void 0===c?di(di({},s),{sampled:!1}):c;!1===l.sampled&&oa.log("[Tracing] Will not send "+l.op+" transaction because of beforeNavigate."),oa.log("[Tracing] Starting "+l.op+" transaction on scope");var u=function(e,t,n,r,o){var i=e.getClient(),a=i&&i.getOptions()||{},s=new Wy(t,e,n,!0);return(s=Yy(s,a,di({parentSampled:t.parentSampled,transactionContext:t},o))).sampled&&s.initSpanRecorder(a._experiments&&a._experiments.maxSpans),s}(this._getCurrentHub(),l,o,0,{location:Ai().location});return u.registerBeforeFinishCallback((function(e,n){t._metrics.addPerformanceEntries(e),function(e,t,n){var r=n-t.startTimestamp;n&&(r>e||r<0)&&(t.setStatus("deadline_exceeded"),t.setTag("maxTransactionDurationExceeded","true"))}(1e3*i,e,n)})),u.setTag("idleTimeout",this._configuredIdleTimeout),u}oa.warn("[Tracing] Did not create "+e.op+" transaction because _getCurrentHub is invalid.")},e.id="BrowserTracing",e}();function fb(e){var n=e.assetFieldSelection,r=e.assetFilter,o=e.assetTypes,i=void 0===o?["IMAGE","AUDIO","VIDEO","DOCUMENT"]:o,a=e.defaultSearchTerm,s=e.language,c=void 0===s?"en_US":s,l=e.mode,u=void 0===l?"MultiSelect":l,d=e.onSuccess,p=void 0===d?function(e,t){var n=t.selectedFile;return console.log(e,n)}:d,f=e.theme,m=e.hideExternalAccess,h=e.selectedAssets;el(c);var g={assetFieldSelection:n,assetFilter:r,assetTypes:i,language:c,onSuccess:p,selectionMode:u,theme:f,hideExternalAccess:m};return t.createElement(Ug,null,t.createElement(wi,null,t.createElement(si,null,t.createElement(Cv,null,t.createElement(ki,{defaultValue:a,selectionMode:g.selectionMode},t.createElement(Vc,{value:g},t.createElement(ev,{preselectedAssetIds:null!=h?h:[]},t.createElement(Og,null,t.createElement("div",{className:"cv-root cv-container"},t.createElement(Sy,null),t.createElement(mb,null),t.createElement(zy,null))))))))))}function mb(){var e=xi()[0],n=Kc().assetFilter;return t.createElement(t.Fragment,null,"assets"===e.page&&void 0===n&&t.createElement(wy,null),"assets"===e.page&&t.createElement(ky,null),"collections"===e.page&&t.createElement(Sv,null),"collection"===e.page&&t.createElement(ay,{collection:e.collection}))}(lb=os()).__SENTRY__&&(lb.__SENTRY__.extensions=lb.__SENTRY__.extensions||{},lb.__SENTRY__.extensions.startTransaction||(lb.__SENTRY__.extensions.startTransaction=function(e,t){var n=this.getClient(),r=n&&n.getOptions()||{},o=new Ky(e,this);return(o=Yy(o,r,di({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),o}),lb.__SENTRY__.extensions.traceHeaders||(lb.__SENTRY__.extensions.traceHeaders=function(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}})),Ii()&&function(){var e=os();if(e.__SENTRY__){var t={mongodb:function(){return new(Pi(module,"./integrations/node/mongo").Mongo)},mongoose:function(){return new(Pi(module,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new(Pi(module,"./integrations/node/mysql").Mysql)},pg:function(){return new(Pi(module,"./integrations/node/postgres").Postgres)}},n=Object.keys(t).filter((function(e){return!!function(e){var t;try{t=Pi(module,e)}catch(e){}try{var n=Pi(module,"process").cwd;t=Pi(module,n()+"/node_modules/"+e)}catch(e){}return t}(e)})).map((function(e){try{return t[e]()}catch(e){return}})).filter((function(e){return e}));n.length>0&&(e.__SENTRY__.integrations=vi(e.__SENTRY__.integrations||[],n))}}(),Ia("error",Hy),Ia("unhandledrejection",Hy),function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=zc),void 0===e.release){var t=Ai();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&oa.enable();var n=as(),r=n.getScope();r&&r.update(t.initialScope);var o=new e(t);n.bindClient(o)}(Lc,e),e.autoSessionTracking&&function(){if(void 0!==Ai().document){var e=as();e.captureSession&&(Rc(e),Ia("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&Rc(as())})))}else Ni()&&oa.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}({dsn:"https://dd74b64cc05845468f0c3654b458da29@sentry10.bynder.cloud/464",autoSessionTracking:!0,integrations:[new pb],tracesSampleRate:1,defaultIntegrations:!1});export{fb as CompactView,Wg as Login,Fg as Modal};
|