/**
 * Skipped minification because the original files appears to be already minified.
 * Original file: /npm/@deriv-com/quill-ui-next@2.4.5/dist/cdn/quill-ui-next.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
(function(D,_){typeof exports=="object"&&typeof module<"u"?_(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],_):(D=typeof globalThis<"u"?globalThis:D||self,_(D.QuillUI={},D.React,D.ReactDOM))})(this,function(D,_,mt){"use strict";var f3=Object.defineProperty;var _3=(D,_,mt)=>_ in D?f3(D,_,{enumerable:!0,configurable:!0,writable:!0,value:mt}):D[_]=mt;var N=(D,_,mt)=>_3(D,typeof _!="symbol"?_+"":_,mt);function id(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const h=id(_);var Io={exports:{}},sn={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var nr;function ad(){if(nr)return sn;nr=1;var e=_,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function r(s,l,d){var u,m={},f=null,g=null;d!==void 0&&(f=""+d),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)o.call(l,u)&&!a.hasOwnProperty(u)&&(m[u]=l[u]);if(s&&s.defaultProps)for(u in l=s.defaultProps,l)m[u]===void 0&&(m[u]=l[u]);return{$$typeof:t,type:s,key:f,ref:g,props:m,_owner:i.current}}return sn.Fragment=n,sn.jsx=r,sn.jsxs=r,sn}var or;function rd(){return or||(or=1,Io.exports=ad()),Io.exports}var c=rd();const ir={label:"Tag-module__label___kmdXK",root:"Tag-module__root___nSt3m"},sd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:18,viewBox:"0 0 9 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8.086 6.71 5.273 9.524l2.79 2.79a.513.513 0 0 1 0 .773.513.513 0 0 1-.774 0l-2.812-2.79-2.79 2.79a.513.513 0 0 1-.773 0c-.234-.211-.234-.563 0-.797L3.704 9.5.913 6.71c-.234-.21-.234-.562 0-.796.211-.21.563-.21.797 0L4.5 8.727l2.79-2.79c.21-.234.562-.234.796 0 .21.211.21.563 0 .774"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1961bc9eeff1baa156accb6b18d59cfa__a"},h.createElement("path",{d:"M0 0h9v18H0z"})))),ar=_.forwardRef(sd),cd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M6 4.625c-1.758 0-3.352.938-4.242 2.438a4.89 4.89 0 0 0 0 4.875A4.88 4.88 0 0 0 6 14.375a4.87 4.87 0 0 0 4.219-2.437 4.89 4.89 0 0 0 0-4.876C9.329 5.563 7.734 4.626 6 4.626M6 15.5a5.97 5.97 0 0 1-5.203-3 5.97 5.97 0 0 1 0-6A6.01 6.01 0 0 1 6 3.5a6 6 0 0 1 5.18 3 5.97 5.97 0 0 1 0 6 5.96 5.96 0 0 1-5.18 3M4.102 7.602c.21-.211.562-.211.773 0l1.102 1.101 1.101-1.101c.234-.211.586-.211.797 0 .234.234.234.585 0 .796L6.773 9.5l1.102 1.102c.234.234.234.585 0 .796-.21.235-.562.235-.797 0l-1.101-1.101-1.102 1.101a.513.513 0 0 1-.773 0c-.235-.21-.235-.562 0-.796L5.203 9.5 4.102 8.398c-.235-.21-.235-.562 0-.796"})),h.createElement("defs",null,h.createElement("clipPath",{id:"c4a459ae5c3d770eb5d8421f3a1e366a__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),ld=_.forwardRef(cd),ud=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M6 15.5a5.97 5.97 0 0 1-5.203-3 5.97 5.97 0 0 1 0-6A6.01 6.01 0 0 1 6 3.5a6 6 0 0 1 5.18 3 5.97 5.97 0 0 1 0 6 5.96 5.96 0 0 1-5.18 3M4.102 7.602c-.235.234-.235.585 0 .796L5.203 9.5l-1.101 1.102c-.235.234-.235.585 0 .796.21.235.562.235.773 0l1.102-1.101 1.101 1.101c.234.235.586.235.797 0 .234-.21.234-.562 0-.796L6.773 9.5l1.102-1.102c.234-.21.234-.562 0-.796-.21-.211-.562-.211-.797 0L5.977 8.703 4.875 7.602a.55.55 0 0 0-.773 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1725652d103530972d596546db2ca5f5__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),dd=_.forwardRef(ud),hd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:18,viewBox:"0 0 11 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10.586 5.914c.21.234.21.586 0 .797l-6.188 6.187c-.234.235-.585.235-.796 0L.414 9.711a.513.513 0 0 1 0-.774.513.513 0 0 1 .774 0l2.789 2.79 5.812-5.813c.211-.21.563-.21.774 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"16e3f8a059b98e492318ca9bb2e999a7__a"},h.createElement("path",{d:"M0 0h11v18H0z"})))),md=_.forwardRef(hd),fd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M6 4.625c-1.758 0-3.352.938-4.242 2.438a4.89 4.89 0 0 0 0 4.875A4.88 4.88 0 0 0 6 14.375a4.87 4.87 0 0 0 4.219-2.437 4.89 4.89 0 0 0 0-4.876C9.329 5.563 7.734 4.626 6 4.626M6 15.5a5.97 5.97 0 0 1-5.203-3 5.97 5.97 0 0 1 0-6A6.01 6.01 0 0 1 6 3.5a6 6 0 0 1 5.18 3 5.97 5.97 0 0 1 0 6 5.96 5.96 0 0 1-5.18 3m2.648-7.102-3 3c-.234.235-.585.235-.796 0l-1.5-1.5a.513.513 0 0 1 0-.773c.21-.234.562-.234.796 0l1.102 1.102 2.602-2.602c.21-.234.562-.234.796 0 .211.21.211.563 0 .773"})),h.createElement("defs",null,h.createElement("clipPath",{id:"0d1c4873150c1de1a114eb34bc3dcd8d__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),_d=_.forwardRef(fd),gd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10.875 9.5c0-1.734-.937-3.328-2.437-4.219a4.89 4.89 0 0 0-4.876 0A4.87 4.87 0 0 0 1.126 9.5a4.88 4.88 0 0 0 2.438 4.242c1.5.867 3.351.867 4.874 0 1.5-.89 2.438-2.484 2.438-4.242M0 9.5a5.96 5.96 0 0 1 3-5.18 5.97 5.97 0 0 1 6 0 6 6 0 0 1 3 5.18 6.01 6.01 0 0 1-3 5.203 5.97 5.97 0 0 1-6 0A5.97 5.97 0 0 1 0 9.5"})),h.createElement("defs",null,h.createElement("clipPath",{id:"aeb29c713b018b89fef35759f40654ee__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),pd=_.forwardRef(gd),bd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:8,height:18,viewBox:"0 0 8 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7.258 9.242c.14.14.14.399 0 .54l-4.5 4.5a.397.397 0 0 1-.54 0 .397.397 0 0 1 0-.54L6.462 9.5 2.219 5.281a.397.397 0 0 1 0-.539c.14-.14.398-.14.539 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"456734bce88d5f24f7aef12f90604109__a"},h.createElement("path",{d:"M0 0h8v18H0z"})))),vd=_.forwardRef(bd),yd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:2,height:18,viewBox:"0 0 2 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M1.563 4.813v6.75a.555.555 0 0 1-.563.562.54.54 0 0 1-.562-.562v-6.75c0-.305.234-.563.562-.563a.57.57 0 0 1 .563.563M1 14.75A.74.74 0 0 1 .25 14c0-.398.328-.75.75-.75.398 0 .75.352.75.75 0 .422-.352.75-.75.75"})),h.createElement("defs",null,h.createElement("clipPath",{id:"84afc83e0b6f9d5e5088386e42f51c1e__a"},h.createElement("path",{d:"M0 0h2v18H0z"})))),wd=_.forwardRef(yd),xd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M6 15.5a5.97 5.97 0 0 1-5.203-3 5.97 5.97 0 0 1 0-6A6.01 6.01 0 0 1 6 3.5a6 6 0 0 1 5.18 3 5.97 5.97 0 0 1 0 6 5.96 5.96 0 0 1-5.18 3m0-9a.555.555 0 0 0-.562.563v2.625c0 .328.234.562.562.562a.555.555 0 0 0 .563-.562V7.062A.57.57 0 0 0 6 6.5m-.75 5.25c0 .422.328.75.75.75.398 0 .75-.328.75-.75A.77.77 0 0 0 6 11a.755.755 0 0 0-.75.75"})),h.createElement("defs",null,h.createElement("clipPath",{id:"a22e285ec61348d93378af49e8e93909__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),$d=_.forwardRef(xd),Sd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:18,viewBox:"0 0 12 18",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M6.375 3.875v2.25c0 .21-.187.375-.375.375a.37.37 0 0 1-.375-.375v-2.25c0-.187.164-.375.375-.375.188 0 .375.188.375.375m0 9v2.25c0 .21-.187.375-.375.375a.37.37 0 0 1-.375-.375v-2.25c0-.187.164-.375.375-.375.188 0 .375.188.375.375M0 9.5c0-.187.164-.375.375-.375h2.25c.188 0 .375.188.375.375 0 .21-.187.375-.375.375H.375A.37.37 0 0 1 0 9.5m9.375-.375h2.25c.188 0 .375.188.375.375 0 .21-.187.375-.375.375h-2.25A.37.37 0 0 1 9 9.5c0-.187.164-.375.375-.375m.867-3.867c.14.164.14.398 0 .539L8.648 7.39c-.164.14-.398.14-.539 0-.14-.141-.14-.375 0-.54l1.594-1.593c.14-.14.375-.14.54 0m-6.375 6.914-1.594 1.57a.332.332 0 0 1-.515 0 .332.332 0 0 1 0-.515l1.57-1.594c.164-.14.399-.14.54 0 .14.14.14.375 0 .539m-2.11-6.914c.141-.14.376-.14.516 0l1.594 1.594c.14.164.14.398 0 .539-.14.14-.375.14-.539 0l-1.57-1.594c-.164-.14-.164-.375 0-.54m6.891 6.375 1.594 1.594c.14.14.14.375 0 .515-.164.164-.398.164-.539 0l-1.594-1.57c-.14-.164-.14-.399 0-.54.141-.14.375-.14.54 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1d73502a283088e0ac1ac1eb030d8292__a"},h.createElement("path",{d:"M0 0h12v18H0z"})))),Cd=_.forwardRef(Sd),Td=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:22,viewBox:"0 0 11 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M9.11 15.016 5.5 11.379l-3.637 3.637c-.164.164-.437.164-.629 0-.164-.192-.164-.465 0-.63l3.637-3.636-3.637-3.61c-.164-.163-.164-.437 0-.628.192-.164.465-.164.63 0L5.5 10.148l3.61-3.636c.163-.164.437-.164.628 0 .164.191.164.465 0 .629L6.102 10.75l3.636 3.637c.164.164.164.437 0 .629-.191.164-.465.164-.629 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"5a637b23bfeb8c9bd64d521a0a8a95f2__a"},h.createElement("path",{d:"M0 0h11v22H0z"})))),rr=_.forwardRef(Td),Bd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:11,height:22,viewBox:"0 0 11 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m9.684 7.496-3.282 3.281 3.254 3.254a.6.6 0 0 1 0 .903.6.6 0 0 1-.902 0L5.473 11.68l-3.254 3.254a.6.6 0 0 1-.903 0c-.273-.246-.273-.657 0-.93L4.57 10.75 1.316 7.496c-.273-.246-.273-.656 0-.93.246-.246.657-.246.93 0L5.5 9.848l3.254-3.254c.246-.274.656-.274.93 0a.644.644 0 0 1 0 .902"})),h.createElement("defs",null,h.createElement("clipPath",{id:"f4a5a1d60c20f00dc673316c40281eb8__a"},h.createElement("path",{d:"M0 0h11v22H0z"})))),Ad=_.forwardRef(Bd),kd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 4.625a6.11 6.11 0 0 0-5.305 3.063c-1.12 1.914-1.12 4.238 0 6.125C2.79 15.727 4.785 16.875 7 16.875a6.04 6.04 0 0 0 5.277-3.062c1.121-1.887 1.121-4.211 0-6.126A6.1 6.1 0 0 0 7 4.626M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75M4.922 8.7a.463.463 0 0 1 .629 0L7 10.147 8.422 8.7a.463.463 0 0 1 .629 0 .463.463 0 0 1 0 .63L7.6 10.75l1.45 1.45a.463.463 0 0 1 0 .628.463.463 0 0 1-.63 0L7 11.378l-1.45 1.45a.463.463 0 0 1-.628 0 .463.463 0 0 1 0-.629l1.45-1.449-1.45-1.422a.463.463 0 0 1 0-.629"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1e440f5b0ed66f7abd0777695846b30c__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Md=_.forwardRef(kd),Ld=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 5.063c-2.05 0-3.91 1.093-4.95 2.843a5.71 5.71 0 0 0 0 5.688A5.7 5.7 0 0 0 7 16.438a5.68 5.68 0 0 0 4.922-2.844 5.71 5.71 0 0 0 0-5.688C10.882 6.156 9.023 5.063 7 5.063M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75M4.785 8.535a.644.644 0 0 1 .902 0L6.974 9.82l1.285-1.285c.273-.246.683-.246.93 0 .273.274.273.684 0 .93L7.902 10.75l1.285 1.285c.274.274.274.684 0 .93-.246.273-.656.273-.93 0L6.974 11.68l-1.285 1.285a.6.6 0 0 1-.903 0c-.273-.246-.273-.656 0-.93L6.07 10.75 4.785 9.465c-.273-.246-.273-.656 0-.93"})),h.createElement("defs",null,h.createElement("clipPath",{id:"3f8b7f3171bf00bfe4d07a95fd722b2e__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Fo=_.forwardRef(Ld),Ed=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75M4.785 8.535c-.273.274-.273.684 0 .93L6.07 10.75l-1.285 1.285c-.273.274-.273.684 0 .93a.6.6 0 0 0 .902 0l1.286-1.285 1.285 1.285c.273.273.683.273.93 0 .273-.246.273-.656 0-.93L7.902 10.75l1.285-1.285c.274-.246.274-.656 0-.93-.246-.246-.656-.246-.93 0L6.974 9.82 5.688 8.535a.644.644 0 0 0-.903 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"d9c2bc07527fc7346366173ec5828db1__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),jd=_.forwardRef(Ed),Dd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M12.188 10.75c0 .383-.301.656-.657.656H1.47a.63.63 0 0 1-.657-.656c0-.355.274-.656.657-.656H11.53c.356 0 .656.3.656.656"})),h.createElement("defs",null,h.createElement("clipPath",{id:"6be3fa7936bc054924e75a23a7878e2d__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),Nd=_.forwardRef(Dd),Pd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7.156 5.719v4.375h4.375c.356 0 .656.3.656.656 0 .383-.3.656-.656.656H7.156v4.375c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656v-4.375H1.469a.63.63 0 0 1-.657-.656c0-.355.274-.656.657-.656h4.375V5.719c0-.356.273-.657.656-.657.355 0 .656.301.656.657"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1dc57e9c4427000c5e369c0757837df9__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),Id=_.forwardRef(Pd),Fd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M5.215 4.625a.43.43 0 0 0-.356.219l-.437.656H8.55l-.438-.656a.43.43 0 0 0-.355-.219zm4.348.875h2.625a.47.47 0 0 1 .437.438.45.45 0 0 1-.437.437h-.52l-.684 9.762c-.082.93-.82 1.613-1.75 1.613H3.738a1.756 1.756 0 0 1-1.75-1.613l-.683-9.762H.813a.43.43 0 0 1-.438-.437.45.45 0 0 1 .438-.438H3.41l.711-1.121a1.29 1.29 0 0 1 1.094-.629h2.543c.437 0 .875.246 1.12.629zm1.23.875H2.18l.683 9.707c.028.438.41.793.875.793h5.496c.465 0 .848-.355.875-.793z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"3e6a3dd17552a5a7315cefa1b23af9e5__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),sr=_.forwardRef(Fd),Od=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M4.531 4.406V5.5H8.47V4.406c0-.355.273-.656.656-.656.355 0 .656.3.656.656V5.5h1.094c.957 0 1.75.793 1.75 1.75V16c0 .984-.793 1.75-1.75 1.75h-8.75c-.984 0-1.75-.766-1.75-1.75V7.25c0-.957.766-1.75 1.75-1.75h1.094V4.406c0-.355.273-.656.656-.656.355 0 .656.3.656.656M1.688 9v7c0 .246.19.438.437.438h8.75a.45.45 0 0 0 .438-.438V9z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"bc5926822c2f7637f70fc8869349e7b3__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),cr=_.forwardRef(Od),Rd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10.063 9.438c0-1.56-.848-2.981-2.188-3.774a4.32 4.32 0 0 0-4.375 0 4.34 4.34 0 0 0-2.187 3.774c0 1.585.82 3.007 2.187 3.8a4.32 4.32 0 0 0 4.375 0c1.34-.793 2.188-2.215 2.188-3.8m-.848 4.484a5.73 5.73 0 0 1-3.527 1.203A5.683 5.683 0 0 1 0 9.438C0 6.32 2.543 3.75 5.688 3.75c3.117 0 5.687 2.57 5.687 5.688 0 1.34-.465 2.57-1.23 3.554l3.664 3.637c.246.273.246.683 0 .93-.274.273-.684.273-.93 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"27e8fa1303a7c6f3bfebe39ae7ff45e9__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Vd=_.forwardRef(Rd),Wd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:22,viewBox:"0 0 16 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8 5.938c-1.805 0-3.254.82-4.375 1.859a9.8 9.8 0 0 0-2.16 2.953c.383.82 1.094 1.996 2.16 2.98 1.121 1.04 2.57 1.832 4.375 1.832 1.777 0 3.227-.792 4.348-1.832 1.066-.984 1.804-2.16 2.16-2.98-.356-.82-1.094-1.969-2.133-2.953-1.148-1.04-2.598-1.86-4.375-1.86m-5.277.902C4.008 5.637 5.785 4.625 8 4.625c2.188 0 3.965 1.012 5.25 2.215s2.133 2.598 2.543 3.582a.98.98 0 0 1 0 .683c-.41.957-1.258 2.38-2.543 3.582-1.285 1.204-3.062 2.188-5.25 2.188-2.215 0-3.992-.984-5.277-2.187C1.438 13.484.59 12.062.18 11.105a.98.98 0 0 1 0-.683c.41-.985 1.257-2.406 2.543-3.582M8 12.938a2.176 2.176 0 0 0 2.188-2.188A2.194 2.194 0 0 0 8 8.563h-.055c.028.164.055.3.055.437 0 .984-.793 1.75-1.75 1.75-.164 0-.3 0-.437-.055v.055A2.16 2.16 0 0 0 8 12.938M8 7.25c1.23 0 2.379.684 3.008 1.75a3.48 3.48 0 0 1 0 3.5A3.47 3.47 0 0 1 8 14.25a3.48 3.48 0 0 1-3.035-1.75 3.48 3.48 0 0 1 0-3.5A3.54 3.54 0 0 1 8 7.25"})),h.createElement("defs",null,h.createElement("clipPath",{id:"0274c42447a99e92c839f58344761c3a__a"},h.createElement("path",{d:"M0 0h16v22H0z"})))),Hd=_.forwardRef(Wd),qd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:22,viewBox:"0 0 18 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m1.29 3.914 3.062 2.379C5.582 5.363 7.113 4.625 9 4.625c2.188 0 3.965 1.012 5.25 2.215 1.285 1.176 2.133 2.598 2.543 3.582a.98.98 0 0 1 0 .683c-.355.875-1.094 2.133-2.187 3.227l2.87 2.27c.301.218.356.628.11.902a.604.604 0 0 1-.902.11L.496 4.925a.604.604 0 0 1-.11-.903.604.604 0 0 1 .903-.109m4.128 3.227 1.258.984A3.5 3.5 0 0 1 9 7.25c1.914 0 3.5 1.586 3.5 3.5 0 .602-.137 1.148-.41 1.613l1.476 1.149c.957-.93 1.614-1.996 1.942-2.762-.356-.82-1.094-1.969-2.16-2.953-1.121-1.04-2.57-1.86-4.348-1.86-1.395 0-2.57.493-3.582 1.204m5.605 4.402c.11-.246.165-.52.165-.793A2.194 2.194 0 0 0 9 8.563h-.055c.028.164.055.3.055.437 0 .3-.082.547-.191.793zM12.445 16A7.16 7.16 0 0 1 9 16.875c-2.215 0-3.992-.984-5.277-2.187-1.285-1.204-2.133-2.626-2.543-3.583a.98.98 0 0 1 0-.683C1.453 9.793 1.89 9 2.52 8.18L3.53 9a8.6 8.6 0 0 0-1.066 1.75c.383.82 1.094 1.996 2.16 2.98 1.121 1.04 2.57 1.832 4.375 1.832.82 0 1.586-.164 2.297-.464zm-2.406-1.887a4.4 4.4 0 0 1-1.066.137 3.507 3.507 0 0 1-3.5-3.5c0-.055.027-.137.027-.219l1.531 1.203c.274.575.82 1.012 1.477 1.149z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"d43c779a811da9d341df8f5071883c46__a"},h.createElement("path",{d:"M0 0h18v22H0z"})))),Yd=_.forwardRef(qd),zd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M12.434 6.566c.246.274.246.684 0 .93l-7.22 7.219c-.273.273-.683.273-.929 0L.566 10.996a.6.6 0 0 1 0-.902.6.6 0 0 1 .903 0l3.254 3.254 6.78-6.782a.644.644 0 0 1 .903 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"29e7328e5bea8cd79e2b369c957f46cf__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),Gd=_.forwardRef(zd),Ud=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 4.625a6.11 6.11 0 0 0-5.305 3.063c-1.12 1.914-1.12 4.238 0 6.125C2.79 15.727 4.785 16.875 7 16.875a6.04 6.04 0 0 0 5.277-3.062c1.121-1.887 1.121-4.211 0-6.126A6.1 6.1 0 0 0 7 4.626M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m2.926-8.422-3.5 3.5a.463.463 0 0 1-.63 0l-1.75-1.75a.463.463 0 0 1 0-.629.463.463 0 0 1 .63 0l1.449 1.45 3.172-3.2a.463.463 0 0 1 .629 0 .463.463 0 0 1 0 .63"})),h.createElement("defs",null,h.createElement("clipPath",{id:"0cf36cb9272596d9042e8fd5bc58a314__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Kd=_.forwardRef(Ud),Xd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 5.063c-2.05 0-3.91 1.093-4.95 2.843a5.71 5.71 0 0 0 0 5.688A5.7 5.7 0 0 0 7 16.438a5.68 5.68 0 0 0 4.922-2.844 5.71 5.71 0 0 0 0-5.688C10.882 6.156 9.023 5.063 7 5.063M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m3.09-8.285-3.5 3.5c-.274.273-.684.273-.93 0l-1.75-1.75a.6.6 0 0 1 0-.902c.246-.274.656-.274.93 0l1.285 1.285L9.16 8.562c.246-.273.656-.273.93 0a.644.644 0 0 1 0 .903"})),h.createElement("defs",null,h.createElement("clipPath",{id:"df8c822a116dbd5cf6d60534a1dc793e__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Oo=_.forwardRef(Xd),Qd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10.875 5.938h-8.75a.45.45 0 0 0-.437.437v8.75c0 .246.19.438.437.438h8.75a.45.45 0 0 0 .438-.438v-8.75a.47.47 0 0 0-.438-.437m-8.75-1.313h8.75c.957 0 1.75.793 1.75 1.75v8.75c0 .984-.793 1.75-1.75 1.75h-8.75c-.984 0-1.75-.766-1.75-1.75v-8.75c0-.957.766-1.75 1.75-1.75"})),h.createElement("defs",null,h.createElement("clipPath",{id:"3aee50af01a73632bbfc69cef77b8423__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),Jd=_.forwardRef(Qd),Zd=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M2.125 4.625h8.75c.957 0 1.75.793 1.75 1.75v8.75c0 .984-.793 1.75-1.75 1.75h-8.75c-.984 0-1.75-.766-1.75-1.75v-8.75c0-.957.766-1.75 1.75-1.75m7.465 4.84h-.027c.273-.246.273-.656 0-.93a.644.644 0 0 0-.903 0l-3.035 3.063-1.285-1.286c-.274-.273-.684-.273-.93 0a.6.6 0 0 0 0 .903l1.75 1.75c.246.273.656.273.93 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"79d193803929ebee00e2bc777147c44c__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),eh=_.forwardRef(Zd),th=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:22,viewBox:"0 0 9 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8.3 10.45a.463.463 0 0 1 0 .628l-5.25 5.25a.463.463 0 0 1-.628 0 .463.463 0 0 1 0-.629l4.95-4.949-4.95-4.922a.463.463 0 0 1 0-.629.463.463 0 0 1 .629 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"868a53708ec5a84998bbca257b0182d5__a"},h.createElement("path",{d:"M0 0h9v22H0z"})))),cn=_.forwardRef(th),nh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:22,viewBox:"0 0 9 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8.465 10.285c.246.274.246.684 0 .93l-5.25 5.25c-.274.273-.684.273-.93 0a.6.6 0 0 1 0-.902l4.785-4.786-4.785-4.812a.6.6 0 0 1 0-.902.6.6 0 0 1 .902 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"254a9d24fe7357b7c0bfedfe22840504__a"},h.createElement("path",{d:"M0 0h9v22H0z"})))),ln=_.forwardRef(nh),oh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m6.535 14.715-5.25-5.25c-.273-.246-.273-.656 0-.93.246-.246.656-.246.93 0L7 13.348l4.785-4.786c.246-.273.656-.273.93 0a.644.644 0 0 1 0 .903l-5.277 5.25a.6.6 0 0 1-.903 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"ded5214c4142b1c2f23653c43fd48618__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),$t=_.forwardRef(oh),ih=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:22,viewBox:"0 0 9 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M.672 11.078a.463.463 0 0 1 0-.629l5.25-5.25a.463.463 0 0 1 .629 0 .463.463 0 0 1 0 .63L1.6 10.75l4.95 4.95a.463.463 0 0 1 0 .628.463.463 0 0 1-.63 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"72954560554ccc028ce578ead3368d04__a"},h.createElement("path",{d:"M0 0h9v22H0z"})))),ah=_.forwardRef(ih),rh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:9,height:22,viewBox:"0 0 9 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m.535 10.285 5.25-5.222c.246-.274.656-.274.93 0a.644.644 0 0 1 0 .902L1.902 10.75l4.786 4.813a.6.6 0 0 1 0 .902.6.6 0 0 1-.903 0l-5.25-5.25c-.273-.246-.273-.656 0-.93"})),h.createElement("defs",null,h.createElement("clipPath",{id:"4f8a52a9102242ca682c650681bd5f32__a"},h.createElement("path",{d:"M0 0h9v22H0z"})))),un=_.forwardRef(rh),sh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M12.625 6.156v9.188c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656V6.156c0-.355.273-.656.656-.656.355 0 .656.3.656.656m-3.719 5.086-3.719 3.5a.68.68 0 0 1-.93-.027c-.245-.274-.245-.684.028-.93l2.516-2.379H1.03a.63.63 0 0 1-.656-.656c0-.355.273-.656.656-.656h5.77L4.285 7.742c-.273-.246-.273-.656-.027-.93.246-.273.656-.273.93-.027l3.718 3.5c.137.137.219.3.219.465a.69.69 0 0 1-.219.492"})),h.createElement("defs",null,h.createElement("clipPath",{id:"9a78fd2aa7fe0a4eb3a32f17a6deaf07__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),ch=_.forwardRef(sh),lh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M.375 15.344V6.156c0-.355.273-.656.656-.656.356 0 .657.3.657.656v9.188c0 .383-.301.656-.657.656a.63.63 0 0 1-.656-.656m3.691-5.059 3.72-3.5c.273-.246.683-.246.929.027.246.274.246.684-.027.93l-2.516 2.352h5.797c.355 0 .656.3.656.656 0 .383-.3.656-.656.656H6.172l2.516 2.38c.273.245.273.655.027.929-.246.273-.656.273-.93.027l-3.719-3.5a.66.66 0 0 1-.191-.492c0-.164.055-.355.191-.465"})),h.createElement("defs",null,h.createElement("clipPath",{id:"8a95bffb0a6745959e544f2b42e01a0d__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),lr=_.forwardRef(lh),uh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:22,viewBox:"0 0 13 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M4.313 7.25V9h4.375V7.25A2.194 2.194 0 0 0 6.5 5.063c-1.23 0-2.187.984-2.187 2.187M3 9V7.25c0-1.914 1.559-3.5 3.5-3.5 1.914 0 3.5 1.586 3.5 3.5V9h.875c.957 0 1.75.793 1.75 1.75V16c0 .984-.793 1.75-1.75 1.75h-8.75c-.984 0-1.75-.766-1.75-1.75v-5.25c0-.957.766-1.75 1.75-1.75zm-1.312 1.75V16c0 .246.19.438.437.438h8.75a.45.45 0 0 0 .438-.438v-5.25a.47.47 0 0 0-.438-.437h-8.75a.45.45 0 0 0-.437.437"})),h.createElement("defs",null,h.createElement("clipPath",{id:"18960020a79f375e27dc4e2219d6c298__a"},h.createElement("path",{d:"M0 0h13v22H0z"})))),dh=_.forwardRef(uh),hh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:2,height:22,viewBox:"0 0 2 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M1.656 5.281v7.875c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656V5.281c0-.355.273-.656.656-.656.355 0 .656.3.656.656M1 16.875A.864.864 0 0 1 .125 16c0-.465.383-.875.875-.875a.9.9 0 0 1 .875.875c0 .492-.41.875-.875.875"})),h.createElement("defs",null,h.createElement("clipPath",{id:"bf683794fc945b30ddcca6dc004e0f23__a"},h.createElement("path",{d:"M0 0h2v22H0z"})))),mh=_.forwardRef(hh),fh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M.93 15.262c-.055.082-.055.164-.055.246 0 .273.219.52.492.52h11.238c.274 0 .52-.247.52-.52a.44.44 0 0 0-.082-.246L7.547 5.828A.66.66 0 0 0 7 5.5a.67.67 0 0 0-.574.328zm-.766-.438L5.66 5.391A1.57 1.57 0 0 1 7 4.625c.52 0 1.04.3 1.313.766l5.496 9.433c.109.192.191.438.191.684 0 .765-.629 1.367-1.395 1.367H1.367A1.354 1.354 0 0 1 0 15.508c0-.246.055-.492.164-.684M7 8.125a.47.47 0 0 1 .438.438v3.5A.45.45 0 0 1 7 12.5a.43.43 0 0 1-.437-.437v-3.5A.45.45 0 0 1 7 8.124m-.656 6.125c0-.355.273-.656.656-.656.355 0 .656.3.656.656 0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656"})),h.createElement("defs",null,h.createElement("clipPath",{id:"532744b1f8ffbb91565052af8ce00715__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),_h=_.forwardRef(fh),gh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m6.781 6.074-5.414 8.887c-.054.082-.054.137-.054.219 0 .218.164.383.382.383h10.582c.22 0 .41-.165.41-.383 0-.082-.027-.137-.082-.22L7.192 6.075A.21.21 0 0 0 7 5.938c-.11 0-.164.054-.219.136m-1.12-.683A1.57 1.57 0 0 1 7 4.625c.52 0 1.04.3 1.313.766l5.414 8.886c.164.274.273.575.273.903 0 .93-.766 1.695-1.723 1.695H1.695C.765 16.875 0 16.109 0 15.18q0-.493.246-.903zm2.214 8.422c0 .492-.41.874-.875.874a.864.864 0 0 1-.875-.874c0-.465.383-.876.875-.876a.9.9 0 0 1 .875.876M7.656 8.78v2.625c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656V8.781c0-.355.273-.656.656-.656.355 0 .656.3.656.656"})),h.createElement("defs",null,h.createElement("clipPath",{id:"94ebd871b89755cc937f4f2cf4005612__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Ro=_.forwardRef(gh),ph=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 4.625a6.11 6.11 0 0 0-5.305 3.063c-1.12 1.914-1.12 4.238 0 6.125C2.79 15.727 4.785 16.875 7 16.875a6.04 6.04 0 0 0 5.277-3.062c1.121-1.887 1.121-4.211 0-6.126A6.1 6.1 0 0 0 7 4.626M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m0-10.5a.47.47 0 0 1 .438.438v3.5a.45.45 0 0 1-.438.437.43.43 0 0 1-.437-.437v-3.5A.45.45 0 0 1 7 7.25m.656 6.125c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656c0-.355.273-.656.656-.656.355 0 .656.3.656.656"})),h.createElement("defs",null,h.createElement("clipPath",{id:"7ec48a41a0f41d4b10ca6c581f849435__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),bh=_.forwardRef(ph),vh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 5.063c-2.05 0-3.91 1.093-4.95 2.843a5.71 5.71 0 0 0 0 5.688A5.7 5.7 0 0 0 7 16.438a5.68 5.68 0 0 0 4.922-2.844 5.71 5.71 0 0 0 0-5.688C10.882 6.156 9.023 5.063 7 5.063M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m0-10.5c.355 0 .656.3.656.656v3.063c0 .383-.3.656-.656.656a.63.63 0 0 1-.656-.656V7.906c0-.355.273-.656.656-.656m.875 6.125c0 .492-.41.875-.875.875a.864.864 0 0 1-.875-.875c0-.465.383-.875.875-.875a.9.9 0 0 1 .875.875"})),h.createElement("defs",null,h.createElement("clipPath",{id:"e7f27b1f9aa9aea0007e616e45cc63e8__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),ur=_.forwardRef(vh),yh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 4.625a6.11 6.11 0 0 0-5.305 3.063c-1.12 1.914-1.12 4.238 0 6.125C2.79 15.727 4.785 16.875 7 16.875a6.04 6.04 0 0 0 5.277-3.062c1.121-1.887 1.121-4.211 0-6.126A6.1 6.1 0 0 0 7 4.626M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m-1.312-4.375h.875V10.75h-.657a.43.43 0 0 1-.437-.437.45.45 0 0 1 .437-.438H7a.47.47 0 0 1 .438.438v3.062h.875a.47.47 0 0 1 .437.438.45.45 0 0 1-.437.437H5.687a.43.43 0 0 1-.437-.437.45.45 0 0 1 .438-.438M7 8.781a.63.63 0 0 1-.656-.656c0-.355.273-.656.656-.656.355 0 .656.3.656.656 0 .383-.3.656-.656.656"})),h.createElement("defs",null,h.createElement("clipPath",{id:"1d5629c3fe715ba6306a2189946e22e1__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),Vo=_.forwardRef(yh),wh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7 5.063c-2.05 0-3.91 1.093-4.95 2.843a5.71 5.71 0 0 0 0 5.688A5.7 5.7 0 0 0 7 16.438a5.68 5.68 0 0 0 4.922-2.844 5.71 5.71 0 0 0 0-5.688C10.882 6.156 9.023 5.063 7 5.063M7 17.75a6.96 6.96 0 0 1-6.07-3.5c-1.258-2.16-1.258-4.812 0-7A7.02 7.02 0 0 1 7 3.75c2.488 0 4.785 1.34 6.043 3.5 1.258 2.188 1.258 4.84 0 7A6.95 6.95 0 0 1 7 17.75m-1.094-4.812h.657v-1.75h-.657a.63.63 0 0 1-.656-.657c0-.355.273-.656.656-.656H7.22c.355 0 .656.3.656.656v2.406h.219c.355 0 .656.301.656.657 0 .383-.3.656-.656.656H5.906a.63.63 0 0 1-.656-.656c0-.356.273-.656.656-.656M7 9a.864.864 0 0 1-.875-.875c0-.465.383-.875.875-.875a.9.9 0 0 1 .875.875c0 .492-.41.875-.875.875"})),h.createElement("defs",null,h.createElement("clipPath",{id:"baede272c8f74f3cdd7240e0ca31e670__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),dr=_.forwardRef(wh),xh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:22,viewBox:"0 0 14 22",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M7.438 4.188v2.625A.45.45 0 0 1 7 7.25a.43.43 0 0 1-.437-.437V4.188A.45.45 0 0 1 7 3.75a.47.47 0 0 1 .438.438m0 10.5v2.624A.45.45 0 0 1 7 17.75a.43.43 0 0 1-.437-.437v-2.625A.45.45 0 0 1 7 14.25a.47.47 0 0 1 .438.438M0 10.75a.45.45 0 0 1 .438-.437h2.625a.47.47 0 0 1 .437.437.45.45 0 0 1-.437.438H.438A.43.43 0 0 1 0 10.75m10.938-.437h2.624a.47.47 0 0 1 .438.437.45.45 0 0 1-.437.438h-2.626a.43.43 0 0 1-.437-.438.45.45 0 0 1 .438-.437M11.949 5.8c.164.191.164.465 0 .629l-1.86 1.86c-.19.163-.464.163-.628 0-.164-.165-.164-.438 0-.63l1.86-1.86c.163-.163.437-.163.628 0m-7.437 8.066L2.652 15.7a.387.387 0 0 1-.601 0 .387.387 0 0 1 0-.601l1.832-1.86c.191-.164.465-.164.629 0s.164.438 0 .63M2.05 5.801a.43.43 0 0 1 .601 0l1.86 1.86c.164.19.164.464 0 .628s-.438.164-.63 0L2.052 6.43c-.192-.163-.192-.437 0-.628m8.039 7.437 1.86 1.86a.43.43 0 0 1 0 .601c-.192.192-.466.192-.63 0l-1.86-1.832c-.163-.191-.163-.465 0-.629.165-.164.438-.164.63 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"161dfe525a9f4b76b6b30fdbd48ff8e9__a"},h.createElement("path",{d:"M0 0h14v22H0z"})))),$h=_.forwardRef(xh),Sh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:24,viewBox:"0 0 12 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"m10.781 8.281-3.75 3.75 3.719 3.719a.684.684 0 0 1 0 1.031.684.684 0 0 1-1.031 0l-3.75-3.718L2.25 16.78a.684.684 0 0 1-1.031 0c-.313-.281-.313-.75 0-1.062L4.937 12 1.22 8.281c-.313-.281-.313-.75 0-1.062.281-.282.75-.282 1.062 0L6 10.969 9.719 7.25c.281-.312.75-.312 1.062 0a.736.736 0 0 1 0 1.031"})),h.createElement("defs",null,h.createElement("clipPath",{id:"70197fbe37b301dd017ead72b09c922c__a"},h.createElement("path",{d:"M0 0h12v24H0z"})))),Wo=_.forwardRef(Sh),Ch=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:24,viewBox:"0 0 16 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8 20c-2.875 0-5.5-1.5-6.937-4-1.438-2.469-1.438-5.5 0-8A8.02 8.02 0 0 1 8 4c2.844 0 5.469 1.531 6.906 4 1.438 2.5 1.438 5.531 0 8A7.94 7.94 0 0 1 8 20M5.469 9.469c-.313.312-.313.781 0 1.062L6.937 12 5.47 13.469c-.313.312-.313.781 0 1.062a.684.684 0 0 0 1.031 0l1.469-1.469 1.468 1.47c.313.312.782.312 1.063 0 .313-.282.313-.75 0-1.063L9.031 12l1.469-1.469c.313-.281.313-.75 0-1.062-.281-.281-.75-.281-1.062 0l-1.47 1.469L6.5 9.468a.736.736 0 0 0-1.031 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"c8c323049b71863cb7732980ad6f6da9__a"},h.createElement("path",{d:"M0 0h16v24H0z"})))),Th=_.forwardRef(Ch),Bh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:24,viewBox:"0 0 14 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M13.844 7.156a.53.53 0 0 1 0 .719l-8.5 8.5a.53.53 0 0 1-.719 0l-4.5-4.5a.53.53 0 0 1 0-.719.53.53 0 0 1 .719 0L5 15.312l8.125-8.156a.53.53 0 0 1 .719 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"dc2ece79dd605e7ad41bc4f4a18aeb32__a"},h.createElement("path",{d:"M0 0h14v24H0z"})))),hr=_.forwardRef(Bh),Ah=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:14,height:24,viewBox:"0 0 14 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M13.781 7.219c.281.312.281.781 0 1.062l-8.25 8.25c-.312.313-.781.313-1.062 0l-4.25-4.25a.684.684 0 0 1 0-1.031.684.684 0 0 1 1.031 0l3.719 3.719 7.75-7.75a.736.736 0 0 1 1.031 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"ad5c40e9a18b3cb7c353706af4f6bb74__a"},h.createElement("path",{d:"M0 0h14v24H0z"})))),kh=_.forwardRef(Ah),Mh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:10,height:24,viewBox:"0 0 10 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M9.344 11.656a.53.53 0 0 1 0 .719l-6 6a.53.53 0 0 1-.719 0 .53.53 0 0 1 0-.719L8.281 12 2.625 6.375a.53.53 0 0 1 0-.719.53.53 0 0 1 .719 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"de53659cc0751e42def721e02aaa5770__a"},h.createElement("path",{d:"M0 0h10v24H0z"})))),Lh=_.forwardRef(Mh),Eh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:24,viewBox:"0 0 16 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8.344 16.375a.53.53 0 0 1-.719 0l-6-6a.53.53 0 0 1 0-.719.53.53 0 0 1 .719 0L8 15.312l5.625-5.656a.53.53 0 0 1 .719 0 .53.53 0 0 1 0 .719z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"c0f3caecac4b12715b03f3ede1ea1a68__a"},h.createElement("path",{d:"M0 0h16v24H0z"})))),jh=_.forwardRef(Eh),Dh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:2,height:24,viewBox:"0 0 2 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M1.75 5.75v9a.74.74 0 0 1-.75.75.72.72 0 0 1-.75-.75v-9A.74.74 0 0 1 1 5a.76.76 0 0 1 .75.75M1 19c-.562 0-1-.437-1-1 0-.531.438-1 1-1 .531 0 1 .469 1 1 0 .563-.469 1-1 1"})),h.createElement("defs",null,h.createElement("clipPath",{id:"3206b49f509456437a8765b68d3ef3aa__a"},h.createElement("path",{d:"M0 0h2v24H0z"})))),Nh=_.forwardRef(Dh),Ph=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:24,viewBox:"0 0 16 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8 20c-2.875 0-5.5-1.5-6.937-4-1.438-2.469-1.438-5.5 0-8A8.02 8.02 0 0 1 8 4c2.844 0 5.469 1.531 6.906 4 1.438 2.5 1.438 5.531 0 8A7.94 7.94 0 0 1 8 20M8 8a.74.74 0 0 0-.75.75v3.5c0 .438.313.75.75.75a.74.74 0 0 0 .75-.75v-3.5A.76.76 0 0 0 8 8m-1 7c0 .563.438 1 1 1 .531 0 1-.437 1-1 0-.531-.469-1-1-1-.562 0-1 .469-1 1"})),h.createElement("defs",null,h.createElement("clipPath",{id:"f263f96e2baf7cd3bb8fca94354deb69__a"},h.createElement("path",{d:"M0 0h16v24H0z"})))),Ih=_.forwardRef(Ph),Fh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:24,viewBox:"0 0 16 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8 5a6.98 6.98 0 0 0-6.062 3.5c-1.282 2.188-1.282 4.844 0 7C3.188 17.688 5.467 19 8 19c2.5 0 4.781-1.312 6.031-3.5 1.281-2.156 1.281-4.812 0-7C12.781 6.344 10.5 5 8 5m0 15c-2.875 0-5.5-1.5-6.937-4-1.438-2.469-1.438-5.5 0-8A8.02 8.02 0 0 1 8 4c2.844 0 5.469 1.531 6.906 4 1.438 2.5 1.438 5.531 0 8A7.94 7.94 0 0 1 8 20m-1.5-5h1v-3h-.75a.494.494 0 0 1-.5-.5c0-.25.219-.5.5-.5H8c.25 0 .5.25.5.5V15h1c.25 0 .5.25.5.5 0 .281-.25.5-.5.5h-3a.494.494 0 0 1-.5-.5c0-.25.219-.5.5-.5M8 9.75A.72.72 0 0 1 7.25 9 .74.74 0 0 1 8 8.25a.76.76 0 0 1 .75.75.74.74 0 0 1-.75.75"})),h.createElement("defs",null,h.createElement("clipPath",{id:"9da539e23e8329521b5abc6a4e7e0f40__a"},h.createElement("path",{d:"M0 0h16v24H0z"})))),Oh=_.forwardRef(Fh),Rh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:24,viewBox:"0 0 16 24",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M8.5 4.5v3c0 .281-.25.5-.5.5a.494.494 0 0 1-.5-.5v-3c0-.25.219-.5.5-.5.25 0 .5.25.5.5m0 12v3c0 .281-.25.5-.5.5a.494.494 0 0 1-.5-.5v-3c0-.25.219-.5.5-.5.25 0 .5.25.5.5M0 12c0-.25.219-.5.5-.5h3c.25 0 .5.25.5.5 0 .281-.25.5-.5.5h-3A.494.494 0 0 1 0 12m12.5-.5h3c.25 0 .5.25.5.5 0 .281-.25.5-.5.5h-3a.494.494 0 0 1-.5-.5c0-.25.219-.5.5-.5m1.156-5.156c.188.218.188.531 0 .718l-2.125 2.125c-.219.188-.531.188-.719 0-.187-.187-.187-.5 0-.718l2.126-2.125c.187-.188.5-.188.718 0m-8.5 9.218-2.125 2.094a.442.442 0 0 1-.687 0 .442.442 0 0 1 0-.687l2.094-2.125c.218-.188.53-.188.718 0 .188.187.188.5 0 .719M2.344 6.345a.49.49 0 0 1 .687 0l2.125 2.125c.188.219.188.531 0 .719-.187.187-.5.187-.718 0L2.344 7.062c-.219-.187-.219-.5 0-.718m9.187 8.5 2.125 2.125a.49.49 0 0 1 0 .687c-.219.219-.531.219-.719 0l-2.124-2.093c-.188-.22-.188-.532 0-.72.187-.187.5-.187.718 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"d322a8bd0bf2167fe930e91d1db2eb3b__a"},h.createElement("path",{d:"M0 0h16v24H0z"})))),mr=_.forwardRef(Rh),Vh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:30,viewBox:"0 0 20 30",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10 25.5c-3.594 0-6.875-1.875-8.672-5-1.797-3.086-1.797-6.875 0-10 1.797-3.086 5.078-5 8.672-5 3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.93 9.93 0 0 1-8.633 5M6.836 12.336c-.39.39-.39.976 0 1.328L8.672 15.5l-1.836 1.836c-.39.39-.39.977 0 1.328.351.39.937.39 1.289 0l1.836-1.836 1.836 1.836c.39.39.976.39 1.328 0 .39-.352.39-.937 0-1.328L11.289 15.5l1.836-1.836c.39-.351.39-.937 0-1.328-.352-.352-.937-.352-1.328 0L9.96 14.172l-1.836-1.836a.92.92 0 0 0-1.29 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"eb4d0e46c71d3d360b37a518f2186c8b__a"},h.createElement("path",{d:"M0 0h20v30H0z"})))),Wh=_.forwardRef(Vh),Hh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:13,height:30,viewBox:"0 0 13 30",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M11.93 15.07a.66.66 0 0 1 0 .899l-7.5 7.5a.66.66 0 0 1-.899 0 .66.66 0 0 1 0-.899l7.07-7.07-7.07-7.031a.66.66 0 0 1 0-.899.66.66 0 0 1 .899 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"8729393d7f66fef03359dbdf861c9d56__a"},h.createElement("path",{d:"M0 0h13v30H0z"})))),qh=_.forwardRef(Hh),Yh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:30,viewBox:"0 0 15 30",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10 7.375V8a.64.64 0 0 1-.625.625h-3.75A.617.617 0 0 1 5 8v-.625H3.75c-.703 0-1.25.586-1.25 1.25v13.75c0 .703.547 1.25 1.25 1.25h7.5c.664 0 1.25-.547 1.25-1.25V8.625c0-.664-.586-1.25-1.25-1.25zM.625 8.625A3.11 3.11 0 0 1 3.75 5.5h7.5a3.134 3.134 0 0 1 3.125 3.125v13.75A3.11 3.11 0 0 1 11.25 25.5h-7.5c-1.758 0-3.125-1.367-3.125-3.125z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"c2c717f62d332970d5801fb12dc784a4__a"},h.createElement("path",{d:"M0 0h15v30H0z"})))),zh=_.forwardRef(Yh),Gh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:30,viewBox:"0 0 20 30",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10 25.5c-3.594 0-6.875-1.875-8.672-5-1.797-3.086-1.797-6.875 0-10 1.797-3.086 5.078-5 8.672-5 3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.93 9.93 0 0 1-8.633 5m0-15a.925.925 0 0 0-.937.938v4.374c0 .547.39.938.937.938.508 0 .938-.39.938-.937v-4.376A.95.95 0 0 0 10 10.5m-1.25 8.75c0 .703.547 1.25 1.25 1.25.664 0 1.25-.547 1.25-1.25 0-.664-.586-1.25-1.25-1.25-.703 0-1.25.586-1.25 1.25"})),h.createElement("defs",null,h.createElement("clipPath",{id:"c57725866085ac980e7b59cf00e66852__a"},h.createElement("path",{d:"M0 0h20v30H0z"})))),Uh=_.forwardRef(Gh),Kh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:20,height:30,viewBox:"0 0 20 30",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M10.625 6.125v3.75A.64.64 0 0 1 10 10.5a.617.617 0 0 1-.625-.625v-3.75c0-.312.273-.625.625-.625.313 0 .625.313.625.625m0 15v3.75A.64.64 0 0 1 10 25.5a.617.617 0 0 1-.625-.625v-3.75c0-.312.273-.625.625-.625.313 0 .625.313.625.625M0 15.5c0-.312.273-.625.625-.625h3.75c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625H.625A.617.617 0 0 1 0 15.5m15.625-.625h3.75c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625h-3.75A.617.617 0 0 1 15 15.5c0-.312.273-.625.625-.625M17.07 8.43c.235.273.235.664 0 .898l-2.656 2.656c-.273.235-.664.235-.898 0-.235-.234-.235-.625 0-.898l2.656-2.656c.234-.235.625-.235.898 0M6.445 19.953 3.79 22.57a.553.553 0 0 1-.86 0 .553.553 0 0 1 0-.86l2.618-2.655c.273-.235.664-.235.898 0 .235.234.235.625 0 .898M2.93 8.43a.613.613 0 0 1 .86 0l2.655 2.656c.235.273.235.664 0 .898-.234.235-.625.235-.898 0L2.93 9.328c-.274-.234-.274-.625 0-.898m11.484 10.625 2.656 2.656a.613.613 0 0 1 0 .86c-.273.273-.664.273-.898 0l-2.656-2.618c-.235-.273-.235-.664 0-.898.234-.235.625-.235.898 0"})),h.createElement("defs",null,h.createElement("clipPath",{id:"b9d375456cddee61ea8993949fc9fce6__a"},h.createElement("path",{d:"M0 0h20v30H0z"})))),Xh=_.forwardRef(Kh),Qh=({title:e,titleId:t,...n},o)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:15,height:36,viewBox:"0 0 15 36",role:"img",ref:o,"aria-labelledby":t,...n},e?h.createElement("title",{id:t},e):null,h.createElement("g",null,h.createElement("path",{d:"M14.016 17.484c.28.282.28.797 0 1.078l-9 9c-.282.282-.797.282-1.078 0-.282-.28-.282-.796 0-1.078L12.422 18 3.938 9.563c-.282-.282-.282-.797 0-1.079.28-.28.796-.28 1.078 0z"})),h.createElement("defs",null,h.createElement("clipPath",{id:"ab8696625cef89b93034dd99bc87e225__a"},h.createElement("path",{d:"M0 0h15v36H0z"})))),Jh=_.forwardRef(Qh),Zh={danger:{bold:c.jsx(Ro,{}),regular:c.jsx(_h,{})},warning:{bold:c.jsx(ur,{}),regular:c.jsx(bh,{})},success:{bold:c.jsx(Oo,{}),regular:c.jsx(Kd,{})},information:{bold:c.jsx(dr,{}),regular:c.jsx(Vo,{})}},Ho=({className:e="",fontWeight:t="regular",size:n="sm",state:o="custom",style:i="fill",label:a,icon:r})=>{var d;const s=o!=="custom"?(d=Zh[o])==null?void 0:d[t]:r,l=`quill-tag-${o}`;return c.jsxs("div",{className:[ir.root,e,"quill-ui-next-component"].join(" "),"data-id":l,"data-fontWeight":t,"data-size":n,"data-state":o,"data-style":i,children:[s,c.jsx("span",{className:ir.label,children:a===""?"Label":a})]})};Ho.displayName="Tag";const em={icon:"TabIconTopAtom-module__icon___QldTj",customIcon:"TabIconTopAtom-module__customIcon___uQWUl",icon1:"TabIconTopAtom-module__icon1___TzhCP",label:"TabIconTopAtom-module__label___Gemw1",iconSm:"TabIconTopAtom-module__iconSm___j70uv",customIcon1:"TabIconTopAtom-module__customIcon1___8tw9h",customIcon2:"TabIconTopAtom-module__customIcon2___7R771",label1:"TabIconTopAtom-module__label1___qDud5",tags:"TabIconTopAtom-module__tags___dr-55",label2:"TabIconTopAtom-module__label2___t96bQ",badge:"TabIconTopAtom-module__badge___iUgXe",labelStatus:"TabIconTopAtom-module__labelStatus___nXkHV",bgFocus:"TabIconTopAtom-module__bgFocus___TeF5j",root:"TabIconTopAtom-module__root___ZXk4u"},tm={icon:"TabIconLeftAtom-module__icon___uAOlr",customIcon:"TabIconLeftAtom-module__customIcon___cyi2J",icon1:"TabIconLeftAtom-module__icon1___Lu-OG",label:"TabIconLeftAtom-module__label___osXMF",iconSm:"TabIconLeftAtom-module__iconSm___mqjNB",customIcon1:"TabIconLeftAtom-module__customIcon1___RAsev",customIcon2:"TabIconLeftAtom-module__customIcon2___PK1IT",label1:"TabIconLeftAtom-module__label1___8hJAL",tags:"TabIconLeftAtom-module__tags___ncFgF",label2:"TabIconLeftAtom-module__label2___-zGis",badge:"TabIconLeftAtom-module__badge___b2xkZ",bgFocus:"TabIconLeftAtom-module__bgFocus___n5W0B",root:"TabIconLeftAtom-module__root___R5vSN"},fr=()=>{const e=_.useRef(!1),t=_.useRef(void 0);return _.useEffect(()=>{const n=()=>{e.current=!0},o=()=>{clearTimeout(t.current),e.current=!1};return window.addEventListener("keydown",n),window.addEventListener("mousedown",o),()=>{window.removeEventListener("keydown",n),window.removeEventListener("mousedown",o),clearTimeout(t.current)}},[]),{wasKeyboard:e,onFocus:n=>{e.current&&n&&n(),clearTimeout(t.current),t.current=setTimeout(()=>{e.current=!1},100)},onBlur:n=>{n&&n()}}},Ae=({isDisabled:e=!1,onFocusExtra:t,onBlurExtra:n,setHighlight:o,onEnter:i})=>{const{onFocus:a,onBlur:r}=fr(),s=_.useRef(!1),l=_.useCallback(()=>{e||a(()=>{o(!0),s.current=!0,t==null||t()})},[e,a,o,t]),d=_.useCallback(()=>{e||r(()=>{o(!1),s.current=!1,n==null||n()})},[e,r,o,n]);return _.useEffect(()=>{if(e||!i)return;const u=m=>{m.key==="Enter"&&s.current&&i()};return window.addEventListener("keydown",u),()=>{window.removeEventListener("keydown",u)}},[e,i]),{handleFocus:l,handleBlur:d}},nm={"icon-top":em,"icon-left":tm},om=({className:e="",size:t="sm",state:n="default",style:o="icon-top",label:i="Label",icon:a,labelIcon:r,tag:s,badge:l,selected:d,type:u="horizontal",onClick:m})=>{const[f,g]=_.useState(!1),[v,p]=_.useState(n),[y,b]=_.useState(d),$=nm[o],S=`quill-ui-next-tab-atom-${t}-${o}-${v}-selected-${y}`,{handleBlur:x,handleFocus:w}=Ae({isDisabled:v==="disabled",setHighlight:g}),B=()=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:$.label,children:i}),r&&c.jsx("div",{className:`${$.iconSm} quill-tab-icon`,children:r}),s&&c.jsx(Ho,{...s}),l&&c.jsx(Nt,{...l})]}),A=()=>{m==null||m()};return _.useEffect(()=>{b(d)},[d]),_.useEffect(()=>{p(y?"selected":"default")},[y]),_.useEffect(()=>{p(n)},[n]),c.jsxs("div",{className:[$.root,e,"quill-ui-next-atom","quill-ui-next-no-select",v!=="disabled"&&"quill-ui-next-pointer"].join(" "),"data-size":t,"data-state":v,"data-type":u,"data-id":S,tabIndex:0,onFocus:w,onBlur:x,onClick:A,children:[a&&c.jsx("div",{className:`${$.customIcon} quill-tab-icon`,children:a}),o==="icon-top"?c.jsx("div",{className:$.labelStatus,children:B()}):B(),f&&c.jsx("div",{className:$.bgFocus})]})},_r=({width:e="fill-container",className:t="",tabs:n=[],selected:o=null,size:i="sm",type:a="horizontal",onChange:r})=>{const[s,l]=_.useState(o);_.useEffect(()=>{l(o)},[o]);const d=e==="fill-container"&&a==="horizontal"?n.slice(0,3):n;return c.jsx("div",{className:[`quill-ui-next-component ${a==="horizontal"?"quill-ui-next-full-width":""}`,"quill-next-ui-tab-container",`size-${i}`,e,a,t].join(" "),children:d.map(u=>c.jsx(om,{...u,size:i,selected:(s==null?void 0:s.label)===u.label,type:a,onClick:()=>{var m;l(u),r==null||r(u),(m=u.onClick)==null||m.call(u)}},`quill-ui-next-tab-${u.label}`))})};_r.displayName="Tab";const qn={root:"Steppers-module__root___sLvmH",stepper_container:"Steppers-module__stepper_container___QU9pN",header:"Steppers-module__header___v8EaQ",track:"Steppers-module__track___1KuxY"},qo={number:"SteppersMarker-module__number___kdG3V",root:"SteppersMarker-module__root___zQgBG",icon:"SteppersMarker-module__icon___9QA5B"},Ie={xs:{width:16,height:16},sm:{width:24,height:24},md:{width:32,height:32},lg:{width:48,height:48},xl:{width:64,height:64},"2xl":{width:96,height:96}},im=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M10.688 7.75h.937c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625h-.937C9.477 9 8.5 10.016 8.5 11.188v.937a.64.64 0 0 1-.625.625.617.617 0 0 1-.625-.625v-.937a3.443 3.443 0 0 1 3.438-3.438M7.874 14c.313 0 .625.313.625.625v3.75a.64.64 0 0 1-.625.625.617.617 0 0 1-.625-.625v-3.75c0-.312.273-.625.625-.625m16.25 0c.313 0 .625.313.625.625v3.75a.64.64 0 0 1-.625.625.617.617 0 0 1-.625-.625v-3.75c0-.312.273-.625.625-.625m0-1.25a.617.617 0 0 1-.625-.625v-.937C23.5 10.016 22.484 9 21.313 9h-.938a.617.617 0 0 1-.625-.625c0-.312.273-.625.625-.625h.938c1.875 0 3.437 1.563 3.437 3.438v.937a.64.64 0 0 1-.625.625m.625 8.125v.938a3.443 3.443 0 0 1-3.437 3.437h-.938a.617.617 0 0 1-.625-.625c0-.312.273-.625.625-.625h.938c1.171 0 2.187-.977 2.187-2.187v-.938c0-.312.273-.625.625-.625.313 0 .625.313.625.625m-16.25 0v.938c0 1.21.977 2.187 2.188 2.187h.937c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625h-.937a3.42 3.42 0 0 1-3.438-3.437v-.938c0-.312.273-.625.625-.625.313 0 .625.313.625.625m5.625 4.375a.617.617 0 0 1-.625-.625c0-.312.273-.625.625-.625h3.75c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625zM13.5 8.375c0-.312.273-.625.625-.625h3.75c.313 0 .625.313.625.625a.64.64 0 0 1-.625.625h-3.75a.617.617 0 0 1-.625-.625"})),am=_.forwardRef(im),rm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M10.688 7.75h.624a.95.95 0 0 1 .938.938c0 .546-.43.937-.937.937h-.626c-.898 0-1.562.703-1.562 1.563v.624c0 .547-.43.938-.937.938-.547 0-.938-.39-.938-.937v-.626a3.443 3.443 0 0 1 3.438-3.437M8.188 14a.95.95 0 0 1 .937.938v3.124c0 .547-.43.938-.937.938-.547 0-.938-.39-.938-.937v-3.125c0-.508.39-.938.938-.938m15.625 0a.95.95 0 0 1 .937.938v3.124c0 .547-.43.938-.937.938-.547 0-.938-.39-.938-.937v-3.125c0-.508.39-.938.938-.938m0-1.25c-.547 0-.938-.39-.938-.937v-.626c0-.859-.703-1.562-1.562-1.562h-.625c-.547 0-.938-.39-.938-.937 0-.508.39-.938.938-.938h.625c1.875 0 3.437 1.563 3.437 3.438v.624c0 .547-.43.938-.937.938m.937 8.438v.625a3.443 3.443 0 0 1-3.437 3.437h-.625c-.547 0-.938-.39-.938-.937 0-.508.39-.938.938-.938h.625c.859 0 1.562-.664 1.562-1.562v-.625c0-.508.39-.938.938-.938a.95.95 0 0 1 .937.938m-15.625 0v.625c0 .898.664 1.562 1.563 1.562h.624a.95.95 0 0 1 .938.938c0 .546-.43.937-.937.937h-.626a3.42 3.42 0 0 1-3.437-3.437v-.625c0-.508.39-.938.938-.938a.95.95 0 0 1 .937.938m5.313 4.062c-.547 0-.938-.39-.938-.937 0-.508.39-.938.938-.938h3.124a.95.95 0 0 1 .938.938c0 .546-.43.937-.937.937zM13.5 8.688c0-.508.39-.938.938-.938h3.124a.95.95 0 0 1 .938.938c0 .546-.43.937-.937.937h-3.125c-.547 0-.938-.39-.938-.937"})),sm=_.forwardRef(rm),cm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M16 8.375c-2.93 0-5.586 1.563-7.07 4.063-1.446 2.539-1.446 5.624 0 8.124A8.13 8.13 0 0 0 16 24.626c2.89 0 5.547-1.523 7.031-4.062 1.446-2.5 1.446-5.586 0-8.125-1.484-2.5-4.14-4.063-7.031-4.063M16 26.5c-3.594 0-6.875-1.875-8.672-5-1.797-3.086-1.797-6.875 0-10 1.797-3.086 5.078-5 8.672-5 3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.93 9.93 0 0 1-8.633 5m4.414-11.836-5 5c-.39.39-.976.39-1.328 0l-2.5-2.5a.856.856 0 0 1 0-1.289c.351-.39.937-.39 1.328 0l1.836 1.836 4.336-4.336c.352-.39.937-.39 1.328 0a.92.92 0 0 1 0 1.29"})),lm=_.forwardRef(cm),um=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M22.25 9.625H9.75a.64.64 0 0 0-.625.625v12.5c0 .352.273.625.625.625h12.5a.64.64 0 0 0 .625-.625v-12.5c0-.312-.312-.625-.625-.625M9.75 7.75h12.5c1.367 0 2.5 1.133 2.5 2.5v12.5c0 1.406-1.133 2.5-2.5 2.5H9.75a2.47 2.47 0 0 1-2.5-2.5v-12.5c0-1.367 1.094-2.5 2.5-2.5"})),dm=_.forwardRef(um),hm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M9.75 7.75h12.5c1.367 0 2.5 1.133 2.5 2.5v12.5c0 1.406-1.133 2.5-2.5 2.5H9.75a2.47 2.47 0 0 1-2.5-2.5v-12.5c0-1.367 1.094-2.5 2.5-2.5m10.664 6.914h-.039c.39-.351.39-.937 0-1.328a.92.92 0 0 0-1.29 0L14.75 17.71l-1.836-1.836c-.39-.39-.976-.39-1.328 0a.856.856 0 0 0 0 1.29l2.5 2.5c.351.39.937.39 1.328 0z"})),mm=_.forwardRef(hm),fm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M9.75 7.75h12.5c1.367 0 2.5 1.133 2.5 2.5v12.5c0 1.406-1.133 2.5-2.5 2.5H9.75a2.47 2.47 0 0 1-2.5-2.5v-12.5c0-1.367 1.094-2.5 2.5-2.5m3.438 7.813a.925.925 0 0 0-.938.937c0 .547.39.938.938.938h5.624c.508 0 .938-.391.938-.938a.95.95 0 0 0-.937-.937z"})),_m=_.forwardRef(fm),gm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M24.125 16.5c0-2.89-1.562-5.547-4.062-7.031-2.54-1.446-5.625-1.446-8.125 0-2.54 1.484-4.063 4.14-4.063 7.031a8.13 8.13 0 0 0 4.063 7.07c2.5 1.446 5.585 1.446 8.124 0 2.5-1.484 4.063-4.14 4.063-7.07M6 16.5a9.93 9.93 0 0 1 5-8.633c3.086-1.797 6.875-1.797 10 0 3.086 1.797 5 5.078 5 8.633 0 3.594-1.914 6.875-5 8.672-3.125 1.797-6.914 1.797-10 0-3.125-1.797-5-5.078-5-8.672m10-3.75c1.328 0 2.54.742 3.242 1.875.664 1.172.664 2.617 0 3.75-.703 1.172-1.914 1.875-3.242 1.875-1.367 0-2.578-.703-3.281-1.875-.664-1.133-.664-2.578 0-3.75.703-1.133 1.914-1.875 3.281-1.875"})),pm=_.forwardRef(gm),bm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M24.125 16.5c0-2.89-1.562-5.547-4.062-7.031-2.54-1.446-5.625-1.446-8.125 0-2.54 1.484-4.063 4.14-4.063 7.031a8.13 8.13 0 0 0 4.063 7.07c2.5 1.446 5.585 1.446 8.124 0 2.5-1.484 4.063-4.14 4.063-7.07M6 16.5a9.93 9.93 0 0 1 5-8.633c3.086-1.797 6.875-1.797 10 0 3.086 1.797 5 5.078 5 8.633 0 3.594-1.914 6.875-5 8.672-3.125 1.797-6.914 1.797-10 0-3.125-1.797-5-5.078-5-8.672"})),vm=_.forwardRef(bm),ym=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"m15.336 22.164-7.5-7.5c-.39-.351-.39-.937 0-1.328.351-.352.937-.352 1.328 0L16 20.21l6.836-6.836c.352-.39.937-.39 1.328 0a.92.92 0 0 1 0 1.29l-7.539 7.5a.856.856 0 0 1-1.29 0"})),wm=_.forwardRef(ym),xm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M15.688 9.82 7.953 22.516c-.078.117-.078.195-.078.312 0 .313.234.547.547.547h15.117c.313 0 .586-.234.586-.547 0-.117-.04-.195-.117-.312L16.273 9.82A.29.29 0 0 0 16 9.625c-.156 0-.234.078-.312.195m-1.602-.976A2.25 2.25 0 0 1 16 7.75c.742 0 1.484.43 1.875 1.094l7.734 12.695c.235.39.391.82.391 1.29 0 1.327-1.094 2.421-2.46 2.421H8.421A2.434 2.434 0 0 1 6 22.828q0-.703.352-1.289zm3.164 12.031c0 .703-.586 1.25-1.25 1.25-.703 0-1.25-.547-1.25-1.25 0-.664.547-1.25 1.25-1.25.664 0 1.25.586 1.25 1.25m-.312-7.187v3.75c0 .546-.43.937-.938.937-.547 0-.937-.39-.937-.937v-3.75c0-.508.39-.938.937-.938a.95.95 0 0 1 .938.938"})),gr=_.forwardRef(xm),$m=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M16 8.375c-2.93 0-5.586 1.563-7.07 4.063-1.446 2.539-1.446 5.624 0 8.124A8.13 8.13 0 0 0 16 24.626c2.89 0 5.547-1.523 7.031-4.062 1.446-2.5 1.446-5.586 0-8.125-1.484-2.5-4.14-4.063-7.031-4.063M16 26.5c-3.594 0-6.875-1.875-8.672-5-1.797-3.086-1.797-6.875 0-10 1.797-3.086 5.078-5 8.672-5 3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.93 9.93 0 0 1-8.633 5m0-15a.95.95 0 0 1 .938.938v4.374c0 .547-.43.938-.938.938-.547 0-.937-.39-.937-.937v-4.375c0-.508.39-.938.937-.938m1.25 8.75c0 .703-.586 1.25-1.25 1.25-.703 0-1.25-.547-1.25-1.25 0-.664.547-1.25 1.25-1.25.664 0 1.25.586 1.25 1.25"})),Sm=_.forwardRef($m),Cm=({iconSize:e="md",title:t,titleId:n,...o},i)=>h.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...Ie[e],role:"img",ref:i,"aria-labelledby":n,...o},t?h.createElement("title",{id:n},t):null,h.createElement("path",{d:"M16 8.375c-2.93 0-5.586 1.563-7.07 4.063-1.446 2.539-1.446 5.624 0 8.124A8.13 8.13 0 0 0 16 24.626c2.89 0 5.547-1.523 7.031-4.062 1.446-2.5 1.446-5.586 0-8.125-1.484-2.5-4.14-4.063-7.031-4.063M16 26.5c-3.594 0-6.875-1.875-8.672-5-1.797-3.086-1.797-6.875 0-10 1.797-3.086 5.078-5 8.672-5 3.555 0 6.836 1.914 8.633 5 1.797 3.125 1.797 6.914 0 10a9.93 9.93 0 0 1-8.633 5m-1.562-6.875h.937v-2.5h-.937c-.547 0-.938-.39-.938-.937 0-.508.39-.938.938-.938h1.874a.95.95 0 0 1 .938.938v3.437h.313a.95.95 0 0 1 .937.938c0 .546-.43.937-.937.937h-3.125c-.547 0-.938-.39-.938-.937 0-.508.39-.938.938-.938M16 14c-.703 0-1.25-.547-1.25-1.25 0-.664.547-1.25 1.25-1.25.664 0 1.25.586 1.25 1.25 0 .703-.586 1.25-1.25 1.25"})),pr=_.forwardRef(Cm),Tm=({className:e="",size:t="sm",type:n="inactive",marker:o="dot",text:i="1",indicator:a="default",icon:r})=>{const s={complete:{sm:c.jsx(md,{}),md:c.jsx(Gd,{}),lg:c.jsx(kh,{})},fail:{sm:c.jsx(ar,{}),md:c.jsx(Ad,{}),lg:c.jsx(Wo,{})},warning:{sm:c.jsx(wd,{}),md:c.jsx(mh,{}),lg:c.jsx(Nh,{})},icon:{fail:{sm:c.jsx(dd,{}),md:c.jsx(Th,{}),lg:c.jsx(Wh,{})},warning:{sm:c.jsx($d,{}),md:c.jsx(Ih,{}),lg:c.jsx(Uh,{})}}};let l=null;return o==="number"&&(l=c.jsx("b",{className:qo.number,children:i})),n==="complete"&&(l=s.complete[t]),(a==="fail"||a==="warning")&&(l=s[a][t]),o==="icon"?(l=r,(a==="fail"||a==="warning")&&(l=s.icon[a][t]),c.jsx("div",{className:[qo.icon,e].join(" "),"data-size":t,"data-type":n,"data-indicator":a,children:l})):c.jsx("div",{className:[qo.root,e].join(" "),"data-size":t,"data-type":n,"data-indicator":a,children:l&&l})},Bm={root:"SteppersTrack-module__root___7j6YU"},br=({className:e="",type:t="inactive",direction:n="horizontal"})=>c.jsx("div",{className:[Bm.root,e].join(" "),"data-type":t,"data-direction":n}),Am={vertical:{label:"SteppersLabelContentVertical-module__label___jalOZ",description:"SteppersLabelContentVertical-module__description___FVK3-",root:"SteppersLabelContentVertical-module__root___5FBIG"},horizontal:{label:"SteppersLabelContentHorizontal-module__label___HJ58S",description:"SteppersLabelContentHorizontal-module__description___s086t",root:"SteppersLabelContentHorizontal-module__root___bGFyr"}},km=({className:e="",size:t="sm",type:n="incomplete",label:o="Label",description:i,direction:a="vertical"})=>{const r=Am[a];return c.jsxs("div",{className:[r.root,e,"quill-ui-next-atom"].join(" "),"data-size":t,"data-type":n,children:[c.jsx("b",{className:r.label,children:o}),i&&c.jsx("div",{className:r.description,children:i})]})},vr=({className:e="",direction:t="horizontal",steps:n=[],marker:o="dot",size:i="sm",onClick:a})=>{const r=s=>{a&&a(s)};return c.jsx("div",{className:[qn.root,e,"quill-ui-next-component"].join(" "),"data-direction":t,"data-size":i,children:n.map((s,l)=>{const d=l===n.length-1,u=l===0,m=n[l+1],f=m==null?void 0:m.type;let g=s.type==="complete"?"inprogress":s.type,v=g,p=g;return u&&(v=void 0),d&&(p=void 0),c.jsxs("div",{className:qn.stepper_container,onClick:()=>r(s),children:[c.jsxs("div",{className:qn.header,children:[c.jsx(br,{className:qn.track,type:v===void 0?"hidden":v,direction:t}),c.jsx(Tm,{marker:o,indicator:s.indicator,size:i,text:l+1,type:s.type,icon:s==null?void 0:s.icon}),c.jsx(br,{type:p===void 0?"hidden":f==="inactive"?"inactive":p,direction:t})]}),c.jsx(km,{label:s==null?void 0:s.label,description:s==null?void 0:s.description,direction:t,type:s.type==="inactive"?"incomplete":s.type})]},`stepper-${l}`)})})};vr.displayName="Steppers";const Ke={icon1:"Snackbar-module__icon1___85z8Z",message:"Snackbar-module__message___dBgz2",containerMessage:"Snackbar-module__containerMessage___FcuTp",label:"Snackbar-module__label___bsUDZ",bgFocus:"Snackbar-module__bgFocus___eI-3t",buttonAction:"Snackbar-module__buttonAction___403gd",icon6:"Snackbar-module__icon6___E8z7d",bgFocus1:"Snackbar-module__bgFocus1___lVINm",buttonClose:"Snackbar-module__buttonClose___bW-Zi",root:"Snackbar-module__root___GPChr"};let St=[],Yn=[];const yr=()=>{Yn.forEach(e=>e(St))},Mm=e=>{const t=`snackbar-${Date.now()}`,n={...e,id:t};if(St=[...St,n],yr(),e.autoDismiss!==!1){const o=e.dismissTimeout||5e3;setTimeout(()=>{wr(t)},o)}return t},wr=e=>{St=St.filter(t=>t.id!==e),yr()},Lm=()=>{const[e,t]=_.useState(St);return _.useEffect(()=>{const n=o=>{t([...o])};return Yn.push(n),t([...St]),()=>{Yn=Yn.filter(o=>o!==n)}},[]),{queue:e,showSnackbar:Mm,hideSnackbar:wr}},Em=({className:e="",indicator:t="neutral",type:n="mobile",message:o="Message goes here",showButtonAction:i=!0,showButtonClose:a=!0,showIcon:r=!0,actionLabel:s="Action",onActionClick:l,onCloseClick:d})=>{const u=`quill-snackbar-${t}-${n}`,f={neutral:pr,fail:gr}[t];return c.jsxs("div",{className:[Ke.root,e].join(" "),"data-indicator":t,"data-type":n,"data-id":u,children:[r&&c.jsx("div",{className:`${Ke.icon1} snackbar-icon`,children:c.jsx(f,{iconSize:"sm"})}),c.jsx("div",{className:Ke.containerMessage,children:c.jsx("div",{className:Ke.message,children:o})}),i&&c.jsxs("div",{className:Ke.buttonAction,children:[c.jsx("div",{className:Ke.label,onClick:l,style:{cursor:"pointer"},children:s}),c.jsx("div",{className:Ke.bgFocus})]}),a&&c.jsxs("div",{className:Ke.buttonClose,onClick:d,style:{cursor:"pointer"},children:[c.jsx("div",{className:`${Ke.icon6} snackbar-icon`,children:c.jsx(rr,{})}),c.jsx("div",{className:Ke.bgFocus1})]})]})},jm={single:{icon:"SegmentedControlSingleChoice-module__icon___o-Nya",customIcon:"SegmentedControlSingleChoice-module__customIcon___JwnHM",label:"SegmentedControlSingleChoice-module__label___lZzbB",bgFocus:"SegmentedControlSingleChoice-module__bgFocus___-1BI4",root:"SegmentedControlSingleChoice-module__root___yfcIp"},multi:{icon:"SegmentedControlMultiChoice-module__icon___00Ia9",customIcon:"SegmentedControlMultiChoice-module__customIcon___SwZMv",label:"SegmentedControlMultiChoice-module__label___gQmFn",bgFocus:"SegmentedControlMultiChoice-module__bgFocus___IGfjU",root:"SegmentedControlMultiChoice-module__root___Ae-uO"}},Dm=({className:e="",size:t="sm",state:n="default",label:o="Label",icon:i,type:a="single",value:r="",isSelected:s=!1,onClick:l})=>{const d=jm[a],[u,m]=_.useState(n),[f]=_.useState(n),g=`segmented-control-${t}-${u}-${a}`,[v,p]=_.useState(!1),{handleFocus:y,handleBlur:b}=Ae({setHighlight:p,isDisabled:u==="disabled"}),$=()=>{u!=="disabled"&&(l&&l(r),m("selected"))};return _.useEffect(()=>{m(n)},[n]),_.useEffect(()=>{m(s?"selected":f==="disabled"?"disabled":"default")},[s]),c.jsxs("div",{className:[d.root,e,"quill-ui-next-atom","quill-ui-next-no-select",o===""&&"quill-ui-next-fit-content",u!=="disabled"&&"quill-ui-next-pointer"].join(" "),"data-id":g,"data-size":t,"data-state":u,tabIndex:u==="disabled"?-1:0,onFocus:y,onBlur:b,onClick:$,children:[i&&c.jsx("div",{className:d.customIcon,children:i}),o&&c.jsx("div",{className:d.label,children:o}),v&&c.jsx("div",{className:d.bgFocus}),c.jsx("span",{className:`quill-ui-next-hide ${d.label}`})]})},Nm={root:"SegmentedControl-module__root___XMmNV"},xr=({className:e="",size:t="sm",type:n="single",items:o=[],selected:i=[],onChange:a})=>{const[r,s]=_.useState(i),l=d=>{let u=[...r];n==="single"&&(u=[]),u.includes(d)?u=u.filter(m=>m!==d):u.push(d),s(u),a==null||a(u)};return _.useEffect(()=>{n==="single"&&r.length===0&&o.length>0&&s([o[0].value||""])},[]),c.jsx("div",{className:[Nm.root,e,"quill-ui-next-component","quill-ui-next-segmented-control"].join(" "),"data-size":t,"data-type":n,"data-selected":r,children:o.map(d=>c.jsx(Dm,{...d,size:t,type:n,isSelected:r.includes(d.value||""),onClick:l},d.value))})};xr.displayName="SegmentedControl";const Xe={fixIcon:"SectionMessage-module__fixIcon___A-vka",title:"SectionMessage-module__title___ES25Y",message:"SectionMessage-module__message___XLTJX",containerMessage:"SectionMessage-module__containerMessage___vfPUs",titleMessage:"SectionMessage-module__titleMessage___DMRL6",link1Link2:"SectionMessage-module__link1Link2___7niP9",titleMessageButtons:"SectionMessage-module__titleMessageButtons___iENnb",root:"SectionMessage-module__root___uU4rC",buttonContainer:"SectionMessage-module__buttonContainer___MY1s-",noTitleMessage:"SectionMessage-module__noTitleMessage___CWQya"},Pm={blackWhite:{icon:"LinkBlackWhite-module__icon___d5KNF",icon1:"LinkBlackWhite-module__icon1___3gemA",label:"LinkBlackWhite-module__label___CAVUc",icon2:"LinkBlackWhite-module__icon2___XE-i7",iconChevron:"LinkBlackWhite-module__iconChevron___2XClm",root:"LinkBlackWhite-module__root___G4Nn2"},black:{icon:"LinkBlack-module__icon___VNqfL",icon1:"LinkBlack-module__icon1___nrSd9",label:"LinkBlack-module__label___p2qAP",icon2:"LinkBlack-module__icon2___JgS-t",iconChevron:"LinkBlack-module__iconChevron___0O5pW",root:"LinkBlack-module__root___uPxIL"},whiteBlack:{icon:"LinkWhiteBlack-module__icon___BEQ0G",icon1:"LinkWhiteBlack-module__icon1___GsWdi",label:"LinkWhiteBlack-module__label___I1oc-",icon2:"LinkWhiteBlack-module__icon2___vmnXS",iconChevron:"LinkWhiteBlack-module__iconChevron___n7jXh",root:"LinkWhiteBlack-module__root___mux5a"},white:{icon:"LinkWhite-module__icon___sgk6B",icon1:"LinkWhite-module__icon1___RDd5L",label:"LinkWhite-module__label___J3w2f",icon2:"LinkWhite-module__icon2___aJ8tW",iconChevron:"LinkWhite-module__iconChevron___cRoz6",root:"LinkWhite-module__root___YLCNj"}},zn=({className:e="",label:t="",showChevron:n=!1,size:o="caption",state:i="default",color:a="blackWhite",icon:r,href:s="#",openNewTab:l=!1})=>{const d=Pm[a],u=`quill-link-${a}-${o}-${i}`,f={caption:vd,sm:cn,md:Lh,lg:qh,xl:Jh}[o];return c.jsxs("a",{href:s,target:l?"_blank":void 0,className:[d.root,e,"quill-ui-next-component",i!=="disabled"?"quill-ui-next-pointer":"quill-ui-next-pointer-disabled"].join(" "),"data-id":u,"data-size":o,"data-state":i,onClick:g=>{if(i==="disabled"){g.preventDefault(),g.stopPropagation();return}},tabIndex:i==="disabled"?-1:0,"aria-disabled":i==="disabled",children:[r&&c.jsx("div",{className:d.icon1,children:r}),c.jsx("div",{className:d.label,children:t}),n&&c.jsx("div",{className:d.iconChevron,children:f&&c.jsx(f,{})})]})};zn.displayName="Link";const Im={icon:"BasicButtonBlack-module__icon___opjb0",iconLeft:"BasicButtonBlack-module__iconLeft___su-LW",label:"BasicButtonBlack-module__label___GY0yW",icon1:"BasicButtonBlack-module__icon1___p-rt-",iconRight:"BasicButtonBlack-module__iconRight___agqHg",icon2:"BasicButtonBlack-module__icon2___B-Aqm",iconLoading:"BasicButtonBlack-module__iconLoading___Gvs0a",bgFocus:"BasicButtonBlack-module__bgFocus___lJYtD",root:"BasicButtonBlack-module__root___A4v3J"},Fm={icon:"BasicButtonWhite-module__icon___nMWvu",iconLeft:"BasicButtonWhite-module__iconLeft___N4S1H",label:"BasicButtonWhite-module__label___vrpfB",icon1:"BasicButtonWhite-module__icon1___2mKIh",iconRight:"BasicButtonWhite-module__iconRight___jaxUH",icon2:"BasicButtonWhite-module__icon2___cGJ-r",iconLoading:"BasicButtonWhite-module__iconLoading___1XJLH",bgFocus:"BasicButtonWhite-module__bgFocus___Y0xv1",root:"BasicButtonWhite-module__root___DG0PC"},Om={icon:"BasicButtonCoral-module__icon___xLciz",iconLeft:"BasicButtonCoral-module__iconLeft___lCHMi",label:"BasicButtonCoral-module__label___fqPif",icon1:"BasicButtonCoral-module__icon1___Gkfod",iconRight:"BasicButtonCoral-module__iconRight___W0deG",icon2:"BasicButtonCoral-module__icon2___GXwpG",iconLoading:"BasicButtonCoral-module__iconLoading___okkQc",bgFocus:"BasicButtonCoral-module__bgFocus___vpQ-J",root:"BasicButtonCoral-module__root___C7uG2"},Rm={icon:"BasicButtonBuy-module__icon___WY4Ig",iconLeft:"BasicButtonBuy-module__iconLeft___PdVvD",label:"BasicButtonBuy-module__label___lHbFA",icon1:"BasicButtonBuy-module__icon1___8-F4h",iconRight:"BasicButtonBuy-module__iconRight___cKyi5",icon2:"BasicButtonBuy-module__icon2___jwgXF",iconLoading:"BasicButtonBuy-module__iconLoading___arreE",bgFocus:"BasicButtonBuy-module__bgFocus___Lr-it",root:"BasicButtonBuy-module__root___VJ9Dr"},Vm={icon:"BasicButtonSell-module__icon___MbpGj",iconLeft:"BasicButtonSell-module__iconLeft___aDzDU",label:"BasicButtonSell-module__label___0DuTz",icon1:"BasicButtonSell-module__icon1___0NmHS",iconRight:"BasicButtonSell-module__iconRight___Fr3UX",icon2:"BasicButtonSell-module__icon2___hVple",iconLoading:"BasicButtonSell-module__iconLoading___bJrcO",bgFocus:"BasicButtonSell-module__bgFocus___T8gB4",root:"BasicButtonSell-module__root___-z3P2"},Wm={icon:"BasicButtonBlackWhite-module__icon___AmF7k",iconLeft:"BasicButtonBlackWhite-module__iconLeft___tC95j",label:"BasicButtonBlackWhite-module__label___Tw7UQ",icon1:"BasicButtonBlackWhite-module__icon1___ZYseE",iconRight:"BasicButtonBlackWhite-module__iconRight___3qXIT",icon2:"BasicButtonBlackWhite-module__icon2___sKAjt",iconLoading:"BasicButtonBlackWhite-module__iconLoading___Tvl-t",bgFocus:"BasicButtonBlackWhite-module__bgFocus___YS231",root:"BasicButtonBlackWhite-module__root___DUaf0"},Hm={icon:"BasicButtonWhiteBlack-module__icon___BbP1m",iconLeft:"BasicButtonWhiteBlack-module__iconLeft___qC03I",label:"BasicButtonWhiteBlack-module__label___WT-7O",icon1:"BasicButtonWhiteBlack-module__icon1___aBIIQ",iconRight:"BasicButtonWhiteBlack-module__iconRight___tDLv4",icon2:"BasicButtonWhiteBlack-module__icon2___jRp7T",iconLoading:"BasicButtonWhiteBlack-module__iconLoading___1kVfB",bgFocus:"BasicButtonWhiteBlack-module__bgFocus___1VzB3",root:"BasicButtonWhiteBlack-module__root___xdoik"},qm={icon:"BasicButtonGlacier-module__icon___XXTtw",iconLeft:"BasicButtonGlacier-module__iconLeft___QDKK8",label:"BasicButtonGlacier-module__label___9lhbE",icon1:"BasicButtonGlacier-module__icon1___-O6vP",iconRight:"BasicButtonGlacier-module__iconRight___Qi-RD",icon2:"BasicButtonGlacier-module__icon2___75v-j",iconLoading:"BasicButtonGlacier-module__iconLoading___-r-Mc",bgFocus:"BasicButtonGlacier-module__bgFocus___w3Nd5",root:"BasicButtonGlacier-module__root___3aWd3"},Ym={icon:"IconButtonBlack-module__icon___d6veE",iconCustom:"IconButtonBlack-module__iconCustom___hwxGF",iconLoading:"IconButtonBlack-module__iconLoading___ifp-q",bgFocus:"IconButtonBlack-module__bgFocus___pTUuk",iconColorReference:"IconButtonBlack-module__iconColorReference___Zfom0",root:"IconButtonBlack-module__root___s8XMt"},zm={icon:"IconButtonWhite-module__icon___ZIXN5",iconCustom:"IconButtonWhite-module__iconCustom___MPP-S",iconLoading:"IconButtonWhite-module__iconLoading___91rPf",bgFocus:"IconButtonWhite-module__bgFocus___mJJjL",iconColorReference:"IconButtonWhite-module__iconColorReference___NTZG7",root:"IconButtonWhite-module__root___Ujjq4"},Gm={icon:"IconButtonCoral-module__icon___hUgqc",iconCustom:"IconButtonCoral-module__iconCustom___9ZDEr",iconLoading:"IconButtonCoral-module__iconLoading___2iFyL",bgFocus:"IconButtonCoral-module__bgFocus___ze35D",iconColorReference:"IconButtonCoral-module__iconColorReference___rYnIS",root:"IconButtonCoral-module__root___V5B-s"},Um={icon:"IconButtonBlackWhite-module__icon___uhLCW",iconCustom:"IconButtonBlackWhite-module__iconCustom___cjp40",iconLoading:"IconButtonBlackWhite-module__iconLoading___2xldS",bgFocus:"IconButtonBlackWhite-module__bgFocus___cXt6I",iconColorReference:"IconButtonBlackWhite-module__iconColorReference___loJBN",root:"IconButtonBlackWhite-module__root___r-jif"},Km={icon:"IconButtonWhiteBlack-module__icon___YJx28",iconCustom:"IconButtonWhiteBlack-module__iconCustom___L4sUv",iconLoading:"IconButtonWhiteBlack-module__iconLoading___eGViP",bgFocus:"IconButtonWhiteBlack-module__bgFocus___o--fS",iconColorReference:"IconButtonWhiteBlack-module__iconColorReference___EaOsc",root:"IconButtonWhiteBlack-module__root___TkwEr"},Xm={black:Im,white:Fm,coral:Om,buy:Rm,sell:Vm,blackWhite:Wm,whiteBlack:Hm,glacier:qm},Qm={black:Ym,white:zm,coral:Gm,blackWhite:Um,whiteBlack:Km},$r=({className:e="",size:t="lg",state:n="default",style:o="primary",width:i="hug content",color:a="coral",label:r="Label",showFocusRing:s=!1,iconLeft:l,iconRight:d,icon:u=c.jsx(Vo,{}),onClick:m,type:f="basic"})=>{const g=f==="basic"?Xm[a]:Qm[a],v=`quill-button-${f}-${n}-${o}-${f}-${t}-${a}`,p={sm:Cd,md:$h,lg:mr,xl:Xh},[y,b]=_.useState(s),{handleFocus:$,handleBlur:S}=Ae({isDisabled:n==="disabled",setHighlight:b}),x=()=>{if(n==="loading"){const w=p[t];return c.jsxs("div",{className:[g.iconLoading,"quill-ui-next-spinner"].join(" "),children:[c.jsx("div",{className:g.label}),c.jsx("div",{className:g.iconColorReference}),w&&c.jsx(w,{})]})}return f==="icon"?c.jsx(c.Fragment,{children:c.jsxs("div",{className:g.iconCustom,children:[c.jsx("div",{className:g.iconColorReference}),u]})}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:g.iconLeft,children:l}),r&&c.jsx("div",{className:g.label,children:r}),c.jsx("div",{className:g.iconRight,children:d})]})};return c.jsxs("button",{className:[g.root,e,"quill-ui-next-component"].join(" "),"data-id":v,"data-size":t,"data-state":n,disabled:n==="disabled","data-style":o,"data-width":i,"data-type":f,tabIndex:n==="loading"?-1:0,onClick:w=>n!=="loading"&&(m==null?void 0:m(w)),onFocus:$,onBlur:S,children:[x(),y&&c.jsx("div",{className:g.bgFocus})]})},$e=({className:e="",icon:t,size:n="md",state:o="default",style:i="primary",width:a="hug content",color:r="coral",onClick:s})=>c.jsx($r,{className:e,icon:t,size:n,state:o,style:i,width:a,onClick:s,color:r,type:"icon"});$e.displayName="IconButton";const ye=({className:e="",label:t,iconLeft:n,iconRight:o,size:i="md",state:a="default",style:r="primary",width:s="hug content",color:l="coral",onClick:d})=>c.jsx($r,{className:e,label:t,iconLeft:n,iconRight:o,size:i,state:a,style:r,width:s,onClick:d,color:l});ye.displayName="BasicButton";const Sr=({className:e="",indicator:t="danger",size:n="sm",message:o="",title:i="",customIcon:a,showIcon:r=!0,showCloseButton:s=!1,link1:l,link2:d,buttonPrimary:u,buttonSecondary:m,onClickClose:f})=>{const g=`quill-section-message-${t}-${n}`,p={danger:gr,warning:Sm,success:lm,information:pr,default:sm}[t];return c.jsxs("div",{className:[Xe.root,"quill-ui-next-component",e].join(" "),"data-id":g,"data-indicator":t,"data-size":n,children:[r&&c.jsx("div",{className:Xe.fixIcon,children:t==="default"&&a?a:p&&c.jsx(p,{iconSize:n==="md"?"md":"sm"})}),c.jsxs("div",{className:Xe.titleMessageButtons,children:[c.jsxs("div",{className:Xe.titleMessage,children:[i&&c.jsx("b",{className:Xe.title,children:i}),c.jsx("div",{className:Xe.containerMessage,children:c.jsx("div",{className:`${Xe.message} ${i?"":Xe.noTitleMessage}`,children:o})})]}),l?c.jsxs("div",{className:Xe.link1Link2,children:[c.jsx(zn,{...l,size:n,color:"blackWhite"}),d&&c.jsx(zn,{...d,size:n,color:"blackWhite"})]}):c.jsxs("div",{className:Xe.buttonContainer,children:[u&&c.jsx(ye,{...u,style:"secondary",color:"blackWhite"}),m&&c.jsx(ye,{...m,style:"primary",color:"blackWhite",size:n==="md"?"md":"sm"})]})]}),s&&c.jsx($e,{color:"blackWhite",icon:c.jsx(ar,{}),style:"tertiary",onClick:f})]})};Sr.displayName="SectionMessage";const Jm={button:{icon:"PaginationButtonAtom-module__icon___N78zk",customIcon:"PaginationButtonAtom-module__customIcon___BZScl",hiddenLabel:"PaginationButtonAtom-module__hiddenLabel___-AcpQ",focus:"PaginationButtonAtom-module__focus___aK7C1",root:"PaginationButtonAtom-module__root___bWNJ-"},page:{label:"PaginationPageAtom-module__label___BDcaC",focus:"PaginationPageAtom-module__focus___lgDe1",root:"PaginationPageAtom-module__root___cyEWJ"},bullet:{focus:"PaginationBulletAtom-module__focus___DASmY",root:"PaginationBulletAtom-module__root___AwYLY"}},dn=({className:e="",state:t="default",variant:n="button",icon:o,label:i="0",onClick:a})=>{const r=Jm[n],s=`pagination-atom-${n}-${t}`,l=o||c.jsx(am,{iconSize:"md"}),d=_.useRef(null),[u,m]=_.useState(!1),f=()=>{t!=="disabled"&&(a==null||a())},{handleFocus:g,handleBlur:v}=Ae({isDisabled:t==="disabled",setHighlight:m,onEnter:()=>{f()}});return c.jsxs("div",{ref:d,className:[r.root,"quill-ui-next-atom","quill-ui-next-no-select",t!=="disabled"&&"quill-ui-next-pointer",e].join(" "),"data-id":s,"data-state":t,tabIndex:t!=="disabled"?0:-1,onFocus:g,onBlur:v,onClick:f,children:[n==="button"&&c.jsxs(c.Fragment,{children:[c.jsx("div",{className:r.customIcon,children:l}),c.jsx("div",{className:r.hiddenLabel})]}),n==="page"&&c.jsx("div",{className:r.label,children:i}),u&&c.jsx("div",{className:r.focus})]})};dn.displayName="PaginationAtom";const Yo={root:"Pagination-module__root___dltWF",items:"Pagination-module__items___clqZn",controls:"Pagination-module__controls___nue1T"},Cr=({data:e,itemsPerPage:t=10,currentPage:n,defaultPage:o=1,onPageChange:i,variant:a="number",renderItem:r,className:s="",itemsClassName:l=""})=>{const d=Math.ceil(e.length/t),u=n!==void 0,[m,f]=_.useState(o),g=u?n:m,v=S=>{u||f(S),i==null||i(S)},p=(g-1)*t,y=p+t,b=e.slice(p,y),$=()=>{if(a==="bullet"||d<=5)return Array.from({length:d},(x,w)=>w+1);const S=[];return g<=3?S.push(1,2,3,4,5,"...",d):g>=d-2?S.push(1,"...",d-4,d-3,d-2,d-1,d):S.push(1,"...",g-1,g,g+1,"...",d),S};return c.jsxs("div",{className:[Yo.root,s,"quill-ui-next-component"].filter(Boolean).join(" "),children:[c.jsx("div",{className:[Yo.items,l].filter(Boolean).join(" "),children:b.map((S,x)=>r(S,p+x))}),c.jsxs("div",{className:Yo.controls,children:[c.jsx(dn,{variant:"button",icon:c.jsx(ah,{}),state:g===1?"disabled":"default",onClick:g>1?()=>v(g-1):void 0}),$().map((S,x)=>{if(S==="...")return a!=="number"?null:c.jsx(dn,{variant:"page",label:"...",state:"disabled",onClick:void 0},`ellipsis-${x}`);const w=S;return c.jsx(dn,{variant:a==="number"?"page":a,label:a==="number"?String(w):void 0,state:g===w?"selected":"default",onClick:g!==w?()=>v(w):void 0},w)}),c.jsx(dn,{variant:"button",icon:c.jsx(cn,{}),state:g===d?"disabled":"default",onClick:g<d?()=>v(g+1):void 0})]})]})};Cr.displayName="Pagination";const Zm={label:"BreadcrumbDesktopItem-module__label___0yZmZ",bgFocus:"BreadcrumbDesktopItem-module__bgFocus___Wa8mQ",containerText:"BreadcrumbDesktopItem-module__containerText___U5HuZ",iconDivider:"BreadcrumbDesktopItem-module__iconDivider___16aan",root:"BreadcrumbDesktopItem-module__root___gJJ-V"},ef={label:"BreadcrumbMobileItem-module__label___CoE1g",bgFocus:"BreadcrumbMobileItem-module__bgFocus___tSv5s",containerLabel:"BreadcrumbMobileItem-module__containerLabel___97irL",iconDivider:"BreadcrumbMobileItem-module__iconDivider___SD-MJ",root:"BreadcrumbMobileItem-module__root___5Tqbv"},tf=({className:e="",variant:t="desktop",size:n="sm",state:o="default",label:i="Label",showFocusRing:a=!1,onClick:r})=>{const s=t==="desktop"?Zm:ef,[l,d]=_.useState(a),u=t==="desktop"?s.containerText:s.containerLabel,m=o!=="selected"&&r,f=`quill-breadcrumb-${t}-${n}-${o}`,{handleFocus:g,handleBlur:v}=Ae({isDisabled:!m,setHighlight:d});return c.jsxs("div",{className:[s.root,e].join(" "),"data-size":n,"data-state":o,"data-id":f,children:[c.jsxs("div",{className:u,children:[c.jsx("div",{className:[s.label,m?"quill-ui-next-pointer":""].join(" "),onClick:m?r:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,onFocus:g,onBlur:v,children:i}),l&&c.jsx("div",{className:s.bgFocus})]}),c.jsx("div",{className:`${s.iconDivider} breadcrumb-icon`,children:c.jsx(cn,{})})]})},nf={handleBar:"ActionSheetBottomSheet-module__handleBar___Er5va",containerHandleBar:"ActionSheetBottomSheet-module__containerHandleBar___DbWvn",spacer:"ActionSheetBottomSheet-module__spacer___jRilT",title:"ActionSheetBottomSheet-module__title___f5UuB",icon:"ActionSheetBottomSheet-module__icon___YAa5m",iconCustom:"ActionSheetBottomSheet-module__iconCustom___9UKzM",bgFocus:"ActionSheetBottomSheet-module__bgFocus___qHjZ0",iconColorReference:"ActionSheetBottomSheet-module__iconColorReference___bAHZM",buttonIcon:"ActionSheetBottomSheet-module__buttonIcon___24Hai",containerButtonIcon:"ActionSheetBottomSheet-module__containerButtonIcon___sEpyZ",titleIcon:"ActionSheetBottomSheet-module__titleIcon___s99x0",description:"ActionSheetBottomSheet-module__description___uYI01",containerDescription:"ActionSheetBottomSheet-module__containerDescription___DVA-6",containerHeader:"ActionSheetBottomSheet-module__containerHeader___q6MoH",icon1:"ActionSheetBottomSheet-module__icon1___HW90d",iconLeft:"ActionSheetBottomSheet-module__iconLeft___ARvJP",containerIconLeft:"ActionSheetBottomSheet-module__containerIconLeft___qJ2Zd",labelLeft:"ActionSheetBottomSheet-module__labelLeft___kW2x3",containerLabelLeft:"ActionSheetBottomSheet-module__containerLabelLeft___jOdf2",input:"ActionSheetBottomSheet-module__input___RGOv4",placeholderInputCursor:"ActionSheetBottomSheet-module__placeholderInputCursor___vWC2Z",labelRight:"ActionSheetBottomSheet-module__labelRight___la0CC",containerLabelRight:"ActionSheetBottomSheet-module__containerLabelRight___Z9C98",icon2:"ActionSheetBottomSheet-module__icon2___Y84Wx",iconRight1:"ActionSheetBottomSheet-module__iconRight1___MkiAE",containerIconRight1:"ActionSheetBottomSheet-module__containerIconRight1___ozTu-",icon3:"ActionSheetBottomSheet-module__icon3___zFU3u",iconRight2:"ActionSheetBottomSheet-module__iconRight2___IRCK4",containerIconRight2:"ActionSheetBottomSheet-module__containerIconRight2___FnAi-",field:"ActionSheetBottomSheet-module__field___zEMIS",message:"ActionSheetBottomSheet-module__message___e1cur",characterCounter:"ActionSheetBottomSheet-module__characterCounter___5FvZS",messageCharacterCounter:"ActionSheetBottomSheet-module__messageCharacterCounter___yZHIl",icon4:"ActionSheetBottomSheet-module__icon4___jvxxl",icon5:"ActionSheetBottomSheet-module__icon5___d2krW",message1:"ActionSheetBottomSheet-module__message1___PTyDR",checklist1:"ActionSheetBottomSheet-module__checklist1___5nBmd",icon6:"ActionSheetBottomSheet-module__icon6___zafxY",icon7:"ActionSheetBottomSheet-module__icon7___v-rbI",message2:"ActionSheetBottomSheet-module__message2___ye8dE",checklist2:"ActionSheetBottomSheet-module__checklist2___gjacE",icon8:"ActionSheetBottomSheet-module__icon8___xAmUR",icon9:"ActionSheetBottomSheet-module__icon9___anjNj",message3:"ActionSheetBottomSheet-module__message3___ihd23",checklist3:"ActionSheetBottomSheet-module__checklist3___UJaTE",passwordStrength:"ActionSheetBottomSheet-module__passwordStrength___A5nzC",searchBar:"ActionSheetBottomSheet-module__searchBar___IVjwm",containerSearchBar:"ActionSheetBottomSheet-module__containerSearchBar___qAJDT",label:"ActionSheetBottomSheet-module__label___enss9",controller:"ActionSheetBottomSheet-module__controller___Ptvvs",containerController:"ActionSheetBottomSheet-module__containerController___oNRkH",label1:"ActionSheetBottomSheet-module__label1___i31Dh",content:"ActionSheetBottomSheet-module__content___4FleW",containerContent:"ActionSheetBottomSheet-module__containerContent___tE2Fx",icon10:"ActionSheetBottomSheet-module__icon10___54M-l",iconLeft1:"ActionSheetBottomSheet-module__iconLeft1___WO3fi",label2:"ActionSheetBottomSheet-module__label2___pR6Rh",icon11:"ActionSheetBottomSheet-module__icon11___OVpmt",iconRight:"ActionSheetBottomSheet-module__iconRight___0ZNoP",icon12:"ActionSheetBottomSheet-module__icon12___5L8g8",iconLoading:"ActionSheetBottomSheet-module__iconLoading___rHcd8",bgFocus1:"ActionSheetBottomSheet-module__bgFocus1___-QoCE",primaryButton:"ActionSheetBottomSheet-module__primaryButton___leqwP",icon13:"ActionSheetBottomSheet-module__icon13___Ingre",iconLeft2:"ActionSheetBottomSheet-module__iconLeft2___ypZ8N",label3:"ActionSheetBottomSheet-module__label3___hnXqu",icon14:"ActionSheetBottomSheet-module__icon14___RlDPK",iconRight3:"ActionSheetBottomSheet-module__iconRight3___i-A7Q",icon15:"ActionSheetBottomSheet-module__icon15___8rfU8",iconLoading1:"ActionSheetBottomSheet-module__iconLoading1___htROR",bgFocus2:"ActionSheetBottomSheet-module__bgFocus2___D10KT",secondaryButton:"ActionSheetBottomSheet-module__secondaryButton___7DUch",actionButtons:"ActionSheetBottomSheet-module__actionButtons___zc2RG",typehugContent:"ActionSheetBottomSheet-module__typehugContent___ZWc0f"},of={icon1:"ActionSheetSideSheet-module__icon1___DooNh",icon:"ActionSheetSideSheet-module__icon___Jeq53",bgFocus:"ActionSheetSideSheet-module__bgFocus___ygtmN",buttonIcon:"ActionSheetSideSheet-module__buttonIcon___9bEEK",containerButtonIcon:"ActionSheetSideSheet-module__containerButtonIcon___7Bobh",title:"ActionSheetSideSheet-module__title___M-e41",bgFocus1:"ActionSheetSideSheet-module__bgFocus1___Nu6Dq",iconColorReference:"ActionSheetSideSheet-module__iconColorReference___po49T",buttonClose:"ActionSheetSideSheet-module__buttonClose___dccRN",containerButtonClose:"ActionSheetSideSheet-module__containerButtonClose___HEE9m",iconTitleCancel:"ActionSheetSideSheet-module__iconTitleCancel___WLFFp",description:"ActionSheetSideSheet-module__description___TJTsH",containerDescription:"ActionSheetSideSheet-module__containerDescription___yME9L",icon3:"ActionSheetSideSheet-module__icon3___EF8fK",iconLeft:"ActionSheetSideSheet-module__iconLeft___uMg5K",containerIconLeft:"ActionSheetSideSheet-module__containerIconLeft___FONuF",labelLeft:"ActionSheetSideSheet-module__labelLeft___mWukb",containerLabelLeft:"ActionSheetSideSheet-module__containerLabelLeft___WfmJF",placeholderInputCursor:"ActionSheetSideSheet-module__placeholderInputCursor___mqp7n",icon4:"ActionSheetSideSheet-module__icon4___2ZkGE",iconRight1:"ActionSheetSideSheet-module__iconRight1___PCILF",containerIconRight1:"ActionSheetSideSheet-module__containerIconRight1___buFdF",field:"ActionSheetSideSheet-module__field___es-NG",characterCounter:"ActionSheetSideSheet-module__characterCounter___NG9zv",message:"ActionSheetSideSheet-module__message___rLZGD",messageCharacterCounter:"ActionSheetSideSheet-module__messageCharacterCounter___pel4e",icon7:"ActionSheetSideSheet-module__icon7___RjOrp",icon6:"ActionSheetSideSheet-module__icon6___eFSnO",message1:"ActionSheetSideSheet-module__message1___CbsjO",checklist1:"ActionSheetSideSheet-module__checklist1___1jiSS",checklist2:"ActionSheetSideSheet-module__checklist2___BtGWJ",checklist3:"ActionSheetSideSheet-module__checklist3___dML-j",passwordStrength:"ActionSheetSideSheet-module__passwordStrength___dRaSO",searchBar:"ActionSheetSideSheet-module__searchBar___Ig6fg",containerHeader:"ActionSheetSideSheet-module__containerHeader___5YfnQ",containerSearchBar:"ActionSheetSideSheet-module__containerSearchBar___pJugY",label:"ActionSheetSideSheet-module__label___sWO6E",controller:"ActionSheetSideSheet-module__controller___F-oRP",containerContent:"ActionSheetSideSheet-module__containerContent___Kx1zm",containerController:"ActionSheetSideSheet-module__containerController___7TPQX",content:"ActionSheetSideSheet-module__content___QCH9l",iconLeft1:"ActionSheetSideSheet-module__iconLeft1___Kup-2",label2:"ActionSheetSideSheet-module__label2___QxQc3",iconLoading:"ActionSheetSideSheet-module__iconLoading___Tnwe-",iconRight:"ActionSheetSideSheet-module__iconRight___0hT1Y",bgFocus2:"ActionSheetSideSheet-module__bgFocus2___7suJ5",primaryButton:"ActionSheetSideSheet-module__primaryButton___whsAY",label3:"ActionSheetSideSheet-module__label3___A6Ers",secondaryButton:"ActionSheetSideSheet-module__secondaryButton___A1OdR",actionButtons:"ActionSheetSideSheet-module__actionButtons___8su6S",actionSheetSideSheet:"ActionSheetSideSheet-module__actionSheetSideSheet___0cQxX"},af={icon:"TextFieldAtomLabelled-module__icon___udUrU",iconLeft:"TextFieldAtomLabelled-module__iconLeft___MII5m",labelLeft:"TextFieldAtomLabelled-module__labelLeft___LtbYJ",label:"TextFieldAtomLabelled-module__label___-Ln5M",label1:"TextFieldAtomLabelled-module__label1___gKCPF",fieldMarkerRequired:"TextFieldAtomLabelled-module__fieldMarkerRequired___8ojF9",label2:"TextFieldAtomLabelled-module__label2___FW8x-",fieldMarkerOptional:"TextFieldAtomLabelled-module__fieldMarkerOptional___LRCcU",labelMarker:"TextFieldAtomLabelled-module__labelMarker___cyT3d",input:"TextFieldAtomLabelled-module__input___Pkfwl",labelRight:"TextFieldAtomLabelled-module__labelRight___5abDS",labelmarkerinput:"TextFieldAtomLabelled-module__labelmarkerinput___nT15p",icon1:"TextFieldAtomLabelled-module__icon1___Qh9a6",iconRight1:"TextFieldAtomLabelled-module__iconRight1___58fph",icon2:"TextFieldAtomLabelled-module__icon2___3KfGw",field:"TextFieldAtomLabelled-module__field___jdz98",iconRight2:"TextFieldAtomLabelled-module__iconRight2___-fE6I",currentCounter:"TextFieldAtomLabelled-module__currentCounter___qut4b",maximumCounter:"TextFieldAtomLabelled-module__maximumCounter___9Pmy1",message:"TextFieldAtomLabelled-module__message___hOrVo",slash:"TextFieldAtomLabelled-module__slash___58rsW",characterCounter:"TextFieldAtomLabelled-module__characterCounter___RVvOa",messageCharacterCounter:"TextFieldAtomLabelled-module__messageCharacterCounter___JUchD",icon3:"TextFieldAtomLabelled-module__icon3___u40V3",icon4:"TextFieldAtomLabelled-module__icon4___ZFFd4",message1:"TextFieldAtomLabelled-module__message1___y60CK",checklist1:"TextFieldAtomLabelled-module__checklist1___ZOgNL",icon5:"TextFieldAtomLabelled-module__icon5___olL5m",icon6:"TextFieldAtomLabelled-module__icon6___GLN5u",message2:"TextFieldAtomLabelled-module__message2___3KwkT",checklist2:"TextFieldAtomLabelled-module__checklist2___78unB",icon7:"TextFieldAtomLabelled-module__icon7___5oNA3",icon8:"TextFieldAtomLabelled-module__icon8___mLT1z",message3:"TextFieldAtomLabelled-module__message3___eDPrS",checklist3:"TextFieldAtomLabelled-module__checklist3___iuAtf",passwordStrength:"TextFieldAtomLabelled-module__passwordStrength___TC8N1",root:"TextFieldAtomLabelled-module__root___2Ri-A",labelinputicon:"TextFieldAtomLabelled-module__labelinputicon___5M8lr",addonLeft:"TextFieldAtomLabelled-module__addonLeft___SBOq2",addonRight:"TextFieldAtomLabelled-module__addonRight___23Qim"},rf={icon:"TextFieldAtomLabelless-module__icon___3N4GY",iconLeft:"TextFieldAtomLabelless-module__iconLeft___ZYDj-",containerIconLeft:"TextFieldAtomLabelless-module__containerIconLeft___jj7Bd",labelLeft:"TextFieldAtomLabelless-module__labelLeft___gra9V",containerLabelLeft:"TextFieldAtomLabelless-module__containerLabelLeft___FExcw",input:"TextFieldAtomLabelless-module__input___e6FJr",labelRight:"TextFieldAtomLabelless-module__labelRight___SmmAX",containerLabelRight:"TextFieldAtomLabelless-module__containerLabelRight___NggQl",icon1:"TextFieldAtomLabelless-module__icon1___lpi5C",iconRight1:"TextFieldAtomLabelless-module__iconRight1___AAe2R",containerIconRight1:"TextFieldAtomLabelless-module__containerIconRight1___VGilh",icon2:"TextFieldAtomLabelless-module__icon2___mazHl",iconRight2:"TextFieldAtomLabelless-module__iconRight2___leS-U",containerIconRight2:"TextFieldAtomLabelless-module__containerIconRight2___WVurT",field:"TextFieldAtomLabelless-module__field___q4dVT",message:"TextFieldAtomLabelless-module__message___2ls3i",currentCounter:"TextFieldAtomLabelless-module__currentCounter___75QSe",slash:"TextFieldAtomLabelless-module__slash___eqMwz",maximumCounter:"TextFieldAtomLabelless-module__maximumCounter___yKT02",characterCounter:"TextFieldAtomLabelless-module__characterCounter___Vlme2",messageCharacterCounter:"TextFieldAtomLabelless-module__messageCharacterCounter___8pKfG",icon3:"TextFieldAtomLabelless-module__icon3___d-AMA",icon4:"TextFieldAtomLabelless-module__icon4___vt181",message1:"TextFieldAtomLabelless-module__message1___ImnY0",checklist1:"TextFieldAtomLabelless-module__checklist1___yk--O",icon5:"TextFieldAtomLabelless-module__icon5___fzqy-",icon6:"TextFieldAtomLabelless-module__icon6___TYqN7",message2:"TextFieldAtomLabelless-module__message2___Lxiyd",checklist2:"TextFieldAtomLabelless-module__checklist2___H7JBd",icon7:"TextFieldAtomLabelless-module__icon7___j5hql",icon8:"TextFieldAtomLabelless-module__icon8___jFyEv",message3:"TextFieldAtomLabelless-module__message3___1d1EW",checklist3:"TextFieldAtomLabelless-module__checklist3___28YBn",passwordStrength:"TextFieldAtomLabelless-module__passwordStrength___vF8r4",root:"TextFieldAtomLabelless-module__root___-yS-p",labelmarkerinput:"TextFieldAtomLabelless-module__labelmarkerinput___RTsKv",labelinputicon:"TextFieldAtomLabelless-module__labelinputicon___-dIqW",addonLeft:"TextFieldAtomLabelless-module__addonLeft___N0ba5",addonRight:"TextFieldAtomLabelless-module__addonRight___i4ZeE"},zo=_.createContext({});function Go(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Uo=typeof window<"u",Tr=Uo?_.useLayoutEffect:_.useEffect,Gn=_.createContext(null);function Ko(e,t){e.indexOf(t)===-1&&e.push(t)}function Xo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const at=(e,t,n)=>n>t?t:n<e?e:n;let Qo=()=>{};const rt={},Br=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ar(e){return typeof e=="object"&&e!==null}const kr=e=>/^0[^.\s]+$/u.test(e);function Jo(e){let t;return()=>(t===void 0&&(t=e()),t)}const Fe=e=>e,sf=(e,t)=>n=>t(e(n)),hn=(...e)=>e.reduce(sf),mn=(e,t,n)=>{const o=t-e;return o===0?1:(n-e)/o};class Zo{constructor(){this.subscriptions=[]}add(t){return Ko(this.subscriptions,t),()=>Xo(this.subscriptions,t)}notify(t,n,o){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,o);else for(let a=0;a<i;a++){const r=this.subscriptions[a];r&&r(t,n,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Qe=e=>e*1e3,Je=e=>e/1e3;function Mr(e,t){return t?e*(1e3/t):0}const Lr=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,cf=1e-7,lf=12;function uf(e,t,n,o,i){let a,r,s=0;do r=t+(n-t)/2,a=Lr(r,o,i)-e,a>0?n=r:t=r;while(Math.abs(a)>cf&&++s<lf);return r}function fn(e,t,n,o){if(e===t&&n===o)return Fe;const i=a=>uf(a,0,1,e,n);return a=>a===0||a===1?a:Lr(i(a),t,o)}const Er=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,jr=e=>t=>1-e(1-t),Dr=fn(.33,1.53,.69,.99),ei=jr(Dr),Nr=Er(ei),Pr=e=>(e*=2)<1?.5*ei(e):.5*(2-Math.pow(2,-10*(e-1))),ti=e=>1-Math.sin(Math.acos(e)),Ir=jr(ti),Fr=Er(ti),df=fn(.42,0,1,1),hf=fn(0,0,.58,1),Or=fn(.42,0,.58,1),mf=e=>Array.isArray(e)&&typeof e[0]!="number",Rr=e=>Array.isArray(e)&&typeof e[0]=="number",ff={linear:Fe,easeIn:df,easeInOut:Or,easeOut:hf,circIn:ti,circInOut:Fr,circOut:Ir,backIn:ei,backInOut:Nr,backOut:Dr,anticipate:Pr},_f=e=>typeof e=="string",Vr=e=>{if(Rr(e)){Qo(e.length===4);const[t,n,o,i]=e;return fn(t,n,o,i)}else if(_f(e))return ff[e];return e},Un=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function gf(e,t){let n=new Set,o=new Set,i=!1,a=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(d.schedule(u),e()),u(s)}const d={schedule:(u,m=!1,f=!1)=>{const v=f&&i?n:o;return m&&r.add(u),v.has(u)||v.add(u),u},cancel:u=>{o.delete(u),r.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[n,o]=[o,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,d.process(u))}};return d}const pf=40;function Wr(e,t){let n=!1,o=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,r=Un.reduce((S,x)=>(S[x]=gf(a),S),{}),{setup:s,read:l,resolveKeyframes:d,preUpdate:u,update:m,preRender:f,render:g,postRender:v}=r,p=()=>{const S=rt.useManualTiming?i.timestamp:performance.now();n=!1,rt.useManualTiming||(i.delta=o?1e3/60:Math.max(Math.min(S-i.timestamp,pf),1)),i.timestamp=S,i.isProcessing=!0,s.process(i),l.process(i),d.process(i),u.process(i),m.process(i),f.process(i),g.process(i),v.process(i),i.isProcessing=!1,n&&t&&(o=!1,e(p))},y=()=>{n=!0,o=!0,i.isProcessing||e(p)};return{schedule:Un.reduce((S,x)=>{const w=r[x];return S[x]=(B,A=!1,C=!1)=>(n||y(),w.schedule(B,A,C)),S},{}),cancel:S=>{for(let x=0;x<Un.length;x++)r[Un[x]].cancel(S)},state:i,steps:r}}const{schedule:Q,cancel:ft,state:Se,steps:ni}=Wr(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0);let Kn;function bf(){Kn=void 0}const Me={now:()=>(Kn===void 0&&Me.set(Se.isProcessing||rt.useManualTiming?Se.timestamp:performance.now()),Kn),set:e=>{Kn=e,queueMicrotask(bf)}},Hr=e=>t=>typeof t=="string"&&t.startsWith(e),oi=Hr("--"),vf=Hr("var(--"),ii=e=>vf(e)?yf.test(e.split("/*")[0].trim()):!1,yf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Vt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_n={...Vt,transform:e=>at(0,1,e)},Xn={...Vt,default:1},gn=e=>Math.round(e*1e5)/1e5,ai=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wf(e){return e==null}const xf=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ri=(e,t)=>n=>!!(typeof n=="string"&&xf.test(n)&&n.startsWith(e)||t&&!wf(n)&&Object.prototype.hasOwnProperty.call(n,t)),qr=(e,t,n)=>o=>{if(typeof o!="string")return o;const[i,a,r,s]=o.match(ai);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(r),alpha:s!==void 0?parseFloat(s):1}},$f=e=>at(0,255,e),si={...Vt,transform:e=>Math.round($f(e))},Ct={test:ri("rgb","red"),parse:qr("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+si.transform(e)+", "+si.transform(t)+", "+si.transform(n)+", "+gn(_n.transform(o))+")"};function Sf(e){let t="",n="",o="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,o+=o,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:i?parseInt(i,16)/255:1}}const ci={test:ri("#"),parse:Sf,transform:Ct.transform},pn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_t=pn("deg"),Ze=pn("%"),V=pn("px"),Cf=pn("vh"),Tf=pn("vw"),Yr={...Ze,parse:e=>Ze.parse(e)/100,transform:e=>Ze.transform(e*100)},Wt={test:ri("hsl","hue"),parse:qr("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ze.transform(gn(t))+", "+Ze.transform(gn(n))+", "+gn(_n.transform(o))+")"},fe={test:e=>Ct.test(e)||ci.test(e)||Wt.test(e),parse:e=>Ct.test(e)?Ct.parse(e):Wt.test(e)?Wt.parse(e):ci.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ct.transform(e):Wt.transform(e),getAnimatableNone:e=>{const t=fe.parse(e);return t.alpha=0,fe.transform(t)}},Bf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Af(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(ai))==null?void 0:t.length)||0)+(((n=e.match(Bf))==null?void 0:n.length)||0)>0}const zr="number",Gr="color",kf="var",Mf="var(",Ur="${}",Lf=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function bn(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},i=[];let a=0;const s=t.replace(Lf,l=>(fe.test(l)?(o.color.push(a),i.push(Gr),n.push(fe.parse(l))):l.startsWith(Mf)?(o.var.push(a),i.push(kf),n.push(l)):(o.number.push(a),i.push(zr),n.push(parseFloat(l))),++a,Ur)).split(Ur);return{values:n,split:s,indexes:o,types:i}}function Kr(e){return bn(e).values}function Xr(e){const{split:t,types:n}=bn(e),o=t.length;return i=>{let a="";for(let r=0;r<o;r++)if(a+=t[r],i[r]!==void 0){const s=n[r];s===zr?a+=gn(i[r]):s===Gr?a+=fe.transform(i[r]):a+=i[r]}return a}}const Ef=e=>typeof e=="number"?0:fe.test(e)?fe.getAnimatableNone(e):e;function jf(e){const t=Kr(e);return Xr(e)(t.map(Ef))}const gt={test:Af,parse:Kr,createTransformer:Xr,getAnimatableNone:jf};function li(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Df({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,t/=100,n/=100;let i=0,a=0,r=0;if(!t)i=a=r=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=li(l,s,e+1/3),a=li(l,s,e),r=li(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(r*255),alpha:o}}function Qn(e,t){return n=>n>0?t:e}const te=(e,t,n)=>e+(t-e)*n,ui=(e,t,n)=>{const o=e*e,i=n*(t*t-o)+o;return i<0?0:Math.sqrt(i)},Nf=[ci,Ct,Wt],Pf=e=>Nf.find(t=>t.test(e));function Qr(e){const t=Pf(e);if(!t)return!1;let n=t.parse(e);return t===Wt&&(n=Df(n)),n}const Jr=(e,t)=>{const n=Qr(e),o=Qr(t);if(!n||!o)return Qn(e,t);const i={...n};return a=>(i.red=ui(n.red,o.red,a),i.green=ui(n.green,o.green,a),i.blue=ui(n.blue,o.blue,a),i.alpha=te(n.alpha,o.alpha,a),Ct.transform(i))},di=new Set(["none","hidden"]);function If(e,t){return di.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ff(e,t){return n=>te(e,t,n)}function hi(e){return typeof e=="number"?Ff:typeof e=="string"?ii(e)?Qn:fe.test(e)?Jr:Vf:Array.isArray(e)?Zr:typeof e=="object"?fe.test(e)?Jr:Of:Qn}function Zr(e,t){const n=[...e],o=n.length,i=e.map((a,r)=>hi(a)(a,t[r]));return a=>{for(let r=0;r<o;r++)n[r]=i[r](a);return n}}function Of(e,t){const n={...e,...t},o={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(o[i]=hi(e[i])(e[i],t[i]));return i=>{for(const a in o)n[a]=o[a](i);return n}}function Rf(e,t){const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],r=e.indexes[a][o[a]],s=e.values[r]??0;n[i]=s,o[a]++}return n}const Vf=(e,t)=>{const n=gt.createTransformer(t),o=bn(e),i=bn(t);return o.indexes.var.length===i.indexes.var.length&&o.indexes.color.length===i.indexes.color.length&&o.indexes.number.length>=i.indexes.number.length?di.has(e)&&!i.values.length||di.has(t)&&!o.values.length?If(e,t):hn(Zr(Rf(o,i),i.values),n):Qn(e,t)};function es(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?te(e,t,n):hi(e)(e,t)}const Wf=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Q.update(t,n),stop:()=>ft(t),now:()=>Se.isProcessing?Se.timestamp:Me.now()}},ts=(e,t,n=10)=>{let o="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)o+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`},Jn=2e4;function mi(e){let t=0;const n=50;let o=e.next(t);for(;!o.done&&t<Jn;)t+=n,o=e.next(t);return t>=Jn?1/0:t}function Hf(e,t=100,n){const o=n({...e,keyframes:[0,t]}),i=Math.min(mi(o),Jn);return{type:"keyframes",ease:a=>o.next(i*a).value/t,duration:Je(i)}}const qf=5;function ns(e,t,n){const o=Math.max(t-qf,0);return Mr(n-e(o),t-o)}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},os=.001;function Yf({duration:e=ie.duration,bounce:t=ie.bounce,velocity:n=ie.velocity,mass:o=ie.mass}){let i,a,r=1-t;r=at(ie.minDamping,ie.maxDamping,r),e=at(ie.minDuration,ie.maxDuration,Je(e)),r<1?(i=d=>{const u=d*r,m=u*e,f=u-n,g=fi(d,r),v=Math.exp(-m);return os-f/g*v},a=d=>{const m=d*r*e,f=m*n+n,g=Math.pow(r,2)*Math.pow(d,2)*e,v=Math.exp(-m),p=fi(Math.pow(d,2),r);return(-i(d)+os>0?-1:1)*((f-g)*v)/p}):(i=d=>{const u=Math.exp(-d*e),m=(d-n)*e+1;return-.001+u*m},a=d=>{const u=Math.exp(-d*e),m=(n-d)*(e*e);return u*m});const s=5/e,l=Gf(i,a,s);if(e=Qe(e),isNaN(l))return{stiffness:ie.stiffness,damping:ie.damping,duration:e};{const d=Math.pow(l,2)*o;return{stiffness:d,damping:r*2*Math.sqrt(o*d),duration:e}}}const zf=12;function Gf(e,t,n){let o=n;for(let i=1;i<zf;i++)o=o-e(o)/t(o);return o}function fi(e,t){return e*Math.sqrt(1-t*t)}const Uf=["duration","bounce"],Kf=["stiffness","damping","mass"];function is(e,t){return t.some(n=>e[n]!==void 0)}function Xf(e){let t={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...e};if(!is(e,Kf)&&is(e,Uf))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),i=o*o,a=2*at(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ie.mass,stiffness:i,damping:a}}else{const n=Yf(e);t={...t,...n,mass:ie.mass},t.isResolvedFromDuration=!0}return t}function Zn(e=ie.visualDuration,t=ie.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:o,restDelta:i}=n;const a=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:l,damping:d,mass:u,duration:m,velocity:f,isResolvedFromDuration:g}=Xf({...n,velocity:-Je(n.velocity||0)}),v=f||0,p=d/(2*Math.sqrt(l*u)),y=r-a,b=Je(Math.sqrt(l/u)),$=Math.abs(y)<5;o||(o=$?ie.restSpeed.granular:ie.restSpeed.default),i||(i=$?ie.restDelta.granular:ie.restDelta.default);let S;if(p<1){const w=fi(b,p);S=B=>{const A=Math.exp(-p*b*B);return r-A*((v+p*b*y)/w*Math.sin(w*B)+y*Math.cos(w*B))}}else if(p===1)S=w=>r-Math.exp(-b*w)*(y+(v+b*y)*w);else{const w=b*Math.sqrt(p*p-1);S=B=>{const A=Math.exp(-p*b*B),C=Math.min(w*B,300);return r-A*((v+p*b*y)*Math.sinh(C)+w*y*Math.cosh(C))/w}}const x={calculatedDuration:g&&m||null,next:w=>{const B=S(w);if(g)s.done=w>=m;else{let A=w===0?v:0;p<1&&(A=w===0?Qe(v):ns(S,w,B));const C=Math.abs(A)<=o,M=Math.abs(r-B)<=i;s.done=C&&M}return s.value=s.done?r:B,s},toString:()=>{const w=Math.min(mi(x),Jn),B=ts(A=>x.next(w*A).value,w,30);return w+"ms "+B},toTransition:()=>{}};return x}Zn.applyToOptions=e=>{const t=Hf(e,100,Zn);return e.ease=t.ease,e.duration=Qe(t.duration),e.type="keyframes",e};function _i({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:r,min:s,max:l,restDelta:d=.5,restSpeed:u}){const m=e[0],f={done:!1,value:m},g=C=>s!==void 0&&C<s||l!==void 0&&C>l,v=C=>s===void 0?l:l===void 0||Math.abs(s-C)<Math.abs(l-C)?s:l;let p=n*t;const y=m+p,b=r===void 0?y:r(y);b!==y&&(p=b-m);const $=C=>-p*Math.exp(-C/o),S=C=>b+$(C),x=C=>{const M=$(C),k=S(C);f.done=Math.abs(M)<=d,f.value=f.done?b:k};let w,B;const A=C=>{g(f.value)&&(w=C,B=Zn({keyframes:[f.value,v(f.value)],velocity:ns(S,C,f.value),damping:i,stiffness:a,restDelta:d,restSpeed:u}))};return A(0),{calculatedDuration:null,next:C=>{let M=!1;return!B&&w===void 0&&(M=!0,x(C),A(C)),w!==void 0&&C>=w?B.next(C-w):(!M&&x(C),f)}}}function Qf(e,t,n){const o=[],i=n||rt.mix||es,a=e.length-1;for(let r=0;r<a;r++){let s=i(e[r],e[r+1]);if(t){const l=Array.isArray(t)?t[r]||Fe:t;s=hn(l,s)}o.push(s)}return o}function Jf(e,t,{clamp:n=!0,ease:o,mixer:i}={}){const a=e.length;if(Qo(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=Qf(t,o,i),l=s.length,d=u=>{if(r&&u<e[0])return t[0];let m=0;if(l>1)for(;m<e.length-2&&!(u<e[m+1]);m++);const f=mn(e[m],e[m+1],u);return s[m](f)};return n?u=>d(at(e[0],e[a-1],u)):d}function Zf(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const i=mn(0,t,o);e.push(te(n,1,i))}}function e0(e){const t=[0];return Zf(t,e.length-1),t}function t0(e,t){return e.map(n=>n*t)}function n0(e,t){return e.map(()=>t||Or).splice(0,e.length-1)}function vn({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const i=mf(o)?o.map(Vr):Vr(o),a={done:!1,value:t[0]},r=t0(n&&n.length===t.length?n:e0(t),e),s=Jf(r,t,{ease:Array.isArray(i)?i:n0(t,i)});return{calculatedDuration:e,next:l=>(a.value=s(l),a.done=l>=e,a)}}const o0=e=>e!==null;function gi(e,{repeat:t,repeatType:n="loop"},o,i=1){const a=e.filter(o0),s=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!s||o===void 0?a[s]:o}const i0={decay:_i,inertia:_i,tween:vn,keyframes:vn,spring:Zn};function as(e){typeof e.type=="string"&&(e.type=i0[e.type])}class pi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const a0=e=>e/100;class bi extends pi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var o,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Me.now()&&this.tick(Me.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(o=this.options).onStop)==null||i.call(o))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;as(t);const{type:n=vn,repeat:o=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=t;let{keyframes:s}=t;const l=n||vn;l!==vn&&typeof s[0]!="number"&&(this.mixKeyframes=hn(a0,es(s[0],s[1])),s=[0,100]);const d=l({...t,keyframes:s});a==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-r})),d.calculatedDuration===null&&(d.calculatedDuration=mi(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(o+1)-i,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:o,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return o.next(0);const{delay:d=0,keyframes:u,repeat:m,repeatType:f,repeatDelay:g,type:v,onUpdate:p,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-d*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,x=o;if(m){const C=Math.min(this.currentTime,i)/s;let M=Math.floor(C),k=C%1;!k&&C>=1&&(k=1),k===1&&M--,M=Math.min(M,m+1),!!(M%2)&&(f==="reverse"?(k=1-k,g&&(k-=g/s)):f==="mirror"&&(x=r)),S=at(0,1,k)*s}const w=$?{done:!1,value:u[0]}:x.next(S);a&&(w.value=a(w.value));let{done:B}=w;!$&&l!==null&&(B=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return A&&v!==_i&&(w.value=gi(u,this.options,y,this.speed)),p&&p(w.value),A&&this.finish(),w}then(t,n){return this.finished.then(t,n)}get duration(){return Je(this.calculatedDuration)}get time(){return Je(this.currentTime)}set time(t){var n;t=Qe(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Me.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Je(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=Wf,startTime:n}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),(a=(i=this.options).onPlay)==null||a.call(i);const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Me.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function r0(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Tt=e=>e*180/Math.PI,vi=e=>{const t=Tt(Math.atan2(e[1],e[0]));return yi(t)},s0={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vi,rotateZ:vi,skewX:e=>Tt(Math.atan(e[1])),skewY:e=>Tt(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yi=e=>(e=e%360,e<0&&(e+=360),e),rs=vi,ss=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cs=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),c0={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ss,scaleY:cs,scale:e=>(ss(e)+cs(e))/2,rotateX:e=>yi(Tt(Math.atan2(e[6],e[5]))),rotateY:e=>yi(Tt(Math.atan2(-e[2],e[0]))),rotateZ:rs,rotate:rs,skewX:e=>Tt(Math.atan(e[4])),skewY:e=>Tt(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function wi(e){return e.includes("scale")?1:0}function xi(e,t){if(!e||e==="none")return wi(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,i;if(n)o=c0,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=s0,i=s}if(!i)return wi(t);const a=o[t],r=i[1].split(",").map(u0);return typeof a=="function"?a(r):r[a]}const l0=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xi(n,t)};function u0(e){return parseFloat(e.trim())}const Ht=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qt=new Set(Ht),ls=e=>e===Vt||e===V,d0=new Set(["x","y","z"]),h0=Ht.filter(e=>!d0.has(e));function m0(e){const t=[];return h0.forEach(n=>{const o=e.getValue(n);o!==void 0&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),t}const Bt={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>xi(t,"x"),y:(e,{transform:t})=>xi(t,"y")};Bt.translateX=Bt.x,Bt.translateY=Bt.y;const At=new Set;let $i=!1,Si=!1,Ci=!1;function us(){if(Si){const e=Array.from(At).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),n=new Map;t.forEach(o=>{const i=m0(o);i.length&&(n.set(o,i),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();const i=n.get(o);i&&i.forEach(([a,r])=>{var s;(s=o.getValue(a))==null||s.set(r)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Si=!1,$i=!1,At.forEach(e=>e.complete(Ci)),At.clear()}function ds(){At.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Si=!0)})}function f0(){Ci=!0,ds(),us(),Ci=!1}class Ti{constructor(t,n,o,i,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=o,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(At.add(this),$i||($i=!0,Q.read(ds),Q.resolveKeyframes(us))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:o,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),r=t[t.length-1];if(a!==void 0)t[0]=a;else if(o&&n){const s=o.readValue(n,r);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=r),i&&a===void 0&&i.set(t[0])}r0(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),At.delete(this)}cancel(){this.state==="scheduled"&&(At.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _0=e=>e.startsWith("--");function g0(e,t,n){_0(t)?e.style.setProperty(t,n):e.style[t]=n}const p0=Jo(()=>window.ScrollTimeline!==void 0),b0={};function v0(e,t){const n=Jo(e);return()=>b0[t]??n()}const hs=v0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),yn=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,ms={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yn([0,.65,.55,1]),circOut:yn([.55,0,1,.45]),backIn:yn([.31,.01,.66,-.59]),backOut:yn([.33,1.53,.69,.99])};function fs(e,t){if(e)return typeof e=="function"?hs()?ts(e,t):"ease-out":Rr(e)?yn(e):Array.isArray(e)?e.map(n=>fs(n,t)||ms.easeOut):ms[e]}function y0(e,t,n,{delay:o=0,duration:i=300,repeat:a=0,repeatType:r="loop",ease:s="easeOut",times:l}={},d=void 0){const u={[t]:n};l&&(u.offset=l);const m=fs(s,i);Array.isArray(m)&&(u.easing=m);const f={delay:o,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:r==="reverse"?"alternate":"normal"};return d&&(f.pseudoElement=d),e.animate(u,f)}function _s(e){return typeof e=="function"&&"applyToOptions"in e}function w0({type:e,...t}){return _s(e)&&hs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class x0 extends pi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:o,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!a,this.allowFlatten=r,this.options=t,Qo(typeof t.type!="string");const d=w0(t);this.animation=y0(n,o,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=gi(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):g0(n,o,u),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,o;const t=((o=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:o.call(n).duration)||0;return Je(Number(t))}get time(){return Je(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Qe(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&p0()?(this.animation.timeline=t,Fe):n(this)}}const gs={anticipate:Pr,backInOut:Nr,circInOut:Fr};function $0(e){return e in gs}function S0(e){typeof e.ease=="string"&&$0(e.ease)&&(e.ease=gs[e.ease])}const ps=10;class C0 extends x0{constructor(t){S0(t),as(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:o,onComplete:i,element:a,...r}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new bi({...r,autoplay:!1}),l=Qe(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-ps).value,s.sample(l).value,ps),s.stop()}}const bs=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(gt.test(e)||e==="0")&&!e.startsWith("url("));function T0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function B0(e,t,n,o){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],r=bs(i,t),s=bs(a,t);return!r||!s?!1:T0(e)||(n==="spring"||_s(n))&&o}const A0=new Set(["opacity","clipPath","filter","transform"]),k0=Jo(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function M0(e){var u;const{motionValue:t,name:n,repeatDelay:o,repeatType:i,damping:a,type:r}=e;if(!(((u=t==null?void 0:t.owner)==null?void 0:u.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:d}=t.owner.getProps();return k0()&&n&&A0.has(n)&&(n!=="transform"||!d)&&!l&&!o&&i!=="mirror"&&a!==0&&r!=="inertia"}const L0=40;class E0 extends pi{constructor({autoplay:t=!0,delay:n=0,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r="loop",keyframes:s,name:l,motionValue:d,element:u,...m}){var v;super(),this.stop=()=>{var p,y;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(y=this.keyframeResolver)==null||y.cancel()},this.createdAt=Me.now();const f={autoplay:t,delay:n,type:o,repeat:i,repeatDelay:a,repeatType:r,name:l,motionValue:d,element:u,...m},g=(u==null?void 0:u.KeyframeResolver)||Ti;this.keyframeResolver=new g(s,(p,y,b)=>this.onKeyframesResolved(p,y,f,!b),l,d,u),(v=this.keyframeResolver)==null||v.scheduleResolve()}onKeyframesResolved(t,n,o,i){this.keyframeResolver=void 0;const{name:a,type:r,velocity:s,delay:l,isHandoff:d,onUpdate:u}=o;this.resolvedAt=Me.now(),B0(t,a,r,s)||((rt.instantAnimations||!l)&&(u==null||u(gi(t,o,n))),t[0]=t[t.length-1],o.duration=0,o.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>L0?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:t},g=!d&&M0(f)?new C0({...f,element:f.motionValue.owner.current}):new bi(f);g.finished.then(()=>this.notifyFinished()).catch(Fe),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),f0()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const j0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D0(e){const t=j0.exec(e);if(!t)return[,];const[,n,o,i]=t;return[`--${n??o}`,i]}function vs(e,t,n=1){const[o,i]=D0(e);if(!o)return;const a=window.getComputedStyle(t).getPropertyValue(o);if(a){const r=a.trim();return Br(r)?parseFloat(r):r}return ii(i)?vs(i,t,n+1):i}function Bi(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const ys=new Set(["width","height","top","left","right","bottom",...Ht]),N0={test:e=>e==="auto",parse:e=>e},ws=e=>t=>t.test(e),xs=[Vt,V,Ze,_t,Tf,Cf,N0],$s=e=>xs.find(ws(e));function P0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||kr(e):!0}const I0=new Set(["brightness","contrast","saturate","opacity"]);function F0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[o]=n.match(ai)||[];if(!o)return e;const i=n.replace(o,"");let a=I0.has(t)?1:0;return o!==n&&(a*=100),t+"("+a+i+")"}const O0=/\b([a-z-]*)\(.*?\)/gu,Ai={...gt,getAnimatableNone:e=>{const t=e.match(O0);return t?t.map(F0).join(" "):e}},Ss={...Vt,transform:Math.round},ki={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,radius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,backgroundPositionX:V,backgroundPositionY:V,...{rotate:_t,rotateX:_t,rotateY:_t,rotateZ:_t,scale:Xn,scaleX:Xn,scaleY:Xn,scaleZ:Xn,skew:_t,skewX:_t,skewY:_t,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:_n,originX:Yr,originY:Yr,originZ:V},zIndex:Ss,fillOpacity:_n,strokeOpacity:_n,numOctaves:Ss},R0={...ki,color:fe,backgroundColor:fe,outlineColor:fe,fill:fe,stroke:fe,borderColor:fe,borderTopColor:fe,borderRightColor:fe,borderBottomColor:fe,borderLeftColor:fe,filter:Ai,WebkitFilter:Ai},Cs=e=>R0[e];function Ts(e,t){let n=Cs(e);return n!==Ai&&(n=gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const V0=new Set(["auto","none","0"]);function W0(e,t,n){let o=0,i;for(;o<e.length&&!i;){const a=e[o];typeof a=="string"&&!V0.has(a)&&bn(a).values.length&&(i=e[o]),o++}if(i&&n)for(const a of t)e[a]=Ts(n,i)}class H0 extends Ti{constructor(t,n,o,i,a){super(t,n,o,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:o}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let d=t[l];if(typeof d=="string"&&(d=d.trim(),ii(d))){const u=vs(d,n.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!ys.has(o)||t.length!==2)return;const[i,a]=t,r=$s(i),s=$s(a);if(r!==s)if(ls(r)&&ls(s))for(let l=0;l<t.length;l++){const d=t[l];typeof d=="string"&&(t[l]=parseFloat(d))}else Bt[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,o=[];for(let i=0;i<t.length;i++)(t[i]===null||P0(t[i]))&&o.push(i);o.length&&W0(t,o,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bt[o](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(o,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=o.length-1,r=o[a];o[a]=Bt[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,d])=>{t.getValue(l).set(d)}),this.resolveNoneKeyframes()}}function q0(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const i=(n==null?void 0:n[e])??o.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const Bs=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function As(e){return Ar(e)&&"offsetHeight"in e}const ks=30,Y0=e=>!isNaN(parseFloat(e));class z0{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,i=!0)=>{var r,s;const a=Me.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty();i&&((s=this.events.renderRequest)==null||s.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Me.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Y0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Zo);const o=this.events[t].add(n);return t==="change"?()=>{o(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Me.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ks)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ks);return Mr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yt(e,t){return new z0(e,t)}const{schedule:Mi}=Wr(queueMicrotask,!1),ze={x:!1,y:!1};function Ms(){return ze.x||ze.y}function G0(e){return e==="x"||e==="y"?ze[e]?null:(ze[e]=!0,()=>{ze[e]=!1}):ze.x||ze.y?null:(ze.x=ze.y=!0,()=>{ze.x=ze.y=!1})}function Ls(e,t){const n=q0(e),o=new AbortController,i={passive:!0,...t,signal:o.signal};return[n,i,()=>o.abort()]}function Es(e){return!(e.pointerType==="touch"||Ms())}function U0(e,t,n={}){const[o,i,a]=Ls(e,n),r=s=>{if(!Es(s))return;const{target:l}=s,d=t(l,s);if(typeof d!="function"||!l)return;const u=m=>{Es(m)&&(d(m),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return o.forEach(s=>{s.addEventListener("pointerenter",r,i)}),a}const js=(e,t)=>t?e===t?!0:js(e,t.parentElement):!1,Li=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,K0=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function X0(e){return K0.has(e.tagName)||e.tabIndex!==-1}const eo=new WeakSet;function Ds(e){return t=>{t.key==="Enter"&&e(t)}}function Ei(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Q0=(e,t)=>{const n=e.currentTarget;if(!n)return;const o=Ds(()=>{if(eo.has(n))return;Ei(n,"down");const i=Ds(()=>{Ei(n,"up")}),a=()=>Ei(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",o,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),t)};function Ns(e){return Li(e)&&!Ms()}function J0(e,t,n={}){const[o,i,a]=Ls(e,n),r=s=>{const l=s.currentTarget;if(!Ns(s))return;eo.add(l);const d=t(l,s),u=(g,v)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",f),eo.has(l)&&eo.delete(l),Ns(g)&&typeof d=="function"&&d(g,{success:v})},m=g=>{u(g,l===window||l===document||n.useGlobalTarget||js(l,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",f,i)};return o.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",r,i),As(s)&&(s.addEventListener("focus",d=>Q0(d,i)),!X0(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),a}function Ps(e){return Ar(e)&&"ownerSVGElement"in e}function Z0(e){return Ps(e)&&e.tagName==="svg"}const Be=e=>!!(e&&e.getVelocity),e1=[...xs,fe,gt],t1=e=>e1.find(ws(e)),ji=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class n1 extends h.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const o=n.offsetParent,i=As(o)&&o.offsetWidth||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=i-a.width-a.left}return null}componentDidUpdate(){}render(){return this.props.children}}function o1({children:e,isPresent:t,anchorX:n,root:o}){const i=_.useId(),a=_.useRef(null),r=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=_.useContext(ji);return _.useInsertionEffect(()=>{const{width:l,height:d,top:u,left:m,right:f}=r.current;if(t||!a.current||!l||!d)return;const g=n==="left"?`left: ${m}`:`right: ${f}`;a.current.dataset.motionPopId=i;const v=document.createElement("style");s&&(v.nonce=s);const p=o??document.head;return p.appendChild(v),v.sheet&&v.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${l}px !important;
            height: ${d}px !important;
            ${g}px !important;
            top: ${u}px !important;
          }
        `),()=>{p.removeChild(v),p.contains(v)&&p.removeChild(v)}},[t]),c.jsx(n1,{isPresent:t,childRef:a,sizeRef:r,children:h.cloneElement(e,{ref:a})})}const i1=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:r,anchorX:s,root:l})=>{const d=Go(a1),u=_.useId();let m=!0,f=_.useMemo(()=>(m=!1,{id:u,initial:t,isPresent:n,custom:i,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;o&&o()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,o]);return a&&m&&(f={...f}),_.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),h.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),r==="popLayout"&&(e=c.jsx(o1,{isPresent:n,anchorX:s,root:l,children:e})),c.jsx(Gn.Provider,{value:f,children:e})};function a1(){return new Map}function Is(e=!0){const t=_.useContext(Gn);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:i}=t,a=_.useId();_.useEffect(()=>{if(e)return i(a)},[e]);const r=_.useCallback(()=>e&&o&&o(a),[a,o,e]);return!n&&o?[!1,r]:[!0]}const to=e=>e.key||"";function Fs(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const no=({children:e,custom:t,initial:n=!0,onExitComplete:o,presenceAffectsLayout:i=!0,mode:a="sync",propagate:r=!1,anchorX:s="left",root:l})=>{const[d,u]=Is(r),m=_.useMemo(()=>Fs(e),[e]),f=r&&!d?[]:m.map(to),g=_.useRef(!0),v=_.useRef(m),p=Go(()=>new Map),[y,b]=_.useState(m),[$,S]=_.useState(m);Tr(()=>{g.current=!1,v.current=m;for(let B=0;B<$.length;B++){const A=to($[B]);f.includes(A)?p.delete(A):p.get(A)!==!0&&p.set(A,!1)}},[$,f.length,f.join("-")]);const x=[];if(m!==y){let B=[...m];for(let A=0;A<$.length;A++){const C=$[A],M=to(C);f.includes(M)||(B.splice(A,0,C),x.push(C))}return a==="wait"&&x.length&&(B=x),S(Fs(B)),b(m),null}const{forceRender:w}=_.useContext(zo);return c.jsx(c.Fragment,{children:$.map(B=>{const A=to(B),C=r&&!d?!1:m===$||f.includes(A),M=()=>{if(p.has(A))p.set(A,!0);else return;let k=!0;p.forEach(P=>{P||(k=!1)}),k&&(w==null||w(),S(v.current),r&&(u==null||u()),o&&o())};return c.jsx(i1,{isPresent:C,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:C?void 0:M,anchorX:s,children:B},A)})})},Os=_.createContext({strict:!1}),Rs={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zt={};for(const e in Rs)zt[e]={isEnabled:t=>Rs[e].some(n=>!!t[n])};function r1(e){for(const t in e)zt[t]={...zt[t],...e[t]}}const s1=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function oo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s1.has(e)}let Vs=e=>!oo(e);function c1(e){typeof e=="function"&&(Vs=t=>t.startsWith("on")?!oo(t):e(t))}try{c1(require("@emotion/is-prop-valid").default)}catch{}function l1(e,t,n){const o={};for(const i in e)i==="values"&&typeof e.values=="object"||(Vs(i)||n===!0&&oo(i)||!t&&!oo(i)||e.draggable&&i.startsWith("onDrag"))&&(o[i]=e[i]);return o}const io=_.createContext({});function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wn(e){return typeof e=="string"||Array.isArray(e)}const Di=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ni=["initial",...Di];function ro(e){return ao(e.animate)||Ni.some(t=>wn(e[t]))}function Ws(e){return!!(ro(e)||e.variants)}function u1(e,t){if(ro(e)){const{initial:n,animate:o}=e;return{initial:n===!1||wn(n)?n:void 0,animate:wn(o)?o:void 0}}return e.inherit!==!1?t:{}}function d1(e){const{initial:t,animate:n}=u1(e,_.useContext(io));return _.useMemo(()=>({initial:t,animate:n}),[Hs(t),Hs(n)])}function Hs(e){return Array.isArray(e)?e.join(" "):e}const xn={};function h1(e){for(const t in e)xn[t]=e[t],oi(t)&&(xn[t].isCSSVariable=!0)}function qs(e,{layout:t,layoutId:n}){return qt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!xn[e]||e==="opacity")}const m1={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},f1=Ht.length;function _1(e,t,n){let o="",i=!0;for(let a=0;a<f1;a++){const r=Ht[a],s=e[r];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(r.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const d=Bs(s,ki[r]);if(!l){i=!1;const u=m1[r]||r;o+=`${u}(${d}) `}n&&(t[r]=d)}}return o=o.trim(),n?o=n(t,i?"":o):i&&(o="none"),o}function Pi(e,t,n){const{style:o,vars:i,transformOrigin:a}=e;let r=!1,s=!1;for(const l in t){const d=t[l];if(qt.has(l)){r=!0;continue}else if(oi(l)){i[l]=d;continue}else{const u=Bs(d,ki[l]);l.startsWith("origin")?(s=!0,a[l]=u):o[l]=u}}if(t.transform||(r||n?o.transform=_1(t,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:l="50%",originY:d="50%",originZ:u=0}=a;o.transformOrigin=`${l} ${d} ${u}`}}const Ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ys(e,t,n){for(const o in t)!Be(t[o])&&!qs(o,n)&&(e[o]=t[o])}function g1({transformTemplate:e},t){return _.useMemo(()=>{const n=Ii();return Pi(n,t,e),Object.assign({},n.vars,n.style)},[t])}function p1(e,t){const n=e.style||{},o={};return Ys(o,n,e),Object.assign(o,g1(e,t)),o}function b1(e,t){const n={},o=p1(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const v1={offset:"stroke-dashoffset",array:"stroke-dasharray"},y1={offset:"strokeDashoffset",array:"strokeDasharray"};function w1(e,t,n=1,o=0,i=!0){e.pathLength=1;const a=i?v1:y1;e[a.offset]=V.transform(-o);const r=V.transform(t),s=V.transform(n);e[a.array]=`${r} ${s}`}function zs(e,{attrX:t,attrY:n,attrScale:o,pathLength:i,pathSpacing:a=1,pathOffset:r=0,...s},l,d,u){if(Pi(e,s,d),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:f}=e;m.transform&&(f.transform=m.transform,delete m.transform),(f.transform||m.transformOrigin)&&(f.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),f.transform&&(f.transformBox=(u==null?void 0:u.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),o!==void 0&&(m.scale=o),i!==void 0&&w1(m,i,a,r,!1)}const Gs=()=>({...Ii(),attrs:{}}),Us=e=>typeof e=="string"&&e.toLowerCase()==="svg";function x1(e,t,n,o){const i=_.useMemo(()=>{const a=Gs();return zs(a,t,Us(o),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Ys(a,e.style,e),i.style={...a,...i.style}}return i}const $1=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fi(e){return typeof e!="string"||e.includes("-")?!1:!!($1.indexOf(e)>-1||/[A-Z]/u.test(e))}function S1(e,t,n,{latestValues:o},i,a=!1){const s=(Fi(e)?x1:b1)(t,o,i,e),l=l1(t,typeof e=="string",a),d=e!==_.Fragment?{...l,...s,ref:n}:{},{children:u}=t,m=_.useMemo(()=>Be(u)?u.get():u,[u]);return _.createElement(e,{...d,children:m})}function Ks(e){const t=[{},{}];return e==null||e.values.forEach((n,o)=>{t[0][o]=n.get(),t[1][o]=n.getVelocity()}),t}function Oi(e,t,n,o){if(typeof t=="function"){const[i,a]=Ks(o);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Ks(o);t=t(n!==void 0?n:e.custom,i,a)}return t}function so(e){return Be(e)?e.get():e}function C1({scrapeMotionValuesFromProps:e,createRenderState:t},n,o,i){return{latestValues:T1(n,o,i,e),renderState:t()}}function T1(e,t,n,o){const i={},a=o(e,{});for(const f in a)i[f]=so(a[f]);let{initial:r,animate:s}=e;const l=ro(e),d=Ws(e);t&&d&&!l&&e.inherit!==!1&&(r===void 0&&(r=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const m=u?s:r;if(m&&typeof m!="boolean"&&!ao(m)){const f=Array.isArray(m)?m:[m];for(let g=0;g<f.length;g++){const v=Oi(e,f[g]);if(v){const{transitionEnd:p,transition:y,...b}=v;for(const $ in b){let S=b[$];if(Array.isArray(S)){const x=u?S.length-1:0;S=S[x]}S!==null&&(i[$]=S)}for(const $ in p)i[$]=p[$]}}}return i}const Xs=e=>(t,n)=>{const o=_.useContext(io),i=_.useContext(Gn),a=()=>C1(e,t,o,i);return n?a():Go(a)};function Ri(e,t,n){var a;const{style:o}=e,i={};for(const r in o)(Be(o[r])||t.style&&Be(t.style[r])||qs(r,e)||((a=n==null?void 0:n.getValue(r))==null?void 0:a.liveStyle)!==void 0)&&(i[r]=o[r]);return i}const B1=Xs({scrapeMotionValuesFromProps:Ri,createRenderState:Ii});function Qs(e,t,n){const o=Ri(e,t,n);for(const i in e)if(Be(e[i])||Be(t[i])){const a=Ht.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;o[a]=e[i]}return o}const A1=Xs({scrapeMotionValuesFromProps:Qs,createRenderState:Gs}),k1=Symbol.for("motionComponentSymbol");function Gt(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function M1(e,t,n){return _.useCallback(o=>{o&&e.onMount&&e.onMount(o),t&&(o?t.mount(o):t.unmount()),n&&(typeof n=="function"?n(o):Gt(n)&&(n.current=o))},[t])}const Vi=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Js="data-"+Vi("framerAppearId"),Zs=_.createContext({});function L1(e,t,n,o,i){var p,y;const{visualElement:a}=_.useContext(io),r=_.useContext(Os),s=_.useContext(Gn),l=_.useContext(ji).reducedMotion,d=_.useRef(null);o=o||r.renderer,!d.current&&o&&(d.current=o(e,{visualState:t,parent:a,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const u=d.current,m=_.useContext(Zs);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&E1(d.current,n,i,m);const f=_.useRef(!1);_.useInsertionEffect(()=>{u&&f.current&&u.update(n,s)});const g=n[Js],v=_.useRef(!!g&&!((p=window.MotionHandoffIsComplete)!=null&&p.call(window,g))&&((y=window.MotionHasOptimisedAnimation)==null?void 0:y.call(window,g)));return Tr(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),_.useEffect(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,g)}),v.current=!1))}),u}function E1(e,t,n,o){const{layoutId:i,layout:a,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ec(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!r||s&&Gt(s),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:l,layoutRoot:d})}function ec(e){if(e)return e.options.allowProjection!==!1?e.projection:ec(e.parent)}function Wi(e,{forwardMotionProps:t=!1}={},n,o){n&&r1(n);const i=Fi(e)?A1:B1;function a(s,l){let d;const u={..._.useContext(ji),...s,layoutId:j1(s)},{isStatic:m}=u,f=d1(s),g=i(s,m);if(!m&&Uo){D1();const v=N1(u);d=v.MeasureLayout,f.visualElement=L1(e,g,u,o,v.ProjectionNode)}return c.jsxs(io.Provider,{value:f,children:[d&&f.visualElement?c.jsx(d,{visualElement:f.visualElement,...u}):null,S1(e,s,M1(g,f.visualElement,l),g,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const r=_.forwardRef(a);return r[k1]=e,r}function j1({layoutId:e}){const t=_.useContext(zo).id;return t&&e!==void 0?t+"-"+e:e}function D1(e,t){_.useContext(Os).strict}function N1(e){const{drag:t,layout:n}=zt;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function P1(e,t){if(typeof Proxy>"u")return Wi;const n=new Map,o=(a,r)=>Wi(a,r,e,t),i=(a,r)=>o(a,r);return new Proxy(i,{get:(a,r)=>r==="create"?o:(n.has(r)||n.set(r,Wi(r,void 0,e,t)),n.get(r))})}function tc({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function I1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function F1(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function Hi(e){return e===void 0||e===1}function qi({scale:e,scaleX:t,scaleY:n}){return!Hi(e)||!Hi(t)||!Hi(n)}function kt(e){return qi(e)||nc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function nc(e){return oc(e.x)||oc(e.y)}function oc(e){return e&&e!=="0%"}function co(e,t,n){const o=e-n,i=t*o;return n+i}function ic(e,t,n,o,i){return i!==void 0&&(e=co(e,i,o)),co(e,n,o)+t}function Yi(e,t=0,n=1,o,i){e.min=ic(e.min,t,n,o,i),e.max=ic(e.max,t,n,o,i)}function ac(e,{x:t,y:n}){Yi(e.x,t.translate,t.scale,t.originPoint),Yi(e.y,n.translate,n.scale,n.originPoint)}const rc=.999999999999,sc=1.0000000000001;function O1(e,t,n,o=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,r;for(let s=0;s<i;s++){a=n[s],r=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(o&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Kt(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,ac(e,r)),o&&kt(a.latestValues)&&Kt(e,a.latestValues))}t.x<sc&&t.x>rc&&(t.x=1),t.y<sc&&t.y>rc&&(t.y=1)}function Ut(e,t){e.min=e.min+t,e.max=e.max+t}function cc(e,t,n,o,i=.5){const a=te(e.min,e.max,i);Yi(e,t,n,a,o)}function Kt(e,t){cc(e.x,t.x,t.scaleX,t.scale,t.originX),cc(e.y,t.y,t.scaleY,t.scale,t.originY)}function lc(e,t){return tc(F1(e.getBoundingClientRect(),t))}function R1(e,t,n){const o=lc(e,n),{scroll:i}=t;return i&&(Ut(o.x,i.offset.x),Ut(o.y,i.offset.y)),o}const uc=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xt=()=>({x:uc(),y:uc()}),dc=()=>({min:0,max:0}),le=()=>({x:dc(),y:dc()}),zi={current:null},hc={current:!1};function V1(){if(hc.current=!0,!!Uo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zi.current=e.matches;e.addEventListener("change",t),t()}else zi.current=!1}const W1=new WeakMap;function H1(e,t,n){for(const o in t){const i=t[o],a=n[o];if(Be(i))e.addValue(o,i);else if(Be(a))e.addValue(o,Yt(i,{owner:e}));else if(a!==i)if(e.hasValue(o)){const r=e.getValue(o);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(o);e.addValue(o,Yt(r!==void 0?r:i,{owner:e}))}}for(const o in n)t[o]===void 0&&e.removeValue(o);return t}const mc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class q1{scrapeMotionValuesFromProps(t,n,o){return{}}constructor({parent:t,props:n,presenceContext:o,reducedMotionConfig:i,blockInitialAnimation:a,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ti,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=Me.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Q.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=ro(n),this.isVariantNode=Ws(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in m){const g=m[f];l[f]!==void 0&&Be(g)&&g.set(l[f],!1)}}mount(t){this.current=t,W1.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),hc.current||V1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:zi.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ft(this.notifyUpdate),ft(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const o=qt.has(t);o&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),r&&r(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zt){const n=zt[t];if(!n)continue;const{isEnabled:o,Feature:i}=n;if(!this.features[t]&&i&&o(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;o<mc.length;o++){const i=mc[o];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,r=t[a];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=H1(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const o=this.values.get(t);n!==o&&(o&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let o=this.values.get(t);return o===void 0&&n!==void 0&&(o=Yt(n===null?void 0:n,{owner:this}),this.addValue(t,o)),o}readValue(t,n){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Br(o)||kr(o))?o=parseFloat(o):!t1(o)&&gt.test(n)&&(o=Ts(t,n)),this.setBaseTarget(t,Be(o)?o.get():o)),Be(o)?o.get():o}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const r=Oi(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);r&&(o=r[t])}if(n&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Be(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zo),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Mi.render(this.render)}}class fc extends q1{constructor(){super(...arguments),this.KeyframeResolver=H0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:o}){delete n[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Be(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _c(e,{style:t,vars:n},o,i){const a=e.style;let r;for(r in t)a[r]=t[r];i==null||i.applyProjectionStyles(a,o);for(r in n)a.setProperty(r,n[r])}function Y1(e){return window.getComputedStyle(e)}class z1 extends fc{constructor(){super(...arguments),this.type="html",this.renderInstance=_c}readValueFromInstance(t,n){var o;if(qt.has(n))return(o=this.projection)!=null&&o.isProjecting?wi(n):l0(t,n);{const i=Y1(t),a=(oi(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return lc(t,n)}build(t,n,o){Pi(t,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,n,o){return Ri(t,n,o)}}const gc=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function G1(e,t,n,o){_c(e,t,void 0,o);for(const i in t.attrs)e.setAttribute(gc.has(i)?i:Vi(i),t.attrs[i])}class U1 extends fc{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=le}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(qt.has(n)){const o=Cs(n);return o&&o.default||0}return n=gc.has(n)?n:Vi(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,o){return Qs(t,n,o)}build(t,n,o){zs(t,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,n,o,i){G1(t,n,o,i)}mount(t){this.isSVGTag=Us(t.tagName),super.mount(t)}}const K1=(e,t)=>Fi(e)?new U1(t):new z1(t,{allowProjection:e!==_.Fragment});function $n(e,t,n){const o=e.getProps();return Oi(o,t,n!==void 0?n:o.custom,e)}const Gi=e=>Array.isArray(e);function X1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yt(n))}function Q1(e){return Gi(e)?e[e.length-1]||0:e}function J1(e,t){const n=$n(e,t);let{transitionEnd:o={},transition:i={},...a}=n||{};a={...a,...o};for(const r in a){const s=Q1(a[r]);X1(e,r,s)}}function Z1(e){return!!(Be(e)&&e.add)}function Ui(e,t){const n=e.getValue("willChange");if(Z1(n))return n.add(t);if(!n&&rt.WillChange){const o=new rt.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function pc(e){return e.props[Js]}const e_=e=>e!==null;function t_(e,{repeat:t,repeatType:n="loop"},o){const i=e.filter(e_),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const n_={type:"spring",stiffness:500,damping:25,restSpeed:10},o_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i_={type:"keyframes",duration:.8},a_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},r_=(e,{keyframes:t})=>t.length>2?i_:qt.has(e)?e.startsWith("scale")?o_(t[1]):n_:a_;function s_({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:i,repeat:a,repeatType:r,repeatDelay:s,from:l,elapsed:d,...u}){return!!Object.keys(u).length}const Ki=(e,t,n,o={},i,a)=>r=>{const s=Bi(o,e)||{},l=s.delay||o.delay||0;let{elapsed:d=0}=o;d=d-Qe(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-d,onUpdate:f=>{t.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{r(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};s_(s)||Object.assign(u,r_(e,u)),u.duration&&(u.duration=Qe(u.duration)),u.repeatDelay&&(u.repeatDelay=Qe(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let m=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(m=!0)),(rt.instantAnimations||rt.skipAnimations)&&(m=!0,u.duration=0,u.delay=0),u.allowFlatten=!s.type&&!s.ease,m&&!a&&t.get()!==void 0){const f=t_(u.keyframes,s);if(f!==void 0){Q.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new bi(u):new E0(u)};function c_({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,o}function bc(e,t,{delay:n=0,transitionOverride:o,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:r,...s}=t;o&&(a=o);const l=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in s){const m=e.getValue(u,e.latestValues[u]??null),f=s[u];if(f===void 0||d&&c_(d,u))continue;const g={delay:n,...Bi(a||{},u)},v=m.get();if(v!==void 0&&!m.isAnimating&&!Array.isArray(f)&&f===v&&!g.velocity)continue;let p=!1;if(window.MotionHandoffAnimation){const b=pc(e);if(b){const $=window.MotionHandoffAnimation(b,u,Q);$!==null&&(g.startTime=$,p=!0)}}Ui(e,u),m.start(Ki(u,m,f,e.shouldReduceMotion&&ys.has(u)?{type:!1}:g,e,p));const y=m.animation;y&&l.push(y)}return r&&Promise.all(l).then(()=>{Q.update(()=>{r&&J1(e,r)})}),l}function Xi(e,t,n={}){var l;const o=$n(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(bc(e,o,n)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:u=0,staggerChildren:m,staggerDirection:f}=i;return l_(e,t,d,u,m,f,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[d,u]=s==="beforeChildren"?[a,r]:[r,a];return d().then(()=>u())}else return Promise.all([a(),r(n.delay)])}function l_(e,t,n=0,o=0,i=0,a=1,r){const s=[],l=e.variantChildren.size,d=(l-1)*i,u=typeof o=="function",m=u?f=>o(f,l):a===1?(f=0)=>f*i:(f=0)=>d-f*i;return Array.from(e.variantChildren).sort(u_).forEach((f,g)=>{f.notify("AnimationStart",t),s.push(Xi(f,t,{...r,delay:n+(u?0:o)+m(g)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(s)}function u_(e,t){return e.sortNodePosition(t)}function d_(e,t,n={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){const i=t.map(a=>Xi(e,a,n));o=Promise.all(i)}else if(typeof t=="string")o=Xi(e,t,n);else{const i=typeof t=="function"?$n(e,t,n.custom):t;o=Promise.all(bc(e,i,n))}return o.then(()=>{e.notify("AnimationComplete",t)})}function vc(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}const h_=Ni.length;function yc(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?yc(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<h_;n++){const o=Ni[n],i=e.props[o];(wn(i)||i===!1)&&(t[o]=i)}return t}const m_=[...Di].reverse(),f_=Di.length;function __(e){return t=>Promise.all(t.map(({animation:n,options:o})=>d_(e,n,o)))}function g_(e){let t=__(e),n=wc(),o=!0;const i=l=>(d,u)=>{var f;const m=$n(e,u,l==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);if(m){const{transition:g,transitionEnd:v,...p}=m;d={...d,...p,...v}}return d};function a(l){t=l(e)}function r(l){const{props:d}=e,u=yc(e.parent)||{},m=[],f=new Set;let g={},v=1/0;for(let y=0;y<f_;y++){const b=m_[y],$=n[b],S=d[b]!==void 0?d[b]:u[b],x=wn(S),w=b===l?$.isActive:null;w===!1&&(v=y);let B=S===u[b]&&S!==d[b]&&x;if(B&&o&&e.manuallyAnimateOnMount&&(B=!1),$.protectedKeys={...g},!$.isActive&&w===null||!S&&!$.prevProp||ao(S)||typeof S=="boolean")continue;const A=p_($.prevProp,S);let C=A||b===l&&$.isActive&&!B&&x||y>v&&x,M=!1;const k=Array.isArray(S)?S:[S];let P=k.reduce(i(b),{});w===!1&&(P={});const{prevResolvedValues:O={}}=$,q={...O,...P},Y=L=>{C=!0,f.has(L)&&(M=!0,f.delete(L)),$.needsAnimating[L]=!0;const F=e.getValue(L);F&&(F.liveStyle=!1)};for(const L in q){const F=P[L],R=O[L];if(g.hasOwnProperty(L))continue;let j=!1;Gi(F)&&Gi(R)?j=!vc(F,R):j=F!==R,j?F!=null?Y(L):f.add(L):F!==void 0&&f.has(L)?Y(L):$.protectedKeys[L]=!0}$.prevProp=S,$.prevResolvedValues=P,$.isActive&&(g={...g,...P}),o&&e.blockInitialAnimation&&(C=!1),C&&(!(B&&A)||M)&&m.push(...k.map(L=>({animation:L,options:{type:b}})))}if(f.size){const y={};if(typeof d.initial!="boolean"){const b=$n(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(y.transition=b.transition)}f.forEach(b=>{const $=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),y[b]=$??null}),m.push({animation:y})}let p=!!m.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(p=!1),o=!1,p?t(m):Promise.resolve()}function s(l,d){var m;if(n[l].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(f=>{var g;return(g=f.animationState)==null?void 0:g.setActive(l,d)}),n[l].isActive=d;const u=r(l);for(const f in n)n[f].protectedKeys={};return u}return{animateChanges:r,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=wc(),o=!0}}}function p_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!vc(t,e):!1}function Mt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wc(){return{animate:Mt(!0),whileInView:Mt(),whileHover:Mt(),whileTap:Mt(),whileDrag:Mt(),whileFocus:Mt(),exit:Mt()}}class pt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class b_ extends pt{constructor(t){super(t),t.animationState||(t.animationState=g_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ao(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let v_=0;class y_ extends pt{constructor(){super(...arguments),this.id=v_++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const w_={animation:{Feature:b_},exit:{Feature:y_}};function Sn(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}function Cn(e){return{point:{x:e.pageX,y:e.pageY}}}const x_=e=>t=>Li(t)&&e(t,Cn(t));function Tn(e,t,n,o){return Sn(e,t,x_(n),o)}const xc=1e-4,$_=1-xc,S_=1+xc,$c=.01,C_=0-$c,T_=0+$c;function ke(e){return e.max-e.min}function B_(e,t,n){return Math.abs(e-t)<=n}function Sc(e,t,n,o=.5){e.origin=o,e.originPoint=te(t.min,t.max,e.origin),e.scale=ke(n)/ke(t),e.translate=te(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$_&&e.scale<=S_||isNaN(e.scale))&&(e.scale=1),(e.translate>=C_&&e.translate<=T_||isNaN(e.translate))&&(e.translate=0)}function Bn(e,t,n,o){Sc(e.x,t.x,n.x,o?o.originX:void 0),Sc(e.y,t.y,n.y,o?o.originY:void 0)}function Cc(e,t,n){e.min=n.min+t.min,e.max=e.min+ke(t)}function A_(e,t,n){Cc(e.x,t.x,n.x),Cc(e.y,t.y,n.y)}function Tc(e,t,n){e.min=t.min-n.min,e.max=e.min+ke(t)}function An(e,t,n){Tc(e.x,t.x,n.x),Tc(e.y,t.y,n.y)}function Oe(e){return[e("x"),e("y")]}const Bc=({current:e})=>e?e.ownerDocument.defaultView:null,Ac=(e,t)=>Math.abs(e-t);function k_(e,t){const n=Ac(e.x,t.x),o=Ac(e.y,t.y);return Math.sqrt(n**2+o**2)}class kc{constructor(t,n,{transformPagePoint:o,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ji(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=k_(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:p}=f,{timestamp:y}=Se;this.history.push({...p,timestamp:y});const{onStart:b,onMove:$}=this.handlers;g||(b&&b(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Qi(g,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:v,onSessionEnd:p,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Ji(f.type==="pointercancel"?this.lastMoveEventInfo:Qi(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,b),p&&p(f,b)},!Li(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=r,this.contextWindow=i||window;const s=Cn(t),l=Qi(s,this.transformPagePoint),{point:d}=l,{timestamp:u}=Se;this.history=[{...d,timestamp:u}];const{onSessionStart:m}=n;m&&m(t,Ji(l,this.history)),this.removeListeners=hn(Tn(this.contextWindow,"pointermove",this.handlePointerMove),Tn(this.contextWindow,"pointerup",this.handlePointerUp),Tn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ft(this.updatePoint)}}function Qi(e,t){return t?{point:t(e.point)}:e}function Mc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ji({point:e},t){return{point:e,delta:Mc(e,Lc(t)),offset:Mc(e,M_(t)),velocity:L_(t,.1)}}function M_(e){return e[0]}function Lc(e){return e[e.length-1]}function L_(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const i=Lc(e);for(;n>=0&&(o=e[n],!(i.timestamp-o.timestamp>Qe(t)));)n--;if(!o)return{x:0,y:0};const a=Je(i.timestamp-o.timestamp);if(a===0)return{x:0,y:0};const r={x:(i.x-o.x)/a,y:(i.y-o.y)/a};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function E_(e,{min:t,max:n},o){return t!==void 0&&e<t?e=o?te(t,e,o.min):Math.max(e,t):n!==void 0&&e>n&&(e=o?te(n,e,o.max):Math.min(e,n)),e}function Ec(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function j_(e,{top:t,left:n,bottom:o,right:i}){return{x:Ec(e.x,n,i),y:Ec(e.y,t,o)}}function jc(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}function D_(e,t){return{x:jc(e.x,t.x),y:jc(e.y,t.y)}}function N_(e,t){let n=.5;const o=ke(e),i=ke(t);return i>o?n=mn(t.min,t.max-o,e.min):o>i&&(n=mn(e.min,e.max-i,t.min)),at(0,1,n)}function P_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zi=.35;function I_(e=Zi){return e===!1?e=0:e===!0&&(e=Zi),{x:Dc(e,"left","right"),y:Dc(e,"top","bottom")}}function Dc(e,t,n){return{min:Nc(e,t),max:Nc(e,n)}}function Nc(e,t){return typeof e=="number"?e:e[t]||0}const F_=new WeakMap;class O_{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=le(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cn(m).point)},r=(m,f)=>{const{drag:g,dragPropagation:v,onDragStart:p}=this.getProps();if(g&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=G0(g),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Oe(b=>{let $=this.getAxisMotionValue(b).get()||0;if(Ze.test($)){const{projection:S}=this.visualElement;if(S&&S.layout){const x=S.layout.layoutBox[b];x&&($=ke(x)*(parseFloat($)/100))}}this.originPoint[b]=$}),p&&Q.postRender(()=>p(m,f)),Ui(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(m,f)=>{this.latestPointerEvent=m,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:v,onDirectionLock:p,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:b}=f;if(v&&this.currentDirection===null){this.currentDirection=R_(b),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",f.point,b),this.updateAxis("y",f.point,b),this.visualElement.render(),y&&y(m,f)},l=(m,f)=>{this.latestPointerEvent=m,this.latestPanInfo=f,this.stop(m,f),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Oe(m=>{var f;return this.getAnimationState(m)==="paused"&&((f=this.getAxisMotionValue(m).animation)==null?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new kc(t,{onSessionStart:a,onStart:r,onMove:s,onSessionEnd:l,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:Bc(this.visualElement)})}stop(t,n){const o=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!o)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:s}=this.getProps();s&&Q.postRender(()=>s(o,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,o){const{drag:i}=this.getProps();if(!o||!lo(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let r=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(r=E_(r,this.constraints[t],this.elastic[t])),a.set(r)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(a=this.visualElement.projection)==null?void 0:a.layout,i=this.constraints;t&&Gt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=j_(o.layoutBox,t):this.constraints=!1,this.elastic=I_(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Oe(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=P_(o.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Gt(t))return!1;const o=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=R1(o,i.root,this.visualElement.getTransformPagePoint());let r=D_(i.layout.layoutBox,a);if(n){const s=n(I1(r));this.hasMutatedConstraints=!!s,s&&(r=tc(s))}return r}startAnimation(t){const{drag:n,dragMomentum:o,dragElastic:i,dragTransition:a,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},d=Oe(u=>{if(!lo(u,n,this.currentDirection))return;let m=l&&l[u]||{};r&&(m={min:0,max:0});const f=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:o?t[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(u,v)});return Promise.all(d).then(s)}startAxisValueAnimation(t,n){const o=this.getAxisMotionValue(t);return Ui(this.visualElement,t),o.start(Ki(t,o,0,n,this.visualElement,!1))}stopAnimation(){Oe(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Oe(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),i=o[n];return i||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){Oe(n=>{const{drag:o}=this.getProps();if(!lo(n,o,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:s}=i.layout.layoutBox[n];a.set(t[n]-te(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Gt(n)||!o||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Oe(r=>{const s=this.getAxisMotionValue(r);if(s&&this.constraints!==!1){const l=s.get();i[r]=N_({min:l,max:l},this.constraints[r])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Oe(r=>{if(!lo(r,t,null))return;const s=this.getAxisMotionValue(r),{min:l,max:d}=this.constraints[r];s.set(te(l,d,i[r]))})}addListeners(){if(!this.visualElement.current)return;F_.set(this.visualElement,this);const t=this.visualElement.current,n=Tn(t,"pointerdown",l=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();Gt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Q.read(o);const r=Sn(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Oe(u=>{const m=this.getAxisMotionValue(u);m&&(this.originPoint[u]+=l[u].translate,m.set(m.get()+l[u].translate))}),this.visualElement.render())});return()=>{r(),n(),a(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:r=Zi,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:a,dragElastic:r,dragMomentum:s}}}function lo(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function R_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class V_ extends pt{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new O_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pc=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class W_ extends pt{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new kc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Bc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:o,onPanEnd:i}=this.node.getProps();return{onSessionStart:Pc(t),onStart:Pc(n),onMove:o,onEnd:(a,r)=>{delete this.session,i&&Q.postRender(()=>i(a,r))}}}mount(){this.removePointerDownListener=Tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const uo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ic(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=Ic(e,t.target.x),o=Ic(e,t.target.y);return`${n}% ${o}%`}},H_={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,i=gt.parse(e);if(i.length>5)return o;const a=gt.createTransformer(e),r=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+r]/=s,i[1+r]/=l;const d=te(s,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=d),typeof i[3+r]=="number"&&(i[3+r]/=d),a(i)}};let Fc=!1;class q_ extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o,layoutId:i}=this.props,{projection:a}=t;h1(Y_),a&&(n.group&&n.group.add(a),o&&o.register&&i&&o.register(a),Fc&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),uo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:o,drag:i,isPresent:a}=this.props,{projection:r}=o;return r&&(r.isPresent=a,Fc=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?r.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?r.promote():r.relegate()||Q.postRender(()=>{const s=r.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Mi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),o&&o.deregister&&o.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Oc(e){const[t,n]=Is(),o=_.useContext(zo);return c.jsx(q_,{...e,layoutGroup:o,switchLayoutGroup:_.useContext(Zs),isPresent:t,safeToRemove:n})}const Y_={borderRadius:{...kn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kn,borderTopRightRadius:kn,borderBottomLeftRadius:kn,borderBottomRightRadius:kn,boxShadow:H_};function z_(e,t,n){const o=Be(e)?e:Yt(e);return o.start(Ki("",o,t,n)),o.animation}const G_=(e,t)=>e.depth-t.depth;class U_{constructor(){this.children=[],this.isDirty=!1}add(t){Ko(this.children,t),this.isDirty=!0}remove(t){Xo(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(G_),this.isDirty=!1,this.children.forEach(t)}}function K_(e,t){const n=Me.now(),o=({timestamp:i})=>{const a=i-n;a>=t&&(ft(o),e(a-t))};return Q.setup(o,!0),()=>ft(o)}const Rc=["TopLeft","TopRight","BottomLeft","BottomRight"],X_=Rc.length,Vc=e=>typeof e=="string"?parseFloat(e):e,Wc=e=>typeof e=="number"||V.test(e);function Q_(e,t,n,o,i,a){i?(e.opacity=te(0,n.opacity??1,J_(o)),e.opacityExit=te(t.opacity??1,0,Z_(o))):a&&(e.opacity=te(t.opacity??1,n.opacity??1,o));for(let r=0;r<X_;r++){const s=`border${Rc[r]}Radius`;let l=Hc(t,s),d=Hc(n,s);if(l===void 0&&d===void 0)continue;l||(l=0),d||(d=0),l===0||d===0||Wc(l)===Wc(d)?(e[s]=Math.max(te(Vc(l),Vc(d),o),0),(Ze.test(d)||Ze.test(l))&&(e[s]+="%")):e[s]=d}(t.rotate||n.rotate)&&(e.rotate=te(t.rotate||0,n.rotate||0,o))}function Hc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J_=qc(0,.5,Ir),Z_=qc(.5,.95,Fe);function qc(e,t,n){return o=>o<e?0:o>t?1:n(mn(e,t,o))}function Yc(e,t){e.min=t.min,e.max=t.max}function Re(e,t){Yc(e.x,t.x),Yc(e.y,t.y)}function zc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Gc(e,t,n,o,i){return e-=t,e=co(e,1/n,o),i!==void 0&&(e=co(e,1/i,o)),e}function eg(e,t=0,n=1,o=.5,i,a=e,r=e){if(Ze.test(t)&&(t=parseFloat(t),t=te(r.min,r.max,t/100)-r.min),typeof t!="number")return;let s=te(a.min,a.max,o);e===a&&(s-=t),e.min=Gc(e.min,t,n,s,i),e.max=Gc(e.max,t,n,s,i)}function Uc(e,t,[n,o,i],a,r){eg(e,t[n],t[o],t[i],t.scale,a,r)}const tg=["x","scaleX","originX"],ng=["y","scaleY","originY"];function Kc(e,t,n,o){Uc(e.x,t,tg,n?n.x:void 0,o?o.x:void 0),Uc(e.y,t,ng,n?n.y:void 0,o?o.y:void 0)}function Xc(e){return e.translate===0&&e.scale===1}function Qc(e){return Xc(e.x)&&Xc(e.y)}function Jc(e,t){return e.min===t.min&&e.max===t.max}function og(e,t){return Jc(e.x,t.x)&&Jc(e.y,t.y)}function Zc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function el(e,t){return Zc(e.x,t.x)&&Zc(e.y,t.y)}function tl(e){return ke(e.x)/ke(e.y)}function nl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ig{constructor(){this.members=[]}add(t){Ko(this.members,t),t.scheduleRender()}remove(t){if(Xo(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let o;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){o=a;break}}return o?(this.promote(o),!0):!1}promote(t,n){const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,n&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:o}=t;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ag(e,t,n){let o="";const i=e.x.translate/t.x,a=e.y.translate/t.y,r=(n==null?void 0:n.z)||0;if((i||a||r)&&(o=`translate3d(${i}px, ${a}px, ${r}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:m,rotateY:f,skewX:g,skewY:v}=n;d&&(o=`perspective(${d}px) ${o}`),u&&(o+=`rotate(${u}deg) `),m&&(o+=`rotateX(${m}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),v&&(o+=`skewY(${v}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(o+=`scale(${s}, ${l})`),o||"none"}const ea=["","X","Y","Z"],rg=1e3;let sg=0;function ta(e,t,n,o){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),o&&(o[e]=0))}function ol(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=pc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(i||a))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&ol(o)}function il({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:i}){return class{constructor(r={},s=t==null?void 0:t()){this.id=sg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ug),this.nodes.forEach(fg),this.nodes.forEach(_g),this.nodes.forEach(dg)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new U_)}addEventListener(r,s){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Zo),this.eventHandlers.get(r).add(s)}notifyListeners(r,...s){const l=this.eventHandlers.get(r);l&&l.notify(...s)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Ps(r)&&!Z0(r),this.instance=r;const{layoutId:s,layout:l,visualElement:d}=this.options;if(d&&!d.current&&d.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let u,m=0;const f=()=>this.root.updateBlockedByResize=!1;Q.read(()=>{m=window.innerWidth}),e(r,()=>{const g=window.innerWidth;g!==m&&(m=g,this.root.updateBlockedByResize=!0,u&&u(),u=K_(f,250),uo.hasAnimatedSinceResize&&(uo.hasAnimatedSinceResize=!1,this.nodes.forEach(sl)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&d&&(s||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:m,hasRelativeLayoutChanged:f,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||d.getDefaultTransition()||yg,{onLayoutAnimationStart:p,onLayoutAnimationComplete:y}=d.getProps(),b=!this.targetLayout||!el(this.targetLayout,g),$=!m&&f;if(this.options.layoutRoot||this.resumeFrom||$||m&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Bi(v,"layout"),onPlay:p,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,$)}else m||sl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ft(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gg),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ol(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const m=this.path[u];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(al);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(rl);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mg),this.nodes.forEach(cg),this.nodes.forEach(lg)):this.nodes.forEach(rl),this.clearAllSnapshots();const s=Me.now();Se.delta=at(0,1e3/60,s-Se.timestamp),Se.timestamp=s,Se.isProcessing=!0,ni.update.process(Se),ni.preRender.process(Se),ni.render.process(Se),Se.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hg),this.sharedNodes.forEach(pg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ke(this.snapshot.measuredBox.x)&&!ke(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(s=!1),s&&this.instance){const l=o(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Qc(this.projectionDelta),l=this.getTransformTemplate(),d=l?l(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;r&&this.instance&&(s||kt(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return r&&(l=this.removeTransform(l)),wg(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:r}=this.options;if(!r)return le();const s=r.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(xg))){const{scroll:u}=this.root;u&&(Ut(s.x,u.offset.x),Ut(s.y,u.offset.y))}return s}removeElementScroll(r){var l;const s=le();if(Re(s,r),(l=this.scroll)!=null&&l.wasRoot)return s;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:m,options:f}=u;u!==this.root&&m&&f.layoutScroll&&(m.wasRoot&&Re(s,r),Ut(s.x,m.offset.x),Ut(s.y,m.offset.y))}return s}applyTransform(r,s=!1){const l=le();Re(l,r);for(let d=0;d<this.path.length;d++){const u=this.path[d];!s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Kt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),kt(u.latestValues)&&Kt(l,u.latestValues)}return kt(this.latestValues)&&Kt(l,this.latestValues),l}removeTransform(r){const s=le();Re(s,r);for(let l=0;l<this.path.length;l++){const d=this.path[l];if(!d.instance||!kt(d.latestValues))continue;qi(d.latestValues)&&d.updateSnapshot();const u=le(),m=d.measurePageBox();Re(u,m),Kc(s,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return kt(this.latestValues)&&Kc(s,this.latestValues),s}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Se.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var f;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(f=this.parent)!=null&&f.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:m}=this.options;if(!(!this.layout||!(u||m))){if(this.resolvedRelativeTargetAt=Se.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),An(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=le(),this.targetWithTransforms=le()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Re(this.target,this.layout.layoutBox),ac(this.target,this.targetDelta)):Re(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=le(),this.relativeTargetOrigin=le(),An(this.relativeTargetOrigin,this.target,g.target),Re(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qi(this.parent.latestValues)||nc(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var v;const r=this.getLead(),s=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Se.timestamp&&(l=!1),l)return;const{layout:d,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||u))return;Re(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,f=this.treeScale.y;O1(this.layoutCorrected,this.treeScale,this.path,s),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=le());const{target:g}=r;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zc(this.prevProjectionDelta.x,this.projectionDelta.x),zc(this.prevProjectionDelta.y,this.projectionDelta.y)),Bn(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==f||!nl(this.projectionDelta.x,this.prevProjectionDelta.x)||!nl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xt(),this.projectionDelta=Xt(),this.projectionDeltaWithTransform=Xt()}setAnimationOrigin(r,s=!1){const l=this.snapshot,d=l?l.latestValues:{},u={...this.latestValues},m=Xt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const f=le(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,p=g!==v,y=this.getStack(),b=!y||y.members.length<=1,$=!!(p&&!b&&this.options.crossfade===!0&&!this.path.some(vg));this.animationProgress=0;let S;this.mixTargetDelta=x=>{const w=x/1e3;cl(m.x,r.x,w),cl(m.y,r.y,w),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(An(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bg(this.relativeTarget,this.relativeTargetOrigin,f,w),S&&og(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=le()),Re(S,this.relativeTarget)),p&&(this.animationValues=u,Q_(u,d,this.latestValues,w,$,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){var s,l,d;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(d=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||d.stop(),this.pendingAnimation&&(ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{uo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Yt(0)),this.currentAnimation=z_(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),r.onUpdate&&r.onUpdate(u)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:s,target:l,layout:d,latestValues:u}=r;if(!(!s||!l||!d)){if(this!==r&&this.layout&&d&&ml(this.options.animationType,this.layout.layoutBox,d.layoutBox)){l=this.target||le();const m=ke(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+m;const f=ke(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}Re(s,l),Kt(s,u),Bn(this.projectionDeltaWithTransform,this.layoutCorrected,s,u)}}registerSharedNode(r,s){this.sharedNodes.has(r)||this.sharedNodes.set(r,new ig),this.sharedNodes.get(r).add(s);const d=s.options.initialPromotionConfig;s.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(s):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var s;const{layoutId:r}=this.options;return r?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:r}=this.options;return r?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:s,preserveFollowOpacity:l}={}){const d=this.getStack();d&&d.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let s=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const d={};l.z&&ta("z",r,d,this.animationValues);for(let u=0;u<ea.length;u++)ta(`rotate${ea[u]}`,r,d,this.animationValues),ta(`skew${ea[u]}`,r,d,this.animationValues);r.render();for(const u in d)r.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);r.scheduleRender()}applyProjectionStyles(r,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=so(s==null?void 0:s.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=so(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!kt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=ag(this.projectionDeltaWithTransform,this.treeScale,u);l&&(m=l(u,m)),r.transform=m;const{x:f,y:g}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${g.origin*100}% 0`,d.animationValues?r.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const v in xn){if(u[v]===void 0)continue;const{correct:p,applyTo:y,isCSSVariable:b}=xn[v],$=m==="none"?u[v]:p(u[v],d);if(y){const S=y.length;for(let x=0;x<S;x++)r[y[x]]=$}else b?this.options.visualElement.renderState.vars[v]=$:r[v]=$}this.options.layoutId&&(r.pointerEvents=d===this?so(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var s;return(s=r.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(al),this.root.sharedNodes.clear()}}}function cg(e){e.updateLayout()}function lg(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:i}=e.layout,{animationType:a}=e.options,r=t.source!==e.layout.source;a==="size"?Oe(m=>{const f=r?t.measuredBox[m]:t.layoutBox[m],g=ke(f);f.min=o[m].min,f.max=f.min+g}):ml(a,t.layoutBox,o)&&Oe(m=>{const f=r?t.measuredBox[m]:t.layoutBox[m],g=ke(o[m]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+g)});const s=Xt();Bn(s,o,t.layoutBox);const l=Xt();r?Bn(l,e.applyTransform(i,!0),t.measuredBox):Bn(l,o,t.layoutBox);const d=!Qc(s);let u=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:f,layout:g}=m;if(f&&g){const v=le();An(v,t.layoutBox,f.layoutBox);const p=le();An(p,o,g.layoutBox),el(v,p)||(u=!0),m.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=v,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:o}=e.options;o&&o()}e.options.transition=void 0}function ug(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function dg(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hg(e){e.clearSnapshot()}function al(e){e.clearMeasurements()}function rl(e){e.isLayoutDirty=!1}function mg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fg(e){e.resolveTargetDelta()}function _g(e){e.calcProjection()}function gg(e){e.resetSkewAndRotation()}function pg(e){e.removeLeadSnapshot()}function cl(e,t,n){e.translate=te(t.translate,0,n),e.scale=te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ll(e,t,n,o){e.min=te(t.min,n.min,o),e.max=te(t.max,n.max,o)}function bg(e,t,n,o){ll(e.x,t.x,n.x,o),ll(e.y,t.y,n.y,o)}function vg(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const yg={duration:.45,ease:[.4,0,.1,1]},ul=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),dl=ul("applewebkit/")&&!ul("chrome/")?Math.round:Fe;function hl(e){e.min=dl(e.min),e.max=dl(e.max)}function wg(e){hl(e.x),hl(e.y)}function ml(e,t,n){return e==="position"||e==="preserve-aspect"&&!B_(tl(t),tl(n),.2)}function xg(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const $g=il({attachResizeListener:(e,t)=>Sn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),na={current:void 0},fl=il({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!na.current){const e=new $g({});e.mount(window),e.setOptions({layoutScroll:!0}),na.current=e}return na.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Sg={pan:{Feature:W_},drag:{Feature:V_,ProjectionNode:fl,MeasureLayout:Oc}};function _l(e,t,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=o[i];a&&Q.postRender(()=>a(t,Cn(t)))}class Cg extends pt{mount(){const{current:t}=this.node;t&&(this.unmount=U0(t,(n,o)=>(_l(this.node,o,"Start"),i=>_l(this.node,i,"End"))))}unmount(){}}class Tg extends pt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hn(Sn(this.node.current,"focus",()=>this.onFocus()),Sn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gl(e,t,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=o[i];a&&Q.postRender(()=>a(t,Cn(t)))}class Bg extends pt{mount(){const{current:t}=this.node;t&&(this.unmount=J0(t,(n,o)=>(gl(this.node,o,"Start"),(i,{success:a})=>gl(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const oa=new WeakMap,ia=new WeakMap,Ag=e=>{const t=oa.get(e.target);t&&t(e)},kg=e=>{e.forEach(Ag)};function Mg({root:e,...t}){const n=e||document;ia.has(n)||ia.set(n,{});const o=ia.get(n),i=JSON.stringify(t);return o[i]||(o[i]=new IntersectionObserver(kg,{root:e,...t})),o[i]}function Lg(e,t,n){const o=Mg(t);return oa.set(e,n),o.observe(e),()=>{oa.delete(e),o.unobserve(e)}}const Eg={some:0,all:1};class jg extends pt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:o,amount:i="some",once:a}=t,r={root:n?n.current:void 0,rootMargin:o,threshold:typeof i=="number"?i:Eg[i]},s=l=>{const{isIntersecting:d}=l;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:m}=this.node.getProps(),f=d?u:m;f&&f(l)};return Lg(this.node.current,r,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Dg(t,n))&&this.startObserver()}unmount(){}}function Dg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ng={...w_,...{inView:{Feature:jg},tap:{Feature:Bg},focus:{Feature:Tg},hover:{Feature:Cg}},...Sg,...{layout:{ProjectionNode:fl,MeasureLayout:Oc}}},Mn=P1(Ng,K1),ho=e=>typeof e=="string"?e.length>0:typeof e=="number",Pg={labelled:af,labelless:rf},Le=_.forwardRef(({id:e,name:t,className:n="",indicator:o="neutral",state:i="default",type:a="outline",inputType:r="text",inputElement:s="input",showCharacterCounter:l=!1,isGroup:d=!1,isLeftGroup:u=!1,label:m="",iconLeft:f,iconLeftSecondary:g,iconRight:v,iconStatus:p,iconExtra:y,labelLeft:b="",labelLeftValue:$="",labelRight:S="",isRequired:x=!1,optionalText:w="",maxLength:B=32,message:A="",messages:C=[],placeholder:M="Placeholder",variant:k="labelled",textAlignment:P="left",size:O="md",showStatusIcon:q=!0,value:Y,allowTyping:z=!0,containerRef:E,customContent:L,customInnerContent:F,contentRight:R,onChange:j,onClick:W,onAddonLeftClick:Z,onFocus:re,onBlur:ee,onBeforeChange:se},he)=>{const T=Pg[k],I={neutral:T.checklist1,success:T.checklist2,fail:T.checklist3},U={success:c.jsx(Oo,{}),fail:c.jsx(Ro,{}),neutral:null},me={success:c.jsx(_d,{}),fail:c.jsx(ld,{}),neutral:c.jsx(pd,{})},ge=`quill-atom-textfield-${k}-${o}-${i}-${a}-${O}-${P}-${d?"group":""}`,[ve,He]=_.useState(ho(Y)),[H,ot]=_.useState(Y||""),Te=p||U[o],qe=_.useRef(null),Ne=he||qe;_.useEffect(()=>{ve&&typeof Ne=="object"&&Ne!=null&&Ne.current&&Ne.current.focus()},[ve,Ne]);const Lo=Pe=>{i!=="disabled"&&(He(!0),re==null||re())},Ya=Pe=>{if(!z)return;const ht=Pe.target.value;ht.length<=B&&(ot(ht),j==null||j(ht))},Eo=()=>{ho(H)||(He(!1),ee==null||ee())},Wn=Pe=>{typeof se=="function"&&!(se!=null&&se.isAction)&&(se(Pe.key)||Pe.preventDefault())},Rt={id:e||ge,name:t,className:`${T.input} quill-ui-next-input ${!z&&"quill-ui-next-no-typing"}`,value:H,onChange:Ya,placeholder:M,type:r,onFocus:()=>He(!0),onBlur:Eo,disabled:i==="disabled",readOnly:!z,onKeyDown:Wn,onKeyUp:Wn,onKeyPress:Wn};_.useEffect(()=>{Y!==void 0&&ot(Y)},[Y]);const Ye=ve||ho(H),za=()=>{const Pe=c.jsxs(c.Fragment,{children:[k==="labelled"?c.jsxs("div",{className:`${T.labelmarkerinput} textfield-label-marker`,style:{overflow:Ye?"visible":"hidden"},children:[c.jsxs("div",{className:T.labelMarker,children:[c.jsx("div",{className:`${T.label} quill-ui-next-input-label-transition`,children:m}),(x||w)&&c.jsxs(c.Fragment,{children:[x&&c.jsx("div",{className:T.fieldMarkerRequired,children:c.jsx("div",{className:`${T.label1} quill-ui-next-input-label-transition`,children:"*"})}),w&&!x&&c.jsx("div",{className:T.fieldMarkerOptional,children:c.jsx("div",{className:`${T.label2} quill-ui-next-input-label-transition`,children:w})})]})]}),c.jsx(no,{initial:!1,children:s==="input"?c.jsx(Mn.input,{...Rt,ref:Ne,initial:!1,animate:{y:Ye?0:"100%",opacity:Ye?1:0,scale:Ye?1:.95},transition:{duration:.2,ease:"easeOut"},style:{originY:0,position:"relative",display:"block",width:"100%",pointerEvents:Ye?"auto":"none",marginTop:Ye?"":"-25px",transition:"margin-top 0.2s ease-out",marginLeft:"-2px"}}):c.jsx(Mn.textarea,{...Rt,ref:Ne,initial:!1,animate:{y:Ye?0:"100%",opacity:Ye?1:0,scale:Ye?1:.95},transition:{duration:.2,ease:"easeOut"},style:{originY:0,position:"relative",display:"block",width:"100%",pointerEvents:Ye?"auto":"none",transition:"margin-top 0.2s ease-out",marginLeft:"-2px"}})})]}):s==="input"?c.jsx("input",{ref:Ne,...Rt}):c.jsx("textarea",{ref:Ne,...Rt}),!d&&c.jsx("div",{className:T.labelRight,children:S}),y&&c.jsx("div",{className:[T.iconLeft,"textfield-icon"].join(" "),children:y}),q&&Te&&!y&&c.jsx("div",{className:[T.iconLeft,"textfield-status-icon"].join(" "),children:Te}),v&&c.jsx("div",{className:[T.iconLeft,"textfield-icon"].join(" "),children:v}),R&&R]});return d?c.jsx("div",{className:T.labelinputicon,children:Pe}):Pe};return c.jsxs("div",{className:[T.root,n,"quill-ui-next-atom","quill-ui-next-atom-textfield","quill-ui-next-no-select"].join(" "),"data-indicator":o,"data-is-typed":ve,"data-state":i,"data-type":a,"data-id":ge,"data-variant":k,"data-text-alignment":P,"data-size":O,"data-group":d?"true":"false","data-input-element":s,onClick:W,children:[c.jsxs("div",{ref:E,className:[T.field,"quill-ui-next-no-focus","quill-ui-next-textfield-field"].join(" "),onFocus:Lo,onBlur:()=>i!=="disabled"&&Eo(),tabIndex:0,children:[c.jsxs("div",{className:`${T.field} quill-ui-next-textfield-content`,children:[!d&&!u&&c.jsxs(c.Fragment,{children:[f&&c.jsx("div",{className:[T.iconLeft,"textfield-icon"].join(" "),children:f}),c.jsx("div",{className:T.labelLeft,children:b})]}),d&&c.jsx("div",{className:T.addonLeft,children:c.jsx("div",{className:T.labelLeft,children:b})}),u&&c.jsxs("div",{className:"left-group-addon",onClick:Z,children:[c.jsx("div",{className:[T.iconLeft,"textfield-icon"].join(" "),children:f}),c.jsxs("div",{className:"left-group-addon-content",children:[c.jsx("div",{className:"left-group-addon-content-label",children:b}),c.jsx("div",{className:"left-group-addon-content-value",children:$})]}),g&&c.jsx("div",{className:[T.iconLeft,"textfield-icon"].join(" "),children:g})]}),za(),d&&c.jsx("div",{className:T.addonRight,children:c.jsx("div",{className:T.labelRight,children:S})})]}),F&&F]}),c.jsx("div",{className:T.message+" quill-ui-next-hidden"}),(A||l)&&c.jsxs("div",{className:T.messageCharacterCounter,children:[A&&c.jsx("div",{className:T.message,children:A}),l&&c.jsxs("div",{className:T.characterCounter,children:[typeof H=="string"?H.length:H==null?void 0:H.toString().length,"/",B]})]}),C&&c.jsx("div",{className:T.passwordStrength,children:C.map(({icon:Pe,type:ht,text:Ga},Hn)=>{const jo=I[ht];return c.jsxs("div",{className:`${jo} textfield-message-${ht}`,children:[Pe||me[ht],c.jsx("div",{className:T.message1,children:Ga})]},Hn)})}),L&&L]})}),pl=e=>{const[t,n]=_.useState(e.value);return c.jsx(Le,{labelLeft:e.label,placeholder:"Search",...e,iconLeft:c.jsx(Vd,{}),iconRight:ho(t)&&c.jsx(jd,{className:"quill-ui-next-pointer",onClick:()=>{var o;n(""),(o=e.onChange)==null||o.call(e,"")}}),onChange:o=>{var i;n(o),(i=e.onChange)==null||i.call(e,o)},variant:"labelless",value:t,showStatusIcon:!1})},bl={mobile:480,tablet:768},Lt=()=>{const[e,t]=_.useState("desktop"),[n,o]=_.useState(!1);return _.useEffect(()=>{const i=()=>{const a=window.innerWidth;a<bl.mobile?t("mobile"):a<bl.tablet?t("tablet"):t("desktop")};return i(),o(!0),window.addEventListener("resize",i),()=>window.removeEventListener("resize",i)},[]),{device:e,isMobile:e==="mobile",isTablet:e==="tablet",isDesktop:e==="desktop",isDeviceDetected:n}},aa=e=>{_.useEffect(()=>{const t=window.getComputedStyle(document.body).overflow;return e&&(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%",document.body.style.top=`-${window.scrollY}px`),()=>{if(e){const n=document.body.style.top;document.body.style.overflow=t,document.body.style.position="",document.body.style.width="",document.body.style.top="",window.scrollTo(0,parseInt(n||"0",10)*-1)}}},[e])},Ig=e=>e==="side"?of:nf,mo=({className:e="",type:t="auto",description:n="Description",title:o="Title",showButtonClose:i=!0,controller:a,content:r,showHandleBar:s=!0,showHeader:l=!0,showSearchBar:d=!0,buttonPrimary:u,buttonSecondary:m,onClose:f,onSearch:g,searchValue:v,searchPlaceholder:p="Search",buttonIcon:y,show:b=!0})=>{const{isDesktop:$,isDeviceDetected:S}=Lt(),[x,w]=_.useState(t),[B,A]=_.useState(v||""),C=Ig(x);if(_.useEffect(()=>{v!==void 0&&A(v)},[v]),_.useEffect(()=>{S&&(t==="auto"?w($?"side":"bottom"):t!==x&&w(t))},[$,S,t]),aa(b),!b)return null;const M=c.jsxs(Mn.div,{className:[x==="bottom"?C.typehugContent:C.actionSheetSideSheet,e,x==="side"?"quill-ui-next-actionsheet-full-height":"",x==="bottom"?"quill-ui-next-actionsheet-full-width":""].join(" "),"data-type":x,...x==="bottom"?{initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{type:"spring",damping:30,stiffness:1e3,mass:.1,duration:.3},drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.5},onDragEnd:(P,O)=>{O.offset.y>150&&f&&f()}}:{},children:[s&&x==="bottom"&&c.jsx("div",{className:C.containerHandleBar,children:c.jsx("div",{className:C.handleBar})}),l&&c.jsxs("div",{className:C.containerHeader,children:[x==="side"&&c.jsxs("div",{className:C.iconTitleCancel,children:[c.jsx("div",{className:C.containerButtonIcon,children:y&&c.jsx($e,{...y,onClick:f,color:"blackWhite",size:"lg",style:"tertiary"})}),c.jsx("div",{className:C.title,children:o}),c.jsx("div",{className:C.containerButtonClose,children:i&&c.jsx($e,{icon:c.jsx(Wo,{}),onClick:f,color:"blackWhite",size:"lg",style:"tertiary"})})]}),x==="bottom"&&c.jsxs("div",{className:C.titleIcon,children:[c.jsx("div",{className:C.spacer}),c.jsx("div",{className:C.title,children:o}),c.jsx("div",{className:C.containerButtonIcon,children:y&&c.jsx($e,{...y,onClick:f,color:"blackWhite",size:"lg",style:"tertiary"})})]}),n&&c.jsx("div",{className:C.containerDescription,children:c.jsx("div",{className:C.description,children:n})})]}),d&&c.jsx("div",{className:C.containerSearchBar,children:c.jsx("div",{className:C.searchBar,children:c.jsx(pl,{placeholder:p,value:B,onChange:P=>{A(P.toString()),g==null||g(P.toString())},className:"quill-ui-next-actionsheet-input",size:"sm"})})}),a&&c.jsx("div",{className:C.containerController,children:c.jsx("div",{className:`${C.controller} quill-ui-next-actionsheet-content`,children:a})}),r&&c.jsx("div",{className:`${C.containerContent} quill-ui-next-actionsheet-content-container`,children:c.jsx("div",{className:`${C.content} quill-ui-next-actionsheet-content`,children:r})}),(u||m)&&c.jsxs("div",{className:C.actionButtons,children:[u&&c.jsx(ye,{...u,style:"primary",width:"fill container",color:"blackWhite"}),m&&c.jsx(ye,{...m,style:"secondary",width:"fill container",color:"blackWhite"})]})]}),k=P=>{P.target===P.currentTarget&&(f==null||f())};return mt.createPortal(c.jsx(no,{mode:"wait",children:c.jsx("div",{className:`quill-ui-next-overlay type-${x}`,onClick:k,children:M})}),document.body)};mo.displayName="ActionSheet";const Ve={bgFocus:"AccordionDefault-module__bgFocus___CH5fS",icon1:"AccordionDefault-module__icon1___Sf3Lq",placeholderIcon:"AccordionDefault-module__placeholderIcon___HBj-M",subtitle:"AccordionDefault-module__subtitle___7acOr",title:"AccordionDefault-module__title___joEN-",titleSubtitle:"AccordionDefault-module__titleSubtitle___vSZAX",icon2:"AccordionDefault-module__icon2___cvNsk",iconChevron:"AccordionDefault-module__iconChevron___JfUYJ",header:"AccordionDefault-module__header___XcBsT",body:"AccordionDefault-module__body___tUszG",bodyContent:"AccordionDefault-module__bodyContent___q14U9",root:"AccordionDefault-module__root___PE7gt"},Fg=({className:e="",expand:t="off",size:n="xs",state:o="default",type:i="outline",title:a="Title",subtitle:r,customIcon:s,showFocusRing:l=!1,children:d})=>{const[u,m]=_.useState(t==="on"),[f,g]=_.useState(l),v=`quill-accordion-${n}-${i}-${o}`,p=o!=="disabled",y=()=>{p&&m(!u)},{handleFocus:b,handleBlur:$}=Ae({isDisabled:!p,setHighlight:g,onEnter:()=>y()});return _.useEffect(()=>{m(t==="on")},[t]),c.jsxs("div",{className:[Ve.root,e].join(" "),"data-expand":u?"on":"off","data-size":n,"data-state":o,"data-type":i,"data-id":v,children:[c.jsxs("div",{className:[Ve.header,p?"quill-ui-next-pointer":"","quill-ui-next-component"].join(" "),onClick:y,role:p?"button":void 0,tabIndex:p?0:void 0,onFocus:b,onBlur:$,children:[f&&c.jsx("div",{className:Ve.bgFocus}),s&&c.jsx("div",{className:Ve.placeholderIcon,children:c.jsx("div",{className:`${Ve.icon1} accordion-icon`,children:s})}),c.jsxs("div",{className:Ve.titleSubtitle,children:[c.jsx("b",{className:Ve.title,children:a}),r&&c.jsx("div",{className:Ve.subtitle,children:r})]}),c.jsx("div",{className:Ve.iconChevron,children:c.jsx("div",{className:`${Ve.icon2} accordion-icon`,children:c.jsx(jh,{className:`quill-ui-next-rotatable ${u&&"quill-ui-next-rotate"}`})})})]}),d&&c.jsx("div",{className:Ve.body,children:c.jsx("div",{className:`${Ve.bodyContent} quill-ui-next-accordion-content`,children:d})})]})},Og={root:"BaseTypography-module__root___39iD3"},Et=({className:e="",children:t,type:n,size:o="md",bold:i=!1,level:a=1,as:r})=>{const l=r||(n==="heading"?a==="mega"?"h1":`h${a}`:n==="caption"?"caption":n==="code"?"code":"span"),d=`quill-typography-${n}-${n==="body"||n==="code"?o:a}`;return c.jsx(l,{className:[Og.root,e,"quill-ui-next-component"].join(" "),"data-id":d,"data-type":n,"data-size":n==="body"||n==="code"?o:void 0,"data-level":n==="heading"?a:void 0,"data-bold":i,children:t})},Rg=e=>c.jsx(Et,{...e,type:"heading",level:"mega"}),Vg=e=>c.jsx(Et,{...e,type:"heading",level:1}),Wg=e=>c.jsx(Et,{...e,type:"heading",level:2}),Hg=e=>c.jsx(Et,{...e,type:"heading",level:3}),qg=e=>c.jsx(Et,{...e,type:"heading",level:4}),Yg=e=>c.jsx(Et,{...e,type:"heading",level:5}),zg=e=>c.jsx(Et,{...e,type:"heading",level:6}),jt={iconCheckbox:"SelectionControl-module__iconCheckbox___E2h-n",bgFocus:"SelectionControl-module__bgFocus___KYPMf",iconBgFocus:"SelectionControl-module__iconBgFocus___Eue-T",label:"SelectionControl-module__label___4tAY6",iconInfo:"SelectionControl-module__iconInfo___fAWRe",label1:"SelectionControl-module__label1___cddP1",root:"SelectionControl-module__root___7IlVf"},Gg={unchecked:dm,checked:mm,indeterminate:_m},Ug={unchecked:vm,checked:pm},Kg={sm:Vo,md:Oh},Xg=({className:e="",size:t="sm",state:n="default",indicator:o="unchecked",label:i="label",showInfoIcon:a=!0,type:r="checkbox",onChange:s})=>{const[l,d]=_.useState(!1),[u,m]=_.useState(o),f=`quill-selection-control-checkbox-${n}-${t}-${o}`;_.useEffect(()=>{m(o),s==null||s(o)},[o,s]);const g=()=>{if(n==="disabled")return;const x=u==="unchecked"?"checked":"unchecked";m(x),s==null||s(x)},v=Gg[u],p=Ug[u],y=r==="checkbox"?v:p,b=Kg[t],{handleFocus:$,handleBlur:S}=Ae({isDisabled:n==="disabled",setHighlight:d,onEnter:()=>{g()}});return c.jsxs("div",{className:[jt.root,e,"quill-ui-next-component","quill-ui-next-no-select",`${n!="disabled"?"quill-ui-next-pointer":""}`].join(" "),"data-id":f,"data-indicator":u,"data-size":t,"data-type":r,"data-state":n,onClick:g,onFocus:$,onBlur:S,role:"checkbox","aria-checked":u==="checked",tabIndex:n==="disabled"?-1:0,children:[c.jsxs("div",{className:jt.iconBgFocus,children:[c.jsx("div",{className:jt.iconCheckbox,children:y&&c.jsx(y,{iconSize:"sm"})}),l&&c.jsx("div",{className:jt.bgFocus})]}),c.jsxs("div",{className:jt.label1,children:[c.jsx("div",{className:jt.label,children:i}),a&&c.jsx("div",{className:jt.iconInfo,children:c.jsx(b,{})})]})]})},ra={root:"ToggleSwitch-module__root___6lgVD",knob:"ToggleSwitch-module__knob___CW8jF",bgFocus:"ToggleSwitch-module__bgFocus___mb3FI"},Qg=()=>{const e=()=>{try{const a=localStorage.getItem("theme");return a||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")}catch(a){return console.warn("Failed to get initial theme:",a),"light"}},[t,n]=_.useState(e),o=a=>{try{const r=window.document.documentElement;r.classList.remove("light","dark"),r.classList.add(a),localStorage.setItem("theme",a),n(a)}catch(r){console.warn("Failed to update theme:",r),n(a)}};return _.useEffect(()=>{o(t)},[]),{theme:t,setTheme:o,toggleTheme:()=>{o(t==="light"?"dark":"light")},isDarkMode:t==="dark"}},Dt=(e,t,n)=>{_.useEffect(()=>{const o=i=>{var l,d;const a=i.target,r=((d=(l=a==null?void 0:a.className)==null?void 0:l.includes)==null?void 0:d.call(l,"quill-ui-next-overlay"))??!1,s=(a==null?void 0:a.closest(".quill-ui-next-overlay"))!==null;e.current&&!e.current.contains(a)&&!r&&!s&&!(n!=null&&n.some(u=>{var m,f;return!!((f=(m=a==null?void 0:a.className)==null?void 0:m.includes)!=null&&f.call(m,u)||typeof(a==null?void 0:a.closest)=="function"&&a.closest(`[class*="${u}"]`))}))&&t()};return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}},[e,t])},vl=({threshold:e=40,initialState:t=!1}={})=>{const[n,o]=_.useState(t),i=_.useRef(0),a=_.useRef(0),r=_.useRef(!1),s=_.useCallback(()=>{o(!1)},[]),l=_.useCallback(b=>{o(b)},[]),d=_.useCallback(b=>{if(!r.current)return;const $=i.current-b;$>e&&!n?o(!0):$<-e&&n&&o(!1),r.current=!1},[e,n]),u=_.useCallback(b=>{i.current=b.touches[0].clientX,a.current=b.touches[0].clientX,r.current=!0},[]),m=_.useCallback(b=>{r.current&&(a.current=b.touches[0].clientX)},[]),f=_.useCallback(b=>{const $=b.changedTouches.length>0?b.changedTouches[0].clientX:a.current;d($)},[d]),g=_.useCallback(b=>{b.preventDefault(),i.current=b.clientX,a.current=b.clientX,r.current=!0},[]),v=_.useCallback(b=>{r.current&&(a.current=b.clientX,b.preventDefault())},[]),p=_.useCallback(b=>{d(a.current||b.clientX)},[d]);return{isSwiped:n,resetSwipe:s,setIsSwiped:l,swipeHandlers:{onTouchStart:u,onTouchMove:m,onTouchEnd:f,onMouseDown:g,onMouseMove:v,onMouseUp:p,onMouseLeave:p}}},yl=()=>({isInsideActionSheet:_.useCallback(t=>t?!!t.closest(".quill-ui-next-actionsheet-full-width"):!1,[])}),fo=e=>({isPortalClick:n=>{var o;return!((o=e.current)!=null&&o.contains(n.target))}}),wl=({isEnabled:e,onClose:t,threshold:n=150})=>{const[o,i]=_.useState(0),a=_.useRef(0);return _.useEffect(()=>{i(0)},[e]),{dragHandlers:{onTouchStart:d=>{e&&(a.current=d.touches[0].clientY)},onTouchMove:d=>{if(!e)return;const u=d.touches[0].clientY,m=Math.max(0,u-a.current);i(m)},onTouchEnd:()=>{e&&(o>n&&(t==null||t()),i(0))}},dragStyles:{transform:o>0?`translateY(${o}px)`:void 0,transition:o>0?"none":"transform 0.3s ease"}}},xl=e=>_.useCallback(n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),e())},[e]),Jg=({className:e="",selected:t="off",state:n="default",onChange:o})=>{const[i,a]=_.useState(t),[r,s]=_.useState(!1),l=()=>{n!=="disabled"&&(a(i==="off"?"on":"off"),o==null||o(i))},{handleFocus:d,handleBlur:u}=Ae({isDisabled:n==="disabled",setHighlight:s,onEnter:l});return _.useEffect(()=>{a(t)},[t]),c.jsxs("div",{className:[ra.root,e,"quill-ui-next-component"].join(" "),"data-selected":i,"data-state":n,onClick:l,onFocus:d,onBlur:u,tabIndex:n!=="disabled"?0:-1,children:[c.jsx("div",{className:ra.knob}),r&&c.jsx("div",{className:ra.bgFocus})]})},sa={containerIcon:"NotificationStatusIcon-module__containerIcon___k2z0s",badgeContainer:"NotificationStatusIcon-module__badgeContainer___bI5p0",root:"NotificationStatusIcon-module__root___wjTvW"},_o=({className:e="",type:t="informative",showBadge:n=!0,style:o})=>{const i=`notification-status-icon-${t}`,a={informative:c.jsx(dr,{}),success:c.jsx(Oo,{}),warning:c.jsx(Ro,{}),danger:c.jsx(ur,{})};return c.jsxs("div",{className:[sa.root,e].join(" "),"data-id":i,"data-type":t,style:o,children:[c.jsx("div",{className:`${sa.containerIcon} notification-icon`,children:a[t]}),n&&c.jsx("div",{className:sa.badgeContainer,children:c.jsx(Nt,{size:"sm",showLabel:!1})})]})},Zg={containerStatusbadge:"NotificationDesktopItem-module__containerStatusbadge___G4w75",message:"NotificationDesktopItem-module__message___0D7LI",title:"NotificationDesktopItem-module__title___EemMz",titleDescription:"NotificationDesktopItem-module__titleDescription___5TGji",date:"NotificationDesktopItem-module__date___0Slb-",time:"NotificationDesktopItem-module__time___qGK6T",timeFormat:"NotificationDesktopItem-module__timeFormat___EYvZD",timeTimeFormat:"NotificationDesktopItem-module__timeTimeFormat___eC7qc",dateTime:"NotificationDesktopItem-module__dateTime___AJBwv",details:"NotificationDesktopItem-module__details___dnJlx",icon2:"NotificationDesktopItem-module__icon2___nm4OH",bgFocus:"NotificationDesktopItem-module__bgFocus___-KzaI",buttonMarkAsRead:"NotificationDesktopItem-module__buttonMarkAsRead___TWVcD",icon4:"NotificationDesktopItem-module__icon4___vFTZs",bgFocus1:"NotificationDesktopItem-module__bgFocus1___yubx0",buttonDelete:"NotificationDesktopItem-module__buttonDelete___wcMy5",containerActionButtons:"NotificationDesktopItem-module__containerActionButtons___JTiBY",detailsActionButtons:"NotificationDesktopItem-module__detailsActionButtons___AJiI-",divider:"NotificationDesktopItem-module__divider___0ool1",bgFocus2:"NotificationDesktopItem-module__bgFocus2___iQIVw",root:"NotificationDesktopItem-module__root___PW8Lf"},e2={containerStatusbadge:"NotificationMobileItem-module__containerStatusbadge___1KyWk",message:"NotificationMobileItem-module__message___KepZM",title:"NotificationMobileItem-module__title___cKMAB",titleDescription:"NotificationMobileItem-module__titleDescription___-ipq-",date:"NotificationMobileItem-module__date___HKE7y",time:"NotificationMobileItem-module__time___lRGCy",timeFormat:"NotificationMobileItem-module__timeFormat___JC-xU",timeTimeFormat:"NotificationMobileItem-module__timeTimeFormat___XzBVa",dateTime:"NotificationMobileItem-module__dateTime___PFInN",details:"NotificationMobileItem-module__details___4FQEp",item:"NotificationMobileItem-module__item___XsaZo",icon2:"NotificationMobileItem-module__icon2___D7hPH",buttonMarkAsRead:"NotificationMobileItem-module__buttonMarkAsRead___qAU0L",icon4:"NotificationMobileItem-module__icon4___bCnvk",buttonDelete:"NotificationMobileItem-module__buttonDelete___SUYAE",divider:"NotificationMobileItem-module__divider___hIx1j",root:"NotificationMobileItem-module__root___XqsjU"},t2=({className:e="",variant:t="auto",state:n="default",date:o="1 Jan 2023",time:i="00:00",title:a="Title",message:r="Message goes here",timeFormat:s="UTC",showDivider:l=!1,showFocusRing:d=!1,type:u="informative",onMarkAsRead:m,onDelete:f})=>{const{isMobile:g}=Lt(),v=t==="auto"?g?"mobile":"desktop":t,p=v==="desktop"?Zg:e2,y=`notification-${v}-item-${u}`,{isSwiped:b,resetSwipe:$,swipeHandlers:S}=vl({initialState:n==="swipe",threshold:30}),x=b?"swipe":"default",[w,B]=_.useState(!1),[A,C]=_.useState(d),{handleFocus:M,handleBlur:k}=Ae({isDisabled:!1,setHighlight:C});_.useEffect(()=>{n==="default"&&B(!1)},[n]);const P=(q=!1)=>{B(!0),m&&(q||x!=="swipe")&&m(),q&&v==="mobile"&&$()},O=()=>{P(!1)};return v==="desktop"?c.jsxs("div",{className:[p.root,e,"quill-ui-next-pointer","quill-ui-next-component"].join(" "),"data-state":n,"data-id":y,onClick:O,onFocus:M,onBlur:k,tabIndex:0,children:[c.jsx("div",{className:p.containerStatusbadge,children:c.jsx(_o,{type:u,showBadge:!w})}),c.jsxs("div",{className:p.detailsActionButtons,children:[c.jsxs("div",{className:p.details,children:[c.jsxs("div",{className:p.titleDescription,children:[c.jsx("b",{className:p.title,children:a}),c.jsx("div",{className:p.message,children:r})]}),c.jsxs("div",{className:p.dateTime,children:[c.jsx("div",{className:p.date,children:o}),c.jsxs("div",{className:p.timeTimeFormat,children:[c.jsx("div",{className:p.time,children:i}),c.jsx("div",{className:p.timeFormat,children:s})]})]})]}),c.jsxs("div",{className:p.containerActionButtons,children:[c.jsxs("div",{className:p.buttonMarkAsRead,onClick:()=>P(!0),role:m?"button":void 0,tabIndex:m?0:void 0,children:[c.jsx("div",{className:`${p.icon2} action-button-icon`,children:c.jsx(hr,{})}),c.jsx("div",{className:p.bgFocus})]}),c.jsxs("div",{className:p.buttonDelete,onClick:()=>f==null?void 0:f(),role:f?"button":void 0,tabIndex:f?0:void 0,children:[c.jsx("div",{className:`${p.icon4} action-button-icon`,children:c.jsx(sr,{})}),c.jsx("div",{className:p.bgFocus1})]})]})]}),l&&c.jsx("div",{className:p.divider}),A&&c.jsx("div",{className:p.bgFocus2})]}):c.jsxs("div",{className:[p.root,e,"quill-ui-next-pointer"].join(" "),"data-state":x,"data-id":y,...S,children:[c.jsxs("div",{className:p.item,onClick:O,children:[c.jsx("div",{className:p.containerStatusbadge,children:c.jsx(_o,{type:u,showBadge:!w})}),c.jsxs("div",{className:p.details,children:[c.jsxs("div",{className:p.titleDescription,children:[c.jsx("b",{className:p.title,children:a}),c.jsx("div",{className:p.message,children:r})]}),c.jsxs("div",{className:p.dateTime,children:[c.jsx("div",{className:p.date,children:o}),c.jsxs("div",{className:p.timeTimeFormat,children:[c.jsx("div",{className:p.time,children:i}),c.jsx("div",{className:p.timeFormat,children:s})]})]})]})]}),c.jsx("div",{className:`${p.buttonMarkAsRead} quill-ui-next-pointer`,onClick:()=>{x==="swipe"&&P(!0)},role:m&&x==="swipe"?"button":void 0,tabIndex:m&&x==="swipe"?0:void 0,children:c.jsx("div",{className:"action-button-icon",children:c.jsx(hr,{})})}),c.jsx("div",{className:`${p.buttonDelete} quill-ui-next-pointer`,onClick:()=>{x==="swipe"&&f&&(f(),$())},role:f&&x==="swipe"?"button":void 0,tabIndex:f&&x==="swipe"?0:void 0,children:c.jsx("div",{className:"action-button-icon",children:c.jsx(sr,{})})}),l&&c.jsx("div",{className:p.divider})]})},st={containerStatusIcon:"NotificationBanner-module__containerStatusIcon___h-hMo",message:"NotificationBanner-module__message___UOrLa",title:"NotificationBanner-module__title___FBBOz",titleDescription:"NotificationBanner-module__titleDescription___t2aVG",iconCustom:"NotificationBanner-module__iconCustom___oJhhG",bgFocus:"NotificationBanner-module__bgFocus___eGwp1",iconColorReference:"NotificationBanner-module__iconColorReference___1spvX",buttonClose:"NotificationBanner-module__buttonClose___2Vxl6",notificationBanner:"NotificationBanner-module__notificationBanner___CnwLV"},n2=({className:e="",title:t="Title",message:n="Message goes here",showButtonClose:o=!0,type:i="informative",onClose:a})=>{const r=`notification-banner-${i}`;return c.jsxs("div",{className:[st.notificationBanner,e].join(" "),"data-id":r,children:[c.jsx("div",{className:st.containerStatusIcon,children:c.jsx(_o,{type:i,showBadge:!1})}),c.jsxs("div",{className:st.titleDescription,children:[c.jsx("b",{className:st.title,children:t}),c.jsx("div",{className:st.message,children:n})]}),o&&c.jsxs("div",{className:st.buttonClose,children:[c.jsx("div",{className:`${st.iconCustom} notification-close-icon quill-ui-next-pointer`,onClick:a,role:a?"button":void 0,tabIndex:a?0:void 0,children:c.jsx(rr,{})}),c.jsx("div",{className:st.bgFocus}),c.jsx("div",{className:st.iconColorReference,children:"Label"})]})]})},ct={root:"NavigationSideBar-module__root___PlBlv",menuContainer:"NavigationSideBar-module__menuContainer___oirxW",menuGroupContainer:"NavigationSideBar-module__menuGroupContainer___Gf0X3",bottomContainer:"NavigationSideBar-module__bottomContainer___oZGEc",bottomContainerExpanded:"NavigationSideBar-module__bottomContainerExpanded___ET-MF",divider:"NavigationSideBar-module__divider___aQGxh"},bt={root:"MenuSideBar-module__root___M1iXT",iconContainer:"MenuSideBar-module__iconContainer___AmhUm",badgeNotification:"MenuSideBar-module__badgeNotification___8LnKN",label:"MenuSideBar-module__label___mks-z",badgeContainer:"MenuSideBar-module__badgeContainer___cCxzr",badgeContainerCompress:"MenuSideBar-module__badgeContainerCompress___EPnV3",bgFocus:"MenuSideBar-module__bgFocus___uDeeq"},o2={notification:{label:"BadgeNotification-module__label___zjPEA",root:"BadgeNotification-module__root___23-PF"}},i2=({className:e="",size:t="sm",label:n="1",showLabel:o=!0,style:i="notification"})=>{const a=o2[i],r=()=>{const s=Number(n);return!isNaN(s)&&s>99?"99+":n};return c.jsx("div",{className:[a.root,e,"quill-ui-next-component"].join(" "),"data-size":t,"data-empty-badge":!o,children:o&&c.jsx("b",{className:a.label,children:r()})})},Nt=({className:e="",size:t="sm",label:n="1",showLabel:o=!0})=>c.jsx(i2,{className:e,size:t,label:n,showLabel:o,style:"notification"});Nt.displayName="BadgeNotification";const $l=({className:e="",icon:t,iconSelected:n,isSelected:o=!1,label:i="",badgeLabel:a="",direction:r="column",expanded:s=!0,onClick:l})=>{const[d,u]=_.useState(!0),[m,f]=_.useState(!1),[g,v]=_.useState(o),{handleFocus:p,handleBlur:y}=Ae({isDisabled:!1,setHighlight:f,onEnter:()=>{b()}}),b=()=>{v(!0),u(!1),l==null||l()};return _.useEffect(()=>{a&&a!==""&&u(!0)},[a]),_.useEffect(()=>{v(o)},[o]),c.jsxs("div",{className:[bt.root,e,"quill-ui-next-atom quill-ui-next-pointer","quill-ui-next-no-select"].join(" "),"data-is-selected":g?"yes":"no","data-direction":r,tabIndex:0,onFocus:p,onBlur:y,onClick:b,children:[c.jsxs("div",{className:bt.iconContainer,children:[r==="column"&&c.jsxs(c.Fragment,{children:[m&&c.jsx("div",{className:bt.bgFocus}),d&&a!==""&&c.jsx("div",{className:bt.badgeNotification,children:c.jsx(Nt,{size:"sm",label:a})})]}),g&&n||t]}),i&&c.jsx("div",{className:bt.label,children:i}),r==="row"&&c.jsxs(c.Fragment,{children:[m&&c.jsx("div",{className:bt.bgFocus}),d&&a!==""&&c.jsx("div",{className:`${bt.badgeContainer} ${!s&&bt.badgeContainerCompress}`,children:c.jsx(Nt,{size:"sm",label:a})})]})]})},Sl=({className:e="",onChange:t,items:n=[],stickyItems:o=[],type:i="expandable",selected:a,expanded:r=!0})=>{const[s,l]=_.useState(a),[d,u]=_.useState(r),[m,f]=_.useState(!1),g=()=>{const p=d?500:0;u(y=>!y),setTimeout(()=>{f(y=>!y)},p)},v=p=>{l(p),t==null||t(p)};return _.useEffect(()=>{l(a)},[a]),c.jsxs("div",{className:[ct.root,"quill-ui-next-component","quill-ui-next-no-select",e].join(" "),"data-type":i,"data-is-expanded":d?"yes":"no",children:[c.jsx("div",{className:ct.menuContainer,children:n.map((p,y)=>c.jsxs(c.Fragment,{children:[c.jsx("div",{className:ct.menuGroupContainer,children:p.map((b,$)=>c.jsx($l,{label:m&&i==="expandable"?"":b==null?void 0:b.label,icon:b==null?void 0:b.icon,iconSelected:b==null?void 0:b.iconSelected,onClick:()=>v(b),isSelected:s===b,badgeLabel:b==null?void 0:b.badgeLabel,direction:i==="expandable"?"row":"column",expanded:i==="expandable"&&!m},`${b.label??""}-${$}`))}),y!==n.length-1&&c.jsx("div",{className:ct.divider})]}))}),i==="fixed"&&o.length>0&&c.jsxs("div",{className:[ct.stickyContainer,ct.menuGroupContainer].join(" "),children:[c.jsx("div",{className:ct.divider}),o.map((p,y)=>c.jsx($l,{...p},`${p.label??""}-${y}`))]}),i==="expandable"&&c.jsx("div",{className:`${ct.bottomContainer} ${!m&&ct.bottomContainerExpanded}`,children:c.jsx($e,{icon:d?c.jsx(un,{}):c.jsx(ln,{}),color:"blackWhite",style:"tertiary",onClick:g})})]})};Sl.displayName="NavigationSideBar";const a2={typeiconOnly:"NavigationBottomBar-module__typeiconOnly___48nzQ"},Ln={icon1:"MenuBottomBarAtom-module__icon1___79Ym-",label:"MenuBottomBarAtom-module__label___vw5Kd",bgFocus:"MenuBottomBarAtom-module__bgFocus___XH4Qk",badgeNotification:"MenuBottomBarAtom-module__badgeNotification___fvvDq",root:"MenuBottomBarAtom-module__root___LDiRf"},r2=({className:e="",state:t="default",icon:n,iconSelected:o,label:i="",badgeLabel:a="",onClick:r})=>{const[s,l]=_.useState(!1),[d,u]=_.useState(t),[m,f]=_.useState(!0),{handleFocus:g,handleBlur:v}=Ae({isDisabled:!1,setHighlight:l,onEnter:()=>{p()}}),p=()=>{f(!1),u("selected"),r==null||r()};return _.useEffect(()=>{u(t)},[t]),_.useEffect(()=>{a&&a!==""&&f(!0)},[a]),c.jsxs("div",{className:[Ln.root,e,"quill-ui-next-atom quill-ui-next-pointer"].join(" "),"data-state":d,"data-label":i!==""?"yes":"no",tabIndex:0,onFocus:g,onBlur:v,onClick:p,children:[c.jsx("div",{className:Ln.icon1,children:d==="selected"&&o||n}),c.jsx("div",{className:Ln.label,children:i}),m&&a!==""&&c.jsx("div",{className:Ln.badgeNotification,children:c.jsx(Nt,{size:"sm",label:a})}),s&&c.jsx("div",{className:Ln.bgFocus})]})},Cl=({className:e="",onChange:t,items:n=[]})=>{const[o,i]=_.useState(n[0]),a=r=>{i(r),t==null||t(r)};return c.jsx("div",{className:[a2.typeiconOnly,"quill-ui-next-component","quill-ui-next-no-select",e].join(" "),children:n.map(r=>c.jsx(r2,{label:r==null?void 0:r.label,icon:r==null?void 0:r.icon,iconSelected:r==null?void 0:r.iconSelected,onClick:()=>a(r),state:o===r?"selected":"default",badgeLabel:r==null?void 0:r.badgeLabel}))})};Cl.displayName="NavigationBottomBar";const s2={containerImage:"Modal-module__containerImage___6uT0S",icon:"Modal-module__icon___uiLte",customIcon:"Modal-module__customIcon___SptKk",containerIcon:"Modal-module__containerIcon___60MA-",title:"Modal-module__title___JF0--",description:"Modal-module__description___baJ9D",label:"Modal-module__label___xPH1X",containerContent:"Modal-module__containerContent___S9L3F",titledescriptioncontent:"Modal-module__titledescriptioncontent___AeJbM",icon1:"Modal-module__icon1___5nYC2",iconLeft:"Modal-module__iconLeft___fWGdL",label1:"Modal-module__label1___YAh45",icon2:"Modal-module__icon2___g-iAO",iconRight:"Modal-module__iconRight___ncOe2",icon3:"Modal-module__icon3___tG9iN",iconLoading:"Modal-module__iconLoading___CLYug",bgFocus:"Modal-module__bgFocus___hoMDH",primaryButton:"Modal-module__primaryButton___Gxc-O",icon4:"Modal-module__icon4___K7TYg",iconLeft1:"Modal-module__iconLeft1___XiHES",label2:"Modal-module__label2___xEtu0",icon5:"Modal-module__icon5___pPN6-",iconRight1:"Modal-module__iconRight1___ar8PU",icon6:"Modal-module__icon6___pcBaI",iconLoading1:"Modal-module__iconLoading1___MwHft",bgFocus1:"Modal-module__bgFocus1___EWiWw",secondaryButton:"Modal-module__secondaryButton___wc4lv",actionButtons:"Modal-module__actionButtons___jEsxK",containerButtons:"Modal-module__containerButtons___-UEEt",icon7:"Modal-module__icon7___tyZd-",iconCustom:"Modal-module__iconCustom___7rMhU",bgFocus2:"Modal-module__bgFocus2___eq6eV",iconColorReference:"Modal-module__iconColorReference___0-bnc",buttonClose:"Modal-module__buttonClose___fFi3R",containerButtonClose:"Modal-module__containerButtonClose___xfZsX",root:"Modal-module__root___ErLzd"},c2={containerImage:"ModalBottom-module__containerImage___BxN1O",icon:"ModalBottom-module__icon___UcO0B",customIcon:"ModalBottom-module__customIcon___E--av",containerIcon:"ModalBottom-module__containerIcon___j8-Eh",title:"ModalBottom-module__title___Rn4v0",description:"ModalBottom-module__description___fkv61",label:"ModalBottom-module__label___1nAbm",containerContent:"ModalBottom-module__containerContent___CQrQI",titledescriptioncontent:"ModalBottom-module__titledescriptioncontent___-D5zF",icon1:"ModalBottom-module__icon1___h8Mg4",iconLeft:"ModalBottom-module__iconLeft___GsklC",label1:"ModalBottom-module__label1___b-DKQ",icon2:"ModalBottom-module__icon2___OQWCG",iconRight:"ModalBottom-module__iconRight___K9wvt",icon3:"ModalBottom-module__icon3___tPU7v",iconLoading:"ModalBottom-module__iconLoading___hR-It",bgFocus:"ModalBottom-module__bgFocus___dMYaQ",primaryButton:"ModalBottom-module__primaryButton___CNJZR",icon4:"ModalBottom-module__icon4___AVk31",iconLeft1:"ModalBottom-module__iconLeft1___F8dfM",label2:"ModalBottom-module__label2___CXG-D",icon5:"ModalBottom-module__icon5___jHN8b",iconRight1:"ModalBottom-module__iconRight1___xfe-F",icon6:"ModalBottom-module__icon6___Iymjc",iconLoading1:"ModalBottom-module__iconLoading1___iMpL1",bgFocus1:"ModalBottom-module__bgFocus1___78X-z",secondaryButton:"ModalBottom-module__secondaryButton___p4pbJ",actionButtons:"ModalBottom-module__actionButtons___MtO4O",containerAction:"ModalBottom-module__containerAction___8kYNk",handleBar:"ModalBottom-module__handleBar___bKvvI",containerHandleBar:"ModalBottom-module__containerHandleBar___9C-v5",root:"ModalBottom-module__root___e1ms7"},l2=e=>e==="bottom"?c2:s2,u2=({className:e="",height:t="hug-content",description:n="Add the content here",title:o="Title",buttonPrimary:i,buttonSecondary:a,show:r=!1,type:s="auto",onClose:l,showCloseButton:d=!0,showHandleBar:u=!0,customIcon:m,customImage:f,content:g})=>{const[v,p]=_.useState(s),y=l2(v),b=`quill-modal-${v}`,{isDesktop:$,isDeviceDetected:S}=Lt(),{dragHandlers:x,dragStyles:w}=wl({isEnabled:v==="bottom",onClose:l,threshold:150});aa(r),_.useEffect(()=>{S&&(s==="auto"?p($?"overlay":"bottom"):s!==v&&p(s))},[$,S,s]);const B=c.jsxs("div",{className:[y.root,e,"quill-ui-next-component",v==="bottom"?"quill-ui-next-actionsheet-full-width":""].join(" "),"data-height":t,"data-type":v,"data-id":b,style:w,children:[f&&c.jsx("img",{className:y.containerImage,alt:"",src:f}),m&&c.jsx("div",{className:y.containerIcon,children:c.jsx("div",{className:y.customIcon,children:c.jsx("div",{className:y.icon,children:m})})}),c.jsxs("div",{className:y.titledescriptioncontent,children:[c.jsx("div",{className:y.title,children:o}),n&&c.jsx("div",{className:y.description,children:n}),g&&(v==="bottom"?c.jsx("div",{className:`${y.containerContent} quill-modal-bottom-container`,children:c.jsx("div",{className:"quill-ui-next-modal-bottom-content",children:g})}):c.jsx("div",{className:`${y.containerContent} quill-ui-next-modal-content`,children:g}))]}),c.jsx("div",{className:v==="bottom"?y.containerAction:y.containerButtons,children:c.jsxs("div",{className:y.actionButtons,children:[i&&c.jsx(ye,{color:"blackWhite",...i,style:"primary",width:"fill container"}),a&&c.jsx(ye,{color:"blackWhite",...a,style:"secondary",width:"fill container"})]})}),d&&v==="overlay"&&c.jsx("div",{className:y.containerButtonClose,children:c.jsxs("div",{className:y.buttonClose,children:[c.jsx("div",{className:y.iconCustom,children:c.jsx("div",{className:`${y.icon7} quill-ui-next-pointer`,onClick:l,children:c.jsx(Wo,{})})}),c.jsx("div",{className:y.bgFocus2}),c.jsx("div",{className:y.iconColorReference,children:"Label"})]})}),u&&v==="bottom"&&c.jsx("div",{className:y.containerHandleBar,...x,children:c.jsx("div",{className:y.handleBar})})]}),A=C=>{C.target===C.currentTarget&&(l==null||l())};return r?mt.createPortal(c.jsx("div",{className:`quill-ui-next-overlay type-${v}`,onClick:A,children:B}),document.body):null},d2=({className:e="",height:t="hug-content",type:n="bottom",description:o="Add the content here",title:i="Title",buttonPrimary:a,buttonSecondary:r,show:s,onClose:l,showCloseButton:d,showHandleBar:u,customIcon:m,customImage:f,content:g})=>c.jsx(u2,{className:e,height:t,type:n,description:o,title:i,buttonPrimary:a,buttonSecondary:r,show:s,onClose:l,showCloseButton:d,showHandleBar:u,customIcon:m,customImage:f,content:g}),h2={root:"Textarea-module__root___ih4Hb"},Tl=e=>c.jsx(Le,{...e,inputElement:"textarea",className:h2.root,maxLength:e.maxLength||300});Tl.displayName="TextArea";const m2={root:"PhoneNumber-module__root___QNjo3"},f2={text:{icon:"DropdownItemTextAtom-module__icon___KwjJP",iconLeft:"DropdownItemTextAtom-module__iconLeft___qBYt3",containerIconLeft:"DropdownItemTextAtom-module__containerIconLeft___da-8v",item:"DropdownItemTextAtom-module__item___4J6P8",icon1:"DropdownItemTextAtom-module__icon1___m-Um5",iconRight:"DropdownItemTextAtom-module__iconRight___VV9B0",containerIconRight:"DropdownItemTextAtom-module__containerIconRight___4D58A",bgFocus:"DropdownItemTextAtom-module__bgFocus___yHFUM",root:"DropdownItemTextAtom-module__root___FNzzR"},checkbox:{icon:"DropdownItemCheckboxAtom-module__icon___wtJIr",iconCheck:"DropdownItemCheckboxAtom-module__iconCheck___XCq-S",item:"DropdownItemCheckboxAtom-module__item___8hJJD",icon1:"DropdownItemCheckboxAtom-module__icon1___6emCT",iconRight:"DropdownItemCheckboxAtom-module__iconRight___8QnXG",containerIconRight:"DropdownItemCheckboxAtom-module__containerIconRight___5g6Ph",bgFocus:"DropdownItemCheckboxAtom-module__bgFocus___SPHL6",root:"DropdownItemCheckboxAtom-module__root___Qq8mT"}},Qt=_.forwardRef(({className:e="",selected:t=!1,size:n="sm",state:o="default",width:i="fill",textAlignment:a="left",label:r="Item",showFocusRing:s=!1,type:l="text",iconLeft:d,iconRight:u,itemKey:m=0,onClick:f,value:g="",noFocus:v=!1},p)=>{const y=f2[l],b=`quill-atom-dropdown-item-${l}-${o}-${n}-selected-${t}`,[$,S]=_.useState(s),x=()=>{if(f){if(l==="text"&&t)return f({label:"",value:""}),!1;f({label:r,value:g,iconLeft:d,iconRight:u})}},{handleFocus:w,handleBlur:B}=Ae({isDisabled:o==="disabled",setHighlight:S,onEnter:x}),A=t?c.jsx(eh,{}):c.jsx(Jd,{});return c.jsxs("div",{ref:p,className:[y.root,e,"quill-ui-next-atom","quill-ui-next-no-select",o!=="disabled"&&"quill-ui-next-pointer"].join(" "),"data-width":i,"data-value":g,"data-select":t,"data-id":b,"data-size":n,"data-state":o,"data-text-alignment":a,"data-item-key":m,"data-item-label":r,"data-item-value":g,tabIndex:o!=="disabled"&&!v?0:-1,onFocus:w,onBlur:B,onClick:x,children:[l==="text"&&d&&c.jsx("div",{className:y.containerIconLeft,children:d}),l==="checkbox"&&A&&c.jsx("div",{className:y.iconCheck,children:A}),c.jsx("div",{className:y.item,children:r}),u&&c.jsx("div",{className:y.containerIconRight,children:u}),$&&c.jsx("div",{className:y.bgFocus})]})}),De={group1:"DropdownContainerAtom-module__group1___bqL54",divider:"DropdownContainerAtom-module__divider___c-c-t",listItems:"DropdownContainerAtom-module__listItems___G7VCd",inputsDropdownListChe:"DropdownContainerAtom-module__inputsDropdownListChe___ZjozF",wheelpickerContainer:"DropdownContainerAtom-module__wheelpickerContainer___ENfX9",wheelpickerList:"DropdownContainerAtom-module__wheelpickerList___OgLNU",itemListExtra:"DropdownContainerAtom-module__itemListExtra___K4EOi",wheelpickerItem:"DropdownContainerAtom-module__wheelpickerItem___M46HJ"},En={iconLeft:"DropdownTitleAtom-module__iconLeft___YKiQn",title1:"DropdownTitleAtom-module__title1___WUPKC",iconRight:"DropdownTitleAtom-module__iconRight___KTWKx",containerIconRight:"DropdownTitleAtom-module__containerIconRight___zC4lF",title:"DropdownTitleAtom-module__title___FRWqO"},_2=({className:e="",title:t,iconLeft:n,iconRight:o})=>c.jsxs("div",{className:[En.title,e,"quill-ui-next-atom"].join(" "),children:[n&&c.jsx("div",{className:En.iconLeft,children:n}),c.jsx("div",{className:En.title1,children:t}),c.jsx("div",{className:En.containerIconRight,children:o&&c.jsx("div",{className:En.iconRight,children:n})})]}),g2={hidden:{opacity:0,transition:{duration:.2}},visible:{opacity:1,transition:{duration:.2}}},Jt=({className:e="",containerSize:t="default",width:n="200px",parent:o,isOpen:i=!1,data:a=[],itemSize:r="sm",multiple:s=!1,selected:l=[],offsetTop:d=5,textAlignment:u="left",onChange:m,onActionSheetClose:f,actionSheet:g,customContent:v})=>{const{isDesktop:p}=Lt(),y=_.useRef(null),[b,$]=_.useState(0),[S,x]=_.useState(!1),[w,B]=_.useState(l);let A;t==="sm"?A="220px":t==="md"?A="440px":t==="lg"?A="660px":t==="default"&&(A="unset");const C=_.useMemo(()=>({overflowY:S?"scroll":"hidden",maxHeight:A,width:n,top:`${b}px`}),[A,b]);_.useEffect(()=>{x(t!=="default")},[t]),_.useEffect(()=>{if(o.current&&i){const P=o.current.getBoundingClientRect().height+d;$(P)}},[o,i]),_.useEffect(()=>{if(!y.current||!w)return;const P=()=>{var Y;if(!w||Array.isArray(w)&&w.length===0)return;const O=Array.isArray(w)?w[0]:w,q=(Y=y.current)==null?void 0:Y.querySelector(`[data-value="${O.value}"]`);if(q&&y.current){const z=y.current.clientHeight,E=q.getBoundingClientRect().top-y.current.getBoundingClientRect().top+100;y.current.scrollTop=E-z/2}};setTimeout(()=>{P()},100)},[i]);const M=({label:P,value:O,iconLeft:q,iconRight:Y})=>{const z=s?Array.isArray(w)&&w.some(E=>E.value===O):!Array.isArray(w)&&(w==null?void 0:w.value)===O;return c.jsx(Qt,{size:r,label:P,value:O,type:s?"checkbox":"text",textAlignment:u,onClick:E=>{if(s){const L=Array.isArray(w)?[...w]:[],F=L.findIndex(R=>R.value===O);F>=0?L.splice(F,1):L.push({label:P,value:O}),B(L),m==null||m(L)}else B(E),m==null||m(E)},selected:z,iconLeft:q,iconRight:Y},`item-${P}-${O}`)},k=()=>v||c.jsx("div",{className:De.listItems,children:a==null?void 0:a.map(({title:P,items:O},q)=>c.jsxs("div",{className:De.group1,children:[P&&c.jsx(_2,{title:P}),O.length>0&&O.map(Y=>M(Y)),P&&c.jsx("div",{className:De.divider})]},q))});return i&&(a.length>0||v)&&c.jsx(c.Fragment,{children:p?c.jsx(no,{children:c.jsx(Mn.div,{ref:y,className:[De.inputsDropdownListChe,"quill-ui-next-dropdown-container",e].join(" "),style:C,initial:"hidden",animate:"visible",exit:"hidden",variants:g2,children:k()})}):c.jsx(mo,{...g,show:i,showHeader:!1,showSearchBar:!1,content:k(),onClose:()=>{m==null||m(Array.isArray(w)?w:w||{label:"",value:""}),f==null||f()},type:"bottom"})})},Bl=({className:e,label:t="Phone number",labelLeft:n="Code",labelLeftValue:o="+00",placeholder:i="Select an option",message:a,indicator:r,state:s,type:l,size:d="md",itemSize:u="md",textAlignment:m="left",isRequired:f,optionalText:g,containerRef:v,iconRight:p,selected:y,onChange:b,onClick:$,data:S=[],variant:x="labelled",value:w})=>{const[B,A]=_.useState(!1),C=_.useRef(null),M=_.useRef(null),k=v||C,[P,O]=_.useState("+00"),[q,Y]=_.useState(y),z=E=>{const{isPortalClick:L}=fo(k);L(E)||s==="disabled"||(A(!B),$==null||$())};return Dt(k,()=>A(!1),["quill-ui-next-dropdown-container"]),c.jsx(Le,{ref:M,containerRef:k,label:t,labelLeft:n,labelLeftValue:P||o,placeholder:i,message:a,inputType:"number",className:`quill-ui-next-pointer ${m2.root} ${e}`,onAddonLeftClick:E=>{var L;(L=document.activeElement)==null||L.blur(),z(E)},iconLeft:c.jsx(zh,{}),iconRight:p,iconLeftSecondary:c.jsx($t,{className:`quill-ui-next-rotatable ${B&&"quill-ui-next-rotate"}`}),isLeftGroup:!0,indicator:r,state:s,type:l,size:d,textAlignment:m,isRequired:f,optionalText:g,variant:x,value:w,customContent:c.jsx(Jt,{width:"100%",textAlignment:m,parent:k,isOpen:B,itemSize:u,data:S,containerSize:"md",selected:q,onChange:E=>{var F;b==null||b(E);const L=Array.isArray(E)?E[0]:E;Y(L),O(L.value),A(!1),(F=M.current)==null||F.focus()}})})};Bl.displayName="PhoneNumber";const Al=e=>{const[t,n]=_.useState(!1),o=()=>{e.state!=="disabled"&&n(a=>!a)},i=t?c.jsx(Yd,{className:"quill-ui-next-pointer",onClick:o}):c.jsx(Hd,{className:"quill-ui-next-pointer",onClick:o});return c.jsx(Le,{label:"Password",placeholder:"Enter your password",...e,inputType:t?"text":"password",iconLeft:c.jsx(dh,{}),iconRight:i,showStatusIcon:!0})};Al.displayName="PasswordField";const p2=({className:e,label:t="label",placeholder:n="Select an option",message:o,indicator:i,state:a,type:r,size:s="md",itemSize:l="sm",textAlignment:d="left",iconLeft:u,labelLeft:m,isRequired:f,optionalText:g,containerRef:v,selected:p,onChange:y,onClick:b,data:$=[],customValue:S,variant:x="labelled",autocomplete:w=!1})=>{const[B,A]=_.useState(!1),[C,M]=_.useState(p),[k,P]=_.useState((p==null?void 0:p.label)||""),O=_.useRef(null),q=_.useRef(null),Y=v||O;_.useEffect(()=>{p&&(M(p),P(p.label))},[p]);const z=()=>{if(!w||!k)return $;const R=k.toLowerCase().trim(),j=$.map(W=>({...W,items:W.items.filter(Z=>Z.label.toLowerCase().includes(R))})).filter(W=>W.items.length>0);return j.length===0?[{title:"No results found",items:[]}]:j},E=R=>{const{isPortalClick:j}=fo(Y);j(R)||a==="disabled"||(A(!B),b==null||b())},L=R=>{const j=R.toString();P(j),w&&!B&&A(!0)},F=R=>{var j;M(R),P(R.label),A(!1),(j=q.current)==null||j.focus(),y==null||y(R)};return Dt(Y,()=>{A(!1)},["quill-ui-next-dropdown-container"]),c.jsx(Le,{ref:q,containerRef:Y,label:t,placeholder:n,message:o,className:`quill-ui-next-pointer ${e}`,allowTyping:w,onClick:R=>E(R),onChange:L,iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${B&&"quill-ui-next-rotate"}`}),indicator:i,state:a,type:r,size:s,textAlignment:d,iconLeft:(C==null?void 0:C.iconLeft)||u,labelLeft:m,isRequired:f,optionalText:g,variant:x,value:w?k:S||(C==null?void 0:C.label),customContent:c.jsx(Jt,{width:"100%",textAlignment:d,parent:Y,isOpen:B,itemSize:l,data:z(),containerSize:"md",selected:C,onChange:R=>{F(R)}})})};function kl(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=kl(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function go(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=kl(e))&&(o&&(o+=" "),o+=t);return o}const b2=(e,t,n,o)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;const i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!v2(i,a)&&o||Object.defineProperty(e,n,a)},v2=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},y2=(e,t)=>{const n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},w2=(e,t)=>`/* Wrapped ${e}*/
${t}`,x2=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),$2=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),S2=(e,t,n)=>{const o=n===""?"":`with ${n.trim()}() `,i=w2.bind(null,o,t.toString());Object.defineProperty(i,"name",$2);const{writable:a,enumerable:r,configurable:s}=x2;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:r,configurable:s})};function C2(e,t,{ignoreNonConfigurable:n=!1}={}){const{name:o}=e;for(const i of Reflect.ownKeys(t))b2(e,t,i,n);return y2(e,t),S2(e,t,o),e}const T2=new WeakMap,Ml=new WeakMap;function Ll(e,{cacheKey:t,cache:n=new Map,maxAge:o}={}){if(o===0)return e;if(typeof o=="number"){if(o>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(o<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const i=function(...a){var u;const r=t?t(a):a[0],s=n.get(r);if(s)return s.data;const l=e.apply(this,a),d=typeof o=="function"?o(...a):o;if(n.set(r,{data:l,maxAge:d?Date.now()+d:Number.POSITIVE_INFINITY}),d&&d>0&&d!==Number.POSITIVE_INFINITY){const m=setTimeout(()=>{n.delete(r)},d);(u=m.unref)==null||u.call(m);const f=Ml.get(e)??new Set;f.add(m),Ml.set(e,f)}return l};return C2(i,e,{ignoreNonConfigurable:!0}),T2.set(i,n),i}function B2(e){return typeof e=="string"}function A2(e,t,n){return n.indexOf(e)===t}function k2(e){return e.toLowerCase()===e}function El(e){return e.indexOf(",")===-1?e:e.split(",")}function ca(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],n=t===void 0?"":t;return ca(n)}if(e.indexOf("@")!==-1){var o=e.split("@")[0],n=o===void 0?"":o;return ca(n)}if(e.indexOf("-")===-1||!k2(e))return e;var i=e.split("-"),a=i[0],r=i[1],s=r===void 0?"":r;return"".concat(a,"-").concat(s.toUpperCase())}function M2(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,o=n===void 0?!0:n,i=t.fallbackLocale,a=i===void 0?"en-US":i,r=[];if(typeof navigator<"u"){for(var s=navigator.languages||[],l=[],d=0,u=s;d<u.length;d++){var m=u[d];l=l.concat(El(m))}var f=navigator.language,g=f&&El(f);r=r.concat(l,g)}return o&&r.push(a),r.filter(B2).map(ca).filter(A2)}var L2=Ll(M2,{cacheKey:JSON.stringify});function E2(e){return L2(e)[0]||null}var jl=Ll(E2,{cacheKey:JSON.stringify});function lt(e,t,n){return function(i,a=n){const r=e(i)+a;return t(r)}}function jn(e){return function(n){return new Date(e(n).getTime()-1)}}function Dn(e,t){return function(o){return[e(o),t(o)]}}function J(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;const t=Number.parseInt(e,10);if(typeof e=="string"&&!Number.isNaN(t))return t;throw new Error(`Failed to get year from date: ${e}.`)}function vt(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function po(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function Zt(e){const t=J(e),n=t+(-t+1)%100,o=new Date;return o.setFullYear(n,0,1),o.setHours(0,0,0,0),o}const j2=lt(J,Zt,-100),Dl=lt(J,Zt,100),la=jn(Dl),D2=lt(J,la,-100),Nl=Dn(Zt,la);function yt(e){const t=J(e),n=t+(-t+1)%10,o=new Date;return o.setFullYear(n,0,1),o.setHours(0,0,0,0),o}const Pl=lt(J,yt,-10),ua=lt(J,yt,10),bo=jn(ua),Il=lt(J,bo,-10),Fl=Dn(yt,bo);function en(e){const t=J(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}const Ol=lt(J,en,-1),da=lt(J,en,1),vo=jn(da),Rl=lt(J,vo,-1),N2=Dn(en,vo);function ha(e,t){return function(o,i=t){const a=J(o),r=vt(o)+i,s=new Date;return s.setFullYear(a,r,1),s.setHours(0,0,0,0),e(s)}}function Pt(e){const t=J(e),n=vt(e),o=new Date;return o.setFullYear(t,n,1),o.setHours(0,0,0,0),o}const Vl=ha(Pt,-1),ma=ha(Pt,1),Nn=jn(ma),Wl=ha(Nn,-1),P2=Dn(Pt,Nn);function I2(e,t){return function(o,i=t){const a=J(o),r=vt(o),s=po(o)+i,l=new Date;return l.setFullYear(a,r,s),l.setHours(0,0,0,0),e(l)}}function Pn(e){const t=J(e),n=vt(e),o=po(e),i=new Date;return i.setFullYear(t,n,o),i.setHours(0,0,0,0),i}const F2=I2(Pn,1),fa=jn(F2),O2=Dn(Pn,fa);function Hl(e){return po(Nn(e))}var Ce={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},R2={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},_a=[0,1,2,3,4,5,6],ga=new Map;function V2(e){return function(n,o){var i=n||jl();ga.has(i)||ga.set(i,new Map);var a=ga.get(i);return a.has(e)||a.set(e,new Intl.DateTimeFormat(i||void 0,e).format),a.get(e)(o)}}function W2(e){var t=new Date(e);return new Date(t.setHours(12))}function It(e){return function(t,n){return V2(e)(t,W2(n))}}var H2={day:"numeric"},q2={day:"numeric",month:"long",year:"numeric"},Y2={month:"long"},z2={month:"long",year:"numeric"},G2={weekday:"short"},U2={weekday:"long"},K2={year:"numeric"},X2=It(H2),Q2=It(q2),J2=It(Y2),ql=It(z2),Z2=It(G2),ep=It(U2),yo=It(K2),tp=_a[0],np=_a[5],Yl=_a[6];function In(e,t){t===void 0&&(t=Ce.ISO_8601);var n=e.getDay();switch(t){case Ce.ISO_8601:return(n+6)%7;case Ce.ISLAMIC:return(n+1)%7;case Ce.HEBREW:case Ce.GREGORY:return n;default:throw new Error("Unsupported calendar type.")}}function op(e){var t=Zt(e);return J(t)}function ip(e){var t=yt(e);return J(t)}function pa(e,t){t===void 0&&(t=Ce.ISO_8601);var n=J(e),o=vt(e),i=e.getDate()-In(e,t);return new Date(n,o,i)}function ap(e,t){t===void 0&&(t=Ce.ISO_8601);var n=t===Ce.GREGORY?Ce.GREGORY:Ce.ISO_8601,o=pa(e,t),i=J(e)+1,a,r;do a=new Date(i,0,n===Ce.ISO_8601?4:1),r=pa(a,t),i-=1;while(e<r);return Math.round((o.getTime()-r.getTime())/(864e5*7))+1}function Ft(e,t){switch(e){case"century":return Zt(t);case"decade":return yt(t);case"year":return en(t);case"month":return Pt(t);case"day":return Pn(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function rp(e,t){switch(e){case"century":return j2(t);case"decade":return Pl(t);case"year":return Ol(t);case"month":return Vl(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function zl(e,t){switch(e){case"century":return Dl(t);case"decade":return ua(t);case"year":return da(t);case"month":return ma(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function sp(e,t){switch(e){case"decade":return Pl(t,-100);case"year":return Ol(t,-10);case"month":return Vl(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function cp(e,t){switch(e){case"decade":return ua(t,100);case"year":return da(t,10);case"month":return ma(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Gl(e,t){switch(e){case"century":return la(t);case"decade":return bo(t);case"year":return vo(t);case"month":return Nn(t);case"day":return fa(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function lp(e,t){switch(e){case"century":return D2(t);case"decade":return Il(t);case"year":return Rl(t);case"month":return Wl(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function up(e,t){switch(e){case"decade":return Il(t,-100);case"year":return Rl(t,-10);case"month":return Wl(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function Ul(e,t){switch(e){case"century":return Nl(t);case"decade":return Fl(t);case"year":return N2(t);case"month":return P2(t);case"day":return O2(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function dp(e,t,n){var o=[t,n].sort(function(i,a){return i.getTime()-a.getTime()});return[Ft(e,o[0]),Gl(e,o[1])]}function Kl(e,t,n){return n.map(function(o){return(t||yo)(e,o)}).join(" – ")}function hp(e,t,n){return Kl(e,t,Nl(n))}function Xl(e,t,n){return Kl(e,t,Fl(n))}function mp(e){return e.getDay()===new Date().getDay()}function Ql(e,t){t===void 0&&(t=Ce.ISO_8601);var n=e.getDay();switch(t){case Ce.ISLAMIC:case Ce.HEBREW:return n===np||n===Yl;case Ce.ISO_8601:case Ce.GREGORY:return n===Yl||n===tp;default:throw new Error("Unsupported calendar type.")}}var et="react-calendar__navigation";function fp(e){var t=e.activeStartDate,n=e.drillUp,o=e.formatMonthYear,i=o===void 0?ql:o,a=e.formatYear,r=a===void 0?yo:a,s=e.locale,l=e.maxDate,d=e.minDate,u=e.navigationAriaLabel,m=u===void 0?"":u,f=e.navigationAriaLive,g=e.navigationLabel,v=e.next2AriaLabel,p=v===void 0?"":v,y=e.next2Label,b=y===void 0?"»":y,$=e.nextAriaLabel,S=$===void 0?"":$,x=e.nextLabel,w=x===void 0?"›":x,B=e.prev2AriaLabel,A=B===void 0?"":B,C=e.prev2Label,M=C===void 0?"«":C,k=e.prevAriaLabel,P=k===void 0?"":k,O=e.prevLabel,q=O===void 0?"‹":O,Y=e.setActiveStartDate,z=e.showDoubleView,E=e.view,L=e.views,F=L.indexOf(E)>0,R=E!=="century",j=rp(E,t),W=R?sp(E,t):void 0,Z=zl(E,t),re=R?cp(E,t):void 0,ee=function(){if(j.getFullYear()<0)return!0;var H=lp(E,t);return d&&d>=H}(),se=R&&function(){if(W.getFullYear()<0)return!0;var H=up(E,t);return d&&d>=H}(),he=l&&l<Z,T=R&&l&&l<re;function I(){Y(j,"prev")}function U(){Y(W,"prev2")}function me(){Y(Z,"next")}function ge(){Y(re,"next2")}function ve(H){var ot=function(){switch(E){case"century":return hp(s,r,H);case"decade":return Xl(s,r,H);case"year":return r(s,H);case"month":return i(s,H);default:throw new Error("Invalid view: ".concat(E,"."))}}();return g?g({date:H,label:ot,locale:s||jl()||void 0,view:E}):ot}function He(){var H="".concat(et,"__label");return c.jsxs("button",{"aria-label":m,"aria-live":f,className:H,disabled:!F,onClick:n,style:{flexGrow:1},type:"button",children:[c.jsx("span",{className:"".concat(H,"__labelText ").concat(H,"__labelText--from"),children:ve(t)}),z?c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"".concat(H,"__divider"),children:" – "}),c.jsx("span",{className:"".concat(H,"__labelText ").concat(H,"__labelText--to"),children:ve(Z)})]}):null]})}return c.jsxs("div",{className:et,children:[M!==null&&R?c.jsx("button",{"aria-label":A,className:"".concat(et,"__arrow ").concat(et,"__prev2-button"),disabled:se,onClick:U,type:"button",children:M}):null,q!==null&&c.jsx("button",{"aria-label":P,className:"".concat(et,"__arrow ").concat(et,"__prev-button"),disabled:ee,onClick:I,type:"button",children:q}),He(),w!==null&&c.jsx("button",{"aria-label":S,className:"".concat(et,"__arrow ").concat(et,"__next-button"),disabled:he,onClick:me,type:"button",children:w}),b!==null&&R?c.jsx("button",{"aria-label":p,className:"".concat(et,"__arrow ").concat(et,"__next2-button"),disabled:T,onClick:ge,type:"button",children:b}):null]})}var tn=function(){return tn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tn.apply(this,arguments)},_p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function Jl(e){return"".concat(e,"%")}function ba(e){var t=e.children,n=e.className,o=e.count,i=e.direction,a=e.offset,r=e.style,s=e.wrap,l=_p(e,["children","className","count","direction","offset","style","wrap"]);return c.jsx("div",tn({className:n,style:tn({display:"flex",flexDirection:i,flexWrap:s?"wrap":"nowrap"},r)},l,{children:_.Children.map(t,function(d,u){var m=a&&u===0?Jl(100*a/o):null;return _.cloneElement(d,tn(tn({},d.props),{style:{flexBasis:Jl(100/o),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:m,marginInlineStart:m,marginInlineEnd:0}}))})}))}function gp(e,t,n){return t&&t>e?t:n&&n<e?n:e}function Fn(e,t){return t[0]<=e&&t[1]>=e}function pp(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function Zl(e,t){return Fn(e[0],t)||Fn(e[1],t)}function eu(e,t,n){var o=Zl(t,e),i=[];if(o){i.push(n);var a=Fn(e[0],t),r=Fn(e[1],t);a&&i.push("".concat(n,"Start")),r&&i.push("".concat(n,"End")),a&&r&&i.push("".concat(n,"BothEnds"))}return i}function bp(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function vp(e){if(!e)throw new Error("args is required");var t=e.value,n=e.date,o=e.hover,i="react-calendar__tile",a=[i];if(!n)return a;var r=new Date,s=function(){if(Array.isArray(n))return n;var g=e.dateType;if(!g)throw new Error("dateType is required when date is not an array of two dates");return Ul(g,n)}();if(Fn(r,s)&&a.push("".concat(i,"--now")),!t||!bp(t))return a;var l=function(){if(Array.isArray(t))return t;var g=e.valueType;if(!g)throw new Error("valueType is required when value is not an array of two dates");return Ul(g,t)}();pp(l,s)?a.push("".concat(i,"--active")):Zl(l,s)&&a.push("".concat(i,"--hasActive"));var d=eu(l,s,"".concat(i,"--range"));a.push.apply(a,d);var u=Array.isArray(t)?t:[t];if(o&&u.length===1){var m=o>l[0]?[l[0],o]:[o,l[0]],f=eu(m,s,"".concat(i,"--hover"));a.push.apply(a,f)}return a}function wo(e){for(var t=e.className,n=e.count,o=n===void 0?3:n,i=e.dateTransform,a=e.dateType,r=e.end,s=e.hover,l=e.offset,d=e.renderTile,u=e.start,m=e.step,f=m===void 0?1:m,g=e.value,v=e.valueType,p=[],y=u;y<=r;y+=f){var b=i(y);p.push(d({classes:vp({date:b,dateType:a,hover:s,value:g,valueType:v}),date:b}))}return c.jsx(ba,{className:t,count:o,offset:l,wrap:!0,children:p})}function xo(e){var t=e.activeStartDate,n=e.children,o=e.classes,i=e.date,a=e.formatAbbr,r=e.locale,s=e.maxDate,l=e.maxDateTransform,d=e.minDate,u=e.minDateTransform,m=e.onClick,f=e.onMouseOver,g=e.style,v=e.tileClassName,p=e.tileContent,y=e.tileDisabled,b=e.view,$=_.useMemo(function(){var x={activeStartDate:t,date:i,view:b};return typeof v=="function"?v(x):v},[t,i,v,b]),S=_.useMemo(function(){var x={activeStartDate:t,date:i,view:b};return typeof p=="function"?p(x):p},[t,i,p,b]);return c.jsxs("button",{className:go(o,$),disabled:d&&u(d)>i||s&&l(s)<i||(y==null?void 0:y({activeStartDate:t,date:i,view:b})),onClick:m?function(x){return m(i,x)}:void 0,onFocus:f?function(){return f(i)}:void 0,onMouseOver:f?function(){return f(i)}:void 0,style:g,type:"button",children:[a?c.jsx("abbr",{"aria-label":a(r,i),children:n}):n,S]})}var va=function(){return va=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},va.apply(this,arguments)},yp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},tu="react-calendar__century-view__decades__decade";function wp(e){var t=e.classes,n=t===void 0?[]:t,o=e.currentCentury,i=e.formatYear,a=i===void 0?yo:i,r=yp(e,["classes","currentCentury","formatYear"]),s=r.date,l=r.locale,d=[];return n&&d.push.apply(d,n),d.push(tu),Zt(s).getFullYear()!==o&&d.push("".concat(tu,"--neighboringCentury")),c.jsx(xo,va({},r,{classes:d,maxDateTransform:bo,minDateTransform:yt,view:"century",children:Xl(l,a,s)}))}var ya=function(){return ya=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ya.apply(this,arguments)},nu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function xp(e){var t=e.activeStartDate,n=e.hover,o=e.showNeighboringCentury,i=e.value,a=e.valueType,r=nu(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),s=op(t),l=s+(o?119:99);return c.jsx(wo,{className:"react-calendar__century-view__decades",dateTransform:yt,dateType:"decade",end:l,hover:n,renderTile:function(d){var u=d.date,m=nu(d,["date"]);return c.jsx(wp,ya({},r,m,{activeStartDate:t,currentCentury:s,date:u}),u.getTime())},start:s,step:10,value:i,valueType:a})}var wa=function(){return wa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wa.apply(this,arguments)};function $p(e){function t(){return c.jsx(xp,wa({},e))}return c.jsx("div",{className:"react-calendar__century-view",children:t()})}var xa=function(){return xa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xa.apply(this,arguments)},Sp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},ou="react-calendar__decade-view__years__year";function Cp(e){var t=e.classes,n=t===void 0?[]:t,o=e.currentDecade,i=e.formatYear,a=i===void 0?yo:i,r=Sp(e,["classes","currentDecade","formatYear"]),s=r.date,l=r.locale,d=[];return n&&d.push.apply(d,n),d.push(ou),yt(s).getFullYear()!==o&&d.push("".concat(ou,"--neighboringDecade")),c.jsx(xo,xa({},r,{classes:d,maxDateTransform:vo,minDateTransform:en,view:"decade",children:a(l,s)}))}var $a=function(){return $a=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$a.apply(this,arguments)},iu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function Tp(e){var t=e.activeStartDate,n=e.hover,o=e.showNeighboringDecade,i=e.value,a=e.valueType,r=iu(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),s=ip(t),l=s+(o?11:9);return c.jsx(wo,{className:"react-calendar__decade-view__years",dateTransform:en,dateType:"year",end:l,hover:n,renderTile:function(d){var u=d.date,m=iu(d,["date"]);return c.jsx(Cp,$a({},r,m,{activeStartDate:t,currentDecade:s,date:u}),u.getTime())},start:s,value:i,valueType:a})}var Sa=function(){return Sa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Sa.apply(this,arguments)};function Bp(e){function t(){return c.jsx(Tp,Sa({},e))}return c.jsx("div",{className:"react-calendar__decade-view",children:t()})}var Ca=function(){return Ca=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ca.apply(this,arguments)},Ap=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},au=function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,a;o<i;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))},kp="react-calendar__year-view__months__month";function Mp(e){var t=e.classes,n=t===void 0?[]:t,o=e.formatMonth,i=o===void 0?J2:o,a=e.formatMonthYear,r=a===void 0?ql:a,s=Ap(e,["classes","formatMonth","formatMonthYear"]),l=s.date,d=s.locale;return c.jsx(xo,Ca({},s,{classes:au(au([],n,!0),[kp],!1),formatAbbr:r,maxDateTransform:Nn,minDateTransform:Pt,view:"year",children:i(d,l)}))}var Ta=function(){return Ta=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ta.apply(this,arguments)},ru=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function Lp(e){var t=e.activeStartDate,n=e.hover,o=e.value,i=e.valueType,a=ru(e,["activeStartDate","hover","value","valueType"]),r=0,s=11,l=J(t);return c.jsx(wo,{className:"react-calendar__year-view__months",dateTransform:function(d){var u=new Date;return u.setFullYear(l,d,1),Pt(u)},dateType:"month",end:s,hover:n,renderTile:function(d){var u=d.date,m=ru(d,["date"]);return c.jsx(Mp,Ta({},a,m,{activeStartDate:t,date:u}),u.getTime())},start:r,value:o,valueType:i})}var Ba=function(){return Ba=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ba.apply(this,arguments)};function Ep(e){function t(){return c.jsx(Lp,Ba({},e))}return c.jsx("div",{className:"react-calendar__year-view",children:t()})}var Aa=function(){return Aa=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Aa.apply(this,arguments)},jp=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},ka="react-calendar__month-view__days__day";function Dp(e){var t=e.calendarType,n=e.classes,o=n===void 0?[]:n,i=e.currentMonthIndex,a=e.formatDay,r=a===void 0?X2:a,s=e.formatLongDate,l=s===void 0?Q2:s,d=jp(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),u=d.date,m=d.locale,f=[];return o&&f.push.apply(f,o),f.push(ka),Ql(u,t)&&f.push("".concat(ka,"--weekend")),u.getMonth()!==i&&f.push("".concat(ka,"--neighboringMonth")),c.jsx(xo,Aa({},d,{classes:f,formatAbbr:l,maxDateTransform:fa,minDateTransform:Pn,view:"month",children:r(m,u)}))}var Ma=function(){return Ma=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ma.apply(this,arguments)},su=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function Np(e){var t=e.activeStartDate,n=e.calendarType,o=e.hover,i=e.showFixedNumberOfWeeks,a=e.showNeighboringMonth,r=e.value,s=e.valueType,l=su(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),d=J(t),u=vt(t),m=i||a,f=In(t,n),g=m?0:f,v=(m?-f:0)+1,p=function(){if(i)return v+6*7-1;var y=Hl(t);if(a){var b=new Date;b.setFullYear(d,u,y),b.setHours(0,0,0,0);var $=7-In(b,n)-1;return y+$}return y}();return c.jsx(wo,{className:"react-calendar__month-view__days",count:7,dateTransform:function(y){var b=new Date;return b.setFullYear(d,u,y),Pn(b)},dateType:"day",hover:o,end:p,renderTile:function(y){var b=y.date,$=su(y,["date"]);return c.jsx(Dp,Ma({},l,$,{activeStartDate:t,calendarType:n,currentMonthIndex:u,date:b}),b.getTime())},offset:g,start:v,value:r,valueType:s})}var cu="react-calendar__month-view__weekdays",La="".concat(cu,"__weekday");function Pp(e){for(var t=e.calendarType,n=e.formatShortWeekday,o=n===void 0?Z2:n,i=e.formatWeekday,a=i===void 0?ep:i,r=e.locale,s=e.onMouseLeave,l=new Date,d=Pt(l),u=J(d),m=vt(d),f=[],g=1;g<=7;g+=1){var v=new Date(u,m,g-In(d,t)),p=a(r,v);f.push(c.jsx("div",{className:go(La,mp(v)&&"".concat(La,"--current"),Ql(v,t)&&"".concat(La,"--weekend")),children:c.jsx("abbr",{"aria-label":p,title:p,children:o(r,v).replace(".","")})},g))}return c.jsx(ba,{className:cu,count:7,onFocus:s,onMouseOver:s,children:f})}var $o=function(){return $o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$o.apply(this,arguments)},lu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n},uu="react-calendar__tile";function Ip(e){var t=e.onClickWeekNumber,n=e.weekNumber,o=c.jsx("span",{children:n});if(t){var i=e.date,a=e.onClickWeekNumber,r=e.weekNumber,s=lu(e,["date","onClickWeekNumber","weekNumber"]);return c.jsx("button",$o({},s,{className:uu,onClick:function(l){return a(r,i,l)},type:"button",children:o}))}else{e.date,e.onClickWeekNumber,e.weekNumber;var s=lu(e,["date","onClickWeekNumber","weekNumber"]);return c.jsx("div",$o({},s,{className:uu,children:o}))}}function Fp(e){var t=e.activeStartDate,n=e.calendarType,o=e.onClickWeekNumber,i=e.onMouseLeave,a=e.showFixedNumberOfWeeks,r=function(){if(a)return 6;var d=Hl(t),u=In(t,n),m=d-(7-u);return 1+Math.ceil(m/7)}(),s=function(){for(var d=J(t),u=vt(t),m=po(t),f=[],g=0;g<r;g+=1)f.push(pa(new Date(d,u,m+g*7),n));return f}(),l=s.map(function(d){return ap(d,n)});return c.jsx(ba,{className:"react-calendar__month-view__weekNumbers",count:r,direction:"column",onFocus:i,onMouseOver:i,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:l.map(function(d,u){var m=s[u];if(!m)throw new Error("date is not defined");return c.jsx(Ip,{date:m,onClickWeekNumber:o,weekNumber:d},d)})})}var Ea=function(){return Ea=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ea.apply(this,arguments)},Op=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n};function Rp(e){if(e)for(var t=0,n=Object.entries(R2);t<n.length;t++){var o=n[t],i=o[0],a=o[1];if(a.includes(e))return i}return Ce.ISO_8601}function Vp(e){var t=e.activeStartDate,n=e.locale,o=e.onMouseLeave,i=e.showFixedNumberOfWeeks,a=e.calendarType,r=a===void 0?Rp(n):a,s=e.formatShortWeekday,l=e.formatWeekday,d=e.onClickWeekNumber,u=e.showWeekNumbers,m=Op(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function f(){return c.jsx(Pp,{calendarType:r,formatShortWeekday:s,formatWeekday:l,locale:n,onMouseLeave:o})}function g(){return u?c.jsx(Fp,{activeStartDate:t,calendarType:r,onClickWeekNumber:d,onMouseLeave:o,showFixedNumberOfWeeks:i}):null}function v(){return c.jsx(Np,Ea({calendarType:r},m))}var p="react-calendar__month-view";return c.jsx("div",{className:go(p,u?"".concat(p,"--weekNumbers"):""),children:c.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[g(),c.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[f(),v()]})]})})}var nn=function(){return nn=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},nn.apply(this,arguments)},So="react-calendar",Co=["century","decade","year","month"],Wp=["decade","year","month","day"],ja=new Date;ja.setFullYear(1,0,1),ja.setHours(0,0,0,0);var Hp=new Date(864e13);function On(e){return e instanceof Date?e:new Date(e)}function du(e,t){return Co.slice(Co.indexOf(e),Co.indexOf(t)+1)}function qp(e,t,n){var o=du(t,n);return o.indexOf(e)!==-1}function Da(e,t,n){return e&&qp(e,t,n)?e:n}function hu(e){var t=Co.indexOf(e);return Wp[t]}function Yp(e,t){var n=Array.isArray(e)?e[t]:e;if(!n)return null;var o=On(n);if(Number.isNaN(o.getTime()))throw new Error("Invalid date: ".concat(e));return o}function mu(e,t){var n=e.value,o=e.minDate,i=e.maxDate,a=e.maxDetail,r=Yp(n,t);if(!r)return null;var s=hu(a),l=function(){switch(t){case 0:return Ft(s,r);case 1:return Gl(s,r);default:throw new Error("Invalid index value: ".concat(t))}}();return gp(l,o,i)}var Na=function(e){return mu(e,0)},fu=function(e){return mu(e,1)},zp=function(e){return[Na,fu].map(function(t){return t(e)})};function _u(e){var t=e.maxDate,n=e.maxDetail,o=e.minDate,i=e.minDetail,a=e.value,r=e.view,s=Da(r,i,n),l=Na({value:a,minDate:o,maxDate:t,maxDetail:n})||new Date;return Ft(s,l)}function Gp(e){var t=e.activeStartDate,n=e.defaultActiveStartDate,o=e.defaultValue,i=e.defaultView,a=e.maxDate,r=e.maxDetail,s=e.minDate,l=e.minDetail,d=e.value,u=e.view,m=Da(u,l,r),f=t||n;return f?Ft(m,f):_u({maxDate:a,maxDetail:r,minDate:s,minDetail:l,value:d||o,view:u||i})}function Pa(e){return e&&(!Array.isArray(e)||e.length===1)}function To(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var Bo=_.forwardRef(function(t,n){var o=t.activeStartDate,i=t.allowPartialRange,a=t.calendarType,r=t.className,s=t.defaultActiveStartDate,l=t.defaultValue,d=t.defaultView,u=t.formatDay,m=t.formatLongDate,f=t.formatMonth,g=t.formatMonthYear,v=t.formatShortWeekday,p=t.formatWeekday,y=t.formatYear,b=t.goToRangeStartOnSelect,$=b===void 0?!0:b,S=t.inputRef,x=t.locale,w=t.maxDate,B=w===void 0?Hp:w,A=t.maxDetail,C=A===void 0?"month":A,M=t.minDate,k=M===void 0?ja:M,P=t.minDetail,O=P===void 0?"century":P,q=t.navigationAriaLabel,Y=t.navigationAriaLive,z=t.navigationLabel,E=t.next2AriaLabel,L=t.next2Label,F=t.nextAriaLabel,R=t.nextLabel,j=t.onActiveStartDateChange,W=t.onChange,Z=t.onClickDay,re=t.onClickDecade,ee=t.onClickMonth,se=t.onClickWeekNumber,he=t.onClickYear,T=t.onDrillDown,I=t.onDrillUp,U=t.onViewChange,me=t.prev2AriaLabel,ge=t.prev2Label,ve=t.prevAriaLabel,He=t.prevLabel,H=t.returnValue,ot=H===void 0?"start":H,Te=t.selectRange,qe=t.showDoubleView,Ne=t.showFixedNumberOfWeeks,Lo=t.showNavigation,Ya=Lo===void 0?!0:Lo,Eo=t.showNeighboringCentury,Wn=t.showNeighboringDecade,Rt=t.showNeighboringMonth,Ye=Rt===void 0?!0:Rt,za=t.showWeekNumbers,Pe=t.tileClassName,ht=t.tileContent,Ga=t.tileDisabled,Hn=t.value,jo=t.view,Ku=_.useState(s),i3=Ku[0],Do=Ku[1],Xu=_.useState(null),a3=Xu[0],Qu=Xu[1],Ju=_.useState(Array.isArray(l)?l.map(function(G){return G!==null?On(G):null}):l!=null?On(l):null),Ua=Ju[0],r3=Ju[1],Zu=_.useState(d),s3=Zu[0],ed=Zu[1],Ee=o||i3||Gp({activeStartDate:o,defaultActiveStartDate:s,defaultValue:l,defaultView:d,maxDate:B,maxDetail:C,minDate:k,minDetail:O,value:Hn,view:jo}),je=function(){var G=function(){return Te&&Pa(Ua)?Ua:Hn!==void 0?Hn:Ua}();return G?Array.isArray(G)?G.map(function(ce){return ce!==null?On(ce):null}):G!==null?On(G):null:null}(),No=hu(C),oe=Da(jo||s3,O,C),it=du(O,C),c3=Te?a3:null,Ka=it.indexOf(oe)<it.length-1,td=it.indexOf(oe)>0,nd=_.useCallback(function(G){var ce=function(){switch(ot){case"start":return Na;case"end":return fu;case"range":return zp;default:throw new Error("Invalid returnValue.")}}();return ce({maxDate:B,maxDetail:C,minDate:k,value:G})},[B,C,k,ot]),Xa=_.useCallback(function(G,ce){Do(G);var pe={action:ce,activeStartDate:G,value:je,view:oe};j&&!To(Ee,G)&&j(pe)},[Ee,j,je,oe]),Po=_.useCallback(function(G,ce){var pe=function(){switch(oe){case"century":return re;case"decade":return he;case"year":return ee;case"month":return Z;default:throw new Error("Invalid view: ".concat(oe,"."))}}();pe&&pe(G,ce)},[Z,re,ee,he,oe]),Qa=_.useCallback(function(G,ce){if(Ka){Po(G,ce);var pe=it[it.indexOf(oe)+1];if(!pe)throw new Error("Attempted to drill down from the lowest view.");Do(G),ed(pe);var Ge={action:"drillDown",activeStartDate:G,value:je,view:pe};j&&!To(Ee,G)&&j(Ge),U&&oe!==pe&&U(Ge),T&&T(Ge)}},[Ee,Ka,j,Po,T,U,je,oe,it]),Ja=_.useCallback(function(){if(td){var G=it[it.indexOf(oe)-1];if(!G)throw new Error("Attempted to drill up from the highest view.");var ce=Ft(G,Ee);Do(ce),ed(G);var pe={action:"drillUp",activeStartDate:ce,value:je,view:G};j&&!To(Ee,ce)&&j(pe),U&&oe!==G&&U(pe),I&&I(pe)}},[Ee,td,j,I,U,je,oe,it]),Za=_.useCallback(function(G,ce){var pe=je;Po(G,ce);var Ge=Te&&!Pa(pe),Ue;if(Te)if(Ge)Ue=Ft(No,G);else{if(!pe)throw new Error("previousValue is required");if(Array.isArray(pe))throw new Error("previousValue must not be an array");Ue=dp(No,pe,G)}else Ue=nd(G);var tr=!Te||Ge||$?_u({maxDate:B,maxDetail:C,minDate:k,minDetail:O,value:Ue,view:oe}):null;ce.persist(),Do(tr),r3(Ue);var h3={action:"onChange",activeStartDate:tr,value:Ue,view:oe};if(j&&!To(Ee,tr)&&j(h3),W)if(Te){var m3=Pa(Ue);if(!m3)W(Ue||null,ce);else if(i){if(Array.isArray(Ue))throw new Error("value must not be an array");W([Ue||null,null],ce)}}else W(Ue||null,ce)},[Ee,i,nd,$,B,C,k,O,j,W,Po,Te,je,No,oe]);function l3(G){Qu(G)}function er(){Qu(null)}_.useImperativeHandle(n,function(){return{activeStartDate:Ee,drillDown:Qa,drillUp:Ja,onChange:Za,setActiveStartDate:Xa,value:je,view:oe}},[Ee,Qa,Ja,Za,Xa,je,oe]);function od(G){var ce=G?zl(oe,Ee):Ft(oe,Ee),pe=Ka?Qa:Za,Ge={activeStartDate:ce,hover:c3,locale:x,maxDate:B,minDate:k,onClick:pe,onMouseOver:Te?l3:void 0,tileClassName:Pe,tileContent:ht,tileDisabled:Ga,value:je,valueType:No};switch(oe){case"century":return c.jsx($p,nn({formatYear:y,showNeighboringCentury:Eo},Ge));case"decade":return c.jsx(Bp,nn({formatYear:y,showNeighboringDecade:Wn},Ge));case"year":return c.jsx(Ep,nn({formatMonth:f,formatMonthYear:g},Ge));case"month":return c.jsx(Vp,nn({calendarType:a,formatDay:u,formatLongDate:m,formatShortWeekday:v,formatWeekday:p,onClickWeekNumber:se,onMouseLeave:Te?er:void 0,showFixedNumberOfWeeks:typeof Ne<"u"?Ne:qe,showNeighboringMonth:Ye,showWeekNumbers:za},Ge));default:throw new Error("Invalid view: ".concat(oe,"."))}}function u3(){return Ya?c.jsx(fp,{activeStartDate:Ee,drillUp:Ja,formatMonthYear:g,formatYear:y,locale:x,maxDate:B,minDate:k,navigationAriaLabel:q,navigationAriaLive:Y,navigationLabel:z,next2AriaLabel:E,next2Label:L,nextAriaLabel:F,nextLabel:R,prev2AriaLabel:me,prev2Label:ge,prevAriaLabel:ve,prevLabel:He,setActiveStartDate:Xa,showDoubleView:qe,view:oe,views:it}):null}var d3=Array.isArray(je)?je:[je];return c.jsxs("div",{className:go(So,Te&&d3.length===1&&"".concat(So,"--selectRange"),qe&&"".concat(So,"--doubleView"),r),ref:S,children:[u3(),c.jsxs("div",{className:"".concat(So,"__viewContainer"),onBlur:Te?er:void 0,onMouseLeave:Te?er:void 0,children:[od(),qe?od(!0):null]})]})});const gu=6048e5,Up=864e5,Kp=6e4,Xp=36e5,Qp=1e3,pu=Symbol.for("constructDateFrom");function we(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&pu in e?e[pu](t):e instanceof Date?new e.constructor(t):new Date(t)}function _e(e,t){return we(t||e,e)}function bu(e,t,n){const o=_e(e,n==null?void 0:n.in);return isNaN(t)?we((n==null?void 0:n.in)||e,NaN):(t&&o.setDate(o.getDate()+t),o)}let Jp={};function on(){return Jp}function wt(e,t){var s,l,d,u;const n=on(),o=(t==null?void 0:t.weekStartsOn)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.weekStartsOn)??n.weekStartsOn??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.weekStartsOn)??0,i=_e(e,t==null?void 0:t.in),a=i.getDay(),r=(a<o?7:0)+a-o;return i.setDate(i.getDate()-r),i.setHours(0,0,0,0),i}function an(e,t){return wt(e,{...t,weekStartsOn:1})}function vu(e,t){const n=_e(e,t==null?void 0:t.in),o=n.getFullYear(),i=we(n,0);i.setFullYear(o+1,0,4),i.setHours(0,0,0,0);const a=an(i),r=we(n,0);r.setFullYear(o,0,4),r.setHours(0,0,0,0);const s=an(r);return n.getTime()>=a.getTime()?o+1:n.getTime()>=s.getTime()?o:o-1}function Ao(e){const t=_e(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function Zp(e,...t){const n=we.bind(null,t.find(o=>typeof o=="object"));return t.map(n)}function yu(e,t){const n=_e(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function e5(e,t,n){const[o,i]=Zp(n==null?void 0:n.in,e,t),a=yu(o),r=yu(i),s=+a-Ao(a),l=+r-Ao(r);return Math.round((s-l)/Up)}function t5(e,t){const n=vu(e,t),o=we(e,0);return o.setFullYear(n,0,4),o.setHours(0,0,0,0),an(o)}function n5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function o5(e){return!(!n5(e)&&typeof e!="number"||isNaN(+_e(e)))}function i5(e,t){const n=_e(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const a5={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r5=(e,t,n)=>{let o;const i=a5[e];return typeof i=="string"?o=i:t===1?o=i.one:o=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Ia(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const s5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},c5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u5={date:Ia({formats:s5,defaultWidth:"full"}),time:Ia({formats:c5,defaultWidth:"full"}),dateTime:Ia({formats:l5,defaultWidth:"full"})},d5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},h5=(e,t,n,o)=>d5[e];function Rn(e){return(t,n)=>{const o=n!=null&&n.context?String(n.context):"standalone";let i;if(o==="formatting"&&e.formattingValues){const r=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):r;i=e.formattingValues[s]||e.formattingValues[r]}else{const r=e.defaultWidth,s=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[r]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const m5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},f5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},_5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},g5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},p5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},b5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},v5={ordinalNumber:(e,t)=>{const n=Number(e),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Rn({values:m5,defaultWidth:"wide"}),quarter:Rn({values:f5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Rn({values:_5,defaultWidth:"wide"}),day:Rn({values:g5,defaultWidth:"wide"}),dayPeriod:Rn({values:p5,defaultWidth:"wide",formattingValues:b5,defaultFormattingWidth:"wide"})};function Vn(e){return(t,n={})=>{const o=n.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const r=a[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?w5(s,m=>m.test(r)):y5(s,m=>m.test(r));let d;d=e.valueCallback?e.valueCallback(l):l,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(r.length);return{value:d,rest:u}}}function y5(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function w5(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function x5(e){return(t,n={})=>{const o=t.match(e.matchPattern);if(!o)return null;const i=o[0],a=t.match(e.parsePattern);if(!a)return null;let r=e.valueCallback?e.valueCallback(a[0]):a[0];r=n.valueCallback?n.valueCallback(r):r;const s=t.slice(i.length);return{value:r,rest:s}}}const $5=/^(\d+)(th|st|nd|rd)?/i,S5=/\d+/i,C5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},T5={any:[/^b/i,/^(a|c)/i]},B5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},A5={any:[/1/i,/2/i,/3/i,/4/i]},k5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},M5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},E5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},j5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},D5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},N5={ordinalNumber:x5({matchPattern:$5,parsePattern:S5,valueCallback:e=>parseInt(e,10)}),era:Vn({matchPatterns:C5,defaultMatchWidth:"wide",parsePatterns:T5,defaultParseWidth:"any"}),quarter:Vn({matchPatterns:B5,defaultMatchWidth:"wide",parsePatterns:A5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Vn({matchPatterns:k5,defaultMatchWidth:"wide",parsePatterns:M5,defaultParseWidth:"any"}),day:Vn({matchPatterns:L5,defaultMatchWidth:"wide",parsePatterns:E5,defaultParseWidth:"any"}),dayPeriod:Vn({matchPatterns:j5,defaultMatchWidth:"any",parsePatterns:D5,defaultParseWidth:"any"})},wu={code:"en-US",formatDistance:r5,formatLong:u5,formatRelative:h5,localize:v5,match:N5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function P5(e,t){const n=_e(e,t==null?void 0:t.in);return e5(n,i5(n))+1}function xu(e,t){const n=_e(e,t==null?void 0:t.in),o=+an(n)-+t5(n);return Math.round(o/gu)+1}function Fa(e,t){var u,m,f,g;const n=_e(e,t==null?void 0:t.in),o=n.getFullYear(),i=on(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(f=i.locale)==null?void 0:f.options)==null?void 0:g.firstWeekContainsDate)??1,r=we((t==null?void 0:t.in)||e,0);r.setFullYear(o+1,0,a),r.setHours(0,0,0,0);const s=wt(r,t),l=we((t==null?void 0:t.in)||e,0);l.setFullYear(o,0,a),l.setHours(0,0,0,0);const d=wt(l,t);return+n>=+s?o+1:+n>=+d?o:o-1}function I5(e,t){var s,l,d,u;const n=on(),o=(t==null?void 0:t.firstWeekContainsDate)??((l=(s=t==null?void 0:t.locale)==null?void 0:s.options)==null?void 0:l.firstWeekContainsDate)??n.firstWeekContainsDate??((u=(d=n.locale)==null?void 0:d.options)==null?void 0:u.firstWeekContainsDate)??1,i=Fa(e,t),a=we((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,o),a.setHours(0,0,0,0),wt(a,t)}function $u(e,t){const n=_e(e,t==null?void 0:t.in),o=+wt(n,t)-+I5(n,t);return Math.round(o/gu)+1}function X(e,t){const n=e<0?"-":"",o=Math.abs(e).toString().padStart(t,"0");return n+o}const xt={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return X(t==="yy"?o%100:o,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):X(n+1,2)},d(e,t){return X(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return X(e.getHours()%12||12,t.length)},H(e,t){return X(e.getHours(),t.length)},m(e,t){return X(e.getMinutes(),t.length)},s(e,t){return X(e.getSeconds(),t.length)},S(e,t){const n=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,n-3));return X(i,t.length)}},rn={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Su={G:function(e,t,n){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const o=e.getFullYear(),i=o>0?o:1-o;return n.ordinalNumber(i,{unit:"year"})}return xt.y(e,t)},Y:function(e,t,n,o){const i=Fa(e,o),a=i>0?i:1-i;if(t==="YY"){const r=a%100;return X(r,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):X(a,t.length)},R:function(e,t){const n=vu(e);return X(n,t.length)},u:function(e,t){const n=e.getFullYear();return X(n,t.length)},Q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return X(o,2);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,n){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return X(o,2);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,n){const o=e.getMonth();switch(t){case"M":case"MM":return xt.M(e,t);case"Mo":return n.ordinalNumber(o+1,{unit:"month"});case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,n){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return X(o+1,2);case"Lo":return n.ordinalNumber(o+1,{unit:"month"});case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,n,o){const i=$u(e,o);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):X(i,t.length)},I:function(e,t,n){const o=xu(e);return t==="Io"?n.ordinalNumber(o,{unit:"week"}):X(o,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xt.d(e,t)},D:function(e,t,n){const o=P5(e);return t==="Do"?n.ordinalNumber(o,{unit:"dayOfYear"}):X(o,t.length)},E:function(e,t,n){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,n,o){const i=e.getDay(),a=(i-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return X(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,o){const i=e.getDay(),a=(i-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return X(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const o=e.getDay(),i=o===0?7:o;switch(t){case"i":return String(i);case"ii":return X(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(o,{width:"short",context:"formatting"});case"iiii":default:return n.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const o=e.getHours();let i;switch(o===12?i=rn.noon:o===0?i=rn.midnight:i=o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const o=e.getHours();let i;switch(o>=17?i=rn.evening:o>=12?i=rn.afternoon:o>=4?i=rn.morning:i=rn.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let o=e.getHours()%12;return o===0&&(o=12),n.ordinalNumber(o,{unit:"hour"})}return xt.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xt.H(e,t)},K:function(e,t,n){const o=e.getHours()%12;return t==="Ko"?n.ordinalNumber(o,{unit:"hour"}):X(o,t.length)},k:function(e,t,n){let o=e.getHours();return o===0&&(o=24),t==="ko"?n.ordinalNumber(o,{unit:"hour"}):X(o,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xt.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xt.s(e,t)},S:function(e,t){return xt.S(e,t)},X:function(e,t,n){const o=e.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Tu(o);case"XXXX":case"XX":return Ot(o);case"XXXXX":case"XXX":default:return Ot(o,":")}},x:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"x":return Tu(o);case"xxxx":case"xx":return Ot(o);case"xxxxx":case"xxx":default:return Ot(o,":")}},O:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Cu(o,":");case"OOOO":default:return"GMT"+Ot(o,":")}},z:function(e,t,n){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Cu(o,":");case"zzzz":default:return"GMT"+Ot(o,":")}},t:function(e,t,n){const o=Math.trunc(+e/1e3);return X(o,t.length)},T:function(e,t,n){return X(+e,t.length)}};function Cu(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),i=Math.trunc(o/60),a=o%60;return a===0?n+String(i):n+String(i)+t+X(a,2)}function Tu(e,t){return e%60===0?(e>0?"-":"+")+X(Math.abs(e)/60,2):Ot(e,t)}function Ot(e,t=""){const n=e>0?"-":"+",o=Math.abs(e),i=X(Math.trunc(o/60),2),a=X(o%60,2);return n+i+t+a}const Bu=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Au=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Oa={p:Au,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],o=n[1],i=n[2];if(!i)return Bu(e,t);let a;switch(o){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Bu(o,t)).replace("{{time}}",Au(i,t))}},F5=/^D+$/,O5=/^Y+$/,R5=["D","DD","YY","YYYY"];function ku(e){return F5.test(e)}function Mu(e){return O5.test(e)}function Ra(e,t,n){const o=V5(e,t,n);if(console.warn(o),R5.includes(e))throw new RangeError(o)}function V5(e,t,n){const o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const W5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q5=/^'([^]*?)'?$/,Y5=/''/g,z5=/[a-zA-Z]/;function We(e,t,n){var u,m,f,g;const o=on(),i=o.locale??wu,a=o.firstWeekContainsDate??((m=(u=o.locale)==null?void 0:u.options)==null?void 0:m.firstWeekContainsDate)??1,r=o.weekStartsOn??((g=(f=o.locale)==null?void 0:f.options)==null?void 0:g.weekStartsOn)??0,s=_e(e,n==null?void 0:n.in);if(!o5(s))throw new RangeError("Invalid time value");let l=t.match(H5).map(v=>{const p=v[0];if(p==="p"||p==="P"){const y=Oa[p];return y(v,i.formatLong)}return v}).join("").match(W5).map(v=>{if(v==="''")return{isToken:!1,value:"'"};const p=v[0];if(p==="'")return{isToken:!1,value:G5(v)};if(Su[p])return{isToken:!0,value:v};if(p.match(z5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:v}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const d={firstWeekContainsDate:a,weekStartsOn:r,locale:i};return l.map(v=>{if(!v.isToken)return v.value;const p=v.value;(Mu(p)||ku(p))&&Ra(p,t,String(e));const y=Su[p[0]];return y(s,p,i.localize,d)}).join("")}function G5(e){const t=e.match(q5);return t?t[1].replace(Y5,"'"):e}function U5(){return Object.assign({},on())}function K5(e,t){const n=_e(e,t==null?void 0:t.in).getDay();return n===0?7:n}function X5(e,t){const n=Q5(t)?new t(0):we(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function Q5(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}const J5=10;class Lu{constructor(){N(this,"subPriority",0)}validate(t,n){return!0}}class Z5 extends Lu{constructor(t,n,o,i,a){super(),this.value=t,this.validateValue=n,this.setValue=o,this.priority=i,a&&(this.subPriority=a)}validate(t,n){return this.validateValue(t,this.value,n)}set(t,n,o){return this.setValue(t,n,this.value,o)}}class eb extends Lu{constructor(n,o){super();N(this,"priority",J5);N(this,"subPriority",-1);this.context=n||(i=>we(o,i))}set(n,o){return o.timestampIsSet?n:we(n,X5(n,this.context))}}class K{run(t,n,o,i){const a=this.parse(t,n,o,i);return a?{setter:new Z5(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(t,n,o){return!0}}class tb extends K{constructor(){super(...arguments);N(this,"priority",140);N(this,"incompatibleTokens",["R","u","t","T"])}parse(n,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}set(n,o,i){return o.era=i,n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}const ue={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},tt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function de(e,t){return e&&{value:t(e.value),rest:e.rest}}function ne(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function nt(e,t){const n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};const o=n[1]==="+"?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,r=n[5]?parseInt(n[5],10):0;return{value:o*(i*Xp+a*Kp+r*Qp),rest:t.slice(n[0].length)}}function Eu(e){return ne(ue.anyDigitsSigned,e)}function ae(e,t){switch(e){case 1:return ne(ue.singleDigit,t);case 2:return ne(ue.twoDigits,t);case 3:return ne(ue.threeDigits,t);case 4:return ne(ue.fourDigits,t);default:return ne(new RegExp("^\\d{1,"+e+"}"),t)}}function ko(e,t){switch(e){case 1:return ne(ue.singleDigitSigned,t);case 2:return ne(ue.twoDigitsSigned,t);case 3:return ne(ue.threeDigitsSigned,t);case 4:return ne(ue.fourDigitsSigned,t);default:return ne(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Va(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ju(e,t){const n=t>0,o=n?t:1-t;let i;if(o<=50)i=e||100;else{const a=o+50,r=Math.trunc(a/100)*100,s=e>=a%100;i=e+r-(s?100:0)}return n?i:1-i}function Du(e){return e%400===0||e%4===0&&e%100!==0}class nb extends K{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(n,o,i){const a=r=>({year:r,isTwoDigitYear:o==="yy"});switch(o){case"y":return de(ae(4,n),a);case"yo":return de(i.ordinalNumber(n,{unit:"year"}),a);default:return de(ae(o.length,n),a)}}validate(n,o){return o.isTwoDigitYear||o.year>0}set(n,o,i){const a=n.getFullYear();if(i.isTwoDigitYear){const s=ju(i.year,a);return n.setFullYear(s,0,1),n.setHours(0,0,0,0),n}const r=!("era"in o)||o.era===1?i.year:1-i.year;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}}class ob extends K{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(n,o,i){const a=r=>({year:r,isTwoDigitYear:o==="YY"});switch(o){case"Y":return de(ae(4,n),a);case"Yo":return de(i.ordinalNumber(n,{unit:"year"}),a);default:return de(ae(o.length,n),a)}}validate(n,o){return o.isTwoDigitYear||o.year>0}set(n,o,i,a){const r=Fa(n,a);if(i.isTwoDigitYear){const l=ju(i.year,r);return n.setFullYear(l,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),wt(n,a)}const s=!("era"in o)||o.era===1?i.year:1-i.year;return n.setFullYear(s,0,a.firstWeekContainsDate),n.setHours(0,0,0,0),wt(n,a)}}class ib extends K{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(n,o){return ko(o==="R"?4:o.length,n)}set(n,o,i){const a=we(n,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),an(a)}}class ab extends K{constructor(){super(...arguments);N(this,"priority",130);N(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(n,o){return ko(o==="u"?4:o.length,n)}set(n,o,i){return n.setFullYear(i,0,1),n.setHours(0,0,0,0),n}}class rb extends K{constructor(){super(...arguments);N(this,"priority",120);N(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,o,i){switch(o){case"Q":case"QQ":return ae(o.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}validate(n,o){return o>=1&&o<=4}set(n,o,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class sb extends K{constructor(){super(...arguments);N(this,"priority",120);N(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(n,o,i){switch(o){case"q":case"qq":return ae(o.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}validate(n,o){return o>=1&&o<=4}set(n,o,i){return n.setMonth((i-1)*3,1),n.setHours(0,0,0,0),n}}class cb extends K{constructor(){super(...arguments);N(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);N(this,"priority",110)}parse(n,o,i){const a=r=>r-1;switch(o){case"M":return de(ne(ue.month,n),a);case"MM":return de(ae(2,n),a);case"Mo":return de(i.ordinalNumber(n,{unit:"month"}),a);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}validate(n,o){return o>=0&&o<=11}set(n,o,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}class lb extends K{constructor(){super(...arguments);N(this,"priority",110);N(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(n,o,i){const a=r=>r-1;switch(o){case"L":return de(ne(ue.month,n),a);case"LL":return de(ae(2,n),a);case"Lo":return de(i.ordinalNumber(n,{unit:"month"}),a);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}validate(n,o){return o>=0&&o<=11}set(n,o,i){return n.setMonth(i,1),n.setHours(0,0,0,0),n}}function ub(e,t,n){const o=_e(e,n==null?void 0:n.in),i=$u(o,n)-t;return o.setDate(o.getDate()-i*7),_e(o,n==null?void 0:n.in)}class db extends K{constructor(){super(...arguments);N(this,"priority",100);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(n,o,i){switch(o){case"w":return ne(ue.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return ae(o.length,n)}}validate(n,o){return o>=1&&o<=53}set(n,o,i,a){return wt(ub(n,i,a),a)}}function hb(e,t,n){const o=_e(e,n==null?void 0:n.in),i=xu(o,n)-t;return o.setDate(o.getDate()-i*7),o}class mb extends K{constructor(){super(...arguments);N(this,"priority",100);N(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(n,o,i){switch(o){case"I":return ne(ue.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return ae(o.length,n)}}validate(n,o){return o>=1&&o<=53}set(n,o,i){return an(hb(n,i))}}const fb=[31,28,31,30,31,30,31,31,30,31,30,31],_b=[31,29,31,30,31,30,31,31,30,31,30,31];class gb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"subPriority",1);N(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(n,o,i){switch(o){case"d":return ne(ue.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return ae(o.length,n)}}validate(n,o){const i=n.getFullYear(),a=Du(i),r=n.getMonth();return a?o>=1&&o<=_b[r]:o>=1&&o<=fb[r]}set(n,o,i){return n.setDate(i),n.setHours(0,0,0,0),n}}class pb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"subpriority",1);N(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(n,o,i){switch(o){case"D":case"DD":return ne(ue.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return ae(o.length,n)}}validate(n,o){const i=n.getFullYear();return Du(i)?o>=1&&o<=366:o>=1&&o<=365}set(n,o,i){return n.setMonth(0,i),n.setHours(0,0,0,0),n}}function Wa(e,t,n){var m,f,g,v;const o=on(),i=(n==null?void 0:n.weekStartsOn)??((f=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:f.weekStartsOn)??o.weekStartsOn??((v=(g=o.locale)==null?void 0:g.options)==null?void 0:v.weekStartsOn)??0,a=_e(e,n==null?void 0:n.in),r=a.getDay(),l=(t%7+7)%7,d=7-i,u=t<0||t>6?t-(r+d)%7:(l+d)%7-(r+d)%7;return bu(a,u,n)}class bb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(n,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,o){return o>=0&&o<=6}set(n,o,i,a){return n=Wa(n,i,a),n.setHours(0,0,0,0),n}}class vb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(n,o,i,a){const r=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(o){case"e":case"ee":return de(ae(o.length,n),r);case"eo":return de(i.ordinalNumber(n,{unit:"day"}),r);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}validate(n,o){return o>=0&&o<=6}set(n,o,i,a){return n=Wa(n,i,a),n.setHours(0,0,0,0),n}}class yb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(n,o,i,a){const r=s=>{const l=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+l};switch(o){case"c":case"cc":return de(ae(o.length,n),r);case"co":return de(i.ordinalNumber(n,{unit:"day"}),r);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}validate(n,o){return o>=0&&o<=6}set(n,o,i,a){return n=Wa(n,i,a),n.setHours(0,0,0,0),n}}function wb(e,t,n){const o=_e(e,n==null?void 0:n.in),i=K5(o,n),a=t-i;return bu(o,a,n)}class xb extends K{constructor(){super(...arguments);N(this,"priority",90);N(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(n,o,i){const a=r=>r===0?7:r;switch(o){case"i":case"ii":return ae(o.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return de(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiii":return de(i.day(n,{width:"narrow",context:"formatting"}),a);case"iiiiii":return de(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a);case"iiii":default:return de(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),a)}}validate(n,o){return o>=1&&o<=7}set(n,o,i){return n=wb(n,i),n.setHours(0,0,0,0),n}}class $b extends K{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(n,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,o,i){return n.setHours(Va(i),0,0,0),n}}class Sb extends K{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(n,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,o,i){return n.setHours(Va(i),0,0,0),n}}class Cb extends K{constructor(){super(...arguments);N(this,"priority",80);N(this,"incompatibleTokens",["a","b","t","T"])}parse(n,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}set(n,o,i){return n.setHours(Va(i),0,0,0),n}}class Tb extends K{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["H","K","k","t","T"])}parse(n,o,i){switch(o){case"h":return ne(ue.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return ae(o.length,n)}}validate(n,o){return o>=1&&o<=12}set(n,o,i){const a=n.getHours()>=12;return a&&i<12?n.setHours(i+12,0,0,0):!a&&i===12?n.setHours(0,0,0,0):n.setHours(i,0,0,0),n}}class Bb extends K{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(n,o,i){switch(o){case"H":return ne(ue.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return ae(o.length,n)}}validate(n,o){return o>=0&&o<=23}set(n,o,i){return n.setHours(i,0,0,0),n}}class Ab extends K{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["h","H","k","t","T"])}parse(n,o,i){switch(o){case"K":return ne(ue.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return ae(o.length,n)}}validate(n,o){return o>=0&&o<=11}set(n,o,i){return n.getHours()>=12&&i<12?n.setHours(i+12,0,0,0):n.setHours(i,0,0,0),n}}class kb extends K{constructor(){super(...arguments);N(this,"priority",70);N(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(n,o,i){switch(o){case"k":return ne(ue.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return ae(o.length,n)}}validate(n,o){return o>=1&&o<=24}set(n,o,i){const a=i<=24?i%24:i;return n.setHours(a,0,0,0),n}}class Mb extends K{constructor(){super(...arguments);N(this,"priority",60);N(this,"incompatibleTokens",["t","T"])}parse(n,o,i){switch(o){case"m":return ne(ue.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return ae(o.length,n)}}validate(n,o){return o>=0&&o<=59}set(n,o,i){return n.setMinutes(i,0,0),n}}class Lb extends K{constructor(){super(...arguments);N(this,"priority",50);N(this,"incompatibleTokens",["t","T"])}parse(n,o,i){switch(o){case"s":return ne(ue.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return ae(o.length,n)}}validate(n,o){return o>=0&&o<=59}set(n,o,i){return n.setSeconds(i,0),n}}class Eb extends K{constructor(){super(...arguments);N(this,"priority",30);N(this,"incompatibleTokens",["t","T"])}parse(n,o){const i=a=>Math.trunc(a*Math.pow(10,-o.length+3));return de(ae(o.length,n),i)}set(n,o,i){return n.setMilliseconds(i),n}}class jb extends K{constructor(){super(...arguments);N(this,"priority",10);N(this,"incompatibleTokens",["t","T","x"])}parse(n,o){switch(o){case"X":return nt(tt.basicOptionalMinutes,n);case"XX":return nt(tt.basic,n);case"XXXX":return nt(tt.basicOptionalSeconds,n);case"XXXXX":return nt(tt.extendedOptionalSeconds,n);case"XXX":default:return nt(tt.extended,n)}}set(n,o,i){return o.timestampIsSet?n:we(n,n.getTime()-Ao(n)-i)}}class Db extends K{constructor(){super(...arguments);N(this,"priority",10);N(this,"incompatibleTokens",["t","T","X"])}parse(n,o){switch(o){case"x":return nt(tt.basicOptionalMinutes,n);case"xx":return nt(tt.basic,n);case"xxxx":return nt(tt.basicOptionalSeconds,n);case"xxxxx":return nt(tt.extendedOptionalSeconds,n);case"xxx":default:return nt(tt.extended,n)}}set(n,o,i){return o.timestampIsSet?n:we(n,n.getTime()-Ao(n)-i)}}class Nb extends K{constructor(){super(...arguments);N(this,"priority",40);N(this,"incompatibleTokens","*")}parse(n){return Eu(n)}set(n,o,i){return[we(n,i*1e3),{timestampIsSet:!0}]}}class Pb extends K{constructor(){super(...arguments);N(this,"priority",20);N(this,"incompatibleTokens","*")}parse(n){return Eu(n)}set(n,o,i){return[we(n,i),{timestampIsSet:!0}]}}const Ib={G:new tb,y:new nb,Y:new ob,R:new ib,u:new ab,Q:new rb,q:new sb,M:new cb,L:new lb,w:new db,I:new mb,d:new gb,D:new pb,E:new bb,e:new vb,c:new yb,i:new xb,a:new $b,b:new Sb,B:new Cb,h:new Tb,H:new Bb,K:new Ab,k:new kb,m:new Mb,s:new Lb,S:new Eb,X:new jb,x:new Db,t:new Nb,T:new Pb},Fb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ob=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Rb=/^'([^]*?)'?$/,Vb=/''/g,Wb=/\S/,Hb=/[a-zA-Z]/;function Ha(e,t,n,o){var y,b,$,S;const i=()=>we(n,NaN),a=U5(),r=a.locale??wu,s=a.firstWeekContainsDate??((b=(y=a.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??1,l=a.weekStartsOn??((S=($=a.locale)==null?void 0:$.options)==null?void 0:S.weekStartsOn)??0;if(!t)return e?i():_e(n,o==null?void 0:o.in);const d={firstWeekContainsDate:s,weekStartsOn:l,locale:r},u=[new eb(o==null?void 0:o.in,n)],m=t.match(Ob).map(x=>{const w=x[0];if(w in Oa){const B=Oa[w];return B(x,r.formatLong)}return x}).join("").match(Fb),f=[];for(let x of m){Mu(x)&&Ra(x,t,e),ku(x)&&Ra(x,t,e);const w=x[0],B=Ib[w];if(B){const{incompatibleTokens:A}=B;if(Array.isArray(A)){const M=f.find(k=>A.includes(k.token)||k.token===w);if(M)throw new RangeError(`The format string mustn't contain \`${M.fullToken}\` and \`${x}\` at the same time`)}else if(B.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);f.push({token:w,fullToken:x});const C=B.run(e,x,r.match,d);if(!C)return i();u.push(C.setter),e=C.rest}else{if(w.match(Hb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(x==="''"?x="'":w==="'"&&(x=qb(x)),e.indexOf(x)===0)e=e.slice(x.length);else return i()}}if(e.length>0&&Wb.test(e))return i();const g=u.map(x=>x.priority).sort((x,w)=>w-x).filter((x,w,B)=>B.indexOf(x)===w).map(x=>u.filter(w=>w.priority===x).sort((w,B)=>B.subPriority-w.subPriority)).map(x=>x[0]);let v=_e(n,o==null?void 0:o.in);if(isNaN(+v))return i();const p={};for(const x of g){if(!x.validate(v,d))return i();const w=x.set(v,p,d);Array.isArray(w)?(v=w[0],Object.assign(p,w[1])):v=w}return v}function qb(e){return e.match(Rb)[1].replace(Vb,"'")}var Mo={},Nu;function Yb(){if(Nu)return Mo;Nu=1;var e=mt;return Mo.createRoot=e.createRoot,Mo.hydrateRoot=e.hydrateRoot,Mo}var Pu=Yb();const zb=({dateFormat:e="dd/mm/yyyy",size:t="md",minDate:n,maxDate:o,value:i,onChange:a,inputStartDate:r,inputEndDate:s,actionSheet:l,...d})=>{var he;const[u,m]=_.useState([null,null]),[f,g]=_.useState(!1),[v,p]=_.useState(null),[y,b]=_.useState(null),[$,S]=_.useState("start"),x=_.useRef($),w=_.useRef(null),B=_.useRef(null),{isMobile:A}=Lt();_.useEffect(()=>{if(i&&Array.isArray(i)){const T=I=>{if(!I)return null;if(typeof I=="number"){const U=new Date(I);return isNaN(U.getTime())?null:U}if(typeof I=="string"){const U=M(e),me=Ha(I,U,new Date);return isNaN(me.getTime())?null:me}return null};m([T(i[0]),T(i[1])])}},[i,e]);const C={sm:15,md:20,lg:35},M=T=>T.replace(/yyyy/g,"yyyy").replace(/yy/g,"yy").replace(/mm/g,"MM").replace(/dd/g,"dd"),k=T=>{if(!T)return;if(T instanceof Date)return T;const I=new Date(T);return isNaN(I.getTime())?void 0:I},P=T=>{S(T),g(!0)},O=T=>{var I,U;if(x.current=$,v&&y){const me=new Date(v);me.setMonth(me.getMonth()+2*T);const ge=new Date(y);ge.setMonth(ge.getMonth()+2*T),p(me),b(ge);const ve=x.current;setTimeout(()=>{S(ve)},100),x.current==="end"?(I=w.current)==null||I.focus():(U=B.current)==null||U.focus()}};_.useEffect(()=>{if(f){const T=document.querySelector(".quill-ui-next-calendar"),I=(U,me)=>{const ge=T==null?void 0:T.querySelector(U);if(ge){ge.innerHTML="";const ve=document.createElement("span");ge.appendChild(ve),Pu.createRoot(ve).render(me)}};I(".react-calendar__navigation__prev-button",c.jsx($e,{style:"tertiary",size:"sm",icon:c.jsx(un,{}),color:"blackWhite"})),I(".react-calendar__navigation__next-button",c.jsx($e,{size:"sm",style:"tertiary",icon:c.jsx(ln,{}),color:"blackWhite"}))}},[f]),Dt(B,()=>{g(!1)},["quill-ui-next-calendar-daterange-container","clear-btn"]);const q=u[0]&&u[1]?`${We(u[0],M(e))} - ${We(u[1],M(e))}`:"";_.useEffect(()=>{if(f){if(!v){const T=u[0]||new Date;p(new Date(T.getFullYear(),T.getMonth(),1))}if(!y){const T=u[0]||new Date,I=new Date(T.getFullYear(),T.getMonth()+1,1);b(I)}}},[f]);const Y=T=>{if(u[0]&&u[1]&&!z(u[0],u[1])){const I=new Date(T.getFullYear(),T.getMonth(),T.getDate()),U=new Date(u[0].getFullYear(),u[0].getMonth(),u[0].getDate()),me=new Date(u[1].getFullYear(),u[1].getMonth(),u[1].getDate());return I>U&&I<me}return!1},z=(T,I)=>T.getFullYear()===I.getFullYear()&&T.getMonth()===I.getMonth()&&T.getDate()===I.getDate(),E=(T,I)=>{if(I==="month"){if(u[0]&&u[1]&&z(u[0],u[1])&&z(T,u[0]))return"quill-ui-next-calendar-range-single";if(u[0]&&z(T,u[0]))return"quill-ui-next-calendar-range-start";if(u[1]&&z(T,u[1]))return"quill-ui-next-calendar-range-end";if(Y(T))return"quill-ui-next-calendar-in-range"}},L=T=>{var U,me;let I=null;if(Array.isArray(T)?I=T[0]instanceof Date?T[0]:null:T instanceof Date&&(I=T),!!I){if($==="start"){let ge=u[1];u[1]&&I>u[1]&&(ge=null),m([I,ge]),S("end"),(U=B.current)==null||U.click(),(me=B.current)==null||me.focus(),setTimeout(()=>{var ve,He;(ve=w.current)==null||ve.click(),(He=w.current)==null||He.focus()},100);return}if($==="end"){if(!u[0]){m([I,null]),S("end"),setTimeout(()=>{var H;(H=w.current)==null||H.focus()},0);return}if(u[0]&&!u[1]){if(I<u[0]){m([I,null]),setTimeout(()=>{var qe;S("end"),(qe=w.current)==null||qe.focus()},0);return}m([u[0],I]);const H=M(e),ot=We(u[0],H),Te=We(I,H);a==null||a([ot,Te]),A||setTimeout(()=>g(!1),100),setTimeout(()=>{var qe;(qe=w.current)==null||qe.focus()},0);return}if(I<u[0]){m([I,null]),setTimeout(()=>{var H;S("end"),(H=w.current)==null||H.focus()},0);return}m([u[0],I]);const ge=M(e),ve=We(u[0],ge),He=We(I,ge);a==null||a([ve,He]),A||setTimeout(()=>g(!1),100),setTimeout(()=>{var H;(H=w.current)==null||H.focus()},0);return}}},F=T=>{if(Array.isArray(T)&&T[0]instanceof Date&&T[1]instanceof Date){m([T[0],T[1]]);const I=M(e),U=We(T[0],I),me=We(T[1],I);a==null||a([U,me])}else T instanceof Date?m([T,null]):T||m([null,null])},R=()=>c.jsxs("div",{className:"quill-ui-next-calendar-daterange-container",children:[c.jsx($e,{className:"quill-ui-next-calendar-daterange-prev-button quill-ui-next-calendar-daterange-button",style:"tertiary",size:"sm",icon:c.jsx(un,{}),color:"blackWhite",onClick:()=>O(-1)}),c.jsxs("div",{className:"quill-ui-next-daterange-picker-calendar-box",children:[c.jsx(Bo,{value:u[0],onChange:T=>L(T),locale:"en-GB",showNeighboringMonth:!1,className:"quill-ui-next-calendar",minDate:k(n),maxDate:k(o),onActiveStartDateChange:({activeStartDate:T})=>{if(p(T),y&&T&&y.getFullYear()===T.getFullYear()&&y.getMonth()===T.getMonth()){const I=new Date(T);I.setMonth(I.getMonth()+1),b(I)}},activeStartDate:v||void 0,navigationLabel:void 0,prevLabel:null,nextLabel:null,minDetail:"month",maxDetail:"month",tileClassName:({date:T,view:I})=>E(T,I)}),c.jsx(Bo,{value:u[1],onChange:L,locale:"en-GB",showNeighboringMonth:!1,className:"quill-ui-next-calendar",minDate:k(n),maxDate:k(o),activeStartDate:y||void 0,navigationLabel:void 0,prevLabel:null,nextLabel:null,minDetail:"month",maxDetail:"month",onActiveStartDateChange:({activeStartDate:T})=>b(T),tileClassName:({date:T,view:I})=>E(T,I)})]}),c.jsx("div",{className:"quill-ui-next-daterange-picker-calendar-buttons",children:c.jsx(ye,{style:"secondary",size:"lg",label:"Today",color:"blackWhite",iconLeft:c.jsx(lr,{}),onClick:ee})}),c.jsx($e,{className:"quill-ui-next-calendar-daterange-next-button quill-ui-next-calendar-daterange-button",style:"tertiary",size:"sm",icon:c.jsx(ln,{}),color:"blackWhite",onClick:()=>O(1)})]}),j=u[0]?We(u[0],M(e)):"",W=u[1]?We(u[1],M(e)):"",Z=()=>m([u[0],null]),re=()=>{m([null,null]),a==null||a(["",""])},ee=()=>{const T=new Date,I=new Date(T.getFullYear(),T.getMonth(),1),U=new Date(T.getFullYear(),T.getMonth()+1,1);p(I),b(U)};_.useEffect(()=>{x.current=$},[$]);const se=()=>c.jsx("div",{className:"quill-ui-next-calendar-daterange-container",children:c.jsx(Bo,{selectRange:!0,value:u[0]&&u[1]?[u[0],u[1]]:u[0],onChange:F,locale:"en-GB",showNeighboringMonth:!1,className:"quill-ui-next-calendar",minDate:k(n),maxDate:k(o),navigationLabel:void 0,prevLabel:c.jsx($e,{style:"tertiary",size:"sm",icon:c.jsx(un,{}),color:"blackWhite"}),nextLabel:c.jsx($e,{size:"sm",style:"tertiary",icon:c.jsx(ln,{}),color:"blackWhite"}),minDetail:"decade",maxDetail:"month",tileClassName:({date:T,view:I})=>E(T,I)})});return c.jsx("div",{className:"quill-ui-next-daterange-picker-input-container",children:A?c.jsx(Le,{...d,size:t,allowTyping:!1,label:`${(r==null?void 0:r.label)||"From"} - ${(s==null?void 0:s.label)||"To"}`,placeholder:e,iconLeft:c.jsx(cr,{}),iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${f&&"quill-ui-next-rotate"}`}),iconExtra:f&&(u[0]||u[1])?c.jsx(Fo,{className:"clear-btn",onClick:re}):void 0,onChange:()=>{},onClick:()=>g(!0),value:q,className:`${d.state!=="disabled"&&"quill-ui-next-pointer"}`,customContent:c.jsx(Jt,{width:"fit-content",textAlignment:d.textAlignment,className:"quill-ui-next-daterange-picker-dropdown",parent:B,isOpen:f,offsetTop:d.variant==="labelless"?C[t]:36,onActionSheetClose:()=>g(!1),actionSheet:{...l,buttonPrimary:{label:((he=l==null?void 0:l.buttonPrimary)==null?void 0:he.label)||"Done",onClick:()=>{setTimeout(()=>{var T;g(!1),(T=l==null?void 0:l.onClose)==null||T.call(l)},100)}}},customContent:se()})}):c.jsxs(c.Fragment,{children:[c.jsx(Le,{ref:B,...d,size:t,allowTyping:!1,label:(r==null?void 0:r.label)||"From",placeholder:(r==null?void 0:r.placeholder)||e,iconLeft:c.jsx(lr,{}),iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${f&&"quill-ui-next-rotate"}`}),iconExtra:f&&u[0]?c.jsx(Fo,{className:"clear-btn",onClick:re}):void 0,messages:r==null?void 0:r.messages,message:r==null?void 0:r.message,indicator:r==null?void 0:r.indicator,onChange:()=>{},onClick:()=>P("start"),value:j,className:`${d.state!=="disabled"&&"quill-ui-next-pointer"}`,customContent:c.jsx(Jt,{width:"fit-content",textAlignment:d.textAlignment,className:"quill-ui-next-daterange-picker-dropdown",parent:B,isOpen:f,offsetTop:d.variant==="labelless"?C[t]:36,onActionSheetClose:()=>g(!1),customContent:R()})}),c.jsx(Le,{ref:w,...d,size:t,allowTyping:!1,label:(s==null?void 0:s.label)||"To",placeholder:(s==null?void 0:s.placeholder)||e,iconLeft:c.jsx(ch,{}),iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${f&&"quill-ui-next-rotate"}`}),iconExtra:f&&u[1]?c.jsx(Fo,{className:"clear-btn",onClick:Z}):void 0,messages:s==null?void 0:s.messages,message:s==null?void 0:s.message,indicator:s==null?void 0:s.indicator,onChange:()=>{},onClick:()=>P("end"),value:W,className:`${d.state!=="disabled"&&"quill-ui-next-pointer"}`})]})})},Gb=({dateFormat:e="dd/mm/yyyy",size:t="md",minDate:n,maxDate:o,...i})=>{const[a,r]=_.useState(i.value),[s,l]=_.useState(!1),d=_.useRef(null),u=_.useRef(e),m={sm:15,md:20,lg:35},f=b=>b.replace(/yyyy/g,"yyyy").replace(/yy/g,"yy").replace(/mm/g,"MM").replace(/dd/g,"dd"),g=b=>{if(!b)return;if(b instanceof Date)return b;const $=new Date(b);return isNaN($.getTime())?void 0:$},v=(b,$)=>{if(!b)return null;if(typeof b=="string"){const S=f($),x=Ha(b,S,new Date);return isNaN(x.getTime())?null:x}if(typeof b=="number"){const S=new Date(b);return isNaN(S.getTime())?null:S}return null},p=b=>{i.state!=="disabled"&&(b.target.closest(".quill-ui-next-calendar")||l(!s))},y=b=>{var x,w;const $=f(e),S=We(b,$);(x=d.current)==null||x.focus(),r(S),(w=i.onChange)==null||w.call(i,S),setTimeout(()=>{l(!1)},100)};return _.useEffect(()=>{if(s){const b=document.querySelector(".quill-ui-next-calendar"),$=(S,x)=>{const w=b==null?void 0:b.querySelector(S);if(w){w.innerHTML="";const B=document.createElement("span");w.appendChild(B),Pu.createRoot(B).render(x)}};$(".react-calendar__navigation__prev-button",c.jsx($e,{style:"tertiary",size:"sm",icon:c.jsx(un,{}),color:"blackWhite"})),$(".react-calendar__navigation__next-button",c.jsx($e,{size:"sm",style:"tertiary",icon:c.jsx(ln,{}),color:"blackWhite"}))}},[s]),_.useEffect(()=>{var b;if(a&&u.current!==e){const $=f(u.current),S=Ha(a,$,new Date);if(!isNaN(S.getTime())){const x=f(e),w=We(S,x);r(w),(b=i.onChange)==null||b.call(i,w)}u.current=e}},[e]),Dt(d,()=>{l(!1)},["quill-ui-next-calendar"]),c.jsx(Le,{ref:d,...i,size:t,allowTyping:!1,placeholder:e,iconLeft:c.jsx(cr,{}),iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${s&&"quill-ui-next-rotate"}`}),onChange:b=>{var $;r(b),($=i.onChange)==null||$.call(i,b)},onClick:p,value:a,className:`${i.state!=="disabled"&&"quill-ui-next-pointer"}`,customContent:c.jsx(Jt,{width:"fit-content",textAlignment:i.textAlignment,parent:d,isOpen:s,offsetTop:i.variant==="labelless"?m[t]:35,onActionSheetClose:()=>l(!1),customContent:c.jsx(Bo,{value:v(a,e),onChange:(b,$)=>{b instanceof Date&&y(b)},locale:"en-GB",showNeighboringMonth:!1,className:"quill-ui-next-calendar",minDate:g(n),maxDate:g(o)})})})},ut={iconLeft:"Chip-module__iconLeft___3ijFS",label:"Chip-module__label___zrfu7",labelTag:"Chip-module__labelTag___c8Llc",counterLabel:"Chip-module__counterLabel___ASa8Q",iconChevron:"Chip-module__iconChevron___7XGMa",bgFocus:"Chip-module__bgFocus___ouks-",chip:"Chip-module__chip___G79EL",root:"Chip-module__root___8Tyvf",iconClose:"Chip-module__iconClose___DC-oY"},Iu=_.forwardRef(({className:e="",itemSelected:t=!1,size:n="sm",state:o="default",label:i="Label",labelTag:a,variant:r="dropdown",type:s="singleSelect",icon:l,onClick:d,onChange:u,selected:m=[],options:f=[]},g)=>{const[v,p]=_.useState(!1),[y,b]=_.useState(o),[$,S]=_.useState(t),[x,w]=_.useState(o==="expand"),[B,A]=_.useState(f),[C,M]=_.useState(m),P={sm:"sm",md:"md",lg:"md"}[n],O=_.useRef(null),q=`quill-chip-dropdown-${r}-${o}-${n}-${$?"selected":"unselected"}`,{handleFocus:Y,handleBlur:z}=Ae({isDisabled:o==="disabled",setHighlight:p}),{isInsideActionSheet:E}=yl(),L=j=>{if(o==="disabled"||r==="dismissable")return;if(j){const he=j.target;if(E(he))return}const W=j==null?void 0:j.target,Z=W==null?void 0:W.closest(".quill-ui-next-dropdown-container"),ee=s!=="multiSelect"||!Z?y!=="expand":!0,se=r==="selectable"?!0:ee;b(ee?"expand":"default"),S(se),d==null||d()},F=xl(L),R=()=>{o==="disabled"||r!=="dropdown"||S(!1)};return Dt(O,R),_.useEffect(()=>{b(o)},[o]),_.useEffect(()=>{w(y==="expand")},[y]),_.useEffect(()=>{S(t)},[t]),c.jsxs("div",{ref:O,className:[ut.root,"quill-ui-next-component","quill-ui-next-no-select",o!=="disabled"&&"quill-ui-next-pointer",e].join(" "),"data-id":q,"data-itemSelected":$,"data-size":n,"data-state":y,tabIndex:o==="disabled"?-1:0,onFocus:Y,onBlur:z,onClick:L,onKeyDown:F,children:[c.jsxs("div",{className:ut.chip,children:[l&&c.jsx("div",{className:`${ut.iconLeft} chip-dropdown-icon`,children:l&&l}),c.jsx("div",{className:ut.label,children:s==="singleSelect"&&C&&!Array.isArray(C)&&(C==null?void 0:C.label)||i}),a&&c.jsx("b",{className:ut.labelTag,children:a}),r==="dropdown"&&s==="multiSelect"&&Array.isArray(C)&&C.length>0&&c.jsxs("div",{className:ut.counterLabel,children:["(",C.length,")"]}),r==="dropdown"&&c.jsx("div",{className:`${ut.iconChevron} chip-dropdown-icon`,children:c.jsx(wm,{className:`quill-ui-next-rotatable ${x&&"quill-ui-next-rotate"}`,iconSize:"sm"})}),r==="dismissable"&&c.jsx(Md,{className:ut.iconClose}),v&&c.jsx("div",{className:ut.bgFocus})]}),r==="dropdown"&&c.jsx(Jt,{offsetTop:5,parent:O,isOpen:x,data:B,multiple:s==="multiSelect",containerSize:n,itemSize:P,selected:C,onChange:j=>{u==null||u(j),M(j),s==="singleSelect"&&(b("default"),S(!1))},onActionSheetClose:R})]})}),Ub=e=>c.jsx(Iu,{...e,variant:"dropdown"}),Fu=e=>c.jsx(Iu,{...e});Fu.displayName="Chip";const xe={placeholderImage169:"CardBasicVertical-module__placeholderImage169___vNvC5",iconLeft:"CardBasicVertical-module__iconLeft___4oDGV",containerIcon:"CardBasicVertical-module__containerIcon___y3Yzj",iconRight:"CardBasicVertical-module__iconRight___fNODQ",subtitle:"CardBasicVertical-module__subtitle___wvbXU",title:"CardBasicVertical-module__title___cqEw0",titlesubtitle:"CardBasicVertical-module__titlesubtitle___4LgVE",description:"CardBasicVertical-module__description___t0VCP",containerContent:"CardBasicVertical-module__containerContent___kx1zH",customIcon:"CardBasicVertical-module__customIcon___U70FV",label:"CardBasicVertical-module__label___THqE2",actionLink:"CardBasicVertical-module__actionLink___Fx5ow",iconChevron:"CardBasicVertical-module__iconChevron___8wdpK",actionHorizontalButton:"CardBasicVertical-module__actionHorizontalButton___6Q7eR",actionVerticalButton:"CardBasicVertical-module__actionVerticalButton___b3wBb",containerBody:"CardBasicVertical-module__containerBody___h9ppH",bgFocus4:"CardBasicVertical-module__bgFocus4___-Zp8u",root:"CardBasicVertical-module__root___MpC01"},be={placeholderImage11:"CardBasicHorizontal-module__placeholderImage11___96KwN",iconLeft:"CardBasicHorizontal-module__iconLeft___EjZa3",iconRight:"CardBasicHorizontal-module__iconRight___4fdUR",containerIcon:"CardBasicHorizontal-module__containerIcon___cOfgz",subtitle:"CardBasicHorizontal-module__subtitle___2mLm-",title:"CardBasicHorizontal-module__title___ypcyW",titlesubtitle:"CardBasicHorizontal-module__titlesubtitle___h5n83",description:"CardBasicHorizontal-module__description___VrW7t",containerContent:"CardBasicHorizontal-module__containerContent___P-dcN",customIcon:"CardBasicHorizontal-module__customIcon___0lqK3",label:"CardBasicHorizontal-module__label___Dbwl4",actionLink:"CardBasicHorizontal-module__actionLink___qJSVT",iconChevron:"CardBasicHorizontal-module__iconChevron___B5cRS",actionHorizontalButton:"CardBasicHorizontal-module__actionHorizontalButton___DgROF",actionVerticalButton:"CardBasicHorizontal-module__actionVerticalButton___KY5KM",containerBody:"CardBasicHorizontal-module__containerBody___VmhRY",containerContentaction:"CardBasicHorizontal-module__containerContentaction___dxhY6",bgFocus4:"CardBasicHorizontal-module__bgFocus4___jpVQi",root:"CardBasicHorizontal-module__root___fb0Gz"},Ou=({className:e="",size:t="sm",state:n="default",type:o="elevate",title:i,subtitle:a,description:r="Your description goes here.",image:s,showFocusRing:l=!1,iconLeft:d,iconRight:u,linkLabel:m,linkIcon:f,linkOnClick:g,primaryVerticalButton:v,secondaryVerticalButton:p,primaryHorizontalButton:y,secondaryHorizontalButton:b,layout:$,renderLayout:S})=>{const x=`quill-card-${$}-${t}-${n}-${o}`,[w,B]=_.useState(l),A=n!=="disabled",{handleFocus:C,handleBlur:M}=Ae({isDisabled:!A,setHighlight:B});return S({cardId:x,className:e,size:t,state:n,type:o,focus:w,handleFocus:C,handleBlur:M,isClickable:A,title:i,subtitle:a,description:r,image:s,iconLeft:d,iconRight:u,linkLabel:m,linkIcon:f,linkOnClick:g,primaryVerticalButton:v,secondaryVerticalButton:p,primaryHorizontalButton:y,secondaryHorizontalButton:b})},Kb=({cardId:e,className:t,size:n,state:o,type:i,focus:a,handleFocus:r,handleBlur:s,isClickable:l,title:d,subtitle:u,description:m,image:f,iconLeft:g,iconRight:v,linkLabel:p,linkIcon:y,linkOnClick:b,primaryVerticalButton:$,secondaryVerticalButton:S,primaryHorizontalButton:x,secondaryHorizontalButton:w})=>c.jsxs("div",{className:[xe.root,t,l?"quill-ui-next-component":""].join(" "),"data-size":n,"data-state":o,"data-type":i,"data-id":e,role:l?"button":void 0,tabIndex:l?0:void 0,onFocus:r,onBlur:s,children:[f&&c.jsx("img",{className:xe.placeholderImage169,alt:"",src:f}),c.jsxs("div",{className:xe.containerBody,children:[(g||v)&&c.jsxs("div",{className:xe.containerIcon,children:[g&&c.jsx("div",{className:`${xe.iconLeft} card-icon`,children:g}),v&&c.jsx("div",{className:`${xe.iconRight} card-icon`,children:v})]}),c.jsx("div",{className:xe.containerContent,children:(d||u)&&c.jsxs("div",{className:xe.titlesubtitle,children:[d&&c.jsx("b",{className:xe.title,children:d}),u&&c.jsx("div",{className:xe.subtitle,children:u}),c.jsx("div",{className:xe.description,children:m})]})}),p&&c.jsxs("div",{className:`${xe.actionLink} ${b?"quill-ui-next-pointer":""}`,onClick:b,children:[y&&c.jsx("div",{className:`${xe.customIcon} card-icon`,children:y}),c.jsx("div",{className:xe.label,children:p}),c.jsx("div",{className:`${xe.iconChevron} card-icon`,children:c.jsx(cn,{})})]}),(x||w)&&c.jsxs("div",{className:xe.actionHorizontalButton,children:[w&&c.jsx(ye,{...w,style:"secondary",width:"fill container",size:n,color:"blackWhite"}),x&&c.jsx(ye,{...x,style:"primary",width:"fill container",size:n,color:"blackWhite"})]}),($||S)&&c.jsxs("div",{className:xe.actionVerticalButton,children:[S&&c.jsx(ye,{...S,style:"secondary",width:"fill container",size:n,color:"blackWhite"}),$&&c.jsx(ye,{...$,style:"primary",width:"fill container",size:n,color:"blackWhite"})]})]}),a&&c.jsx("div",{className:xe.bgFocus4})]}),Xb=e=>c.jsx(Ou,{...e,layout:"vertical",renderLayout:t=>c.jsx(Kb,{...t})}),Qb=({cardId:e,className:t,size:n,state:o,type:i,focus:a,handleFocus:r,handleBlur:s,isClickable:l,title:d,subtitle:u,description:m,image:f,iconLeft:g,iconRight:v,linkLabel:p,linkIcon:y,linkOnClick:b,primaryVerticalButton:$,secondaryVerticalButton:S,primaryHorizontalButton:x,secondaryHorizontalButton:w})=>c.jsxs("div",{className:[be.root,t,l?"quill-ui-next-component":""].join(" "),"data-size":n,"data-state":o,"data-type":i,"data-id":e,role:l?"button":void 0,tabIndex:l?0:void 0,onFocus:r,onBlur:s,children:[f&&c.jsx("img",{className:be.placeholderImage11,alt:"",src:f}),c.jsxs("div",{className:be.containerBody,children:[(g||v)&&c.jsxs("div",{className:be.containerIcon,children:[g&&c.jsx("div",{className:`${be.iconLeft} card-icon`,children:g}),v&&c.jsx("div",{className:`${be.iconRight} card-icon`,children:v})]}),c.jsxs("div",{className:be.containerContentaction,children:[c.jsx("div",{className:be.containerContent,children:(d||u)&&c.jsxs("div",{className:be.titlesubtitle,children:[d&&c.jsx("b",{className:be.title,children:d}),u&&c.jsx("div",{className:be.subtitle,children:u}),c.jsx("div",{className:be.description,children:m})]})}),p&&c.jsxs("div",{className:`${be.actionLink} ${b?"quill-ui-next-pointer":""}`,onClick:b,children:[y&&c.jsx("div",{className:`${be.customIcon} card-icon`,children:y}),c.jsx("div",{className:be.label,children:p}),c.jsx("div",{className:`${be.iconChevron} card-icon`,children:c.jsx(cn,{})})]}),(x||w)&&c.jsxs("div",{className:be.actionHorizontalButton,children:[w&&c.jsx(ye,{...w,style:"secondary",width:"fill container",size:n,color:"blackWhite"}),x&&c.jsx(ye,{...x,style:"primary",width:"fill container",size:n,color:"blackWhite"})]}),($||S)&&c.jsxs("div",{className:be.actionVerticalButton,children:[S&&c.jsx(ye,{...S,style:"secondary",width:"fill container",size:n,color:"blackWhite"}),$&&c.jsx(ye,{...$,style:"primary",width:"fill container",size:n,color:"blackWhite"})]})]})]}),a&&c.jsx("div",{className:be.bgFocus4})]}),Jb=e=>c.jsx(Ou,{...e,layout:"horizontal",renderLayout:t=>c.jsx(Qb,{...t})}),dt={icon:"PurchaseButton-module__icon___9NIYN",iconLoading:"PurchaseButton-module__iconLoading___HMCg4",label:"PurchaseButton-module__label___sQK87",title:"PurchaseButton-module__title___pkFq9",details:"PurchaseButton-module__details___XS-PE",value:"PurchaseButton-module__value___Ad-Js",description:"PurchaseButton-module__description___eiSdD",containerContent:"PurchaseButton-module__containerContent___zdxqN",root:"PurchaseButton-module__root___1T0iC"},Zb=({className:e="",state:t="default",type:n="buy",label:o="Payout",title:i="Title",value:a="Value",showContent:r=!0,onClick:s})=>c.jsxs("div",{className:[dt.root,e,t==="default"?"quill-ui-next-pointer":""].join(" "),"data-state":t,"data-type":n,role:"button",tabIndex:t==="loading"||t==="disabled"?-1:0,onClick:l=>t!=="loading"&&t!=="disabled"&&(s==null?void 0:s(l)),children:[t==="loading"&&c.jsx("div",{className:[dt.iconLoading,"quill-ui-next-spinner"].join(" "),children:c.jsx("div",{className:dt.icon,children:c.jsx(mr,{fill:"var(--component-button-label-color-buy-primary)"})})}),!!r&&c.jsxs("div",{className:dt.containerContent,children:[c.jsx("div",{className:dt.title,children:c.jsx("div",{className:dt.label,children:i})}),c.jsxs("div",{className:dt.description,children:[c.jsx("div",{className:dt.details,children:o}),c.jsx("div",{className:dt.value,children:a})]})]})]}),Ru=({id:e,name:t,label:n="Label",iconLeft:o,iconRight:i,button:a,state:r,hideButton:s=!1,indicator:l="neutral",buttonPosition:d="bottom",variant:u="labelled",size:m="lg",...f})=>{const g=u==="labelled"||m==="lg"?"md":m,[v,p]=_.useState(!1),y=()=>c.jsx(c.Fragment,{children:!s&&l!=="fail"&&l!=="success"&&c.jsx(ye,{state:v?r:"disabled",label:"Label",...a,className:`quill-ui-next-textfield-button ${d==="right"?"right":"bottom"} ${u} ${m} ${a==null?void 0:a.className}`,size:g,style:"primary",width:d==="right"?"hug content":"fill container",color:"blackWhite"})});return c.jsx(Le,{id:e,name:t,...f,size:m,variant:u,indicator:l,state:r,label:n,iconLeft:o,iconRight:l!=="fail"&&l!=="success"&&i,contentRight:d==="right"&&c.jsx(y,{}),customInnerContent:d==="bottom"&&c.jsx(y,{}),onFocus:()=>p(!0),onBlur:()=>p(!1)})};Ru.displayName="TextFieldGroupButton";const Vu=({labelLeft:e="Label",labelRight:t="Label",icon:n,...o})=>c.jsx(Le,{...o,labelLeft:e,labelRight:t,iconRight:n,isGroup:!0});Vu.displayName="TextFieldGroupAddon";const e3={hidden:{opacity:0,maxHeight:0,transition:{duration:.2},display:"none"},visible:{opacity:1,maxHeight:"500px",transition:{duration:.2},display:"block"}};function Wu(e,t,n="sm"){const o=n==="sm"?32:48;e.scrollTo({top:o*t,behavior:"smooth"})}const t3=({className:e="",width:t="200px",parent:n,isOpen:o=!1,data:i=[],itemSize:a="sm",itemWidth:r="fill",selected:s=[],offsetTop:l=0,textAlignment:d="left",onChange:u,actionsheet:m,customContent:f})=>{const{isDesktop:g}=Lt(),v=_.useRef(null),[p,y]=_.useState(0),[b,$]=_.useState(!1),[S,x]=_.useState(s),w=_.useRef(null),B=_.useRef(null),A=_.useRef([]),C=_.useRef(null);let M;a==="sm"?M="177px":a==="md"&&(M="258px");const k=_.useMemo(()=>({overflow:"hidden",maxHeight:M,width:t,top:`${p}px`}),[M,p]);_.useEffect(()=>{if(n.current&&o){const E=n.current.getBoundingClientRect().height+l;y(E)}},[n,o]),_.useEffect(()=>{S&&Array.isArray(S)&&o&&!b&&(setTimeout(()=>{$(!0)},300),setTimeout(()=>{S.forEach((E,L)=>{var R,j;const F=(j=(R=i[L])==null?void 0:R.items)==null?void 0:j.findIndex(W=>W.value===E.value);if(F!==void 0&&F>=0){const W=document.querySelector(`.wheelpicker-container-list[data-list-index="${L}"]`);W&&Wu(W,F,a)}})},10))},[S,o]);const P=E=>{if(!o||!B.current)return;const L=B.current,F=a==="sm"?32:48;let R,j=()=>{};switch(typeof E=="string"?R=E:(R=E.key,j=()=>E.preventDefault()),R){case"ArrowUp":j(),L.scrollBy({top:-F,behavior:"smooth"});break;case"ArrowDown":j(),L.scrollBy({top:F,behavior:"smooth"});break;case"PageUp":j(),L.scrollBy({top:-F*5,behavior:"smooth"});break;case"PageDown":j(),L.scrollBy({top:F*5,behavior:"smooth"});break;case"ArrowLeft":j(),z("left");break;case"ArrowRight":j(),z("right");break}};_.useEffect(()=>{const E=L=>{P(L)};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[o,B]);const O=({label:E,value:L,iconLeft:F,iconRight:R,className:j,itemKey:W,state:Z="default"},re)=>{const ee=!Array.isArray(S)&&(S==null?void 0:S.value)===L;return console.log({textAlignment:d}),c.jsx(Qt,{className:j,size:a,width:r,label:E,value:L,type:"text",textAlignment:d,state:Z,itemKey:W,selected:ee,onClick:()=>{const se=document.querySelector(re);se instanceof HTMLDivElement&&W!==void 0&&Wu(se,W,a)},iconLeft:F,iconRight:R},`item-${E}-${L}`)},q=()=>(C.current=setInterval(()=>{var L;const E=(L=w.current)==null?void 0:L.querySelectorAll(".wheelpicker-container-list");if(E){E.forEach(j=>{const W=Array.from(j.getElementsByClassName("active-item")),Z=j.getBoundingClientRect(),re=Z.top+Z.height/2;let ee=null,se=1/0;W.forEach(he=>{const T=he.getBoundingClientRect(),I=T.top+T.height/2,U=Math.abs(I-re);U<se&&(se=U,ee=he)}),ee&&W.forEach(he=>{const T=he===ee?"default":"disabled";he.getAttribute("data-state")!==T&&he.setAttribute("data-state",T)})});const F=Array.from(E).map(j=>{const W=Array.from(j.getElementsByClassName("active-item")),Z=j.getBoundingClientRect(),re=Z.top+Z.height/2;let ee=null,se=1/0;if(W.forEach(he=>{const T=he.getBoundingClientRect(),I=T.top+T.height/2,U=Math.abs(I-re);U<se&&(se=U,ee=he)}),ee)return{label:ee.getAttribute("data-item-label")||"",value:ee.getAttribute("data-item-value")||""}}).filter(j=>!!j);if(!(A.current.length===F.length&&A.current.every((j,W)=>j.label===F[W].label&&j.value===F[W].value))&&F.length>0){x(F),A.current=F;const j=F.some(W=>W.label!==""||W.value!=="");u&&j&&u(F)}}},10),()=>{C.current&&(clearInterval(C.current),C.current=null)}),Y=()=>f||c.jsx("div",{className:`${De.wheelpickerContainer} wheelpicker-container`,"data-size":a,ref:w,children:i==null?void 0:i.map(({items:E,extra:L},F)=>c.jsxs("div",{"data-size":a,"data-list-index":F,className:`${De.wheelpickerList} wheelpicker-container-list wheelpicker-container-list-${F}`,onMouseOver:R=>{const j=R.currentTarget;j!==B.current&&(B.current=j)},children:[L&&c.jsx("span",{className:`item-list-extra ${De.itemListExtra}`,children:L}),c.jsx(Qt,{className:De.wheelpickerItem,size:a,label:"",noFocus:!0,width:r}),c.jsx(Qt,{size:a,label:"",className:De.wheelpickerItem,noFocus:!0,width:r}),E.length>0&&E.map((R,j)=>O({...R,className:`${De.wheelpickerItem} active-item`,itemKey:j},`.wheelpicker-container-list-${F}`)),c.jsx(Qt,{size:a,label:"",className:De.wheelpickerItem,noFocus:!0,width:r}),c.jsx(Qt,{size:a,label:"",className:De.wheelpickerItem,width:r})]},F))});_.useEffect(()=>{if(b){const E=q();return()=>{E()}}},[b]),_.useEffect(()=>{o||C.current&&(clearInterval(C.current),C.current=null,$(!1))},[o]),_.useEffect(()=>{const E=document.querySelectorAll(".wheelpicker-container-list"),L=F=>{const R=F.currentTarget,{scrollTop:j,scrollHeight:W,clientHeight:Z}=R,re=F.deltaY>0;(re&&j+Z>=W||!re&&j<=0)&&F.preventDefault()};return E.forEach(F=>{F.addEventListener("wheel",L,{passive:!1})}),()=>{E.forEach(F=>{F.removeEventListener("wheel",L)})}},[b]);const z=E=>{var F;if(!B.current)return;let L=E==="left"?B.current.previousElementSibling:B.current.nextElementSibling;for(;L&&!L.classList.contains("wheelpicker-container-list");)L=E==="left"?L.previousElementSibling:L.nextElementSibling;L&&L.classList.contains("wheelpicker-container-list")&&(B.current=L,(F=L.focus)==null||F.call(L))};return o&&(i.length>0||f)&&c.jsx(c.Fragment,{children:g?c.jsx(no,{children:c.jsx(Mn.div,{ref:v,className:[De.inputsDropdownListChe,"quill-ui-next-dropdown-container",e].join(" "),style:k,initial:"hidden",animate:"visible",exit:"hidden",variants:e3,children:Y()})}):c.jsx(mo,{showHeader:!1,...m,show:o,showSearchBar:!1,content:Y(),type:"bottom",onClose:m==null?void 0:m.onClose,buttonPrimary:{label:"Done",onClick:()=>{var E;(E=m==null?void 0:m.onClose)==null||E.call(m)}}})})},qa=({className:e,label:t="label",placeholder:n="Select an option",message:o,indicator:i,state:a,type:r,size:s="md",itemSize:l="sm",itemWidth:d="fill",textAlignment:u="left",iconLeft:m,labelLeft:f,isRequired:g,optionalText:v,containerRef:p,selected:y,actionsheet:b,customValue:$,onChange:S,onClick:x,data:w=[],variant:B="labelled"})=>{const[A,C]=_.useState(!1),M=_.useRef(null),k=_.useRef(null),P=p||M,[O,q]=_.useState(y),Y=z=>{const{isPortalClick:E}=fo(P);if(E(z)||a==="disabled")return;z.target.closest(".wheelpicker-container")?C(!0):C(!A),x==null||x()};return Dt(P,()=>{C(!1)},["wheelpicker-container"]),c.jsx(Le,{ref:k,containerRef:P,label:t,placeholder:n,message:o,className:`quill-ui-next-pointer ${e}`,allowTyping:!1,onClick:z=>Y(z),iconRight:c.jsx($t,{className:`quill-ui-next-rotatable ${A&&"quill-ui-next-rotate"}`}),indicator:i,state:a,type:r,size:s,textAlignment:u,iconLeft:m,labelLeft:f,isRequired:g,optionalText:v,variant:B,value:$||(O==null?void 0:O.map(z=>z.label).join(" ")),customContent:c.jsx(t3,{width:"100%",offsetTop:4,textAlignment:u,parent:P,isOpen:A,itemSize:l,itemWidth:d,data:w,containerSize:"md",selected:O,actionsheet:{onClose:()=>C(!1),...b},onChange:z=>{var E;S==null||S(z),q(z),(E=k.current)==null||E.focus()}})})};qa.displayName="GenericWheelpicker";const Hu=({format:e="12",selected:t,...n})=>{var s;const o=_.useMemo(()=>{const l=e==="24"?Array.from({length:24},(m,f)=>({label:String(f).padStart(2,"0"),value:String(f).padStart(2,"0")})):Array.from({length:12},(m,f)=>({label:String(f+1).padStart(2,"0"),value:String(f+1).padStart(2,"0")})),d=Array.from({length:60},(m,f)=>({label:String(f).padStart(2,"0"),value:String(f).padStart(2,"0")})),u=e==="12"?[{label:"AM",value:"AM"},{label:"PM",value:"PM"}]:void 0;return u?[{items:l},{items:d,extra:":"},{items:u}]:[{items:l},{items:d,extra:":"}]},[e]),i=_.useMemo(()=>{var m;const l=o[0].items,d=o[1].items,u=(m=o[2])==null?void 0:m.items;return u?[l[0],d[0],u[0]]:[l[0],d[0]]},[o]),[a,r]=_.useState(i);return c.jsx(qa,{textAlignment:"center",...n,data:o,selected:t||i,customValue:`${a[0].label}:${a[1].label} ${(s=a[2])==null?void 0:s.label}`,onChange:l=>r(l),itemWidth:"fit-content"})};Hu.displayName="TimeWheelpicker";const qu=["January","February","March","April","May","June","July","August","September","October","November","December"],n3=Array.from({length:31},(e,t)=>String(t+1)),Yu=(e,t)=>new Date(e,t+1,0).getDate(),o3=(e,t)=>{const n=[];for(let o=e.getFullYear();o<=t.getFullYear();o++)n.push(o);return n},zu=({minDate:e,maxDate:t,selected:n,monthsList:o,daysList:i,...a})=>{var A,C;const r=new Date,s=e?new Date(e):new Date(r.getFullYear()-100,0,1),l=t?new Date(t):new Date(r.getFullYear()+10,11,31),[d,u]=_.useState(()=>n&&n.length===3?n:[{label:String(r.getDate()),value:String(r.getDate())},{label:qu[r.getMonth()],value:String(r.getMonth())},{label:String(r.getFullYear()),value:String(r.getFullYear())}]),m=((A=d[1])==null?void 0:A.value)!==void 0?Number(d[1].value):r.getMonth(),f=((C=d[2])==null?void 0:C.value)!==void 0?Number(d[2].value):r.getFullYear(),g=o&&o.length===12?o:qu,v=i&&i.length>=28?i:n3,p=_.useMemo(()=>o3(s,l).map(M=>({label:String(M),value:String(M)})),[s,l]),y=_.useMemo(()=>{let M=0,k=11;return f===s.getFullYear()&&(M=s.getMonth()),f===l.getFullYear()&&(k=l.getMonth()),g.slice(M,k+1).map((P,O)=>({label:P,value:String(O+M)}))},[f,s,l,g]),b=_.useMemo(()=>{let M=Yu(f,m),k=1,P=M;return f===s.getFullYear()&&m===s.getMonth()&&(k=s.getDate()),f===l.getFullYear()&&m===l.getMonth()&&(P=l.getDate()),Array.from({length:P-k+1},(O,q)=>({label:v[q+k-1]||String(q+k),value:String(q+k)}))},[f,m,s,l,v]),$=_.useMemo(()=>[{items:b},{items:y},{items:p}],[b,y,p]),S=b.find(M=>{var k;return M.value===((k=d[0])==null?void 0:k.value)}),x=y.find(M=>{var k;return M.value===((k=d[1])==null?void 0:k.value)}),w=p.find(M=>{var k;return M.value===((k=d[2])==null?void 0:k.value)}),B=`${(S==null?void 0:S.label)||"--"} ${(x==null?void 0:x.label)||"--"} ${(w==null?void 0:w.label)||"--"}`;return _.useEffect(()=>{var q;const M=Yu(f,m);let k=1,P=M;f===s.getFullYear()&&m===s.getMonth()&&(k=s.getDate()),f===l.getFullYear()&&m===l.getMonth()&&(P=l.getDate());const O=Number((q=d[0])==null?void 0:q.value);(O<k||O>P)&&u([{label:String(P),value:String(P)},d[1],d[2]])},[f,m,s,l]),c.jsx(qa,{...a,data:$,selected:d,customValue:B,onChange:M=>u(M),itemWidth:"fill",textAlignment:"center"})};zu.displayName="DateWheelpicker";const Gu=({maxValue:e=1e3,minValue:t=0,decimalPlaces:n=0,value:o,variant:i="labelled",state:a,onChange:r,increment:s=1,split:l=!1,...d})=>{const[u,m]=_.useState(o??0),f=w=>{const B=g(w);m(B),r==null||r(B)},g=w=>{if(w===null||w===""||isNaN(Number(w)))return 0;let B=Number(w);return!Number.isFinite(B)||B>e?e:B<t?t:Number(B.toFixed(n))},v=w=>!["e","E"].includes(w.toString());_.useEffect(()=>{if(u!==void 0){const w=parseFloat(u.toString()).toFixed(n);m(w)}},[u,e,n]);const p=c.jsx($e,{style:"tertiary",size:"sm",state:a==="disabled"?"disabled":"default",icon:c.jsx(Nd,{}),onClick:()=>f(Number(u||0)-Number(s)),color:"black"}),y=c.jsx($e,{style:"tertiary",size:"sm",state:a==="disabled"?"disabled":"default",icon:c.jsx(Id,{}),onClick:()=>f(Number(u||0)+Number(s)),color:"black"});let b,$,S,x="left";return S=y,l?($=p,x="center"):b=p,c.jsx(Le,{...d,inputType:"number",onChange:f,value:u,state:a,variant:i,iconExtra:b,iconLeft:$,iconRight:S,textAlignment:x,onBeforeChange:w=>v(w)})};Gu.displayName="TextFieldStepper";const Uu=e=>c.jsx(Le,{...e});Uu.displayName="TextField",D.Accordion=Fg,D.ActionSheet=mo,D.BadgeNotification=Nt,D.BasicButton=ye,D.Breadcrumb=tf,D.CardBasicHorizontal=Jb,D.CardBasicVertical=Xb,D.Chip=Fu,D.ChipDropdown=Ub,D.DateRangePicker=zb,D.DateWheelpicker=zu,D.Datepicker=Gb,D.Dropdown=p2,D.H1=Vg,D.H2=Wg,D.H3=Hg,D.H4=qg,D.H5=Yg,D.H6=zg,D.IconButton=$e,D.Link=zn,D.Mega=Rg,D.Modal=d2,D.NavigationBottomBar=Cl,D.NavigationSideBar=Sl,D.NotificationBanner=n2,D.NotificationItem=t2,D.NotificationStatusIcon=_o,D.Pagination=Cr,D.PasswordField=Al,D.PhoneNumber=Bl,D.PurchaseButton=Zb,D.SearchField=pl,D.SectionMessage=Sr,D.SegmentedControl=xr,D.SelectionControl=Xg,D.Snackbar=Em,D.Steppers=vr,D.Tab=_r,D.Tag=Ho,D.TextArea=Tl,D.TextField=Uu,D.TextFieldGroupAddon=Vu,D.TextFieldGroupButton=Ru,D.TextFieldStepper=Gu,D.TimeWheelpicker=Hu,D.ToggleSwitch=Jg,D.useActionSheetDetection=yl,D.useClickOutside=Dt,D.useDevice=Lt,D.useDragToClose=wl,D.useFocusHandling=Ae,D.useHorizontalSwipe=vl,D.useKeyboardAction=xl,D.useKeyboardFocus=fr,D.usePortalClick=fo,D.useScrollDisable=aa,D.useSnackbar=Lm,D.useTheme=Qg,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
//# sourceMappingURL=quill-ui-next.umd.js.map
