"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2391],{63097:function(t,e,n){var r=n(82729),i=n(66013),o=n(67294),s=n(55479),a=n(93985),u=n(31666);function c(){var t=(0,r._)(["\n display: grid;\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n\n ",";\n ",";\n"]);return c=function(){return t},t}var l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},f=u.Z.div(c(),function(t){return(0,i.W1)("align-items",t.alignItems)},function(t){return(0,i.W1)("justify-content",t.justifyContent)},function(t){return t.justifyItems&&(0,i.W1)("justify-items",t.justifyItems)},function(t){return t.alignContent&&(0,i.W1)("align-content",t.alignContent)},function(t){return!t.columns&&!t.rows&&!t.autoFlow&&"grid-auto-flow: column"},function(t){return(0,a.Uw)(t.columns,"columns")},function(t){return(0,a.Uw)(t.rows,"rows")},function(t){return(0,i.ap)("gap",t.gap)},function(t){return(0,i.ap)("width",t.width)},function(t){return(0,i.ap)("height",t.height)},function(t){return(0,i.ap)("min-width",t.minWidth)},function(t){return(0,i.ap)("min-height",t.minHeight)},function(t){return(0,i.ap)("max-width",t.maxWidth)},function(t){return(0,i.ap)("max-height",t.maxHeight)},function(t){return t.autoFlow&&(0,i.W1)("grid-auto-flow",t.autoFlow)},function(t){return t.columns&&t.autoFlow&&(0,i.W1)("grid-auto-flow",t.autoFlow)});e.Z=function(t){var e=t.children,n=t.width,r=t.height,i=t.minWidth,a=t.minHeight,u=t.maxWidth,c=t.maxHeight,h=t.gap,p=t.columns,d=t.rows,v=t.alignItems,g=t.justifyContent,m=t.justifyItems,y=t.alignContent,b=t.autoFlow,w=t.className,O=t.style,E=l(t,["children","width","height","minWidth","minHeight","maxWidth","maxHeight","gap","columns","rows","alignItems","justifyContent","justifyItems","alignContent","autoFlow","className","style"]);return(w||O)&&console.warn(s.qF),o.createElement(f,Object.assign({alignItems:void 0===v?"center":v,justifyContent:void 0===g?"start":g,justifyItems:m,alignContent:y,gap:h,columns:p,rows:d,width:n,height:r,minWidth:i,minHeight:a,maxWidth:u,maxHeight:c,autoFlow:b},E),e)}},84863:function(t,e,n){n.d(e,{dz:function(){return m},oW:function(){return f}});var r=n(82729),i=n(66013),o=n(67294),s=n(31666),a=n(34383),u=n(55479);function c(){var t=(0,r._)(["\n display: ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n ","\n"]);return c=function(){return t},t}var l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},f={body:{size:"body-md",fontWeight:"book"},title:{size:"body-lg",fontWeight:"bold"},mainTitle:{size:"heading-md",fontWeight:"bold"}},h=function(t){return a.iH[t].fontSize*a.bf},p=function(t){return(0,i.u)(a.iH[t].fontSize)},d=function(t){return a.iH[t].fontSize*a.iH[t].lineHeight*a.bf},v=function(t,e,n,r){var i=(e-t)/(r-n);return"".concat(-n*i+t,"px + ").concat(100*i,"vw")},g=s.Z.span(c(),function(t){return t.isInline?"inline":"block"},function(t){return!t.sizeMinMax&&(0,i.y3)(t.size)},function(t){return(0,i.On)(t.fontWeight)},function(t){return t.color&&"color: ".concat((0,i.Rv)(t.color))},function(t){return t.isDimmed&&"opacity: ".concat(.6)},function(t){return t.alignment&&"text-align: ".concat(t.alignment)},function(t){return t.hasEllipsis&&!t.ellipsisLines&&"\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n "},function(t){return t.hasEllipsis&&t.ellipsisLines&&"\n overflow: hidden;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: ".concat(t.ellipsisLines,";\n ")},function(t){return!t.hasEllipsis&&t.noWrap&&"white-space: nowrap; overflow: hidden;"},function(t){return t.sizeMinMax&&"\n min-height: 0vw;\n font-size: clamp(\n ".concat(p(t.sizeMinMax[0]),",\n ").concat(v(h(t.sizeMinMax[0]),h(t.sizeMinMax[1]),496,1200),",\n ").concat(p(t.sizeMinMax[1]),"\n );\n\n line-height: clamp(\n ").concat(d(t.sizeMinMax[0]),"px,\n ").concat(v(d(t.sizeMinMax[0]),d(t.sizeMinMax[1]),496,1200),",\n ").concat(d(t.sizeMinMax[1]),"px\n );\n ")}),m=["left","right","center"];e.ZP=function(t){var e=t.children,n=t.size,r=t.color,i=t.isInline,s=t.isDimmed,a=t.fontWeight,c=t.hasEllipsis,h=t.ellipsisLines,p=t.noWrap,d=t.variant,v=t.htmlTag,m=t.alignment,y=t.sizeMinMax,b=l(t,["children","size","color","isInline","isDimmed","fontWeight","hasEllipsis","ellipsisLines","noWrap","variant","htmlTag","alignment","sizeMinMax"]);return s&&console.warn(u.$P),o.createElement(g,Object.assign({size:d?f[d].size:void 0===n?"body-md":n,color:r,isInline:i,isDimmed:s,fontWeight:d?f[d].fontWeight:void 0===a?"book":a,hasEllipsis:c,ellipsisLines:h,noWrap:p,variant:d,as:void 0===v?"span":v,alignment:m,sizeMinMax:y},b),e)}},55479:function(t,e,n){n.d(e,{$P:function(){return r},OY:function(){return o},oP:function(){return s},qF:function(){return i}});var r="Lens: Text prop 'isDimmed' is deprecated, use color=\"bodyDimmed\" instead.",i="Lens: don't apply custom styles to components, learn more: https://lens.loom.dev/guides/development-best-practices/the-risk-of-modifying-components-with-custom-styles.",o="Lens: Distribute component is deprecated. Use Arrange or Split.",s="Lens: Layout component is deprecated. Use Arrange or Split."},62372:function(t,e,n){n.d(e,{XI:function(){return D},lq:function(){return m},sJ:function(){return I}});var r,i,o=n(67294),s=n(73935);function a(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(t){var e=(0,o.useRef)(null);return function(n){n&&n!==e.current&&(e.current=n,t(n))}}var d="undefined"!=typeof window?o.useLayoutEffect:o.useEffect;function v(t){return parseFloat(t.replace("px",""))}function g(t,e,n){return tn?n:t}function m(){for(var t=arguments.length,e=Array(t),n=0;n=0})}},{key:"negativeSides",get:function(){var t=this;return Object.fromEntries(P.filter(function(e){return t[e]<0}).map(function(e){return[e,t[e]]}))}}]),t}();function M(){for(var t=arguments.length,e=Array(t),n=0;nv?v-b:0;h[n.prop]=g(b+t+w,d,v),h[n.opposite.prop]=h[n.prop]+n.factor(o[c])}h.width=h.right-h.left,h.height=h.bottom-h.top;var O=L.create(h);return 0===t&&(this._cachedLayerBounds=O),O},e.getLayerCollisionBounds=function(){var t=this.offsets.container;return this.getLayerBounds().mapSides(function(e,n){return n-e.factor(t)}).merge(function(e){return{width:e.width+2*t,height:e.height+2*t}})},e.getContainerOffsets=function(t){if(this._cachedContainerOffsets&&!t)return this._cachedContainerOffsets;var e=this.subjectsBounds.merge({layer:t||this.getLayerCollisionBounds()}),n=j.mergeSmallestSides(e.layerOffsetsToScrollContainers);return t||(this._cachedContainerOffsets=n),n},u(t,[{key:"type",get:function(){return this.primary.prop+"-"+("center"===this.secondary.prop?"center":["bottom","right"].includes(this.secondary.prop)?"end":"start")}},{key:"triggerIsBigger",get:function(){var t=this.secondary.isHorizontal,e=this.subjectsBounds,n=e.triggerHasBiggerWidth,r=e.triggerHasBiggerHeight;return t&&n||!t&&r}},{key:"fitsContainer",get:function(){return this.getContainerOffsets().allSidesArePositive}},{key:"visibleSurface",get:function(){var t=this.getLayerBounds(),e=this.getContainerOffsets(t).negativeSides;for(var n in e)e[n]=-e[n];return t.substract(e).surface}},{key:"secondaryOffsetSide",get:function(){var t,e,n=this;return(null!=(t=null==(e=Object.entries(this.getContainerOffsets().negativeSides).map(function(t){var e=t[0],n=t[1];return[C[e],n]}).filter(function(t){var e=t[0];return n.primary.isOppositeDirection(e)}).sort(function(t,e){var n=t[1];return e[1]-n}))?void 0:e[0])?t:[])[0]||null}}]),t}(),k=function(t){function e(){return t.apply(this,arguments)||this}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l(e,t),e.prototype.getLayerBounds=function(){var t=this.subjectsBounds,e=t.trigger,n=t.layer,r=L.empty();return r.top=e.top+e.height/2-n.height/2,r.bottom=r.top+n.height,r.left=e.left+e.width/2-n.width/2,r.right=r.left+n.width,r.width=r.right-r.left,r.height=r.bottom-r.top,r},e}(T),B={position:"absolute",willChange:"top, left",left:null,right:null,top:null,bottom:null},H=function(){function t(t,e,n){this.placements=void 0,this.config=void 0,this.subjectsBounds=void 0,this.placements=t,this.config=e,this.subjectsBounds=n}t.getSidesFromPlacementType=function(t){var e,n=t.split("-"),r=n[0],i=n[1],o=C[r];return e="center"===i?S.center:o.isHorizontal?"start"===i?S.top:S.bottom:"start"===i?S.left:S.right,[o,e]},t.create=function(e,n){var r={arrow:n.arrowOffset,container:n.containerOffset,trigger:n.triggerOffset};function i(i){void 0===i&&(i=n.placement);var o=t.getSidesFromPlacementType(i),s=o[0],a=o[1],u=C[s.isHorizontal?n.preferY:n.preferX],c=!s.isHorizontal&&e.triggerHasBiggerWidth||s.isHorizontal&&e.triggerHasBiggerHeight;function l(t,i){return new T(t,i,e,n.layerDimensions,r)}var f=[];return f[0]=l(s,a),f[1]=l(s,a.isCenter?u:S.center),f[2]=l(s,S[(a.opposite.isCenter?u.opposite:a.opposite).prop]),f[3]=l(u,c?s:S[s.opposite.prop]),f[4]=l(u,S.center),f[5]=l(u,c?S[s.opposite.prop]:s),f[6]=l(C[u.opposite.prop],c?s:S[s.opposite.prop]),f[7]=l(C[u.opposite.prop],S.center),f[8]=l(C[u.opposite.prop],c?S[s.opposite.prop]:s),f[9]=l(C[s.opposite.prop],a),f[10]=l(C[s.opposite.prop],a.isCenter?u:S.center),f[11]=l(C[s.opposite.prop],S[(a.opposite.isCenter?u.opposite:a.opposite).prop]),f=f.filter(function(t){return t.type===n.placement||n.possiblePlacements.includes(t.type)})}return"center"===n.placement?new t([new k(S.center,S.center,e,n.layerDimensions,r)].concat(i(n.preferY+"-"+n.preferX)),n,e):new t(i(),n,e)};var e=t.prototype;return e.filterPlacementsBySide=function(t){return this.placements.filter(function(e){return e.primary===t})},e.findFirstPlacementThatFits=function(){return this.placements.find(function(t){return t.fitsContainer})},e.placementWithBiggestVisibleSurface=function(){return this.placements.map(function(t){return{placement:t,surface:t.visibleSurface}}).sort(function(t,e){return e.surface-t.surface})[0].placement},e.findSuitablePlacement=function(){return this.config.auto?this.findFirstPlacementThatFits()||this.placementWithBiggestVisibleSurface():this.placements[0]},e.getSecondaryOffset=function(t){var e,n=this.config,r=n.auto,i=n.snap;if(!r||i||t instanceof k)return 0;var o=this.filterPlacementsBySide(t.primary);if(0===o.indexOf(t)&&t.fitsContainer)return 0;var s=o.find(function(t){return!t.fitsContainer});if(!s)return 0;var a=s.secondaryOffsetSide;if(!a)return 0;var u=t.getContainerOffsets(),c=t.secondary;return e=t.triggerIsBigger||s===t?a.isPush?-1:1:c===S.left||[S.top,S.center].includes(c)&&a.isPush?-1:1,u[a.prop]*e},e.getStyles=function(t,e,n,r){var i={willChange:"top, left, width, height"};return{arrow:function(t,e,n){if(e.primary.isCenter)return B;var r,i,o,s,a,u,l,f,h,p,d=t.layer,v=t.trigger,m=t.arrow,y=e.primary.oppositeSizeProp,b=v[y]>d[y],w=n+m[y]/2,O=d[y]-m[y]/2-n,E=(r=t.layer,i=t.trigger,o=t.arrow,s=e.primary.oppositeSizeProp,u=(a=e.primary.isHorizontal?["top","bottom"]:["left","right"])[0],l=a[1],((f=r[u]+r[s]/2-i[u]-o[s]/2-n)<0?-f:0)+((h=r[l]-r[s]/2-i[l]+o[s]/2+n)>0?-h:0)),_=e.primary.prop,C=e.primary.oppositeCssProp,S=b?d[y]/2+E:v[C]+v[y]/2-d[C];return c({},B,((p={})[_]="100%",p[C]=g(S,w,O),p))}(this.subjectsBounds.merge({layer:t}),e,this.config.arrowOffset),layer:this.config.overflowContainer?c({},i,{position:"fixed",top:t.top,left:t.left}):c({},i,{position:"absolute",top:t.top-this.subjectsBounds.parent.top+n.top-r.top,left:t.left-this.subjectsBounds.parent.left+n.left-r.left})}},e.getHasDisappeared=function(t){var e=this.config.overflowContainer?this.subjectsBounds.trigger:t,n=j.mergeSmallestSides(this.subjectsBounds.offsetsToScrollContainers(e,!0));return Object.entries(n.negativeSides).some(function(t){var n=t[0];return t[1]<=-e[C[n].sizeProp]})?"full":n.allSidesArePositive?null:"partial"},e.result=function(t,e){var n=this.findSuitablePlacement(),r=this.getSecondaryOffset(n),i=n.getLayerBounds(r);return{styles:this.getStyles(i,n,t,e),layerSide:n.primary.prop,placement:n,layerBounds:i,hasDisappeared:this.getHasDisappeared(i)}},t}(),R=function(){function t(t,e){this.overflowContainer=void 0,this.trigger=void 0,this.layer=void 0,this.arrow=void 0,this.parent=void 0,this.window=void 0,this.scrollContainers=void 0,this.overflowContainer=e,Object.assign(this,t)}t.create=function(e,n,r,i,o,s,a,u){var c=L.fromWindow(e);return new t({layer:L.fromElement(n,{environment:e,withTransform:!1}),trigger:u?L.create(x(u())):L.fromElement(r),arrow:o?L.fromElement(o):L.empty(),parent:i?L.fromElement(i):c,window:c,scrollContainers:[c].concat(s.map(function(t){return L.fromElement(t,{withScrollbars:!1})}))},a)};var e=t.prototype;return e.merge=function(e){return new t(c({},this,e),this.overflowContainer)},e.offsetsToScrollContainers=function(t,e){return void 0===e&&(e=!1),(this.overflowContainer&&!e?[this.window]:this.scrollContainers).map(function(e){return e.offsetsTo(t)})},u(t,[{key:"layerOffsetsToScrollContainers",get:function(){return this.offsetsToScrollContainers(this.layer)}},{key:"triggerHasBiggerWidth",get:function(){return this.trigger.width>this.layer.width}},{key:"triggerHasBiggerHeight",get:function(){return this.trigger.height>this.layer.height}}]),t}(),W={auto:!1,arrowOffset:0,containerOffset:10,triggerOffset:0,overflowContainer:!0,placement:"top-center",possiblePlacements:["bottom-start","bottom-end","bottom-center","top-start","top-center","top-end","left-end","left-center","left-start","right-end","right-center","right-start","center"],preferX:"right",preferY:"bottom",snap:!1,container:void 0};function I(t){var e,n,r,i,a,u,l,f,g,O,E,_,C,S,P,j,M,x,z,L,T,k,B,I,D,F,N,G,Y,V,X,q,U,Z,$,J,K,Q,tt=t.isOpen,te=void 0!==tt&&tt,tn=t.overflowContainer,tr=void 0===tn?W.overflowContainer:tn,ti=t.environment,to=void 0===ti?"undefined"!=typeof window?window:void 0:ti,ts=t.ResizeObserver,ta=t.placement,tu=void 0===ta?W.placement:ta,tc=t.possiblePlacements,tl=void 0===tc?W.possiblePlacements:tc,tf=t.preferX,th=void 0===tf?W.preferX:tf,tp=t.preferY,td=void 0===tp?W.preferY:tp,tv=t.auto,tg=void 0===tv?W.auto:tv,tm=t.snap,ty=void 0===tm?W.snap:tm,tb=t.triggerOffset,tw=void 0===tb?W.triggerOffset:tb,tO=t.containerOffset,tE=void 0===tO?W.containerOffset:tO,t_=t.arrowOffset,tC=void 0===t_?W.arrowOffset:t_,tS=t.container,tP=void 0===tS?W.container:tS,tj=t.layerDimensions,tM=void 0===tj?null:tj,tx=t.onDisappear,tz=t.onOutsideClick,tL=t.onParentClose,tT=t.trigger,tk=(0,o.useState)(function(){return{layerSide:"center"===tu?"center":H.getSidesFromPlacementType(tu)[0].prop,styles:{layer:{position:tr?"fixed":"absolute",top:0,left:0},arrow:{position:"absolute",top:0,left:0}}}}),tB=tk[0],tH=tk[1],tR=(0,o.useRef)(null),tW=(e=(0,o.useRef)(tB),te?e.current=tB:e.current=null,e),tI=(0,o.useRef)({cancelled:!1});(0,o.useEffect)(function(){return function(){tI.current.cancelled=!0}},[]);var tA=(0,o.useCallback)(function(t,e,n){var r=t.arrow,i=t.layer,o=t.scrollContainers,s=t.trigger,a=o[0],u=R.create(to,i,s,a,r,o,tr,null==tT?void 0:tT.getBounds),c=H.create(u,{placement:tu,possiblePlacements:tl,auto:tg,layerDimensions:tM,arrowOffset:tC,containerOffset:tE,triggerOffset:tw,preferX:th,preferY:td,snap:ty,overflowContainer:tr}).result(e,n),l=c.hasDisappeared,f={layerSide:c.layerSide,styles:c.styles};if(!tW.current||function(t,e){if(t.layerSide!==e.layerSide)return!0;for(var n=0,r=["position","top","left","right","bottom"];n0},removeAllEventSubscriptions:function(){for(var t,e=h(M.current);!(t=e()).done;)(0,t.value)();M.current=[]},addEventSubscription:function(t){M.current.push(t)}}},[])).hasEventSubscriptions,L=x.addEventSubscription,T=x.removeAllEventSubscriptions,k=(0,o.useCallback)(function(){var t=P(),e=t.layer,n=t.trigger,r=t.scrollContainers,o=r[0];if(!e)throw Error(y("layer"));if(!n&&!E)throw Error(y("trigger"));var s={top:0,left:0};if(o){var u=o.scrollLeft;s={top:o.scrollTop,left:u}}else{var c=a.scrollX;s={top:a.scrollY,left:c}}var l={left:0,top:0};if(o){var f=a.getComputedStyle(o),h=f.borderLeftWidth,p=f.borderTopWidth;l={left:v(h)||0,top:v(p)||0}}i({layer:e,trigger:n,scrollContainers:r,arrow:O.current},s,l)},[P,i,a,O,E]),B=(0,o.useCallback)(function(){var t=P(),e=t.trigger,n=t.layer,r=t.scrollContainers;if(!n)throw Error(y("layer"));if(!e&&!E)throw Error(y("trigger"));if(g){for(var i=!1,o=new g(function(){if(!i){i=!0;return}k()}),s=0,u=[e,n,document.body];s0},t.prototype.connect_=function(){i&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){i&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;a.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),l=function(t,e){for(var n=0,r=Object.keys(e);n0},t}(),w="undefined"!=typeof WeakMap?new WeakMap:new r,O=function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=new b(e,c.getInstance(),this);w.set(this,n)};["observe","unobserve","disconnect"].forEach(function(t){O.prototype[t]=function(){var e;return(e=w.get(this))[t].apply(e,arguments)}});var E=void 0!==o.ResizeObserver?o.ResizeObserver:O;e.Z=E}}]);