@worldresources/wri-design-systems 2.138.7 → 2.139.0
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/dist/index.cjs.js +101 -101
- package/dist/index.d.ts +3 -1
- package/dist/index.esm.js +71 -71
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2292,12 +2292,12 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
2292
2292
|
* focus-trap 6.9.4
|
|
2293
2293
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
2294
2294
|
*/
|
|
2295
|
-
function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){Zd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qd,Gd=(qd=[],{activateTrap:function(e){if(qd.length>0){var t=qd[qd.length-1];t!==e&&t.pause()}var n=qd.indexOf(e);-1===n||qd.splice(n,1),qd.push(e)},deactivateTrap:function(e){var t=qd.indexOf(e);-1!==t&&qd.splice(t,1),qd.length>0&&qd[qd.length-1].unpause()}}),Wd=function(e){return setTimeout(e,0)},Ud=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Xd=function(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"function"==typeof e?e.apply(void 0,n):e},Yd=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Kd=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Fd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=Id(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?_d([t],n.includeContainer,{filter:Md.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Od(t,n.includeContainer,Md.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return zd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return zd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Yd(e);l(t)>=0||(Xd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Hd(t,i.tabbableOptions)}):Xd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Yd(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Xd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Yd(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Ud(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=Ud(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Yd(e);l(t)>=0||Xd(i.clickOutsideDeactivates,e)||Xd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Gd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Wd((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Fd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Gd.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Wd((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Jd=!1;if("undefined"!=typeof window){var Qd={get passive(){Jd=!0}};window.addEventListener("testPassive",null,Qd),window.removeEventListener("testPassive",null,Qd)}var eu,tu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),nu=[],ru=!1,iu=-1,ou=void 0,au=void 0,lu=function(e){return nu.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},su=function(e){var t=e||window.event;return!!lu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},cu=function(e,t){if(e){if(!nu.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};nu=[].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)}(nu),[n]),tu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(iu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-iu;!lu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?su(e):e.stopPropagation())}(t,e)},ru||(document.addEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!0)):function(e){if(void 0===au){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(au=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===ou&&(ou=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.")},du=function(e){e?(nu=nu.filter((function(t){return t.targetElement!==e})),tu?(e.ontouchstart=null,e.ontouchmove=null,ru&&0===nu.length&&(document.removeEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!1)):nu.length||(void 0!==au&&(document.body.style.paddingRight=au,au=void 0),void 0!==ou&&(document.body.style.overflow=ou,ou=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},uu=[],pu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(eu||(eu={}));var hu,fu=function(e){return Object.freeze(e)},gu=function(e,t){this.inlineSize=e,this.blockSize=t,fu(this)},vu=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,fu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),mu=function(e){return e instanceof SVGElement&&"getBBox"in e},xu=function(e){if(mu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},bu=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},yu="undefined"!=typeof window?window:{},Cu=new WeakMap,wu=/auto|scroll/,$u=/^tb|vertical/,ku=/msie|trident/i.test(yu.navigator&&yu.navigator.userAgent),Su=function(e){return parseFloat(e||"0")},Eu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new gu((n?t:e)||0,(n?e:t)||0)},Ou=fu({devicePixelContentBoxSize:Eu(),borderBoxSize:Eu(),contentBoxSize:Eu(),contentRect:new vu(0,0,0,0)}),_u=function(e,t){if(void 0===t&&(t=!1),Cu.has(e)&&!t)return Cu.get(e);if(xu(e))return Cu.set(e,Ou),Ou;var n=getComputedStyle(e),r=mu(e)&&e.ownerSVGElement&&e.getBBox(),i=!ku&&"border-box"===n.boxSizing,o=$u.test(n.writingMode||""),a=!r&&wu.test(n.overflowY||""),l=!r&&wu.test(n.overflowX||""),s=r?0:Su(n.paddingTop),c=r?0:Su(n.paddingRight),d=r?0:Su(n.paddingBottom),u=r?0:Su(n.paddingLeft),p=r?0:Su(n.borderTopWidth),h=r?0:Su(n.borderRightWidth),f=r?0:Su(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Su(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:Su(n.width)-C-y,k=r?r.height:Su(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=fu({devicePixelContentBoxSize:Eu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Eu(S,E,o),contentBoxSize:Eu($,k,o),contentRect:new vu(u,s,$,k)});return Cu.set(e,O),O},Lu=function(e,t,n){var r=_u(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case eu.DEVICE_PIXEL_CONTENT_BOX:return a;case eu.BORDER_BOX:return i;default:return o}},Ru=function(e){var t=_u(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=fu([t.borderBoxSize]),this.contentBoxSize=fu([t.contentBoxSize]),this.devicePixelContentBoxSize=fu([t.devicePixelContentBoxSize])},Tu=function(e){if(xu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Pu=function(){var e=1/0,t=[];uu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Ru(t.target),i=Tu(t.target);r.push(n),t.lastReportedSize=Lu(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Du=function(e){uu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Tu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Mu=function(){var e=0;for(Du(e);uu.some((function(e){return e.activeTargets.length>0}));)e=Pu(),Du(e);return uu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:pu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=pu),window.dispatchEvent(e)}(),e>0},Nu=[],ju=function(e){if(!hu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Nu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),hu=function(){n.textContent="".concat(t?t--:t++)}}Nu.push(e),hu()},Vu=0,Iu={attributes:!0,characterData:!0,childList:!0,subtree:!0},zu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Au=function(e){return void 0===e&&(e=0),Date.now()+e},Hu=!1,Bu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Hu){Hu=!0;var n,r=Au(e);n=function(){var n=!1;try{n=Mu()}finally{if(Hu=!1,e=r-Au(),!Vu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ju((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Iu)};document.body?t():yu.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),zu.forEach((function(t){return yu.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),zu.forEach((function(t){return yu.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Fu=function(e){!Vu&&e>0&&Bu.start(),!(Vu+=e)&&Bu.stop()},Zu=function(){function e(e,t){this.target=e,this.observedBox=t||eu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Lu(this.target,this.observedBox,!0);return function(e){return!mu(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Gu=new WeakMap,Wu=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Uu=function(){function e(){}return e.connect=function(e,t){var n=new qu(e,t);Gu.set(e,n)},e.observe=function(e,t,n){var r=Gu.get(e),i=0===r.observationTargets.length;Wu(r.observationTargets,t)<0&&(i&&uu.push(r),r.observationTargets.push(new Zu(t,n&&n.box)),Fu(1),Bu.schedule())},e.unobserve=function(e,t){var n=Gu.get(e),r=Wu(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&uu.splice(uu.indexOf(n),1),n.observationTargets.splice(r,1),Fu(-1))},e.disconnect=function(e){var t=this,n=Gu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xu=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Uu.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.unobserve(this,e)},e.prototype.disconnect=function(){Uu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Yu(){return Yu=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},Yu.apply(this,arguments)}function Ku(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Ju="undefined"!=typeof window?K:W;function Qu(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function ep(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var tp={box:"border-box"};function np(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Ju((function(){if(e.current&&r){var t=new Xu(s);return t.observe(e.current,tp),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function rp(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var ip={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},op={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},ap=function(e,t,n){return void 0===n&&(n=e.context),new ds(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Yu({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[ps({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),lp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],sp=["velocity"],cp=["onRest","config"],dp={tension:170,friction:26},up=dp.tension,pp=dp.friction,hp=Z.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?gp:h,g=e.snapPoints,v=void 0===g?vp:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=Ku(e,lp),R=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return Yu({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Yu({},t,((n={})[e]=!0,n))}))}}),[]);return W((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=R.ready,P=R.registerReady,D=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=ec((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,cu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,du(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Kd(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:K,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return ep(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),Ju((function(){if(e)return a(ep(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=np(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=np(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=np(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(ep).reduce((function(e,n){return e.add(Qu(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=ep("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:T,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);Ju((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Ku(n,sp),a=Ku(e,cp);return new Promise((function(e){return H(Yu({},a,{config:Yu({velocity:i},o,{mass:1,tension:up,friction:Math.max(pp,pp+(pp-pp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ss(ap,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:J((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:J((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:J((function(){try{return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:J((function(e,t){try{var n=me.current(e.y);return Q.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];W((function(){T&&we(l?"OPEN":"CLOSE")}),[l,we,T]),Ju((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return Q.current}}}),[we]),W((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=Cd((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?jc(x,u?0:ge.current,ve.current,.55):x<ge.current?jc(x,ge.current,2*ve.current,.55):jc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=Us([n.y,n.maxHeight],(function(e,t){return Math.round(Qu(t-e,0,16))+"px"})),i=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Qu(e,t,n)+"px"})),o=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Us([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Us([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Qu((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Us([n.y,n.minSnap],(function(e,t){return t?Qu(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return Z.createElement(Rc.div,Yu({},L,{"data-rsbs-root":!0,"data-rsbs-state":fp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Yu({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",Yu({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",Yu({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",Yu({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",Yu({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),fp=["closed","opening","open","closing","dragging","snapping","resizing"];function gp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function vp(e){return e.minHeight}var mp=["onSpringStart","onSpringEnd","skipInitialTransition"],xp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Ku(e,mp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");Ju((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?Z.createElement(fa,{"data-rsbs-portal":!0},Z.createElement(hp,Yu({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const bp=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c})=>{return H(xp,{css:(d=!!e,ie`
|
|
2295
|
+
function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach((function(t){Zd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qd,Gd=(qd=[],{activateTrap:function(e){if(qd.length>0){var t=qd[qd.length-1];t!==e&&t.pause()}var n=qd.indexOf(e);-1===n||qd.splice(n,1),qd.push(e)},deactivateTrap:function(e){var t=qd.indexOf(e);-1!==t&&qd.splice(t,1),qd.length>0&&qd[qd.length-1].unpause()}}),Wd=function(e){return setTimeout(e,0)},Ud=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},Xd=function(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"function"==typeof e?e.apply(void 0,n):e},Yd=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Kd=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=Fd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},l=function(e){return o.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},s=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},c=function(){var e=s("initialFocus");if(!1===e)return!1;if(void 0===e)if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map((function(e){var t,n,r=Id(e,i.tabbableOptions),o=(t=e,(n=(n=i.tabbableOptions)||{}).getShadowRoot?_d([t],n.includeContainer,{filter:Md.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Od(t,n.includeContainer,Md.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:o,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=o.findIndex((function(t){return t===e}));if(!(n<0))return t?o.slice(n+1).find((function(e){return zd(e,i.tabbableOptions)})):o.slice(0,n).reverse().find((function(e){return zd(e,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!s("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},p=function(e){var t=s("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=Yd(e);l(t)>=0||(Xd(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Hd(t,i.tabbableOptions)}):Xd(i.allowOutsideClick,e)||e.preventDefault())},f=function(e){var t=Yd(e),n=l(t)>=0;n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),u(o.mostRecentlyFocusedNode||c()))},g=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==Xd(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Yd(e);d();var n=null;if(o.tabbableGroups.length>0){var r=l(t),a=r>=0?o.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Ud(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var p=0===c?o.tabbableGroups.length-1:c-1;n=o.tabbableGroups[p].lastTabbableNode}}else{var h=Ud(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(a.container===t||Hd(t,i.tabbableOptions)&&!zd(t,i.tabbableOptions)&&!a.nextTabbableNode(t))&&(h=r),h>=0){var f=h===o.tabbableGroups.length-1?0:h+1;n=o.tabbableGroups[f].firstTabbableNode}}}else n=s("fallbackFocus");n&&(e.preventDefault(),u(n))}(e)},v=function(e){var t=Yd(e);l(t)>=0||Xd(i.clickOutsideDeactivates,e)||Xd(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},m=function(){if(o.active)return Gd.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?Wd((function(){u(c())})):u(c()),r.addEventListener("focusin",f,!0),r.addEventListener("mousedown",h,{capture:!0,passive:!1}),r.addEventListener("touchstart",h,{capture:!0,passive:!1}),r.addEventListener("click",v,{capture:!0,passive:!1}),r.addEventListener("keydown",g,{capture:!0,passive:!1}),n},x=function(){if(o.active)return r.removeEventListener("focusin",f,!0),r.removeEventListener("mousedown",h,!0),r.removeEventListener("touchstart",h,!0),r.removeEventListener("click",v,!0),r.removeEventListener("keydown",g,!0),n};return(n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),i=a(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var l=function(){i&&d(),m(),n&&n()};return i?(i(o.containers.concat()).then(l,l),this):(l(),this)},deactivate:function(e){if(!o.active)return this;var t=Fd({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,x(),o.active=!1,o.paused=!1,Gd.deactivateTrap(n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),s=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var d=function(){Wd((function(){c&&u(p(o.nodeFocusedBeforeActivation)),l&&l()}))};return c&&s?(s(p(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,x()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,d(),m(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&d(),this}}).updateContainerElements(e),n};var Jd=!1;if("undefined"!=typeof window){var Qd={get passive(){Jd=!0}};window.addEventListener("testPassive",null,Qd),window.removeEventListener("testPassive",null,Qd)}var eu,tu="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),nu=[],ru=!1,iu=-1,ou=void 0,au=void 0,lu=function(e){return nu.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},su=function(e){var t=e||window.event;return!!lu(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},cu=function(e,t){if(e){if(!nu.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};nu=[].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)}(nu),[n]),tu?(e.ontouchstart=function(e){1===e.targetTouches.length&&(iu=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-iu;!lu(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?su(e):e.stopPropagation())}(t,e)},ru||(document.addEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!0)):function(e){if(void 0===au){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(au=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===ou&&(ou=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.")},du=function(e){e?(nu=nu.filter((function(t){return t.targetElement!==e})),tu?(e.ontouchstart=null,e.ontouchmove=null,ru&&0===nu.length&&(document.removeEventListener("touchmove",su,Jd?{passive:!1}:void 0),ru=!1)):nu.length||(void 0!==au&&(document.body.style.paddingRight=au,au=void 0),void 0!==ou&&(document.body.style.overflow=ou,ou=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")},uu=[],pu="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(eu||(eu={}));var hu,fu=function(e){return Object.freeze(e)},gu=function(e,t){this.inlineSize=e,this.blockSize=t,fu(this)},vu=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,fu(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),mu=function(e){return e instanceof SVGElement&&"getBBox"in e},xu=function(e){if(mu(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},bu=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},yu="undefined"!=typeof window?window:{},Cu=new WeakMap,wu=/auto|scroll/,$u=/^tb|vertical/,ku=/msie|trident/i.test(yu.navigator&&yu.navigator.userAgent),Su=function(e){return parseFloat(e||"0")},Eu=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new gu((n?t:e)||0,(n?e:t)||0)},Ou=fu({devicePixelContentBoxSize:Eu(),borderBoxSize:Eu(),contentBoxSize:Eu(),contentRect:new vu(0,0,0,0)}),_u=function(e,t){if(void 0===t&&(t=!1),Cu.has(e)&&!t)return Cu.get(e);if(xu(e))return Cu.set(e,Ou),Ou;var n=getComputedStyle(e),r=mu(e)&&e.ownerSVGElement&&e.getBBox(),i=!ku&&"border-box"===n.boxSizing,o=$u.test(n.writingMode||""),a=!r&&wu.test(n.overflowY||""),l=!r&&wu.test(n.overflowX||""),s=r?0:Su(n.paddingTop),c=r?0:Su(n.paddingRight),d=r?0:Su(n.paddingBottom),u=r?0:Su(n.paddingLeft),p=r?0:Su(n.borderTopWidth),h=r?0:Su(n.borderRightWidth),f=r?0:Su(n.borderBottomWidth),g=u+c,v=s+d,m=(r?0:Su(n.borderLeftWidth))+h,x=p+f,b=l?e.offsetHeight-x-e.clientHeight:0,y=a?e.offsetWidth-m-e.clientWidth:0,C=i?g+m:0,w=i?v+x:0,$=r?r.width:Su(n.width)-C-y,k=r?r.height:Su(n.height)-w-b,S=$+g+y+m,E=k+v+b+x,O=fu({devicePixelContentBoxSize:Eu(Math.round($*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Eu(S,E,o),contentBoxSize:Eu($,k,o),contentRect:new vu(u,s,$,k)});return Cu.set(e,O),O},Lu=function(e,t,n){var r=_u(e,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case eu.DEVICE_PIXEL_CONTENT_BOX:return a;case eu.BORDER_BOX:return i;default:return o}},Ru=function(e){var t=_u(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=fu([t.borderBoxSize]),this.contentBoxSize=fu([t.contentBoxSize]),this.devicePixelContentBoxSize=fu([t.devicePixelContentBoxSize])},Tu=function(e){if(xu(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Pu=function(){var e=1/0,t=[];uu.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Ru(t.target),i=Tu(t.target);r.push(n),t.lastReportedSize=Lu(t.target,t.observedBox),i<e&&(e=i)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},Du=function(e){uu.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Tu(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Mu=function(){var e=0;for(Du(e);uu.some((function(e){return e.activeTargets.length>0}));)e=Pu(),Du(e);return uu.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:pu}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=pu),window.dispatchEvent(e)}(),e>0},Nu=[],ju=function(e){if(!hu){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Nu.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),hu=function(){n.textContent="".concat(t?t--:t++)}}Nu.push(e),hu()},Vu=0,Iu={attributes:!0,characterData:!0,childList:!0,subtree:!0},zu=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Au=function(e){return void 0===e&&(e=0),Date.now()+e},Hu=!1,Bu=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!Hu){Hu=!0;var n,r=Au(e);n=function(){var n=!1;try{n=Mu()}finally{if(Hu=!1,e=r-Au(),!Vu)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ju((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Iu)};document.body?t():yu.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),zu.forEach((function(t){return yu.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),zu.forEach((function(t){return yu.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),Fu=function(e){!Vu&&e>0&&Bu.start(),!(Vu+=e)&&Bu.stop()},Zu=function(){function e(e,t){this.target=e,this.observedBox=t||eu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Lu(this.target,this.observedBox,!0);return function(e){return!mu(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),qu=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},Gu=new WeakMap,Wu=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Uu=function(){function e(){}return e.connect=function(e,t){var n=new qu(e,t);Gu.set(e,n)},e.observe=function(e,t,n){var r=Gu.get(e),i=0===r.observationTargets.length;Wu(r.observationTargets,t)<0&&(i&&uu.push(r),r.observationTargets.push(new Zu(t,n&&n.box)),Fu(1),Bu.schedule())},e.unobserve=function(e,t){var n=Gu.get(e),r=Wu(n.observationTargets,t),i=1===n.observationTargets.length;r>=0&&(i&&uu.splice(uu.indexOf(n),1),n.observationTargets.splice(r,1),Fu(-1))},e.disconnect=function(e){var t=this,n=Gu.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Xu=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Uu.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bu(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Uu.unobserve(this,e)},e.prototype.disconnect=function(){Uu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Yu(){return Yu=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},Yu.apply(this,arguments)}function Ku(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}var Ju="undefined"!=typeof window?K:W;function Qu(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function ep(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var tp={box:"border-box"};function np(e,t){var n=t.label,r=t.enabled,i=t.resizeSourceRef,o=G(0),a=o[0],l=o[1];ne(n+": "+a);var s=J((function(e){l(e[0].borderBoxSize[0].blockSize),i.current="element"}),[i]);return Ju((function(){if(e.current&&r){var t=new Xu(s);return t.observe(e.current,tp),function(){t.disconnect()}}}),[e,s,r]),r?a:0}function rp(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var ip={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},op={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},ap=function(e,t,n){return void 0===n&&(n=e.context),new ds(e,t,n)}({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:Yu({},ip,op)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:Yu({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[ps({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(rp()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}}),lp=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],sp=["velocity"],cp=["onRest","config"],dp={tension:170,friction:26},up=dp.tension,pp=dp.friction,hp=Z.forwardRef((function(e,t){var n=e.children,r=e.sibling,i=e.className,o=e.footer,a=e.header,l=e.open,s=e.initialState,c=e.lastSnapRef,d=e.initialFocusRef,u=e.onDismiss,p=e.maxHeight,h=e.defaultSnap,f=void 0===h?gp:h,g=e.snapPoints,v=void 0===g?vp:g,m=e.blocking,x=void 0===m||m,b=e.scrollLocking,y=void 0===b||b,C=e.style,w=e.onSpringStart,$=e.onSpringCancel,k=e.onSpringEnd,S=e.reserveScrollBarGap,E=void 0===S?x:S,O=e.expandOnContentDrag,_=void 0!==O&&O,L=Ku(e,lp),R=function(){var e=G(!1),t=e[0],n=e[1],r=G({}),i=r[0],o=r[1],a=J((function(e){return o((function(t){var n;return Yu({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return Yu({},t,((n={})[e]=!0,n))}))}}),[]);return W((function(){var e=Object.values(i);0!==e.length&&e.every(Boolean)&&n(!0)}),[i]),{ready:t,registerReady:a}}(),T=R.ready,P=R.registerReady,D=Y(!1),M=Y(w),N=Y($),j=Y(k);W((function(){M.current=w,N.current=$,j.current=k}),[$,w,k]);var V,I,z=ec((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),A=z[0],H=z[1],B=Y(null),F=Y(null),q=Y(null),U=Y(null),X=Y(null),K=Y(null),Q=Y(0),re=Y(),ie=Y(!1),oe=(V=ee((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),I=Y(null==V?void 0:V.matches),ne(I.current?"reduce":"no-preference"),W((function(){var e=function(e){I.current=e.matches};return null==V||V.addListener(e),function(){return null==V?void 0:V.removeListener(e)}}),[V]),I),ae=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,i=Y({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return i.current.deactivate(),void(i.current={activate:function(){},deactivate:function(){}});var e=t.current,o=!1;i.current={activate:function(){o||(o=!0,cu(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){o&&(o=!1,du(e))}}}),[n,t,r]),i}({targetRef:F,enabled:T&&y,reserveScrollBarGap:E}),le=function(e){var t=e.targetRef,n=e.enabled,r=Y({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return ne(n?"Enabled":"Disabled"),W((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,o=[],a=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(o.push(n),a.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,a.forEach((function(e,t){var n=o[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),o=[],a=[])}}}),[t,n]),r}({targetRef:B,enabled:T&&x}),se=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,i=e.enabled,o=Y({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return ne(i?"Enabled":"Disabled"),W((function(){if(!i)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,a=Kd(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),l=!1;o.current={activate:function(){try{return l?Promise.resolve():(l=!0,Promise.resolve(a.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){l&&(l=!1,a.deactivate())}}}),[i,n,r,t]),o}({targetRef:B,fallbackRef:K,initialFocusRef:d||void 0,enabled:T&&x&&!1!==d}),ce=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,i=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,i=e.footerRef,o=e.headerEnabled,a=e.headerRef,l=e.registerReady,s=e.resizeSourceRef,c=ee((function(){return l("contentHeight")}),[l]),d=function(e,t,n){var r=ee((function(){return t("maxHeight")}),[t]),i=G((function(){return ep(e)||"undefined"!=typeof window?window.innerHeight:0})),o=i[0],a=i[1],l=o>0,s=Y(0);return ne(e?"controlled":"auto"),W((function(){l&&r()}),[l,r]),Ju((function(){if(e)return a(ep(e)),void(n.current="maxheightprop");var t=function(){s.current||(s.current=requestAnimationFrame((function(){a(window.innerHeight),n.current="window",s.current=0})))};return window.addEventListener("resize",t),a(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(s.current)}}),[e,r,n]),o}(n,l,s),u=np(a,{label:"headerHeight",enabled:o,resizeSourceRef:s}),p=np(t,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),h=np(i,{label:"footerHeight",enabled:r,resizeSourceRef:s}),f=Math.min(d-u-h,p)+u+h;ne("minHeight: "+f);var g=p>0;return W((function(){g&&c()}),[g,c]),{maxHeight:d,minHeight:f,headerHeight:u,footerHeight:h}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),a=o.maxHeight,l=o.minHeight,s=o.headerHeight,c=o.footerHeight,d=function(e,t){var n=[].concat(e).map(ep).reduce((function(e,n){return e.add(Qu(n,0,t)),e}),new Set),r=Array.from(n),i=Math.min.apply(Math,r);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");var o=Math.max.apply(Math,r);if(Number.isNaN(o))throw new TypeError("maxSnap is NaN");return{snapPoints:r,minSnap:i,maxSnap:o}}(i?t({height:n.current,footerHeight:c,headerHeight:s,minHeight:l,maxHeight:a}):[0],a),u=d.snapPoints,p=d.minSnap,h=d.maxSnap;return ne("minSnap: "+p+", maxSnap:"+h),{minSnap:p,maxSnap:h,findSnap:function(e){var t=ep("function"==typeof e?e({footerHeight:c,headerHeight:s,height:n.current,minHeight:l,maxHeight:a,snapPoints:u,lastSnap:r.current}):e);return u.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),p)},maxHeight:a}}({contentRef:q,controlledMaxHeight:p,footerEnabled:!!o,footerRef:X,getSnapPoints:v,headerEnabled:!1!==a,headerRef:U,heightRef:Q,lastSnapRef:c,ready:T,registerReady:P,resizeSourceRef:re}),de=ce.minSnap,ue=ce.maxSnap,pe=ce.maxHeight,he=ce.findSnap,fe=Y(pe),ge=Y(de),ve=Y(ue),me=Y(he),xe=Y(0);Ju((function(){fe.current=pe,ve.current=ue,ge.current=de,me.current=he,xe.current=he(f)}),[he,f,pe,ue,de]);var be=J((function(e){var t=e.onRest,n=e.config,r=(n=void 0===n?{}:n).velocity,i=void 0===r?1:r,o=Ku(n,sp),a=Ku(e,cp);return new Promise((function(e){return H(Yu({},a,{config:Yu({velocity:i},o,{mass:1,tension:up,friction:Math.max(pp,pp+(pp-pp*i))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[H]),ye=Ss(ap,{devTools:!1,actions:{onOpenCancel:J((function(){return null==N.current?void 0:N.current({type:"OPEN"})}),[]),onSnapCancel:J((function(e){return null==N.current?void 0:N.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:J((function(){return null==N.current?void 0:N.current({type:"CLOSE"})}),[]),onResizeCancel:J((function(){return null==N.current?void 0:N.current({type:"RESIZE",source:re.current})}),[]),onOpenEnd:J((function(){return null==j.current?void 0:j.current({type:"OPEN"})}),[]),onSnapEnd:J((function(e,t){return null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:J((function(){return null==j.current?void 0:j.current({type:"RESIZE",source:re.current})}),[])},context:{initialState:s},services:{onSnapStart:J((function(e,t){try{return Promise.resolve(null==M.current?void 0:M.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:J((function(){try{return Promise.resolve(null==M.current?void 0:M.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:J((function(e,t){try{return Promise.resolve(null==j.current?void 0:j.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:J((function(){try{return Promise.resolve(null==j.current?void 0:j.current({type:"RESIZE",source:re.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:J((function(e,t){try{return Promise.resolve(be({y:xe.current,ready:0,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),activate:J((function(e,t){try{return D.current=!0,Promise.resolve(Promise.all([ae.current.activate(),se.current.activate(),le.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[le,se,ae]),deactivate:J((function(){try{return ae.current.deactivate(),se.current.deactivate(),le.current.deactivate(),D.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[le,se,ae]),openImmediately:J((function(){try{return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be]),openSmoothly:J((function(){try{return Promise.resolve(be({y:0,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:!0})).then((function(){return Q.current=xe.current,Promise.resolve(be({y:xe.current,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:xe.current,immediate:oe.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe]),snapSmoothly:J((function(e,t){try{var n=me.current(e.y);return Q.current=n,c.current=n,Promise.resolve(be({y:n,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:oe.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),resizeSmoothly:J((function(){try{var e=me.current(Q.current);return Q.current=e,c.current=e,Promise.resolve(be({y:e,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:"element"!==re.current||oe.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[be,c,oe]),closeSmoothly:J((function(e,t){try{return be({minSnap:Q.current,immediate:!0}),Q.current=0,Promise.resolve(be({y:0,maxHeight:fe.current,maxSnap:ve.current,immediate:oe.current})).then((function(){return Promise.resolve(be({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[be,oe])}}),Ce=ye[0],we=ye[1];W((function(){T&&we(l?"OPEN":"CLOSE")}),[l,we,T]),Ju((function(){(pe||ue||de)&&we("RESIZE")}),[pe,ue,de,we]),W((function(){return function(){ae.current.deactivate(),se.current.deactivate(),le.current.deactivate()}}),[le,se,ae]),te(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,r=n.velocity,i=void 0===r?1:r,o=n.source,a=void 0===o?"custom":o;we("SNAP",{payload:{y:me.current(e),velocity:i,source:a}})},get height(){return Q.current}}}),[we]),W((function(){var e=F.current,t=function(e){ie.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return _&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[_,F]);var $e=Cd((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],r=(n=void 0===n?{}:n).closeOnTap,i=void 0!==r&&r,o=n.isContentDragging,a=void 0!==o&&o,l=e.cancel,s=e.direction[1],c=e.down,d=e.first,p=e.last,h=e.memo,f=void 0===h?A.y.getValue():h,g=e.tap,v=e.velocity,m=-1*e.movement[1];if(!D.current)return l(),f;if(u&&i&&g)return l(),setTimeout((function(){return u()}),0),f;if(g)return f;var x=f+m,b=m*v,y=Math.max(ge.current,Math.min(ve.current,x+2*b));if(!c&&u&&s>0&&x+b<ge.current/2)return l(),u(),f;var C=c?u||ge.current!==ve.current?jc(x,u?0:ge.current,ve.current,.55):x<ge.current?jc(x,ge.current,2*ve.current,.55):jc(x,ge.current/2,ve.current,.55):y;return _&&a?(C>=ve.current&&(C=ve.current),f===ve.current&&F.current.scrollTop>0&&(C=ve.current),ie.current=C<ve.current):ie.current=!1,d&&we("DRAG"),p?(we("SNAP",{payload:{y:C,velocity:v>.05?v:1,source:"dragging"}}),f):(H({y:C,ready:1,maxHeight:fe.current,maxSnap:ve.current,minSnap:ge.current,immediate:!0,config:{velocity:v}}),f)}),{filterTaps:!0});if(Number.isNaN(ve.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(ge.current))throw new TypeError("minSnapRef is NaN!!");var ke=function(e){var t,n=e.spring,r=Us([n.y,n.maxHeight],(function(e,t){return Math.round(Qu(t-e,0,16))+"px"})),i=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return Qu(e,t,n)+"px"})),o=Us([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),a=Us([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),l=Us([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return Qu((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),s=Us([n.y,n.minSnap],(function(e,t){return t?Qu(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=l,t["--rsbs-backdrop-opacity"]=s,t["--rsbs-antigap-scale-y"]=a,t["--rsbs-overlay-translate-y"]=o,t["--rsbs-overlay-rounded"]=r,t["--rsbs-overlay-h"]=i,t}({spring:A});return Z.createElement(Rc.div,Yu({},L,{"data-rsbs-root":!0,"data-rsbs-state":fp.find(Ce.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!u,"data-rsbs-has-header":!!a,"data-rsbs-has-footer":!!o,className:i,ref:B,style:Yu({},ke,C,{opacity:A.ready})}),r,x&&Z.createElement("div",Yu({key:"backdrop","data-rsbs-backdrop":!0},$e({closeOnTap:!0}))),Z.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),u&&u())}},!1!==a&&Z.createElement("div",Yu({key:"header","data-rsbs-header":!0,ref:U},$e()),a),Z.createElement("div",Yu({key:"scroll","data-rsbs-scroll":!0,ref:F},_?$e({isContentDragging:!0}):{}),Z.createElement("div",{"data-rsbs-content":!0,ref:q},n)),o&&Z.createElement("div",Yu({key:"footer",ref:X,"data-rsbs-footer":!0},$e()),o)))})),fp=["closed","opening","open","closing","dragging","snapping","resizing"];function gp(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function vp(e){return e.minHeight}var mp=["onSpringStart","onSpringEnd","skipInitialTransition"],xp=q((function(e,t){var n=e.onSpringStart,r=e.onSpringEnd,i=e.skipInitialTransition,o=Ku(e,mp),a=G(!1),l=a[0],s=a[1],c=Y(),d=Y(null),u=Y(i&&o.open?"OPEN":"CLOSED");Ju((function(){if(o.open)return cancelAnimationFrame(c.current),s(!0),function(){u.current="CLOSED"}}),[o.open]);var p=J((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(c.current)}))}),[n]),h=J((function(e){return Promise.resolve(null==r?void 0:r(e)).then((function(){"CLOSE"===e.type&&(c.current=requestAnimationFrame((function(){return s(!1)})))}))}),[r]);return l?Z.createElement(fa,{"data-rsbs-portal":!0},Z.createElement(hp,Yu({},o,{lastSnapRef:d,ref:t,initialState:u.current,onSpringStart:p,onSpringEnd:h}))):null}));const bp=(e,t)=>ie`
|
|
2296
2296
|
[data-rsbs-overlay] {
|
|
2297
2297
|
border-top-left-radius: 16px;
|
|
2298
2298
|
border-top-right-radius: 16px;
|
|
2299
2299
|
overflow: hidden;
|
|
2300
|
-
z-index:
|
|
2300
|
+
z-index: ${t};
|
|
2301
2301
|
}
|
|
2302
2302
|
|
|
2303
2303
|
[data-rsbs-overlay],
|
|
@@ -2307,7 +2307,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2307
2307
|
|
|
2308
2308
|
[data-rsbs-header] {
|
|
2309
2309
|
padding: 0px;
|
|
2310
|
-
min-height: ${
|
|
2310
|
+
min-height: ${e?"50px":"20px"};
|
|
2311
2311
|
}
|
|
2312
2312
|
|
|
2313
2313
|
[data-rsbs-header]:before {
|
|
@@ -2321,7 +2321,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2321
2321
|
padding: 0px;
|
|
2322
2322
|
min-height: 64px;
|
|
2323
2323
|
}
|
|
2324
|
-
|
|
2324
|
+
`;!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("[data-rsbs-overlay] {\n border-top-left-radius: 16px;\n border-top-left-radius: var(--rsbs-overlay-rounded,16px);\n border-top-right-radius: 16px;\n border-top-right-radius: var(--rsbs-overlay-rounded,16px);\n display: flex;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n flex-direction: column;\n height: 0px;\n height: var(--rsbs-overlay-h,0px);\n transform: translate3d(0, 0px, 0);\n transform: translate3d(0, var(--rsbs-overlay-translate-y,0px), 0);\n will-change: height;\n}\n\n[data-rsbs-overlay]:focus {\n outline: none;\n}\n\n[data-rsbs-is-blocking='false'] [data-rsbs-overlay] {\n box-shadow: 0 -5px 60px 0 rgba(38, 89, 115, 0.11),\n 0 -1px 0 rgba(38, 89, 115, 0.05);\n}\n\n[data-rsbs-overlay],\n[data-rsbs-root]:after {\n max-width: auto;\n max-width: var(--rsbs-max-w,auto);\n margin-left: env(safe-area-inset-left);\n margin-left: var(--rsbs-ml,env(safe-area-inset-left));\n margin-right: env(safe-area-inset-right);\n margin-right: var(--rsbs-mr,env(safe-area-inset-right));\n}\n\n[data-rsbs-overlay],\n[data-rsbs-backdrop],\n[data-rsbs-root]:after {\n z-index: 3;\n -ms-scroll-chaining: none;\n overscroll-behavior: none;\n touch-action: none;\n position: fixed;\n right: 0;\n bottom: 0;\n left: 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n\n[data-rsbs-backdrop] {\n top: -60px;\n bottom: -60px;\n background-color: rgba(0, 0, 0, 0.6);\n background-color: var(--rsbs-backdrop-bg,rgba(0, 0, 0, 0.6));\n will-change: opacity;\n cursor: pointer;\n opacity: 1;\n}\n\n[data-rsbs-is-dismissable='false'] [data-rsbs-backdrop] {\n cursor: ns-resize;\n}\n\n[data-rsbs-root]:after {\n content: '';\n pointer-events: none;\n background: #fff;\n background: var(--rsbs-bg,#fff);\n height: 1px;\n transform-origin: bottom;\n transform: scale3d(1, 0, 1);\n transform: scale3d(1, var(--rsbs-antigap-scale-y,0), 1);\n will-change: transform;\n}\n\n[data-rsbs-footer],\n[data-rsbs-header] {\n flex-shrink: 0;\n cursor: ns-resize;\n padding: 16px;\n}\n\n[data-rsbs-header] {\n text-align: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(1 * 0.125));\n box-shadow: 0 1px 0\n rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125));\n z-index: 1;\n padding-top: calc(20px + env(safe-area-inset-top));\n padding-bottom: 8px;\n}\n\n[data-rsbs-header]:before {\n position: absolute;\n content: '';\n display: block;\n width: 36px;\n height: 4px;\n top: calc(8px + env(safe-area-inset-top));\n left: 50%;\n transform: translateX(-50%);\n border-radius: 2px;\n background-color: hsla(0, 0%, 0%, 0.14);\n background-color: var(--rsbs-handle-bg,hsla(0, 0%, 0%, 0.14));\n}\n\n@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {\n [data-rsbs-header]:before {\n transform: translateX(-50%) scaleY(0.75);\n }\n}\n\n[data-rsbs-has-header='false'] [data-rsbs-header] {\n box-shadow: none;\n padding-top: calc(12px + env(safe-area-inset-top));\n}\n\n[data-rsbs-scroll] {\n flex-shrink: 1;\n flex-grow: 1;\n -webkit-tap-highlight-color: revert;\n -webkit-touch-callout: revert;\n -webkit-user-select: auto;\n -ms-user-select: auto;\n -moz-user-select: auto;\n user-select: auto;\n overflow: auto;\n -ms-scroll-chaining: none;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n[data-rsbs-scroll]:focus {\n outline: none;\n}\n\n[data-rsbs-has-footer='false'] [data-rsbs-content] {\n padding-bottom: env(safe-area-inset-bottom);\n}\n\n[data-rsbs-content] {\n /* The overflow hidden is to ensure any margin on child nodes are included when the resize observer is measuring the height */\n overflow: hidden;\n}\n\n[data-rsbs-footer] {\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(1 * 0.125)),\n 0 2px 0 #fff;\n box-shadow: 0 -1px 0 rgba(46, 59, 66, calc(var(--rsbs-content-opacity,1) * 0.125)),\n 0 2px 0 var(--rsbs-bg,#fff);\n overflow: hidden;\n z-index: 1;\n padding-bottom: calc(16px + env(safe-area-inset-bottom));\n}\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='true'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-header] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-scroll] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-footer] > *, [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-footer] > * {\n opacity: 1;\n opacity: var(--rsbs-content-opacity,1);\n }\n\n[data-rsbs-is-dismissable='true'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='opening'] [data-rsbs-backdrop], [data-rsbs-is-dismissable='false'][data-rsbs-state='closing'] [data-rsbs-backdrop] {\n opacity: 1;\n opacity: var(--rsbs-backdrop-opacity,1);\n }\n\n[data-rsbs-state='closed'],\n[data-rsbs-state='closing'] {\n /* Allows interactions on the rest of the page before the close transition is finished */\n pointer-events: none;\n}\n");const yp=({header:e,content:t,footer:n,open:r=!1,onClose:i,minimizedHeight:o,midHeight:a=200,maxFullHeight:l,defaultSnap:s="minimized",className:c,blocking:d,zIndex:u=1e3})=>H(xp,{css:bp(!!e,u),className:c,open:r,onDismiss:i,header:e,footer:n,snapPoints:({headerHeight:e,maxHeight:t,footerHeight:r})=>[20,o||e,a+(n?r:0),l||t-t/6],defaultSnap:({headerHeight:e,maxHeight:t,footerHeight:r})=>{let i=20;return"minimized"===s?i=o||e:"mid"===s?i=a+(n?r:0):"full"===s&&(i=l||t-t/6),i},blocking:d,children:t}),Cp=ie`
|
|
2325
2325
|
a,
|
|
2326
2326
|
p {
|
|
2327
2327
|
font-size: 16px;
|
|
@@ -2353,19 +2353,19 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2353
2353
|
a:hover {
|
|
2354
2354
|
text-decoration: underline;
|
|
2355
2355
|
}
|
|
2356
|
-
`,
|
|
2356
|
+
`,wp=ie`
|
|
2357
2357
|
svg {
|
|
2358
2358
|
height: 12px;
|
|
2359
2359
|
width: 12px;
|
|
2360
2360
|
color: ${he("neutral",600)};
|
|
2361
2361
|
}
|
|
2362
|
-
|
|
2362
|
+
`,$p=ie`
|
|
2363
2363
|
cursor: pointer;
|
|
2364
2364
|
color: ${he("neutral",600)};
|
|
2365
2365
|
display: flex;
|
|
2366
2366
|
justify-content: center;
|
|
2367
2367
|
align-items: center;
|
|
2368
|
-
|
|
2368
|
+
`,kp=({links:e,separator:t,maxItems:n=99,linkRouter:r})=>{const[i,o]=G(e.length>n);W((()=>{o(e.length>n)}),[e.length]);const a=r;return H(D.Root,{children:H(D.List,{gap:"16px",children:i?A(B,{children:[H(D.Item,{css:Cp,children:A(a,{to:e[0].link,href:e[0].link,children:[e[0].icon,e[0].label]})}),H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}),H("li",{className:"chakra-breadcrumb__item",children:H("button",{css:$p,type:"button",onClick:()=>o(!1),children:"..."})}),H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}),H(D.Item,{css:Cp,children:A("p",{"aria-current":"page","aria-label":e[e.length-1].label,children:[e[e.length-1].icon,e[e.length-1].label]})})]}):e.map(((n,r)=>n?.label?A(re,{children:[H(D.Item,{css:Cp,children:r<e.length-1?A(a,{to:n.link,href:n.link,children:[n.icon,n.label]}):A("p",{"aria-current":"page","aria-label":n.label,children:[n.label&&n.icon?n.icon:"",n.label]})}),r<e.length-1?H(D.Separator,{css:wp,children:t||H(Se,{rotate:"270"})}):null]},n.label):null))})})},Sp=(e,t)=>ie`
|
|
2369
2369
|
min-height: 56px;
|
|
2370
2370
|
width: 100vw;
|
|
2371
2371
|
position: ${e?"sticky":"absolute"};
|
|
@@ -2375,7 +2375,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2375
2375
|
background-color: ${he("neutral",t?200:100)};
|
|
2376
2376
|
border-top: 1px solid ${he("neutral",400)};
|
|
2377
2377
|
z-index: 101;
|
|
2378
|
-
`,
|
|
2378
|
+
`,Ep=e=>ie`
|
|
2379
2379
|
height: 100%;
|
|
2380
2380
|
width: 100%;
|
|
2381
2381
|
max-width: ${e?`${e}px`:"100%"};
|
|
@@ -2390,7 +2390,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2390
2390
|
flex-direction: column;
|
|
2391
2391
|
align-items: flex-start;
|
|
2392
2392
|
}
|
|
2393
|
-
`,
|
|
2393
|
+
`,Op=ie`
|
|
2394
2394
|
display: flex;
|
|
2395
2395
|
align-items: center;
|
|
2396
2396
|
flex-wrap: wrap;
|
|
@@ -2403,7 +2403,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2403
2403
|
color: ${he("neutral",700)};
|
|
2404
2404
|
text-decoration: underline;
|
|
2405
2405
|
}
|
|
2406
|
-
`,
|
|
2406
|
+
`,_p=ie`
|
|
2407
2407
|
width: 240px;
|
|
2408
2408
|
font-size: 14px;
|
|
2409
2409
|
line-height: 20px;
|
|
@@ -2414,7 +2414,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2414
2414
|
@media screen and (max-width: 768px) {
|
|
2415
2415
|
text-align: left;
|
|
2416
2416
|
}
|
|
2417
|
-
`,
|
|
2417
|
+
`,Lp=({children:e,label:t="© World Resources Institute",fixed:n,filled:r,maxWidth:i})=>{const o=(new Date).getFullYear();return H("footer",{css:Sp(n,r),children:A("div",{css:Ep(i),children:[H("div",{children:H(Me,{height:"32px",width:"91px"})}),H("div",{css:Op,children:e}),H("div",{children:A("p",{css:_p,children:[t," ",o]})})]})})},Rp=(e,t)=>ie`
|
|
2418
2418
|
height: ${e?"96px":"48px"};
|
|
2419
2419
|
width: 100%;
|
|
2420
2420
|
background-color: ${he("neutral",100)};
|
|
@@ -2423,7 +2423,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2423
2423
|
left: 0;
|
|
2424
2424
|
z-index: 102;
|
|
2425
2425
|
border-bottom: 1px solid ${he("neutral",400)};
|
|
2426
|
-
`,
|
|
2426
|
+
`,Tp=ie`
|
|
2427
2427
|
height: 48px;
|
|
2428
2428
|
width: 100%;
|
|
2429
2429
|
background-color: ${he("neutral",100)};
|
|
@@ -2433,7 +2433,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2433
2433
|
justify-content: flex-start;
|
|
2434
2434
|
gap: 0px;
|
|
2435
2435
|
padding: 8px 16px;
|
|
2436
|
-
`,
|
|
2436
|
+
`,Pp=(e,t)=>ie`
|
|
2437
2437
|
height: 48px;
|
|
2438
2438
|
width: 100%;
|
|
2439
2439
|
max-width: ${t?`${t}px`:"100%"};
|
|
@@ -2443,7 +2443,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2443
2443
|
justify-content: space-between;
|
|
2444
2444
|
margin: 0 auto;
|
|
2445
2445
|
padding: 8px 16px;
|
|
2446
|
-
`,
|
|
2446
|
+
`,Dp=ie`
|
|
2447
2447
|
outline: none;
|
|
2448
2448
|
a {
|
|
2449
2449
|
&:focus-visible {
|
|
@@ -2454,12 +2454,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2454
2454
|
outline-width: 2px;
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
`,
|
|
2457
|
+
`,Mp=e=>ie`
|
|
2458
2458
|
display: ${e?"none":"flex"};
|
|
2459
2459
|
align-items: center;
|
|
2460
2460
|
justify-content: flex-start;
|
|
2461
2461
|
gap: 0px;
|
|
2462
|
-
`,
|
|
2462
|
+
`,Np=e=>ie`
|
|
2463
2463
|
font-size: 16px;
|
|
2464
2464
|
line-height: 24px;
|
|
2465
2465
|
font-weight: 400;
|
|
@@ -2484,12 +2484,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2484
2484
|
font-weight: 700;
|
|
2485
2485
|
color: ${he("accessible","controls-on-neutral-lights")};
|
|
2486
2486
|
`:""}
|
|
2487
|
-
`,
|
|
2487
|
+
`,jp=ie`
|
|
2488
2488
|
height: 48px;
|
|
2489
2489
|
display: flex;
|
|
2490
2490
|
align-items: center;
|
|
2491
2491
|
justify-content: flex-end;
|
|
2492
|
-
`,
|
|
2492
|
+
`,Vp=e=>ie`
|
|
2493
2493
|
height: 100%;
|
|
2494
2494
|
font-size: 16px;
|
|
2495
2495
|
line-height: 24px;
|
|
@@ -2508,7 +2508,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
2510
|
`:""}
|
|
2511
|
-
`,
|
|
2511
|
+
`,Ip=e=>ie`
|
|
2512
2512
|
height: 100%;
|
|
2513
2513
|
display: flex;
|
|
2514
2514
|
align-items: center;
|
|
@@ -2516,7 +2516,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2516
2516
|
gap: 20px;
|
|
2517
2517
|
padding-left: 16px;
|
|
2518
2518
|
border-left: 1px solid ${he("neutral",e?700:300)};
|
|
2519
|
-
`,
|
|
2519
|
+
`,zp=ie`
|
|
2520
2520
|
background-color: none;
|
|
2521
2521
|
border: none;
|
|
2522
2522
|
cursor: pointer;
|
|
@@ -2541,7 +2541,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2541
2541
|
outline-width: 2px;
|
|
2542
2542
|
background-color: ${he("neutral",200)};
|
|
2543
2543
|
}
|
|
2544
|
-
`,
|
|
2544
|
+
`,Ap=e=>ie`
|
|
2545
2545
|
position: absolute;
|
|
2546
2546
|
top: 48px;
|
|
2547
2547
|
right: 0;
|
|
@@ -2554,10 +2554,10 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2554
2554
|
justify-content: flex-start;
|
|
2555
2555
|
gap: 16px;
|
|
2556
2556
|
transition: width 0.5s ease-in-out;
|
|
2557
|
-
`,
|
|
2557
|
+
`,Hp=ie`
|
|
2558
2558
|
height: 100%;
|
|
2559
2559
|
width: 100%;
|
|
2560
|
-
`,
|
|
2560
|
+
`,Bp=ie`
|
|
2561
2561
|
background-color: ${he("neutral",200)};
|
|
2562
2562
|
border-bottom: 1px solid ${he("neutral",300)};
|
|
2563
2563
|
|
|
@@ -2577,13 +2577,13 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2577
2577
|
margin-left: -12px;
|
|
2578
2578
|
}
|
|
2579
2579
|
}
|
|
2580
|
-
`,Bp=ie`
|
|
2581
|
-
background-color: ${he("neutral",100)};
|
|
2582
2580
|
`,Fp=ie`
|
|
2581
|
+
background-color: ${he("neutral",100)};
|
|
2582
|
+
`,Zp=ie`
|
|
2583
2583
|
min-height: 100vh;
|
|
2584
2584
|
width: 100%;
|
|
2585
2585
|
overflow-y: scroll;
|
|
2586
|
-
`;ie``;const
|
|
2586
|
+
`;ie``;const qp=e=>ie`
|
|
2587
2587
|
display: inline-block;
|
|
2588
2588
|
width: 100%;
|
|
2589
2589
|
padding: 12px 16px;
|
|
@@ -2612,7 +2612,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2612
2612
|
outline-width: 2px;
|
|
2613
2613
|
background-color: ${he("neutral",200)};
|
|
2614
2614
|
}
|
|
2615
|
-
`,
|
|
2615
|
+
`,Gp=ie`
|
|
2616
2616
|
width: 100%;
|
|
2617
2617
|
padding: 12px 16px;
|
|
2618
2618
|
display: flex;
|
|
@@ -2636,7 +2636,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2636
2636
|
outline-width: 2px;
|
|
2637
2637
|
background-color: ${he("neutral",200)};
|
|
2638
2638
|
}
|
|
2639
|
-
`,
|
|
2639
|
+
`,Wp=e=>ie`
|
|
2640
2640
|
position: absolute;
|
|
2641
2641
|
top: 0px;
|
|
2642
2642
|
right: 0;
|
|
@@ -2648,7 +2648,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2648
2648
|
align-items: flex-start;
|
|
2649
2649
|
justify-content: flex-start;
|
|
2650
2650
|
transition: width 0.5s ease-in-out;
|
|
2651
|
-
`,
|
|
2651
|
+
`,Up=ie`
|
|
2652
2652
|
height: 48px;
|
|
2653
2653
|
width: 100%;
|
|
2654
2654
|
display: flex;
|
|
@@ -2659,7 +2659,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2659
2659
|
position: relative;
|
|
2660
2660
|
top: 0;
|
|
2661
2661
|
left: 0;
|
|
2662
|
-
`,
|
|
2662
|
+
`,Xp=ie`
|
|
2663
2663
|
position: absolute;
|
|
2664
2664
|
bottom: 0;
|
|
2665
2665
|
left: 0;
|
|
@@ -2674,13 +2674,13 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2674
2674
|
button {
|
|
2675
2675
|
width: calc(48% - 24px);
|
|
2676
2676
|
}
|
|
2677
|
-
`,
|
|
2677
|
+
`,Yp=({navigationSection:e,utilitySection:t,actionsSection:n,linkRouter:r,isOpen:i,setIsOpen:o,pathname:a})=>{const[l,s]=G(void 0),[c,d]=G(-1),u=Y(null),p=Y([]),h=r;return A(B,{children:[H("div",{css:Ap(i),children:i&&A("div",{css:Hp,children:[A("div",{style:{overflowY:"scroll",width:"100%",height:"100%",paddingBottom:"72px"},children:[t?H("div",{css:Bp,children:t?.map((e=>H("div",{className:"utility-item",children:e})))}):null,e?H("div",{css:Fp,children:e.map(((e,t)=>e.link?H(h,{to:e.link,href:e.link,onClick:()=>{s(void 0),d(-1),o(!1)},css:qp(a===e.link),children:e.label},e.label):A("button",{css:Gp,type:"button",ref:e=>p.current[t]=e,onClick:()=>{e.items&&(s(e),d(t),setTimeout((()=>{u.current?.focus()}),100))},children:[e.label,e.items?H(Se,{rotate:"270",color:"var(--chakra-colors-neutral-700)"}):null]},e.label)))}):null]}),n?H("div",{css:Xp,children:n.map((e=>H(be,{label:e.label,onClick:()=>{e?.onClick?.(),s(void 0),d(-1),o(!1)}},e.label)))}):null]})}),H("div",{css:Wp(!!l?.items),children:l?.items?A(B,{children:[A("div",{css:Up,children:[A("button",{type:"button",onClick:()=>{s(void 0),d(-1),p.current[c]?.focus()},"aria-label":"Go back",css:zp,ref:u,children:[H(Se,{rotate:"90",color:"var(--chakra-colors-neutral-700)"}),l?.label]}),A("button",{type:"button",onClick:()=>{s(void 0),d(-1),o(!1)},"aria-label":"Close menu",css:zp,children:["Close",H(Oe,{height:"16px",width:"16px"})]})]}),H("div",{css:Zp,children:l?.items?.map((e=>H(h,{to:e.link,href:e.link,css:qp(),onClick:()=>{s(void 0),d(-1),o(!1)},children:e.label},e.label)))})]}):null})]})},Kp=1023,Jp=({logo:e,linkRouter:t,pathname:n,navigationSection:r,utilitySection:i,actionsSection:o,maxWidth:a,fixed:l,onNavbarHeightChange:s})=>{const c=Y(null),d=Y(null),u=Y(null),[p,h]=G(!1),[f,g]=G(-1),[v,m]=G("undefined"!=typeof window&&window?.innerWidth<=Kp),[x,b]=G(!1),y=t,C=J((()=>{if(d.current&&c.current&&u.current){const e=c.current.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=u.current.getBoundingClientRect();t.width,e.width,window.innerWidth<=Kp||window.innerWidth<=f?(s?.(96),h(!0)):window.innerWidth>Kp&&window.innerWidth<=1440?e.right>=t.left?(s?.(96),h(!0),g(window.innerWidth)):window.innerWidth>f&&(s?.(48),h(!1),g(-1)):(s?.(48),h(!1),g(-1)),p&&(window.innerWidth<=Kp||n.right>=t.left?(m(!0),s?.(48)):(m(!1),s?.(96)))}}),[f,p]);return W((()=>(C(),window.addEventListener("resize",C),()=>{window.removeEventListener("resize",C)})),[C]),A("nav",{css:Rp(p&&!v,l),children:[A("div",{css:Pp(p&&!v,a),children:[A("div",{css:(w=p&&!v,ie`
|
|
2678
2678
|
display: flex;
|
|
2679
2679
|
align-items: center;
|
|
2680
2680
|
justify-content: flex-start;
|
|
2681
2681
|
gap: 12px;
|
|
2682
2682
|
color: ${he("neutral",w?100:900)};
|
|
2683
|
-
`),ref:c,children:[e?H("div",{ref:u,css:
|
|
2683
|
+
`),ref:c,children:[e?H("div",{ref:u,css:Dp,children:e}):null,H("div",{css:Mp(p),children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Np(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))})]}),H("div",{css:jp,ref:d,children:v?A("button",{type:"button",onClick:()=>b(!x),"aria-label":"Open menu",css:zp,children:[x?"Close":"Menu",H(x?Oe:Ke,{height:"16px",width:"16px"})]}):A(B,{children:[H("div",{css:jp,children:i?.map(((e,t)=>H("div",{css:Vp(p),children:e},t)))}),o?H("div",{css:Ip(p),children:o.map((e=>H(be,{...e},e.label)))}):null]})})]}),p&&!v?H("div",{css:Tp,children:r?.map((e=>e.link?H(y,{to:e.link,href:e.link,css:Np(n===e.link),children:e.label},e.label):H(vt,{label:e.label,items:e.items||[]},e.label)))}):null,v?H(Yp,{navigationSection:r,utilitySection:i,actionsSection:o,linkRouter:t,isOpen:x,setIsOpen:b,pathname:n}):null]});var w},Qp=ie`
|
|
2684
2684
|
width: 64px;
|
|
2685
2685
|
height: 100%;
|
|
2686
2686
|
z-index: 100;
|
|
@@ -2689,7 +2689,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2689
2689
|
display: flex;
|
|
2690
2690
|
flex-direction: column;
|
|
2691
2691
|
justify-content: space-between;
|
|
2692
|
-
`,
|
|
2692
|
+
`,eh=ie`
|
|
2693
2693
|
width: 64px;
|
|
2694
2694
|
height: 64px;
|
|
2695
2695
|
background-color: ${he("neutral",200)};
|
|
@@ -2779,7 +2779,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
`,
|
|
2782
|
+
`,th=ie`
|
|
2783
2783
|
display: flex;
|
|
2784
2784
|
justify-content: center;
|
|
2785
2785
|
align-items: center;
|
|
@@ -2792,7 +2792,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2792
2792
|
fill: ${he("neutral",600)};
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
|
-
`,
|
|
2795
|
+
`,nh=ie`
|
|
2796
2796
|
width: 64px;
|
|
2797
2797
|
height: 64px;
|
|
2798
2798
|
background-color: ${he("neutral",200)};
|
|
@@ -2830,7 +2830,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2830
2830
|
text-align: center;
|
|
2831
2831
|
color: ${he("neutral",600)};
|
|
2832
2832
|
}
|
|
2833
|
-
`,
|
|
2833
|
+
`,rh=ie`
|
|
2834
2834
|
width: 320px;
|
|
2835
2835
|
height: 100%;
|
|
2836
2836
|
z-index: 100;
|
|
@@ -2838,14 +2838,14 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2838
2838
|
background-color: ${he("neutral",100)};
|
|
2839
2839
|
overflow-y: auto;
|
|
2840
2840
|
overflow-x: hidden;
|
|
2841
|
-
`,
|
|
2841
|
+
`,ih=({tabs:e=[],defaultValue:t,onTabClick:n,children:i,onOpenChange:o})=>{const[a,l]=G(!1),[s,c]=G(t||e?.[0]?.value);return A("div",{style:{height:"calc(100vh - 48px - 56px)",position:"fixed",top:"48px",left:0,display:"flex"},children:[A("div",{css:Qp,children:[H(M.Root,{defaultValue:t||e?.[0]?.value,orientation:"horizontal",width:"full",onValueChange:({value:e})=>{var t;c(t=e),n&&n(t)},role:"tablist",children:H(M.List,{alignItems:"center",border:"none",style:{flexDirection:"column"},children:e.map((e=>H(M.Trigger,{css:eh,"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",flexDirection:"column",gap:"5px",className:"tab-label",children:[e.icon?H("div",{css:th,children:e.icon}):null,H("p",{children:e.label})]})},e.label)))})}),i?H(N.Root,{onOpenChange:({open:e})=>{l(e),o&&o(!e)},children:A(N.Trigger,{css:nh,children:[H("div",{css:th,children:H(a?Ce:ye,{})}),A("div",{className:"tab-label",children:[H("p",{children:a?"Show":"Hide"}),H("p",{children:"Sidebar"})]})]})}):null]}),i?H(N.Root,{defaultOpen:!0,open:!a,children:H(N.Content,{height:"100%",children:H("div",{css:rh,role:"tabpanel","aria-labelledby":s,children:i})})}):null]})},oh=e=>ie`
|
|
2842
2842
|
width: 100%;
|
|
2843
2843
|
display: flex;
|
|
2844
2844
|
align-items: center;
|
|
2845
2845
|
height: 40px;
|
|
2846
2846
|
|
|
2847
2847
|
${"view"===e&&`\n border: 1px solid ${he("neutral",400)};\n background-color: ${he("neutral",200)};\n border-radius: 4px;\n padding: 4px;\n `}
|
|
2848
|
-
`,
|
|
2848
|
+
`,ah=ie`
|
|
2849
2849
|
width: 99%;
|
|
2850
2850
|
height: 40px;
|
|
2851
2851
|
padding: 8px 16px;
|
|
@@ -2861,7 +2861,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2861
2861
|
&:focus-visible {
|
|
2862
2862
|
box-shadow: none;
|
|
2863
2863
|
}
|
|
2864
|
-
`,
|
|
2864
|
+
`,lh=ie`
|
|
2865
2865
|
background-color: ${he("neutral",200)};
|
|
2866
2866
|
color: ${he("neutral",700)};
|
|
2867
2867
|
|
|
@@ -2918,11 +2918,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2918
2918
|
opacity: 1;
|
|
2919
2919
|
}
|
|
2920
2920
|
}
|
|
2921
|
-
`,
|
|
2921
|
+
`,sh=ie`
|
|
2922
2922
|
width: 4px;
|
|
2923
2923
|
height: 24px;
|
|
2924
2924
|
background-color: ${he("neutral",400)};
|
|
2925
|
-
`,
|
|
2925
|
+
`,ch=ie`
|
|
2926
2926
|
height: 32px;
|
|
2927
2927
|
border-radius: 2px;
|
|
2928
2928
|
background-color: ${he("neutral",200)};
|
|
@@ -2995,16 +2995,16 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
2995
2995
|
opacity: 1;
|
|
2996
2996
|
}
|
|
2997
2997
|
}
|
|
2998
|
-
`,
|
|
2998
|
+
`,dh=(e,t)=>e.findIndex((e=>e.value===t)),uh=e=>1===e?"none":2===e?"left":"right",ph=({variant:e="panel",defaultValue:t,tabs:n,onTabClick:i})=>{const[o,a]=G(dh(n,t)||0),l="view"===e;return H("div",{css:oh(e),children:H(M.Root,{width:"full",defaultValue:t||n?.[0]?.value,onValueChange:({value:e})=>{return a(dh(n,t=e)),void(i&&i(t));var t},children:H(M.List,{alignItems:"center",border:"none",children:n.map(((e,t)=>A(re,{children:[l&&1===t&&"left"===uh(o)?H("div",{css:sh}):null,H(M.Trigger,{css:[ah,l?ch:lh],"aria-label":e["aria-label"]||e.label,...e,children:A(r,{display:"flex",alignItems:"center",gap:"5px",children:[e.icon,e.label]})},e.label),l&&1===t&&"right"===uh(o)?H("div",{css:sh}):null]},e.label)))})})})},hh=ie`
|
|
2999
2999
|
display: flex;
|
|
3000
3000
|
justify-content: flex-start;
|
|
3001
3001
|
align-items: center;
|
|
3002
3002
|
gap: 8px;
|
|
3003
|
-
`,
|
|
3003
|
+
`,fh=e=>ie`
|
|
3004
3004
|
width: ${e||"16px"};
|
|
3005
3005
|
position: relative;
|
|
3006
3006
|
display: flex;
|
|
3007
|
-
`,
|
|
3007
|
+
`,gh=ie`
|
|
3008
3008
|
height: 4px;
|
|
3009
3009
|
width: 4px;
|
|
3010
3010
|
background-color: ${he("error",500)};
|
|
@@ -3012,7 +3012,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3012
3012
|
position: absolute;
|
|
3013
3013
|
top: 0px;
|
|
3014
3014
|
right: 0px;
|
|
3015
|
-
`,
|
|
3015
|
+
`,vh=ie`
|
|
3016
3016
|
height: 10px;
|
|
3017
3017
|
background-color: ${he("error",500)};
|
|
3018
3018
|
padding: 0 3px 1px 3px;
|
|
@@ -3023,11 +3023,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3023
3023
|
position: absolute;
|
|
3024
3024
|
top: -2px;
|
|
3025
3025
|
left: 9px;
|
|
3026
|
-
`,
|
|
3026
|
+
`,mh=ie`
|
|
3027
3027
|
font-size: 9px;
|
|
3028
3028
|
font-weight: 700;
|
|
3029
3029
|
color: ${he("error",100)};
|
|
3030
|
-
`,
|
|
3030
|
+
`,xh=ie`
|
|
3031
3031
|
height: 16px;
|
|
3032
3032
|
min-width: 16px;
|
|
3033
3033
|
background-color: ${he("error",500)};
|
|
@@ -3036,11 +3036,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3036
3036
|
justify-content: center;
|
|
3037
3037
|
align-items: center;
|
|
3038
3038
|
padding: 0px 4px 1px 4px;
|
|
3039
|
-
`,
|
|
3039
|
+
`,bh=ie`
|
|
3040
3040
|
font-size: 16px;
|
|
3041
3041
|
font-weight: 700;
|
|
3042
3042
|
color: ${he("error",100)};
|
|
3043
|
-
`,
|
|
3043
|
+
`,yh=({hasNotification:e,notificationCount:t,label:n})=>{const[r,i]=G(!1);W((()=>{const e=()=>{window.innerWidth<1024?i(!0):i(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]);const o=(()=>{let e="";return t&&t>0&&(e=`${t>99?"99+":t}`),e})();let a="16px";return t&&t>99?a="28px":t&&t>9&&(a="22px"),A("div",r?{css:hh,role:"status","aria-live":"polite",children:[A("div",{css:fh(),children:[H(Ne,{color:"currentColor",height:"16px",width:"16px"}),!e||t||n?null:H("div",{css:gh,"aria-hidden":!0})]}),n?H("p",{children:n}):null,o.length>0?H("div",{css:xh,children:H("p",{css:bh,"aria-label":`${t} unread message`,children:o})}):null]}:{css:hh,role:"status","aria-live":"polite",children:[n?H("p",{children:n}):null,A("div",{css:fh(a),children:[o.length>0?H("div",{css:vh,children:H("p",{css:mh,"aria-label":`${t} unread message`,children:o})}):null,e&&!t?H("div",{css:gh,"aria-hidden":!0}):null,H(Ne,{color:"currentColor",height:"16px",width:"16px"})]})]})},Ch=(e,t)=>ie`
|
|
3044
3044
|
width: 100%;
|
|
3045
3045
|
min-width: ${"small"===e?"234px":"320px"};
|
|
3046
3046
|
border-radius: 4px;
|
|
@@ -3055,7 +3055,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3055
3055
|
button {
|
|
3056
3056
|
margin-left: ${t?0:"24px"};
|
|
3057
3057
|
}
|
|
3058
|
-
`,
|
|
3058
|
+
`,wh=ie`
|
|
3059
3059
|
display: flex;
|
|
3060
3060
|
align-items: flex-start;
|
|
3061
3061
|
gap: 8px;
|
|
@@ -3063,28 +3063,28 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3063
3063
|
svg {
|
|
3064
3064
|
margin-top: 6px;
|
|
3065
3065
|
}
|
|
3066
|
-
|
|
3066
|
+
`,$h=e=>ie`
|
|
3067
3067
|
color: ${he("neutral",800)};
|
|
3068
3068
|
font-size: ${"small"===e?"14px":"18px"};
|
|
3069
3069
|
line-height: ${"small"===e?"20px":"28px"};
|
|
3070
3070
|
font-weight: 400;
|
|
3071
3071
|
text-align: left;
|
|
3072
|
-
|
|
3072
|
+
`,kh=e=>ie`
|
|
3073
3073
|
color: ${he("neutral",700)};
|
|
3074
3074
|
font-size: ${"small"===e?"12px":"16px"};
|
|
3075
3075
|
line-height: ${"small"===e?"16px":"24px"};
|
|
3076
3076
|
font-weight: 400;
|
|
3077
3077
|
margin-left: 24px;
|
|
3078
3078
|
text-align: left;
|
|
3079
|
-
`,
|
|
3079
|
+
`,Sh=ie`
|
|
3080
3080
|
background-color: ${he("neutral",100)};
|
|
3081
3081
|
border: 1px solid ${he("neutral",300)};
|
|
3082
3082
|
color: ${he("neutral",700)};
|
|
3083
|
-
`,
|
|
3083
|
+
`,Eh=ie`
|
|
3084
3084
|
background-color: ${he("neutral",200)};
|
|
3085
3085
|
border: 1px solid ${he("neutral",300)};
|
|
3086
3086
|
color: ${he("neutral",700)};
|
|
3087
|
-
`,
|
|
3087
|
+
`,Oh=ie`
|
|
3088
3088
|
background-color: ${he("success",100)};
|
|
3089
3089
|
border: 1px solid ${he("success",300)};
|
|
3090
3090
|
color: ${he("success",500)};
|
|
@@ -3092,7 +3092,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3092
3092
|
p {
|
|
3093
3093
|
color: ${he("success",900)};
|
|
3094
3094
|
}
|
|
3095
|
-
`,
|
|
3095
|
+
`,_h=ie`
|
|
3096
3096
|
background-color: ${he("warning",100)};
|
|
3097
3097
|
border: 1px solid ${he("warning",300)};
|
|
3098
3098
|
color: ${he("warning",500)};
|
|
@@ -3100,7 +3100,7 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3100
3100
|
p {
|
|
3101
3101
|
color: ${he("warning",900)};
|
|
3102
3102
|
}
|
|
3103
|
-
`,
|
|
3103
|
+
`,Lh=ie`
|
|
3104
3104
|
background-color: ${he("error",100)};
|
|
3105
3105
|
border: 1px solid ${he("error",300)};
|
|
3106
3106
|
color: ${he("error",500)};
|
|
@@ -3108,32 +3108,32 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3108
3108
|
p {
|
|
3109
3109
|
color: ${he("error",900)};
|
|
3110
3110
|
}
|
|
3111
|
-
`,
|
|
3111
|
+
`,Rh=({label:e,caption:t,variant:n,size:r="large",icon:i=H(ke,{height:"16px",width:"16px"}),onActionClick:o,actionLabel:a,isButtonRight:l})=>{let s=Sh;return"info-grey"===n?s=Eh:"success"===n?s=Oh:"warning"===n?s=_h:"error"===n&&(s=Lh),A("div",{css:[Ch(r,l),s],"aria-roledescription":"Note",children:[A("div",{children:[A("div",{css:wh,children:[i,H("p",{css:$h(r),children:e})]}),H("p",{css:kh(r),children:t})]}),a?H(be,{label:a,variant:"info-white"===n||"info-grey"===n?"primary":"secondary",size:"large"===r?"default":"small",onClick:o}):null]})},Th=ie`
|
|
3112
3112
|
height: 8px;
|
|
3113
3113
|
width: 100%;
|
|
3114
3114
|
background-color: ${he("neutral",300)};
|
|
3115
3115
|
display: flex;
|
|
3116
3116
|
align-items: center;
|
|
3117
3117
|
justify-content: flex-start;
|
|
3118
|
-
`,
|
|
3118
|
+
`,Ph=e=>ie`
|
|
3119
3119
|
height: 100%;
|
|
3120
3120
|
width: ${e}%;
|
|
3121
3121
|
background-color: ${he("primary",500)};
|
|
3122
3122
|
transition: width 0.5s ease-in-out;
|
|
3123
|
-
`,
|
|
3123
|
+
`,Dh=({progress:e})=>{let t=e;return t>100&&(t=100),t<0&&(t=0),H("div",{css:Th,role:"progressbar","aria-label":`Progress: ${t}%`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":t,children:H("div",{css:Ph(t)})})},Mh=ie`
|
|
3124
3124
|
width: 100%;
|
|
3125
3125
|
display: flex;
|
|
3126
3126
|
align-items: center;
|
|
3127
3127
|
justify-content: space-between;
|
|
3128
3128
|
position: relative;
|
|
3129
|
-
`,
|
|
3129
|
+
`,Nh=ie`
|
|
3130
3130
|
height: 60px;
|
|
3131
3131
|
width: 80px;
|
|
3132
3132
|
display: flex;
|
|
3133
3133
|
flex-direction: column;
|
|
3134
3134
|
align-items: center;
|
|
3135
3135
|
justify-content: space-between;
|
|
3136
|
-
`,
|
|
3136
|
+
`,jh=(e,t)=>ie`
|
|
3137
3137
|
height: 32px;
|
|
3138
3138
|
width: 32px;
|
|
3139
3139
|
display: flex;
|
|
@@ -3169,12 +3169,12 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3169
3169
|
}
|
|
3170
3170
|
|
|
3171
3171
|
${t?`\n background-color: ${he("neutral",300)};\n \n &:hover {\n background-color: ${he("neutral",300)};\n box-shadow: none;\n }\n `:""}
|
|
3172
|
-
`,
|
|
3172
|
+
`,Vh=e=>ie`
|
|
3173
3173
|
color: ${he("neutral",e?800:600)};
|
|
3174
3174
|
font-size: 14px;
|
|
3175
3175
|
line-height: 20px;
|
|
3176
3176
|
font-weight: 400;
|
|
3177
|
-
`,
|
|
3177
|
+
`,Ih=ie`
|
|
3178
3178
|
height: 1px;
|
|
3179
3179
|
width: 100%;
|
|
3180
3180
|
padding: 0 30px;
|
|
@@ -3182,11 +3182,11 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3182
3182
|
top: 16px;
|
|
3183
3183
|
left: 0;
|
|
3184
3184
|
z-index: -1;
|
|
3185
|
-
`,
|
|
3185
|
+
`,zh=ie`
|
|
3186
3186
|
height: 1px;
|
|
3187
3187
|
width: 100%;
|
|
3188
3188
|
background-color: ${he("neutral",400)};
|
|
3189
|
-
`,
|
|
3189
|
+
`,Ah=({steps:e,currentStep:t})=>A("div",{css:Mh,children:[e.map(((e,n)=>A("div",{css:Nh,children:[H("button",{css:jh(t>=n+1,t<n+1),type:"button",onClick:e.onClick,"aria-current":t===n+1,"aria-disabled":t<n+1,disabled:t<n+1,"aria-label":`Current Step ${n}${e.label?` ${e.label}`:""}`,"data-active":t>=n+1,children:t>n+1?H(we,{height:"16px",width:"16px"}):n+1}),e.label?H("p",{css:Vh(t===n+1),children:e.label}):null]},`${e.label}-${n}`))),H("div",{css:Ih,children:H("div",{css:zh})})]}),Hh=ie`
|
|
3190
3190
|
justify-content: space-between;
|
|
3191
3191
|
align-items: center;
|
|
3192
3192
|
gap: 8px;
|
|
@@ -3229,18 +3229,18 @@ function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
3229
3229
|
color: ${he("error",900)};
|
|
3230
3230
|
}
|
|
3231
3231
|
}
|
|
3232
|
-
`,
|
|
3232
|
+
`,Bh=ie`
|
|
3233
3233
|
font-size: 18px;
|
|
3234
3234
|
line-height: 28px;
|
|
3235
3235
|
font-weight: 400;
|
|
3236
3236
|
color: ${he("neutral",800)};
|
|
3237
|
-
`,
|
|
3237
|
+
`,Fh=ie`
|
|
3238
3238
|
font-size: 16px;
|
|
3239
3239
|
line-height: 24px;
|
|
3240
3240
|
font-weight: 400;
|
|
3241
3241
|
color: ${he("neutral",700)};
|
|
3242
|
-
`,Fh=ie`
|
|
3243
|
-
padding: 6px;
|
|
3244
3242
|
`,Zh=ie`
|
|
3245
3243
|
padding: 6px;
|
|
3246
|
-
`,qh=
|
|
3244
|
+
`,qh=ie`
|
|
3245
|
+
padding: 6px;
|
|
3246
|
+
`,Gh={pauseOnPageIdle:!0,offsets:"24px"},Wh={"top-start":j({placement:"top-start",...Gh}),"top-end":j({placement:"top-end",...Gh}),"bottom-start":j({placement:"bottom-start",...Gh}),"bottom-end":j({placement:"bottom-end",...Gh})},Uh=e=>{Wh[e.placement].create({title:e.label,description:e.caption,duration:e.duration||5e3,meta:{closable:e.closable,icon:e.icon,closableLabel:e.closableLabel},...e})},Xh=()=>Object.keys(Wh).map((e=>H(s,{children:H(V,{toaster:Wh[e],insetInline:{mdDown:"4"},children:t=>A(I.Root,{css:Hh,width:{md:"sm"},children:[A(z,{flexDirection:"row",className:"icon-container",children:["info"===t.type?t.meta?.icon?t.meta.icon:H(ke,{color:"var(--chakra-colors-neutral-700)"}):null,"loading"===t.type?H(i,{size:"lg",borderWidth:"3px",color:"var(--chakra-colors-primary-500)"}):null,"success"===t.type?t.meta?.icon?t.meta.icon:H(Te,{color:"var(--chakra-colors-success-500)"}):null,"warning"===t.type?t.meta?.icon?t.meta.icon:H(Pe,{color:"var(--chakra-colors-warning-500)"}):null,"error"===t.type?t.meta?.icon?t.meta.icon:H(De,{color:"var(--chakra-colors-error-500)"}):null,A(z,{gap:"1",flex:"1",maxWidth:"100%",children:[H(I.Title,{css:Bh,"aria-label":`${t.title}`,children:t.title}),t.description?H(I.Title,{css:Fh,"aria-label":`${t.description}`,children:t.description}):null]})]}),t.action||t.meta?.closable?A(z,{flexDirection:"row",children:[t.action?H(be,{css:Zh,label:t.action.label,size:"small",variant:"info"===t.type?"primary":"secondary",onClick:()=>{t?.action?.onClick&&t.action.onClick(),Wh[e].dismiss()}}):null,t.meta?.closable?H(be,{css:qh,label:t.meta.closableLabel,"aria-label":t.meta?.closableLabel||"Dismiss",leftIcon:H(Oe,{height:"10px!",width:"10px!"}),size:"small",variant:"secondary",onClick:()=>Wh[e].dismiss()}):null]}):null]})})},e)));export{yh as Badge,Rr as BaseMap,kp as Breadcrumb,be as Button,kt as Checkbox,ln as CheckboxList,Tt as CheckboxOptionCard,nt as CloseButton,Lp as Footer,tt as IconButton,Pr as IconMarker,Dr as IconMarkers,Rh as InlineMessage,Wn as InputWithUnits,_i as ItemCount,Zr as LayerGroup,qr as LayerGroupContainer,Fr as LayerItem,Yr as LayerParameters,si as LegendItem,Vi as List,lt as MapControl,st as MapControls,vt as Menu,na as Modal,wt as MultiActionButton,Jp as Navbar,ih as NavigationRail,It as OptionCard,Bi as Pagination,ca as Panel,tr as Password,Dh as ProgressBar,mi as QualitativeAttribute,Ht as Radio,Bt as RadioGroup,cr as RadioList,Je as SSOButtons,ki as ScaleBar,Gn as Select,yp as Sheet,Kt as Slider,hr as SliderInput,Ah as StepProgressIndicator,Qt as Switch,ph as TabBar,Yi as Table,Ji as TableCell,Ki as TableRow,Fn as Tag,yn as TextInput,Cr as Textarea,Xh as Toast,pe as designSystemStyles,he as getThemedColor,Uh as showToast};
|