@fluidattacks/design 3.28.0-pr → 3.28.0-pr.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/@core/styles.d.ts +4 -4
  3. package/dist/components/accordion/accordion-content/index.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/alert/index.js +1 -1
  6. package/dist/components/alert/styles.d.ts +270 -2
  7. package/dist/components/avatar/index.js +1 -1
  8. package/dist/components/avatar/styles.d.ts +538 -2
  9. package/dist/components/button/index.js +1 -1
  10. package/dist/components/button/styles.d.ts +280 -6
  11. package/dist/components/card/card-header/index.js +1 -1
  12. package/dist/components/card/card-with-image/index.js +1 -1
  13. package/dist/components/card/card-with-input/index.js +1 -1
  14. package/dist/components/card/card-with-input/styles.d.ts +1 -1
  15. package/dist/components/card/card-with-options/index.js +1 -1
  16. package/dist/components/card/card-with-selector/index.js +1 -1
  17. package/dist/components/card/card-with-selector/styles.d.ts +269 -1
  18. package/dist/components/card/card-with-switch/index.js +1 -1
  19. package/dist/components/card/index.d.ts +3 -1
  20. package/dist/components/card/index.js +1 -1
  21. package/dist/components/card/indicator-card/index.js +1 -1
  22. package/dist/components/card-container/index.js +1 -1
  23. package/dist/components/carousel/index.js +1 -1
  24. package/dist/components/carousel/styles.d.ts +811 -7
  25. package/dist/components/checkbox/index.js +1 -1
  26. package/dist/components/checkbox/styles.d.ts +271 -1
  27. package/dist/components/cloud-image/index.js +1 -1
  28. package/dist/components/code-snippet/index.js +1 -1
  29. package/dist/components/code-snippet/location-code/index.js +1 -1
  30. package/dist/components/code-snippet/styles.d.ts +538 -2
  31. package/dist/components/colors/index.js +1 -1
  32. package/dist/components/conditions-dialog/index.js +1 -1
  33. package/dist/components/confirm-dialog/index.js +1 -1
  34. package/dist/components/container/index.js +1 -1
  35. package/dist/components/container/styles.d.ts +269 -2
  36. package/dist/components/copy-button/index.js +1 -1
  37. package/dist/components/divider/index.js +1 -1
  38. package/dist/components/dropdown/index.js +1 -1
  39. package/dist/components/dropdown/styles.d.ts +539 -2
  40. package/dist/components/empty-state/empty-button/index.js +1 -1
  41. package/dist/components/empty-state/index.d.ts +1 -1
  42. package/dist/components/empty-state/index.js +1 -1
  43. package/dist/components/empty-state/styles.d.ts +539 -3
  44. package/dist/components/empty-state/types.d.ts +1 -0
  45. package/dist/components/file-preview/index.js +1 -1
  46. package/dist/components/file-preview/styles.d.ts +339 -7
  47. package/dist/components/form/index.js +1 -1
  48. package/dist/components/form/inner-form/index.js +1 -1
  49. package/dist/components/form/styles.d.ts +277 -1
  50. package/dist/components/grid-container/index.js +1 -1
  51. package/dist/components/grid-container/styles.d.ts +269 -2
  52. package/dist/components/grid-layout/styles.d.ts +1076 -4
  53. package/dist/components/group-selector/index.js +1 -1
  54. package/dist/components/group-selector/option-container/index.js +1 -1
  55. package/dist/components/group-selector/styles.d.ts +4 -4
  56. package/dist/components/icon/index.js +1 -1
  57. package/dist/components/icon/styles.d.ts +538 -3
  58. package/dist/components/icon-button/index.js +1 -1
  59. package/dist/components/icon-button/styles.d.ts +279 -2
  60. package/dist/components/info-sidebar/index.js +1 -1
  61. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  62. package/dist/components/inputs/fields/combobox/index.js +1 -1
  63. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  64. package/dist/components/inputs/fields/combobox/styles.d.ts +4 -4
  65. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  66. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  67. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  68. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  69. package/dist/components/inputs/fields/date/calendar/styles.d.ts +2175 -10
  70. package/dist/components/inputs/fields/date/index.js +1 -1
  71. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  72. package/dist/components/inputs/fields/date-range/index.js +1 -1
  73. package/dist/components/inputs/fields/date-range/styles.d.ts +2 -2
  74. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  75. package/dist/components/inputs/fields/date-time/calendar/styles.d.ts +538 -2
  76. package/dist/components/inputs/fields/date-time/index.js +1 -1
  77. package/dist/components/inputs/fields/editable/index.js +1 -1
  78. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  79. package/dist/components/inputs/fields/input-array/index.js +1 -1
  80. package/dist/components/inputs/fields/input-file/index.js +1 -1
  81. package/dist/components/inputs/fields/input-file/styles.d.ts +569 -3
  82. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  83. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  84. package/dist/components/inputs/fields/input-tags/styles.d.ts +300 -1
  85. package/dist/components/inputs/fields/number/index.js +1 -1
  86. package/dist/components/inputs/fields/number-range/index.js +1 -1
  87. package/dist/components/inputs/fields/phone/index.js +1 -1
  88. package/dist/components/inputs/fields/phone/styles.d.ts +1356 -5
  89. package/dist/components/inputs/fields/text-area/index.js +1 -1
  90. package/dist/components/inputs/fields/text-input/index.js +1 -1
  91. package/dist/components/inputs/index.js +1 -1
  92. package/dist/components/inputs/label/index.js +1 -1
  93. package/dist/components/inputs/outline-container/index.js +1 -1
  94. package/dist/components/inputs/styles.d.ts +842 -7
  95. package/dist/components/inputs/utils/action-button/index.js +1 -1
  96. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  97. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  98. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  99. package/dist/components/inputs/utils/dialog/index.js +1 -1
  100. package/dist/components/inputs/utils/number-field/index.js +1 -1
  101. package/dist/components/inputs/utils/popover/index.js +1 -1
  102. package/dist/components/inputs/utils/styles.d.ts +1636 -9
  103. package/dist/components/layout/categories/buttons/index.d.ts +804 -6
  104. package/dist/components/layout/categories/buttons/index.js +1 -1
  105. package/dist/components/layout/categories/column/index.js +1 -1
  106. package/dist/components/layout/categories/column/styles.d.ts +268 -2
  107. package/dist/components/layout/categories/gap/index.js +1 -1
  108. package/dist/components/layout/categories/gap/styles.d.ts +268 -2
  109. package/dist/components/layout/categories/row/index.js +1 -1
  110. package/dist/components/layout/categories/row/styles.d.ts +268 -2
  111. package/dist/components/layout/index.js +1 -1
  112. package/dist/components/link/index.js +1 -1
  113. package/dist/components/link/styles.d.ts +3 -3
  114. package/dist/components/list-item/index.js +1 -1
  115. package/dist/components/list-item/styles.d.ts +539 -2
  116. package/dist/components/little-flag/index.js +1 -1
  117. package/dist/components/little-flag/styles.d.ts +1 -1
  118. package/dist/components/loading/index.js +1 -1
  119. package/dist/components/loading/styles.d.ts +3 -3
  120. package/dist/components/logo/index.js +1 -1
  121. package/dist/components/lottie/index.js +1 -1
  122. package/dist/components/lottie/styles.d.ts +394 -33
  123. package/dist/components/menu/index.js +1 -1
  124. package/dist/components/message-banner/index.js +1 -1
  125. package/dist/components/message-banner/styles.d.ts +279 -1
  126. package/dist/components/modal/columns-modal/index.js +1 -1
  127. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  128. package/dist/components/modal/columns-modal/preview-panel/styles.d.ts +2 -2
  129. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  130. package/dist/components/modal/columns-modal/search-panel/styles.d.ts +374 -2
  131. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  132. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  133. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  134. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  135. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  136. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  137. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  138. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  139. package/dist/components/modal/filters-modal/filters-list/styles.d.ts +374 -2
  140. package/dist/components/modal/filters-modal/index.js +1 -1
  141. package/dist/components/modal/filters-modal/styles.d.ts +643 -5
  142. package/dist/components/modal/footer/index.js +1 -1
  143. package/dist/components/modal/header/index.js +1 -1
  144. package/dist/components/modal/index.js +1 -1
  145. package/dist/components/modal/modal-confirm/index.js +1 -1
  146. package/dist/components/modal/styles.d.ts +1348 -12
  147. package/dist/components/notification/index.js +1 -1
  148. package/dist/components/notification/styles.d.ts +42 -4
  149. package/dist/components/notification-sign/index.js +1 -1
  150. package/dist/components/notification-sign/styles.d.ts +538 -3
  151. package/dist/components/number-input/index.js +1 -1
  152. package/dist/components/number-input/styles.d.ts +569 -2
  153. package/dist/components/oauth-selector/index.js +1 -1
  154. package/dist/components/oauth-selector/option-container/index.js +1 -1
  155. package/dist/components/pop-up/description/index.js +1 -1
  156. package/dist/components/pop-up/index.js +1 -1
  157. package/dist/components/premium-feature/index.js +1 -1
  158. package/dist/components/premium-feature/styles.d.ts +269 -1
  159. package/dist/components/priority-score/index.js +1 -1
  160. package/dist/components/progress-bar/index.js +1 -1
  161. package/dist/components/progress-bar/styles.d.ts +4 -4
  162. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  163. package/dist/components/progress-indicator/index.js +1 -1
  164. package/dist/components/progress-indicator/step/index.js +1 -1
  165. package/dist/components/progress-indicator/styles.d.ts +4 -4
  166. package/dist/components/radio-button/index.js +1 -1
  167. package/dist/components/radio-button/styles.d.ts +539 -3
  168. package/dist/components/scroll-button/index.js +1 -1
  169. package/dist/components/scroll-button/styles.d.ts +272 -3
  170. package/dist/components/search/index.js +1 -1
  171. package/dist/components/search/styles.d.ts +838 -3
  172. package/dist/components/severity-badge/index.js +1 -1
  173. package/dist/components/severity-overview/badge/index.js +1 -1
  174. package/dist/components/severity-overview/index.js +1 -1
  175. package/dist/components/show-on-hover/index.js +1 -1
  176. package/dist/components/show-on-hover/styles.d.ts +269 -1
  177. package/dist/components/slide-out-menu/index.js +1 -1
  178. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  179. package/dist/components/slide-out-menu/styles.d.ts +331 -2
  180. package/dist/components/slider/index.js +1 -1
  181. package/dist/components/slider/styles.d.ts +543 -4
  182. package/dist/components/slider/thumb/index.js +1 -1
  183. package/dist/components/step-lapse/index.js +1 -1
  184. package/dist/components/step-lapse/styles.d.ts +809 -5
  185. package/dist/components/table/context/index.js +1 -1
  186. package/dist/components/table/export-csv/index.js +1 -1
  187. package/dist/components/table/index.js +1 -1
  188. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  189. package/dist/components/table/pagination/pagination-control/styles.d.ts +2 -2
  190. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  191. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  192. package/dist/components/table/sort-icon/index.js +1 -1
  193. package/dist/components/table/sort-icon/styles.d.ts +2 -2
  194. package/dist/components/table/styles.d.ts +808 -4
  195. package/dist/components/table/table-body/index.js +1 -1
  196. package/dist/components/table/table-body/styles.d.ts +269 -1
  197. package/dist/components/table/table-column-toggle/index.js +1 -1
  198. package/dist/components/table/table-content/head/index.js +1 -1
  199. package/dist/components/table/table-content/index.js +1 -1
  200. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  201. package/dist/components/table/table-footer/index.js +1 -1
  202. package/dist/components/table/table-options/caption-content/index.js +1 -1
  203. package/dist/components/table/table-options/controls-content/index.js +1 -1
  204. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  205. package/dist/components/table/table-options/index.js +1 -1
  206. package/dist/components/table/table-options/styles.d.ts +805 -5
  207. package/dist/components/table/wrapper/index.js +1 -1
  208. package/dist/components/table-button/index.js +1 -1
  209. package/dist/components/table-button/styles.d.ts +279 -1
  210. package/dist/components/tabs/index.js +1 -1
  211. package/dist/components/tabs/styles.d.ts +2 -2
  212. package/dist/components/tabs/tab/index.js +1 -1
  213. package/dist/components/tag/index.js +1 -1
  214. package/dist/components/tag/styles.d.ts +1 -1
  215. package/dist/components/timeline/card/index.js +1 -1
  216. package/dist/components/timeline/index.js +1 -1
  217. package/dist/components/timeline/styles.d.ts +271 -3
  218. package/dist/components/toggle/index.js +1 -1
  219. package/dist/components/toggle/styles.d.ts +809 -3
  220. package/dist/components/tooltip/index.js +1 -1
  221. package/dist/components/tooltip/styles.d.ts +336 -6
  222. package/dist/components/tour/index.js +1 -1
  223. package/dist/components/typography/heading/index.js +1 -1
  224. package/dist/components/typography/index.js +1 -1
  225. package/dist/components/typography/span/index.js +1 -1
  226. package/dist/components/typography/styles.d.ts +807 -6
  227. package/dist/components/typography/text/index.js +1 -1
  228. package/dist/{components-CDXuAvor.js → components-BNGJSms8.js} +164 -190
  229. package/dist/{components-BT64cnmr.mjs → components-S6JXbCqw.mjs} +879 -872
  230. package/dist/hooks/index.js +1 -1
  231. package/dist/index.d.ts +0 -1
  232. package/dist/index.js +1 -1
  233. package/dist/{vendor-D_h5koHM.js → vendor-Cg77_nBF.js} +4 -4
  234. package/dist/{vendor-ylpTQvoM.mjs → vendor-jwPPfCAA.mjs} +647 -647
  235. package/package.json +2 -2
@@ -63,7 +63,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
63
63
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
64
64
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
65
65
  PERFORMANCE OF THIS SOFTWARE.
66
- ***************************************************************************** */var Xb=function(e,t){return Xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Xb(e,t)};function oR(e,t){Xb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Lf=function(){return Lf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Lf.apply(this,arguments)};function uR(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ny={sdkSemver:"1.14.3",techVersion:fe.default.version,sdkCode:"J"},cZ=function(e){oR(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=fe.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new vG(this.imageRef.current,this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentDidUpdate=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentWillUnmount=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=uR(n,["cldImg","plugins"]);if(X4())return fe.default.createElement("img",Lf({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=lZ(this.props.plugins,this.props.cldImg,Ny);return fe.default.createElement("img",Lf({},r,{src:i}))},t}(fe.default.Component),fZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){oR(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=I.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new QY(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){gp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){gp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return fZ.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=uR(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return fe.default.createElement("video",Lf({},r,{ref:this.attachRef}))},t})(I.Component);function dZ(e){return!(typeof e!="object"||e instanceof Array)}class hZ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return dZ(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const FS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class J4 extends hZ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,FS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,FS);return new J4(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class Vf{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class pZ extends Error{constructor(t="Unsupported"){super(t)}}function Q4(e){return new pZ(e)}function mZ(){return this._qualifierModel||{error:Q4(`unsupported qualifier ${this.constructor.name}`)}}class gZ{constructor(){this._qualifierModel={}}toJson(){return mZ.apply(this)}}class mm extends gZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vf?this.qualifierValue=n:(this.qualifierValue=new Vf,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class yo extends mm{constructor(t,n){let r;n?r=new Vf([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function vZ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function yZ(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Q4(`unsupported action ${this.constructor.name}`)}}class bZ{constructor(){this._actionModel={}}toJson(){return yZ.apply(this)}}class e3 extends bZ{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),vZ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new yo(r)):this.qualifiers.set(n,new mm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new yo(t)):t instanceof yo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function $Z(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class xZ extends e3{constructor(t){super(),this._actionModel={},this.addQualifier(new mm("b",new Vf($Z(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class RS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Q4(`unsupported action ${this.constructor.name}`)}}}function wZ(e){const t=e;return"error"in t&&!!t.error}function CZ(){return new yo("lossy")}function EZ(){return new yo("preserve_transparency")}function SZ(e){return new yo("progressive",e)}class DZ extends Vf{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Fu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const AZ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},TZ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},PZ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},_Z={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},MZ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},FZ={444:"CHROMA_444",420:"CHROMA_420"},RZ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Fu(FZ);Fu(RZ);Fu(AZ);const kZ=Fu(TZ);Fu(PZ);Fu(_Z);Fu(MZ);class OZ extends e3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof DZ?i=n.getValue():i=n,this._actionModel.actionType=kZ[t],this._actionModel[r]=i,this.addQualifier(new mm(t,n))}}class IZ extends yo{constructor(t){super("progressive",t)}}class vp extends OZ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(CZ()),this}progressive(t){return t instanceof IZ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(SZ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(EZ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}}class gm{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new RS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof gm?this.actions=this.actions.concat(t.actions):this.actions.push(new RS(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new xZ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new e3;let r=t;return typeof t=="string"&&(r=new yo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(wZ(r))return r;t.push(r)}return{actions:t}}}class LZ extends gm{}class VZ extends gm{}function BZ(e){return e.match(/^https?:\//)}function NZ(e){return e.indexOf("/")<0}function jZ(e){return e.match(/^v[0-9]+/)}function KZ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function UZ(e){return e||"image"}function qZ(e){return e||"upload"}function zZ(e,t,n){const r=n!==!1;return t?`v${t}`:jZ(e)||BZ(e)||NZ(e)?"":r?"v1":""}function t3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=WZ(i,r/i.length)),i.slice(0,r)+String(e))}function WZ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const HZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yp={};let kS=0;HZ.split("").forEach(e=>{let t=kS.toString(2);t=t3(t,6,"0"),yp[t]=e,kS++});function GZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function YZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return t3(t,2,"0")}).join(".")}function OS(e){let t="";const r=e.split(".").length*6,i=GZ(e),a=YZ(i);let u=parseInt(a.split(".").join("")).toString(2);if(u=t3(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(f=>{t+=yp[f]}),t}function ZZ(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const XZ="1.21.0";function JZ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return yp[a]+yp[s]}function QZ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function eX(e){const t={techVersion:QZ(),sdkCode:"T",sdkSemver:XZ.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function IS(e){const t=eX(e),n=ZZ(t);try{const r=tX(n.techVersion),i=OS(n.sdkSemver),a=OS(r),s=JZ(n.osVersion),u=n.feature,f=n.sdkCode,{product:d,osType:h}=n;return`D${d}${f}${i}${a}${h}${s}${u}`}catch{return"E"}}function tX(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const LS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class nX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new J4(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=UZ(this.assetType),n=qZ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=LS[`${t}/${n}`],s=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(LS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=KZ(this.cloudName,this.urlConfig),i=t?t.toString():"",a=zZ(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,s.replace(/,/g,"%2C"),this.suffix].filter(f=>f).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),f=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);f&&h.set("_a",IS(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",f&&(d+=`${d.length>0?"&":""}_a=${IS(n)}`);return d?`${u}?${d}`:u}}}class lR extends nX{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class rX extends lR{constructor(t,n,r){super(t,n,r,new LZ)}}class iX extends lR{constructor(t,n,r){super(t,n,r,new VZ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class aX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new rX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new iX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var jy,VS;function sX(){if(VS)return jy;VS=1;var e=vF(),t=B4(),n=1,r=2;function i(a,s,u,f){var d=u.length,h=d,m=!f;if(a==null)return!h;for(a=Object(a);d--;){var g=u[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=u[d];var b=g[0],w=a[b],x=g[1];if(m&&g[2]){if(w===void 0&&!(b in a))return!1}else{var A=new e;if(f)var C=f(w,x,b,a,s,A);if(!(C===void 0?t(x,w,n|r,f,A):C))return!1}}return!0}return jy=i,jy}var Ky,BS;function cR(){if(BS)return Ky;BS=1;var e=tc();function t(n){return n===n&&!e(n)}return Ky=t,Ky}var Uy,NS;function oX(){if(NS)return Uy;NS=1;var e=cR(),t=V4();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],u=r[s];i[a]=[s,u,e(u)]}return i}return Uy=n,Uy}var qy,jS;function fR(){if(jS)return qy;jS=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return qy=e,qy}var zy,KS;function uX(){if(KS)return zy;KS=1;var e=sX(),t=oX(),n=fR();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return zy=r,zy}var Wy,US;function n3(){if(US)return Wy;US=1;var e=ec(),t=rc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Wy=r,Wy}var Hy,qS;function r3(){if(qS)return Hy;qS=1;var e=rs(),t=n3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return Hy=i,Hy}var Gy,zS;function lX(){if(zS)return Gy;zS=1;var e=F4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,u=i?i.apply(this,s):s[0],f=a.cache;if(f.has(u))return f.get(u);var d=r.apply(this,s);return a.cache=f.set(u,d)||f,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,Gy=n,Gy}var Yy,WS;function cX(){if(WS)return Yy;WS=1;var e=lX(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return Yy=n,Yy}var Zy,HS;function fX(){if(HS)return Zy;HS=1;var e=cX(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,u,f,d){a.push(f?d.replace(n,"$1"):u||s)}),a});return Zy=r,Zy}var Xy,GS;function dX(){if(GS)return Xy;GS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Xy=e,Xy}var Jy,YS;function hX(){if(YS)return Jy;YS=1;var e=sm(),t=dX(),n=rs(),r=n3(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return a?a.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return Jy=s,Jy}var Qy,ZS;function pX(){if(ZS)return Qy;ZS=1;var e=hX();function t(n){return n==null?"":e(n)}return Qy=t,Qy}var e0,XS;function dR(){if(XS)return e0;XS=1;var e=rs(),t=r3(),n=fX(),r=pX();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return e0=i,e0}var t0,JS;function vm(){if(JS)return t0;JS=1;var e=n3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return t0=t,t0}var n0,QS;function hR(){if(QS)return n0;QS=1;var e=dR(),t=vm();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return n0=n,n0}var r0,eD;function mX(){if(eD)return r0;eD=1;var e=hR();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return r0=t,r0}var i0,tD;function gX(){if(tD)return i0;tD=1;function e(t,n){return t!=null&&n in Object(t)}return i0=e,i0}var a0,nD;function vX(){if(nD)return a0;nD=1;var e=dR(),t=$F(),n=rs(),r=k4(),i=O4(),a=vm();function s(u,f,d){f=e(f,u);for(var h=-1,m=f.length,g=!1;++h<m;){var b=a(f[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return a0=s,a0}var s0,rD;function yX(){if(rD)return s0;rD=1;var e=gX(),t=vX();function n(r,i){return r!=null&&t(r,i,e)}return s0=n,s0}var o0,iD;function bX(){if(iD)return o0;iD=1;var e=B4(),t=mX(),n=yX(),r=r3(),i=cR(),a=fR(),s=vm(),u=1,f=2;function d(h,m){return r(h)&&i(m)?a(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|f)}}return o0=d,o0}var u0,aD;function $X(){if(aD)return u0;aD=1;function e(t){return t}return u0=e,u0}var l0,sD;function xX(){if(sD)return l0;sD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return l0=e,l0}var c0,oD;function wX(){if(oD)return c0;oD=1;var e=hR();function t(n){return function(r){return e(r,n)}}return c0=t,c0}var f0,uD;function CX(){if(uD)return f0;uD=1;var e=xX(),t=wX(),n=r3(),r=vm();function i(a){return n(a)?e(r(a)):t(a)}return f0=i,f0}var d0,lD;function pR(){if(lD)return d0;lD=1;var e=uX(),t=bX(),n=$X(),r=rs(),i=CX();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return d0=a,d0}var h0,cD;function EX(){if(cD)return h0;cD=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),u=i(n),f=u.length;f--;){var d=u[t?f:++a];if(r(s[d],d,s)===!1)break}return n}}return h0=e,h0}var p0,fD;function SX(){if(fD)return p0;fD=1;var e=EX(),t=e();return p0=t,p0}var m0,dD;function mR(){if(dD)return m0;dD=1;var e=SX(),t=V4();function n(r,i){return r&&e(r,i,t)}return m0=n,m0}var g0,hD;function DX(){if(hD)return g0;hD=1;var e=L4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,u=r?s:-1,f=Object(i);(r?u--:++u<s)&&a(f[u],u,f)!==!1;);return i}}return g0=t,g0}var v0,pD;function AX(){if(pD)return v0;pD=1;var e=mR(),t=DX(),n=t(e);return v0=n,v0}var y0,mD;function TX(){if(mD)return y0;mD=1;var e=AX();function t(n,r){var i;return e(n,function(a,s,u){return i=r(a,s,u),!i}),!!i}return y0=t,y0}var b0,gD;function PX(){if(gD)return b0;gD=1;var e=P4(),t=L4(),n=k4(),r=tc();function i(a,s,u){if(!r(u))return!1;var f=typeof s;return(f=="number"?t(u)&&n(s,u.length):f=="string"&&s in u)?e(u[s],a):!1}return b0=i,b0}var $0,vD;function _X(){if(vD)return $0;vD=1;var e=yF(),t=pR(),n=TX(),r=rs(),i=PX();function a(s,u,f){var d=r(s)?e:n;return f&&i(s,u,f)&&(u=void 0),d(s,t(u,3))}return $0=a,$0}var MX=_X();const FX=qr(MX);var x0={exports:{}},yD;function RX(){return yD||(yD=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
66
+ ***************************************************************************** */var Xb=function(e,t){return Xb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Xb(e,t)};function oR(e,t){Xb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Lf=function(){return Lf=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Lf.apply(this,arguments)};function uR(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var Ny={sdkSemver:"1.14.3",techVersion:fe.default.version,sdkCode:"J"},cZ=function(e){oR(t,e);function t(n){var r=e.call(this,n)||this;return r.imageRef=fe.default.createRef(),r}return t.prototype.componentDidMount=function(){this.htmlLayerInstance=new vG(this.imageRef.current,this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentDidUpdate=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.update(this.props.cldImg,this.props.plugins,Ny)},t.prototype.componentWillUnmount=function(){gp(this.htmlLayerInstance.htmlPluginState),this.htmlLayerInstance.unmount()},t.prototype.render=function(){var n=this.props;n.cldImg,n.plugins;var r=uR(n,["cldImg","plugins"]);if(X4())return fe.default.createElement("img",Lf({suppressHydrationWarning:!0},r,{ref:this.imageRef}));var i=lZ(this.props.plugins,this.props.cldImg,Ny);return fe.default.createElement("img",Lf({},r,{src:i}))},t}(fe.default.Component),fZ=["controls","loop","muted","poster","preload","autoplay","playsinline"];(function(e){oR(t,e);function t(n){var r=e.call(this,n)||this;return r.videoRef=I.createRef(),r.attachRef=r.attachRef.bind(r),r}return t.prototype.componentDidMount=function(){this.htmlVideoLayerInstance=new QY(this.videoRef&&this.videoRef.current,this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster,{useFetchFormat:this.props.useFetchFormat})},t.prototype.componentDidUpdate=function(){gp(this.htmlVideoLayerInstance.htmlPluginState),this.htmlVideoLayerInstance.update(this.props.cldVid,this.props.sources,this.props.plugins,this.getVideoAttributes(),this.props.cldPoster)},t.prototype.componentWillUnmount=function(){gp(this.htmlVideoLayerInstance.htmlPluginState)},t.prototype.getVideoAttributes=function(){var n=this,r={};return fZ.forEach(function(i){i in n.props&&(r[i]=n.props[i])}),r},t.prototype.attachRef=function(n){this.videoRef.current=n;var r=this.props.innerRef;r&&(r instanceof Function?r(n):r.current=n)},t.prototype.render=function(){var n=this.props;n.cldVid,n.cldPoster,n.plugins,n.sources,n.innerRef,n.useFetchFormat;var r=uR(n,["cldVid","cldPoster","plugins","sources","innerRef","useFetchFormat"]);return fe.default.createElement("video",Lf({},r,{ref:this.attachRef}))},t})(I.Component);function dZ(e){return!(typeof e!="object"||e instanceof Array)}class hZ{filterOutNonSupportedKeys(t,n){const r=Object.create({});return dZ(t)?(Object.keys(t).forEach(i=>{n.indexOf(i)>=0?r[i]=t[i]:console.warn("Warning - unsupported key provided to configuration: ",i)}),r):Object.create({})}}const FS=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class J4 extends hZ{constructor(t){super();const n=this.filterOutNonSupportedKeys(t,FS);Object.assign(this,{secure:!0},n)}extend(t){const n=this.filterOutNonSupportedKeys(t,FS);return new J4(Object.assign({},this,n))}setCname(t){return this.cname=t,this}setSecureDistribution(t){return this.secureDistribution=t,this}setPrivateCdn(t){return this.privateCdn=t,this}setSignUrl(t){return this.signUrl=t,this}setLongUrlSignature(t){return this.longUrlSignature=t,this}setShorten(t){return this.shorten=t,this}setUseRootPath(t){return this.useRootPath=t,this}setSecure(t){return this.secure=t,this}setForceVersion(t){return this.forceVersion=t,this}setQueryParams(t){return this.queryParams=t,this}}class Vf{constructor(t){this.values=[],this.delimiter=":",this.hasValue(t)&&this.addValue(t)}toString(){return this.values.join(this.delimiter)}hasValue(t){return typeof t<"u"&&t!==null&&t!==""}addValue(t){return Array.isArray(t)?this.values=this.values.concat(t):this.values.push(t),this.values=this.values.filter(n=>this.hasValue(n)),this}setDelimiter(t){return this.delimiter=t,this}}class pZ extends Error{constructor(t="Unsupported"){super(t)}}function Q4(e){return new pZ(e)}function mZ(){return this._qualifierModel||{error:Q4(`unsupported qualifier ${this.constructor.name}`)}}class gZ{constructor(){this._qualifierModel={}}toJson(){return mZ.apply(this)}}class mm extends gZ{constructor(t,n){super(),this.delimiter="_",this.key=t,n instanceof Vf?this.qualifierValue=n:(this.qualifierValue=new Vf,this.qualifierValue.addValue(n))}toString(){const{key:t,delimiter:n,qualifierValue:r}=this;return`${t}${n}${r.toString()}`}addValue(t){return this.qualifierValue.addValue(t),this}}class yo extends mm{constructor(t,n){let r;n?r=new Vf([t,`${n}`]).setDelimiter(":"):r=t,super("fl",r),this.flagValue=n}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function vZ(e,t){const n=Array.from(e.entries());return t.forEach(r=>{n.push(["fl",r])}),n.sort().map(r=>r[1])}function yZ(){var e,t,n;const r=this._actionModel&&Object.keys(this._actionModel).length,i=(n=(t=(e=this._actionModel)===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.transformation)===null||n===void 0?void 0:n.error;return i&&i instanceof Error?{error:i}:r?this._actionModel:{error:Q4(`unsupported action ${this.constructor.name}`)}}class bZ{constructor(){this._actionModel={}}toJson(){return yZ.apply(this)}}class e3 extends bZ{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(t){return this.actionTag=t,this}toString(){return this.prepareQualifiers(),vZ(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(t){if(typeof t=="string"){const[n,r]=t.toLowerCase().split("_");n==="fl"?this.flags.push(new yo(r)):this.qualifiers.set(n,new mm(n,r))}else this.qualifiers.set(t.key,t);return this}addFlag(t){return typeof t=="string"?this.flags.push(new yo(t)):t instanceof yo&&this.flags.push(t),this}addValueToQualifier(t,n){return this.qualifiers.get(t).addValue(n),this}}function $Z(e){return e&&(e.match(/^#/)?`rgb:${e.substr(1)}`:e)}class xZ extends e3{constructor(t){super(),this._actionModel={},this.addQualifier(new mm("b",new Vf($Z(t)).setDelimiter("_"))),this._actionModel.color=t,this._actionModel.actionType="backgroundColor"}static fromJson(t){const{color:n}=t;return new this(n)}}class RS{constructor(t){this.raw=t}toString(){return this.raw}toJson(){return{error:Q4(`unsupported action ${this.constructor.name}`)}}}function wZ(e){const t=e;return"error"in t&&!!t.error}function CZ(){return new yo("lossy")}function EZ(){return new yo("preserve_transparency")}function SZ(e){return new yo("progressive",e)}class DZ extends Vf{constructor(t){super(t),this.val=t}getValue(){return this.val}}function Fu(e){const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t}const AZ={limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"},TZ={colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"},PZ={redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"},_Z={autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"},MZ={fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"},FZ={444:"CHROMA_444",420:"CHROMA_420"},RZ={noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"};Fu(FZ);Fu(RZ);Fu(AZ);const kZ=Fu(TZ);Fu(PZ);Fu(_Z);Fu(MZ);class OZ extends e3{constructor(t,n,r){super(),this._actionModel={};let i;n instanceof DZ?i=n.getValue():i=n,this._actionModel.actionType=kZ[t],this._actionModel[r]=i,this.addQualifier(new mm(t,n))}}class IZ extends yo{constructor(t){super("progressive",t)}}class vp extends OZ{constructor(t,n){super(t,n,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(CZ()),this}progressive(t){return t instanceof IZ?(this._actionModel.progressive={mode:t.getFlagValue()},this.addFlag(t)):(this._actionModel.progressive={mode:t},this.addFlag(SZ(t))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(EZ()),this}static fromJson(t){const{formatType:n,lossy:r,progressive:i,preserveTransparency:a}=t;let s;return n?s=new this("f",n):s=new this("f"),i&&(i.mode?s.progressive(i.mode):s.progressive()),r&&s.lossy(),a&&s.preserveTransparency(),s}}class gm{constructor(){this.actions=[]}addAction(t){let n;if(typeof t=="string"){if(t.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";n=new RS(t)}else n=t;return this.actions.push(n),this}addTransformation(t){return t instanceof gm?this.actions=this.actions.concat(t.actions):this.actions.push(new RS(t)),this}toString(){return this.actions.map(t=>t.toString()).filter(t=>t).join("/")}animated(t){return this.addAction(t)}border(t){return this.addAction(t)}reshape(t){return this.addAction(t)}resize(t){return this.addAction(t)}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.addAction(t)}overlay(t){return this.addAction(t)}underlay(t){return t.setLayerType("u"),this.addAction(t)}addVariable(t){return this.addAction(t)}conditional(t){return this.addAction(t)}effect(t){return this.addAction(t)}adjust(t){return this.addAction(t)}rotate(t){return this.addAction(t)}namedTransformation(t){return this.addAction(t)}delivery(t){return this.addAction(t)}backgroundColor(t){return this.addAction(new xZ(t))}psdTools(t){return this.addAction(t)}extract(t){return this.addAction(t)}addFlag(t){const n=new e3;let r=t;return typeof t=="string"&&(r=new yo(t)),n.addQualifier(r),this.addAction(n)}customFunction(t){return this.addAction(t)}transcode(t){return this.addAction(t)}videoEdit(t){return this.addAction(t)}toJson(){const t=[];for(const n of this.actions){const r=n.toJson();if(wZ(r))return r;t.push(r)}return{actions:t}}}class LZ extends gm{}class VZ extends gm{}function BZ(e){return e.match(/^https?:\//)}function NZ(e){return e.indexOf("/")<0}function jZ(e){return e.match(/^v[0-9]+/)}function KZ(e,t){const n=t.secure,r=t.privateCdn,i=t.cname,a=t.secureDistribution;return!n&&!i?`http://res.cloudinary.com/${e}`:n&&!a&&r?`https://${e}-res.cloudinary.com`:n&&!a?`https://res.cloudinary.com/${e}`:n&&a&&r?`https://${a}`:n&&a?`https://${a}/${e}`:!n&&i?`http://${i}/${e}`:"ERROR"}function UZ(e){return e||"image"}function qZ(e){return e||"upload"}function zZ(e,t,n){const r=n!==!1;return t?`v${t}`:jZ(e)||BZ(e)||NZ(e)?"":r?"v1":""}function t3(e,t,n){let r=t>>0,i=String(n);return e.length>r?String(e):(r=r-e.length,r>i.length&&(i+=WZ(i,r/i.length)),i.slice(0,r)+String(e))}function WZ(e,t){let n=t,r="";for(;n>0;)r+=e,n--;return r}const HZ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yp={};let kS=0;HZ.split("").forEach(e=>{let t=kS.toString(2);t=t3(t,6,"0"),yp[t]=e,kS++});function GZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").reverse().join(".")}function YZ(e){if(e.split(".").length<2)throw new Error("invalid semVer, must have at least two segments");return e.split(".").map(t=>{const n=+t;if(isNaN(n)||n<0)throw"Invalid version number provided";return t3(t,2,"0")}).join(".")}function OS(e){let t="";const r=e.split(".").length*6,i=GZ(e),a=YZ(i);let u=parseInt(a.split(".").join("")).toString(2);if(u=t3(u,r,"0"),u.length%6!==0)throw"Version must be smaller than 43.21.26)";return u.match(/.{1,6}/g).forEach(f=>{t+=yp[f]}),t}function ZZ(e){const t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0",osType:e.osType,osVersion:e.osVersion};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}const XZ="1.21.0";function JZ(e){const[t,n]=e.split("."),r=parseInt(t).toString(2),i=parseInt(n).toString(2),a=r.padStart(6,"0"),s=i.padStart(6,"0");return yp[a]+yp[s]}function QZ(){const e="0.0.0";if(typeof window<"u")return e;try{return process.versions.node||e}catch{return e}}function eX(e){const t={techVersion:QZ(),sdkCode:"T",sdkSemver:XZ.split("-")[0],product:"A",osType:"Z",osVersion:"0.0",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}function IS(e){const t=eX(e),n=ZZ(t);try{const r=tX(n.techVersion),i=OS(n.sdkSemver),a=OS(r),s=JZ(n.osVersion),u=n.feature,f=n.sdkCode,{product:d,osType:h}=n;return`D${d}${f}${i}${a}${h}${s}${u}`}catch{return"E"}}function tX(e){const t=e.split(".");return`${t[0]}.${t[1]}`}const LS={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class nX{constructor(t,n={},r){this.setPublicID(t),this.setCloudConfig(n),this.setURLConfig(r)}setURLConfig(t){return this.urlConfig=new J4(t),this}setCloudConfig(t){return this.cloudName=t.cloudName,this.apiKey=t.apiKey,this.apiSecret=t.apiSecret,this.authToken=t.authToken,this}setPublicID(t){return this.publicID=t?t.toString():"",this}setDeliveryType(t){return this.deliveryType=t,this}setSuffix(t){return this.suffix=t,this}setSignature(t){return this.signature=t,this}setVersion(t){return t&&(this.version=t),this}setAssetType(t){return t&&(this.assetType=t),this}sign(){return this}toURL(t={}){return this.createCloudinaryURL(null,t.trackedAnalytics)}validateAssetForURLCreation(){if(typeof this.cloudName>"u")throw"You must supply a cloudName when initializing the asset";const t=this.suffix&&this.suffix.indexOf(".")>=0,n=this.suffix&&this.suffix.indexOf("/")>=0;if(t||n)throw"`suffix`` should not include . or /"}getResourceType(){const t=UZ(this.assetType),n=qZ(this.deliveryType),r=!!this.suffix,i=`${t}/${n}`,a=LS[`${t}/${n}`],s=this.urlConfig.useRootPath,u=this.urlConfig.shorten;if(s){if(i==="image/upload")return"";throw new Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${i} instead`)}if(u&&i==="image/upload")return"iu";if(r){if(a)return a;throw new Error(`URL Suffix only supported for ${Object.keys(LS).join(", ")}, Provided: ${i} instead`)}return i}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(t,n){if(!this.publicID)return"";this.validateAssetForURLCreation();const r=KZ(this.cloudName,this.urlConfig),i=t?t.toString():"",a=zZ(this.publicID,this.version,this.urlConfig.forceVersion),s=this.publicID;if(typeof t=="string")return[r,this.getResourceType(),this.getSignature(),i,a,s.replace(/,/g,"%2C"),this.suffix].filter(f=>f).join("/");{const u=[encodeURI(r),this.getResourceType(),this.getSignature(),encodeURI(i),a,encodeURI(s).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(h=>h).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),f=this.urlConfig.analytics!==!1&&!s.includes("?");let d="";if(typeof this.urlConfig.queryParams=="object")try{const h=new URLSearchParams(this.urlConfig.queryParams);f&&h.set("_a",IS(n)),d=h.toString()}catch{console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else d=this.urlConfig.queryParams||"",f&&(d+=`${d.length>0?"&":""}_a=${IS(n)}`);return d?`${u}?${d}`:u}}}class lR extends nX{constructor(t,n,r,i){super(t,n,r),this.transformation=i}animated(t){return this.transformation.animated(t),this}border(t){return this.transformation.border(t),this}reshape(t){return this.transformation.reshape(t),this}resize(t){return this.transformation.resize(t),this}quality(t){return this.addAction(new vp("q",t)),this}format(t){return this.addAction(new vp("f",t)),this}roundCorners(t){return this.transformation.roundCorners(t),this}overlay(t){return this.transformation.overlay(t),this}addVariable(t){return this.transformation.addVariable(t),this}conditional(t){return this.transformation.conditional(t),this}effect(t){return this.transformation.effect(t),this}adjust(t){return this.transformation.adjust(t),this}rotate(t){return this.transformation.rotate(t),this}namedTransformation(t){return this.transformation.namedTransformation(t),this}delivery(t){return this.transformation.delivery(t),this}backgroundColor(t){return this.transformation.backgroundColor(t),this}psdTools(t){return this.transformation.psdTools(t),this}extract(t){return this.transformation.extract(t),this}addFlag(t){return this.transformation.addFlag(t),this}customFunction(t){return this.transformation.customFunction(t),this}addAction(t){return this.transformation.addAction(t),this}addTransformation(t){return this.transformation.addTransformation(t),this}toString(){return this.transformation.toString()}underlay(t){return this.transformation.underlay(t),this}toURL(t={}){return this.createCloudinaryURL(this.transformation,t==null?void 0:t.trackedAnalytics)}}class rX extends lR{constructor(t,n,r){super(t,n,r,new LZ)}}class iX extends lR{constructor(t,n,r){super(t,n,r,new VZ),this.assetType="video"}transcode(t){return this.transformation.transcode(t),this}videoEdit(t){return this.transformation.videoEdit(t),this}}class aX{constructor(t){t&&(this.cloudinaryConfig=t)}image(t){return new rX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(t){return new iX(t,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(t){return this.cloudinaryConfig=t,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var jy,VS;function sX(){if(VS)return jy;VS=1;var e=vF(),t=B4(),n=1,r=2;function i(a,s,u,f){var d=u.length,h=d,m=!f;if(a==null)return!h;for(a=Object(a);d--;){var g=u[d];if(m&&g[2]?g[1]!==a[g[0]]:!(g[0]in a))return!1}for(;++d<h;){g=u[d];var b=g[0],w=a[b],x=g[1];if(m&&g[2]){if(w===void 0&&!(b in a))return!1}else{var A=new e;if(f)var C=f(w,x,b,a,s,A);if(!(C===void 0?t(x,w,n|r,f,A):C))return!1}}return!0}return jy=i,jy}var Ky,BS;function cR(){if(BS)return Ky;BS=1;var e=tc();function t(n){return n===n&&!e(n)}return Ky=t,Ky}var Uy,NS;function oX(){if(NS)return Uy;NS=1;var e=cR(),t=V4();function n(r){for(var i=t(r),a=i.length;a--;){var s=i[a],u=r[s];i[a]=[s,u,e(u)]}return i}return Uy=n,Uy}var qy,jS;function fR(){if(jS)return qy;jS=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return qy=e,qy}var zy,KS;function uX(){if(KS)return zy;KS=1;var e=sX(),t=oX(),n=fR();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(s){return s===i||e(s,i,a)}}return zy=r,zy}var Wy,US;function n3(){if(US)return Wy;US=1;var e=ec(),t=rc(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Wy=r,Wy}var Hy,qS;function r3(){if(qS)return Hy;qS=1;var e=rs(),t=n3(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,s){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||s!=null&&a in Object(s)}return Hy=i,Hy}var Gy,zS;function lX(){if(zS)return Gy;zS=1;var e=F4(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var s=arguments,u=i?i.apply(this,s):s[0],f=a.cache;if(f.has(u))return f.get(u);var d=r.apply(this,s);return a.cache=f.set(u,d)||f,d};return a.cache=new(n.Cache||e),a}return n.Cache=e,Gy=n,Gy}var Yy,WS;function cX(){if(WS)return Yy;WS=1;var e=lX(),t=500;function n(r){var i=e(r,function(s){return a.size===t&&a.clear(),s}),a=i.cache;return i}return Yy=n,Yy}var Zy,HS;function fX(){if(HS)return Zy;HS=1;var e=cX(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(s,u,f,d){a.push(f?d.replace(n,"$1"):u||s)}),a});return Zy=r,Zy}var Xy,GS;function dX(){if(GS)return Xy;GS=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Xy=e,Xy}var Jy,YS;function hX(){if(YS)return Jy;YS=1;var e=sm(),t=dX(),n=rs(),r=n3(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(u){if(typeof u=="string")return u;if(n(u))return t(u,s)+"";if(r(u))return a?a.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return Jy=s,Jy}var Qy,ZS;function pX(){if(ZS)return Qy;ZS=1;var e=hX();function t(n){return n==null?"":e(n)}return Qy=t,Qy}var e0,XS;function dR(){if(XS)return e0;XS=1;var e=rs(),t=r3(),n=fX(),r=pX();function i(a,s){return e(a)?a:t(a,s)?[a]:n(r(a))}return e0=i,e0}var t0,JS;function vm(){if(JS)return t0;JS=1;var e=n3();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return t0=t,t0}var n0,QS;function hR(){if(QS)return n0;QS=1;var e=dR(),t=vm();function n(r,i){i=e(i,r);for(var a=0,s=i.length;r!=null&&a<s;)r=r[t(i[a++])];return a&&a==s?r:void 0}return n0=n,n0}var r0,eD;function mX(){if(eD)return r0;eD=1;var e=hR();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return r0=t,r0}var i0,tD;function gX(){if(tD)return i0;tD=1;function e(t,n){return t!=null&&n in Object(t)}return i0=e,i0}var a0,nD;function vX(){if(nD)return a0;nD=1;var e=dR(),t=$F(),n=rs(),r=k4(),i=O4(),a=vm();function s(u,f,d){f=e(f,u);for(var h=-1,m=f.length,g=!1;++h<m;){var b=a(f[h]);if(!(g=u!=null&&d(u,b)))break;u=u[b]}return g||++h!=m?g:(m=u==null?0:u.length,!!m&&i(m)&&r(b,m)&&(n(u)||t(u)))}return a0=s,a0}var s0,rD;function yX(){if(rD)return s0;rD=1;var e=gX(),t=vX();function n(r,i){return r!=null&&t(r,i,e)}return s0=n,s0}var o0,iD;function bX(){if(iD)return o0;iD=1;var e=B4(),t=mX(),n=yX(),r=r3(),i=cR(),a=fR(),s=vm(),u=1,f=2;function d(h,m){return r(h)&&i(m)?a(s(h),m):function(g){var b=t(g,h);return b===void 0&&b===m?n(g,h):e(m,b,u|f)}}return o0=d,o0}var u0,aD;function $X(){if(aD)return u0;aD=1;function e(t){return t}return u0=e,u0}var l0,sD;function xX(){if(sD)return l0;sD=1;function e(t){return function(n){return n==null?void 0:n[t]}}return l0=e,l0}var c0,oD;function wX(){if(oD)return c0;oD=1;var e=hR();function t(n){return function(r){return e(r,n)}}return c0=t,c0}var f0,uD;function CX(){if(uD)return f0;uD=1;var e=xX(),t=wX(),n=r3(),r=vm();function i(a){return n(a)?e(r(a)):t(a)}return f0=i,f0}var d0,lD;function pR(){if(lD)return d0;lD=1;var e=uX(),t=bX(),n=$X(),r=rs(),i=CX();function a(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return d0=a,d0}var h0,cD;function EX(){if(cD)return h0;cD=1;function e(t){return function(n,r,i){for(var a=-1,s=Object(n),u=i(n),f=u.length;f--;){var d=u[t?f:++a];if(r(s[d],d,s)===!1)break}return n}}return h0=e,h0}var p0,fD;function SX(){if(fD)return p0;fD=1;var e=EX(),t=e();return p0=t,p0}var m0,dD;function mR(){if(dD)return m0;dD=1;var e=SX(),t=V4();function n(r,i){return r&&e(r,i,t)}return m0=n,m0}var g0,hD;function DX(){if(hD)return g0;hD=1;var e=L4();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var s=i.length,u=r?s:-1,f=Object(i);(r?u--:++u<s)&&a(f[u],u,f)!==!1;);return i}}return g0=t,g0}var v0,pD;function AX(){if(pD)return v0;pD=1;var e=mR(),t=DX(),n=t(e);return v0=n,v0}var y0,mD;function TX(){if(mD)return y0;mD=1;var e=AX();function t(n,r){var i;return e(n,function(a,s,u){return i=r(a,s,u),!i}),!!i}return y0=t,y0}var b0,gD;function PX(){if(gD)return b0;gD=1;var e=P4(),t=L4(),n=k4(),r=tc();function i(a,s,u){if(!r(u))return!1;var f=typeof s;return(f=="number"?t(u)&&n(s,u.length):f=="string"&&s in u)?e(u[s],a):!1}return b0=i,b0}var $0,vD;function _X(){if(vD)return $0;vD=1;var e=yF(),t=pR(),n=TX(),r=rs(),i=PX();function a(s,u,f){var d=r(s)?e:n;return f&&i(s,u,f)&&(u=void 0),d(s,t(u,3))}return $0=a,$0}var MX=_X();const FX=qr(MX);var x0,yD;function RX(){if(yD)return x0;yD=1;function e(t){return t===void 0}return x0=e,x0}var kX=RX();const OX=qr(kX);var w0={exports:{}},bD;function IX(){return bD||(bD=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
67
67
  * Prism: Lightweight, robust, elegant syntax highlighting
68
68
  *
69
69
  * @license MIT <https://opensource.org/licenses/MIT>
@@ -71,8 +71,8 @@ PERFORMANCE OF THIS SOFTWARE.
71
71
  * @namespace
72
72
  * @public
73
73
  */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,s={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function E(S){return S instanceof f?new f(S.type,E(S.content),S.alias):Array.isArray(S)?S.map(E):S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(E){return Object.prototype.toString.call(E).slice(8,-1)},objId:function(E){return E.__id||Object.defineProperty(E,"__id",{value:++a}),E.__id},clone:function E(S,R){R=R||{};var _,F;switch(u.util.type(S)){case"Object":if(F=u.util.objId(S),R[F])return R[F];_={},R[F]=_;for(var z in S)S.hasOwnProperty(z)&&(_[z]=E(S[z],R));return _;case"Array":return F=u.util.objId(S),R[F]?R[F]:(_=[],R[F]=_,S.forEach(function(ie,ge){_[ge]=E(ie,R)}),_);default:return S}},getLanguage:function(E){for(;E;){var S=i.exec(E.className);if(S)return S[1].toLowerCase();E=E.parentElement}return"none"},setLanguage:function(E,S){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+S)},currentScript:function(){if(typeof document>"u")return null;if(document.currentScript&&document.currentScript.tagName==="SCRIPT")return document.currentScript;try{throw new Error}catch(_){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(E){var S=document.getElementsByTagName("script");for(var R in S)if(S[R].src==E)return S[R]}return null}},isActive:function(E,S,R){for(var _="no-"+S;E;){var F=E.classList;if(F.contains(S))return!0;if(F.contains(_))return!1;E=E.parentElement}return!!R}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(E,S){var R=u.util.clone(u.languages[E]);for(var _ in S)R[_]=S[_];return R},insertBefore:function(E,S,R,_){_=_||u.languages;var F=_[E],z={};for(var ie in F)if(F.hasOwnProperty(ie)){if(ie==S)for(var ge in R)R.hasOwnProperty(ge)&&(z[ge]=R[ge]);R.hasOwnProperty(ie)||(z[ie]=F[ie])}var oe=_[E];return _[E]=z,u.languages.DFS(u.languages,function(O,we){we===oe&&O!=E&&(this[O]=z)}),z},DFS:function E(S,R,_,F){F=F||{};var z=u.util.objId;for(var ie in S)if(S.hasOwnProperty(ie)){R.call(S,ie,S[ie],_||ie);var ge=S[ie],oe=u.util.type(ge);oe==="Object"&&!F[z(ge)]?(F[z(ge)]=!0,E(ge,R,null,F)):oe==="Array"&&!F[z(ge)]&&(F[z(ge)]=!0,E(ge,R,ie,F))}}},plugins:{},highlightAll:function(E,S){u.highlightAllUnder(document,E,S)},highlightAllUnder:function(E,S,R){var _={callback:R,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),u.hooks.run("before-all-elements-highlight",_);for(var F=0,z;z=_.elements[F++];)u.highlightElement(z,S===!0,_.callback)},highlightElement:function(E,S,R){var _=u.util.getLanguage(E),F=u.languages[_];u.util.setLanguage(E,_);var z=E.parentElement;z&&z.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(z,_);var ie=E.textContent,ge={element:E,language:_,grammar:F,code:ie};function oe(we){ge.highlightedCode=we,u.hooks.run("before-insert",ge),ge.element.innerHTML=ge.highlightedCode,u.hooks.run("after-highlight",ge),u.hooks.run("complete",ge),R&&R.call(ge.element)}if(u.hooks.run("before-sanity-check",ge),z=ge.element.parentElement,z&&z.nodeName.toLowerCase()==="pre"&&!z.hasAttribute("tabindex")&&z.setAttribute("tabindex","0"),!ge.code){u.hooks.run("complete",ge),R&&R.call(ge.element);return}if(u.hooks.run("before-highlight",ge),!ge.grammar){oe(u.util.encode(ge.code));return}if(S&&r.Worker){var O=new Worker(u.filename);O.onmessage=function(we){oe(we.data)},O.postMessage(JSON.stringify({language:ge.language,code:ge.code,immediateClose:!0}))}else oe(u.highlight(ge.code,ge.grammar,ge.language))},highlight:function(E,S,R){var _={code:E,grammar:S,language:R};if(u.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=u.tokenize(_.code,_.grammar),u.hooks.run("after-tokenize",_),f.stringify(u.util.encode(_.tokens),_.language)},tokenize:function(E,S){var R=S.rest;if(R){for(var _ in R)S[_]=R[_];delete S.rest}var F=new m;return g(F,F.head,E),h(E,F,S,F.head,0),w(F)},hooks:{all:{},add:function(E,S){var R=u.hooks.all;R[E]=R[E]||[],R[E].push(S)},run:function(E,S){var R=u.hooks.all[E];if(!(!R||!R.length))for(var _=0,F;F=R[_++];)F(S)}},Token:f};r.Prism=u;function f(E,S,R,_){this.type=E,this.content=S,this.alias=R,this.length=(_||"").length|0}f.stringify=function E(S,R){if(typeof S=="string")return S;if(Array.isArray(S)){var _="";return S.forEach(function(oe){_+=E(oe,R)}),_}var F={type:S.type,content:E(S.content,R),tag:"span",classes:["token",S.type],attributes:{},language:R},z=S.alias;z&&(Array.isArray(z)?Array.prototype.push.apply(F.classes,z):F.classes.push(z)),u.hooks.run("wrap",F);var ie="";for(var ge in F.attributes)ie+=" "+ge+'="'+(F.attributes[ge]||"").replace(/"/g,"&quot;")+'"';return"<"+F.tag+' class="'+F.classes.join(" ")+'"'+ie+">"+F.content+"</"+F.tag+">"};function d(E,S,R,_){E.lastIndex=S;var F=E.exec(R);if(F&&_&&F[1]){var z=F[1].length;F.index+=z,F[0]=F[0].slice(z)}return F}function h(E,S,R,_,F,z){for(var ie in R)if(!(!R.hasOwnProperty(ie)||!R[ie])){var ge=R[ie];ge=Array.isArray(ge)?ge:[ge];for(var oe=0;oe<ge.length;++oe){if(z&&z.cause==ie+","+oe)return;var O=ge[oe],we=O.inside,Se=!!O.lookbehind,U=!!O.greedy,ee=O.alias;if(U&&!O.pattern.global){var K=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,K+"g")}for(var k=O.pattern||O,N=_.next,te=F;N!==S.tail&&!(z&&te>=z.reach);te+=N.value.length,N=N.next){var j=N.value;if(S.length>E.length)return;if(!(j instanceof f)){var ce=1,ue;if(U){if(ue=d(k,te,E,Se),!ue||ue.index>=E.length)break;var Ye=ue.index,Ae=ue.index+ue[0].length,_e=te;for(_e+=N.value.length;Ye>=_e;)N=N.next,_e+=N.value.length;if(_e-=N.value.length,te=_e,N.value instanceof f)continue;for(var Le=N;Le!==S.tail&&(_e<Ae||typeof Le.value=="string");Le=Le.next)ce++,_e+=Le.value.length;ce--,j=E.slice(te,_e),ue.index-=te}else if(ue=d(k,0,j,Se),!ue)continue;var Ye=ue.index,Qe=ue[0],Ue=j.slice(0,Ye),Ge=j.slice(Ye+Qe.length),Ie=te+j.length;z&&Ie>z.reach&&(z.reach=Ie);var Ne=N.prev;Ue&&(Ne=g(S,Ne,Ue),te+=Ue.length),b(S,Ne,ce);var Te=new f(ie,we?u.tokenize(Qe,we):Qe,ee,Qe);if(N=g(S,Ne,Te),Ge&&g(S,N,Ge),ce>1){var He={cause:ie+","+oe,reach:Ie};h(E,S,R,N.prev,te,He),z&&He.reach>z.reach&&(z.reach=He.reach)}}}}}}function m(){var E={value:null,prev:null,next:null},S={value:null,prev:E,next:null};E.next=S,this.head=E,this.tail=S,this.length=0}function g(E,S,R){var _=S.next,F={value:R,prev:S,next:_};return S.next=F,_.prev=F,E.length++,F}function b(E,S,R){for(var _=S.next,F=0;F<R&&_!==E.tail;F++)_=_.next;S.next=_,_.prev=S,E.length-=F}function w(E){for(var S=[],R=E.head.next;R!==E.tail;)S.push(R.value),R=R.next;return S}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(E){var S=JSON.parse(E.data),R=S.language,_=S.code,F=S.immediateClose;r.postMessage(u.highlight(_,u.languages[R],R)),F&&r.close()},!1)),u;var x=u.util.currentScript();x&&(u.filename=x.src,x.hasAttribute("data-manual")&&(u.manual=!0));function A(){u.manual||u.highlightAll()}if(!u.manual){var C=document.readyState;C==="loading"||C==="interactive"&&x&&x.defer?document.addEventListener("DOMContentLoaded",A):window.requestAnimationFrame?window.requestAnimationFrame(A):window.setTimeout(A,16)}return u}(t);e.exports&&(e.exports=n),typeof Ui<"u"&&(Ui.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var s={};s["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var f={};f[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",f)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(x,A){return"✖ Error "+x+" while fetching file: "+A},a="✖ Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",f="loading",d="loaded",h="failed",m="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+f+'"])';function g(x,A,C){var E=new XMLHttpRequest;E.open("GET",x,!0),E.onreadystatechange=function(){E.readyState==4&&(E.status<400&&E.responseText?A(E.responseText):E.status>=400?C(i(E.status,E.statusText)):C(a))},E.send(null)}function b(x){var A=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(x||"");if(A){var C=Number(A[1]),E=A[2],S=A[3];return E?S?[C,Number(S)]:[C,void 0]:[C,C]}}n.hooks.add("before-highlightall",function(x){x.selector+=", "+m}),n.hooks.add("before-sanity-check",function(x){var A=x.element;if(A.matches(m)){x.code="",A.setAttribute(u,f);var C=A.appendChild(document.createElement("CODE"));C.textContent=r;var E=A.getAttribute("data-src"),S=x.language;if(S==="none"){var R=(/\.(\w+)$/.exec(E)||[,"none"])[1];S=s[R]||R}n.util.setLanguage(C,S),n.util.setLanguage(A,S);var _=n.plugins.autoloader;_&&_.loadLanguages(S),g(E,function(F){A.setAttribute(u,d);var z=b(A.getAttribute("data-range"));if(z){var ie=F.split(/\r\n?|\n/g),ge=z[0],oe=z[1]==null?ie.length:z[1];ge<0&&(ge+=ie.length),ge=Math.max(0,Math.min(ge-1,ie.length)),oe<0&&(oe+=ie.length),oe=Math.max(0,Math.min(oe,ie.length)),F=ie.slice(ge,oe).join(`
74
- `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ge+1))}C.textContent=F,n.highlightElement(C)},function(F){A.setAttribute(u,h),C.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var C=(A||document).querySelectorAll(m),E=0,S;S=C[E++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(x0)),x0.exports}var kX=RX();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var w=getComputedStyle(g),x=getComputedStyle(b);function A(C){return+C.substr(0,C.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A(w.paddingTop)}function f(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,w,x){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var A=w.replace(/\s+/g,"").split(",").filter(Boolean),C=+b.getAttribute("data-line-offset")||0,E=s()?parseInt:parseFloat,S=E(getComputedStyle(b).lineHeight),R=Prism.util.isActive(b,e),_=b.querySelector("code"),F=R?b:_||b,z=[],ie=_.textContent.match(n),ge=ie?ie.length+1:1,oe=!_||F==_?0:u(b,_);A.forEach(function(Se){var U=Se.split("-"),ee=+U[0],K=+U[1]||ee;if(K=Math.min(ge+C,K),!(K<ee)){var k=b.querySelector('.line-highlight[data-range="'+Se+'"]')||document.createElement("div");if(z.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",Se),k.className=(x||"")+" line-highlight"}),R&&Prism.plugins.lineNumbers){var N=Prism.plugins.lineNumbers.getLine(b,ee),te=Prism.plugins.lineNumbers.getLine(b,K);if(N){var j=N.offsetTop+oe+"px";z.push(function(){k.style.top=j})}if(te){var ce=te.offsetTop-N.offsetTop+te.offsetHeight+"px";z.push(function(){k.style.height=ce})}}else z.push(function(){k.setAttribute("data-start",String(ee)),K>ee&&k.setAttribute("data-end",String(K)),k.style.top=(ee-C-1)*S+oe+"px",k.textContent=new Array(K-ee+2).join(`
75
- `)});z.push(function(){k.style.width=b.scrollWidth+"px"}),z.push(function(){F.appendChild(k)})}});var O=b.id;if(R&&Prism.util.isActive(b,t)&&O){i(b,t)||z.push(function(){b.classList.add(t)});var we=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(Se,U){var ee=U+we;Se.onclick=function(){var K=O+"."+ee;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){z.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(C){C.parentNode.removeChild(C)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(f(b)){var w=0;r(".line-highlight",b).forEach(function(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(f(w)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var C=Prism.plugins.lineHighlight.highlightLines(w);C(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(f).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const gR=I.createContext({});function dd(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const i3=typeof window<"u",vR=i3?I.useLayoutEffect:I.useEffect,a3=I.createContext(null);function s3(e,t){e.indexOf(t)===-1&&e.push(t)}function o3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function OX([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const Bs=(e,t,n)=>n>t?t:n<e?e:n;function Jb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ic=()=>{},ba=()=>{};process.env.NODE_ENV!=="production"&&(ic=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Jb(t,n))},ba=(e,t,n)=>{if(!e)throw new Error(Jb(t,n))});const Ns={},yR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function bR(e){return typeof e=="object"&&e!==null}const $R=e=>/^0[^.\s]+$/u.test(e);function u3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gi=e=>e,IX=(e,t)=>n=>t(e(n)),hd=(...e)=>e.reduce(IX),Bf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let l3=class{constructor(){this.subscriptions=[]}add(t){return s3(this.subscriptions,t),()=>o3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const ga=e=>e*1e3,Za=e=>e/1e3;function xR(e,t){return t?e*(1e3/t):0}const bD=new Set;function c3(e,t,n){e||bD.has(t)||(console.warn(Jb(t,n)),bD.add(t))}const wR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,LX=1e-7,VX=12;function BX(e,t,n,r,i){let a,s,u=0;do s=t+(n-t)/2,a=wR(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>LX&&++u<VX);return s}function pd(e,t,n,r){if(e===t&&n===r)return Gi;const i=a=>BX(a,0,1,e,n);return a=>a===0||a===1?a:wR(i(a),t,r)}const CR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ER=e=>t=>1-e(1-t),SR=pd(.33,1.53,.69,.99),f3=ER(SR),DR=CR(f3),AR=e=>(e*=2)<1?.5*f3(e):.5*(2-Math.pow(2,-10*(e-1))),d3=e=>1-Math.sin(Math.acos(e)),TR=ER(d3),PR=CR(d3),NX=pd(.42,0,1,1),jX=pd(0,0,.58,1),_R=pd(.42,0,.58,1),KX=e=>Array.isArray(e)&&typeof e[0]!="number",MR=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:Gi,easeIn:NX,easeInOut:_R,easeOut:jX,circIn:d3,circInOut:PR,circOut:TR,backIn:f3,backInOut:DR,backOut:SR,anticipate:AR},UX=e=>typeof e=="string",xD=e=>{if(MR(e)){ba(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return pd(t,n,r,i)}else if(UX(e))return ba($D[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),$D[e];return e},gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function qX(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const zX=40;function FR(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((S,R)=>(S[R]=qX(a),S),{}),{setup:u,read:f,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ns.useManualTiming?i.timestamp:performance.now();n=!1,Ns.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,zX),1)),i.timestamp=S,i.isProcessing=!0,u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:gh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<gh.length;R++)s[gh[R]].cancel(S)},state:i,steps:s}}const{schedule:wn,cancel:js,state:gr,steps:w0}=FR(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gi,!0);let Lh;function WX(){Lh=void 0}const ri={now:()=>(Lh===void 0&&ri.set(gr.isProcessing||Ns.useManualTiming?gr.timestamp:performance.now()),Lh),set:e=>{Lh=e,queueMicrotask(WX)}},RR=e=>t=>typeof t=="string"&&t.startsWith(e),h3=RR("--"),HX=RR("var(--"),p3=e=>HX(e)?GX.test(e.split("/*")[0].trim()):!1,GX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nf={...ac,transform:e=>Bs(0,1,e)},vh={...ac,default:1},wf=e=>Math.round(e*1e5)/1e5,m3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function YX(e){return e==null}const ZX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g3=(e,t)=>n=>!!(typeof n=="string"&&ZX.test(n)&&n.startsWith(e)||t&&!YX(n)&&Object.prototype.hasOwnProperty.call(n,t)),kR=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,u]=r.match(m3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},XX=e=>Bs(0,255,e),C0={...ac,transform:e=>Math.round(XX(e))},cu={test:g3("rgb","red"),parse:kR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+C0.transform(e)+", "+C0.transform(t)+", "+C0.transform(n)+", "+wf(Nf.transform(r))+")"};function JX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qb={test:g3("#"),parse:JX,transform:cu.transform},md=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=md("deg"),Xa=md("%"),Dt=md("px"),QX=md("vh"),eJ=md("vw"),wD={...Xa,parse:e=>Xa.parse(e)/100,transform:e=>Xa.transform(e*100)},bl={test:g3("hsl","hue"),parse:kR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xa.transform(wf(t))+", "+Xa.transform(wf(n))+", "+wf(Nf.transform(r))+")"},Jn={test:e=>cu.test(e)||Qb.test(e)||bl.test(e),parse:e=>cu.test(e)?cu.parse(e):bl.test(e)?bl.parse(e):Qb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cu.transform(e):bl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},tJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function nJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(m3))==null?void 0:t.length)||0)+(((n=e.match(tJ))==null?void 0:n.length)||0)>0}const OR="number",IR="color",rJ="var",iJ="var(",CD="${}",aJ=/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 jf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(aJ,f=>(Jn.test(f)?(r.color.push(a),i.push(IR),n.push(Jn.parse(f))):f.startsWith(iJ)?(r.var.push(a),i.push(rJ),n.push(f)):(r.number.push(a),i.push(OR),n.push(parseFloat(f))),++a,CD)).split(CD);return{values:n,split:u,indexes:r,types:i}}function LR(e){return jf(e).values}function VR(e){const{split:t,types:n}=jf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const u=n[s];u===OR?a+=wf(i[s]):u===IR?a+=Jn.transform(i[s]):a+=i[s]}return a}}const sJ=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function oJ(e){const t=LR(e);return VR(e)(t.map(sJ))}const xo={test:nJ,parse:LR,createTransformer:VR,getAnimatableNone:oJ};function E0(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 uJ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=E0(f,u,e+1/3),a=E0(f,u,e),s=E0(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function bp(e,t){return n=>n>0?t:e}const An=(e,t,n)=>e+(t-e)*n,S0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lJ=[Qb,cu,bl],cJ=e=>lJ.find(t=>t.test(e));function ED(e){const t=cJ(e);if(ic(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===bl&&(n=uJ(n)),n}const SD=(e,t)=>{const n=ED(e),r=ED(t);if(!n||!r)return bp(e,t);const i={...n};return a=>(i.red=S0(n.red,r.red,a),i.green=S0(n.green,r.green,a),i.blue=S0(n.blue,r.blue,a),i.alpha=An(n.alpha,r.alpha,a),cu.transform(i))},e1=new Set(["none","hidden"]);function fJ(e,t){return e1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function dJ(e,t){return n=>An(e,t,n)}function v3(e){return typeof e=="number"?dJ:typeof e=="string"?p3(e)?bp:Jn.test(e)?SD:mJ:Array.isArray(e)?BR:typeof e=="object"?Jn.test(e)?SD:hJ:bp}function BR(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>v3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function hJ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=v3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function pJ(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],u=e.values[s]??0;n[i]=u,r[a]++}return n}const mJ=(e,t)=>{const n=xo.createTransformer(t),r=jf(e),i=jf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?e1.has(e)&&!i.values.length||e1.has(t)&&!r.values.length?fJ(e,t):hd(BR(pJ(r,i),i.values),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),bp(e,t))};function NR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?An(e,t,n):v3(e)(e,t)}const gJ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wn.update(t,n),stop:()=>js(t),now:()=>gr.isProcessing?gr.timestamp:ri.now()}},jR=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$p=2e4;function y3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$p;)t+=n,r=e.next(t);return t>=$p?1/0:t}function vJ(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(y3(r),$p);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Za(i)}}const yJ=5;function KR(e,t,n){const r=Math.max(t-yJ,0);return xR(n-e(r),t-r)}const Pn={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},D0=.001;function bJ({duration:e=Pn.duration,bounce:t=Pn.bounce,velocity:n=Pn.velocity,mass:r=Pn.mass}){let i,a;ic(e<=ga(Pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Bs(Pn.minDamping,Pn.maxDamping,s),e=Bs(Pn.minDuration,Pn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=t1(d,s),w=Math.exp(-m);return D0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=t1(Math.pow(d,2),s);return(-i(d)+D0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-D0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,f=xJ(i,a,u);if(e=ga(e),isNaN(f))return{stiffness:Pn.stiffness,damping:Pn.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const $J=12;function xJ(e,t,n){let r=n;for(let i=1;i<$J;i++)r=r-e(r)/t(r);return r}function t1(e,t){return e*Math.sqrt(1-t*t)}const wJ=["duration","bounce"],CJ=["stiffness","damping","mass"];function DD(e,t){return t.some(n=>e[n]!==void 0)}function EJ(e){let t={velocity:Pn.velocity,stiffness:Pn.stiffness,damping:Pn.damping,mass:Pn.mass,isResolvedFromDuration:!1,...e};if(!DD(e,CJ)&&DD(e,wJ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Bs(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pn.mass,stiffness:i,damping:a}}else{const n=bJ(e);t={...t,...n,mass:Pn.mass},t.isResolvedFromDuration=!0}return t}function xp(e=Pn.visualDuration,t=Pn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=EJ({...n,velocity:-Za(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(f*h)),A=s-a,C=Za(Math.sqrt(f/h)),E=Math.abs(A)<5;r||(r=E?Pn.restSpeed.granular:Pn.restSpeed.default),i||(i=E?Pn.restDelta.granular:Pn.restDelta.default);let S;if(x<1){const _=t1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)u.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?ga(w):KR(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;u.done=ie&&ge}return u.value=u.done?s:F,u},toString:()=>{const _=Math.min(y3(R),$p),F=jR(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}xp.applyToOptions=e=>{const t=vJ(e,100,xp);return e.ease=t.ease,e.duration=ga(t.duration),e.type="keyframes",e};function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:f,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>u!==void 0&&ie<u||f!==void 0&&ie>f,w=ie=>u===void 0?f:f===void 0||Math.abs(u-ie)<Math.abs(f-ie)?u:f;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=xp({keyframes:[g.value,w(g.value)],velocity:KR(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}function SJ(e,t,n){const r=[],i=n||Ns.mix||NR,a=e.length-1;for(let s=0;s<a;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||Gi:t;u=hd(f,u)}r.push(u)}return r}function UR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(ba(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=SJ(t,r,i),f=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Bf(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Bs(e[0],e[a-1],h)):d}function DJ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bf(0,t,r);e.push(An(n,1,i))}}function AJ(e){const t=[0];return DJ(t,e.length-1),t}function TJ(e,t){return e.map(n=>n*t)}function PJ(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=KX(r)?r.map(xD):xD(r),a={done:!1,value:t[0]},s=TJ(n&&n.length===t.length?n:AJ(t),e),u=UR(s,t,{ease:Array.isArray(i)?i:PJ(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const _J=e=>e!==null;function b3(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(_J),u=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!u||r===void 0?a[u]:r}const MJ={decay:n1,inertia:n1,tween:$l,keyframes:$l,spring:xp};function qR(e){typeof e.type=="string"&&(e.type=MJ[e.type])}let $3=class{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 FJ=e=>e/100;let x3=class extends $3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ri.now()&&this.tick(ri.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qR(t);const{type:n=$l,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:u}=t;const f=n||$l;process.env.NODE_ENV!=="production"&&f!==$l&&ba(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`,"spring-two-frames"),f!==$l&&typeof u[0]!="number"&&(this.mixKeyframes=hd(FJ,NR(u[0],u[1])),u=[0,100]);const d=f({...t,keyframes:u});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=y3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+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:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=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 C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/u;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/u)):g==="mirror"&&(R=s)),S=Bs(0,1,oe)*u}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&f!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==n1&&(_.value=b3(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Za(this.calculatedDuration)}get time(){return Za(this.currentTime)}set time(t){var n;t=ga(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(ri.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Za(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=gJ,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(ri.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 RJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fu=e=>e*180/Math.PI,r1=e=>{const t=fu(Math.atan2(e[1],e[0]));return i1(t)},kJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:r1,rotateZ:r1,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},i1=e=>(e=e%360,e<0&&(e+=360),e),AD=r1,TD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),PD=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),OJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:TD,scaleY:PD,scale:e=>(TD(e)+PD(e))/2,rotateX:e=>i1(fu(Math.atan2(e[6],e[5]))),rotateY:e=>i1(fu(Math.atan2(-e[2],e[0]))),rotateZ:AD,rotate:AD,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function a1(e){return e.includes("scale")?1:0}function s1(e,t){if(!e||e==="none")return a1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=OJ,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=kJ,i=u}if(!i)return a1(t);const a=r[t],s=i[1].split(",").map(LJ);return typeof a=="function"?a(s):s[a]}const IJ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return s1(n,t)};function LJ(e){return parseFloat(e.trim())}const sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(sc),_D=e=>e===ac||e===Dt,VJ=new Set(["x","y","z"]),BJ=sc.filter(e=>!VJ.has(e));function NJ(e){const t=[];return BJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gu={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})=>s1(t,"x"),y:(e,{transform:t})=>s1(t,"y")};gu.translateX=gu.x;gu.translateY=gu.y;const vu=new Set;let o1=!1,u1=!1,l1=!1;function zR(){if(u1){const e=Array.from(vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=NJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var u;(u=r.getValue(a))==null||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}u1=!1,o1=!1,vu.forEach(e=>e.complete(l1)),vu.clear()}function WR(){vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(u1=!0)})}function jJ(){l1=!0,WR(),zR(),l1=!1}let w3=class{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(vu.add(this),o1||(o1=!0,wn.read(WR),wn.resolveKeyframes(zR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}RJ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vu.delete(this)}cancel(){this.state==="scheduled"&&(vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const KJ=e=>e.startsWith("--");function UJ(e,t,n){KJ(t)?e.style.setProperty(t,n):e.style[t]=n}const qJ=u3(()=>window.ScrollTimeline!==void 0),zJ={};function WJ(e,t){const n=u3(e);return()=>zJ[t]??n()}const HR=WJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,MD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gf([0,.65,.55,1]),circOut:gf([.55,0,1,.45]),backIn:gf([.31,.01,.66,-.59]),backOut:gf([.33,1.53,.69,.99])};function GR(e,t){if(e)return typeof e=="function"?HR()?jR(e,t):"ease-out":MR(e)?gf(e):Array.isArray(e)?e.map(n=>GR(n,t)||MD.easeOut):MD[e]}function HJ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:u="easeOut",times:f}={},d=void 0){const h={[t]:n};f&&(h.offset=f);const m=GR(u,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function YR(e){return typeof e=="function"&&"applyToOptions"in e}function GJ({type:e,...t}){return YR(e)&&HR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let YJ=class extends $3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,ba(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=GJ(t);this.animation=HJ(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=b3(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(h):UJ(n,r,h),this.animation.cancel()}f==null||f(),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,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Za(Number(t))}get time(){return Za(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ga(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 r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&qJ()?(this.animation.timeline=t,Gi):n(this)}};const ZR={anticipate:AR,backInOut:DR,circInOut:PR};function ZJ(e){return e in ZR}function XJ(e){typeof e.ease=="string"&&ZJ(e.ease)&&(e.ease=ZR[e.ease])}const FD=10;let JJ=class extends YJ{constructor(t){XJ(t),qR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new x3({...s,autoplay:!1}),f=ga(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-FD).value,u.sample(f).value,FD),u.stop()}};const RD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xo.test(e)||e==="0")&&!e.startsWith("url("));function QJ(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 eQ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=RD(i,t),u=RD(a,t);return ic(s===u,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!u?!1:QJ(e)||(n==="spring"||YR(n))&&r}function c1(e){e.duration=0,e.type}const tQ=new Set(["opacity","clipPath","filter","transform"]),nQ=u3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:d}=t.owner.getProps();return nQ()&&n&&tQ.has(n)&&(n!=="transform"||!d)&&!f&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const iQ=40;let aQ=class extends $3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:u,name:f,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=ri.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:f,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||w3;this.keyframeResolver=new b(u,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),f,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:u,delay:f,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ri.now(),eQ(t,a,s,u)||((Ns.instantAnimations||!f)&&(h==null||h(b3(t,r,n))),t[0]=t[t.length-1],c1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>iQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&rQ(g)?new JJ({...g,element:g.motionValue.owner.current}):new x3(g);b.finished.then(()=>this.notifyFinished()).catch(Gi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),jJ()),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 sQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oQ(e){const t=sQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const uQ=4;function XR(e,t,n=1){ba(n<=uQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=oQ(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return yR(s)?parseFloat(s):s}return p3(i)?XR(i,t,n+1):i}function C3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const JR=new Set(["width","height","top","left","right","bottom",...sc]),lQ={test:e=>e==="auto",parse:e=>e},QR=e=>t=>t.test(e),e7=[ac,Dt,Xa,oo,eJ,QX,lQ],kD=e=>e7.find(QR(e));function cQ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$R(e):!0}const fQ=new Set(["brightness","contrast","saturate","opacity"]);function dQ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m3)||[];if(!r)return e;const i=n.replace(r,"");let a=fQ.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const hQ=/\b([a-z-]*)\(.*?\)/gu,f1={...xo,getAnimatableNone:e=>{const t=e.match(hQ);return t?t.map(dQ).join(" "):e}},OD={...ac,transform:Math.round},pQ={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:vh,scaleX:vh,scaleY:vh,scaleZ:vh,skew:oo,skewX:oo,skewY:oo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:Nf,originX:wD,originY:wD,originZ:Dt},E3={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt,...pQ,zIndex:OD,fillOpacity:Nf,strokeOpacity:Nf,numOctaves:OD},mQ={...E3,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:f1,WebkitFilter:f1},t7=e=>mQ[e];function n7(e,t){let n=t7(e);return n!==f1&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const gQ=new Set(["auto","none","0"]);function vQ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!gQ.has(a)&&jf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=n7(n,i)}let yQ=class extends w3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let d=t[f];if(typeof d=="string"&&(d=d.trim(),p3(d))){const h=XR(d,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!JR.has(r)||t.length!==2)return;const[i,a]=t,s=kD(i),u=kD(a);if(s!==u)if(_D(s)&&_D(u))for(let f=0;f<t.length;f++){const d=t[f];typeof d=="string"&&(t[f]=parseFloat(d))}else gu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||cQ(t[i]))&&r.push(i);r.length&&vQ(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=gu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}};function bQ(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const r7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $Q(e){return bR(e)&&"offsetHeight"in e}const ID=30,xQ=e=>!isNaN(parseFloat(e)),Cf={current:void 0};let wQ=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ri.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ri.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&c3(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new l3);const r=this.events[t].add(n);return t==="change"?()=>{r(),wn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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 Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ID)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ID);return xR(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 Du(e,t){return new wQ(e,t)}const{schedule:S3}=FR(queueMicrotask,!1),fa={x:!1,y:!1};function i7(){return fa.x||fa.y}function CQ(e){return e==="x"||e==="y"?fa[e]?null:(fa[e]=!0,()=>{fa[e]=!1}):fa.x||fa.y?null:(fa.x=fa.y=!0,()=>{fa.x=fa.y=!1})}function a7(e,t){const n=bQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function LD(e){return!(e.pointerType==="touch"||i7())}function EQ(e,t,n={}){const[r,i,a]=a7(e,n),s=u=>{if(!LD(u))return;const{target:f}=u,d=t(f,u);if(typeof d!="function"||!f)return;const h=m=>{LD(m)&&(d(m),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),a}const s7=(e,t)=>t?e===t?!0:s7(e,t.parentElement):!1,D3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,SQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DQ(e){return SQ.has(e.tagName)||e.tabIndex!==-1}const Vh=new WeakSet;function VD(e){return t=>{t.key==="Enter"&&e(t)}}function A0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const AQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=VD(()=>{if(Vh.has(n))return;A0(n,"down");const i=VD(()=>{A0(n,"up")}),a=()=>A0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function BD(e){return D3(e)&&!i7()}function TQ(e,t,n={}){const[r,i,a]=a7(e,n),s=u=>{const f=u.currentTarget;if(!BD(u))return;Vh.add(f);const d=t(f,u),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Vh.has(f)&&Vh.delete(f),BD(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,f===window||f===document||n.useGlobalTarget||s7(f,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),$Q(u)&&(u.addEventListener("focus",d=>AQ(d,i)),!DQ(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),a}function o7(e){return bR(e)&&"ownerSVGElement"in e}function PQ(e){return o7(e)&&e.tagName==="svg"}function _Q(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],u=UR(i,a,s);return t?u(r):u}const vr=e=>!!(e&&e.getVelocity),MQ=[...e7,Jn,xo],FQ=e=>MQ.find(QR(e)),A3=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function RQ(e=!0){const t=I.useContext(a3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const s=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const u7=I.createContext({strict:!1}),ND={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"]},Wl={};for(const e in ND)Wl[e]={isEnabled:t=>ND[e].some(n=>!!t[n])};function kQ(e){for(const t in e)Wl[t]={...Wl[t],...e[t]}}const OQ=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 wp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||OQ.has(e)}let l7=e=>!wp(e);function IQ(e){typeof e=="function"&&(l7=t=>t.startsWith("on")?!wp(t):e(t))}try{IQ(require("@emotion/is-prop-valid").default)}catch{}function LQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(l7(i)||n===!0&&wp(i)||!t&&!wp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ym=I.createContext({});function bm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kf(e){return typeof e=="string"||Array.isArray(e)}const T3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P3=["initial",...T3];function $m(e){return bm(e.animate)||P3.some(t=>Kf(e[t]))}function c7(e){return!!($m(e)||e.variants)}function VQ(e,t){if($m(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kf(n)?n:void 0,animate:Kf(r)?r:void 0}}return e.inherit!==!1?t:{}}function BQ(e){const{initial:t,animate:n}=VQ(e,I.useContext(ym));return I.useMemo(()=>({initial:t,animate:n}),[jD(t),jD(n)])}function jD(e){return Array.isArray(e)?e.join(" "):e}const Uf={};function NQ(e){for(const t in e)Uf[t]=e[t],h3(t)&&(Uf[t].isCSSVariable=!0)}function f7(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uf[e]||e==="opacity")}const jQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KQ=sc.length;function UQ(e,t,n){let r="",i=!0;for(let a=0;a<KQ;a++){const s=sc[a],u=e[s];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(s.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const d=r7(u,E3[s]);if(!f){i=!1;const h=jQ[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,u=!1;for(const f in t){const d=t[f];if(oc.has(f)){s=!0;continue}else if(h3(f)){i[f]=d;continue}else{const h=r7(d,E3[f]);f.startsWith("origin")?(u=!0,a[f]=h):r[f]=h}}if(t.transform||(s||n?r.transform=UQ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${f} ${d} ${h}`}}const M3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d7(e,t,n){for(const r in t)!vr(t[r])&&!f7(r,n)&&(e[r]=t[r])}function qQ({transformTemplate:e},t){return I.useMemo(()=>{const n=M3();return _3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zQ(e,t){const n=e.style||{},r={};return d7(r,n,e),Object.assign(r,qQ(e,t)),r}function WQ(e,t){const n={},r=zQ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const HQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},GQ={offset:"strokeDashoffset",array:"strokeDasharray"};function YQ(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?HQ:GQ;e[a.offset]=Dt.transform(-r);const s=Dt.transform(t),u=Dt.transform(n);e[a.array]=`${s} ${u}`}function h7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...u},f,d,h){if(_3(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&YQ(m,i,a,s,!1)}const p7=()=>({...M3(),attrs:{}}),m7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ZQ(e,t,n,r){const i=I.useMemo(()=>{const a=p7();return h7(a,t,m7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};d7(a,e.style,e),i.style={...a,...i.style}}return i}const XQ=["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 F3(e){return typeof e!="string"||e.includes("-")?!1:!!(XQ.indexOf(e)>-1||/[A-Z]/u.test(e))}function JQ(e,t,n,{latestValues:r},i,a=!1){const u=(F3(e)?ZQ:WQ)(t,r,i,e),f=LQ(t,typeof e=="string",a),d=e!==I.Fragment?{...f,...u,ref:n}:{},{children:h}=t,m=I.useMemo(()=>vr(h)?h.get():h,[h]);return I.createElement(e,{...d,children:m})}function KD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function R3(e,t,n,r){if(typeof t=="function"){const[i,a]=KD(r);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]=KD(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Bh(e){return vr(e)?e.get():e}function QQ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:eee(n,r,i,e),renderState:t()}}function eee(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Bh(a[g]);let{initial:s,animate:u}=e;const f=$m(e),d=c7(e);t&&d&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!bm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=R3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}const g7=e=>(t,n)=>{const r=I.useContext(ym),i=I.useContext(a3),a=()=>QQ(e,t,r,i);return n?a():dd(a)};function k3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(vr(r[s])||t.style&&vr(t.style[s])||f7(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const tee=g7({scrapeMotionValuesFromProps:k3,createRenderState:M3});function v7(e,t,n){const r=k3(e,t,n);for(const i in e)if(vr(e[i])||vr(t[i])){const a=sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const nee=g7({scrapeMotionValuesFromProps:v7,createRenderState:p7}),ree=Symbol.for("motionComponentSymbol");function xl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function iee(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xl(n)&&(n.current=r))},[t])}const O3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),aee="framerAppearId",y7="data-"+O3(aee),b7=I.createContext({});function see(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(ym),s=I.useContext(u7),u=I.useContext(a3),f=I.useContext(A3).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,m=I.useContext(b7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&oee(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const b=n[y7],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return vR(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1),h.enteringChildren=void 0)}),h}function oee(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:u,layoutScroll:f,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||u&&xl(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:f,layoutRoot:d})}function $7(e){if(e)return e.options.allowProjection!==!1?e.projection:$7(e.parent)}function T0(e,{forwardMotionProps:t=!1}={},n,r){n&&kQ(n);const i=F3(e)?nee:tee;function a(u,f){let d;const h={...I.useContext(A3),...u,layoutId:uee(u)},{isStatic:m}=h,g=BQ(u),b=i(u,m);if(!m&&i3){lee(h,n);const w=cee(h);d=w.MeasureLayout,g.visualElement=see(e,b,h,r,w.ProjectionNode)}return Qa.jsxs(ym.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,JQ(e,u,iee(b,g.visualElement,f),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=I.forwardRef(a);return s[ree]=e,s}function uee({layoutId:e}){const t=I.useContext(gR).id;return t&&e!==void 0?t+"-"+e:e}function lee(e,t){const n=I.useContext(u7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ic(!1,r,"lazy-strict-mode"):ba(!1,r,"lazy-strict-mode")}}function cee(e){const{drag:t,layout:n}=Wl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function fee(e,t){if(typeof Proxy>"u")return T0;const n=new Map,r=(a,s)=>T0(a,s,e,t),i=(a,s)=>(process.env.NODE_ENV!=="production"&&c3(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,T0(s,void 0,e,t)),n.get(s))})}function x7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function dee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hee(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function P0(e){return e===void 0||e===1}function d1({scale:e,scaleX:t,scaleY:n}){return!P0(e)||!P0(t)||!P0(n)}function nu(e){return d1(e)||w7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function w7(e){return UD(e.x)||UD(e.y)}function UD(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function qD(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function h1(e,t=0,n=1,r,i){e.min=qD(e.min,t,n,r,i),e.max=qD(e.max,t,n,r,i)}function C7(e,{x:t,y:n}){h1(e.x,t.translate,t.scale,t.originPoint),h1(e.y,n.translate,n.scale,n.originPoint)}const zD=.999999999999,WD=1.0000000000001;function pee(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let u=0;u<i;u++){a=n[u],s=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,C7(e,s)),r&&nu(a.latestValues)&&Cl(e,a.latestValues))}t.x<WD&&t.x>zD&&(t.x=1),t.y<WD&&t.y>zD&&(t.y=1)}function wl(e,t){e.min=e.min+t,e.max=e.max+t}function HD(e,t,n,r,i=.5){const a=An(e.min,e.max,i);h1(e,t,n,a,r)}function Cl(e,t){HD(e.x,t.x,t.scaleX,t.scale,t.originX),HD(e.y,t.y,t.scaleY,t.scale,t.originY)}function E7(e,t){return x7(hee(e.getBoundingClientRect(),t))}function mee(e,t,n){const r=E7(e,n),{scroll:i}=t;return i&&(wl(r.x,i.offset.x),wl(r.y,i.offset.y)),r}const GD=()=>({translate:0,scale:1,origin:0,originPoint:0}),El=()=>({x:GD(),y:GD()}),YD=()=>({min:0,max:0}),Wn=()=>({x:YD(),y:YD()}),p1={current:null},S7={current:!1};function gee(){if(S7.current=!0,!!i3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>p1.current=e.matches;e.addEventListener("change",t),t()}else p1.current=!1}const vee=new WeakMap;function yee(e,t,n){for(const r in t){const i=t[r],a=n[r];if(vr(i))e.addValue(r,i);else if(vr(a))e.addValue(r,Du(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ZD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let bee=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=w3,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 g=ri.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wn.render(this.render,!1,!0))};const{latestValues:f,renderState:d}=s;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=$m(n),this.isVariantNode=c7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];f[g]!==void 0&&vr(b)&&b.set(f[g])}}mount(t){var n;this.current=t,vee.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((r,i)=>this.bindToMotionValue(i,r)),S7.current||gee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:p1.current,process.env.NODE_ENV!=="production"&&c3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=oc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),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 Wl){const n=Wl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(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):Wn()}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 r=0;r<ZD.length;r++){const i=ZD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=yee(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 r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(yR(r)||$R(r))?r=parseFloat(r):!FQ(r)&&xo.test(n)&&(r=n7(t,n)),this.setBaseTarget(t,vr(r)?r.get():r)),vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=R3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new l3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){S3.render(this.render)}},D7=class extends bee{constructor(){super(...arguments),this.KeyframeResolver=yQ}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function A7(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function $ee(e){return window.getComputedStyle(e)}let xee=class extends D7{constructor(){super(...arguments),this.type="html",this.renderInstance=A7}readValueFromInstance(t,n){var r;if(oc.has(n))return(r=this.projection)!=null&&r.isProjecting?a1(n):IJ(t,n);{const i=$ee(t),a=(h3(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return E7(t,n)}build(t,n,r){_3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return k3(t,n,r)}};const T7=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 wee(e,t,n,r){A7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(T7.has(i)?i:O3(i),t.attrs[i])}let Cee=class extends D7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oc.has(n)){const r=t7(n);return r&&r.default||0}return n=T7.has(n)?n:O3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v7(t,n,r)}build(t,n,r){h7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){wee(t,n,r,i)}mount(t){this.isSVGTag=m7(t.tagName),super.mount(t)}};const Eee=(e,t)=>F3(e)?new Cee(t):new xee(t,{allowProjection:e!==I.Fragment});function Il(e,t,n){const r=e.getProps();return R3(r,t,n!==void 0?n:r.custom,e)}const m1=e=>Array.isArray(e);function See(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function Dee(e){return m1(e)?e[e.length-1]||0:e}function Aee(e,t){const n=Il(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const u=Dee(a[s]);See(e,s,u)}}function Tee(e){return!!(vr(e)&&e.add)}function g1(e,t){const n=e.getValue("willChange");if(Tee(n))return n.add(t);if(!n&&Ns.WillChange){const r=new Ns.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function P7(e){return e.props[y7]}const Pee=e=>e!==null;function _ee(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Pee),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const Mee={type:"spring",stiffness:500,damping:25,restSpeed:10},Fee=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ree={type:"keyframes",duration:.8},kee={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Oee=(e,{keyframes:t})=>t.length>2?Ree:oc.has(e)?e.startsWith("scale")?Fee(t[1]):Mee:kee;function Iee({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:u,from:f,elapsed:d,...h}){return!!Object.keys(h).length}const I3=(e,t,n,r={},i,a)=>s=>{const u=C3(r,e)||{},f=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ga(f);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};Iee(u)||Object.assign(h,Oee(e,h)),h.duration&&(h.duration=ga(h.duration)),h.repeatDelay&&(h.repeatDelay=ga(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(c1(h),h.delay===0&&(m=!0)),(Ns.instantAnimations||Ns.skipAnimations)&&(m=!0,c1(h),h.delay=0),h.allowFlatten=!u.type&&!u.ease,m&&!a&&t.get()!==void 0){const g=_ee(h.keyframes,u);if(g!==void 0){wn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return u.isSync?new x3(h):new aQ(h)};function Lee({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,e.latestValues[h]??null),g=u[h];if(g===void 0||d&&Lee(d,h))continue;const b={delay:n,...C3(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=P7(e);if(C){const E=window.MotionHandoffAnimation(C,h,wn);E!==null&&(b.startTime=E,x=!0)}}g1(e,h),m.start(I3(h,m,g,e.shouldReduceMotion&&JR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&f.push(A)}return s&&Promise.all(f).then(()=>{wn.update(()=>{s&&Aee(e,s)})}),f}function M7(e,t,n,r=0,i=1){const a=Array.from(e).sort((d,h)=>d.sortNodePosition(h)).indexOf(t),s=e.size,u=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:u-a*r}function v1(e,t,n={}){var f;const r=Il(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(_7(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return Vee(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,h]=u==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function Vee(e,t,n=0,r=0,i=0,a=1,s){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(v1(f,t,{...s,delay:n+(typeof r=="function"?0:r)+M7(e.variantChildren,f,r,i,a)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function Bee(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>v1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=v1(e,t,n);else{const i=typeof t=="function"?Il(e,t,n.custom):t;r=Promise.all(_7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function F7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Nee=P3.length;function R7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Nee;n++){const r=P3[n],i=e.props[r];(Kf(i)||i===!1)&&(t[r]=i)}return t}const jee=[...T3].reverse(),Kee=T3.length;function Uee(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Bee(e,n,r)))}function qee(e){let t=Uee(e),n=XD(),r=!0;const i=f=>(d,h)=>{var g;const m=Il(e,h,f==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(f){t=f(e)}function s(f){const{props:d}=e,h=R7(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<Kee;A++){const C=jee[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=Kf(S),_=C===f?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||bm(S)||typeof S=="boolean")continue;const z=zee(E.prevProp,S);let ie=z||C===f&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;m1(N)&&m1(te)?j=!F7(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1);const ee=F&&z;ie&&(!ee||ge)&&m.push(...oe.map(k=>{const N={type:C};if(typeof k=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,j=Il(te,k);if(te.enteringChildren&&j){const{delayChildren:ce}=j.transition||{};N.delay=M7(te.enteringChildren,e,ce)}}return{animation:k,options:N}}))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Il(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function u(f,d){var m;if(n[f].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(f,d)}),n[f].isActive=d;const h=s(f);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=XD(),r=!0}}}function zee(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!F7(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XD(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}let Do=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Wee=class extends Do{constructor(t){super(t),t.animationState||(t.animationState=qee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bm(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)}},Hee=0,Gee=class extends Do{constructor(){super(...arguments),this.id=Hee++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)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 Yee={animation:{Feature:Wee},exit:{Feature:Gee}};function qf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}const Zee=e=>t=>D3(t)&&e(t,gd(t));function Ef(e,t,n,r){return qf(e,t,Zee(n),r)}const k7=1e-4,Xee=1-k7,Jee=1+k7,O7=.01,Qee=0-O7,ete=0+O7;function Vr(e){return e.max-e.min}function tte(e,t,n){return Math.abs(e-t)<=n}function JD(e,t,n,r=.5){e.origin=r,e.originPoint=An(t.min,t.max,e.origin),e.scale=Vr(n)/Vr(t),e.translate=An(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Xee&&e.scale<=Jee||isNaN(e.scale))&&(e.scale=1),(e.translate>=Qee&&e.translate<=ete||isNaN(e.translate))&&(e.translate=0)}function Sf(e,t,n,r){JD(e.x,t.x,n.x,r?r.originX:void 0),JD(e.y,t.y,n.y,r?r.originY:void 0)}function QD(e,t,n){e.min=n.min+t.min,e.max=e.min+Vr(t)}function nte(e,t,n){QD(e.x,t.x,n.x),QD(e.y,t.y,n.y)}function eA(e,t,n){e.min=t.min-n.min,e.max=e.min+Vr(t)}function Df(e,t,n){eA(e.x,t.x,n.x),eA(e.y,t.y,n.y)}function Vi(e){return[e("x"),e("y")]}const I7=({current:e})=>e?e.ownerDocument.defaultView:null,tA=(e,t)=>Math.abs(e-t);function rte(e,t){const n=tA(e.x,t.x),r=tA(e.y,t.y);return Math.sqrt(n**2+r**2)}class L7{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=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 g=M0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=rte(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:A}=gr;this.history.push({...x,timestamp:A});const{onStart:C,onMove:E}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=_0(b,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=M0(g.type==="pointercancel"?this.lastMoveEventInfo:_0(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),x&&x(g,C)},!D3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const u=gd(t),f=_0(u,this.transformPagePoint),{point:d}=f,{timestamp:h}=gr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,M0(f,this.history)),this.removeListeners=hd(Ef(this.contextWindow,"pointermove",this.handlePointerMove),Ef(this.contextWindow,"pointerup",this.handlePointerUp),Ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),js(this.updatePoint)}}function _0(e,t){return t?{point:t(e.point)}:e}function nA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function M0({point:e},t){return{point:e,delta:nA(e,V7(t)),offset:nA(e,ite(t)),velocity:ate(t,.1)}}function ite(e){return e[0]}function V7(e){return e[e.length-1]}function ate(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=V7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ga(t)));)n--;if(!r)return{x:0,y:0};const a=Za(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function ste(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?An(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?An(n,e,r.max):Math.min(e,n)),e}function rA(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 ote(e,{top:t,left:n,bottom:r,right:i}){return{x:rA(e.x,n,i),y:rA(e.y,t,r)}}function iA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ute(e,t){return{x:iA(e.x,t.x),y:iA(e.y,t.y)}}function lte(e,t){let n=.5;const r=Vr(e),i=Vr(t);return i>r?n=Bf(t.min,t.max-r,e.min):r>i&&(n=Bf(e.min,e.max-i,t.min)),Bs(0,1,n)}function cte(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 y1=.35;function fte(e=y1){return e===!1?e=0:e===!0&&(e=y1),{x:aA(e,"left","right"),y:aA(e,"top","bottom")}}function aA(e,t,n){return{min:sA(e,t),max:sA(e,n)}}function sA(e,t){return typeof e=="number"?e:e[t]||0}const dte=new WeakMap;class hte{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=Wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gd(m).point)},s=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=CQ(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Xa.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const R=S.layout.layoutBox[C];R&&(E=Vr(R)*(parseFloat(E)/100))}}this.originPoint[C]=E}),x&&wn.postRender(()=>x(m,g)),g1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=pte(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),A&&A(m,g)},f=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Vi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new L7(t,{onSessionStart:a,onStart:s,onMove:u,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:I7(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&wn.postRender(()=>u(r,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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!yh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=ste(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=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&&xl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=ote(r.layoutBox,t):this.constraints=!1,this.elastic=fte(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=cte(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xl(t))return!1;const r=t.current;ba(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=mee(r,i.root,this.visualElement.getTransformPagePoint());let s=ute(i.layout.layoutBox,a);if(n){const u=n(dee(s));this.hasMutatedConstraints=!!u,u&&(s=x7(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},d=Vi(h=>{if(!yh(h,n,this.currentDirection))return;let m=f&&f[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return g1(this.visualElement,t),r.start(I3(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(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()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!yh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];a.set(t[n]-An(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const f=u.get();i[s]=lte({min:f,max:f},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(s=>{if(!yh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:f,max:d}=this.constraints[s];u.set(An(f,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;dte.set(this.visualElement,this);const t=this.visualElement.current,n=Ef(t,"pointerdown",f=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();xl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wn.read(r);const s=qf(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=y1,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:u}}}function yh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function pte(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class mte extends Do{constructor(t){super(t),this.removeGroupControls=Gi,this.removeListeners=Gi,this.controls=new hte(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gi}unmount(){this.removeGroupControls(),this.removeListeners()}}const oA=e=>(t,n)=>{e&&wn.postRender(()=>e(t,n))};class gte extends Do{constructor(){super(...arguments),this.removePointerDownListener=Gi}onPointerDown(t){this.session=new L7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:I7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:oA(t),onStart:oA(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&wn.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ef(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 Nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function uA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ef={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=uA(e,t.target.x),r=uA(e,t.target.y);return`${n}% ${r}%`}},vte={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xo.parse(e);if(i.length>5)return r;const a=xo.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=f;const d=An(u,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};let F0=!1;class yte extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;NQ(bte),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),F0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,F0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||wn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),S3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;F0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function B7(e){const[t,n]=RQ(),r=I.useContext(gR);return Qa.jsx(yte,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(b7),isPresent:t,safeToRemove:n})}const bte={borderRadius:{...ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomLeftRadius:ef,borderBottomRightRadius:ef,boxShadow:vte};function $te(e,t,n){const r=vr(e)?e:Du(e);return r.start(I3("",r,t,n)),r.animation}const xte=(e,t)=>e.depth-t.depth;class wte{constructor(){this.children=[],this.isDirty=!1}add(t){s3(this.children,t),this.isDirty=!0}remove(t){o3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(xte),this.isDirty=!1,this.children.forEach(t)}}function Cte(e,t){const n=ri.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(js(r),e(a-t))};return wn.setup(r,!0),()=>js(r)}const N7=["TopLeft","TopRight","BottomLeft","BottomRight"],Ete=N7.length,lA=e=>typeof e=="string"?parseFloat(e):e,cA=e=>typeof e=="number"||Dt.test(e);function Ste(e,t,n,r,i,a){i?(e.opacity=An(0,n.opacity??1,Dte(r)),e.opacityExit=An(t.opacity??1,0,Ate(r))):a&&(e.opacity=An(t.opacity??1,n.opacity??1,r));for(let s=0;s<Ete;s++){const u=`border${N7[s]}Radius`;let f=fA(t,u),d=fA(n,u);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||cA(f)===cA(d)?(e[u]=Math.max(An(lA(f),lA(d),r),0),(Xa.test(d)||Xa.test(f))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=An(t.rotate||0,n.rotate||0,r))}function fA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Dte=j7(0,.5,TR),Ate=j7(.5,.95,Gi);function j7(e,t,n){return r=>r<e?0:r>t?1:n(Bf(e,t,r))}function dA(e,t){e.min=t.min,e.max=t.max}function Oi(e,t){dA(e.x,t.x),dA(e.y,t.y)}function hA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pA(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function Tte(e,t=0,n=1,r=.5,i,a=e,s=e){if(Xa.test(t)&&(t=parseFloat(t),t=An(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=An(a.min,a.max,r);e===a&&(u-=t),e.min=pA(e.min,t,n,u,i),e.max=pA(e.max,t,n,u,i)}function mA(e,t,[n,r,i],a,s){Tte(e,t[n],t[r],t[i],t.scale,a,s)}const Pte=["x","scaleX","originX"],_te=["y","scaleY","originY"];function gA(e,t,n,r){mA(e.x,t,Pte,n?n.x:void 0,r?r.x:void 0),mA(e.y,t,_te,n?n.y:void 0,r?r.y:void 0)}function vA(e){return e.translate===0&&e.scale===1}function K7(e){return vA(e.x)&&vA(e.y)}function yA(e,t){return e.min===t.min&&e.max===t.max}function Mte(e,t){return yA(e.x,t.x)&&yA(e.y,t.y)}function bA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function U7(e,t){return bA(e.x,t.x)&&bA(e.y,t.y)}function $A(e){return Vr(e.x)/Vr(e.y)}function xA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Fte{constructor(){this.members=[]}add(t){s3(this.members,t),t.scheduleRender()}remove(t){if(o3(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 r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Rte(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),w&&(r+=`skewY(${w}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const R0=["","X","Y","Z"],kte=1e3;let Ote=0;function k0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function q7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=P7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&q7(r)}function z7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Ote++,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(Vte),this.nodes.forEach(Kte),this.nodes.forEach(Ute),this.nodes.forEach(Bte)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new wte)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new l3),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const f=this.eventHandlers.get(s);f&&f.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=o7(s)&&!PQ(s),this.instance=s;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Cte(g,250),Nh.hasAnimatedSinceResize&&(Nh.hasAnimatedSinceResize=!1,this.nodes.forEach(EA)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||Gte,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=d.getProps(),C=!this.targetLayout||!U7(this.targetLayout,b),E=!m&&g;if(this.options.layoutRoot||this.resumeFrom||E||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...C3(w,"layout"),onPlay:x,onComplete:A};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||EA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),js(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(qte),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&q7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(wA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(CA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(jte),this.nodes.forEach(Ite),this.nodes.forEach(Lte)):this.nodes.forEach(CA),this.clearAllSnapshots();const u=ri.now();gr.delta=Bs(0,1e3/60,u-gr.timestamp),gr.timestamp=u,gr.isProcessing=!0,w0.update.process(gr),w0.preRender.process(gr),w0.render.process(gr),gr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,S3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nte),this.sharedNodes.forEach(zte)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vr(this.snapshot.measuredBox.x)&&!Vr(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!K7(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&this.instance&&(u||nu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return s&&(f=this.removeTransform(f)),Yte(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Wn();const u=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Zte))){const{scroll:h}=this.root;h&&(wl(u.x,h.offset.x),wl(u.y,h.offset.y))}return u}removeElementScroll(s){var f;const u=Wn();if(Oi(u,s),(f=this.scroll)!=null&&f.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Oi(u,s),wl(u.x,m.offset.x),wl(u.y,m.offset.y))}return u}applyTransform(s,u=!1){const f=Wn();Oi(f,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Cl(f,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),nu(h.latestValues)&&Cl(f,h.latestValues)}return nu(this.latestValues)&&Cl(f,this.latestValues),f}removeTransform(s){const u=Wn();Oi(u,s);for(let f=0;f<this.path.length;f++){const d=this.path[f];if(!d.instance||!nu(d.latestValues))continue;d1(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Oi(h,m),gA(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return nu(this.latestValues)&&gA(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==gr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var g;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=gr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),nte(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oi(this.target,this.layout.layoutBox),C7(this.target,this.targetDelta)):Oi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.target,b.target),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||d1(this.parent.latestValues)||w7(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 w;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let f=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===gr.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=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||h))return;Oi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;pee(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Wn());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hA(this.prevProjectionDelta.x,this.projectionDelta.x),hA(this.prevProjectionDelta.y,this.projectionDelta.y)),Sf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!xA(this.projectionDelta.x,this.prevProjectionDelta.x)||!xA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),s){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=El(),this.projectionDelta=El(),this.projectionDeltaWithTransform=El()}setAnimationOrigin(s,u=!1){const f=this.snapshot,d=f?f.latestValues:{},h={...this.latestValues},m=El();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=f?f.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,A=this.getStack(),C=!A||A.members.length<=1,E=!!(x&&!C&&this.options.crossfade===!0&&!this.path.some(Hte));this.animationProgress=0;let S;this.mixTargetDelta=R=>{const _=R/1e3;SA(m.x,s.x,_),SA(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Wte(this.relativeTarget,this.relativeTargetOrigin,g,_),S&&Mte(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wn()),Oi(S,this.relativeTarget)),x&&(this.animationValues=h,Ste(h,d,this.latestValues,_,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var u,f,d;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Nh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Du(0)),this.currentAnimation=$te(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(kte),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:f,layout:d,latestValues:h}=s;if(!(!u||!f||!d)){if(this!==s&&this.layout&&d&&W7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Wn();const m=Vr(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+m;const g=Vr(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+g}Oi(u,f),Cl(u,h),Sf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Fte),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var u;const{layoutId:s}=this.options;return s?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:s}=this.options;return s?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:f}=s;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const d={};f.z&&k0("z",s,d,this.animationValues);for(let h=0;h<R0.length;h++)k0(`rotate${R0[h]}`,s,d,this.animationValues),k0(`skew${R0[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}applyProjectionStyles(s,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||"",s.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!nu(this.latestValues)&&(s.transform=f?f({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Rte(this.projectionDeltaWithTransform,this.treeScale,h);f&&(m=f(h,m)),s.transform=m;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in Uf){if(h[w]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:C}=Uf[w],E=m==="none"?h[w]:x(h[w],d);if(A){const S=A.length;for(let R=0;R<S;R++)s[A[R]]=E}else C?this.options.visualElement.renderState.vars[w]=E:s[w]=E}this.options.layoutId&&(s.pointerEvents=d===this?Bh(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(wA),this.root.sharedNodes.clear()}}}function Ite(e){e.updateLayout()}function Lte(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:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(g);g.min=r[m].min,g.max=g.min+b}):W7(a,t.layoutBox,r)&&Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=El();Sf(u,r,t.layoutBox);const f=El();s?Sf(f,e.applyTransform(i,!0),t.measuredBox):Sf(f,r,t.layoutBox);const d=!K7(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Wn();Df(w,t.layoutBox,g.layoutBox);const x=Wn();Df(x,r,b.layoutBox),U7(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Vte(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 Bte(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Nte(e){e.clearSnapshot()}function wA(e){e.clearMeasurements()}function CA(e){e.isLayoutDirty=!1}function jte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function EA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Kte(e){e.resolveTargetDelta()}function Ute(e){e.calcProjection()}function qte(e){e.resetSkewAndRotation()}function zte(e){e.removeLeadSnapshot()}function SA(e,t,n){e.translate=An(t.translate,0,n),e.scale=An(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function DA(e,t,n,r){e.min=An(t.min,n.min,r),e.max=An(t.max,n.max,r)}function Wte(e,t,n,r){DA(e.x,t.x,n.x,r),DA(e.y,t.y,n.y,r)}function Hte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Gte={duration:.45,ease:[.4,0,.1,1]},AA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),TA=AA("applewebkit/")&&!AA("chrome/")?Math.round:Gi;function PA(e){e.min=TA(e.min),e.max=TA(e.max)}function Yte(e){PA(e.x),PA(e.y)}function W7(e,t,n){return e==="position"||e==="preserve-aspect"&&!tte($A(t),$A(n),.2)}function Zte(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Xte=z7({attachResizeListener:(e,t)=>qf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),O0={current:void 0},H7=z7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!O0.current){const e=new Xte({});e.mount(window),e.setOptions({layoutScroll:!0}),O0.current=e}return O0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Jte={pan:{Feature:gte},drag:{Feature:mte,ProjectionNode:H7,MeasureLayout:B7}};function _A(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let Qte=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=EQ(t,(n,r)=>(_A(this.node,r,"Start"),i=>_A(this.node,i,"End"))))}unmount(){}},ene=class extends Do{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=hd(qf(this.node.current,"focus",()=>this.onFocus()),qf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function MA(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let tne=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=TQ(t,(n,r)=>(MA(this.node,r,"Start"),(i,{success:a})=>MA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const b1=new WeakMap,I0=new WeakMap,nne=e=>{const t=b1.get(e.target);t&&t(e)},rne=e=>{e.forEach(nne)};function ine({root:e,...t}){const n=e||document;I0.has(n)||I0.set(n,{});const r=I0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(rne,{root:e,...t})),r[i]}function ane(e,t,n){const r=ine(t);return b1.set(e,n),r.observe(e),()=>{b1.delete(e),r.unobserve(e)}}const sne={some:0,all:1};let one=class extends Do{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sne[i]},u=f=>{const{isIntersecting:d}=f;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:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(f)};return ane(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(une(t,n))&&this.startObserver()}unmount(){}};function une({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lne={inView:{Feature:one},tap:{Feature:tne},focus:{Feature:ene},hover:{Feature:Qte}},cne={layout:{ProjectionNode:H7,MeasureLayout:B7}},fne={...Yee,...lne,...Jte,...cne},G7=fee(fne,Eee);function Y7(e){const t=dd(()=>Du(e)),{isStatic:n}=I.useContext(A3);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function Z7(e,t){const n=Y7(t()),r=()=>n.set(t());return r(),vR(()=>{const i=()=>wn.preRender(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),js(r)}}),n}function dne(e){Cf.current=[],e();const t=Z7(Cf.current,e);return Cf.current=void 0,t}function hne(e,t,n,r){if(typeof e=="function")return dne(e);const i=typeof t=="function"?t:_Q(t,n,r);return Array.isArray(e)?FA(e,i):FA([e],([a])=>i(a))}function FA(e,t){const n=dd(()=>[]);return Z7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const X7=I.createContext(null);function pne(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,s=e[i+a];if(!s)return e;const u=e[i],f=s.layout,d=An(f.min,f.max,.5);return a===1&&u.layout.max+n>d||a===-1&&u.layout.min+n<d?OX(e,i,i+a):e}function mne({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},s){const u=dd(()=>G7[t]),f=[],d=I.useRef(!1);ba(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=f.findIndex(w=>m===w.value);b!==-1?f[b].layout=g[n]:f.push({value:m,layout:g[n]}),f.sort(yne)},updateOrder:(m,g,b)=>{if(d.current)return;const w=pne(f,m,g,b);f!==w&&(d.current=!0,r(w.map(vne).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{d.current=!1}),Qa.jsx(u,{...a,ref:s,ignoreStrict:!0,children:Qa.jsx(X7.Provider,{value:h,children:e})})}const gne=I.forwardRef(mne);function vne(e){return e.value}function yne(e,t){return e.layout.min-t.layout.min}function RA(e,t=0){return vr(e)?e:Y7(t)}function bne({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...s},u){const f=dd(()=>G7[r]),d=I.useContext(X7),h={x:RA(t.x),y:RA(t.y)},m=hne([h.x,h.y],([x,A])=>x||A?1:"unset");ba(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return Qa.jsx(f,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:C}=A;C[g]&&w(n,h[g].get(),C[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:u,ignoreStrict:!0,children:e})}const $ne=I.forwardRef(bne);var jh={exports:{}},xne=jh.exports,kA;function wne(){return kA||(kA=1,function(e,t){(function(n,r){e.exports=r()})(xne,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,u=s.format;a.en.formats=n,s.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,w,x){var A=x&&x.toUpperCase();return w||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,S){return E||S.slice(1)})})}(f,d===void 0?{}:d);return u.call(this,h)}}})}(jh)),jh.exports}var Cne=wne();const Ene=qr(Cne),OA=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},J7=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?OA(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>OA(i,n,e))}},Sne=(e,t)=>{t.shouldUseNativeValidation&&J7(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Dne(t.names||Object.keys(e),r)){const s=Object.assign({},it(n,r));nn(s,"root",a),nn(n,r,s)}else nn(n,r,a)}return n},Dne=(e,t)=>{const n=IA(t);return e.some(r=>IA(r).match(`^${n}\\.\\d+`))};function IA(e){return e.replace(/\]|\[/g,"")}function Ane(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(s,u){try{var f=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return a.shouldUseNativeValidation&&J7({},a),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return f&&f.then?f.then(void 0,u):f}(0,function(s){if(!s.inner)throw s;return{values:{},errors:Sne((u=s,f=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),f){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=I2(h.path,f,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),a)};var u,f}))}catch(s){return Promise.reject(s)}}}var L0,LA;function Tne(){if(LA)return L0;LA=1;function e(t){return t===void 0}return L0=e,L0}var Pne=Tne();const _ne=qr(Pne);var vf={exports:{}},Mne=vf.exports,VA;function Fne(){return VA||(VA=1,function(e,t){(function(n,r){r(t,fe.default)})(Mne,function(n,r){function i(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ui<"u"?Ui:typeof self<"u"?self:{},u={exports:{}};(function(U,ee){typeof document<"u"&&typeof navigator<"u"&&function(K,k){U.exports=k()}(s,function(){var K="http://www.w3.org/2000/svg",k="",N=!1,te=-999999,j=function(p){N=!!p},ce=function(){return N},ue=function(p){k=p},Ae=function(){return k};function _e(l){return document.createElement(l)}function Le(l,p){var v,$=l.length,T;for(v=0;v<$;v+=1){T=l[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Ye(l){function p(){}return p.prototype=l,p}var Qe=function(){function l(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return l.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new l}}(),Ue=function(){function l(v,$){var T=0,P=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(T=0;T<$;T+=1)P.push(q);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):l(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:l}();function Ge(l){return Array.apply(null,{length:l})}var Ie=!0,Ne=null,Te="",He=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,$t=Math.floor,_t=Math.min,zr=150,Qt=Math.PI/180,be=.5519;function De(l,p,v,$){this.type=l,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Me(l,p){this.type=l,this.direction=p<0?-1:1}function Xe(l,p,v,$){this.type=l,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function tt(l,p,v){this.type=l,this.firstFrame=p,this.totalFrames=v}function Je(l,p){this.type=l,this.target=p}function gt(l,p){this.type="renderFrameError",this.nativeError=l,this.currentTime=p}function Rt(l){this.type="configError",this.nativeError=l}var xt=function(){var l=0;return function(){return l+=1,Te+"__lottie_element_"+l}}();function gn(l,p,v){var $,T,P,q,me,J,$e,Ce;switch(q=Math.floor(l*6),me=l*6-q,J=v*(1-p),$e=v*(1-me*p),Ce=v*(1-(1-me)*p),q%6){case 0:$=v,T=Ce,P=J;break;case 1:$=$e,T=v,P=J;break;case 2:$=J,T=v,P=Ce;break;case 3:$=J,T=$e,P=v;break;case 4:$=Ce,T=J,P=v;break;case 5:$=v,T=J,P=$e;break}return[$,T,P]}function yr(l,p,v){var $=Math.max(l,p,v),T=Math.min(l,p,v),P=$-T,q,me=$===0?0:P/$,J=$/255;switch($){case T:q=0;break;case l:q=p-v+P*(p<v?6:0),q/=6*P;break;case p:q=v-l+P*2,q/=6*P;break;case v:q=l-p+P*4,q/=6*P;break}return[q,me,J]}function Ut(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),gn(v[0],v[1],v[2])}function Pt(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),gn(v[0],v[1],v[2])}function It(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),gn(v[0],v[1],v[2])}(function(){var l=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),l[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+l[$]+l[T]+l[P]}})();var qt=function(p){Ie=!!p},fr=function(){return Ie},Wr=function(p){Ne=p},si=function(){return Ne},Tr=function(p){zr=p},Ea=function(){return zr},Ao=function(p){Te=p};function bt(l){return document.createElementNS(K,l)}function oi(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(v){return typeof v}:oi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},oi(l)}var is=function(){var l=1,p=[],v,$,T={onmessage:function(){},postMessage:function(Q){v({data:Q})}},P={postMessage:function(Q){T.onmessage({data:Q})}};function q(M){if(window.Worker&&window.Blob&&ce()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",M.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=M,T}function me(){$||($=q(function(Q){function G(){function de(Ve,xe){var le,X,ve=Ve.length,je,ke,lt,At;for(X=0;X<ve;X+=1)if(le=Ve[X],"ks"in le&&!le.completed){if(le.completed=!0,le.hasMask){var Ct=le.masksProperties;for(ke=Ct.length,je=0;je<ke;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}le.ty===0?(le.layers=L(le.refId,xe),de(le.layers,xe)):le.ty===4?B(le.shapes):le.ty===5&&ot(le)}}function W(Ve,xe){if(Ve){var le=0,X=Ve.length;for(le=0;le<X;le+=1)Ve[le].t===1&&(Ve[le].data.layers=L(Ve[le].data.refId,xe),de(Ve[le].data.layers,xe))}}function Y(Ve,xe){for(var le=0,X=xe.length;le<X;){if(xe[le].id===Ve)return xe[le];le+=1}return null}function L(Ve,xe){var le=Y(Ve,xe);return le?le.layers.__used?JSON.parse(JSON.stringify(le.layers)):(le.layers.__used=!0,le.layers):null}function B(Ve){var xe,le=Ve.length,X,ve;for(xe=le-1;xe>=0;xe-=1)if(Ve[xe].ty==="sh")if(Ve[xe].ks.k.i)H(Ve[xe].ks.k);else for(ve=Ve[xe].ks.k.length,X=0;X<ve;X+=1)Ve[xe].ks.k[X].s&&H(Ve[xe].ks.k[X].s[0]),Ve[xe].ks.k[X].e&&H(Ve[xe].ks.k[X].e[0]);else Ve[xe].ty==="gr"&&B(Ve[xe].it)}function H(Ve){var xe,le=Ve.i.length;for(xe=0;xe<le;xe+=1)Ve.i[xe][0]+=Ve.v[xe][0],Ve.i[xe][1]+=Ve.v[xe][1],Ve.o[xe][0]+=Ve.v[xe][0],Ve.o[xe][1]+=Ve.v[xe][1]}function ne(Ve,xe){var le=xe?xe.split("."):[100,100,100];return Ve[0]>le[0]?!0:le[0]>Ve[0]?!1:Ve[1]>le[1]?!0:le[1]>Ve[1]?!1:Ve[2]>le[2]?!0:le[2]>Ve[2]?!1:null}var se=function(){var Ve=[4,4,14];function xe(X){var ve=X.t.d;X.t.d={k:[{s:ve,t:0}]}}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),pe=function(){var Ve=[4,7,99];return function(xe){if(xe.chars&&!ne(Ve,xe.v)){var le,X=xe.chars.length;for(le=0;le<X;le+=1){var ve=xe.chars[le];ve.data&&ve.data.shapes&&(B(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xe.chars[le].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Ve=[5,7,15];function xe(X){var ve=X.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),nt=function(){var Ve=[4,1,9];function xe(X){var ve,je=X.length,ke,lt;for(ve=0;ve<je;ve+=1)if(X[ve].ty==="gr")xe(X[ve].it);else if(X[ve].ty==="fl"||X[ve].ty==="st")if(X[ve].c.k&&X[ve].c.k[0].i)for(lt=X[ve].c.k.length,ke=0;ke<lt;ke+=1)X[ve].c.k[ke].s&&(X[ve].c.k[ke].s[0]/=255,X[ve].c.k[ke].s[1]/=255,X[ve].c.k[ke].s[2]/=255,X[ve].c.k[ke].s[3]/=255),X[ve].c.k[ke].e&&(X[ve].c.k[ke].e[0]/=255,X[ve].c.k[ke].e[1]/=255,X[ve].c.k[ke].e[2]/=255,X[ve].c.k[ke].e[3]/=255);else X[ve].c.k[0]/=255,X[ve].c.k[1]/=255,X[ve].c.k[2]/=255,X[ve].c.k[3]/=255}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===4&&xe(X[ve].shapes)}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),et=function(){var Ve=[4,4,18];function xe(X){var ve,je=X.length,ke,lt;for(ve=je-1;ve>=0;ve-=1)if(X[ve].ty==="sh")if(X[ve].ks.k.i)X[ve].ks.k.c=X[ve].closed;else for(lt=X[ve].ks.k.length,ke=0;ke<lt;ke+=1)X[ve].ks.k[ke].s&&(X[ve].ks.k[ke].s[0].c=X[ve].closed),X[ve].ks.k[ke].e&&(X[ve].ks.k[ke].e[0].c=X[ve].closed);else X[ve].ty==="gr"&&xe(X[ve].it)}function le(X){var ve,je,ke=X.length,lt,At,Ct,yn;for(je=0;je<ke;je+=1){if(ve=X[je],ve.hasMask){var zt=ve.masksProperties;for(At=zt.length,lt=0;lt<At;lt+=1)if(zt[lt].pt.k.i)zt[lt].pt.k.c=zt[lt].cl;else for(yn=zt[lt].pt.k.length,Ct=0;Ct<yn;Ct+=1)zt[lt].pt.k[Ct].s&&(zt[lt].pt.k[Ct].s[0].c=zt[lt].cl),zt[lt].pt.k[Ct].e&&(zt[lt].pt.k[Ct].e[0].c=zt[lt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}();function Be(Ve){Ve.__complete||(nt(Ve),se(Ve),pe(Ve),Oe(Ve),et(Ve),de(Ve.layers,Ve.assets),W(Ve.chars,Ve.assets),Ve.__complete=!0)}function ot(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ct={};return ct.completeData=Be,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Oe,ct.checkShapes=et,ct.completeLayers=de,ct}if(P.dataManager||(P.dataManager=G()),P.assetLoader||(P.assetLoader=function(){function de(Y){var L=Y.getResponseHeader("content-type");return L&&Y.responseType==="json"&&L.indexOf("json")!==-1||Y.response&&oi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,L,B,H){var ne,se=new XMLHttpRequest;try{se.responseType="json"}catch{}se.onreadystatechange=function(){if(se.readyState===4)if(se.status===200)ne=de(se),B(ne);else try{ne=de(se),B(ne)}catch(pe){H&&H(pe)}};try{se.open(["G","E","T"].join(""),Y,!0)}catch{se.open(["G","E","T"].join(""),L+"/"+Y,!0)}se.send()}return{load:W}}()),Q.data.type==="loadAnimation")P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.dataManager.completeData(de),P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;P.dataManager.completeData(he),P.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})})}),$.onmessage=function(M){var Q=M.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(M,Q){l+=1;var G="processId_"+l;return p[G]={onComplete:M,onError:Q},G}function $e(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadAnimation",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Ce(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadData",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Re(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"complete",animation:M,id:he})}return{loadAnimation:$e,loadData:Ce,completeAnimation:Re}}(),vc=function(){var l=function(){var W=_e("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Y,L){var B="";if(W.e)B=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),B=Y+H}else B=L,B+=W.u?W.u:"",B+=W.p;return B}function T(W){var Y=0,L=setInterval((function(){var B=W.getBBox();(B.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function P(W){var Y=$(W,this.assetsPath,this.path),L=bt("image");He?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var B={img:L,assetData:W};return B}function q(W){var Y=$(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.src=Y;var B={img:L,assetData:W};return B}function me(W){var Y={assetData:W},L=$(W,this.assetsPath,this.path);return is.loadData(L,(function(B){Y.img=B,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,B=W.length;for(L=0;L<B;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function $e(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Y=0,L=this.images.length;Y<L;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function M(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function de(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=me.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return de.prototype={loadAssets:J,setAssetsPath:Ce,setPath:$e,loadedImages:Q,loadedFootages:G,destroy:M,getAsset:Re,createImgData:q,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:he},de}();function ku(){}ku.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var yc=function(){function l(p){for(var v=p.split(`\r
74
+ `),A.hasAttribute("data-start")||A.setAttribute("data-start",String(ge+1))}C.textContent=F,n.highlightElement(C)},function(F){A.setAttribute(u,h),C.textContent=F})}}),n.plugins.fileHighlight={highlight:function(A){for(var C=(A||document).querySelectorAll(m),E=0,S;S=C[E++];)n.highlightElement(S)}};var w=!1;n.fileHighlight=function(){w||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),w=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(w0)),w0.exports}var LX=IX();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(g,b){return Array.prototype.slice.call((b||document).querySelectorAll(g))}function i(g,b){return g.classList.contains(b)}function a(g){g()}var s=function(){var g;return function(){if(typeof g>"u"){var b=document.createElement("div");b.style.fontSize="13px",b.style.lineHeight="1.5",b.style.padding="0",b.style.border="0",b.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(b),g=b.offsetHeight===38,document.body.removeChild(b)}return g}}();function u(g,b){var w=getComputedStyle(g),x=getComputedStyle(b);function A(C){return+C.substr(0,C.length-2)}return b.offsetTop+A(x.borderTopWidth)+A(x.paddingTop)-A(w.paddingTop)}function f(g){return!g||!/pre/i.test(g.nodeName)?!1:!!(g.hasAttribute("data-line")||g.id&&Prism.util.isActive(g,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(b,w,x){w=typeof w=="string"?w:b.getAttribute("data-line")||"";var A=w.replace(/\s+/g,"").split(",").filter(Boolean),C=+b.getAttribute("data-line-offset")||0,E=s()?parseInt:parseFloat,S=E(getComputedStyle(b).lineHeight),R=Prism.util.isActive(b,e),_=b.querySelector("code"),F=R?b:_||b,z=[],ie=_.textContent.match(n),ge=ie?ie.length+1:1,oe=!_||F==_?0:u(b,_);A.forEach(function(Se){var U=Se.split("-"),ee=+U[0],K=+U[1]||ee;if(K=Math.min(ge+C,K),!(K<ee)){var k=b.querySelector('.line-highlight[data-range="'+Se+'"]')||document.createElement("div");if(z.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",Se),k.className=(x||"")+" line-highlight"}),R&&Prism.plugins.lineNumbers){var N=Prism.plugins.lineNumbers.getLine(b,ee),te=Prism.plugins.lineNumbers.getLine(b,K);if(N){var j=N.offsetTop+oe+"px";z.push(function(){k.style.top=j})}if(te){var ce=te.offsetTop-N.offsetTop+te.offsetHeight+"px";z.push(function(){k.style.height=ce})}}else z.push(function(){k.setAttribute("data-start",String(ee)),K>ee&&k.setAttribute("data-end",String(K)),k.style.top=(ee-C-1)*S+oe+"px",k.textContent=new Array(K-ee+2).join(`
75
+ `)});z.push(function(){k.style.width=b.scrollWidth+"px"}),z.push(function(){F.appendChild(k)})}});var O=b.id;if(R&&Prism.util.isActive(b,t)&&O){i(b,t)||z.push(function(){b.classList.add(t)});var we=parseInt(b.getAttribute("data-start")||"1");r(".line-numbers-rows > span",b).forEach(function(Se,U){var ee=U+we;Se.onclick=function(){var K=O+"."+ee;d=!1,location.hash=K,setTimeout(function(){d=!0},1)}})}return function(){z.forEach(a)}}};function h(){var g=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(C){C.parentNode.removeChild(C)});var b=(g.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!b||document.getElementById(g))){var w=g.slice(0,g.lastIndexOf(".")),x=document.getElementById(w);if(x){x.hasAttribute("data-line")||x.setAttribute("data-line","");var A=Prism.plugins.lineHighlight.highlightLines(x,b,"temporary ");A(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var m=0;Prism.hooks.add("before-sanity-check",function(g){var b=g.element.parentElement;if(f(b)){var w=0;r(".line-highlight",b).forEach(function(x){w+=x.textContent.length,x.parentNode.removeChild(x)}),w&&/^(?: \n)+$/.test(g.code.slice(-w))&&(g.code=g.code.slice(0,-w))}}),Prism.hooks.add("complete",function g(b){var w=b.element.parentElement;if(f(w)){clearTimeout(m);var x=Prism.plugins.lineNumbers,A=b.plugins&&b.plugins.lineNumbers;if(i(w,e)&&x&&!A)Prism.hooks.add("line-numbers",g);else{var C=Prism.plugins.lineHighlight.highlightLines(w);C(),m=setTimeout(h,1)}}}),window.addEventListener("hashchange",h),window.addEventListener("resize",function(){var g=r("pre").filter(f).map(function(b){return Prism.plugins.lineHighlight.highlightLines(b)});g.forEach(a)})})();const gR=I.createContext({});function dd(e){const t=I.useRef(null);return t.current===null&&(t.current=e()),t.current}const i3=typeof window<"u",vR=i3?I.useLayoutEffect:I.useEffect,a3=I.createContext(null);function s3(e,t){e.indexOf(t)===-1&&e.push(t)}function o3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function VX([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}const Bs=(e,t,n)=>n>t?t:n<e?e:n;function Jb(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ic=()=>{},ba=()=>{};process.env.NODE_ENV!=="production"&&(ic=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Jb(t,n))},ba=(e,t,n)=>{if(!e)throw new Error(Jb(t,n))});const Ns={},yR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function bR(e){return typeof e=="object"&&e!==null}const $R=e=>/^0[^.\s]+$/u.test(e);function u3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Gi=e=>e,BX=(e,t)=>n=>t(e(n)),hd=(...e)=>e.reduce(BX),Bf=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};let l3=class{constructor(){this.subscriptions=[]}add(t){return s3(this.subscriptions,t),()=>o3(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const ga=e=>e*1e3,Za=e=>e/1e3;function xR(e,t){return t?e*(1e3/t):0}const $D=new Set;function c3(e,t,n){e||$D.has(t)||(console.warn(Jb(t,n)),$D.add(t))}const wR=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,NX=1e-7,jX=12;function KX(e,t,n,r,i){let a,s,u=0;do s=t+(n-t)/2,a=wR(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>NX&&++u<jX);return s}function pd(e,t,n,r){if(e===t&&n===r)return Gi;const i=a=>KX(a,0,1,e,n);return a=>a===0||a===1?a:wR(i(a),t,r)}const CR=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ER=e=>t=>1-e(1-t),SR=pd(.33,1.53,.69,.99),f3=ER(SR),DR=CR(f3),AR=e=>(e*=2)<1?.5*f3(e):.5*(2-Math.pow(2,-10*(e-1))),d3=e=>1-Math.sin(Math.acos(e)),TR=ER(d3),PR=CR(d3),UX=pd(.42,0,1,1),qX=pd(0,0,.58,1),_R=pd(.42,0,.58,1),zX=e=>Array.isArray(e)&&typeof e[0]!="number",MR=e=>Array.isArray(e)&&typeof e[0]=="number",xD={linear:Gi,easeIn:UX,easeInOut:_R,easeOut:qX,circIn:d3,circInOut:PR,circOut:TR,backIn:f3,backInOut:DR,backOut:SR,anticipate:AR},WX=e=>typeof e=="string",wD=e=>{if(MR(e)){ba(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,i]=e;return pd(t,n,r,i)}else if(WX(e))return ba(xD[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),xD[e];return e},gh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function HX(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(h){s.has(h)&&(d.schedule(h),e()),h(u)}const d={schedule:(h,m=!1,g=!1)=>{const w=g&&i?n:r;return m&&s.add(h),w.has(h)||w.add(h),h},cancel:h=>{r.delete(h),s.delete(h)},process:h=>{if(u=h,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,a&&(a=!1,d.process(h))}};return d}const GX=40;function FR(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((S,R)=>(S[R]=HX(a),S),{}),{setup:u,read:f,resolveKeyframes:d,preUpdate:h,update:m,preRender:g,render:b,postRender:w}=s,x=()=>{const S=Ns.useManualTiming?i.timestamp:performance.now();n=!1,Ns.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,GX),1)),i.timestamp=S,i.isProcessing=!0,u.process(i),f.process(i),d.process(i),h.process(i),m.process(i),g.process(i),b.process(i),w.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,i.isProcessing||e(x)};return{schedule:gh.reduce((S,R)=>{const _=s[R];return S[R]=(F,z=!1,ie=!1)=>(n||A(),_.schedule(F,z,ie)),S},{}),cancel:S=>{for(let R=0;R<gh.length;R++)s[gh[R]].cancel(S)},state:i,steps:s}}const{schedule:wn,cancel:js,state:gr,steps:C0}=FR(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gi,!0);let Lh;function YX(){Lh=void 0}const ri={now:()=>(Lh===void 0&&ri.set(gr.isProcessing||Ns.useManualTiming?gr.timestamp:performance.now()),Lh),set:e=>{Lh=e,queueMicrotask(YX)}},RR=e=>t=>typeof t=="string"&&t.startsWith(e),h3=RR("--"),ZX=RR("var(--"),p3=e=>ZX(e)?XX.test(e.split("/*")[0].trim()):!1,XX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ac={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Nf={...ac,transform:e=>Bs(0,1,e)},vh={...ac,default:1},wf=e=>Math.round(e*1e5)/1e5,m3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function JX(e){return e==null}const QX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,g3=(e,t)=>n=>!!(typeof n=="string"&&QX.test(n)&&n.startsWith(e)||t&&!JX(n)&&Object.prototype.hasOwnProperty.call(n,t)),kR=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,u]=r.match(m3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}},eJ=e=>Bs(0,255,e),E0={...ac,transform:e=>Math.round(eJ(e))},cu={test:g3("rgb","red"),parse:kR("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+E0.transform(e)+", "+E0.transform(t)+", "+E0.transform(n)+", "+wf(Nf.transform(r))+")"};function tJ(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Qb={test:g3("#"),parse:tJ,transform:cu.transform},md=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=md("deg"),Xa=md("%"),Dt=md("px"),nJ=md("vh"),rJ=md("vw"),CD={...Xa,parse:e=>Xa.parse(e)/100,transform:e=>Xa.transform(e*100)},bl={test:g3("hsl","hue"),parse:kR("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Xa.transform(wf(t))+", "+Xa.transform(wf(n))+", "+wf(Nf.transform(r))+")"},Jn={test:e=>cu.test(e)||Qb.test(e)||bl.test(e),parse:e=>cu.test(e)?cu.parse(e):bl.test(e)?bl.parse(e):Qb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?cu.transform(e):bl.transform(e),getAnimatableNone:e=>{const t=Jn.parse(e);return t.alpha=0,Jn.transform(t)}},iJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function aJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(m3))==null?void 0:t.length)||0)+(((n=e.match(iJ))==null?void 0:n.length)||0)>0}const OR="number",IR="color",sJ="var",oJ="var(",ED="${}",uJ=/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 jf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(uJ,f=>(Jn.test(f)?(r.color.push(a),i.push(IR),n.push(Jn.parse(f))):f.startsWith(oJ)?(r.var.push(a),i.push(sJ),n.push(f)):(r.number.push(a),i.push(OR),n.push(parseFloat(f))),++a,ED)).split(ED);return{values:n,split:u,indexes:r,types:i}}function LR(e){return jf(e).values}function VR(e){const{split:t,types:n}=jf(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const u=n[s];u===OR?a+=wf(i[s]):u===IR?a+=Jn.transform(i[s]):a+=i[s]}return a}}const lJ=e=>typeof e=="number"?0:Jn.test(e)?Jn.getAnimatableNone(e):e;function cJ(e){const t=LR(e);return VR(e)(t.map(lJ))}const xo={test:aJ,parse:LR,createTransformer:VR,getAnimatableNone:cJ};function S0(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 fJ({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;i=S0(f,u,e+1/3),a=S0(f,u,e),s=S0(f,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function bp(e,t){return n=>n>0?t:e}const An=(e,t,n)=>e+(t-e)*n,D0=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},dJ=[Qb,cu,bl],hJ=e=>dJ.find(t=>t.test(e));function SD(e){const t=hJ(e);if(ic(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===bl&&(n=fJ(n)),n}const DD=(e,t)=>{const n=SD(e),r=SD(t);if(!n||!r)return bp(e,t);const i={...n};return a=>(i.red=D0(n.red,r.red,a),i.green=D0(n.green,r.green,a),i.blue=D0(n.blue,r.blue,a),i.alpha=An(n.alpha,r.alpha,a),cu.transform(i))},e1=new Set(["none","hidden"]);function pJ(e,t){return e1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function mJ(e,t){return n=>An(e,t,n)}function v3(e){return typeof e=="number"?mJ:typeof e=="string"?p3(e)?bp:Jn.test(e)?DD:yJ:Array.isArray(e)?BR:typeof e=="object"?Jn.test(e)?DD:gJ:bp}function BR(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>v3(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function gJ(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=v3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function vJ(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],u=e.values[s]??0;n[i]=u,r[a]++}return n}const yJ=(e,t)=>{const n=xo.createTransformer(t),r=jf(e),i=jf(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?e1.has(e)&&!i.values.length||e1.has(t)&&!r.values.length?pJ(e,t):hd(BR(vJ(r,i),i.values),n):(ic(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),bp(e,t))};function NR(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?An(e,t,n):v3(e)(e,t)}const bJ=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wn.update(t,n),stop:()=>js(t),now:()=>gr.isProcessing?gr.timestamp:ri.now()}},jR=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},$p=2e4;function y3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<$p;)t+=n,r=e.next(t);return t>=$p?1/0:t}function $J(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(y3(r),$p);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:Za(i)}}const xJ=5;function KR(e,t,n){const r=Math.max(t-xJ,0);return xR(n-e(r),t-r)}const Pn={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},A0=.001;function wJ({duration:e=Pn.duration,bounce:t=Pn.bounce,velocity:n=Pn.velocity,mass:r=Pn.mass}){let i,a;ic(e<=ga(Pn.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=Bs(Pn.minDamping,Pn.maxDamping,s),e=Bs(Pn.minDuration,Pn.maxDuration,Za(e)),s<1?(i=d=>{const h=d*s,m=h*e,g=h-n,b=t1(d,s),w=Math.exp(-m);return A0-g/b*w},a=d=>{const m=d*s*e,g=m*n+n,b=Math.pow(s,2)*Math.pow(d,2)*e,w=Math.exp(-m),x=t1(Math.pow(d,2),s);return(-i(d)+A0>0?-1:1)*((g-b)*w)/x}):(i=d=>{const h=Math.exp(-d*e),m=(d-n)*e+1;return-A0+h*m},a=d=>{const h=Math.exp(-d*e),m=(n-d)*(e*e);return h*m});const u=5/e,f=EJ(i,a,u);if(e=ga(e),isNaN(f))return{stiffness:Pn.stiffness,damping:Pn.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:s*2*Math.sqrt(r*d),duration:e}}}const CJ=12;function EJ(e,t,n){let r=n;for(let i=1;i<CJ;i++)r=r-e(r)/t(r);return r}function t1(e,t){return e*Math.sqrt(1-t*t)}const SJ=["duration","bounce"],DJ=["stiffness","damping","mass"];function AD(e,t){return t.some(n=>e[n]!==void 0)}function AJ(e){let t={velocity:Pn.velocity,stiffness:Pn.stiffness,damping:Pn.damping,mass:Pn.mass,isResolvedFromDuration:!1,...e};if(!AD(e,DJ)&&AD(e,SJ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Bs(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pn.mass,stiffness:i,damping:a}}else{const n=wJ(e);t={...t,...n,mass:Pn.mass},t.isResolvedFromDuration=!0}return t}function xp(e=Pn.visualDuration,t=Pn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:f,damping:d,mass:h,duration:m,velocity:g,isResolvedFromDuration:b}=AJ({...n,velocity:-Za(n.velocity||0)}),w=g||0,x=d/(2*Math.sqrt(f*h)),A=s-a,C=Za(Math.sqrt(f/h)),E=Math.abs(A)<5;r||(r=E?Pn.restSpeed.granular:Pn.restSpeed.default),i||(i=E?Pn.restDelta.granular:Pn.restDelta.default);let S;if(x<1){const _=t1(C,x);S=F=>{const z=Math.exp(-x*C*F);return s-z*((w+x*C*A)/_*Math.sin(_*F)+A*Math.cos(_*F))}}else if(x===1)S=_=>s-Math.exp(-C*_)*(A+(w+C*A)*_);else{const _=C*Math.sqrt(x*x-1);S=F=>{const z=Math.exp(-x*C*F),ie=Math.min(_*F,300);return s-z*((w+x*C*A)*Math.sinh(ie)+_*A*Math.cosh(ie))/_}}const R={calculatedDuration:b&&m||null,next:_=>{const F=S(_);if(b)u.done=_>=m;else{let z=_===0?w:0;x<1&&(z=_===0?ga(w):KR(S,_,F));const ie=Math.abs(z)<=r,ge=Math.abs(s-F)<=i;u.done=ie&&ge}return u.value=u.done?s:F,u},toString:()=>{const _=Math.min(y3(R),$p),F=jR(z=>R.next(_*z).value,_,30);return _+"ms "+F},toTransition:()=>{}};return R}xp.applyToOptions=e=>{const t=$J(e,100,xp);return e.ease=t.ease,e.duration=ga(t.duration),e.type="keyframes",e};function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:f,restDelta:d=.5,restSpeed:h}){const m=e[0],g={done:!1,value:m},b=ie=>u!==void 0&&ie<u||f!==void 0&&ie>f,w=ie=>u===void 0?f:f===void 0||Math.abs(u-ie)<Math.abs(f-ie)?u:f;let x=n*t;const A=m+x,C=s===void 0?A:s(A);C!==A&&(x=C-m);const E=ie=>-x*Math.exp(-ie/r),S=ie=>C+E(ie),R=ie=>{const ge=E(ie),oe=S(ie);g.done=Math.abs(ge)<=d,g.value=g.done?C:oe};let _,F;const z=ie=>{b(g.value)&&(_=ie,F=xp({keyframes:[g.value,w(g.value)],velocity:KR(S,ie,g.value),damping:i,stiffness:a,restDelta:d,restSpeed:h}))};return z(0),{calculatedDuration:null,next:ie=>{let ge=!1;return!F&&_===void 0&&(ge=!0,R(ie),z(ie)),_!==void 0&&ie>=_?F.next(ie-_):(!ge&&R(ie),g)}}}function TJ(e,t,n){const r=[],i=n||Ns.mix||NR,a=e.length-1;for(let s=0;s<a;s++){let u=i(e[s],e[s+1]);if(t){const f=Array.isArray(t)?t[s]||Gi:t;u=hd(f,u)}r.push(u)}return r}function UR(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(ba(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=TJ(t,r,i),f=u.length,d=h=>{if(s&&h<e[0])return t[0];let m=0;if(f>1)for(;m<e.length-2&&!(h<e[m+1]);m++);const g=Bf(e[m],e[m+1],h);return u[m](g)};return n?h=>d(Bs(e[0],e[a-1],h)):d}function PJ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Bf(0,t,r);e.push(An(n,1,i))}}function _J(e){const t=[0];return PJ(t,e.length-1),t}function MJ(e,t){return e.map(n=>n*t)}function FJ(e,t){return e.map(()=>t||_R).splice(0,e.length-1)}function $l({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=zX(r)?r.map(wD):wD(r),a={done:!1,value:t[0]},s=MJ(n&&n.length===t.length?n:_J(t),e),u=UR(s,t,{ease:Array.isArray(i)?i:FJ(t,i)});return{calculatedDuration:e,next:f=>(a.value=u(f),a.done=f>=e,a)}}const RJ=e=>e!==null;function b3(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(RJ),u=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!u||r===void 0?a[u]:r}const kJ={decay:n1,inertia:n1,tween:$l,keyframes:$l,spring:xp};function qR(e){typeof e.type=="string"&&(e.type=kJ[e.type])}let $3=class{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 OJ=e=>e/100;let x3=class extends $3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==ri.now()&&this.tick(ri.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qR(t);const{type:n=$l,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:u}=t;const f=n||$l;process.env.NODE_ENV!=="production"&&f!==$l&&ba(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`,"spring-two-frames"),f!==$l&&typeof u[0]!="number"&&(this.mixKeyframes=hd(OJ,NR(u[0],u[1])),u=[0,100]);const d=f({...t,keyframes:u});a==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=y3(d));const{calculatedDuration:h}=d;this.calculatedDuration=h,this.resolvedDuration=h+i,this.totalDuration=this.resolvedDuration*(r+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:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:h,repeat:m,repeatType:g,repeatDelay:b,type:w,onUpdate:x,finalKeyframe:A}=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 C=this.currentTime-d*(this.playbackSpeed>=0?1:-1),E=this.playbackSpeed>=0?C<0:C>i;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let S=this.currentTime,R=r;if(m){const ie=Math.min(this.currentTime,i)/u;let ge=Math.floor(ie),oe=ie%1;!oe&&ie>=1&&(oe=1),oe===1&&ge--,ge=Math.min(ge,m+1),!!(ge%2)&&(g==="reverse"?(oe=1-oe,b&&(oe-=b/u)):g==="mirror"&&(R=s)),S=Bs(0,1,oe)*u}const _=E?{done:!1,value:h[0]}:R.next(S);a&&(_.value=a(_.value));let{done:F}=_;!E&&f!==null&&(F=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return z&&w!==n1&&(_.value=b3(h,this.options,A,this.speed)),x&&x(_.value),z&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return Za(this.calculatedDuration)}get time(){return Za(this.currentTime)}set time(t){var n;t=ga(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(ri.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Za(this.currentTime))}play(){var i,a;if(this.isStopped)return;const{driver:t=bJ,startTime:n}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),(a=(i=this.options).onPlay)==null||a.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),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(ri.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 IJ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const fu=e=>e*180/Math.PI,r1=e=>{const t=fu(Math.atan2(e[1],e[0]));return i1(t)},LJ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:r1,rotateZ:r1,skewX:e=>fu(Math.atan(e[1])),skewY:e=>fu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},i1=e=>(e=e%360,e<0&&(e+=360),e),TD=r1,PD=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),_D=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),VJ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:PD,scaleY:_D,scale:e=>(PD(e)+_D(e))/2,rotateX:e=>i1(fu(Math.atan2(e[6],e[5]))),rotateY:e=>i1(fu(Math.atan2(-e[2],e[0]))),rotateZ:TD,rotate:TD,skewX:e=>fu(Math.atan(e[4])),skewY:e=>fu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function a1(e){return e.includes("scale")?1:0}function s1(e,t){if(!e||e==="none")return a1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=VJ,i=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=LJ,i=u}if(!i)return a1(t);const a=r[t],s=i[1].split(",").map(NJ);return typeof a=="function"?a(s):s[a]}const BJ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return s1(n,t)};function NJ(e){return parseFloat(e.trim())}const sc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(sc),MD=e=>e===ac||e===Dt,jJ=new Set(["x","y","z"]),KJ=sc.filter(e=>!jJ.has(e));function UJ(e){const t=[];return KJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const gu={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})=>s1(t,"x"),y:(e,{transform:t})=>s1(t,"y")};gu.translateX=gu.x;gu.translateY=gu.y;const vu=new Set;let o1=!1,u1=!1,l1=!1;function zR(){if(u1){const e=Array.from(vu).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=UJ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var u;(u=r.getValue(a))==null||u.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}u1=!1,o1=!1,vu.forEach(e=>e.complete(l1)),vu.clear()}function WR(){vu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(u1=!0)})}function qJ(){l1=!0,WR(),zR(),l1=!1}let w3=class{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(vu.add(this),o1||(o1=!0,wn.read(WR),wn.resolveKeyframes(zR))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i==null?void 0:i.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const u=r.readValue(n,s);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}IJ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vu.delete(this)}cancel(){this.state==="scheduled"&&(vu.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};const zJ=e=>e.startsWith("--");function WJ(e,t,n){zJ(t)?e.style.setProperty(t,n):e.style[t]=n}const HJ=u3(()=>window.ScrollTimeline!==void 0),GJ={};function YJ(e,t){const n=u3(e);return()=>GJ[t]??n()}const HR=YJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),gf=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FD={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gf([0,.65,.55,1]),circOut:gf([.55,0,1,.45]),backIn:gf([.31,.01,.66,-.59]),backOut:gf([.33,1.53,.69,.99])};function GR(e,t){if(e)return typeof e=="function"?HR()?jR(e,t):"ease-out":MR(e)?gf(e):Array.isArray(e)?e.map(n=>GR(n,t)||FD.easeOut):FD[e]}function ZJ(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:u="easeOut",times:f}={},d=void 0){const h={[t]:n};f&&(h.offset=f);const m=GR(u,i);Array.isArray(m)&&(h.easing=m);const g={delay:r,duration:i,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(h,g)}function YR(e){return typeof e=="function"&&"applyToOptions"in e}function XJ({type:e,...t}){return YR(e)&&HR()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}let JJ=class extends $3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,ba(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=XJ(t);this.animation=ZJ(n,r,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const h=b3(i,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(h):WJ(n,r,h),this.animation.cancel()}f==null||f(),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,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Za(Number(t))}get time(){return Za(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ga(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 r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&HJ()?(this.animation.timeline=t,Gi):n(this)}};const ZR={anticipate:AR,backInOut:DR,circInOut:PR};function QJ(e){return e in ZR}function eQ(e){typeof e.ease=="string"&&QJ(e.ease)&&(e.ease=ZR[e.ease])}const RD=10;let tQ=class extends JJ{constructor(t){eQ(t),qR(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new x3({...s,autoplay:!1}),f=ga(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-RD).value,u.sample(f).value,RD),u.stop()}};const kD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xo.test(e)||e==="0")&&!e.startsWith("url("));function nQ(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 rQ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=kD(i,t),u=kD(a,t);return ic(s===u,`You are trying to animate ${t} from "${i}" to "${a}". "${s?a:i}" is not an animatable value.`,"value-not-animatable"),!s||!u?!1:nQ(e)||(n==="spring"||YR(n))&&r}function c1(e){e.duration=0,e.type}const iQ=new Set(["opacity","clipPath","filter","transform"]),aQ=u3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function sQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(((h=t==null?void 0:t.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:d}=t.owner.getProps();return aQ()&&n&&iQ.has(n)&&(n!=="transform"||!d)&&!f&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const oQ=40;let uQ=class extends $3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:u,name:f,motionValue:d,element:h,...m}){var w;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=ri.now();const g={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:f,motionValue:d,element:h,...m},b=(h==null?void 0:h.KeyframeResolver)||w3;this.keyframeResolver=new b(u,(x,A,C)=>this.onKeyframesResolved(x,A,g,!C),f,d,h),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:u,delay:f,isHandoff:d,onUpdate:h}=r;this.resolvedAt=ri.now(),rQ(t,a,s,u)||((Ns.instantAnimations||!f)&&(h==null||h(b3(t,r,n))),t[0]=t[t.length-1],c1(r),r.repeat=0);const g={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>oQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},b=!d&&sQ(g)?new tQ({...g,element:g.motionValue.owner.current}):new x3(g);b.finished.then(()=>this.notifyFinished()).catch(Gi),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}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(),qJ()),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 lQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cQ(e){const t=lQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const fQ=4;function XR(e,t,n=1){ba(n<=fQ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,i]=cQ(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return yR(s)?parseFloat(s):s}return p3(i)?XR(i,t,n+1):i}function C3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const JR=new Set(["width","height","top","left","right","bottom",...sc]),dQ={test:e=>e==="auto",parse:e=>e},QR=e=>t=>t.test(e),e7=[ac,Dt,Xa,oo,rJ,nJ,dQ],OD=e=>e7.find(QR(e));function hQ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$R(e):!0}const pQ=new Set(["brightness","contrast","saturate","opacity"]);function mQ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m3)||[];if(!r)return e;const i=n.replace(r,"");let a=pQ.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const gQ=/\b([a-z-]*)\(.*?\)/gu,f1={...xo,getAnimatableNone:e=>{const t=e.match(gQ);return t?t.map(mQ).join(" "):e}},ID={...ac,transform:Math.round},vQ={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:vh,scaleX:vh,scaleY:vh,scaleZ:vh,skew:oo,skewX:oo,skewY:oo,distance:Dt,translateX:Dt,translateY:Dt,translateZ:Dt,x:Dt,y:Dt,z:Dt,perspective:Dt,transformPerspective:Dt,opacity:Nf,originX:CD,originY:CD,originZ:Dt},E3={borderWidth:Dt,borderTopWidth:Dt,borderRightWidth:Dt,borderBottomWidth:Dt,borderLeftWidth:Dt,borderRadius:Dt,radius:Dt,borderTopLeftRadius:Dt,borderTopRightRadius:Dt,borderBottomRightRadius:Dt,borderBottomLeftRadius:Dt,width:Dt,maxWidth:Dt,height:Dt,maxHeight:Dt,top:Dt,right:Dt,bottom:Dt,left:Dt,padding:Dt,paddingTop:Dt,paddingRight:Dt,paddingBottom:Dt,paddingLeft:Dt,margin:Dt,marginTop:Dt,marginRight:Dt,marginBottom:Dt,marginLeft:Dt,backgroundPositionX:Dt,backgroundPositionY:Dt,...vQ,zIndex:ID,fillOpacity:Nf,strokeOpacity:Nf,numOctaves:ID},yQ={...E3,color:Jn,backgroundColor:Jn,outlineColor:Jn,fill:Jn,stroke:Jn,borderColor:Jn,borderTopColor:Jn,borderRightColor:Jn,borderBottomColor:Jn,borderLeftColor:Jn,filter:f1,WebkitFilter:f1},t7=e=>yQ[e];function n7(e,t){let n=t7(e);return n!==f1&&(n=xo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bQ=new Set(["auto","none","0"]);function $Q(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!bQ.has(a)&&jf(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=n7(n,i)}let xQ=class extends w3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let d=t[f];if(typeof d=="string"&&(d=d.trim(),p3(d))){const h=XR(d,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!JR.has(r)||t.length!==2)return;const[i,a]=t,s=OD(i),u=OD(a);if(s!==u)if(MD(s)&&MD(u))for(let f=0;f<t.length;f++){const d=t[f];typeof d=="string"&&(t[f]=parseFloat(d))}else gu[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||hQ(t[i]))&&r.push(i);r.length&&$Q(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=gu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const a=r.length-1,s=r[a];r[a]=gu[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}};function wQ(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const r7=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function CQ(e){return bR(e)&&"offsetHeight"in e}const LD=30,EQ=e=>!isNaN(parseFloat(e)),Cf={current:void 0};let SQ=class{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var a;const i=ri.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ri.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=EQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&c3(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new l3);const r=this.events[t].add(n);return t==="change"?()=>{r(),wn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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 Cf.current&&Cf.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ri.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>LD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,LD);return xR(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 Du(e,t){return new SQ(e,t)}const{schedule:S3}=FR(queueMicrotask,!1),fa={x:!1,y:!1};function i7(){return fa.x||fa.y}function DQ(e){return e==="x"||e==="y"?fa[e]?null:(fa[e]=!0,()=>{fa[e]=!1}):fa.x||fa.y?null:(fa.x=fa.y=!0,()=>{fa.x=fa.y=!1})}function a7(e,t){const n=wQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function VD(e){return!(e.pointerType==="touch"||i7())}function AQ(e,t,n={}){const[r,i,a]=a7(e,n),s=u=>{if(!VD(u))return;const{target:f}=u,d=t(f,u);if(typeof d!="function"||!f)return;const h=m=>{VD(m)&&(d(m),f.removeEventListener("pointerleave",h))};f.addEventListener("pointerleave",h,i)};return r.forEach(u=>{u.addEventListener("pointerenter",s,i)}),a}const s7=(e,t)=>t?e===t?!0:s7(e,t.parentElement):!1,D3=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PQ(e){return TQ.has(e.tagName)||e.tabIndex!==-1}const Vh=new WeakSet;function BD(e){return t=>{t.key==="Enter"&&e(t)}}function T0(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _Q=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=BD(()=>{if(Vh.has(n))return;T0(n,"down");const i=BD(()=>{T0(n,"up")}),a=()=>T0(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ND(e){return D3(e)&&!i7()}function MQ(e,t,n={}){const[r,i,a]=a7(e,n),s=u=>{const f=u.currentTarget;if(!ND(u))return;Vh.add(f);const d=t(f,u),h=(b,w)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Vh.has(f)&&Vh.delete(f),ND(b)&&typeof d=="function"&&d(b,{success:w})},m=b=>{h(b,f===window||f===document||n.useGlobalTarget||s7(f,b.target))},g=b=>{h(b,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",g,i)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",s,i),CQ(u)&&(u.addEventListener("focus",d=>_Q(d,i)),!PQ(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),a}function o7(e){return bR(e)&&"ownerSVGElement"in e}function FQ(e){return o7(e)&&e.tagName==="svg"}function RQ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],u=UR(i,a,s);return t?u(r):u}const vr=e=>!!(e&&e.getVelocity),kQ=[...e7,Jn,xo],OQ=e=>kQ.find(QR(e)),A3=I.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function IQ(e=!0){const t=I.useContext(a3);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=I.useId();I.useEffect(()=>{if(e)return i(a)},[e]);const s=I.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const u7=I.createContext({strict:!1}),jD={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"]},Wl={};for(const e in jD)Wl[e]={isEnabled:t=>jD[e].some(n=>!!t[n])};function LQ(e){for(const t in e)Wl[t]={...Wl[t],...e[t]}}const VQ=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 wp(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||VQ.has(e)}let l7=e=>!wp(e);function BQ(e){typeof e=="function"&&(l7=t=>t.startsWith("on")?!wp(t):e(t))}try{BQ(require("@emotion/is-prop-valid").default)}catch{}function NQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(l7(i)||n===!0&&wp(i)||!t&&!wp(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ym=I.createContext({});function bm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kf(e){return typeof e=="string"||Array.isArray(e)}const T3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P3=["initial",...T3];function $m(e){return bm(e.animate)||P3.some(t=>Kf(e[t]))}function c7(e){return!!($m(e)||e.variants)}function jQ(e,t){if($m(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Kf(n)?n:void 0,animate:Kf(r)?r:void 0}}return e.inherit!==!1?t:{}}function KQ(e){const{initial:t,animate:n}=jQ(e,I.useContext(ym));return I.useMemo(()=>({initial:t,animate:n}),[KD(t),KD(n)])}function KD(e){return Array.isArray(e)?e.join(" "):e}const Uf={};function UQ(e){for(const t in e)Uf[t]=e[t],h3(t)&&(Uf[t].isCSSVariable=!0)}function f7(e,{layout:t,layoutId:n}){return oc.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uf[e]||e==="opacity")}const qQ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zQ=sc.length;function WQ(e,t,n){let r="",i=!0;for(let a=0;a<zQ;a++){const s=sc[a],u=e[s];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(s.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const d=r7(u,E3[s]);if(!f){i=!1;const h=qQ[s]||s;r+=`${h}(${d}) `}n&&(t[s]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function _3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,u=!1;for(const f in t){const d=t[f];if(oc.has(f)){s=!0;continue}else if(h3(f)){i[f]=d;continue}else{const h=r7(d,E3[f]);f.startsWith("origin")?(u=!0,a[f]=h):r[f]=h}}if(t.transform||(s||n?r.transform=WQ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;r.transformOrigin=`${f} ${d} ${h}`}}const M3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function d7(e,t,n){for(const r in t)!vr(t[r])&&!f7(r,n)&&(e[r]=t[r])}function HQ({transformTemplate:e},t){return I.useMemo(()=>{const n=M3();return _3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function GQ(e,t){const n=e.style||{},r={};return d7(r,n,e),Object.assign(r,HQ(e,t)),r}function YQ(e,t){const n={},r=GQ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.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=r,n}const ZQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},XQ={offset:"strokeDashoffset",array:"strokeDasharray"};function JQ(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?ZQ:XQ;e[a.offset]=Dt.transform(-r);const s=Dt.transform(t),u=Dt.transform(n);e[a.array]=`${s} ${u}`}function h7(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...u},f,d,h){if(_3(e,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(h==null?void 0:h.transformBox)??"fill-box",delete m.transformBox),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),i!==void 0&&JQ(m,i,a,s,!1)}const p7=()=>({...M3(),attrs:{}}),m7=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QQ(e,t,n,r){const i=I.useMemo(()=>{const a=p7();return h7(a,t,m7(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};d7(a,e.style,e),i.style={...a,...i.style}}return i}const eee=["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 F3(e){return typeof e!="string"||e.includes("-")?!1:!!(eee.indexOf(e)>-1||/[A-Z]/u.test(e))}function tee(e,t,n,{latestValues:r},i,a=!1){const u=(F3(e)?QQ:YQ)(t,r,i,e),f=NQ(t,typeof e=="string",a),d=e!==I.Fragment?{...f,...u,ref:n}:{},{children:h}=t,m=I.useMemo(()=>vr(h)?h.get():h,[h]);return I.createElement(e,{...d,children:m})}function UD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function R3(e,t,n,r){if(typeof t=="function"){const[i,a]=UD(r);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]=UD(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function Bh(e){return vr(e)?e.get():e}function nee({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:ree(n,r,i,e),renderState:t()}}function ree(e,t,n,r){const i={},a=r(e,{});for(const g in a)i[g]=Bh(a[g]);let{initial:s,animate:u}=e;const f=$m(e),d=c7(e);t&&d&&!f&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||s===!1;const m=h?u:s;if(m&&typeof m!="boolean"&&!bm(m)){const g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){const w=R3(e,g[b]);if(w){const{transitionEnd:x,transition:A,...C}=w;for(const E in C){let S=C[E];if(Array.isArray(S)){const R=h?S.length-1:0;S=S[R]}S!==null&&(i[E]=S)}for(const E in x)i[E]=x[E]}}}return i}const g7=e=>(t,n)=>{const r=I.useContext(ym),i=I.useContext(a3),a=()=>nee(e,t,r,i);return n?a():dd(a)};function k3(e,t,n){var a;const{style:r}=e,i={};for(const s in r)(vr(r[s])||t.style&&vr(t.style[s])||f7(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(i[s]=r[s]);return i}const iee=g7({scrapeMotionValuesFromProps:k3,createRenderState:M3});function v7(e,t,n){const r=k3(e,t,n);for(const i in e)if(vr(e[i])||vr(t[i])){const a=sc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const aee=g7({scrapeMotionValuesFromProps:v7,createRenderState:p7}),see=Symbol.for("motionComponentSymbol");function xl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function oee(e,t,n){return I.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xl(n)&&(n.current=r))},[t])}const O3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),uee="framerAppearId",y7="data-"+O3(uee),b7=I.createContext({});function lee(e,t,n,r,i){var x,A;const{visualElement:a}=I.useContext(ym),s=I.useContext(u7),u=I.useContext(a3),f=I.useContext(A3).reducedMotion,d=I.useRef(null);r=r||s.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,m=I.useContext(b7);h&&!h.projection&&i&&(h.type==="html"||h.type==="svg")&&cee(d.current,n,i,m);const g=I.useRef(!1);I.useInsertionEffect(()=>{h&&g.current&&h.update(n,u)});const b=n[y7],w=I.useRef(!!b&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,b))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,b)));return vR(()=>{h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),w.current&&h.animationState&&h.animationState.animateChanges())}),I.useEffect(()=>{h&&(!w.current&&h.animationState&&h.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,b)}),w.current=!1),h.enteringChildren=void 0)}),h}function cee(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:u,layoutScroll:f,layoutRoot:d,layoutCrossfade:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$7(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||u&&xl(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:h,layoutScroll:f,layoutRoot:d})}function $7(e){if(e)return e.options.allowProjection!==!1?e.projection:$7(e.parent)}function P0(e,{forwardMotionProps:t=!1}={},n,r){n&&LQ(n);const i=F3(e)?aee:iee;function a(u,f){let d;const h={...I.useContext(A3),...u,layoutId:fee(u)},{isStatic:m}=h,g=KQ(u),b=i(u,m);if(!m&&i3){dee(h,n);const w=hee(h);d=w.MeasureLayout,g.visualElement=lee(e,b,h,r,w.ProjectionNode)}return Qa.jsxs(ym.Provider,{value:g,children:[d&&g.visualElement?Qa.jsx(d,{visualElement:g.visualElement,...h}):null,tee(e,u,oee(b,g.visualElement,f),b,m,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=I.forwardRef(a);return s[see]=e,s}function fee({layoutId:e}){const t=I.useContext(gR).id;return t&&e!==void 0?t+"-"+e:e}function dee(e,t){const n=I.useContext(u7).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ic(!1,r,"lazy-strict-mode"):ba(!1,r,"lazy-strict-mode")}}function hee(e){const{drag:t,layout:n}=Wl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function pee(e,t){if(typeof Proxy>"u")return P0;const n=new Map,r=(a,s)=>P0(a,s,e,t),i=(a,s)=>(process.env.NODE_ENV!=="production"&&c3(!1,"motion() is deprecated. Use motion.create() instead."),r(a,s));return new Proxy(i,{get:(a,s)=>s==="create"?r:(n.has(s)||n.set(s,P0(s,void 0,e,t)),n.get(s))})}function x7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function mee({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function gee(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function _0(e){return e===void 0||e===1}function d1({scale:e,scaleX:t,scaleY:n}){return!_0(e)||!_0(t)||!_0(n)}function nu(e){return d1(e)||w7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function w7(e){return qD(e.x)||qD(e.y)}function qD(e){return e&&e!=="0%"}function Cp(e,t,n){const r=e-n,i=t*r;return n+i}function zD(e,t,n,r,i){return i!==void 0&&(e=Cp(e,i,r)),Cp(e,n,r)+t}function h1(e,t=0,n=1,r,i){e.min=zD(e.min,t,n,r,i),e.max=zD(e.max,t,n,r,i)}function C7(e,{x:t,y:n}){h1(e.x,t.translate,t.scale,t.originPoint),h1(e.y,n.translate,n.scale,n.originPoint)}const WD=.999999999999,HD=1.0000000000001;function vee(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let u=0;u<i;u++){a=n[u],s=a.projectionDelta;const{visualElement:f}=a.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,C7(e,s)),r&&nu(a.latestValues)&&Cl(e,a.latestValues))}t.x<HD&&t.x>WD&&(t.x=1),t.y<HD&&t.y>WD&&(t.y=1)}function wl(e,t){e.min=e.min+t,e.max=e.max+t}function GD(e,t,n,r,i=.5){const a=An(e.min,e.max,i);h1(e,t,n,a,r)}function Cl(e,t){GD(e.x,t.x,t.scaleX,t.scale,t.originX),GD(e.y,t.y,t.scaleY,t.scale,t.originY)}function E7(e,t){return x7(gee(e.getBoundingClientRect(),t))}function yee(e,t,n){const r=E7(e,n),{scroll:i}=t;return i&&(wl(r.x,i.offset.x),wl(r.y,i.offset.y)),r}const YD=()=>({translate:0,scale:1,origin:0,originPoint:0}),El=()=>({x:YD(),y:YD()}),ZD=()=>({min:0,max:0}),Wn=()=>({x:ZD(),y:ZD()}),p1={current:null},S7={current:!1};function bee(){if(S7.current=!0,!!i3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>p1.current=e.matches;e.addEventListener("change",t),t()}else p1.current=!1}const $ee=new WeakMap;function xee(e,t,n){for(const r in t){const i=t[r],a=n[r];if(vr(i))e.addValue(r,i);else if(vr(a))e.addValue(r,Du(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Du(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const XD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let wee=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=w3,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 g=ri.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,wn.render(this.render,!1,!0))};const{latestValues:f,renderState:d}=s;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=$m(n),this.isVariantNode=c7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const b=m[g];f[g]!==void 0&&vr(b)&&b.set(f[g])}}mount(t){var n;this.current=t,$ee.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((r,i)=>this.bindToMotionValue(i,r)),S7.current||bee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:p1.current,process.env.NODE_ENV!=="production"&&c3(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),js(this.notifyUpdate),js(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=oc.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&wn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),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 Wl){const n=Wl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(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):Wn()}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 r=0;r<XD.length;r++){const i=XD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=xee(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 r=this.values.get(t);n!==r&&(r&&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 r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Du(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(yR(r)||$R(r))?r=parseFloat(r):!OQ(r)&&xo.test(n)&&(r=n7(t,n)),this.setBaseTarget(t,vr(r)?r.get():r)),vr(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var a;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const s=R3(this.props,n,(a=this.presenceContext)==null?void 0:a.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!vr(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new l3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){S3.render(this.render)}},D7=class extends wee{constructor(){super(...arguments),this.KeyframeResolver=xQ}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:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;vr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function A7(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i==null||i.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Cee(e){return window.getComputedStyle(e)}let Eee=class extends D7{constructor(){super(...arguments),this.type="html",this.renderInstance=A7}readValueFromInstance(t,n){var r;if(oc.has(n))return(r=this.projection)!=null&&r.isProjecting?a1(n):BJ(t,n);{const i=Cee(t),a=(h3(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return E7(t,n)}build(t,n,r){_3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return k3(t,n,r)}};const T7=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 See(e,t,n,r){A7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(T7.has(i)?i:O3(i),t.attrs[i])}let Dee=class extends D7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Wn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(oc.has(n)){const r=t7(n);return r&&r.default||0}return n=T7.has(n)?n:O3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v7(t,n,r)}build(t,n,r){h7(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){See(t,n,r,i)}mount(t){this.isSVGTag=m7(t.tagName),super.mount(t)}};const Aee=(e,t)=>F3(e)?new Dee(t):new Eee(t,{allowProjection:e!==I.Fragment});function Il(e,t,n){const r=e.getProps();return R3(r,t,n!==void 0?n:r.custom,e)}const m1=e=>Array.isArray(e);function Tee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Du(n))}function Pee(e){return m1(e)?e[e.length-1]||0:e}function _ee(e,t){const n=Il(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const u=Pee(a[s]);Tee(e,s,u)}}function Mee(e){return!!(vr(e)&&e.add)}function g1(e,t){const n=e.getValue("willChange");if(Mee(n))return n.add(t);if(!n&&Ns.WillChange){const r=new Ns.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function P7(e){return e.props[y7]}const Fee=e=>e!==null;function Ree(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Fee),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const kee={type:"spring",stiffness:500,damping:25,restSpeed:10},Oee=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Iee={type:"keyframes",duration:.8},Lee={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Vee=(e,{keyframes:t})=>t.length>2?Iee:oc.has(e)?e.startsWith("scale")?Oee(t[1]):kee:Lee;function Bee({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:u,from:f,elapsed:d,...h}){return!!Object.keys(h).length}const I3=(e,t,n,r={},i,a)=>s=>{const u=C3(r,e)||{},f=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-ga(f);const h={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:g=>{t.set(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};Bee(u)||Object.assign(h,Vee(e,h)),h.duration&&(h.duration=ga(h.duration)),h.repeatDelay&&(h.repeatDelay=ga(h.repeatDelay)),h.from!==void 0&&(h.keyframes[0]=h.from);let m=!1;if((h.type===!1||h.duration===0&&!h.repeatDelay)&&(c1(h),h.delay===0&&(m=!0)),(Ns.instantAnimations||Ns.skipAnimations)&&(m=!0,c1(h),h.delay=0),h.allowFlatten=!u.type&&!u.ease,m&&!a&&t.get()!==void 0){const g=Ree(h.keyframes,u);if(g!==void 0){wn.update(()=>{h.onUpdate(g),h.onComplete()});return}}return u.isSync?new x3(h):new uQ(h)};function Nee({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...u}=t;r&&(a=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in u){const m=e.getValue(h,e.latestValues[h]??null),g=u[h];if(g===void 0||d&&Nee(d,h))continue;const b={delay:n,...C3(a||{},h)},w=m.get();if(w!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===w&&!b.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const C=P7(e);if(C){const E=window.MotionHandoffAnimation(C,h,wn);E!==null&&(b.startTime=E,x=!0)}}g1(e,h),m.start(I3(h,m,g,e.shouldReduceMotion&&JR.has(h)?{type:!1}:b,e,x));const A=m.animation;A&&f.push(A)}return s&&Promise.all(f).then(()=>{wn.update(()=>{s&&_ee(e,s)})}),f}function M7(e,t,n,r=0,i=1){const a=Array.from(e).sort((d,h)=>d.sortNodePosition(h)).indexOf(t),s=e.size,u=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:u-a*r}function v1(e,t,n={}){var f;const r=Il(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(_7(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:h=0,staggerChildren:m,staggerDirection:g}=i;return jee(e,t,d,h,m,g,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[d,h]=u==="beforeChildren"?[a,s]:[s,a];return d().then(()=>h())}else return Promise.all([a(),s(n.delay)])}function jee(e,t,n=0,r=0,i=0,a=1,s){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(v1(f,t,{...s,delay:n+(typeof r=="function"?0:r)+M7(e.variantChildren,f,r,i,a)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function Kee(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>v1(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=v1(e,t,n);else{const i=typeof t=="function"?Il(e,t,n.custom):t;r=Promise.all(_7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function F7(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const Uee=P3.length;function R7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?R7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Uee;n++){const r=P3[n],i=e.props[r];(Kf(i)||i===!1)&&(t[r]=i)}return t}const qee=[...T3].reverse(),zee=T3.length;function Wee(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Kee(e,n,r)))}function Hee(e){let t=Wee(e),n=JD(),r=!0;const i=f=>(d,h)=>{var g;const m=Il(e,h,f==="exit"?(g=e.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:b,transitionEnd:w,...x}=m;d={...d,...x,...w}}return d};function a(f){t=f(e)}function s(f){const{props:d}=e,h=R7(e.parent)||{},m=[],g=new Set;let b={},w=1/0;for(let A=0;A<zee;A++){const C=qee[A],E=n[C],S=d[C]!==void 0?d[C]:h[C],R=Kf(S),_=C===f?E.isActive:null;_===!1&&(w=A);let F=S===h[C]&&S!==d[C]&&R;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),E.protectedKeys={...b},!E.isActive&&_===null||!S&&!E.prevProp||bm(S)||typeof S=="boolean")continue;const z=Gee(E.prevProp,S);let ie=z||C===f&&E.isActive&&!F&&R||A>w&&R,ge=!1;const oe=Array.isArray(S)?S:[S];let O=oe.reduce(i(C),{});_===!1&&(O={});const{prevResolvedValues:we={}}=E,Se={...we,...O},U=k=>{ie=!0,g.has(k)&&(ge=!0,g.delete(k)),E.needsAnimating[k]=!0;const N=e.getValue(k);N&&(N.liveStyle=!1)};for(const k in Se){const N=O[k],te=we[k];if(b.hasOwnProperty(k))continue;let j=!1;m1(N)&&m1(te)?j=!F7(N,te):j=N!==te,j?N!=null?U(k):g.add(k):N!==void 0&&g.has(k)?U(k):E.protectedKeys[k]=!0}E.prevProp=S,E.prevResolvedValues=O,E.isActive&&(b={...b,...O}),r&&e.blockInitialAnimation&&(ie=!1);const ee=F&&z;ie&&(!ee||ge)&&m.push(...oe.map(k=>{const N={type:C};if(typeof k=="string"&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){const{parent:te}=e,j=Il(te,k);if(te.enteringChildren&&j){const{delayChildren:ce}=j.transition||{};N.delay=M7(te.enteringChildren,e,ce)}}return{animation:k,options:N}}))}if(g.size){const A={};if(typeof d.initial!="boolean"){const C=Il(e,Array.isArray(d.initial)?d.initial[0]:d.initial);C&&C.transition&&(A.transition=C.transition)}g.forEach(C=>{const E=e.getBaseTarget(C),S=e.getValue(C);S&&(S.liveStyle=!0),A[C]=E??null}),m.push({animation:A})}let x=!!m.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(m):Promise.resolve()}function u(f,d){var m;if(n[f].isActive===d)return Promise.resolve();(m=e.variantChildren)==null||m.forEach(g=>{var b;return(b=g.animationState)==null?void 0:b.setActive(f,d)}),n[f].isActive=d;const h=s(f);for(const g in n)n[g].protectedKeys={};return h}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=JD(),r=!0}}}function Gee(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!F7(t,e):!1}function eu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JD(){return{animate:eu(!0),whileInView:eu(),whileHover:eu(),whileTap:eu(),whileDrag:eu(),whileFocus:eu(),exit:eu()}}let Do=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Yee=class extends Do{constructor(t){super(t),t.animationState||(t.animationState=Hee(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bm(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)}},Zee=0,Xee=class extends Do{constructor(){super(...arguments),this.id=Zee++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)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 Jee={animation:{Feature:Yee},exit:{Feature:Xee}};function qf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gd(e){return{point:{x:e.pageX,y:e.pageY}}}const Qee=e=>t=>D3(t)&&e(t,gd(t));function Ef(e,t,n,r){return qf(e,t,Qee(n),r)}const k7=1e-4,ete=1-k7,tte=1+k7,O7=.01,nte=0-O7,rte=0+O7;function Vr(e){return e.max-e.min}function ite(e,t,n){return Math.abs(e-t)<=n}function QD(e,t,n,r=.5){e.origin=r,e.originPoint=An(t.min,t.max,e.origin),e.scale=Vr(n)/Vr(t),e.translate=An(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ete&&e.scale<=tte||isNaN(e.scale))&&(e.scale=1),(e.translate>=nte&&e.translate<=rte||isNaN(e.translate))&&(e.translate=0)}function Sf(e,t,n,r){QD(e.x,t.x,n.x,r?r.originX:void 0),QD(e.y,t.y,n.y,r?r.originY:void 0)}function eA(e,t,n){e.min=n.min+t.min,e.max=e.min+Vr(t)}function ate(e,t,n){eA(e.x,t.x,n.x),eA(e.y,t.y,n.y)}function tA(e,t,n){e.min=t.min-n.min,e.max=e.min+Vr(t)}function Df(e,t,n){tA(e.x,t.x,n.x),tA(e.y,t.y,n.y)}function Vi(e){return[e("x"),e("y")]}const I7=({current:e})=>e?e.ownerDocument.defaultView:null,nA=(e,t)=>Math.abs(e-t);function ste(e,t){const n=nA(e.x,t.x),r=nA(e.y,t.y);return Math.sqrt(n**2+r**2)}class L7{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=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 g=F0(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,w=ste(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!w)return;const{point:x}=g,{timestamp:A}=gr;this.history.push({...x,timestamp:A});const{onStart:C,onMove:E}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=M0(b,this.transformPagePoint),wn.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();const{onEnd:w,onSessionEnd:x,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=F0(g.type==="pointercancel"?this.lastMoveEventInfo:M0(b,this.transformPagePoint),this.history);this.startEvent&&w&&w(g,C),x&&x(g,C)},!D3(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const u=gd(t),f=M0(u,this.transformPagePoint),{point:d}=f,{timestamp:h}=gr;this.history=[{...d,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,F0(f,this.history)),this.removeListeners=hd(Ef(this.contextWindow,"pointermove",this.handlePointerMove),Ef(this.contextWindow,"pointerup",this.handlePointerUp),Ef(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),js(this.updatePoint)}}function M0(e,t){return t?{point:t(e.point)}:e}function rA(e,t){return{x:e.x-t.x,y:e.y-t.y}}function F0({point:e},t){return{point:e,delta:rA(e,V7(t)),offset:rA(e,ote(t)),velocity:ute(t,.1)}}function ote(e){return e[0]}function V7(e){return e[e.length-1]}function ute(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=V7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>ga(t)));)n--;if(!r)return{x:0,y:0};const a=Za(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function lte(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?An(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?An(n,e,r.max):Math.min(e,n)),e}function iA(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 cte(e,{top:t,left:n,bottom:r,right:i}){return{x:iA(e.x,n,i),y:iA(e.y,t,r)}}function aA(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fte(e,t){return{x:aA(e.x,t.x),y:aA(e.y,t.y)}}function dte(e,t){let n=.5;const r=Vr(e),i=Vr(t);return i>r?n=Bf(t.min,t.max-r,e.min):r>i&&(n=Bf(e.min,e.max-i,t.min)),Bs(0,1,n)}function hte(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 y1=.35;function pte(e=y1){return e===!1?e=0:e===!0&&(e=y1),{x:sA(e,"left","right"),y:sA(e,"top","bottom")}}function sA(e,t,n){return{min:oA(e,t),max:oA(e,n)}}function oA(e,t){return typeof e=="number"?e:e[t]||0}const mte=new WeakMap;class gte{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=Wn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gd(m).point)},s=(m,g)=>{const{drag:b,dragPropagation:w,onDragStart:x}=this.getProps();if(b&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=DQ(b),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vi(C=>{let E=this.getAxisMotionValue(C).get()||0;if(Xa.test(E)){const{projection:S}=this.visualElement;if(S&&S.layout){const R=S.layout.layoutBox[C];R&&(E=Vr(R)*(parseFloat(E)/100))}}this.originPoint[C]=E}),x&&wn.postRender(()=>x(m,g)),g1(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},u=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:b,dragDirectionLock:w,onDirectionLock:x,onDrag:A}=this.getProps();if(!b&&!this.openDragLock)return;const{offset:C}=g;if(w&&this.currentDirection===null){this.currentDirection=vte(C),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",g.point,C),this.updateAxis("y",g.point,C),this.visualElement.render(),A&&A(m,g)},f=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Vi(m=>{var g;return this.getAnimationState(m)==="paused"&&((g=this.getAxisMotionValue(m).animation)==null?void 0:g.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new L7(t,{onSessionStart:a,onStart:s,onMove:u,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:r,contextWindow:I7(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:u}=this.getProps();u&&wn.postRender(()=>u(r,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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!yh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=lte(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var a;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=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&&xl(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=cte(r.layoutBox,t):this.constraints=!1,this.elastic=pte(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Vi(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hte(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!xl(t))return!1;const r=t.current;ba(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=yee(r,i.root,this.visualElement.getTransformPagePoint());let s=fte(i.layout.layoutBox,a);if(n){const u=n(mee(s));this.hasMutatedConstraints=!!u,u&&(s=x7(u))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},d=Vi(h=>{if(!yh(h,n,this.currentDirection))return;let m=f&&f[h]||{};s&&(m={min:0,max:0});const g=i?200:1e6,b=i?40:1e7,w={type:"inertia",velocity:r?t[h]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...a,...m};return this.startAxisValueAnimation(h,w)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return g1(this.visualElement,t),r.start(I3(t,r,0,n,this.visualElement,!1))}stopAnimation(){Vi(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Vi(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()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Vi(n=>{const{drag:r}=this.getProps();if(!yh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:u}=i.layout.layoutBox[n];a.set(t[n]-An(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!xl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Vi(s=>{const u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){const f=u.get();i[s]=dte({min:f,max:f},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Vi(s=>{if(!yh(s,t,null))return;const u=this.getAxisMotionValue(s),{min:f,max:d}=this.constraints[s];u.set(An(f,d,i[s]))})}addListeners(){if(!this.visualElement.current)return;mte.set(this.visualElement,this);const t=this.visualElement.current,n=Ef(t,"pointerdown",f=>{const{drag:d,dragListener:h=!0}=this.getProps();d&&h&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();xl(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),wn.read(r);const s=qf(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d})=>{this.isDragging&&d&&(Vi(h=>{const m=this.getAxisMotionValue(h);m&&(this.originPoint[h]+=f[h].translate,m.set(m.get()+f[h].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=y1,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:u}}}function yh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vte(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class yte extends Do{constructor(t){super(t),this.removeGroupControls=Gi,this.removeListeners=Gi,this.controls=new gte(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gi}unmount(){this.removeGroupControls(),this.removeListeners()}}const uA=e=>(t,n)=>{e&&wn.postRender(()=>e(t,n))};class bte extends Do{constructor(){super(...arguments),this.removePointerDownListener=Gi}onPointerDown(t){this.session=new L7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:I7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:uA(t),onStart:uA(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&wn.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=Ef(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 Nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lA(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ef={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Dt.test(e))e=parseFloat(e);else return e;const n=lA(e,t.target.x),r=lA(e,t.target.y);return`${n}% ${r}%`}},$te={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=xo.parse(e);if(i.length>5)return r;const a=xo.createTransformer(e),s=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;i[0+s]/=u,i[1+s]/=f;const d=An(u,f,.5);return typeof i[2+s]=="number"&&(i[2+s]/=d),typeof i[3+s]=="number"&&(i[3+s]/=d),a(i)}};let R0=!1;class xte extends I.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;UQ(wte),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),R0&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Nh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,R0=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||wn.postRender(()=>{const u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),S3.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;R0=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function B7(e){const[t,n]=IQ(),r=I.useContext(gR);return Qa.jsx(xte,{...e,layoutGroup:r,switchLayoutGroup:I.useContext(b7),isPresent:t,safeToRemove:n})}const wte={borderRadius:{...ef,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomLeftRadius:ef,borderBottomRightRadius:ef,boxShadow:$te};function Cte(e,t,n){const r=vr(e)?e:Du(e);return r.start(I3("",r,t,n)),r.animation}const Ete=(e,t)=>e.depth-t.depth;class Ste{constructor(){this.children=[],this.isDirty=!1}add(t){s3(this.children,t),this.isDirty=!0}remove(t){o3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Ete),this.isDirty=!1,this.children.forEach(t)}}function Dte(e,t){const n=ri.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(js(r),e(a-t))};return wn.setup(r,!0),()=>js(r)}const N7=["TopLeft","TopRight","BottomLeft","BottomRight"],Ate=N7.length,cA=e=>typeof e=="string"?parseFloat(e):e,fA=e=>typeof e=="number"||Dt.test(e);function Tte(e,t,n,r,i,a){i?(e.opacity=An(0,n.opacity??1,Pte(r)),e.opacityExit=An(t.opacity??1,0,_te(r))):a&&(e.opacity=An(t.opacity??1,n.opacity??1,r));for(let s=0;s<Ate;s++){const u=`border${N7[s]}Radius`;let f=dA(t,u),d=dA(n,u);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||fA(f)===fA(d)?(e[u]=Math.max(An(cA(f),cA(d),r),0),(Xa.test(d)||Xa.test(f))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=An(t.rotate||0,n.rotate||0,r))}function dA(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Pte=j7(0,.5,TR),_te=j7(.5,.95,Gi);function j7(e,t,n){return r=>r<e?0:r>t?1:n(Bf(e,t,r))}function hA(e,t){e.min=t.min,e.max=t.max}function Oi(e,t){hA(e.x,t.x),hA(e.y,t.y)}function pA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mA(e,t,n,r,i){return e-=t,e=Cp(e,1/n,r),i!==void 0&&(e=Cp(e,1/i,r)),e}function Mte(e,t=0,n=1,r=.5,i,a=e,s=e){if(Xa.test(t)&&(t=parseFloat(t),t=An(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=An(a.min,a.max,r);e===a&&(u-=t),e.min=mA(e.min,t,n,u,i),e.max=mA(e.max,t,n,u,i)}function gA(e,t,[n,r,i],a,s){Mte(e,t[n],t[r],t[i],t.scale,a,s)}const Fte=["x","scaleX","originX"],Rte=["y","scaleY","originY"];function vA(e,t,n,r){gA(e.x,t,Fte,n?n.x:void 0,r?r.x:void 0),gA(e.y,t,Rte,n?n.y:void 0,r?r.y:void 0)}function yA(e){return e.translate===0&&e.scale===1}function K7(e){return yA(e.x)&&yA(e.y)}function bA(e,t){return e.min===t.min&&e.max===t.max}function kte(e,t){return bA(e.x,t.x)&&bA(e.y,t.y)}function $A(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function U7(e,t){return $A(e.x,t.x)&&$A(e.y,t.y)}function xA(e){return Vr(e.x)/Vr(e.y)}function wA(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ote{constructor(){this.members=[]}add(t){s3(this.members,t),t.scheduleRender()}remove(t){if(o3(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 r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ite(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:h,rotateX:m,rotateY:g,skewX:b,skewY:w}=n;d&&(r=`perspective(${d}px) ${r}`),h&&(r+=`rotate(${h}deg) `),m&&(r+=`rotateX(${m}deg) `),g&&(r+=`rotateY(${g}deg) `),b&&(r+=`skewX(${b}deg) `),w&&(r+=`skewY(${w}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(r+=`scale(${u}, ${f})`),r||"none"}const k0=["","X","Y","Z"],Lte=1e3;let Vte=0;function O0(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function q7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=P7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wn,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&q7(r)}function z7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},u=t==null?void 0:t()){this.id=Vte++,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(jte),this.nodes.forEach(zte),this.nodes.forEach(Wte),this.nodes.forEach(Kte)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ste)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new l3),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){const f=this.eventHandlers.get(s);f&&f.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s){if(this.instance)return;this.isSVG=o7(s)&&!FQ(s),this.instance=s;const{layoutId:u,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let h,m=0;const g=()=>this.root.updateBlockedByResize=!1;wn.read(()=>{m=window.innerWidth}),e(s,()=>{const b=window.innerWidth;b!==m&&(m=b,this.root.updateBlockedByResize=!0,h&&h(),h=Dte(g,250),Nh.hasAnimatedSinceResize&&(Nh.hasAnimatedSinceResize=!1,this.nodes.forEach(SA)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&d&&(u||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||Xte,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=d.getProps(),C=!this.targetLayout||!U7(this.targetLayout,b),E=!m&&g;if(this.options.layoutRoot||this.resumeFrom||E||m&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...C3(w,"layout"),onPlay:x,onComplete:A};(d.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(h,E)}else m||SA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),js(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(Hte),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&q7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h<this.path.length;h++){const m=this.path[h];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(CA);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(EA);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(qte),this.nodes.forEach(Bte),this.nodes.forEach(Nte)):this.nodes.forEach(EA),this.clearAllSnapshots();const u=ri.now();gr.delta=Bs(0,1e3/60,u-gr.timestamp),gr.timestamp=u,gr.isProcessing=!0,C0.update.process(gr),C0.preRender.process(gr),C0.render.process(gr),gr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,S3.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ute),this.sharedNodes.forEach(Gte)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Vr(this.snapshot.measuredBox.x)&&!Vr(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Wn(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!K7(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,h=d!==this.prevTransformTemplateValue;s&&this.instance&&(u||nu(this.latestValues)||h)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return s&&(f=this.removeTransform(f)),Jte(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:s}=this.options;if(!s)return Wn();const u=s.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(Qte))){const{scroll:h}=this.root;h&&(wl(u.x,h.offset.x),wl(u.y,h.offset.y))}return u}removeElementScroll(s){var f;const u=Wn();if(Oi(u,s),(f=this.scroll)!=null&&f.wasRoot)return u;for(let d=0;d<this.path.length;d++){const h=this.path[d],{scroll:m,options:g}=h;h!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&Oi(u,s),wl(u.x,m.offset.x),wl(u.y,m.offset.y))}return u}applyTransform(s,u=!1){const f=Wn();Oi(f,s);for(let d=0;d<this.path.length;d++){const h=this.path[d];!u&&h.options.layoutScroll&&h.scroll&&h!==h.root&&Cl(f,{x:-h.scroll.offset.x,y:-h.scroll.offset.y}),nu(h.latestValues)&&Cl(f,h.latestValues)}return nu(this.latestValues)&&Cl(f,this.latestValues),f}removeTransform(s){const u=Wn();Oi(u,s);for(let f=0;f<this.path.length;f++){const d=this.path[f];if(!d.instance||!nu(d.latestValues))continue;d1(d.latestValues)&&d.updateSnapshot();const h=Wn(),m=d.measurePageBox();Oi(h,m),vA(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,h)}return nu(this.latestValues)&&vA(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.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!==gr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var g;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(s||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(g=this.parent)!=null&&g.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=gr.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wn(),this.targetWithTransforms=Wn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ate(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Oi(this.target,this.layout.layoutBox),C7(this.target,this.targetDelta)):Oi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Wn(),this.relativeTargetOrigin=Wn(),Df(this.relativeTargetOrigin,this.target,b.target),Oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||d1(this.parent.latestValues)||w7(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 w;const s=this.getLead(),u=!!this.resumingFrom||this!==s;let f=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===gr.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=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||h))return;Oi(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;vee(this.layoutCorrected,this.treeScale,this.path,u),s.layout&&!s.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(s.target=s.layout.layoutBox,s.targetWithTransforms=Wn());const{target:b}=s;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(pA(this.prevProjectionDelta.x,this.projectionDelta.x),pA(this.prevProjectionDelta.y,this.projectionDelta.y)),Sf(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!wA(this.projectionDelta.x,this.prevProjectionDelta.x)||!wA(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),s){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=El(),this.projectionDelta=El(),this.projectionDeltaWithTransform=El()}setAnimationOrigin(s,u=!1){const f=this.snapshot,d=f?f.latestValues:{},h={...this.latestValues},m=El();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const g=Wn(),b=f?f.source:void 0,w=this.layout?this.layout.source:void 0,x=b!==w,A=this.getStack(),C=!A||A.members.length<=1,E=!!(x&&!C&&this.options.crossfade===!0&&!this.path.some(Zte));this.animationProgress=0;let S;this.mixTargetDelta=R=>{const _=R/1e3;DA(m.x,s.x,_),DA(m.y,s.y,_),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Df(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Yte(this.relativeTarget,this.relativeTargetOrigin,g,_),S&&kte(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=Wn()),Oi(S,this.relativeTarget)),x&&(this.animationValues=h,Tte(h,d,this.latestValues,_,E,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){var u,f,d;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(js(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wn.update(()=>{Nh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Du(0)),this.currentAnimation=Cte(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),s.onUpdate&&s.onUpdate(h)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lte),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:u,target:f,layout:d,latestValues:h}=s;if(!(!u||!f||!d)){if(this!==s&&this.layout&&d&&W7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Wn();const m=Vr(this.layout.layoutBox.x);f.x.min=s.target.x.min,f.x.max=f.x.min+m;const g=Vr(this.layout.layoutBox.y);f.y.min=s.target.y.min,f.y.max=f.y.min+g}Oi(u,f),Cl(u,h),Sf(this.projectionDeltaWithTransform,this.layoutCorrected,u,h)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Ote),this.sharedNodes.get(s).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var u;const{layoutId:s}=this.options;return s?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:s}=this.options;return s?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let u=!1;const{latestValues:f}=s;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const d={};f.z&&O0("z",s,d,this.animationValues);for(let h=0;h<k0.length;h++)O0(`rotate${k0[h]}`,s,d,this.animationValues),O0(`skew${k0[h]}`,s,d,this.animationValues);s.render();for(const h in d)s.setStaticValue(h,d[h]),this.animationValues&&(this.animationValues[h]=d[h]);s.scheduleRender()}applyProjectionStyles(s,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){s.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,s.visibility="",s.opacity="",s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||"",s.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(s.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,s.pointerEvents=Bh(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!nu(this.latestValues)&&(s.transform=f?f({},""):"none",this.hasProjected=!1);return}s.visibility="";const h=d.animationValues||d.latestValues;this.applyTransformsToTarget();let m=Ite(this.projectionDeltaWithTransform,this.treeScale,h);f&&(m=f(h,m)),s.transform=m;const{x:g,y:b}=this.projectionDelta;s.transformOrigin=`${g.origin*100}% ${b.origin*100}% 0`,d.animationValues?s.opacity=d===this?h.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:s.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const w in Uf){if(h[w]===void 0)continue;const{correct:x,applyTo:A,isCSSVariable:C}=Uf[w],E=m==="none"?h[w]:x(h[w],d);if(A){const S=A.length;for(let R=0;R<S;R++)s[A[R]]=E}else C?this.options.visualElement.renderState.vars[w]=E:s[w]=E}this.options.layoutId&&(s.pointerEvents=d===this?Bh(u==null?void 0:u.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(CA),this.root.sharedNodes.clear()}}}function Bte(e){e.updateLayout()}function Nte(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:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=t.source!==e.layout.source;a==="size"?Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(g);g.min=r[m].min,g.max=g.min+b}):W7(a,t.layoutBox,r)&&Vi(m=>{const g=s?t.measuredBox[m]:t.layoutBox[m],b=Vr(r[m]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[m].max=e.relativeTarget[m].min+b)});const u=El();Sf(u,r,t.layoutBox);const f=El();s?Sf(f,e.applyTransform(i,!0),t.measuredBox):Sf(f,r,t.layoutBox);const d=!K7(u);let h=!1;if(!e.resumeFrom){const m=e.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:b}=m;if(g&&b){const w=Wn();Df(w,t.layoutBox,g.layoutBox);const x=Wn();Df(x,r,b.layoutBox),U7(w,x)||(h=!0),m.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=w,e.relativeParent=m)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function jte(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 Kte(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ute(e){e.clearSnapshot()}function CA(e){e.clearMeasurements()}function EA(e){e.isLayoutDirty=!1}function qte(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function SA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zte(e){e.resolveTargetDelta()}function Wte(e){e.calcProjection()}function Hte(e){e.resetSkewAndRotation()}function Gte(e){e.removeLeadSnapshot()}function DA(e,t,n){e.translate=An(t.translate,0,n),e.scale=An(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function AA(e,t,n,r){e.min=An(t.min,n.min,r),e.max=An(t.max,n.max,r)}function Yte(e,t,n,r){AA(e.x,t.x,n.x,r),AA(e.y,t.y,n.y,r)}function Zte(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Xte={duration:.45,ease:[.4,0,.1,1]},TA=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),PA=TA("applewebkit/")&&!TA("chrome/")?Math.round:Gi;function _A(e){e.min=PA(e.min),e.max=PA(e.max)}function Jte(e){_A(e.x),_A(e.y)}function W7(e,t,n){return e==="position"||e==="preserve-aspect"&&!ite(xA(t),xA(n),.2)}function Qte(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const ene=z7({attachResizeListener:(e,t)=>qf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),I0={current:void 0},H7=z7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!I0.current){const e=new ene({});e.mount(window),e.setOptions({layoutScroll:!0}),I0.current=e}return I0.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tne={pan:{Feature:bte},drag:{Feature:yte,ProjectionNode:H7,MeasureLayout:B7}};function MA(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let nne=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=AQ(t,(n,r)=>(MA(this.node,r,"Start"),i=>MA(this.node,i,"End"))))}unmount(){}},rne=class extends Do{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=hd(qf(this.node.current,"focus",()=>this.onFocus()),qf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function FA(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&wn.postRender(()=>a(t,gd(t)))}let ine=class extends Do{mount(){const{current:t}=this.node;t&&(this.unmount=MQ(t,(n,r)=>(FA(this.node,r,"Start"),(i,{success:a})=>FA(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const b1=new WeakMap,L0=new WeakMap,ane=e=>{const t=b1.get(e.target);t&&t(e)},sne=e=>{e.forEach(ane)};function one({root:e,...t}){const n=e||document;L0.has(n)||L0.set(n,{});const r=L0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(sne,{root:e,...t})),r[i]}function une(e,t,n){const r=one(t);return b1.set(e,n),r.observe(e),()=>{b1.delete(e),r.unobserve(e)}}const lne={some:0,all:1};let cne=class extends Do{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:lne[i]},u=f=>{const{isIntersecting:d}=f;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:h,onViewportLeave:m}=this.node.getProps(),g=d?h:m;g&&g(f)};return une(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(fne(t,n))&&this.startObserver()}unmount(){}};function fne({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const dne={inView:{Feature:cne},tap:{Feature:ine},focus:{Feature:rne},hover:{Feature:nne}},hne={layout:{ProjectionNode:H7,MeasureLayout:B7}},pne={...Jee,...dne,...tne,...hne},G7=pee(pne,Aee);function Y7(e){const t=dd(()=>Du(e)),{isStatic:n}=I.useContext(A3);if(n){const[,r]=I.useState(e);I.useEffect(()=>t.on("change",r),[])}return t}function Z7(e,t){const n=Y7(t()),r=()=>n.set(t());return r(),vR(()=>{const i=()=>wn.preRender(r,!1,!0),a=e.map(s=>s.on("change",i));return()=>{a.forEach(s=>s()),js(r)}}),n}function mne(e){Cf.current=[],e();const t=Z7(Cf.current,e);return Cf.current=void 0,t}function gne(e,t,n,r){if(typeof e=="function")return mne(e);const i=typeof t=="function"?t:RQ(t,n,r);return Array.isArray(e)?RA(e,i):RA([e],([a])=>i(a))}function RA(e,t){const n=dd(()=>[]);return Z7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const X7=I.createContext(null);function vne(e,t,n,r){if(!r)return e;const i=e.findIndex(h=>h.value===t);if(i===-1)return e;const a=r>0?1:-1,s=e[i+a];if(!s)return e;const u=e[i],f=s.layout,d=An(f.min,f.max,.5);return a===1&&u.layout.max+n>d||a===-1&&u.layout.min+n<d?VX(e,i,i+a):e}function yne({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},s){const u=dd(()=>G7[t]),f=[],d=I.useRef(!1);ba(!!i,"Reorder.Group must be provided a values prop","reorder-values");const h={axis:n,registerItem:(m,g)=>{const b=f.findIndex(w=>m===w.value);b!==-1?f[b].layout=g[n]:f.push({value:m,layout:g[n]}),f.sort(xne)},updateOrder:(m,g,b)=>{if(d.current)return;const w=vne(f,m,g,b);f!==w&&(d.current=!0,r(w.map($ne).filter(x=>i.indexOf(x)!==-1)))}};return I.useEffect(()=>{d.current=!1}),Qa.jsx(u,{...a,ref:s,ignoreStrict:!0,children:Qa.jsx(X7.Provider,{value:h,children:e})})}const bne=I.forwardRef(yne);function $ne(e){return e.value}function xne(e,t){return e.layout.min-t.layout.min}function kA(e,t=0){return vr(e)?e:Y7(t)}function wne({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...s},u){const f=dd(()=>G7[r]),d=I.useContext(X7),h={x:kA(t.x),y:kA(t.y)},m=gne([h.x,h.y],([x,A])=>x||A?1:"unset");ba(!!d,"Reorder.Item must be a child of Reorder.Group","reorder-item-child");const{axis:g,registerItem:b,updateOrder:w}=d;return Qa.jsx(f,{drag:g,...s,dragSnapToOrigin:!0,style:{...t,x:h.x,y:h.y,zIndex:m},layout:a,onDrag:(x,A)=>{const{velocity:C}=A;C[g]&&w(n,h[g].get(),C[g]),i&&i(x,A)},onLayoutMeasure:x=>b(n,x),ref:u,ignoreStrict:!0,children:e})}const Cne=I.forwardRef(wne);var jh={exports:{}},Ene=jh.exports,OA;function Sne(){return OA||(OA=1,function(e,t){(function(n,r){e.exports=r()})(Ene,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,a){var s=i.prototype,u=s.format;a.en.formats=n,s.format=function(f){f===void 0&&(f="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,h=function(m,g){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(b,w,x){var A=x&&x.toUpperCase();return w||g[x]||n[x]||g[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,E,S){return E||S.slice(1)})})}(f,d===void 0?{}:d);return u.call(this,h)}}})}(jh)),jh.exports}var Dne=Sne();const Ane=qr(Dne),IA=(e,t,n)=>{if(e&&"reportValidity"in e){const r=it(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},J7=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?IA(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>IA(i,n,e))}},Tne=(e,t)=>{t.shouldUseNativeValidation&&J7(e,t);const n={};for(const r in e){const i=it(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(Pne(t.names||Object.keys(e),r)){const s=Object.assign({},it(n,r));nn(s,"root",a),nn(n,r,s)}else nn(n,r,a)}return n},Pne=(e,t)=>{const n=LA(t);return e.some(r=>LA(r).match(`^${n}\\.\\d+`))};function LA(e){return e.replace(/\]|\[/g,"")}function _ne(e,t,n){return n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(s,u){try{var f=(t!=null&&t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(d){return a.shouldUseNativeValidation&&J7({},a),{values:n.raw?Object.assign({},r):d,errors:{}}}))}catch(d){return u(d)}return f&&f.then?f.then(void 0,u):f}(0,function(s){if(!s.inner)throw s;return{values:{},errors:Tne((u=s,f=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(d,h){if(d[h.path]||(d[h.path]={message:h.message,type:h.type}),f){var m=d[h.path].types,g=m&&m[h.type];d[h.path]=I2(h.path,f,d,h.type,g?[].concat(g,h.message):h.message)}return d},{})),a)};var u,f}))}catch(s){return Promise.reject(s)}}}var vf={exports:{}},Mne=vf.exports,VA;function Fne(){return VA||(VA=1,function(e,t){(function(n,r){r(t,fe.default)})(Mne,function(n,r){function i(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var a=i(r),s=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Ui<"u"?Ui:typeof self<"u"?self:{},u={exports:{}};(function(U,ee){typeof document<"u"&&typeof navigator<"u"&&function(K,k){U.exports=k()}(s,function(){var K="http://www.w3.org/2000/svg",k="",N=!1,te=-999999,j=function(p){N=!!p},ce=function(){return N},ue=function(p){k=p},Ae=function(){return k};function _e(l){return document.createElement(l)}function Le(l,p){var v,$=l.length,T;for(v=0;v<$;v+=1){T=l[v].prototype;for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(p.prototype[P]=T[P])}}function Ye(l){function p(){}return p.prototype=l,p}var Qe=function(){function l(p){this.audios=[],this.audioFactory=p,this._volume=1,this._isMuted=!1}return l.prototype={addAudio:function(v){this.audios.push(v)},pause:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].pause()},resume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].resume()},setRate:function(v){var $,T=this.audios.length;for($=0;$<T;$+=1)this.audios[$].setRate(v)},createAudio:function(v){return this.audioFactory?this.audioFactory(v):window.Howl?new window.Howl({src:[v]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(v){this.audioFactory=v},setVolume:function(v){this._volume=v,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var v,$=this.audios.length;for(v=0;v<$;v+=1)this.audios[v].volume(this._volume*(this._isMuted?0:1))}},function(){return new l}}(),Ue=function(){function l(v,$){var T=0,P=[],q;switch(v){case"int16":case"uint8c":q=1;break;default:q=1.1;break}for(T=0;T<$;T+=1)P.push(q);return P}function p(v,$){return v==="float32"?new Float32Array($):v==="int16"?new Int16Array($):v==="uint8c"?new Uint8ClampedArray($):l(v,$)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?p:l}();function Ge(l){return Array.apply(null,{length:l})}var Ie=!0,Ne=null,Te="",He=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),ht=Math.pow,Ht=Math.sqrt,$t=Math.floor,_t=Math.min,zr=150,Qt=Math.PI/180,be=.5519;function De(l,p,v,$){this.type=l,this.currentTime=p,this.totalTime=v,this.direction=$<0?-1:1}function Me(l,p){this.type=l,this.direction=p<0?-1:1}function Xe(l,p,v,$){this.type=l,this.currentLoop=v,this.totalLoops=p,this.direction=$<0?-1:1}function tt(l,p,v){this.type=l,this.firstFrame=p,this.totalFrames=v}function Je(l,p){this.type=l,this.target=p}function gt(l,p){this.type="renderFrameError",this.nativeError=l,this.currentTime=p}function Rt(l){this.type="configError",this.nativeError=l}var xt=function(){var l=0;return function(){return l+=1,Te+"__lottie_element_"+l}}();function gn(l,p,v){var $,T,P,q,me,J,$e,Ce;switch(q=Math.floor(l*6),me=l*6-q,J=v*(1-p),$e=v*(1-me*p),Ce=v*(1-(1-me)*p),q%6){case 0:$=v,T=Ce,P=J;break;case 1:$=$e,T=v,P=J;break;case 2:$=J,T=v,P=Ce;break;case 3:$=J,T=$e,P=v;break;case 4:$=Ce,T=J,P=v;break;case 5:$=v,T=J,P=$e;break}return[$,T,P]}function yr(l,p,v){var $=Math.max(l,p,v),T=Math.min(l,p,v),P=$-T,q,me=$===0?0:P/$,J=$/255;switch($){case T:q=0;break;case l:q=p-v+P*(p<v?6:0),q/=6*P;break;case p:q=v-l+P*2,q/=6*P;break;case v:q=l-p+P*4,q/=6*P;break}return[q,me,J]}function Ut(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[1]+=p,v[1]>1?v[1]=1:v[1]<=0&&(v[1]=0),gn(v[0],v[1],v[2])}function Pt(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[2]+=p,v[2]>1?v[2]=1:v[2]<0&&(v[2]=0),gn(v[0],v[1],v[2])}function It(l,p){var v=yr(l[0]*255,l[1]*255,l[2]*255);return v[0]+=p/360,v[0]>1?v[0]-=1:v[0]<0&&(v[0]+=1),gn(v[0],v[1],v[2])}(function(){var l=[],p,v;for(p=0;p<256;p+=1)v=p.toString(16),l[p]=v.length===1?"0"+v:v;return function($,T,P){return $<0&&($=0),T<0&&(T=0),P<0&&(P=0),"#"+l[$]+l[T]+l[P]}})();var qt=function(p){Ie=!!p},fr=function(){return Ie},Wr=function(p){Ne=p},si=function(){return Ne},Tr=function(p){zr=p},Ea=function(){return zr},Ao=function(p){Te=p};function bt(l){return document.createElementNS(K,l)}function oi(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oi=function(v){return typeof v}:oi=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},oi(l)}var is=function(){var l=1,p=[],v,$,T={onmessage:function(){},postMessage:function(Q){v({data:Q})}},P={postMessage:function(Q){T.onmessage({data:Q})}};function q(M){if(window.Worker&&window.Blob&&ce()){var Q=new Blob(["var _workerSelf = self; self.onmessage = ",M.toString()],{type:"text/javascript"}),G=URL.createObjectURL(Q);return new Worker(G)}return v=M,T}function me(){$||($=q(function(Q){function G(){function de(Ve,xe){var le,X,ve=Ve.length,je,ke,lt,At;for(X=0;X<ve;X+=1)if(le=Ve[X],"ks"in le&&!le.completed){if(le.completed=!0,le.hasMask){var Ct=le.masksProperties;for(ke=Ct.length,je=0;je<ke;je+=1)if(Ct[je].pt.k.i)H(Ct[je].pt.k);else for(At=Ct[je].pt.k.length,lt=0;lt<At;lt+=1)Ct[je].pt.k[lt].s&&H(Ct[je].pt.k[lt].s[0]),Ct[je].pt.k[lt].e&&H(Ct[je].pt.k[lt].e[0])}le.ty===0?(le.layers=L(le.refId,xe),de(le.layers,xe)):le.ty===4?B(le.shapes):le.ty===5&&ot(le)}}function W(Ve,xe){if(Ve){var le=0,X=Ve.length;for(le=0;le<X;le+=1)Ve[le].t===1&&(Ve[le].data.layers=L(Ve[le].data.refId,xe),de(Ve[le].data.layers,xe))}}function Y(Ve,xe){for(var le=0,X=xe.length;le<X;){if(xe[le].id===Ve)return xe[le];le+=1}return null}function L(Ve,xe){var le=Y(Ve,xe);return le?le.layers.__used?JSON.parse(JSON.stringify(le.layers)):(le.layers.__used=!0,le.layers):null}function B(Ve){var xe,le=Ve.length,X,ve;for(xe=le-1;xe>=0;xe-=1)if(Ve[xe].ty==="sh")if(Ve[xe].ks.k.i)H(Ve[xe].ks.k);else for(ve=Ve[xe].ks.k.length,X=0;X<ve;X+=1)Ve[xe].ks.k[X].s&&H(Ve[xe].ks.k[X].s[0]),Ve[xe].ks.k[X].e&&H(Ve[xe].ks.k[X].e[0]);else Ve[xe].ty==="gr"&&B(Ve[xe].it)}function H(Ve){var xe,le=Ve.i.length;for(xe=0;xe<le;xe+=1)Ve.i[xe][0]+=Ve.v[xe][0],Ve.i[xe][1]+=Ve.v[xe][1],Ve.o[xe][0]+=Ve.v[xe][0],Ve.o[xe][1]+=Ve.v[xe][1]}function ne(Ve,xe){var le=xe?xe.split("."):[100,100,100];return Ve[0]>le[0]?!0:le[0]>Ve[0]?!1:Ve[1]>le[1]?!0:le[1]>Ve[1]?!1:Ve[2]>le[2]?!0:le[2]>Ve[2]?!1:null}var se=function(){var Ve=[4,4,14];function xe(X){var ve=X.t.d;X.t.d={k:[{s:ve,t:0}]}}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),pe=function(){var Ve=[4,7,99];return function(xe){if(xe.chars&&!ne(Ve,xe.v)){var le,X=xe.chars.length;for(le=0;le<X;le+=1){var ve=xe.chars[le];ve.data&&ve.data.shapes&&(B(ve.data.shapes),ve.data.ip=0,ve.data.op=99999,ve.data.st=0,ve.data.sr=1,ve.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},xe.chars[le].t||(ve.data.shapes.push({ty:"no"}),ve.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Oe=function(){var Ve=[5,7,15];function xe(X){var ve=X.t.p;typeof ve.a=="number"&&(ve.a={a:0,k:ve.a}),typeof ve.p=="number"&&(ve.p={a:0,k:ve.p}),typeof ve.r=="number"&&(ve.r={a:0,k:ve.r})}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===5&&xe(X[ve])}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),nt=function(){var Ve=[4,1,9];function xe(X){var ve,je=X.length,ke,lt;for(ve=0;ve<je;ve+=1)if(X[ve].ty==="gr")xe(X[ve].it);else if(X[ve].ty==="fl"||X[ve].ty==="st")if(X[ve].c.k&&X[ve].c.k[0].i)for(lt=X[ve].c.k.length,ke=0;ke<lt;ke+=1)X[ve].c.k[ke].s&&(X[ve].c.k[ke].s[0]/=255,X[ve].c.k[ke].s[1]/=255,X[ve].c.k[ke].s[2]/=255,X[ve].c.k[ke].s[3]/=255),X[ve].c.k[ke].e&&(X[ve].c.k[ke].e[0]/=255,X[ve].c.k[ke].e[1]/=255,X[ve].c.k[ke].e[2]/=255,X[ve].c.k[ke].e[3]/=255);else X[ve].c.k[0]/=255,X[ve].c.k[1]/=255,X[ve].c.k[2]/=255,X[ve].c.k[3]/=255}function le(X){var ve,je=X.length;for(ve=0;ve<je;ve+=1)X[ve].ty===4&&xe(X[ve].shapes)}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}(),et=function(){var Ve=[4,4,18];function xe(X){var ve,je=X.length,ke,lt;for(ve=je-1;ve>=0;ve-=1)if(X[ve].ty==="sh")if(X[ve].ks.k.i)X[ve].ks.k.c=X[ve].closed;else for(lt=X[ve].ks.k.length,ke=0;ke<lt;ke+=1)X[ve].ks.k[ke].s&&(X[ve].ks.k[ke].s[0].c=X[ve].closed),X[ve].ks.k[ke].e&&(X[ve].ks.k[ke].e[0].c=X[ve].closed);else X[ve].ty==="gr"&&xe(X[ve].it)}function le(X){var ve,je,ke=X.length,lt,At,Ct,yn;for(je=0;je<ke;je+=1){if(ve=X[je],ve.hasMask){var zt=ve.masksProperties;for(At=zt.length,lt=0;lt<At;lt+=1)if(zt[lt].pt.k.i)zt[lt].pt.k.c=zt[lt].cl;else for(yn=zt[lt].pt.k.length,Ct=0;Ct<yn;Ct+=1)zt[lt].pt.k[Ct].s&&(zt[lt].pt.k[Ct].s[0].c=zt[lt].cl),zt[lt].pt.k[Ct].e&&(zt[lt].pt.k[Ct].e[0].c=zt[lt].cl)}ve.ty===4&&xe(ve.shapes)}}return function(X){if(ne(Ve,X.v)&&(le(X.layers),X.assets)){var ve,je=X.assets.length;for(ve=0;ve<je;ve+=1)X.assets[ve].layers&&le(X.assets[ve].layers)}}}();function Be(Ve){Ve.__complete||(nt(Ve),se(Ve),pe(Ve),Oe(Ve),et(Ve),de(Ve.layers,Ve.assets),W(Ve.chars,Ve.assets),Ve.__complete=!0)}function ot(Ve){Ve.t.a.length===0&&"m"in Ve.t.p}var ct={};return ct.completeData=Be,ct.checkColors=nt,ct.checkChars=pe,ct.checkPathProperties=Oe,ct.checkShapes=et,ct.completeLayers=de,ct}if(P.dataManager||(P.dataManager=G()),P.assetLoader||(P.assetLoader=function(){function de(Y){var L=Y.getResponseHeader("content-type");return L&&Y.responseType==="json"&&L.indexOf("json")!==-1||Y.response&&oi(Y.response)==="object"?Y.response:Y.response&&typeof Y.response=="string"?JSON.parse(Y.response):Y.responseText?JSON.parse(Y.responseText):null}function W(Y,L,B,H){var ne,se=new XMLHttpRequest;try{se.responseType="json"}catch{}se.onreadystatechange=function(){if(se.readyState===4)if(se.status===200)ne=de(se),B(ne);else try{ne=de(se),B(ne)}catch(pe){H&&H(pe)}};try{se.open(["G","E","T"].join(""),Y,!0)}catch{se.open(["G","E","T"].join(""),L+"/"+Y,!0)}se.send()}return{load:W}}()),Q.data.type==="loadAnimation")P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.dataManager.completeData(de),P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})});else if(Q.data.type==="complete"){var he=Q.data.animation;P.dataManager.completeData(he),P.postMessage({id:Q.data.id,payload:he,status:"success"})}else Q.data.type==="loadData"&&P.assetLoader.load(Q.data.path,Q.data.fullPath,function(de){P.postMessage({id:Q.data.id,payload:de,status:"success"})},function(){P.postMessage({id:Q.data.id,status:"error"})})}),$.onmessage=function(M){var Q=M.data,G=Q.id,he=p[G];p[G]=null,Q.status==="success"?he.onComplete(Q.payload):he.onError&&he.onError()})}function J(M,Q){l+=1;var G="processId_"+l;return p[G]={onComplete:M,onError:Q},G}function $e(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadAnimation",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Ce(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"loadData",path:M,fullPath:window.location.origin+window.location.pathname,id:he})}function Re(M,Q,G){me();var he=J(Q,G);$.postMessage({type:"complete",animation:M,id:he})}return{loadAnimation:$e,loadData:Ce,completeAnimation:Re}}(),vc=function(){var l=function(){var W=_e("canvas");W.width=1,W.height=1;var Y=W.getContext("2d");return Y.fillStyle="rgba(0,0,0,0)",Y.fillRect(0,0,1,1),W}();function p(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function v(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function $(W,Y,L){var B="";if(W.e)B=W.p;else if(Y){var H=W.p;H.indexOf("images/")!==-1&&(H=H.split("/")[1]),B=Y+H}else B=L,B+=W.u?W.u:"",B+=W.p;return B}function T(W){var Y=0,L=setInterval((function(){var B=W.getBBox();(B.width||Y>500)&&(this._imageLoaded(),clearInterval(L)),Y+=1}).bind(this),50)}function P(W){var Y=$(W,this.assetsPath,this.path),L=bt("image");He?this.testImageLoaded(L):L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.setAttributeNS("http://www.w3.org/1999/xlink","href",Y),this._elementHelper.append?this._elementHelper.append(L):this._elementHelper.appendChild(L);var B={img:L,assetData:W};return B}function q(W){var Y=$(W,this.assetsPath,this.path),L=_e("img");L.crossOrigin="anonymous",L.addEventListener("load",this._imageLoaded,!1),L.addEventListener("error",(function(){B.img=l,this._imageLoaded()}).bind(this),!1),L.src=Y;var B={img:L,assetData:W};return B}function me(W){var Y={assetData:W},L=$(W,this.assetsPath,this.path);return is.loadData(L,(function(B){Y.img=B,this._footageLoaded()}).bind(this),(function(){Y.img={},this._footageLoaded()}).bind(this)),Y}function J(W,Y){this.imagesLoadedCb=Y;var L,B=W.length;for(L=0;L<B;L+=1)W[L].layers||(!W[L].t||W[L].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(W[L]))):W[L].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(W[L]))))}function $e(W){this.path=W||""}function Ce(W){this.assetsPath=W||""}function Re(W){for(var Y=0,L=this.images.length;Y<L;){if(this.images[Y].assetData===W)return this.images[Y].img;Y+=1}return null}function M(){this.imagesLoadedCb=null,this.images.length=0}function Q(){return this.totalImages===this.loadedAssets}function G(){return this.totalFootages===this.loadedFootagesCount}function he(W,Y){W==="svg"?(this._elementHelper=Y,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function de(){this._imageLoaded=p.bind(this),this._footageLoaded=v.bind(this),this.testImageLoaded=T.bind(this),this.createFootageData=me.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return de.prototype={loadAssets:J,setAssetsPath:Ce,setPath:$e,loadedImages:Q,loadedFootages:G,destroy:M,getAsset:Re,createImgData:q,createImageData:P,imageLoaded:p,footageLoaded:v,setCacheType:he},de}();function ku(){}ku.prototype={triggerEvent:function(p,v){if(this._cbs[p])for(var $=this._cbs[p],T=0;T<$.length;T+=1)$[T](v)},addEventListener:function(p,v){return this._cbs[p]||(this._cbs[p]=[]),this._cbs[p].push(v),(function(){this.removeEventListener(p,v)}).bind(this)},removeEventListener:function(p,v){if(!v)this._cbs[p]=null;else if(this._cbs[p]){for(var $=0,T=this._cbs[p].length;$<T;)this._cbs[p][$]===v&&(this._cbs[p].splice($,1),$-=1,T-=1),$+=1;this._cbs[p].length||(this._cbs[p]=null)}}};var yc=function(){function l(p){for(var v=p.split(`\r
76
76
  `),$={},T,P=0,q=0;q<v.length;q+=1)T=v[q].split(":"),T.length===2&&($[T[0]]=T[1].trim(),P+=1);if(P===0)throw new Error;return $}return function(p){for(var v=[],$=0;$<p.length;$+=1){var T=p[$],P={time:T.tm,duration:T.dr};try{P.payload=JSON.parse(p[$].cm)}catch{try{P.payload=l(p[$].cm)}catch{P.payload={name:p[$].cm}}}v.push(P)}return v}}(),Ou=function(){function l(p){this.compositions.push(p)}return function(){function p(v){for(var $=0,T=this.compositions.length;$<T;){if(this.compositions[$].data&&this.compositions[$].data.nm===v)return this.compositions[$].prepareFrame&&this.compositions[$].data.xt&&this.compositions[$].prepareFrame(this.currentFrame),this.compositions[$].compInterface;$+=1}return null}return p.compositions=[],p.currentFrame=0,p.registerComposition=l,p}}(),To={},Iu=function(p,v){To[p]=v};function Xi(l){return To[l]}function Ji(l){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ji=function(v){return typeof v}:Ji=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},Ji(l)}var yt=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=xt(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=fr(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Ou(),this.imagePreloader=new vc,this.audioController=Qe(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new De("drawnFrame",0,0,0)};Le([ku],yt),yt.prototype.setParams=function(l){(l.wrapper||l.container)&&(this.wrapper=l.wrapper||l.container);var p="svg";l.animType?p=l.animType:l.renderer&&(p=l.renderer);var v=Xi(p);this.renderer=new v(this,l.rendererSettings),this.imagePreloader.setCacheType(p,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=p,l.loop===""||l.loop===null||l.loop===void 0||l.loop===!0?this.loop=!0:l.loop===!1?this.loop=!1:this.loop=parseInt(l.loop,10),this.autoplay="autoplay"in l?l.autoplay:!0,this.name=l.name?l.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(l,"autoloadSegments")?l.autoloadSegments:!0,this.assetsPath=l.assetsPath,this.initialSegment=l.initialSegment,l.audioFactory&&this.audioController.setAudioFactory(l.audioFactory),l.animationData?this.setupAnimation(l.animationData):l.path&&(l.path.lastIndexOf("\\")!==-1?this.path=l.path.substr(0,l.path.lastIndexOf("\\")+1):this.path=l.path.substr(0,l.path.lastIndexOf("/")+1),this.fileName=l.path.substr(l.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),is.loadAnimation(l.path,this.configAnimation,this.onSetupError))},yt.prototype.onSetupError=function(){this.trigger("data_failed")},yt.prototype.setupAnimation=function(l){is.completeAnimation(l,this.configAnimation)},yt.prototype.setData=function(l,p){p&&Ji(p)!=="object"&&(p=JSON.parse(p));var v={wrapper:l,animationData:p},$=l.attributes;v.path=$.getNamedItem("data-animation-path")?$.getNamedItem("data-animation-path").value:$.getNamedItem("data-bm-path")?$.getNamedItem("data-bm-path").value:$.getNamedItem("bm-path")?$.getNamedItem("bm-path").value:"",v.animType=$.getNamedItem("data-anim-type")?$.getNamedItem("data-anim-type").value:$.getNamedItem("data-bm-type")?$.getNamedItem("data-bm-type").value:$.getNamedItem("bm-type")?$.getNamedItem("bm-type").value:$.getNamedItem("data-bm-renderer")?$.getNamedItem("data-bm-renderer").value:$.getNamedItem("bm-renderer")?$.getNamedItem("bm-renderer").value:"canvas";var T=$.getNamedItem("data-anim-loop")?$.getNamedItem("data-anim-loop").value:$.getNamedItem("data-bm-loop")?$.getNamedItem("data-bm-loop").value:$.getNamedItem("bm-loop")?$.getNamedItem("bm-loop").value:"";T==="false"?v.loop=!1:T==="true"?v.loop=!0:T!==""&&(v.loop=parseInt(T,10));var P=$.getNamedItem("data-anim-autoplay")?$.getNamedItem("data-anim-autoplay").value:$.getNamedItem("data-bm-autoplay")?$.getNamedItem("data-bm-autoplay").value:$.getNamedItem("bm-autoplay")?$.getNamedItem("bm-autoplay").value:!0;v.autoplay=P!=="false",v.name=$.getNamedItem("data-name")?$.getNamedItem("data-name").value:$.getNamedItem("data-bm-name")?$.getNamedItem("data-bm-name").value:$.getNamedItem("bm-name")?$.getNamedItem("bm-name").value:"";var q=$.getNamedItem("data-anim-prerender")?$.getNamedItem("data-anim-prerender").value:$.getNamedItem("data-bm-prerender")?$.getNamedItem("data-bm-prerender").value:$.getNamedItem("bm-prerender")?$.getNamedItem("bm-prerender").value:"";q==="false"&&(v.prerender=!1),this.setParams(v)},yt.prototype.includeLayers=function(l){l.op>this.animationData.op&&(this.animationData.op=l.op,this.totalFrames=Math.floor(l.op-this.animationData.ip));var p=this.animationData.layers,v,$=p.length,T=l.layers,P,q=T.length;for(P=0;P<q;P+=1)for(v=0;v<$;){if(p[v].id===T[P].id){p[v]=T[P];break}v+=1}if((l.chars||l.fonts)&&(this.renderer.globalData.fontManager.addChars(l.chars),this.renderer.globalData.fontManager.addFonts(l.fonts,this.renderer.globalData.defs)),l.assets)for($=l.assets.length,v=0;v<$;v+=1)this.animationData.assets.push(l.assets[v]);this.animationData.__complete=!1,is.completeAnimation(this.animationData,this.onSegmentComplete)},yt.prototype.onSegmentComplete=function(l){this.animationData=l;var p=si();p&&p.initExpressions(this),this.loadNextSegment()},yt.prototype.loadNextSegment=function(){var l=this.animationData.segments;if(!l||l.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var p=l.shift();this.timeCompleted=p.time*this.frameRate;var v=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,is.loadData(v,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},yt.prototype.loadSegments=function(){var l=this.animationData.segments;l||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},yt.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},yt.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},yt.prototype.configAnimation=function(l){if(this.renderer)try{this.animationData=l,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(l),l.assets||(l.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(l.assets),this.markers=yc(l.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(p){this.triggerConfigError(p)}},yt.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},yt.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var l=si();l&&l.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},yt.prototype.resize=function(l,p){var v=typeof l=="number"?l:void 0,$=typeof p=="number"?p:void 0;this.renderer.updateContainerSize(v,$)},yt.prototype.setSubframe=function(l){this.isSubframeEnabled=!!l},yt.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},yt.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(l){this.triggerRenderFrameError(l)}},yt.prototype.play=function(l){l&&this.name!==l||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},yt.prototype.pause=function(l){l&&this.name!==l||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},yt.prototype.togglePause=function(l){l&&this.name!==l||(this.isPaused===!0?this.play():this.pause())},yt.prototype.stop=function(l){l&&this.name!==l||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},yt.prototype.getMarkerData=function(l){for(var p,v=0;v<this.markers.length;v+=1)if(p=this.markers[v],p.payload&&p.payload.name===l)return p;return null},yt.prototype.goToAndStop=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&this.goToAndStop(T.time,!0)}else p?this.setCurrentRawFrameValue(l):this.setCurrentRawFrameValue(l*this.frameModifier);this.pause()}},yt.prototype.goToAndPlay=function(l,p,v){if(!(v&&this.name!==v)){var $=Number(l);if(isNaN($)){var T=this.getMarkerData(l);T&&(T.duration?this.playSegments([T.time,T.time+T.duration],!0):this.goToAndStop(T.time,!0))}else this.goToAndStop($,p,v);this.play()}},yt.prototype.advanceTime=function(l){if(!(this.isPaused===!0||this.isLoaded===!1)){var p=this.currentRawFrame+l*this.frameModifier,v=!1;p>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(p>this.totalFrames?p%this.totalFrames:0)||(v=!0,p=this.totalFrames-1):p>=this.totalFrames?(this.playCount+=1,this.checkSegments(p%this.totalFrames)||(this.setCurrentRawFrameValue(p%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(p):p<0?this.checkSegments(p%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+p%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(v=!0,p=0)):this.setCurrentRawFrameValue(p),v&&(this.setCurrentRawFrameValue(p),this.pause(),this.trigger("complete"))}},yt.prototype.adjustSegment=function(l,p){this.playCount=0,l[1]<l[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=l[0]-l[1],this.timeCompleted=this.totalFrames,this.firstFrame=l[1],this.setCurrentRawFrameValue(this.totalFrames-.001-p)):l[1]>l[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=l[1]-l[0],this.timeCompleted=this.totalFrames,this.firstFrame=l[0],this.setCurrentRawFrameValue(.001+p)),this.trigger("segmentStart")},yt.prototype.setSegment=function(l,p){var v=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<l?v=l:this.currentRawFrame+this.firstFrame>p&&(v=p-l)),this.firstFrame=l,this.totalFrames=p-l,this.timeCompleted=this.totalFrames,v!==-1&&this.goToAndStop(v,!0)},yt.prototype.playSegments=function(l,p){if(p&&(this.segments.length=0),Ji(l[0])==="object"){var v,$=l.length;for(v=0;v<$;v+=1)this.segments.push(l[v])}else this.segments.push(l);this.segments.length&&p&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},yt.prototype.resetSegments=function(l){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),l&&this.checkSegments(0)},yt.prototype.checkSegments=function(l){return this.segments.length?(this.adjustSegment(this.segments.shift(),l),!0):!1},yt.prototype.destroy=function(l){l&&this.name!==l||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.renderer=null,this.imagePreloader=null,this.projectInterface=null)},yt.prototype.setCurrentRawFrameValue=function(l){this.currentRawFrame=l,this.gotoFrame()},yt.prototype.setSpeed=function(l){this.playSpeed=l,this.updaFrameModifier()},yt.prototype.setDirection=function(l){this.playDirection=l<0?-1:1,this.updaFrameModifier()},yt.prototype.setLoop=function(l){this.loop=l},yt.prototype.setVolume=function(l,p){p&&this.name!==p||this.audioController.setVolume(l)},yt.prototype.getVolume=function(){return this.audioController.getVolume()},yt.prototype.mute=function(l){l&&this.name!==l||this.audioController.mute()},yt.prototype.unmute=function(l){l&&this.name!==l||this.audioController.unmute()},yt.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},yt.prototype.getPath=function(){return this.path},yt.prototype.getAssetsPath=function(l){var p="";if(l.e)p=l.p;else if(this.assetsPath){var v=l.p;v.indexOf("images/")!==-1&&(v=v.split("/")[1]),p=this.assetsPath+v}else p=this.path,p+=l.u?l.u:"",p+=l.p;return p},yt.prototype.getAssetData=function(l){for(var p=0,v=this.assets.length;p<v;){if(l===this.assets[p].id)return this.assets[p];p+=1}return null},yt.prototype.hide=function(){this.renderer.hide()},yt.prototype.show=function(){this.renderer.show()},yt.prototype.getDuration=function(l){return l?this.totalFrames:this.totalFrames/this.frameRate},yt.prototype.updateDocumentData=function(l,p,v){try{var $=this.renderer.getElementByPath(l);$.updateDocumentData(p,v)}catch{}},yt.prototype.trigger=function(l){if(this._cbs&&this._cbs[l])switch(l){case"enterFrame":this.triggerEvent(l,new De(l,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(l,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(l,new Xe(l,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(l,new Me(l,this.frameMult));break;case"segmentStart":this.triggerEvent(l,new tt(l,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(l,new Je(l,this));break;default:this.triggerEvent(l)}l==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new De(l,this.currentFrame,this.totalFrames,this.frameMult)),l==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new Xe(l,this.loop,this.playCount,this.frameMult)),l==="complete"&&this.onComplete&&this.onComplete.call(this,new Me(l,this.frameMult)),l==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new tt(l,this.firstFrame,this.totalFrames)),l==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new Je(l,this))},yt.prototype.triggerRenderFrameError=function(l){var p=new gt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)},yt.prototype.triggerConfigError=function(l){var p=new Rt(l,this.currentFrame);this.triggerEvent("error",p),this.onError&&this.onError.call(this,p)};var Cn=function(){var l={},p=[],v=0,$=0,T=0,P=!0,q=!1;function me(xe){for(var le=0,X=xe.target;le<$;)p[le].animation===X&&(p.splice(le,1),le-=1,$-=1,X.isPaused||Re()),le+=1}function J(xe,le){if(!xe)return null;for(var X=0;X<$;){if(p[X].elem===xe&&p[X].elem!==null)return p[X].animation;X+=1}var ve=new yt;return M(ve,xe),ve.setData(xe,le),ve}function $e(){var xe,le=p.length,X=[];for(xe=0;xe<le;xe+=1)X.push(p[xe].animation);return X}function Ce(){T+=1,nt()}function Re(){T-=1}function M(xe,le){xe.addEventListener("destroy",me),xe.addEventListener("_active",Ce),xe.addEventListener("_idle",Re),p.push({elem:le,animation:xe}),$+=1}function Q(xe){var le=new yt;return M(le,null),le.setParams(xe),le}function G(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setSpeed(xe,le)}function he(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setDirection(xe,le)}function de(xe){var le;for(le=0;le<$;le+=1)p[le].animation.play(xe)}function W(xe){var le=xe-v,X;for(X=0;X<$;X+=1)p[X].animation.advanceTime(le);v=xe,T&&!q?window.requestAnimationFrame(W):P=!0}function Y(xe){v=xe,window.requestAnimationFrame(W)}function L(xe){var le;for(le=0;le<$;le+=1)p[le].animation.pause(xe)}function B(xe,le,X){var ve;for(ve=0;ve<$;ve+=1)p[ve].animation.goToAndStop(xe,le,X)}function H(xe){var le;for(le=0;le<$;le+=1)p[le].animation.stop(xe)}function ne(xe){var le;for(le=0;le<$;le+=1)p[le].animation.togglePause(xe)}function se(xe){var le;for(le=$-1;le>=0;le-=1)p[le].animation.destroy(xe)}function pe(xe,le,X){var ve=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),je,ke=ve.length;for(je=0;je<ke;je+=1)X&&ve[je].setAttribute("data-bm-type",X),J(ve[je],xe);if(le&&ke===0){X||(X="svg");var lt=document.getElementsByTagName("body")[0];lt.innerText="";var At=_e("div");At.style.width="100%",At.style.height="100%",At.setAttribute("data-bm-type",X),lt.appendChild(At),J(At,xe)}}function Oe(){var xe;for(xe=0;xe<$;xe+=1)p[xe].animation.resize()}function nt(){!q&&T&&P&&(window.requestAnimationFrame(Y),P=!1)}function et(){q=!0}function Be(){q=!1,nt()}function ot(xe,le){var X;for(X=0;X<$;X+=1)p[X].animation.setVolume(xe,le)}function ct(xe){var le;for(le=0;le<$;le+=1)p[le].animation.mute(xe)}function Ve(xe){var le;for(le=0;le<$;le+=1)p[le].animation.unmute(xe)}return l.registerAnimation=J,l.loadAnimation=Q,l.setSpeed=G,l.setDirection=he,l.play=de,l.pause=L,l.stop=H,l.togglePause=ne,l.searchAnimations=pe,l.resize=Oe,l.goToAndStop=B,l.destroy=se,l.freeze=et,l.unfreeze=Be,l.setVolume=ot,l.mute=ct,l.unmute=Ve,l.getRegisteredAnimations=$e,l}(),as=function(){var l={};l.getBezierEasing=v;var p={};function v(Y,L,B,H,ne){var se=ne||("bez_"+Y+"_"+L+"_"+B+"_"+H).replace(/\./g,"p");if(p[se])return p[se];var pe=new W([Y,L,B,H]);return p[se]=pe,pe}var $=4,T=.001,P=1e-7,q=10,me=11,J=1/(me-1),$e=typeof Float32Array=="function";function Ce(Y,L){return 1-3*L+3*Y}function Re(Y,L){return 3*L-6*Y}function M(Y){return 3*Y}function Q(Y,L,B){return((Ce(L,B)*Y+Re(L,B))*Y+M(L))*Y}function G(Y,L,B){return 3*Ce(L,B)*Y*Y+2*Re(L,B)*Y+M(L)}function he(Y,L,B,H,ne){var se,pe,Oe=0;do pe=L+(B-L)/2,se=Q(pe,H,ne)-Y,se>0?B=pe:L=pe;while(Math.abs(se)>P&&++Oe<q);return pe}function de(Y,L,B,H){for(var ne=0;ne<$;++ne){var se=G(L,B,H);if(se===0)return L;var pe=Q(L,B,H)-Y;L-=pe/se}return L}function W(Y){this._p=Y,this._mSampleValues=$e?new Float32Array(me):new Array(me),this._precomputed=!1,this.get=this.get.bind(this)}return W.prototype={get:function(L){var B=this._p[0],H=this._p[1],ne=this._p[2],se=this._p[3];return this._precomputed||this._precompute(),B===H&&ne===se?L:L===0?0:L===1?1:Q(this._getTForX(L),H,se)},_precompute:function(){var L=this._p[0],B=this._p[1],H=this._p[2],ne=this._p[3];this._precomputed=!0,(L!==B||H!==ne)&&this._calcSampleValues()},_calcSampleValues:function(){for(var L=this._p[0],B=this._p[2],H=0;H<me;++H)this._mSampleValues[H]=Q(H*J,L,B)},_getTForX:function(L){for(var B=this._p[0],H=this._p[2],ne=this._mSampleValues,se=0,pe=1,Oe=me-1;pe!==Oe&&ne[pe]<=L;++pe)se+=J;--pe;var nt=(L-ne[pe])/(ne[pe+1]-ne[pe]),et=se+nt*J,Be=G(et,B,H);return Be>=T?de(L,et,B,H):Be===0?et:he(L,se,se+J,B,H)}},l}(),Lu=function(){function l(p){return p.concat(Ge(p.length))}return{double:l}}(),br=function(){return function(l,p,v){var $=0,T=l,P=Ge(T),q={newElement:me,release:J};function me(){var $e;return $?($-=1,$e=P[$]):$e=p(),$e}function J($e){$===T&&(P=Lu.double(P),T*=2),v&&v($e),P[$]=$e,$+=1}return q}}(),Vu=function(){function l(){return{addedLength:0,percents:Ue("float32",Ea()),lengths:Ue("float32",Ea())}}return br(8,l)}(),Bu=function(){function l(){return{lengths:[],totalLength:0}}function p(v){var $,T=v.lengths.length;for($=0;$<T;$+=1)Vu.release(v.lengths[$]);v.lengths.length=0}return br(8,l,p)}();function bc(){var l=Math;function p(M,Q,G,he,de,W){var Y=M*he+Q*de+G*W-de*he-W*M-G*Q;return Y>-.001&&Y<.001}function v(M,Q,G,he,de,W,Y,L,B){if(G===0&&W===0&&B===0)return p(M,Q,he,de,Y,L);var H=l.sqrt(l.pow(he-M,2)+l.pow(de-Q,2)+l.pow(W-G,2)),ne=l.sqrt(l.pow(Y-M,2)+l.pow(L-Q,2)+l.pow(B-G,2)),se=l.sqrt(l.pow(Y-he,2)+l.pow(L-de,2)+l.pow(B-W,2)),pe;return H>ne?H>se?pe=H-ne-se:pe=se-ne-H:se>ne?pe=se-ne-H:pe=ne-H-se,pe>-1e-4&&pe<1e-4}var $=function(){return function(M,Q,G,he){var de=Ea(),W,Y,L,B,H,ne=0,se,pe=[],Oe=[],nt=Vu.newElement();for(L=G.length,W=0;W<de;W+=1){for(H=W/(de-1),se=0,Y=0;Y<L;Y+=1)B=ht(1-H,3)*M[Y]+3*ht(1-H,2)*H*G[Y]+3*(1-H)*ht(H,2)*he[Y]+ht(H,3)*Q[Y],pe[Y]=B,Oe[Y]!==null&&(se+=ht(pe[Y]-Oe[Y],2)),Oe[Y]=pe[Y];se&&(se=Ht(se),ne+=se),nt.percents[W]=H,nt.lengths[W]=ne}return nt.addedLength=ne,nt}}();function T(M){var Q=Bu.newElement(),G=M.c,he=M.v,de=M.o,W=M.i,Y,L=M._length,B=Q.lengths,H=0;for(Y=0;Y<L-1;Y+=1)B[Y]=$(he[Y],he[Y+1],de[Y],W[Y+1]),H+=B[Y].addedLength;return G&&L&&(B[Y]=$(he[Y],he[0],de[Y],W[0]),H+=B[Y].addedLength),Q.totalLength=H,Q}function P(M){this.segmentLength=0,this.points=new Array(M)}function q(M,Q){this.partialLength=M,this.point=Q}var me=function(){var M={};return function(Q,G,he,de){var W=(Q[0]+"_"+Q[1]+"_"+G[0]+"_"+G[1]+"_"+he[0]+"_"+he[1]+"_"+de[0]+"_"+de[1]).replace(/\./g,"p");if(!M[W]){var Y=Ea(),L,B,H,ne,se,pe=0,Oe,nt,et=null;Q.length===2&&(Q[0]!==G[0]||Q[1]!==G[1])&&p(Q[0],Q[1],G[0],G[1],Q[0]+he[0],Q[1]+he[1])&&p(Q[0],Q[1],G[0],G[1],G[0]+de[0],G[1]+de[1])&&(Y=2);var Be=new P(Y);for(H=he.length,L=0;L<Y;L+=1){for(nt=Ge(H),se=L/(Y-1),Oe=0,B=0;B<H;B+=1)ne=ht(1-se,3)*Q[B]+3*ht(1-se,2)*se*(Q[B]+he[B])+3*(1-se)*ht(se,2)*(G[B]+de[B])+ht(se,3)*G[B],nt[B]=ne,et!==null&&(Oe+=ht(nt[B]-et[B],2));Oe=Ht(Oe),pe+=Oe,Be.points[L]=new q(Oe,nt),et=nt}Be.segmentLength=pe,M[W]=Be}return M[W]}}();function J(M,Q){var G=Q.percents,he=Q.lengths,de=G.length,W=$t((de-1)*M),Y=M*Q.addedLength,L=0;if(W===de-1||W===0||Y===he[W])return G[W];for(var B=he[W]>Y?-1:1,H=!0;H;)if(he[W]<=Y&&he[W+1]>Y?(L=(Y-he[W])/(he[W+1]-he[W]),H=!1):W+=B,W<0||W>=de-1){if(W===de-1)return G[W];H=!1}return G[W]+(G[W+1]-G[W])*L}function $e(M,Q,G,he,de,W){var Y=J(de,W),L=1-Y,B=l.round((L*L*L*M[0]+(Y*L*L+L*Y*L+L*L*Y)*G[0]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[0]+Y*Y*Y*Q[0])*1e3)/1e3,H=l.round((L*L*L*M[1]+(Y*L*L+L*Y*L+L*L*Y)*G[1]+(Y*Y*L+L*Y*Y+Y*L*Y)*he[1]+Y*Y*Y*Q[1])*1e3)/1e3;return[B,H]}var Ce=Ue("float32",8);function Re(M,Q,G,he,de,W,Y){de<0?de=0:de>1&&(de=1);var L=J(de,Y);W=W>1?1:W;var B=J(W,Y),H,ne=M.length,se=1-L,pe=1-B,Oe=se*se*se,nt=L*se*se*3,et=L*L*se*3,Be=L*L*L,ot=se*se*pe,ct=L*se*pe+se*L*pe+se*se*B,Ve=L*L*pe+se*L*B+L*se*B,xe=L*L*B,le=se*pe*pe,X=L*pe*pe+se*B*pe+se*pe*B,ve=L*B*pe+se*B*B+L*pe*B,je=L*B*B,ke=pe*pe*pe,lt=B*pe*pe+pe*B*pe+pe*pe*B,At=B*B*pe+pe*B*B+B*pe*B,Ct=B*B*B;for(H=0;H<ne;H+=1)Ce[H*4]=l.round((Oe*M[H]+nt*G[H]+et*he[H]+Be*Q[H])*1e3)/1e3,Ce[H*4+1]=l.round((ot*M[H]+ct*G[H]+Ve*he[H]+xe*Q[H])*1e3)/1e3,Ce[H*4+2]=l.round((le*M[H]+X*G[H]+ve*he[H]+je*Q[H])*1e3)/1e3,Ce[H*4+3]=l.round((ke*M[H]+lt*G[H]+At*he[H]+Ct*Q[H])*1e3)/1e3;return Ce}return{getSegmentsLength:T,getNewSegment:Re,getPointInSegment:$e,buildBezierData:me,pointOnLine2D:p,pointOnLine3D:v}}var Hr=bc(),at=function(){var l=te,p=Math.abs;function v(de,W){var Y=this.offsetTime,L;this.propType==="multidimensional"&&(L=Ue("float32",this.pv.length));for(var B=W.lastIndex,H=B,ne=this.keyframes.length-1,se=!0,pe,Oe,nt;se;){if(pe=this.keyframes[H],Oe=this.keyframes[H+1],H===ne-1&&de>=Oe.t-Y){pe.h&&(pe=Oe),B=0;break}if(Oe.t-Y>de){B=H;break}H<ne-1?H+=1:(B=0,se=!1)}nt=this.keyframesMetadata[H]||{};var et,Be,ot,ct,Ve,xe,le=Oe.t-Y,X=pe.t-Y,ve;if(pe.to){nt.bezierData||(nt.bezierData=Hr.buildBezierData(pe.s,Oe.s||pe.e,pe.to,pe.ti));var je=nt.bezierData;if(de>=le||de<X){var ke=de>=le?je.points.length-1:0;for(Be=je.points[ke].point.length,et=0;et<Be;et+=1)L[et]=je.points[ke].point[et]}else{nt.__fnct?xe=nt.__fnct:(xe=as.getBezierEasing(pe.o.x,pe.o.y,pe.i.x,pe.i.y,pe.n).get,nt.__fnct=xe),ot=xe((de-X)/(le-X));var lt=je.segmentLength*ot,At,Ct=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastAddedLength:0;for(Ve=W.lastFrame<de&&W._lastKeyframeIndex===H?W._lastPoint:0,se=!0,ct=je.points.length;se;){if(Ct+=je.points[Ve].partialLength,lt===0||ot===0||Ve===je.points.length-1){for(Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et];break}else if(lt>=Ct&&lt<Ct+je.points[Ve+1].partialLength){for(At=(lt-Ct)/je.points[Ve+1].partialLength,Be=je.points[Ve].point.length,et=0;et<Be;et+=1)L[et]=je.points[Ve].point[et]+(je.points[Ve+1].point[et]-je.points[Ve].point[et])*At;break}Ve<ct-1?Ve+=1:se=!1}W._lastPoint=Ve,W._lastAddedLength=Ct-je.points[Ve].partialLength,W._lastKeyframeIndex=H}}else{var yn,zt,ur,Zn,Ln;if(ne=pe.s.length,ve=Oe.s||pe.e,this.sh&&pe.h!==1)if(de>=le)L[0]=ve[0],L[1]=ve[1],L[2]=ve[2];else if(de<=X)L[0]=pe.s[0],L[1]=pe.s[1],L[2]=pe.s[2];else{var Nn=P(pe.s),jn=P(ve),pr=(de-X)/(le-X);T(L,$(Nn,jn,pr))}else for(H=0;H<ne;H+=1)pe.h!==1&&(de>=le?ot=1:de<X?ot=0:(pe.o.x.constructor===Array?(nt.__fnct||(nt.__fnct=[]),nt.__fnct[H]?xe=nt.__fnct[H]:(yn=pe.o.x[H]===void 0?pe.o.x[0]:pe.o.x[H],zt=pe.o.y[H]===void 0?pe.o.y[0]:pe.o.y[H],ur=pe.i.x[H]===void 0?pe.i.x[0]:pe.i.x[H],Zn=pe.i.y[H]===void 0?pe.i.y[0]:pe.i.y[H],xe=as.getBezierEasing(yn,zt,ur,Zn).get,nt.__fnct[H]=xe)):nt.__fnct?xe=nt.__fnct:(yn=pe.o.x,zt=pe.o.y,ur=pe.i.x,Zn=pe.i.y,xe=as.getBezierEasing(yn,zt,ur,Zn).get,pe.keyframeMetadata=xe),ot=xe((de-X)/(le-X)))),ve=Oe.s||pe.e,Ln=pe.h===1?pe.s[H]:pe.s[H]+(ve[H]-pe.s[H])*ot,this.propType==="multidimensional"?L[H]=Ln:L=Ln}return W.lastIndex=B,L}function $(de,W,Y){var L=[],B=de[0],H=de[1],ne=de[2],se=de[3],pe=W[0],Oe=W[1],nt=W[2],et=W[3],Be,ot,ct,Ve,xe;return ot=B*pe+H*Oe+ne*nt+se*et,ot<0&&(ot=-ot,pe=-pe,Oe=-Oe,nt=-nt,et=-et),1-ot>1e-6?(Be=Math.acos(ot),ct=Math.sin(Be),Ve=Math.sin((1-Y)*Be)/ct,xe=Math.sin(Y*Be)/ct):(Ve=1-Y,xe=Y),L[0]=Ve*B+xe*pe,L[1]=Ve*H+xe*Oe,L[2]=Ve*ne+xe*nt,L[3]=Ve*se+xe*et,L}function T(de,W){var Y=W[0],L=W[1],B=W[2],H=W[3],ne=Math.atan2(2*L*H-2*Y*B,1-2*L*L-2*B*B),se=Math.asin(2*Y*L+2*B*H),pe=Math.atan2(2*Y*H-2*L*B,1-2*Y*Y-2*B*B);de[0]=ne/Qt,de[1]=se/Qt,de[2]=pe/Qt}function P(de){var W=de[0]*Qt,Y=de[1]*Qt,L=de[2]*Qt,B=Math.cos(W/2),H=Math.cos(Y/2),ne=Math.cos(L/2),se=Math.sin(W/2),pe=Math.sin(Y/2),Oe=Math.sin(L/2),nt=B*H*ne-se*pe*Oe,et=se*pe*ne+B*H*Oe,Be=se*H*ne+B*pe*Oe,ot=B*pe*ne-se*H*Oe;return[et,Be,ot,nt]}function q(){var de=this.comp.renderedFrame-this.offsetTime,W=this.keyframes[0].t-this.offsetTime,Y=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(de===this._caching.lastFrame||this._caching.lastFrame!==l&&(this._caching.lastFrame>=Y&&de>=Y||this._caching.lastFrame<W&&de<W))){this._caching.lastFrame>=de&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var L=this.interpolateValue(de,this._caching);this.pv=L}return this._caching.lastFrame=de,this.pv}function me(de){var W;if(this.propType==="unidimensional")W=de*this.mult,p(this.v-W)>1e-5&&(this.v=W,this._mdf=!0);else for(var Y=0,L=this.v.length;Y<L;)W=de[Y]*this.mult,p(this.v[Y]-W)>1e-5&&(this.v[Y]=W,this._mdf=!0),Y+=1}function J(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var de,W=this.effectsSequence.length,Y=this.kf?this.pv:this.data.k;for(de=0;de<W;de+=1)Y=this.effectsSequence[de](Y);this.setVValue(Y),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function $e(de){this.effectsSequence.push(de),this.container.addDynamicProperty(this)}function Ce(de,W,Y,L){this.propType="unidimensional",this.mult=Y||1,this.data=W,this.v=Y?W.k*Y:W.k,this.pv=W.k,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.addEffect=$e}function Re(de,W,Y,L){this.propType="multidimensional",this.mult=Y||1,this.data=W,this._mdf=!1,this.elem=de,this.container=L,this.comp=de.comp,this.k=!1,this.kf=!1,this.frameId=-1;var B,H=W.k.length;for(this.v=Ue("float32",H),this.pv=Ue("float32",H),this.vel=Ue("float32",H),B=0;B<H;B+=1)this.v[B]=W.k[B]*this.mult,this.pv[B]=W.k[B];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=J,this.setVValue=me,this.addEffect=$e}function M(de,W,Y,L){this.propType="unidimensional",this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.frameId=-1,this._caching={lastFrame:l,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=W,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.v=l,this.pv=l,this._isFirstFrame=!0,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.effectsSequence=[q.bind(this)],this.addEffect=$e}function Q(de,W,Y,L){this.propType="multidimensional";var B,H=W.k.length,ne,se,pe,Oe;for(B=0;B<H-1;B+=1)W.k[B].to&&W.k[B].s&&W.k[B+1]&&W.k[B+1].s&&(ne=W.k[B].s,se=W.k[B+1].s,pe=W.k[B].to,Oe=W.k[B].ti,(ne.length===2&&!(ne[0]===se[0]&&ne[1]===se[1])&&Hr.pointOnLine2D(ne[0],ne[1],se[0],se[1],ne[0]+pe[0],ne[1]+pe[1])&&Hr.pointOnLine2D(ne[0],ne[1],se[0],se[1],se[0]+Oe[0],se[1]+Oe[1])||ne.length===3&&!(ne[0]===se[0]&&ne[1]===se[1]&&ne[2]===se[2])&&Hr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],ne[0]+pe[0],ne[1]+pe[1],ne[2]+pe[2])&&Hr.pointOnLine3D(ne[0],ne[1],ne[2],se[0],se[1],se[2],se[0]+Oe[0],se[1]+Oe[1],se[2]+Oe[2]))&&(W.k[B].to=null,W.k[B].ti=null),ne[0]===se[0]&&ne[1]===se[1]&&pe[0]===0&&pe[1]===0&&Oe[0]===0&&Oe[1]===0&&(ne.length===2||ne[2]===se[2]&&pe[2]===0&&Oe[2]===0)&&(W.k[B].to=null,W.k[B].ti=null));this.effectsSequence=[q.bind(this)],this.data=W,this.keyframes=W.k,this.keyframesMetadata=[],this.offsetTime=de.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=Y||1,this.elem=de,this.container=L,this.comp=de.comp,this.getValue=J,this.setVValue=me,this.interpolateValue=v,this.frameId=-1;var nt=W.k[0].s.length;for(this.v=Ue("float32",nt),this.pv=Ue("float32",nt),B=0;B<nt;B+=1)this.v[B]=l,this.pv[B]=l;this._caching={lastFrame:l,lastIndex:0,value:Ue("float32",nt)},this.addEffect=$e}function G(de,W,Y,L,B){var H;if(!W.k.length)H=new Ce(de,W,L,B);else if(typeof W.k[0]=="number")H=new Re(de,W,L,B);else switch(Y){case 0:H=new M(de,W,L,B);break;case 1:H=new Q(de,W,L,B);break}return H.effectsSequence.length&&B.addDynamicProperty(H),H}var he={getProp:G};return he}();function cn(){}cn.prototype={addDynamicProperty:function(p){this.dynamicProperties.indexOf(p)===-1&&(this.dynamicProperties.push(p),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var p,v=this.dynamicProperties.length;for(p=0;p<v;p+=1)this.dynamicProperties[p].getValue(),this.dynamicProperties[p]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(p){this.container=p,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Qi=function(){function l(){return Ue("float32",2)}return br(8,l)}();function ui(){this.c=!1,this._length=0,this._maxLength=8,this.v=Ge(this._maxLength),this.o=Ge(this._maxLength),this.i=Ge(this._maxLength)}ui.prototype.setPathData=function(l,p){this.c=l,this.setLength(p);for(var v=0;v<p;)this.v[v]=Qi.newElement(),this.o[v]=Qi.newElement(),this.i[v]=Qi.newElement(),v+=1},ui.prototype.setLength=function(l){for(;this._maxLength<l;)this.doubleArrayLength();this._length=l},ui.prototype.doubleArrayLength=function(){this.v=this.v.concat(Ge(this._maxLength)),this.i=this.i.concat(Ge(this._maxLength)),this.o=this.o.concat(Ge(this._maxLength)),this._maxLength*=2},ui.prototype.setXYAt=function(l,p,v,$,T){var P;switch(this._length=Math.max(this._length,$+1),this._length>=this._maxLength&&this.doubleArrayLength(),v){case"v":P=this.v;break;case"i":P=this.i;break;case"o":P=this.o;break;default:P=[];break}(!P[$]||P[$]&&!T)&&(P[$]=Qi.newElement()),P[$][0]=l,P[$][1]=p},ui.prototype.setTripleAt=function(l,p,v,$,T,P,q,me){this.setXYAt(l,p,"v",q,me),this.setXYAt(v,$,"o",q,me),this.setXYAt(T,P,"i",q,me)},ui.prototype.reverse=function(){var l=new ui;l.setPathData(this.c,this._length);var p=this.v,v=this.o,$=this.i,T=0;this.c&&(l.setTripleAt(p[0][0],p[0][1],$[0][0],$[0][1],v[0][0],v[0][1],0,!1),T=1);var P=this._length-1,q=this._length,me;for(me=T;me<q;me+=1)l.setTripleAt(p[P][0],p[P][1],$[P][0],$[P][1],v[P][0],v[P][1],me,!1),P-=1;return l},ui.prototype.length=function(){return this._length};var Yn=function(){function l(){return new ui}function p(T){var P=T._length,q;for(q=0;q<P;q+=1)Qi.release(T.v[q]),Qi.release(T.i[q]),Qi.release(T.o[q]),T.v[q]=null,T.i[q]=null,T.o[q]=null;T._length=0,T.c=!1}function v(T){var P=$.newElement(),q,me=T._length===void 0?T.v.length:T._length;for(P.setLength(me),P.c=T.c,q=0;q<me;q+=1)P.setTripleAt(T.v[q][0],T.v[q][1],T.o[q][0],T.o[q][1],T.i[q][0],T.i[q][1],q);return P}var $=br(4,l,p);return $.clone=v,$}();function Po(){this._length=0,this._maxLength=4,this.shapes=Ge(this._maxLength)}Po.prototype.addShape=function(l){this._length===this._maxLength&&(this.shapes=this.shapes.concat(Ge(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=l,this._length+=1},Po.prototype.releaseShapes=function(){var l;for(l=0;l<this._length;l+=1)Yn.release(this.shapes[l]);this._length=0};var Sa=function(){var l={newShapeCollection:T,release:P},p=0,v=4,$=Ge(v);function T(){var q;return p?(p-=1,q=$[p]):q=new Po,q}function P(q){var me,J=q._length;for(me=0;me<J;me+=1)Yn.release(q.shapes[me]);q._length=0,p===v&&($=Lu.double($),v*=2),$[p]=q,p+=1}return l}(),li=function(){var l=-999999;function p(W,Y,L){var B=L.lastIndex,H,ne,se,pe,Oe,nt,et,Be,ot,ct=this.keyframes;if(W<ct[0].t-this.offsetTime)H=ct[0].s[0],se=!0,B=0;else if(W>=ct[ct.length-1].t-this.offsetTime)H=ct[ct.length-1].s?ct[ct.length-1].s[0]:ct[ct.length-2].e[0],se=!0;else{for(var Ve=B,xe=ct.length-1,le=!0,X,ve,je;le&&(X=ct[Ve],ve=ct[Ve+1],!(ve.t-this.offsetTime>W));)Ve<xe-1?Ve+=1:le=!1;if(je=this.keyframesMetadata[Ve]||{},se=X.h===1,B=Ve,!se){if(W>=ve.t-this.offsetTime)Be=1;else if(W<X.t-this.offsetTime)Be=0;else{var ke;je.__fnct?ke=je.__fnct:(ke=as.getBezierEasing(X.o.x,X.o.y,X.i.x,X.i.y).get,je.__fnct=ke),Be=ke((W-(X.t-this.offsetTime))/(ve.t-this.offsetTime-(X.t-this.offsetTime)))}ne=ve.s?ve.s[0]:X.e[0]}H=X.s[0]}for(nt=Y._length,et=H.i[0].length,L.lastIndex=B,pe=0;pe<nt;pe+=1)for(Oe=0;Oe<et;Oe+=1)ot=se?H.i[pe][Oe]:H.i[pe][Oe]+(ne.i[pe][Oe]-H.i[pe][Oe])*Be,Y.i[pe][Oe]=ot,ot=se?H.o[pe][Oe]:H.o[pe][Oe]+(ne.o[pe][Oe]-H.o[pe][Oe])*Be,Y.o[pe][Oe]=ot,ot=se?H.v[pe][Oe]:H.v[pe][Oe]+(ne.v[pe][Oe]-H.v[pe][Oe])*Be,Y.v[pe][Oe]=ot}function v(){var W=this.comp.renderedFrame-this.offsetTime,Y=this.keyframes[0].t-this.offsetTime,L=this.keyframes[this.keyframes.length-1].t-this.offsetTime,B=this._caching.lastFrame;return B!==l&&(B<Y&&W<Y||B>L&&W>L)||(this._caching.lastIndex=B<W?this._caching.lastIndex:0,this.interpolateShape(W,this.pv,this._caching)),this._caching.lastFrame=W,this.pv}function $(){this.paths=this.localShapeCollection}function T(W,Y){if(W._length!==Y._length||W.c!==Y.c)return!1;var L,B=W._length;for(L=0;L<B;L+=1)if(W.v[L][0]!==Y.v[L][0]||W.v[L][1]!==Y.v[L][1]||W.o[L][0]!==Y.o[L][0]||W.o[L][1]!==Y.o[L][1]||W.i[L][0]!==Y.i[L][0]||W.i[L][1]!==Y.i[L][1])return!1;return!0}function P(W){T(this.v,W)||(this.v=Yn.clone(W),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function q(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var W;this.kf?W=this.pv:this.data.ks?W=this.data.ks.k:W=this.data.pt.k;var Y,L=this.effectsSequence.length;for(Y=0;Y<L;Y+=1)W=this.effectsSequence[Y](W);this.setVValue(W),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function me(W,Y,L){this.propType="shape",this.comp=W.comp,this.container=W,this.elem=W,this.data=Y,this.k=!1,this.kf=!1,this._mdf=!1;var B=L===3?Y.pt.k:Y.ks.k;this.v=Yn.clone(B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=$,this.effectsSequence=[]}function J(W){this.effectsSequence.push(W),this.container.addDynamicProperty(this)}me.prototype.interpolateShape=p,me.prototype.getValue=q,me.prototype.setVValue=P,me.prototype.addEffect=J;function $e(W,Y,L){this.propType="shape",this.comp=W.comp,this.elem=W,this.container=W,this.offsetTime=W.data.st,this.keyframes=L===3?Y.pt.k:Y.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var B=this.keyframes[0].s[0].i.length;this.v=Yn.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,B),this.pv=Yn.clone(this.v),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=l,this.reset=$,this._caching={lastFrame:l,lastIndex:0},this.effectsSequence=[v.bind(this)]}$e.prototype.getValue=q,$e.prototype.interpolateShape=p,$e.prototype.setVValue=P,$e.prototype.addEffect=J;var Ce=function(){var W=be;function Y(L,B){this.v=Yn.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Sa.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=B.d,this.elem=L,this.comp=L.comp,this.frameId=-1,this.initDynamicPropertyContainer(L),this.p=at.getProp(L,B.p,1,0,this),this.s=at.getProp(L,B.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Y.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var B=this.p.v[0],H=this.p.v[1],ne=this.s.v[0]/2,se=this.s.v[1]/2,pe=this.d!==3,Oe=this.v;Oe.v[0][0]=B,Oe.v[0][1]=H-se,Oe.v[1][0]=pe?B+ne:B-ne,Oe.v[1][1]=H,Oe.v[2][0]=B,Oe.v[2][1]=H+se,Oe.v[3][0]=pe?B-ne:B+ne,Oe.v[3][1]=H,Oe.i[0][0]=pe?B-ne*W:B+ne*W,Oe.i[0][1]=H-se,Oe.i[1][0]=pe?B+ne:B-ne,Oe.i[1][1]=H-se*W,Oe.i[2][0]=pe?B+ne*W:B-ne*W,Oe.i[2][1]=H+se,Oe.i[3][0]=pe?B-ne:B+ne,Oe.i[3][1]=H+se*W,Oe.o[0][0]=pe?B+ne*W:B-ne*W,Oe.o[0][1]=H-se,Oe.o[1][0]=pe?B+ne:B-ne,Oe.o[1][1]=H+se*W,Oe.o[2][0]=pe?B-ne*W:B+ne*W,Oe.o[2][1]=H+se,Oe.o[3][0]=pe?B-ne:B+ne,Oe.o[3][1]=H-se*W}},Le([cn],Y),Y}(),Re=function(){function W(Y,L){this.v=Yn.newElement(),this.v.setPathData(!0,0),this.elem=Y,this.comp=Y.comp,this.data=L,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),L.sy===1?(this.ir=at.getProp(Y,L.ir,0,0,this),this.is=at.getProp(Y,L.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=at.getProp(Y,L.pt,0,0,this),this.p=at.getProp(Y,L.p,1,0,this),this.r=at.getProp(Y,L.r,0,Qt,this),this.or=at.getProp(Y,L.or,0,0,this),this.os=at.getProp(Y,L.os,0,.01,this),this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return W.prototype={reset:$,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var L=Math.floor(this.pt.v)*2,B=Math.PI*2/L,H=!0,ne=this.or.v,se=this.ir.v,pe=this.os.v,Oe=this.is.v,nt=2*Math.PI*ne/(L*2),et=2*Math.PI*se/(L*2),Be,ot,ct,Ve,xe=-Math.PI/2;xe+=this.r.v;var le=this.data.d===3?-1:1;for(this.v._length=0,Be=0;Be<L;Be+=1){ot=H?ne:se,ct=H?pe:Oe,Ve=H?nt:et;var X=ot*Math.cos(xe),ve=ot*Math.sin(xe),je=X===0&&ve===0?0:ve/Math.sqrt(X*X+ve*ve),ke=X===0&&ve===0?0:-X/Math.sqrt(X*X+ve*ve);X+=+this.p.v[0],ve+=+this.p.v[1],this.v.setTripleAt(X,ve,X-je*Ve*ct*le,ve-ke*Ve*ct*le,X+je*Ve*ct*le,ve+ke*Ve*ct*le,Be,!0),H=!H,xe+=B*le}},convertPolygonToPath:function(){var L=Math.floor(this.pt.v),B=Math.PI*2/L,H=this.or.v,ne=this.os.v,se=2*Math.PI*H/(L*4),pe,Oe=-Math.PI*.5,nt=this.data.d===3?-1:1;for(Oe+=this.r.v,this.v._length=0,pe=0;pe<L;pe+=1){var et=H*Math.cos(Oe),Be=H*Math.sin(Oe),ot=et===0&&Be===0?0:Be/Math.sqrt(et*et+Be*Be),ct=et===0&&Be===0?0:-et/Math.sqrt(et*et+Be*Be);et+=+this.p.v[0],Be+=+this.p.v[1],this.v.setTripleAt(et,Be,et-ot*se*ne*nt,Be-ct*se*ne*nt,et+ot*se*ne*nt,Be+ct*se*ne*nt,pe,!0),Oe+=B*nt}this.paths.length=0,this.paths[0]=this.v}},Le([cn],W),W}(),M=function(){function W(Y,L){this.v=Yn.newElement(),this.v.c=!0,this.localShapeCollection=Sa.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Y,this.comp=Y.comp,this.frameId=-1,this.d=L.d,this.initDynamicPropertyContainer(Y),this.p=at.getProp(Y,L.p,1,0,this),this.s=at.getProp(Y,L.s,1,0,this),this.r=at.getProp(Y,L.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return W.prototype={convertRectToPath:function(){var L=this.p.v[0],B=this.p.v[1],H=this.s.v[0]/2,ne=this.s.v[1]/2,se=_t(H,ne,this.r.v),pe=se*(1-be);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+se,L+H,B-ne+pe,0,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-pe,L+H,B+ne-se,1,!0),se!==0?(this.v.setTripleAt(L+H-se,B+ne,L+H-se,B+ne,L+H-pe,B+ne,2,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+pe,B+ne,L-H+se,B+ne,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-se,L-H,B+ne-pe,4,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+pe,L-H,B-ne+se,5,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+se,B-ne,L-H+pe,B-ne,6,!0),this.v.setTripleAt(L+H-se,B-ne,L+H-pe,B-ne,L+H-se,B-ne,7,!0)):(this.v.setTripleAt(L-H,B+ne,L-H+pe,B+ne,L-H,B+ne,2),this.v.setTripleAt(L-H,B-ne,L-H,B-ne+pe,L-H,B-ne,3))):(this.v.setTripleAt(L+H,B-ne+se,L+H,B-ne+pe,L+H,B-ne+se,0,!0),se!==0?(this.v.setTripleAt(L+H-se,B-ne,L+H-se,B-ne,L+H-pe,B-ne,1,!0),this.v.setTripleAt(L-H+se,B-ne,L-H+pe,B-ne,L-H+se,B-ne,2,!0),this.v.setTripleAt(L-H,B-ne+se,L-H,B-ne+se,L-H,B-ne+pe,3,!0),this.v.setTripleAt(L-H,B+ne-se,L-H,B+ne-pe,L-H,B+ne-se,4,!0),this.v.setTripleAt(L-H+se,B+ne,L-H+se,B+ne,L-H+pe,B+ne,5,!0),this.v.setTripleAt(L+H-se,B+ne,L+H-pe,B+ne,L+H-se,B+ne,6,!0),this.v.setTripleAt(L+H,B+ne-se,L+H,B+ne-se,L+H,B+ne-pe,7,!0)):(this.v.setTripleAt(L-H,B-ne,L-H+pe,B-ne,L-H,B-ne,1,!0),this.v.setTripleAt(L-H,B+ne,L-H,B+ne-pe,L-H,B+ne,2,!0),this.v.setTripleAt(L+H,B+ne,L+H-pe,B+ne,L+H,B+ne,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:$},Le([cn],W),W}();function Q(W,Y,L){var B;if(L===3||L===4){var H=L===3?Y.pt:Y.ks,ne=H.k;ne.length?B=new $e(W,Y,L):B=new me(W,Y,L)}else L===5?B=new M(W,Y):L===6?B=new Ce(W,Y):L===7&&(B=new Re(W,Y));return B.k&&W.addDynamicProperty(B),B}function G(){return me}function he(){return $e}var de={};return de.getShapeProp=Q,de.getConstructorFunction=G,de.getKeyframedConstructorFunction=he,de}();/*!
77
77
  Transformation Matrix v2.0
78
78
  (c) Epistemex 2014-2015
@@ -161,4 +161,4 @@ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Te=Ne(Qe,Ie,_e,Le,Ye
161
161
  transform: scale(1);
162
162
  }
163
163
  }
164
- `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:s,step:u,styles:f}=this.props,d=Ka(i.open),h={"aria-label":d,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=fe.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:u,...h})}else m=fe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:f.beacon,type:"button",...h},fe.createElement("span",{style:f.beaconInner}),fe.createElement("span",{style:f.beaconOuter}));return m}};function ble({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return fe.default.createElement("button",{style:a,type:"button",...t},fe.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("g",null,fe.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var $le=ble;function xle(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:u,tooltipProps:f}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:x}=u,A={};return A.primary=fe.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...a}),b&&!i&&(A.skip=fe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=fe.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),A.close=!m&&fe.createElement($le,{"data-test-id":"button-close",styles:w.buttonClose,...n}),fe.createElement("div",{key:"JoyrideTooltip","aria-label":Ka(x??d),className:"react-joyride__tooltip",style:w.tooltip,...f},fe.createElement("div",{style:w.tooltipContainer},x&&fe.createElement("h1",{"aria-label":Ka(x),style:w.tooltipTitle},x),fe.createElement("div",{style:w.tooltipContent},d)),!g&&fe.createElement("div",{style:w.tooltipFooter},fe.createElement("div",{style:w.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var wle=xle,Cle=class extends fe.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:s,close:u,last:f,next:d,nextLabelWithProgress:h,skip:m}=a.locale,g=Ka(s),b=Ka(u),w=Ka(f),x=Ka(d),A=Ka(m);let C=u,E=b;if(e){if(C=d,E=x,a.showProgress&&!n){const S=Ka(h,{step:t+1,steps:i});C=K1(h,t+1,i),E=S}n&&(C=f,E=w)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":E,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:E},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:u,...f}=a;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:f,setTooltipRef:r},m=u;d=fe.createElement(m,{...h})}else d=fe.createElement(wle,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return d}},Ele=class extends fe.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&s.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return fe.createElement(Cle,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Co({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:s,helpers:u,index:f,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:x}=_p(e,this.props),A=u.info(),C=i&&n!==rn.CLOSE&&(f>0||n===rn.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),R=w("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),_=a&&f===e.index;if(R&&(S||_)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:ji.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&w("index")&&n!==rn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=ks(g.target),z=!!F;z&&Zue(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:ji.STEP_BEFORE}):(console.warn(z?"Target not visible":"Target not mounted",g),r({...A,type:ji.TARGET_NOT_FOUND,step:g}),a||b.update({index:f+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:a2(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Co({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),w("lifecycle",Ft.BEACON)&&r({...A,step:g,type:ji.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:ji.TOOLTIP}),h&&this.tooltip&&(this.scope=new vle(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return a2(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,u=ks(s.target);return!JO(s)||!dt.domElement(u)?null:fe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},fe.createElement(m$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},fe.createElement(yle,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles})))}},eI=class extends fe.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:u}=this.props;dt.function(u)&&u(s)}),mt(this,"handleKeyboard",s=>{const{index:u,lifecycle:f}=this.state,{steps:d}=this.props,h=d[u];f===Ft.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:u}=this.props;dl(this.props,u[s]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=dle({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Co({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!fo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;u2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!fo())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:u,stepIndex:f,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:x,update:A}=this.store,{changed:C}=_p(e,this.props),{changed:E,changedFrom:S}=_p(t,this.state),R=dl(this.props,d[i]),_=!Nr(m,d),F=dt.number(f)&&C("stepIndex"),z=ks(R.target);if(_&&(u2(d,s)?b(d):console.warn("Steps are not valid",d)),C("run")&&(u?w(f):x()),F){let oe=dt.number(h)&&h<f?rn.NEXT:rn.PREV;n===rn.STOP&&(oe=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:oe,index:f,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!z&&(this.store.update({index:i+1}),this.callback({...this.state,type:ji.TARGET_NOT_FOUND,step:R}));const ie={...this.state,index:i,step:R};if(E("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&E("status",Nt.PAUSED)){const oe=dl(this.props,d[t.index]);this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER})}if(E("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=dl(this.props,d[t.index]);r||this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER}),this.callback({...ie,type:ji.TOUR_END,step:oe,index:t.index}),g()}else S("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...ie,type:ji.TOUR_START}):(E("status")||E("action",rn.RESET))&&this.callback({...ie,type:ji.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:s,scrollOffset:u=20,scrollToFirstStep:f=!1,steps:d}=this.props,h=dl(this.props,d[t]),m=ks(h.target),g=ile({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:f,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Ad(m,a),w=Zf(m,a);let x=Math.floor(Jue(m,u,a))||0;Co({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:E,placement:S}=A;!["bottom"].includes(S)&&!b&&(x=Math.floor(E.popper.top-u))}else if(n===Ft.TOOLTIP&&C){const{flipped:E,offsets:S,placement:R}=C;["top","right","left"].includes(R)&&!E&&!b?x=Math.floor(S.popper.top-u):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Que(x,{element:w,duration:s}).then(()=>{setTimeout(()=>{var E;(E=this.store.getPopper("tooltip"))==null||E.instance.update()},10)})}}render(){if(!fo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:u}=this.props,f=n===Nt.RUNNING,d={};if(f&&u[e]){const h=dl(this.props,u[e]);d.step=fe.createElement(Ele,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=fe.createElement(gle,{id:"react-joyride-portal"},fe.createElement(mle,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return fe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(eI,"defaultProps",ole);var Sle=eI;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=AM;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=gP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ad;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=$P;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Qn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=eW;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=SM;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Ar;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=Qq;exports.$293f70390ea03370$export$497855f14858aa34=Gz;exports.$32489daedd52963e$export$1315d136e6f7581=sW;exports.$337b884510726a0d$export$c6fdb837b070b4ff=_z;exports.$36a0ac60f04457c5$export$136073280381448e=Uq;exports.$3c0fc76039f1c516$export$60e84778edff6d26=pF;exports.$40df3f8667284809$export$d55e7ee900f34e93=cW;exports.$46a4342aab3d8076$export$87e0539f600c24e5=Nq;exports.$47b897dc8cdb026b$export$8d15029008292ae=rz;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=tz;exports.$6057a3d2a53a12fd$export$42df105a73306d51=nW;exports.$64244302c3013299$export$dd0bbc9b26defe37=cq;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=Eq;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=lW;exports.$93c38a5e28be6249$export$e50a61c1de9f574=PW;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=Bq;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=fW;exports.$a916eb452884faea$export$b7a616150fdb9f44=Cq;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=vW;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=CW;exports.$bb77f239b46e8c72$export$3274cf84b703fff=HP;exports.$bcca50147b47f54d$export$56b2c08e277f365=nz;exports.$c132121280ec012d$export$50eacbbf140a3141=Nz;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Kz;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Jz;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=jq;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=_W;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Pz;exports.$fae977aafc393c5c$export$588937bcd60ade55=BU;exports.$fae977aafc393c5c$export$6b862160d295c8e=VU;exports.ACTIONS=rn;exports.AdvancedImage=cZ;exports.CSVLink=jse;exports.Cloudinary=aX;exports.Controller=Mj;exports.EVENTS=ji;exports.FormProvider=Pj;exports.LazyMotion=jne;exports.Lottie=kne;exports.M=ha;exports.ReorderGroup=gne;exports.ReorderItem=$ne;exports.STATUS=Nt;exports._=Dj;exports._$1=_u;exports.autoUpdate=JN;exports.components_default=Sle;exports.dayjs=jH;exports.dayjs_minExports=wF;exports.domAnimation=wse;exports.ee=SF;exports.flexRender=zse;exports.flip=oj;exports.isEqual=VH;exports.isNil=qse;exports.isNumber=qH;exports.isUndefined=_ne;exports.lazyload=rZ;exports.localizedFormat=Ene;exports.lodashExports=T2;exports.m=_re;exports.o=Ane;exports.offset=aj;exports.placeholder=oZ;exports.prismExports=kX;exports.q=N4;exports.shift=sj;exports.some=FX;exports.transform=eoe;exports.useController=O2;exports.useFieldArray=zj;exports.useFloating=bj;exports.useFloating$1=E2;exports.useFocus=$j;exports.useForm=Wj;exports.useFormContext=Qf;exports.useHover=vj;exports.useInteractions=xj;exports.useRole=Cj;exports.useWatch=k2;
164
+ `)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(dt.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{dt.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:a,size:s,step:u,styles:f}=this.props,d=Ka(i.open),h={"aria-label":d,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:d};let m;if(e){const g=e;m=fe.createElement(g,{continuous:t,index:n,isLastStep:r,size:s,step:u,...h})}else m=fe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:f.beacon,type:"button",...h},fe.createElement("span",{style:f.beaconInner}),fe.createElement("span",{style:f.beaconOuter}));return m}};function ble({styles:e,...t}){const{color:n,height:r,width:i,...a}=e;return fe.default.createElement("button",{style:a,type:"button",...t},fe.default.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},fe.default.createElement("g",null,fe.default.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var $le=ble;function xle(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:a,skipProps:s,step:u,tooltipProps:f}=e,{content:d,hideBackButton:h,hideCloseButton:m,hideFooter:g,showSkipButton:b,styles:w,title:x}=u,A={};return A.primary=fe.createElement("button",{"data-test-id":"button-primary",style:w.buttonNext,type:"button",...a}),b&&!i&&(A.skip=fe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:w.buttonSkip,type:"button",...s})),!h&&r>0&&(A.back=fe.createElement("button",{"data-test-id":"button-back",style:w.buttonBack,type:"button",...t})),A.close=!m&&fe.createElement($le,{"data-test-id":"button-close",styles:w.buttonClose,...n}),fe.createElement("div",{key:"JoyrideTooltip","aria-label":Ka(x??d),className:"react-joyride__tooltip",style:w.tooltip,...f},fe.createElement("div",{style:w.tooltipContainer},x&&fe.createElement("h1",{"aria-label":Ka(x),style:w.tooltipTitle},x),fe.createElement("div",{style:w.tooltipContent},d)),!g&&fe.createElement("div",{style:w.tooltipFooter},fe.createElement("div",{style:w.tooltipFooterSpacer},A.skip),A.back,A.primary),A.close)}var wle=xle,Cle=class extends fe.Component{constructor(){super(...arguments),mt(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),mt(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),mt(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),mt(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),mt(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{back:s,close:u,last:f,next:d,nextLabelWithProgress:h,skip:m}=a.locale,g=Ka(s),b=Ka(u),w=Ka(f),x=Ka(d),A=Ka(m);let C=u,E=b;if(e){if(C=d,E=x,a.showProgress&&!n){const S=Ka(h,{step:t+1,steps:i});C=K1(h,t+1,i),E=S}n&&(C=f,E=w)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":b,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:b},primaryProps:{"aria-label":E,children:C,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:E},skipProps:{"aria-label":A,children:m,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:A},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:u,...f}=a;let d;if(u){const h={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:f,setTooltipRef:r},m=u;d=fe.createElement(m,{...h})}else d=fe.createElement(wle,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return d}},Ele=class extends fe.Component{constructor(){super(...arguments),mt(this,"scope",null),mt(this,"tooltip",null),mt(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Ft.TOOLTIP})}),mt(this,"setTooltipRef",e=>{this.tooltip=e}),mt(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:a,store:s}=this.props;t==="wrapper"?s.setPopper("beacon",e):s.setPopper("tooltip",e),s.getPopper("beacon")&&(s.getPopper("tooltip")||a.placement==="center")&&i===Ft.INIT&&s.update({action:r,lifecycle:Ft.READY}),(n=a.floaterProps)!=null&&n.getPopper&&a.floaterProps.getPopper(e,t)}),mt(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:a}=this.props;return fe.createElement(Cle,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;Co({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:a,debug:s,helpers:u,index:f,lifecycle:d,shouldScroll:h,status:m,step:g,store:b}=this.props,{changed:w,changedFrom:x}=_p(e,this.props),A=u.info(),C=i&&n!==rn.CLOSE&&(f>0||n===rn.PREV),E=w("action")||w("index")||w("lifecycle")||w("status"),S=x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT),R=w("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE]),_=a&&f===e.index;if(R&&(S||_)&&r({...A,index:e.index,lifecycle:Ft.COMPLETE,step:e.step,type:ji.STEP_AFTER}),g.placement==="center"&&m===Nt.RUNNING&&w("index")&&n!==rn.START&&d===Ft.INIT&&b.update({lifecycle:Ft.READY}),E){const F=ks(g.target),z=!!F;z&&Zue(F)?(x("status",Nt.READY,Nt.RUNNING)||x("lifecycle",Ft.INIT,Ft.READY))&&r({...A,step:g,type:ji.STEP_BEFORE}):(console.warn(z?"Target not visible":"Target not mounted",g),r({...A,type:ji.TARGET_NOT_FOUND,step:g}),a||b.update({index:f+(n===rn.PREV?-1:1)}))}x("lifecycle",Ft.INIT,Ft.READY)&&b.update({lifecycle:a2(g)||C?Ft.TOOLTIP:Ft.BEACON}),w("index")&&Co({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:s}),w("lifecycle",Ft.BEACON)&&r({...A,step:g,type:ji.BEACON}),w("lifecycle",Ft.TOOLTIP)&&(r({...A,step:g,type:ji.TOOLTIP}),h&&this.tooltip&&(this.scope=new vle(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),x("lifecycle",[Ft.TOOLTIP,Ft.INIT],Ft.INIT)&&((t=this.scope)==null||t.removeScope(),b.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return a2(t)||e===Ft.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:a,step:s}=this.props,u=ks(s.target);return!JO(s)||!dt.domElement(u)?null:fe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},fe.createElement(m$,{...s.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:s.placement,target:s.target},fe.createElement(yle,{beaconComponent:s.beaconComponent,continuous:e,index:n,isLastStep:n+1===a,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:a,step:s,styles:s.styles})))}},eI=class extends fe.Component{constructor(e){super(e),mt(this,"helpers"),mt(this,"store"),mt(this,"callback",s=>{const{callback:u}=this.props;dt.function(u)&&u(s)}),mt(this,"handleKeyboard",s=>{const{index:u,lifecycle:f}=this.state,{steps:d}=this.props,h=d[u];f===Ft.TOOLTIP&&s.code==="Escape"&&h&&!h.disableCloseOnEsc&&this.store.close("keyboard")}),mt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:u}=this.props;dl(this.props,u[s]).disableOverlayClose||this.helpers.close("overlay")}),mt(this,"syncState",s=>{this.setState(s)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=dle({...e,controlled:r&&dt.number(i)}),this.helpers=this.store.getHelpers();const{addListener:a}=this.store;Co({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),a(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!fo())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;u2(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!fo())return;const{action:n,controlled:r,index:i,status:a}=this.state,{debug:s,run:u,stepIndex:f,steps:d}=this.props,{stepIndex:h,steps:m}=e,{reset:g,setSteps:b,start:w,stop:x,update:A}=this.store,{changed:C}=_p(e,this.props),{changed:E,changedFrom:S}=_p(t,this.state),R=dl(this.props,d[i]),_=!Nr(m,d),F=dt.number(f)&&C("stepIndex"),z=ks(R.target);if(_&&(u2(d,s)?b(d):console.warn("Steps are not valid",d)),C("run")&&(u?w(f):x()),F){let oe=dt.number(h)&&h<f?rn.NEXT:rn.PREV;n===rn.STOP&&(oe=rn.START),[Nt.FINISHED,Nt.SKIPPED].includes(a)||A({action:n===rn.CLOSE?rn.CLOSE:oe,index:f,lifecycle:Ft.INIT})}!r&&a===Nt.RUNNING&&i===0&&!z&&(this.store.update({index:i+1}),this.callback({...this.state,type:ji.TARGET_NOT_FOUND,step:R}));const ie={...this.state,index:i,step:R};if(E("action",[rn.NEXT,rn.PREV,rn.SKIP,rn.CLOSE])&&E("status",Nt.PAUSED)){const oe=dl(this.props,d[t.index]);this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER})}if(E("status",[Nt.FINISHED,Nt.SKIPPED])){const oe=dl(this.props,d[t.index]);r||this.callback({...ie,index:t.index,lifecycle:Ft.COMPLETE,step:oe,type:ji.STEP_AFTER}),this.callback({...ie,type:ji.TOUR_END,step:oe,index:t.index}),g()}else S("status",[Nt.IDLE,Nt.READY],Nt.RUNNING)?this.callback({...ie,type:ji.TOUR_START}):(E("status")||E("action",rn.RESET))&&this.callback({...ie,type:ji.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:a=!1,scrollDuration:s,scrollOffset:u=20,scrollToFirstStep:f=!1,steps:d}=this.props,h=dl(this.props,d[t]),m=ks(h.target),g=ile({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:f,step:h,target:m});if(r===Nt.RUNNING&&g){const b=Ad(m,a),w=Zf(m,a);let x=Math.floor(Jue(m,u,a))||0;Co({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const A=this.store.getPopper("beacon"),C=this.store.getPopper("tooltip");if(n===Ft.BEACON&&A){const{offsets:E,placement:S}=A;!["bottom"].includes(S)&&!b&&(x=Math.floor(E.popper.top-u))}else if(n===Ft.TOOLTIP&&C){const{flipped:E,offsets:S,placement:R}=C;["top","right","left"].includes(R)&&!E&&!b?x=Math.floor(S.popper.top-u):x-=h.spotlightPadding}x=x>=0?x:0,r===Nt.RUNNING&&Que(x,{element:w,duration:s}).then(()=>{setTimeout(()=>{var E;(E=this.store.getPopper("tooltip"))==null||E.instance.update()},10)})}}render(){if(!fo())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:a,scrollToFirstStep:s=!1,steps:u}=this.props,f=n===Nt.RUNNING,d={};if(f&&u[e]){const h=dl(this.props,u[e]);d.step=fe.createElement(Ele,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:a,shouldScroll:!h.disableScrolling&&(e!==0||s),step:h,store:this.store}),d.overlay=fe.createElement(gle,{id:"react-joyride-portal"},fe.createElement(mle,{...h,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return fe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};mt(eI,"defaultProps",ole);var Sle=eI;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=AM;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=gP;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=ad;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=$P;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=Qn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=eW;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=SM;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Ar;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=Qq;exports.$293f70390ea03370$export$497855f14858aa34=Gz;exports.$32489daedd52963e$export$1315d136e6f7581=sW;exports.$337b884510726a0d$export$c6fdb837b070b4ff=_z;exports.$36a0ac60f04457c5$export$136073280381448e=Uq;exports.$3c0fc76039f1c516$export$60e84778edff6d26=pF;exports.$40df3f8667284809$export$d55e7ee900f34e93=cW;exports.$46a4342aab3d8076$export$87e0539f600c24e5=Nq;exports.$47b897dc8cdb026b$export$8d15029008292ae=rz;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=tz;exports.$6057a3d2a53a12fd$export$42df105a73306d51=nW;exports.$64244302c3013299$export$dd0bbc9b26defe37=cq;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=Eq;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=lW;exports.$93c38a5e28be6249$export$e50a61c1de9f574=PW;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=Bq;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=fW;exports.$a916eb452884faea$export$b7a616150fdb9f44=Cq;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=vW;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=CW;exports.$bb77f239b46e8c72$export$3274cf84b703fff=HP;exports.$bcca50147b47f54d$export$56b2c08e277f365=nz;exports.$c132121280ec012d$export$50eacbbf140a3141=Nz;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=Kz;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Jz;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=jq;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=_W;exports.$f2f8a6077418541e$export$542a6fd13ac93354=Pz;exports.$fae977aafc393c5c$export$588937bcd60ade55=BU;exports.$fae977aafc393c5c$export$6b862160d295c8e=VU;exports.ACTIONS=rn;exports.AdvancedImage=cZ;exports.CSVLink=jse;exports.Cloudinary=aX;exports.Controller=Mj;exports.EVENTS=ji;exports.FormProvider=Pj;exports.LazyMotion=jne;exports.Lottie=kne;exports.M=ha;exports.ReorderGroup=bne;exports.ReorderItem=Cne;exports.STATUS=Nt;exports._=Dj;exports._$1=_u;exports.autoUpdate=JN;exports.components_default=Sle;exports.dayjs=jH;exports.dayjs_minExports=wF;exports.domAnimation=wse;exports.ee=SF;exports.flexRender=zse;exports.flip=oj;exports.isEqual=VH;exports.isNil=qse;exports.isNumber=qH;exports.isUndefined=OX;exports.lazyload=rZ;exports.localizedFormat=Ane;exports.lodashExports=T2;exports.m=_re;exports.o=_ne;exports.offset=aj;exports.placeholder=oZ;exports.prismExports=LX;exports.q=N4;exports.shift=sj;exports.some=FX;exports.transform=eoe;exports.useController=O2;exports.useFieldArray=zj;exports.useFloating=bj;exports.useFloating$1=E2;exports.useFocus=$j;exports.useForm=Wj;exports.useFormContext=Qf;exports.useHover=vj;exports.useInteractions=xj;exports.useRole=Cj;exports.useWatch=k2;